@aotter/mantle-admin-ui 0.0.11-alpha.45 → 0.0.11-alpha.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-html.js +1 -1
- package/dist/index.html +4 -4
- package/package.json +5 -5
package/dist/index.html
CHANGED
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{xe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?be(n):``}function Ce(e,t){switch(e.tag){case 26:case 27:case 5:return be(e.type);case 16:return be(`Lazy`);case 13:return e.child!==t&&t!==null?be(`Suspense Fallback`):be(`Suspense`);case 19:return be(`SuspenseList`);case 0:case 15:return Se(e.type,!1);case 11:return Se(e.type.render,!1);case 1:return Se(e.type,!0);case 31:return be(`Activity`);default:return``}}function we(e){try{var t=``,n=null;do t+=Ce(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
93
93
|
Error generating stack: `+e.message+`
|
|
94
94
|
`+e.stack}}var Te=Object.prototype.hasOwnProperty,Ee=t.unstable_scheduleCallback,De=t.unstable_cancelCallback,Oe=t.unstable_shouldYield,ke=t.unstable_requestPaint,Ae=t.unstable_now,je=t.unstable_getCurrentPriorityLevel,Me=t.unstable_ImmediatePriority,Ne=t.unstable_UserBlockingPriority,Pe=t.unstable_NormalPriority,Fe=t.unstable_LowPriority,Ie=t.unstable_IdlePriority,Le=t.log,Re=t.unstable_setDisableYieldValue,ze=null,Be=null;function Ve(e){if(typeof Le==`function`&&Re(e),Be&&typeof Be.setStrictMode==`function`)try{Be.setStrictMode(ze,e)}catch{}}var He=Math.clz32?Math.clz32:Ge,Ue=Math.log,We=Math.LN2;function Ge(e){return e>>>=0,e===0?32:31-(Ue(e)/We|0)|0}var Ke=256,qe=262144,P=4194304;function F(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Je(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=F(n))):i=F(o):i=F(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=F(n))):i=F(o)):i=F(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 Ye(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Xe(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 Ze(){var e=P;return P<<=1,!(P&62914560)&&(P=4194304),e}function Qe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $e(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function et(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-He(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&&tt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function tt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-He(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function nt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-He(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function rt(e,t){var n=t&-t;return n=n&42?1:it(n),(n&(e.suspendedLanes|t))===0?n:0}function it(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 at(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ot(){var e=j.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function st(e,t){var n=j.p;try{return j.p=e,t()}finally{j.p=n}}var ct=Math.random().toString(36).slice(2),lt=`__reactFiber$`+ct,I=`__reactProps$`+ct,ut=`__reactContainer$`+ct,dt=`__reactEvents$`+ct,ft=`__reactListeners$`+ct,pt=`__reactHandles$`+ct,mt=`__reactResources$`+ct,ht=`__reactMarker$`+ct;function gt(e){delete e[lt],delete e[I],delete e[dt],delete e[ft],delete e[pt]}function _t(e){var t=e[lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[lt])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function vt(e){if(e=e[lt]||e[ut]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function yt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function L(e){var t=e[mt];return t||=e[mt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function bt(e){e[ht]=!0}var xt=new Set,St={};function Ct(e,t){wt(e,t),wt(e+`Capture`,t)}function wt(e,t){for(St[e]=t,e=0;e<t.length;e++)xt.add(t[e])}var Tt=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]*$`),Et={},Dt={};function Ot(e){return Te.call(Dt,e)?!0:Te.call(Et,e)?!1:Tt.test(e)?Dt[e]=!0:(Et[e]=!0,!1)}function kt(e,t,n){if(Ot(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 At(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function jt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Mt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Nt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Pt(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 Ft(e){if(!e._valueTracker){var t=Nt(e)?`checked`:`value`;e._valueTracker=Pt(e,t,``+e[t])}}function It(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Nt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Lt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Rt=/[\n"\\]/g;function zt(e){return e.replace(Rt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Bt(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=``+Mt(t)):e.value!==``+Mt(t)&&(e.value=``+Mt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ht(e,o,Mt(n)):Ht(e,o,Mt(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=``+Mt(s):e.removeAttribute(`name`)}function Vt(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)){Ft(e);return}n=n==null?``:``+Mt(n),t=t==null?n:``+Mt(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),Ft(e)}function Ht(e,t,n){t===`number`&&Lt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ut(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=``+Mt(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 Wt(e,t,n){if(t!=null&&(t=``+Mt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Mt(n)}function Gt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ae(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Mt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ft(e)}function Kt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qt=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 Jt(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||qt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Yt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Jt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Jt(e,o,t[o])}function Xt(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 Zt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Qt=/^[\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 $t(e){return Qt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function en(){}var tn=null;function nn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rn=null,an=null;function on(e){var t=vt(e);if(t&&(e=t.stateNode)){var n=e[I]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Bt(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="`+zt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[I]||null;if(!a)throw Error(i(90));Bt(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&&It(r)}break a;case`textarea`:Wt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ut(e,!!n.multiple,t,!1)}}}var sn=!1;function cn(e,t,n){if(sn)return e(t,n);sn=!0;try{return e(t)}finally{if(sn=!1,(rn!==null||an!==null)&&(vu(),rn&&(t=rn,e=an,an=rn=null,on(t),e)))for(t=0;t<e.length;t++)on(e[t])}}function ln(e,t){var n=e.stateNode;if(n===null)return null;var r=n[I]||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 un=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),dn=!1;if(un)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.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 hn=i.slice(e,1<r?1-r:void 0)}function _n(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 vn(){return!0}function yn(){return!1}function bn(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)?vn:yn,this.isPropagationStopped=yn,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=vn)},persist:function(){},isPersistent:vn}),t}var xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sn=bn(xn),Cn=h({},xn,{view:0,detail:0}),wn=bn(Cn),Tn,En,Dn,On=h({},Cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zn,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!==Dn&&(Dn&&e.type===`mousemove`?(Tn=e.screenX-Dn.screenX,En=e.screenY-Dn.screenY):En=Tn=0,Dn=e),Tn)},movementY:function(e){return`movementY`in e?e.movementY:En}}),kn=bn(On),An=bn(h({},On,{dataTransfer:0})),jn=bn(h({},Cn,{relatedTarget:0})),Mn=bn(h({},xn,{animationName:0,elapsedTime:0,pseudoElement:0})),Nn=bn(h({},xn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Pn=bn(h({},xn,{data:0})),Fn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},In={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`},Ln={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Rn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ln[e])?!!t[e]:!1}function zn(){return Rn}var Bn=bn(h({},Cn,{key:function(e){if(e.key){var t=Fn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=_n(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?In[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zn,charCode:function(e){return e.type===`keypress`?_n(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?_n(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Vn=bn(h({},On,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Hn=bn(h({},Cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zn})),Un=bn(h({},xn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Wn=bn(h({},On,{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})),Gn=bn(h({},xn,{newState:0,oldState:0})),Kn=[9,13,27,32],qn=un&&`CompositionEvent`in window,Jn=null;un&&`documentMode`in document&&(Jn=document.documentMode);var Yn=un&&`TextEvent`in window&&!Jn,Xn=un&&(!qn||Jn&&8<Jn&&11>=Jn),Zn=` `,Qn=!1;function $n(e,t){switch(e){case`keyup`:return Kn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function er(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var tr=!1;function nr(e,t){switch(e){case`compositionend`:return er(t);case`keypress`:return t.which===32?(Qn=!0,Zn):null;case`textInput`:return e=t.data,e===Zn&&Qn?null:e;default:return null}}function rr(e,t){if(tr)return e===`compositionend`||!qn&&$n(e,t)?(e=gn(),hn=mn=pn=null,tr=!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 Xn&&t.locale!==`ko`?null:t.data;default:return null}}var ir={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 ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ir[e.type]:t===`textarea`}function or(e,t,n,r){rn?an?an.push(r):an=[r]:rn=r,t=Td(t,`onChange`),0<t.length&&(n=new Sn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var sr=null,cr=null;function lr(e){vd(e,0)}function ur(e){if(It(yt(e)))return e}function dr(e,t){if(e===`change`)return t}var fr=!1;if(un){var pr;if(un){var mr=`oninput`in document;if(!mr){var hr=document.createElement(`div`);hr.setAttribute(`oninput`,`return;`),mr=typeof hr.oninput==`function`}pr=mr}else pr=!1;fr=pr&&(!document.documentMode||9<document.documentMode)}function gr(){sr&&(sr.detachEvent(`onpropertychange`,_r),cr=sr=null)}function _r(e){if(e.propertyName===`value`&&ur(cr)){var t=[];or(t,cr,e,nn(e)),cn(lr,t)}}function vr(e,t,n){e===`focusin`?(gr(),sr=t,cr=n,sr.attachEvent(`onpropertychange`,_r)):e===`focusout`&&gr()}function yr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return ur(cr)}function br(e,t){if(e===`click`)return ur(t)}function xr(e,t){if(e===`input`||e===`change`)return ur(t)}function Sr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Cr=typeof Object.is==`function`?Object.is:Sr;function wr(e,t){if(Cr(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(!Te.call(t,i)||!Cr(e[i],t[i]))return!1}return!0}function Tr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Er(e,t){var n=Tr(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=Tr(n)}}function Dr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Or(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(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=Lt(e.document)}return t}function kr(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 Ar=un&&`documentMode`in document&&11>=document.documentMode,jr=null,Mr=null,Nr=null,Pr=!1;function Fr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pr||jr==null||jr!==Lt(r)||(r=jr,`selectionStart`in r&&kr(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}),Nr&&wr(Nr,r)||(Nr=r,r=Td(Mr,`onSelect`),0<r.length&&(t=new Sn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=jr)))}function Ir(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Lr={animationend:Ir(`Animation`,`AnimationEnd`),animationiteration:Ir(`Animation`,`AnimationIteration`),animationstart:Ir(`Animation`,`AnimationStart`),transitionrun:Ir(`Transition`,`TransitionRun`),transitionstart:Ir(`Transition`,`TransitionStart`),transitioncancel:Ir(`Transition`,`TransitionCancel`),transitionend:Ir(`Transition`,`TransitionEnd`)},Rr={},zr={};un&&(zr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Lr.animationend.animation,delete Lr.animationiteration.animation,delete Lr.animationstart.animation),`TransitionEvent`in window||delete Lr.transitionend.transition);function Br(e){if(Rr[e])return Rr[e];if(!Lr[e])return e;var t=Lr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zr)return Rr[e]=t[n];return e}var Vr=Br(`animationend`),Hr=Br(`animationiteration`),Ur=Br(`animationstart`),Wr=Br(`transitionrun`),Gr=Br(`transitionstart`),Kr=Br(`transitioncancel`),qr=Br(`transitionend`),Jr=new Map,Yr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Yr.push(`scrollEnd`);function Xr(e,t){Jr.set(e,t),Ct(t,[e])}var Zr=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)},Qr=[],$r=0,ei=0;function ti(){for(var e=$r,t=ei=$r=0;t<e;){var n=Qr[t];Qr[t++]=null;var r=Qr[t];Qr[t++]=null;var i=Qr[t];Qr[t++]=null;var a=Qr[t];if(Qr[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&&ii(n,i,a)}}function ni(e,t,n,r){Qr[$r++]=e,Qr[$r++]=t,Qr[$r++]=n,Qr[$r++]=r,ei|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ri(e,t,n,r){return ni(e,t,n,r),ai(e)}function R(e,t){return ni(e,null,null,t),ai(e)}function ii(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-He(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ai(e){if(50<lu)throw lu=0,uu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var oi={};function si(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 ci(e,t,n,r){return new si(e,t,n,r)}function li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ui(e,t){var n=e.alternate;return n===null?(n=ci(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function di(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)li(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,ue.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case te:return e=ci(31,n,t,a),e.elementType=te,e.lanes=o,e;case y:return pi(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=ci(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=ci(13,n,t,a),e.elementType=T,e.lanes=o,e;case ee:return e=ci(19,n,t,a),e.elementType=ee,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case E:s=14;break a;case D:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ci(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function pi(e,t,n,r){return e=ci(7,e,r,t),e.lanes=n,e}function mi(e,t,n){return e=ci(6,e,null,t),e.lanes=n,e}function z(e){var t=ci(18,null,null,0);return t.stateNode=e,t}function hi(e,t,n){return t=ci(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var gi=new WeakMap;function _i(e,t){if(typeof e==`object`&&e){var n=gi.get(e);return n===void 0?(t={value:e,source:t,stack:we(t)},gi.set(e,t),t):n}return{value:e,source:t,stack:we(t)}}var vi=[],yi=0,bi=null,xi=0,B=[],Si=0,Ci=null,wi=1,Ti=``;function Ei(e,t){vi[yi++]=xi,vi[yi++]=bi,bi=e,xi=t}function Di(e,t,n){B[Si++]=wi,B[Si++]=Ti,B[Si++]=Ci,Ci=e;var r=wi;e=Ti;var i=32-He(r)-1;r&=~(1<<i),n+=1;var a=32-He(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,wi=1<<32-He(t)+i|n<<i|r,Ti=a+e}else wi=1<<a|n<<i|r,Ti=e}function Oi(e){e.return!==null&&(Ei(e,1),Di(e,1,0))}function ki(e){for(;e===bi;)bi=vi[--yi],vi[yi]=null,xi=vi[--yi],vi[yi]=null;for(;e===Ci;)Ci=B[--Si],B[Si]=null,Ti=B[--Si],B[Si]=null,wi=B[--Si],B[Si]=null}function Ai(e,t){B[Si++]=wi,B[Si++]=Ti,B[Si++]=Ci,wi=t.id,Ti=t.overflow,Ci=e}var ji=null,Mi=null,V=!1,Ni=null,Pi=!1,Fi=Error(i(519));function Ii(e){throw W(_i(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Fi}function Li(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[lt]=e,t[I]=r,n){case`dialog`:$(`cancel`,t),$(`close`,t);break;case`iframe`:case`object`:case`embed`:$(`load`,t);break;case`video`:case`audio`:for(n=0;n<gd.length;n++)$(gd[n],t);break;case`source`:$(`error`,t);break;case`img`:case`image`:case`link`:$(`error`,t),$(`load`,t);break;case`details`:$(`toggle`,t);break;case`input`:$(`invalid`,t),Vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:$(`invalid`,t);break;case`textarea`:$(`invalid`,t),Gt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||jd(t.textContent,n)?(r.popover!=null&&($(`beforetoggle`,t),$(`toggle`,t)),r.onScroll!=null&&$(`scroll`,t),r.onScrollEnd!=null&&$(`scrollend`,t),r.onClick!=null&&(t.onclick=en),t=!0):t=!1,t||Ii(e,!0)}function Ri(e){for(ji=e.return;ji;)switch(ji.tag){case 5:case 31:case 13:Pi=!1;return;case 27:case 3:Pi=!0;return;default:ji=ji.return}}function H(e){if(e!==ji)return!1;if(!V)return Ri(e),V=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Ud(e.type,e.memoizedProps)),n=!n),n&&Mi&&Ii(e),Ri(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Mi=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Mi=uf(e)}else t===27?(t=Mi,Zd(e.type)?(e=lf,lf=null,Mi=e):Mi=t):Mi=ji?cf(e.stateNode.nextSibling):null;return!0}function zi(){Mi=ji=null,V=!1}function U(){var e=Ni;return e!==null&&(Yl===null?Yl=e:Yl.push.apply(Yl,e),Ni=null),e}function W(e){Ni===null?Ni=[e]:Ni.push(e)}var Bi=le(null),Vi=null,Hi=null;function Ui(e,t,n){N(Bi,t._currentValue),t._currentValue=n}function Wi(e){e._currentValue=Bi.current,M(Bi)}function Gi(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 Ki(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),Gi(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),Gi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function qi(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;Cr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===pe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&Ki(t,e,n,r),t.flags|=262144}function Ji(e){for(e=e.firstContext;e!==null;){if(!Cr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Yi(e){Vi=e,Hi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Xi(e){return Qi(Vi,e)}function Zi(e,t){return Vi===null&&Yi(e),Qi(e,t)}function Qi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Hi===null){if(e===null)throw Error(i(308));Hi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Hi=Hi.next=t;return n}var $i=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()})}},ea=t.unstable_scheduleCallback,ta=t.unstable_NormalPriority,na={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ra(){return{controller:new $i,data:new Map,refCount:0}}function ia(e){e.refCount--,e.refCount===0&&ea(ta,function(){e.controller.abort()})}var aa=null,oa=0,sa=0,ca=null;function la(e,t){if(aa===null){var n=aa=[];oa=0,sa=ud(),ca={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return oa++,t.then(ua,ua),t}function ua(){if(--oa===0&&aa!==null){ca!==null&&(ca.status=`fulfilled`);var e=aa;aa=null,sa=0,ca=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function da(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 fa=A.S;A.S=function(e,t){Ql=Ae(),typeof t==`object`&&t&&typeof t.then==`function`&&la(e,t),fa!==null&&fa(e,t)};var pa=le(null);function ma(){var e=pa.current;return e===null?Fl.pooledCache:e}function ha(e,t){t===null?N(pa,pa.current):N(pa,t.pool)}function ga(){var e=ma();return e===null?null:{parent:na._currentValue,pool:e}}var _a=Error(i(460)),va=Error(i(474)),ya=Error(i(542)),ba={then:function(){}};function xa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Sa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(en,en),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ea(e),e;default:if(typeof t.status==`string`)t.then(en,en);else{if(e=Fl,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,Ea(e),e}throw wa=t,_a}}function Ca(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(wa=e,_a):e}}var wa=null;function Ta(){if(wa===null)throw Error(i(459));var e=wa;return wa=null,e}function Ea(e){if(e===_a||e===ya)throw Error(i(483))}var Da=null,Oa=0;function ka(e){var t=Oa;return Oa+=1,Da===null&&(Da=[]),Sa(Da,e,t)}function Aa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ja(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ma(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=ui(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=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===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===D&&Ca(i)===t.type)?(t=a(t,n.props),Aa(t,n),t.return=e,t):(t=fi(n.type,n.key,n.props,null,e.mode,r),Aa(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=hi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=pi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=fi(t.type,t.key,t.props,null,e.mode,n),Aa(n,t),n.return=e,n;case v:return t=hi(t,e.mode,n),t.return=e,t;case D:return t=Ca(t),f(e,t,n)}if(ae(t)||O(t))return t=pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ka(t),n);if(t.$$typeof===C)return f(e,Zi(e,t),n);ja(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case D:return n=Ca(n),p(e,t,n,r)}if(ae(n)||O(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ka(n),r);if(n.$$typeof===C)return p(e,t,Zi(e,n),r);ja(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case D:return r=Ca(r),m(e,t,n,r,i)}if(ae(r)||O(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,ka(r),i);if(r.$$typeof===C)return m(e,t,n,Zi(t,r),i);ja(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),V&&Ei(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 V&&Ei(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),V&&Ei(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),V&&Ei(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 V&&Ei(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),V&&Ei(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===D&&Ca(l)===r.type){n(e,r.sibling),c=a(r,o.props),Aa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=pi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=fi(o.type,o.key,o.props,null,e.mode,c),Aa(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=hi(o,e.mode,c),c.return=e,e=c}return s(e);case D:return o=Ca(o),b(e,r,o,c)}if(ae(o))return h(e,r,o,c);if(O(o)){if(l=O(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,ka(o),c);if(o.$$typeof===C)return b(e,r,Zi(e,o),c);ja(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{Oa=0;var i=b(e,t,n,r);return Da=null,i}catch(t){if(t===_a||t===ya)throw t;var a=ci(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Na=Ma(!0),Pa=Ma(!1),Fa=!1;function Ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function La(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 Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function za(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ai(e),ii(e,null,n),t}return ni(e,r,t,n),ai(e)}function Ba(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,nt(e,n)}}function Va(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 Ha=!1;function Ua(){if(Ha){var e=ca;if(e!==null)throw e}}function Wa(e,t,n,r){Ha=!1;var i=e.updateQueue;Fa=!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?(Q&f)===f:(r&f)===f){f!==0&&f===sa&&(Ha=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Fa=!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),Ul|=o,e.lanes=o,e.memoizedState=d}}function Ga(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ka(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ga(n[e],t)}var qa=le(null),Ja=le(0);function Ya(e,t){e=Vl,N(Ja,e),N(qa,t),Vl=e|t.baseLanes}function Xa(){N(Ja,Vl),N(qa,qa.current)}function Za(){Vl=Ja.current,M(qa),M(Ja)}var Qa=le(null),$a=null;function eo(e){var t=e.alternate;N(ao,ao.current&1),N(Qa,e),$a===null&&(t===null||qa.current!==null||t.memoizedState!==null)&&($a=e)}function to(e){N(ao,ao.current),N(Qa,e),$a===null&&($a=e)}function no(e){e.tag===22?(N(ao,ao.current),N(Qa,e),$a===null&&($a=e)):ro(e)}function ro(){N(ao,ao.current),N(Qa,Qa.current)}function io(e){M(Qa),$a===e&&($a=null),M(ao)}var ao=le(0);function oo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var so=0,G=null,K=null,co=null,lo=!1,uo=!1,fo=!1,po=0,mo=0,ho=null,go=0;function _o(){throw Error(i(321))}function vo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Cr(e[n],t[n]))return!1;return!0}function yo(e,t,n,r,i,a){return so=a,G=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?Is:Ls,fo=!1,a=n(r,i),fo=!1,uo&&(a=xo(t,n,r,i)),bo(e),a}function bo(e){A.H=Fs;var t=K!==null&&K.next!==null;if(so=0,co=K=G=null,lo=!1,mo=0,ho=null,t)throw Error(i(300));e===null||ec||(e=e.dependencies,e!==null&&Ji(e)&&(ec=!0))}function xo(e,t,n,r){G=e;var a=0;do{if(uo&&(ho=null),mo=0,uo=!1,25<=a)throw Error(i(301));if(a+=1,co=K=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}A.H=Rs,o=t(n,r)}while(uo);return o}function So(){var e=A.H,t=e.useState()[0];return t=typeof t.then==`function`?ko(t):t,e=e.useState()[0],(K===null?null:K.memoizedState)!==e&&(G.flags|=1024),t}function Co(){var e=po!==0;return po=0,e}function wo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function To(e){if(lo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}lo=!1}so=0,co=K=G=null,uo=!1,mo=po=0,ho=null}function Eo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return co===null?G.memoizedState=co=e:co=co.next=e,co}function Do(){if(K===null){var e=G.alternate;e=e===null?null:e.memoizedState}else e=K.next;var t=co===null?G.memoizedState:co.next;if(t!==null)co=t,K=e;else{if(e===null)throw G.alternate===null?Error(i(467)):Error(i(310));K=e,e={memoizedState:K.memoizedState,baseState:K.baseState,baseQueue:K.baseQueue,queue:K.queue,next:null},co===null?G.memoizedState=co=e:co=co.next=e}return co}function Oo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ko(e){var t=mo;return mo+=1,ho===null&&(ho=[]),e=Sa(ho,e,t),t=G,(co===null?t.memoizedState:co.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?Is:Ls),e}function Ao(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ko(e);if(e.$$typeof===C)return Xi(e)}throw Error(i(438,String(e)))}function jo(e){var t=null,n=G.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=G.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Oo(),G.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ne;return t.index++,n}function Mo(e,t){return typeof t==`function`?t(e):t}function No(e){return Po(Do(),K,e)}function Po(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?(so&f)===f:(Q&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===sa&&(d=!0);else if((so&p)===p){u=u.next,p===sa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,G.lanes|=p,Ul|=p;f=u.action,fo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,G.lanes|=f,Ul|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Cr(o,e.memoizedState)&&(ec=!0,d&&(n=ca,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 Fo(e){var t=Do(),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);Cr(o,t.memoizedState)||(ec=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Io(e,t,n){var r=G,a=Do(),o=V;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Cr((K||a).memoizedState,n);if(s&&(a.memoizedState=n,ec=!0),a=a.queue,ss(zo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||co!==null&&co.memoizedState.tag&1){if(r.flags|=2048,ns(9,{destroy:void 0},Ro.bind(null,r,a,n,t),null),Fl===null)throw Error(i(349));o||so&127||Lo(r,t,n)}return n}function Lo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=G.updateQueue,t===null?(t=Oo(),G.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ro(e,t,n,r){t.value=n,t.getSnapshot=r,Bo(t)&&Vo(e)}function zo(e,t,n){return n(function(){Bo(t)&&Vo(e)})}function Bo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cr(e,n)}catch{return!0}}function Vo(e){var t=R(e,2);t!==null&&pu(t,e,2)}function Ho(e){var t=Eo();if(typeof e==`function`){var n=e;if(e=n(),fo){Ve(!0);try{n()}finally{Ve(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:e},t}function Uo(e,t,n,r){return e.baseState=n,Po(e,K,typeof r==`function`?r:Mo)}function Wo(e,t,n,r,a){if(Ms(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)}};A.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Go(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Go(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=A.T,o={};A.T=o;try{var s=n(i,r),c=A.S;c!==null&&c(o,s),Ko(e,t,s)}catch(n){Jo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),A.T=a}}else try{a=n(i,r),Ko(e,t,a)}catch(n){Jo(e,t,n)}}function Ko(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){qo(e,t,n)},function(n){return Jo(e,t,n)}):qo(e,t,n)}function qo(e,t,n){t.status=`fulfilled`,t.value=n,Yo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Go(e,n)))}function Jo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Yo(t),t=t.next;while(t!==r)}e.action=null}function Yo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Xo(e,t){return t}function Zo(e,t){if(V){var n=Fl.formState;if(n!==null){a:{var r=G;if(V){if(Mi){b:{for(var i=Mi,a=Pi;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Mi=cf(i.nextSibling),r=i.data===`F!`;break a}}Ii(r)}r=!1}r&&(t=n[0])}}return n=Eo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:t},n.queue=r,n=ks.bind(null,G,r),r.dispatch=n,r=Ho(!1),a=js.bind(null,G,!1,r.queue),r=Eo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Wo.bind(null,G,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Qo(e){return $o(Do(),K,e)}function $o(e,t,n){if(t=Po(e,t,Xo)[0],e=No(Mo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ko(t)}catch(e){throw e===_a?ya:e}else r=t;t=Do();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(G.flags|=2048,ns(9,{destroy:void 0},es.bind(null,i,n),null)),[r,a,e]}function es(e,t){e.action=t}function ts(e){var t=Do(),n=K;if(n!==null)return $o(t,n,e);Do(),t=t.memoizedState,n=Do();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ns(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=G.updateQueue,t===null&&(t=Oo(),G.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function rs(){return Do().memoizedState}function is(e,t,n,r){var i=Eo();G.flags|=e,i.memoizedState=ns(1|t,{destroy:void 0},n,r===void 0?null:r)}function as(e,t,n,r){var i=Do();r=r===void 0?null:r;var a=i.memoizedState.inst;K!==null&&r!==null&&vo(r,K.memoizedState.deps)?i.memoizedState=ns(t,a,n,r):(G.flags|=e,i.memoizedState=ns(1|t,a,n,r))}function os(e,t){is(8390656,8,e,t)}function ss(e,t){as(2048,8,e,t)}function cs(e){G.flags|=4;var t=G.updateQueue;if(t===null)t=Oo(),G.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ls(e){var t=Do().memoizedState;return cs({ref:t,nextImpl:e}),function(){if(X&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function us(e,t){return as(4,2,e,t)}function ds(e,t){return as(4,4,e,t)}function fs(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 ps(e,t,n){n=n==null?null:n.concat([e]),as(4,4,fs.bind(null,t,e),n)}function ms(){}function hs(e,t){var n=Do();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&vo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gs(e,t){var n=Do();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&vo(t,r[1]))return r[0];if(r=e(),fo){Ve(!0);try{e()}finally{Ve(!1)}}return n.memoizedState=[r,t],r}function _s(e,t,n){return n===void 0||so&1073741824&&!(Q&261930)?e.memoizedState=t:(e.memoizedState=n,e=fu(),G.lanes|=e,Ul|=e,n)}function vs(e,t,n,r){return Cr(n,t)?n:qa.current===null?!(so&42)||so&1073741824&&!(Q&261930)?(ec=!0,e.memoizedState=n):(e=fu(),G.lanes|=e,Ul|=e,t):(e=_s(e,n,r),Cr(e,t)||(ec=!0),e)}function ys(e,t,n,r,i){var a=j.p;j.p=a!==0&&8>a?a:8;var o=A.T,s={};A.T=s,js(e,!1,t,n);try{var c=i(),l=A.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?As(e,t,da(c,r),du(e)):As(e,t,r,du(e))}catch(n){As(e,t,{then:function(){},status:`rejected`,reason:n},du())}finally{j.p=a,o!==null&&s.types!==null&&(o.types=s.types),A.T=o}}function bs(){}function xs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ss(e).queue;ys(e,a,t,oe,n===null?bs:function(){return Cs(e),n(r)})}function Ss(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cs(e){var t=Ss(e);t.next===null&&(t=e.alternate.memoizedState),As(e,t.next.queue,{},du())}function ws(){return Xi(Qf)}function Ts(){return Do().memoizedState}function Es(){return Do().memoizedState}function Ds(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=du();e=Ra(n);var r=za(t,e,n);r!==null&&(pu(r,t,n),Ba(r,t,n)),t={cache:ra()},e.payload=t;return}t=t.return}}function Os(e,t,n){var r=du();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ms(e)?Ns(t,n):(n=ri(e,t,n,r),n!==null&&(pu(n,e,r),Ps(n,t,r)))}function ks(e,t,n){As(e,t,n,du())}function As(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ms(e))Ns(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,Cr(s,o))return ni(e,t,i,0),Fl===null&&ti(),!1}catch{}if(n=ri(e,t,i,r),n!==null)return pu(n,e,r),Ps(n,t,r),!0}return!1}function js(e,t,n,r){if(r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ms(e)){if(t)throw Error(i(479))}else t=ri(e,n,r,2),t!==null&&pu(t,e,2)}function Ms(e){var t=e.alternate;return e===G||t!==null&&t===G}function Ns(e,t){uo=lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ps(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nt(e,n)}}var Fs={readContext:Xi,use:Ao,useCallback:_o,useContext:_o,useEffect:_o,useImperativeHandle:_o,useLayoutEffect:_o,useInsertionEffect:_o,useMemo:_o,useReducer:_o,useRef:_o,useState:_o,useDebugValue:_o,useDeferredValue:_o,useTransition:_o,useSyncExternalStore:_o,useId:_o,useHostTransitionStatus:_o,useFormState:_o,useActionState:_o,useOptimistic:_o,useMemoCache:_o,useCacheRefresh:_o};Fs.useEffectEvent=_o;var Is={readContext:Xi,use:Ao,useCallback:function(e,t){return Eo().memoizedState=[e,t===void 0?null:t],e},useContext:Xi,useEffect:os,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),is(4194308,4,fs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return is(4194308,4,e,t)},useInsertionEffect:function(e,t){is(4,2,e,t)},useMemo:function(e,t){var n=Eo();t=t===void 0?null:t;var r=e();if(fo){Ve(!0);try{e()}finally{Ve(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Eo();if(n!==void 0){var i=n(t);if(fo){Ve(!0);try{n(t)}finally{Ve(!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=Os.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=Eo();return e={current:e},t.memoizedState=e},useState:function(e){e=Ho(e);var t=e.queue,n=ks.bind(null,G,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ms,useDeferredValue:function(e,t){return _s(Eo(),e,t)},useTransition:function(){var e=Ho(!1);return e=ys.bind(null,G,e.queue,!0,!1),Eo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=G,a=Eo();if(V){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Fl===null)throw Error(i(349));Q&127||Lo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,os(zo.bind(null,r,o,e),[e]),r.flags|=2048,ns(9,{destroy:void 0},Ro.bind(null,r,o,n,t),null),n},useId:function(){var e=Eo(),t=Fl.identifierPrefix;if(V){var n=Ti,r=wi;n=(r&~(1<<32-He(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=po++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=go++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ws,useFormState:Zo,useActionState:Zo,useOptimistic:function(e){var t=Eo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=js.bind(null,G,!0,n),n.dispatch=t,[e,t]},useMemoCache:jo,useCacheRefresh:function(){return Eo().memoizedState=Ds.bind(null,G)},useEffectEvent:function(e){var t=Eo(),n={impl:e};return t.memoizedState=n,function(){if(X&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ls={readContext:Xi,use:Ao,useCallback:hs,useContext:Xi,useEffect:ss,useImperativeHandle:ps,useInsertionEffect:us,useLayoutEffect:ds,useMemo:gs,useReducer:No,useRef:rs,useState:function(){return No(Mo)},useDebugValue:ms,useDeferredValue:function(e,t){return vs(Do(),K.memoizedState,e,t)},useTransition:function(){var e=No(Mo)[0],t=Do().memoizedState;return[typeof e==`boolean`?e:ko(e),t]},useSyncExternalStore:Io,useId:Ts,useHostTransitionStatus:ws,useFormState:Qo,useActionState:Qo,useOptimistic:function(e,t){return Uo(Do(),K,e,t)},useMemoCache:jo,useCacheRefresh:Es};Ls.useEffectEvent=ls;var Rs={readContext:Xi,use:Ao,useCallback:hs,useContext:Xi,useEffect:ss,useImperativeHandle:ps,useInsertionEffect:us,useLayoutEffect:ds,useMemo:gs,useReducer:Fo,useRef:rs,useState:function(){return Fo(Mo)},useDebugValue:ms,useDeferredValue:function(e,t){var n=Do();return K===null?_s(n,e,t):vs(n,K.memoizedState,e,t)},useTransition:function(){var e=Fo(Mo)[0],t=Do().memoizedState;return[typeof e==`boolean`?e:ko(e),t]},useSyncExternalStore:Io,useId:Ts,useHostTransitionStatus:ws,useFormState:ts,useActionState:ts,useOptimistic:function(e,t){var n=Do();return K===null?(n.baseState=e,[e,n.queue.dispatch]):Uo(n,K,e,t)},useMemoCache:jo,useCacheRefresh:Es};Rs.useEffectEvent=ls;function zs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Bs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=du(),i=Ra(r);i.payload=t,n!=null&&(i.callback=n),t=za(e,i,r),t!==null&&(pu(t,e,r),Ba(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=du(),i=Ra(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=za(e,i,r),t!==null&&(pu(t,e,r),Ba(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=du(),r=Ra(n);r.tag=2,t!=null&&(r.callback=t),t=za(e,r,n),t!==null&&(pu(t,e,n),Ba(t,e,n))}};function Vs(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?!wr(n,r)||!wr(i,a):!0}function Hs(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&&Bs.enqueueReplaceState(t,t.state,null)}function Us(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ws(e){Zr(e)}function Gs(e){console.error(e)}function Ks(e){Zr(e)}function qs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Js(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 Ys(e,t,n){return n=Ra(n),n.tag=3,n.payload={element:null},n.callback=function(){qs(e,t)},n}function Xs(e){return e=Ra(e),e.tag=3,e}function Zs(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(){Js(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Js(t,n,r),typeof i!=`function`&&(tu===null?tu=new Set([this]):tu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Qs(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&qi(t,n,a,!0),n=Qa.current,n!==null){switch(n.tag){case 31:case 13:return $a===null?Tu():n.alternate===null&&Hl===0&&(Hl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ba?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Wu(e,r,a)),!1;case 22:return n.flags|=65536,r===ba?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Wu(e,r,a)),!1}throw Error(i(435,n.tag))}return Wu(e,r,a),Tu(),!1}if(V)return t=Qa.current,t===null?(r!==Fi&&(t=Error(i(423),{cause:r}),W(_i(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=_i(r,n),a=Ys(e.stateNode,r,a),Va(e,a),Hl!==4&&(Hl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Fi&&(e=Error(i(422),{cause:r}),W(_i(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=_i(o,n),Jl===null?Jl=[o]:Jl.push(o),Hl!==4&&(Hl=2),t===null)return!0;r=_i(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ys(n.stateNode,r,e),Va(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`&&(tu===null||!tu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Xs(a),Zs(a,e,n,r),Va(n,a),!1}n=n.return}while(n!==null);return!1}var $s=Error(i(461)),ec=!1;function tc(e,t,n,r){t.child=e===null?Pa(t,null,n,r):Na(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 Yi(t),r=yo(e,t,n,o,a,i),s=Co(),e!==null&&!ec?(wo(e,t,i),Tc(e,t,i)):(V&&s&&Oi(t),t.flags|=1,tc(e,t,r,i),t.child)}function rc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!li(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,ic(e,t,a,r,i)):(e=fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ec(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?wr:n,n(o,r)&&e.ref===t.ref)return Tc(e,t,i)}return t.flags|=1,e=ui(a,r),e.ref=t.ref,e.return=t,t.child=e}function ic(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(wr(a,r)&&e.ref===t.ref)if(ec=!1,t.pendingProps=r=a,Ec(e,i))e.flags&131072&&(ec=!0);else return t.lanes=e.lanes,Tc(e,t,i)}return fc(e,t,n,r,i)}function ac(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 sc(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?Xa():Ya(t,a),no(t);else return r=t.lanes=536870912,sc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ha(t,null),Xa(),ro(t)):(ha(t,a.cachePool),Ya(t,a),ro(t),t.memoizedState=null);return tc(e,t,i,n),t.child}function oc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sc(e,t,n,r,i){var a=ma();return a=a===null?null:{parent:na._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ha(t,null),Xa(),no(t),e!==null&&qi(e,t,r,!0),t.childLanes=i,null}function cc(e,t){return t=bc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function lc(e,t,n){return Na(t,e.child,null,n),e=cc(t,t.pendingProps),e.flags|=2,io(t),t.memoizedState=null,e}function uc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(V){if(r.mode===`hidden`)return e=cc(t,r),t.lanes=536870912,oc(null,e);if(to(t),(e=Mi)?(e=rf(e,Pi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ci===null?null:{id:wi,overflow:Ti},retryLane:536870912,hydrationErrors:null},n=z(e),n.return=t,t.child=n,ji=t,Mi=null)):e=null,e===null)throw Ii(t);return t.lanes=536870912,null}return cc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(to(t),a)if(t.flags&256)t.flags&=-257,t=lc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ec||qi(e,t,n,!1),a=(n&e.childLanes)!==0,ec||a){if(r=Fl,r!==null&&(s=rt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,R(e,s),pu(r,e,s),$s;Tu(),t=lc(e,t,n)}else e=o.treeContext,Mi=cf(s.nextSibling),ji=t,V=!0,Ni=null,Pi=!1,e!==null&&Ai(t,e),t=cc(t,r),t.flags|=4096;return t}return e=ui(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function dc(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 fc(e,t,n,r,i){return Yi(t),n=yo(e,t,n,r,void 0,i),r=Co(),e!==null&&!ec?(wo(e,t,i),Tc(e,t,i)):(V&&r&&Oi(t),t.flags|=1,tc(e,t,n,i),t.child)}function pc(e,t,n,r,i,a){return Yi(t),t.updateQueue=null,n=xo(t,r,n,i),bo(e),r=Co(),e!==null&&!ec?(wo(e,t,a),Tc(e,t,a)):(V&&r&&Oi(t),t.flags|=1,tc(e,t,n,a),t.child)}function mc(e,t,n,r,i){if(Yi(t),t.stateNode===null){var a=oi,o=n.contextType;typeof o==`object`&&o&&(a=Xi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Bs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ia(t),o=n.contextType,a.context=typeof o==`object`&&o?Xi(o):oi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(zs(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&&Bs.enqueueReplaceState(a,a.state,null),Wa(t,r,a,i),Ua(),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=Us(n,s);a.props=c;var l=a.context,u=n.contextType;o=oi,typeof u==`object`&&u&&(o=Xi(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)&&Hs(t,a,r,o),Fa=!1;var f=t.memoizedState;a.state=f,Wa(t,r,a,i),Ua(),l=t.memoizedState,s||f!==l||Fa?(typeof d==`function`&&(zs(t,n,d,r),l=t.memoizedState),(c=Fa||Vs(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,La(e,t),o=t.memoizedProps,u=Us(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=oi,typeof l==`object`&&l&&(c=Xi(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)&&Hs(t,a,r,c),Fa=!1,f=t.memoizedState,a.state=f,Wa(t,r,a,i),Ua();var p=t.memoizedState;o!==d||f!==p||Fa||e!==null&&e.dependencies!==null&&Ji(e.dependencies)?(typeof s==`function`&&(zs(t,n,s,r),p=t.memoizedState),(u=Fa||Vs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ji(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,dc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Na(t,e.child,null,i),t.child=Na(t,null,n,i)):tc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Tc(e,t,i),e}function q(e,t,n,r){return zi(),t.flags|=256,tc(e,t,n,r),t.child}var hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gc(e){return{baseLanes:e,cachePool:ga()}}function _c(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Kl),e}function vc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(ao.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(V){if(a?eo(t):ro(t),(e=Mi)?(e=rf(e,Pi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ci===null?null:{id:wi,overflow:Ti},retryLane:536870912,hydrationErrors:null},n=z(e),n.return=t,t.child=n,ji=t,Mi=null)):e=null,e===null)throw Ii(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(ro(t),a=t.mode,c=bc({mode:`hidden`,children:c},a),r=pi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=gc(n),r.childLanes=_c(e,s,n),t.memoizedState=hc,oc(null,r)):(eo(t),yc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(eo(t),t.flags&=-257,t=xc(e,t,n)):t.memoizedState===null?(ro(t),c=r.fallback,a=t.mode,r=bc({mode:`visible`,children:r.children},a),c=pi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Na(t,e.child,null,n),r=t.child,r.memoizedState=gc(n),r.childLanes=_c(e,s,n),t.memoizedState=hc,t=oc(null,r)):(ro(t),t.child=e.child,t.flags|=128,t=null);else if(eo(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,W({value:r,source:null,stack:null}),t=xc(e,t,n)}else if(ec||qi(e,t,n,!1),s=(n&e.childLanes)!==0,ec||s){if(s=Fl,s!==null&&(r=rt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,R(e,r),pu(s,e,r),$s;af(c)||Tu(),t=xc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Mi=cf(c.nextSibling),ji=t,V=!0,Ni=null,Pi=!1,e!==null&&Ai(t,e),t=yc(t,r.children),t.flags|=4096);return t}return a?(ro(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ui(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=pi(c,a,n,null),c.flags|=2):c=ui(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,oc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=gc(n):(a=c.cachePool,a===null?a=ga():(l=na._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=_c(e,s,n),t.memoizedState=hc,oc(e.child,r)):(eo(t),n=e.child,e=n.sibling,n=ui(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function yc(e,t){return t=bc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function bc(e,t){return e=ci(22,e,null,t),e.lanes=0,e}function xc(e,t,n){return Na(t,e.child,null,n),e=yc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gi(e.return,t,n)}function Cc(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 wc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=ao.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,N(ao,o),tc(e,t,r,n),r=V?xi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sc(e,n,t);else if(e.tag===19)Sc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&oo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Cc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&oo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Cc(t,!0,n,null,a,r);break;case`together`:Cc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Tc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ul|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(qi(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=ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ec(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Ji(e))):!0}function Dc(e,t,n){switch(t.tag){case 3:me(t,t.stateNode.containerInfo),Ui(t,na,e.memoizedState.cache),zi();break;case 27:case 5:ge(t);break;case 4:me(t,t.stateNode.containerInfo);break;case 10:Ui(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,to(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(eo(t),e=Tc(e,t,n),e===null?null:e.sibling):vc(e,t,n):(eo(t),t.flags|=128,null);eo(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(qi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return wc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),N(ao,ao.current),r)break;return null;case 22:return t.lanes=0,ac(e,t,n,t.pendingProps);case 24:Ui(t,na,e.memoizedState.cache)}return Tc(e,t,n)}function Oc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ec=!0;else{if(!Ec(e,n)&&!(t.flags&128))return ec=!1,Dc(e,t,n);ec=!!(e.flags&131072)}else ec=!1,V&&t.flags&1048576&&Di(t,xi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ca(t.elementType),t.type=e,typeof e==`function`)li(e)?(r=Us(e,r),t.tag=1,t=mc(null,t,e,r,n)):(t.tag=0,t=fc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=nc(null,t,e,r,n);break a}else if(a===E){t.tag=14,t=rc(null,t,e,r,n);break a}}throw t=ie(e)||e,Error(i(306,t,``))}}return t;case 0:return fc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Us(r,t.pendingProps),mc(e,t,r,a,n);case 3:a:{if(me(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,La(e,t),Wa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ui(t,na,r),r!==o.cache&&Ki(t,[na],n,!0),Ua(),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=q(e,t,r,n);break a}else if(r!==a){a=_i(Error(i(424)),t),W(a),t=q(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Mi=cf(e.firstChild),ji=t,V=!0,Ni=null,Pi=!0,n=Pa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(zi(),r===a){t=Tc(e,t,n);break a}tc(e,t,r,n)}t=t.child}return t;case 26:return dc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:V||(n=t.type,e=t.pendingProps,r=Bd(fe.current).createElement(n),r[lt]=t,r[I]=e,Pd(r,n,e),bt(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ge(t),e===null&&V&&(r=t.stateNode=ff(t.type,t.pendingProps,fe.current),ji=t,Pi=!0,a=Mi,Zd(t.type)?(lf=a,Mi=cf(r.firstChild)):Mi=a),tc(e,t,t.pendingProps.children,n),dc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&V&&((a=r=Mi)&&(r=tf(r,t.type,t.pendingProps,Pi),r===null?a=!1:(t.stateNode=r,ji=t,Mi=cf(r.firstChild),Pi=!1,a=!0)),a||Ii(t)),ge(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ud(a,o)?r=null:s!==null&&Ud(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=yo(e,t,So,null,null,n),Qf._currentValue=a),dc(e,t),tc(e,t,r,n),t.child;case 6:return e===null&&V&&((e=n=Mi)&&(n=nf(n,t.pendingProps,Pi),n===null?e=!1:(t.stateNode=n,ji=t,Mi=null,e=!0)),e||Ii(t)),null;case 13:return vc(e,t,n);case 4:return me(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Na(t,null,r,n):tc(e,t,r,n),t.child;case 11:return nc(e,t,t.type,t.pendingProps,n);case 7:return tc(e,t,t.pendingProps,n),t.child;case 8:return tc(e,t,t.pendingProps.children,n),t.child;case 12:return tc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ui(t,t.type,r.value),tc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Yi(t),a=Xi(a),r=r(a),t.flags|=1,tc(e,t,r,n),t.child;case 14:return rc(e,t,t.type,t.pendingProps,n);case 15:return ic(e,t,t.type,t.pendingProps,n);case 19:return wc(e,t,n);case 31:return uc(e,t,n);case 22:return ac(e,t,n,t.pendingProps);case 24:return Yi(t),r=Xi(na),e===null?(a=ma(),a===null&&(a=Fl,o=ra(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ia(t),Ui(t,na,a)):((e.lanes&n)!==0&&(La(e,t),Wa(t,null,null,n),Ua()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ui(t,na,r),r!==a.cache&&Ki(t,[na],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ui(t,na,r))),tc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function kc(e){e.flags|=4}function Ac(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Su())e.flags|=8192;else throw wa=ba,va}else e.flags&=-16777217}function jc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(Su())e.flags|=8192;else throw wa=ba,va}function Mc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ze(),e.lanes|=t,ql|=t)}function Nc(e,t){if(!V)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Fc(e,t,n){var r=t.pendingProps;switch(ki(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pc(t),null;case 1:return Pc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Wi(na),he(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(H(t)?kc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,U())),Pc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(kc(t),o===null?(Pc(t),Ac(t,a,null,r,n)):(Pc(t),jc(t,o))):o?o===e.memoizedState?(Pc(t),t.flags&=-16777217):(kc(t),Pc(t),jc(t,o)):(e=e.memoizedProps,e!==r&&kc(t),Pc(t),Ac(t,a,e,r,n)),null;case 27:if(_e(t),n=fe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&kc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Pc(t),null}e=ue.current,H(t)?Li(t,e):(e=ff(a,r,n),t.stateNode=e,kc(t))}return Pc(t),null;case 5:if(_e(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&kc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Pc(t),null}if(o=ue.current,H(t))Li(t,o);else{var s=Bd(fe.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[lt]=t,o[I]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&kc(t)}}return Pc(t),Ac(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&kc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=fe.current,H(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ji,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[lt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||Ii(t,!0)}else e=Bd(e).createTextNode(r),e[lt]=t,t.stateNode=e}return Pc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=H(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[lt]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pc(t),e=!1}else n=U(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(io(t),t):(io(t),null);if(t.flags&128)throw Error(i(558))}return Pc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=H(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[lt]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pc(t),a=!1}else a=U(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(io(t),t):(io(t),null)}return io(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),Mc(t,t.updateQueue),Pc(t),null);case 4:return he(),e===null&&xd(t.stateNode.containerInfo),Pc(t),null;case 10:return Wi(t.type),Pc(t),null;case 19:if(M(ao),r=t.memoizedState,r===null)return Pc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Nc(r,!1);else{if(Hl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=oo(e),o!==null){for(t.flags|=128,Nc(r,!1),e=o.updateQueue,t.updateQueue=e,Mc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)di(n,e),n=n.sibling;return N(ao,ao.current&1|2),V&&Ei(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ae()>$l&&(t.flags|=128,a=!0,Nc(r,!1),t.lanes=4194304)}else{if(!a)if(e=oo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Mc(t,e),Nc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!V)return Pc(t),null}else 2*Ae()-r.renderingStartTime>$l&&n!==536870912&&(t.flags|=128,a=!0,Nc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Pc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ae(),e.sibling=null,n=ao.current,N(ao,a?n&1|2:n&1),V&&Ei(t,r.treeForkCount),e);case 22:case 23:return io(t),Za(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Pc(t),t.subtreeFlags&6&&(t.flags|=8192)):Pc(t),n=t.updateQueue,n!==null&&Mc(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&&M(pa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Wi(na),Pc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Ic(e,t){switch(ki(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wi(na),he(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _e(t),null;case 31:if(t.memoizedState!==null){if(io(t),t.alternate===null)throw Error(i(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(io(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(ao),null;case 4:return he(),null;case 10:return Wi(t.type),null;case 22:case 23:return io(t),Za(),e!==null&&M(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wi(na),null;case 25:return null;default:return null}}function J(e,t){switch(ki(t),t.tag){case 3:Wi(na),he();break;case 26:case 27:case 5:_e(t);break;case 4:he();break;case 31:t.memoizedState!==null&&io(t);break;case 13:io(t);break;case 19:M(ao);break;case 10:Wi(t.type);break;case 22:case 23:io(t),Za(),e!==null&&M(pa);break;case 24:Wi(na)}}function Lc(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){Uu(t,t.return,e)}}function Rc(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){Uu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Uu(t,t.return,e)}}function zc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ka(t,n)}catch(t){Uu(e,e.return,t)}}}function Bc(e,t,n){n.props=Us(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Uu(e,t,n)}}function Vc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Uu(e,t,n)}}function Hc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Uu(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){Uu(e,t,n)}else n.current=null}function Uc(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){Uu(e,e.return,t)}}function Wc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[I]=t}catch(t){Uu(e,e.return,t)}}function Gc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Kc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Gc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}function Jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function Yc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[lt]=e,t[I]=n}catch(t){Uu(e,e.return,t)}}var Xc=!1,Zc=!1,Qc=!1,$c=typeof WeakSet==`function`?WeakSet:Set,Y=null;function el(e,t){if(e=e.containerInfo,Rd=sp,e=Or(e),kr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,Y=t;Y!==null;)if(t=Y,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Y=e;else for(;Y!==null;){switch(t=Y,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Us(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Uu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}}function tl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:gl(e,n),r&4&&Lc(5,n);break;case 1:if(gl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Uu(n,n.return,e)}else{var i=Us(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Uu(n,n.return,e)}}r&64&&zc(n),r&512&&Vc(n,n.return);break;case 3:if(gl(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{Ka(e,t)}catch(e){Uu(n,n.return,e)}}break;case 27:t===null&&r&4&&Yc(n);case 26:case 5:gl(e,n),t===null&&r&4&&Uc(n),r&512&&Vc(n,n.return);break;case 12:gl(e,n);break;case 31:gl(e,n),r&4&&sl(e,n);break;case 13:gl(e,n),r&4&&cl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=qu.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||Xc,!r){t=t!==null&&t.memoizedState!==null||Zc,i=Xc;var a=Zc;Xc=r,(Zc=t)&&!a?vl(e,n,(n.subtreeFlags&8772)!=0):gl(e,n),Xc=i,Zc=a}break;case 30:break;default:gl(e,n)}}function nl(e){var t=e.alternate;t!==null&&(e.alternate=null,nl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&>(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 rl=null,il=!1;function al(e,t,n){for(n=n.child;n!==null;)ol(e,t,n),n=n.sibling}function ol(e,t,n){if(Be&&typeof Be.onCommitFiberUnmount==`function`)try{Be.onCommitFiberUnmount(ze,n)}catch{}switch(n.tag){case 26:Zc||Hc(n,t),al(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Zc||Hc(n,t);var r=rl,i=il;Zd(n.type)&&(rl=n.stateNode,il=!1),al(e,t,n),pf(n.stateNode),rl=r,il=i;break;case 5:Zc||Hc(n,t);case 6:if(r=rl,i=il,rl=null,al(e,t,n),rl=r,il=i,rl!==null)if(il)try{(rl.nodeType===9?rl.body:rl.nodeName===`HTML`?rl.ownerDocument.body:rl).removeChild(n.stateNode)}catch(e){Uu(n,t,e)}else try{rl.removeChild(n.stateNode)}catch(e){Uu(n,t,e)}break;case 18:rl!==null&&(il?(e=rl,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(rl,n.stateNode));break;case 4:r=rl,i=il,rl=n.stateNode.containerInfo,il=!0,al(e,t,n),rl=r,il=i;break;case 0:case 11:case 14:case 15:Rc(2,n,t),Zc||Rc(4,n,t),al(e,t,n);break;case 1:Zc||(Hc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Bc(n,t,r)),al(e,t,n);break;case 21:al(e,t,n);break;case 22:Zc=(r=Zc)||n.memoizedState!==null,al(e,t,n),Zc=r;break;default:al(e,t,n)}}function sl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Uu(t,t.return,e)}}}function cl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Uu(t,t.return,e)}}function ll(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new $c),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new $c),t;default:throw Error(i(435,e.tag))}}function ul(e,t){var n=ll(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ju.bind(null,e,t);t.then(r,r)}})}function dl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){rl=c.stateNode,il=!1;break a}break;case 5:rl=c.stateNode,il=!1;break a;case 3:case 4:rl=c.stateNode.containerInfo,il=!0;break a}c=c.return}if(rl===null)throw Error(i(160));ol(o,s,a),rl=null,il=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)pl(t,e),t=t.sibling}var fl=null;function pl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:dl(t,e),ml(e),r&4&&(Rc(3,e,e.return),Lc(3,e),Rc(5,e,e.return));break;case 1:dl(t,e),ml(e),r&512&&(Zc||n===null||Hc(n,n.return)),r&64&&Xc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=fl;if(dl(t,e),ml(e),r&512&&(Zc||n===null||Hc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ht]||o[lt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Pd(o,r,n),o[lt]=e,bt(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[lt]=e,bt(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode);else e.stateNode=If(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Wc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:dl(t,e),ml(e),r&512&&(Zc||n===null||Hc(n,n.return)),n!==null&&r&4&&Wc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(dl(t,e),ml(e),r&512&&(Zc||n===null||Hc(n,n.return)),e.flags&32){a=e.stateNode;try{Kt(a,``)}catch(t){Uu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Wc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Qc=!0);break;case 6:if(dl(t,e),ml(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Uu(e,e.return,t)}}break;case 3:if(Bf=null,a=fl,fl=gf(t.containerInfo),dl(t,e),fl=a,ml(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Uu(e,e.return,t)}Qc&&(Qc=!1,hl(e));break;case 4:r=fl,fl=gf(e.stateNode.containerInfo),dl(t,e),ml(e),fl=r;break;case 12:dl(t,e),ml(e);break;case 31:dl(t,e),ml(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 13:dl(t,e),ml(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Zl=Ae()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Xc,d=Zc;if(Xc=u||a,Zc=d||l,dl(t,e),Zc=d,Xc=u,ml(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Xc||Zc||_l(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Uu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Uu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?$d(m,!0):$d(l.stateNode,!1)}catch(e){Uu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ul(e,n))));break;case 19:dl(t,e),ml(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 30:break;case 21:break;default:dl(t,e),ml(e)}}function ml(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Gc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Jc(e,Kc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Kt(o,``),n.flags&=-33),Jc(e,Kc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;qc(e,Kc(e),s);break;default:throw Error(i(161))}}catch(t){Uu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;hl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function gl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)tl(e,t.alternate,t),t=t.sibling}function _l(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Rc(4,t,t.return),_l(t);break;case 1:Hc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Bc(t,t.return,n),_l(t);break;case 27:pf(t.stateNode);case 26:case 5:Hc(t,t.return),_l(t);break;case 22:t.memoizedState===null&&_l(t);break;case 30:_l(t);break;default:_l(t)}e=e.sibling}}function vl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:vl(i,a,n),Lc(4,a);break;case 1:if(vl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Uu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ga(c[i],s)}catch(e){Uu(r,r.return,e)}}n&&o&64&&zc(a),Vc(a,a.return);break;case 27:Yc(a);case 26:case 5:vl(i,a,n),n&&r===null&&o&4&&Uc(a),Vc(a,a.return);break;case 12:vl(i,a,n);break;case 31:vl(i,a,n),n&&o&4&&sl(i,a);break;case 13:vl(i,a,n),n&&o&4&&cl(i,a);break;case 22:a.memoizedState===null&&vl(i,a,n),Vc(a,a.return);break;case 30:break;default:vl(i,a,n)}t=t.sibling}}function yl(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&&ia(n))}function bl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ia(e))}function xl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sl(e,t,n,r),t=t.sibling}function Sl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:xl(e,t,n,r),i&2048&&Lc(9,t);break;case 1:xl(e,t,n,r);break;case 3:xl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ia(e)));break;case 12:if(i&2048){xl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Uu(t,t.return,e)}}else xl(e,t,n,r);break;case 31:xl(e,t,n,r);break;case 13:xl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?xl(e,t,n,r):(a._visibility|=2,Cl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?xl(e,t,n,r):wl(e,t),i&2048&&yl(o,t);break;case 24:xl(e,t,n,r),i&2048&&bl(t.alternate,t);break;default:xl(e,t,n,r)}}function Cl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Cl(a,o,s,c,i),Lc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Cl(a,o,s,c,i)):u._visibility&2?Cl(a,o,s,c,i):wl(a,o),i&&l&2048&&yl(o.alternate,o);break;case 24:Cl(a,o,s,c,i),i&&l&2048&&bl(o.alternate,o);break;default:Cl(a,o,s,c,i)}t=t.sibling}}function wl(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:wl(n,r),i&2048&&yl(r.alternate,r);break;case 24:wl(n,r),i&2048&&bl(r.alternate,r);break;default:wl(n,r)}t=t.sibling}}var Tl=8192;function El(e,t,n){if(e.subtreeFlags&Tl)for(e=e.child;e!==null;)Dl(e,t,n),e=e.sibling}function Dl(e,t,n){switch(e.tag){case 26:El(e,t,n),e.flags&Tl&&e.memoizedState!==null&&Gf(n,fl,e.memoizedState,e.memoizedProps);break;case 5:El(e,t,n);break;case 3:case 4:var r=fl;fl=gf(e.stateNode.containerInfo),El(e,t,n),fl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Tl,Tl=16777216,El(e,t,n),Tl=r):El(e,t,n));break;default:El(e,t,n)}}function Ol(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 kl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Y=r,Ml(r,e)}Ol(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Al(e),e=e.sibling}function Al(e){switch(e.tag){case 0:case 11:case 15:kl(e),e.flags&2048&&Rc(9,e,e.return);break;case 3:kl(e);break;case 12:kl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jl(e)):kl(e);break;default:kl(e)}}function jl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Y=r,Ml(r,e)}Ol(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Rc(8,t,t.return),jl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,jl(t));break;default:jl(t)}e=e.sibling}}function Ml(e,t){for(;Y!==null;){var n=Y;switch(n.tag){case 0:case 11:case 15:Rc(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:ia(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Y=r;else a:for(n=e;Y!==null;){r=Y;var i=r.sibling,a=r.return;if(nl(r),r===n){Y=null;break a}if(i!==null){i.return=a,Y=i;break a}Y=a}}}var Nl={getCacheForType:function(e){var t=Xi(na),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Xi(na).controller.signal}},Pl=typeof WeakMap==`function`?WeakMap:Map,X=0,Fl=null,Z=null,Q=0,Il=0,Ll=null,Rl=!1,zl=!1,Bl=!1,Vl=0,Hl=0,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=null,Yl=null,Xl=!1,Zl=0,Ql=0,$l=1/0,eu=null,tu=null,nu=0,ru=null,iu=null,au=0,ou=0,su=null,cu=null,lu=0,uu=null;function du(){return X&2&&Q!==0?Q&-Q:A.T===null?ot():ud()}function fu(){if(Kl===0)if(!(Q&536870912)||V){var e=qe;qe<<=1,!(qe&3932160)&&(qe=262144),Kl=e}else Kl=536870912;return e=Qa.current,e!==null&&(e.flags|=32),Kl}function pu(e,t,n){(e===Fl&&(Il===2||Il===9)||e.cancelPendingCommit!==null)&&(bu(e,0),_u(e,Q,Kl,!1)),$e(e,n),(!(X&2)||e!==Fl)&&(e===Fl&&(!(X&2)&&(Wl|=n),Hl===4&&_u(e,Q,Kl,!1)),nd(e))}function mu(e,t,n){if(X&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ye(e,t),a=r?Ou(e,t):Eu(e,t,!0),o=r;do{if(a===0){zl&&!r&&_u(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!gu(n)){a=Eu(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=Jl;var l=c.current.memoizedState.isDehydrated;if(l&&(bu(c,s).flags|=256),s=Eu(c,s,!1),s!==2){if(Bl&&!l){c.errorRecoveryDisabledLanes|=o,Wl|=o,a=4;break a}o=Yl,Yl=a,o!==null&&(Yl===null?Yl=o:Yl.push.apply(Yl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){bu(e,0),_u(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:_u(r,t,Kl,!Rl);break a;case 2:Yl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Zl+300-Ae(),10<a)){if(_u(r,t,Kl,!Rl),Je(r,0,!0)!==0)break a;au=t,r.timeoutHandle=Kd(hu.bind(null,r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,o,`Throttled`,-0,0),a);break a}hu(r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,o,null,-0,0)}}break}while(1);nd(e)}function hu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},Dl(t,a,d);var m=(a&62914560)===a?Zl-Ae():(a&4194048)===a?Ql-Ae():0;if(m=qf(d,m),m!==null){au=a,e.cancelPendingCommit=m(Fu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),_u(e,a,o,!l);return}}Fu(e,t,a,n,r,i,o,s,c)}function gu(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(!Cr(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 _u(e,t,n,r){t&=~Gl,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-He(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&tt(e,n,t)}function vu(){return X&6?!0:(rd(0,!1),!1)}function yu(){if(Z!==null){if(Il===0)var e=Z.return;else e=Z,Hi=Vi=null,To(e),Da=null,Oa=0,e=Z;for(;e!==null;)J(e.alternate,e),e=e.return;Z=null}}function bu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),au=0,yu(),Fl=e,Z=n=ui(e.current,null),Q=t,Il=0,Ll=null,Rl=!1,zl=Ye(e,t),Bl=!1,ql=Kl=Gl=Wl=Ul=Hl=0,Yl=Jl=null,Xl=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-He(r),a=1<<i;t|=e[i],r&=~a}return Vl=t,ti(),n}function xu(e,t){G=null,A.H=Fs,t===_a||t===ya?(t=Ta(),Il=3):t===va?(t=Ta(),Il=4):Il=t===$s?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ll=t,Z===null&&(Hl=1,qs(e,_i(t,e.current)))}function Su(){var e=Qa.current;return e===null?!0:(Q&4194048)===Q?$a===null:(Q&62914560)===Q||Q&536870912?e===$a:!1}function Cu(){var e=A.H;return A.H=Fs,e===null?Fs:e}function wu(){var e=A.A;return A.A=Nl,e}function Tu(){Hl=4,Rl||(Q&4194048)!==Q&&Qa.current!==null||(zl=!0),!(Ul&134217727)&&!(Wl&134217727)||Fl===null||_u(Fl,Q,Kl,!1)}function Eu(e,t,n){var r=X;X|=2;var i=Cu(),a=wu();(Fl!==e||Q!==t)&&(eu=null,bu(e,t)),t=!1;var o=Hl;a:do try{if(Il!==0&&Z!==null){var s=Z,c=Ll;switch(Il){case 8:yu(),o=6;break a;case 3:case 2:case 9:case 6:Qa.current===null&&(t=!0);var l=Il;if(Il=0,Ll=null,Mu(e,s,c,l),n&&zl){o=0;break a}break;default:l=Il,Il=0,Ll=null,Mu(e,s,c,l)}}Du(),o=Hl;break}catch(t){xu(e,t)}while(1);return t&&e.shellSuspendCounter++,Hi=Vi=null,X=r,A.H=i,A.A=a,Z===null&&(Fl=null,Q=0,ti()),o}function Du(){for(;Z!==null;)Au(Z)}function Ou(e,t){var n=X;X|=2;var r=Cu(),a=wu();Fl!==e||Q!==t?(eu=null,$l=Ae()+500,bu(e,t)):zl=Ye(e,t);a:do try{if(Il!==0&&Z!==null){t=Z;var o=Ll;b:switch(Il){case 1:Il=0,Ll=null,Mu(e,t,o,1);break;case 2:case 9:if(xa(o)){Il=0,Ll=null,ju(t);break}t=function(){Il!==2&&Il!==9||Fl!==e||(Il=7),nd(e)},o.then(t,t);break a;case 3:Il=7;break a;case 4:Il=5;break a;case 7:xa(o)?(Il=0,Ll=null,ju(t)):(Il=0,Ll=null,Mu(e,t,o,7));break;case 5:var s=null;switch(Z.tag){case 26:s=Z.memoizedState;case 5:case 27:var c=Z;if(s?Wf(s):c.stateNode.complete){Il=0,Ll=null;var l=c.sibling;if(l!==null)Z=l;else{var u=c.return;u===null?Z=null:(Z=u,Nu(u))}break b}}Il=0,Ll=null,Mu(e,t,o,5);break;case 6:Il=0,Ll=null,Mu(e,t,o,6);break;case 8:yu(),Hl=6;break a;default:throw Error(i(462))}}ku();break}catch(t){xu(e,t)}while(1);return Hi=Vi=null,A.H=r,A.A=a,X=n,Z===null?(Fl=null,Q=0,ti(),Hl):0}function ku(){for(;Z!==null&&!Oe();)Au(Z)}function Au(e){var t=Oc(e.alternate,e,Vl);e.memoizedProps=e.pendingProps,t===null?Nu(e):Z=t}function ju(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=pc(n,t,t.pendingProps,t.type,void 0,Q);break;case 11:t=pc(n,t,t.pendingProps,t.type.render,t.ref,Q);break;case 5:To(t);default:J(n,t),t=Z=di(t,Vl),t=Oc(n,t,Vl)}e.memoizedProps=e.pendingProps,t===null?Nu(e):Z=t}function Mu(e,t,n,r){Hi=Vi=null,To(t),Da=null,Oa=0;var i=t.return;try{if(Qs(e,i,t,n,Q)){Hl=1,qs(e,_i(n,e.current)),Z=null;return}}catch(t){if(i!==null)throw Z=i,t;Hl=1,qs(e,_i(n,e.current)),Z=null;return}t.flags&32768?(V||r===1?e=!0:zl||Q&536870912?e=!1:(Rl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Qa.current,r!==null&&r.tag===13&&(r.flags|=16384))),Pu(t,e)):Nu(t)}function Nu(e){var t=e;do{if(t.flags&32768){Pu(t,Rl);return}e=t.return;var n=Fc(t.alternate,t,Vl);if(n!==null){Z=n;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);Hl===0&&(Hl=5)}function Pu(e,t){do{var n=Ic(e.alternate,e);if(n!==null){n.flags&=32767,Z=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Z=e;return}Z=e=n}while(e!==null);Hl=6,Z=null}function Fu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Bu();while(nu!==0);if(X&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ei,et(e,n,o,s,c,l),e===Fl&&(Z=Fl=null,Q=0),iu=t,ru=e,au=n,ou=o,su=a,cu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Yu(Pe,function(){return Vu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=A.T,A.T=null,a=j.p,j.p=2,s=X,X|=4;try{el(e,t,n)}finally{X=s,j.p=a,A.T=r}}nu=1,Iu(),Lu(),Ru()}}function Iu(){if(nu===1){nu=0;var e=ru,t=iu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=A.T,A.T=null;var r=j.p;j.p=2;var i=X;X|=4;try{pl(t,e);var a=zd,o=Or(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Dr(s.ownerDocument.documentElement,s)){if(c!==null&&kr(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 _=Er(s,h),v=Er(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Rd,zd=Rd=null}finally{X=i,j.p=r,A.T=n}}e.current=t,nu=2}}function Lu(){if(nu===2){nu=0;var e=ru,t=iu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=A.T,A.T=null;var r=j.p;j.p=2;var i=X;X|=4;try{tl(e,t.alternate,t)}finally{X=i,j.p=r,A.T=n}}nu=3}}function Ru(){if(nu===4||nu===3){nu=0,ke();var e=ru,t=iu,n=au,r=cu;t.subtreeFlags&10256||t.flags&10256?nu=5:(nu=0,iu=ru=null,zu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(tu=null),at(n),t=t.stateNode,Be&&typeof Be.onCommitFiberRoot==`function`)try{Be.onCommitFiberRoot(ze,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=A.T,i=j.p,j.p=2,A.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{A.T=t,j.p=i}}au&3&&Bu(),nd(e),i=e.pendingLanes,n&261930&&i&42?e===uu?lu++:(lu=0,uu=e):lu=0,rd(0,!1)}}function zu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ia(t)))}function Bu(){return Iu(),Lu(),Ru(),Vu()}function Vu(){if(nu!==5)return!1;var e=ru,t=ou;ou=0;var n=at(au),r=A.T,a=j.p;try{j.p=32>n?32:n,A.T=null,n=su,su=null;var o=ru,s=au;if(nu=0,iu=ru=null,au=0,X&6)throw Error(i(331));var c=X;if(X|=4,Al(o.current),Sl(o,o.current,s,n),X=c,rd(0,!1),Be&&typeof Be.onPostCommitFiberRoot==`function`)try{Be.onPostCommitFiberRoot(ze,o)}catch{}return!0}finally{j.p=a,A.T=r,zu(e,t)}}function Hu(e,t,n){t=_i(n,t),t=Ys(e.stateNode,t,2),e=za(e,t,2),e!==null&&($e(e,2),nd(e))}function Uu(e,t,n){if(e.tag===3)Hu(e,e,n);else for(;t!==null;){if(t.tag===3){Hu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(tu===null||!tu.has(r))){e=_i(n,e),n=Xs(2),r=za(t,n,2),r!==null&&(Zs(n,r,t,e),$e(r,2),nd(r));break}}t=t.return}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pl;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)||(Bl=!0,i.add(n),e=Gu.bind(null,e,t,n),t.then(e,e))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Fl===e&&(Q&n)===n&&(Hl===4||Hl===3&&(Q&62914560)===Q&&300>Ae()-Zl?!(X&2)&&bu(e,0):Gl|=n,ql===Q&&(ql=0)),nd(e)}function Ku(e,t){t===0&&(t=Ze()),e=R(e,t),e!==null&&($e(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ku(e,n)}function Yu(e,t){return Ee(e,t)}var Xu=null,Zu=null,Qu=!1,$u=!1,ed=!1,td=0;function nd(e){e!==Zu&&e.next===null&&(Zu===null?Xu=Zu=e:Zu=Zu.next=e),$u=!0,Qu||(Qu=!0,ld())}function rd(e,t){if(!ed&&$u){ed=!0;do for(var n=!1,r=Xu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-He(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=Q,a=Je(r,r===Fl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ye(r,a)||(n=!0,cd(r,a));r=r.next}while(n);ed=!1}}function id(){ad()}function ad(){$u=Qu=!1;var e=0;td!==0&&Gd()&&(e=td);for(var t=Ae(),n=null,r=Xu;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?Xu=i:n.next=i,i===null&&(Zu=n)):(n=r,(e!==0||a&3)&&($u=!0)),r=i}nu!==0&&nu!==5||rd(e,!1),td!==0&&(td=0)}function od(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-He(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Xe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Fl,n=Q,n=Je(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Il===2||Il===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&De(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ye(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&De(r),at(n)){case 2:case 8:n=Ne;break;case 32:n=Pe;break;case 268435456:n=Ie;break;default:n=Pe}return r=sd.bind(null,e),n=Ee(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&De(r),e.callbackPriority=2,e.callbackNode=null,2}function sd(e,t){if(nu!==0&&nu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Bu()&&e.callbackNode!==n)return null;var r=Q;return r=Je(e,e===Fl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(mu(e,r,t),od(e,Ae()),e.callbackNode!=null&&e.callbackNode===n?sd.bind(null,e):null)}function cd(e,t){if(Bu())return null;mu(e,t,!0)}function ld(){Yd(function(){X&6?Ee(Me,id):ad()})}function ud(){if(td===0){var e=sa;e===0&&(e=Ke,Ke<<=1,!(Ke&261888)&&(Ke=256)),td=e}return td}function dd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:$t(``+e)}function fd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function pd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=dd((i[I]||null).action),o=r.submitter;o&&(t=(t=o[I]||null)?dd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Sn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(td!==0){var e=o?fd(i,o):new FormData(i);xs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?fd(i,o):new FormData(i),xs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var md=0;md<Yr.length;md++){var hd=Yr[md];Xr(hd.toLowerCase(),`on`+(hd[0].toUpperCase()+hd.slice(1)))}Xr(Vr,`onAnimationEnd`),Xr(Hr,`onAnimationIteration`),Xr(Ur,`onAnimationStart`),Xr(`dblclick`,`onDoubleClick`),Xr(`focusin`,`onFocus`),Xr(`focusout`,`onBlur`),Xr(Wr,`onTransitionRun`),Xr(Gr,`onTransitionStart`),Xr(Kr,`onTransitionCancel`),Xr(qr,`onTransitionEnd`),wt(`onMouseEnter`,[`mouseout`,`mouseover`]),wt(`onMouseLeave`,[`mouseout`,`mouseover`]),wt(`onPointerEnter`,[`pointerout`,`pointerover`]),wt(`onPointerLeave`,[`pointerout`,`pointerover`]),Ct(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ct(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ct(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ct(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ct(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ct(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var gd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),_d=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(gd));function vd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Zr(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){Zr(e)}i.currentTarget=null,a=c}}}}function $(e,t){var n=t[dt];n===void 0&&(n=t[dt]=new Set);var r=e+`__bubble`;n.has(r)||(Sd(t,e,2,!1),n.add(r))}function yd(e,t,n){var r=0;t&&(r|=4),Sd(n,e,r,t)}var bd=`_reactListening`+Math.random().toString(36).slice(2);function xd(e){if(!e[bd]){e[bd]=!0,xt.forEach(function(t){t!==`selectionchange`&&(_d.has(t)||yd(t,!1,e),yd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bd]||(t[bd]=!0,yd(`selectionchange`,!1,t))}}function Sd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!dn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Cd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=_t(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}cn(function(){var r=a,i=nn(n),s=[];a:{var c=Jr.get(e);if(c!==void 0){var l=Sn,u=e;switch(e){case`keypress`:if(_n(n)===0)break a;case`keydown`:case`keyup`:l=Bn;break;case`focusin`:u=`focus`,l=jn;break;case`focusout`:u=`blur`,l=jn;break;case`beforeblur`:case`afterblur`:l=jn;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=kn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=An;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Hn;break;case Vr:case Hr:case Ur:l=Mn;break;case qr:l=Un;break;case`scroll`:case`scrollend`:l=wn;break;case`wheel`:l=Wn;break;case`copy`:case`cut`:case`paste`:l=Nn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Vn;break;case`toggle`:case`beforetoggle`:l=Gn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=ln(m,p),g!=null&&d.push(wd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==tn&&(u=n.relatedTarget||n.fromElement)&&(_t(u)||u[ut]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?_t(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=kn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Vn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:yt(l),h=u==null?c:yt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,_t(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ed,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Dd(s,c,l,d,!1),u!==null&&f!==null&&Dd(s,f,u,d,!0)}}a:{if(c=r?yt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=dr;else if(ar(c))if(fr)v=xr;else{v=yr;var y=vr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Xt(r.elementType)&&(v=dr):v=br;if(v&&=v(e,r)){or(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Ht(c,`number`,c.value)}switch(y=r?yt(r):window,e){case`focusin`:(ar(y)||y.contentEditable===`true`)&&(jr=y,Mr=r,Nr=null);break;case`focusout`:Nr=Mr=jr=null;break;case`mousedown`:Pr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Pr=!1,Fr(s,n,i);break;case`selectionchange`:if(Ar)break;case`keydown`:case`keyup`:Fr(s,n,i)}var b;if(qn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else tr?$n(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Xn&&n.locale!==`ko`&&(tr||x!==`onCompositionStart`?x===`onCompositionEnd`&&tr&&(b=gn()):(pn=i,mn=`value`in pn?pn.value:pn.textContent,tr=!0)),y=Td(r,x),0<y.length&&(x=new Pn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=er(n),b!==null&&(x.data=b)))),(b=Yn?nr(e,n):rr(e,n))&&(x=Td(r,`onBeforeInput`),0<x.length&&(y=new Pn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),pd(s,e,r,n,i)}vd(s,t)})}function wd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Td(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=ln(e,n),i!=null&&r.unshift(wd(e,i,a)),i=ln(e,t),i!=null&&r.push(wd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ed(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Dd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=ln(n,a),l!=null&&o.unshift(wd(n,l,c))):i||(l=ln(n,a),l!=null&&o.push(wd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Od=/\r\n?/g,kd=/\u0000|\uFFFD/g;function Ad(e){return(typeof e==`string`?e:``+e).replace(Od,`
|
|
95
|
-
`).replace(kd,``)}function jd(e,t){return t=Ad(t),Ad(e)===t}function Md(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Kt(e,``+r);break;case`className`:At(e,`class`,r);break;case`tabIndex`:At(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:At(e,n,r);break;case`style`:Yt(e,r,o);break;case`data`:if(t!==`object`){At(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=$t(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Md(e,t,`name`,a.name,a,null),Md(e,t,`formEncType`,a.formEncType,a,null),Md(e,t,`formMethod`,a.formMethod,a,null),Md(e,t,`formTarget`,a.formTarget,a,null)):(Md(e,t,`encType`,a.encType,a,null),Md(e,t,`method`,a.method,a,null),Md(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=en);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=$t(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:$(`beforetoggle`,e),$(`toggle`,e),kt(e,`popover`,r);break;case`xlinkActuate`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:kt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Zt.get(n)||n,kt(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:Yt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Kt(e,``+r);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=en);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!St.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[I]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):kt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:$(`error`,e),$(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,o,s,n,null)}}a&&Md(e,t,`srcSet`,n.srcSet,n,null),r&&Md(e,t,`src`,n.src,n,null);return;case`input`:$(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Md(e,t,r,d,n,null)}}Vt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in $(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Md(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ut(e,!!r,n,!0):Ut(e,!!r,t,!1);return;case`textarea`:for(s in $(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Md(e,t,s,c,n,null)}Gt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Md(e,t,l,r,n,null)}return;case`dialog`:$(`beforetoggle`,e),$(`toggle`,e),$(`cancel`,e),$(`close`,e);break;case`iframe`:case`object`:$(`load`,e);break;case`video`:case`audio`:for(r=0;r<gd.length;r++)$(gd[r],e);break;case`image`:$(`error`,e),$(`load`,e);break;case`details`:$(`toggle`,e);break;case`embed`:case`source`:case`link`:$(`error`,e),$(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,u,r,n,null)}return;default:if(Xt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Md(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Md(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Md(e,t,p,m,r,f)}}Bt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Md(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Md(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ut(e,!!n,n?[]:``,!1):Ut(e,!!n,t,!0)):Ut(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Md(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Md(e,t,s,a,r,o)}Wt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Md(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Md(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Md(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Md(e,t,u,p,r,m)}return;default:if(Xt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Md(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Md(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ht]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),gt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ht])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=j.d;j.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=vu();return e||t}function yf(e){var t=vt(e);t!==null&&t.tag===5&&t.type===`form`?Cs(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),bt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=L(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);bt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=L(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),bt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=L(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),bt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=fe.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=L(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=L(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=L(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+zt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),bt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+zt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,bt(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,bt(a),a):(r=n,(a=mf.get(o))&&(r=h({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),bt(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ht]||a[lt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:C,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qe(0),this.hiddenUpdates=Qe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ci(3,null,null,t),e.current=a,a.stateNode=e,t=ra(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ia(a),e}function tp(e){return e?(e=oi,e):oi}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ra(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=za(e,r,t),n!==null&&(pu(n,e,t),Ba(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=R(e,67108864);t!==null&&pu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=du();t=it(t);var n=R(e,t);n!==null&&pu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=2,up(e,t,n,r)}finally{j.p=a,A.T=i}}function lp(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=8,up(e,t,n,r)}finally{j.p=a,A.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)Cd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=vt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=F(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-He(o);s.entanglements[1]|=c,o&=~c}nd(a),!(X&6)&&($l=Ae()+500,rd(0,!1))}}break;case 31:case 13:s=R(a,2),s!==null&&pu(s,a,2),vu(),ip(a,2)}if(a=dp(r),a===null&&Cd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Cd(e,t,r,null,n)}}function dp(e){return e=nn(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=_t(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(je()){case Me:return 2;case Ne:return 8;case Pe:case Fe:return 32;case Ie:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=vt(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=_t(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,st(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,st(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tn=r,n.target.dispatchEvent(r),tn=null}else return t=vt(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=vt(n);a!==null&&(e.splice(t,3),t-=3,xs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[I]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[I]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,du(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),vu(),t[ut]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=ot();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.7`)throw Error(i(527,Lp,`19.2.7`));j.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:A,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{ze=zp.inject(Rp),Be=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ws,s=Gs,c=Ks;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[ut]=t.current,xd(e),new Fp(t)}})),g=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},v=new class extends _{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},y={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},b=new class{#e=y;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function x(e){setTimeout(e,0)}var S=typeof window>`u`||`Deno`in globalThis;function C(){}function w(e,t){return typeof e==`function`?e(t):e}function T(e){return typeof e==`number`&&e>=0&&e!==1/0}function ee(e,t){return Math.max(e+(t||0)-Date.now(),0)}function E(e,t){return typeof e==`function`?e(t):e}function D(e,t){return typeof e==`function`?e(t):e}function te(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==re(o,t.options))return!1}else if(!k(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function ne(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(O(t.options.mutationKey)!==O(a))return!1}else if(!k(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function re(e,t){return(t?.queryKeyHashFn||O)(e)}function O(e){return JSON.stringify(e,(e,t)=>oe(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function k(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>k(e[n],t[n])):!1}var ie=Object.prototype.hasOwnProperty;function ae(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=j(e)&&j(t);if(!r&&!(oe(e)&&oe(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:ie.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=ae(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function A(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function j(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function oe(e){if(!se(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!se(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function se(e){return Object.prototype.toString.call(e)===`[object Object]`}function ce(e){return new Promise(t=>{b.setTimeout(t,e)})}function le(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:ae(e,t)}function M(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function N(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ue=Symbol();function de(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ue?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function fe(e,t){return typeof e==`function`?e(...t):!!e}function pe(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var me=(()=>{let e=()=>S;return{isServer(){return e()},setIsServer(t){e=t}}})();function he(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var ge=x;function _e(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ge,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var ve=_e(),ye=new class extends _{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function be(e){return Math.min(1e3*2**e,3e4)}function xe(e){return(e??`online`)===`online`?ye.isOnline():!0}var Se=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Ce(e){let t=!1,n=0,r,i=he(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Se(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>v.isFocused()&&(e.networkMode===`always`||ye.isOnline())&&e.canRun(),u=()=>xe(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(me.isServer()?0:3),o=e.retryDelay??be,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),ce(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var we=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),T(this.gcTime)&&(this.#e=b.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(me.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(b.clearTimeout(this.#e),this.#e=void 0)}};function Te(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{pe(e,()=>t.signal,()=>n=!0)},u=de(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?N:M;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?De:Ee,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Ee(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Ee(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function De(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Oe=class extends we{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=je(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=je(this.options);e.data!==void 0&&(this.setState(Ae(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=le(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(C).catch(C):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>D(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ue||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>E(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!ee(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=de(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Te(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=Ce({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Se&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Se){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...ke(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Ae(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),ve.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function ke(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xe(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Ae(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function je(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Me=class extends _{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=he(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Pe(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fe(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fe(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof D(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!A(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Ie(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||D(this.options.enabled,this.#t)!==D(t.enabled,this.#t)||E(this.options.staleTime,this.#t)!==E(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||D(this.options.enabled,this.#t)!==D(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Re(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(C)),t}#g(){this.#b();let e=E(this.options.staleTime,this.#t);if(me.isServer()||this.#r.isStale||!T(e))return;let t=ee(this.#r.dataUpdatedAt,e)+1;this.#d=b.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(me.isServer()||D(this.options.enabled,this.#t)===!1||!T(this.#p)||this.#p===0)&&(this.#f=b.setInterval(()=>{(this.options.refetchIntervalInBackground||v.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(b.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(b.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Pe(e,t),o=i&&Ie(e,n,t,r);(a||o)&&(l={...l,...ke(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=le(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=le(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Le(e,t),refetch:this.refetch,promise:this.#o,isEnabled:D(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=he())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!A(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){ve.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Ne(e,t){return D(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&D(t.retryOnMount,e)===!1)}function Pe(e,t){return Ne(e,t)||e.state.data!==void 0&&Fe(e,t,t.refetchOnMount)}function Fe(e,t,n){if(D(t.enabled,e)!==!1&&E(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Le(e,t)}return!1}function Ie(e,t,n,r){return(e!==t||D(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Le(e,n)}function Le(e,t){return D(t.enabled,e)!==!1&&e.isStaleByTime(E(t.staleTime,e))}function Re(e,t){return!A(e.getCurrentResult(),t)}var ze=class extends we{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Be(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Ce({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),ve.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Be(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Ve=class extends _{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new ze({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=He(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=He(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=He(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=He(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){ve.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>ne(t,e))}findAll(e={}){return this.getAll().filter(t=>ne(e,t))}notify(e){ve.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return ve.batch(()=>Promise.all(e.map(e=>e.continue().catch(C))))}};function He(e){return e.options.scope?.id}var Ue=class extends _{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),A(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&O(t.mutationKey)!==O(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Be();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){ve.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},We=class extends _{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??re(r,t),a=this.get(i);return a||(a=new Oe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){ve.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>te(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>te(e,t)):t}notify(e){ve.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ve.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ve.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ge=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new We,this.#t=e.mutationCache||new Ve,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=v.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=ye.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(E(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=w(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ve.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;ve.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return ve.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=ve.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(C).catch(C)}invalidateQueries(e,t={}){return ve.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=ve.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(C)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(C)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(E(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(C).catch(C)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(C).catch(C)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return ye.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(O(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{k(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(O(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{k(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=re(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ue&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Ke=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),qe=o(((e,t)=>{t.exports=Ke()})),P=c(u(),1),F=qe(),Je=P.createContext(void 0),Ye=e=>{let t=P.useContext(Je);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Xe=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,F.jsx)(Je.Provider,{value:e,children:t})),Ze=P.createContext(!1),Qe=()=>P.useContext(Ze);Ze.Provider;function $e(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var et=P.createContext($e()),tt=()=>P.useContext(et),nt=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?fe(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},rt=e=>{P.useEffect(()=>{e.clearReset()},[e])},it=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||fe(n,[e.error,r])),at=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},ot=(e,t)=>e.isLoading&&e.isFetching&&!t,st=(e,t)=>e?.suspense&&t.isPending,ct=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function lt(e,t,n){let r=Qe(),i=tt(),a=Ye(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,at(o),nt(o,i,s),rt(i);let l=!a.getQueryCache().get(o.queryHash),[u]=P.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(P.useSyncExternalStore(P.useCallback(e=>{let t=f?u.subscribe(ve.batchCalls(e)):C;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),P.useEffect(()=>{u.setOptions(o)},[o,u]),st(o,d))throw ct(o,u,i);if(it({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!me.isServer()&&ot(d,r)&&(l?ct(o,u,i):s?.promise)?.catch(C).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function I(e,t){return lt(e,Me,t)}function ut(e,t){let n=Ye(t),[r]=P.useState(()=>new Ue(n,e));P.useEffect(()=>{r.setOptions(e)},[r,e]);let i=P.useSyncExternalStore(P.useCallback(e=>r.subscribe(ve.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=P.useCallback((e,t)=>{r.mutate(e,t).catch(C)},[r]);if(i.error&&fe(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var dt=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ft=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),pt=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),mt=e=>{let t=pt(e);return t.charAt(0).toUpperCase()+t.slice(1)},ht={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},gt=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},_t=(0,P.createContext)({}),vt=()=>(0,P.useContext)(_t),yt=(0,P.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=vt()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,P.createElement)(`svg`,{ref:c,...ht,width:t??l??ht.width,height:t??l??ht.height,stroke:e??f,strokeWidth:m,className:dt(`lucide`,p,i),...!a&&!gt(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,P.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),L=(e,t)=>{let n=(0,P.forwardRef)(({className:n,...r},i)=>(0,P.createElement)(yt,{ref:i,iconNode:t,className:dt(`lucide-${ft(mt(e))}`,`lucide-${e}`,n),...r}));return n.displayName=mt(e),n},bt=L(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),xt=L(`baseline`,[[`path`,{d:`M4 20h16`,key:`14thso`}],[`path`,{d:`m6 16 6-12 6 12`,key:`1b4byz`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),St=L(`bold`,[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]),Ct=L(`chart-column`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),wt=L(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Tt=L(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Et=L(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Dt=L(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),Ot=L(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),kt=L(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),At=L(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),jt=L(`clipboard-check`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`m9 14 2 2 4-4`,key:`df797q`}]]),Mt=L(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),Nt=L(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),Pt=L(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Ft=L(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),It=L(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),Lt=L(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),Rt=L(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),zt=L(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Bt=L(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),Vt=L(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Ht=L(`highlighter`,[[`path`,{d:`m9 11-6 6v3h9l3-3`,key:`1a3l36`}],[`path`,{d:`m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4`,key:`14a9rk`}]]),Ut=L(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),Wt=L(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),Gt=L(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Kt=L(`images`,[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]),qt=L(`italic`,[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]),Jt=L(`languages`,[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),Yt=L(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),Xt=L(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),Zt=L(`list-indent-increase`,[[`path`,{d:`M21 5H11`,key:`us1j55`}],[`path`,{d:`M21 12H11`,key:`wd7e0v`}],[`path`,{d:`M21 19H11`,key:`saa85w`}],[`path`,{d:`m3 8 4 4-4 4`,key:`1a3j6y`}]]),Qt=L(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),$t=L(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),en=L(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),tn=L(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),nn=L(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),rn=L(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),an=L(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),on=L(`pencil-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),sn=L(`pilcrow`,[[`path`,{d:`M13 4v16`,key:`8vvj80`}],[`path`,{d:`M17 4v16`,key:`7dpous`}],[`path`,{d:`M19 4H9.5a4.5 4.5 0 0 0 0 9H13`,key:`sh4n9v`}]]),cn=L(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),ln=L(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),un=L(`redo-2`,[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13`,key:`6uklza`}]]),dn=L(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),fn=L(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),pn=L(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),mn=L(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),hn=L(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),gn=L(`store`,[[`path`,{d:`M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5`,key:`slp6dd`}],[`path`,{d:`M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244`,key:`o0xfot`}],[`path`,{d:`M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05`,key:`wn3emo`}]]),_n=L(`strikethrough`,[[`path`,{d:`M16 4H9a3 3 0 0 0-2.83 4`,key:`43sutm`}],[`path`,{d:`M14 12a4 4 0 0 1 0 8H6`,key:`nlfj13`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]),vn=L(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),yn=L(`table-2`,[[`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`,key:`gugj83`}]]),bn=L(`text-align-center`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M17 12H7`,key:`16if0g`}],[`path`,{d:`M19 19H5`,key:`vjpgq2`}]]),xn=L(`text-align-end`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M21 19H7`,key:`4cu937`}]]),Sn=L(`text-align-start`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]]),Cn=L(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),wn=L(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Tn=L(`type`,[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),En=L(`underline`,[[`path`,{d:`M6 4v6a6 6 0 0 0 12 0V4`,key:`9kb039`}],[`line`,{x1:`4`,x2:`20`,y1:`20`,y2:`20`,key:`nun2al`}]]),Dn=L(`undo-2`,[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]),On=L(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),kn=L(`user-plus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),An=L(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),jn=L(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),Mn=L(`wand-sparkles`,[[`path`,{d:`m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72`,key:`ul74o6`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`M5 6v4`,key:`ilb8ba`}],[`path`,{d:`M19 14v4`,key:`blhpug`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M7 8H3`,key:`zfb6yr`}],[`path`,{d:`M21 16h-4`,key:`1cnmox`}],[`path`,{d:`M11 3H9`,key:`1obp7u`}]]),Nn=L(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Pn=L(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Fn=c(g(),1),In=`layout_variant`,Ln=3600*24*7,Rn=`sidebar`,zn=P.createContext(null);function Bn(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|;\\s*)${e}=([^;]+)`));return t?decodeURIComponent(t[1]):null}function Vn(e,t){typeof document>`u`||(document.cookie=`${e}=${encodeURIComponent(t)}; Path=/; Max-Age=${Ln}; SameSite=Lax`)}function Hn(){let e=Bn(In);return e===`inset`||e===`sidebar`||e===`floating`?e:Rn}function Un({children:e}){let[t,n]=P.useState(Hn),r=P.useCallback(e=>{Vn(In,e),n(e)},[]),i=P.useMemo(()=>({variant:t,setVariant:r,defaultVariant:Rn}),[t,r]);return(0,F.jsx)(zn.Provider,{value:i,children:e})}function Wn(){let e=P.useContext(zn);if(!e)throw Error(`useLayout must be used inside LayoutProvider`);return e}var Gn=`sidebar_state`;function Kn(){let e=Bn(Gn);return e===`true`?!0:e===`false`?!1:null}function qn(e){Vn(Gn,String(e))}function Jn(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Jn(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Yn(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Jn(e))&&(r&&(r+=` `),r+=t);return r}var Xn=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Zn=Yn,Qn=(e,t)=>n=>{if(t?.variants==null)return Zn(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Xn(t)||Xn(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Zn(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)};function $n(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function er(...e){return t=>{let n=!1,r=e.map(e=>{let r=$n(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():$n(e[t],null)}}}}function tr(...e){return P.useCallback(er(...e),e)}function nr(e){let t=P.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];ur(r)&&typeof mr==`function`&&(r=mr(r._payload)),P.Children.forEach(r,e=>{if(cr(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;ur(n)&&typeof mr==`function`&&(n=mr(n._payload)),a=ar(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=P.cloneElement(a,void 0,s):!o&&P.Children.count(r)===1&&P.isValidElement(r)&&(a=r);let c=a?sr(a):void 0,l=tr(n,c);if(!a){if(r||r===0)throw Error(o?pr(e):fr(e));return r}let u=or(i,a.props??{});return a.type!==P.Fragment&&(u.ref=n?l:c),P.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}var rr=nr(`Slot`),ir=Symbol.for(`radix.slottable`),ar=(e,t)=>{if(`child`in e.props){let t=e.props.child;return P.isValidElement(t)?P.cloneElement(t,void 0,e.props.children(t.props.children)):null}return P.isValidElement(t)?t:null};function or(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function sr(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function cr(e){return P.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===ir}var lr=Symbol.for(`react.lazy`);function ur(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===lr&&`_payload`in e&&dr(e._payload)}function dr(e){return typeof e==`object`&&!!e&&`then`in e}var fr=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,pr=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,mr=P.use,hr=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},gr=(e,t)=>({classGroupId:e,validator:t}),_r=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),vr=`-`,yr=[],br=`arbitrary..`,xr=e=>{let t=wr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Cr(e);let n=e.split(vr);return Sr(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?hr(i,t):t:i||yr}return n[e]||yr}}},Sr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Sr(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(vr):e.slice(t).join(vr),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Cr=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?br+r:void 0})(),wr=e=>{let{theme:t,classGroups:n}=e;return Tr(n,t)},Tr=(e,t)=>{let n=_r();for(let r in e){let i=e[r];Er(i,n,r,t)}return n},Er=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Dr(i,t,n,r)}},Dr=(e,t,n,r)=>{if(typeof e==`string`){Or(e,t,n);return}if(typeof e==`function`){kr(e,t,n,r);return}Ar(e,t,n,r)},Or=(e,t,n)=>{let r=e===``?t:jr(t,e);r.classGroupId=n},kr=(e,t,n,r)=>{if(Mr(e)){Er(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(gr(n,e))},Ar=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Er(o,jr(t,a),n,r)}},jr=(e,t)=>{let n=e,r=t.split(vr),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=_r(),n.nextPart.set(t,i)),n=i}return n},Mr=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Nr=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Pr=`!`,Fr=`:`,Ir=[],Lr=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Rr=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Fr){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Pr)?(c=s.slice(0,-1),l=!0):s.startsWith(Pr)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Lr(t,l,c,u)};if(t){let e=t+Fr,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Lr(Ir,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},zr=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Br=e=>({cache:Nr(e.cacheSize),parseClassName:Rr(e),sortModifiers:zr(e),postfixLookupClassGroupIds:Vr(e),...xr(e)}),Vr=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Hr=/\s+/,Ur=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Hr),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Pr:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Wr=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Gr(n))&&(i&&(i+=` `),i+=r);return i},Gr=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Gr(e[r]))&&(n&&(n+=` `),n+=t);return n},Kr=(e,...t)=>{let n,r,i,a,o=o=>(n=Br(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Ur(e,n);return i(e,a),a};return a=o,(...e)=>a(Wr(...e))},qr=[],Jr=e=>{let t=t=>t[e]||qr;return t.isThemeGetter=!0,t},Yr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Qr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$r=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ei=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ti=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ni=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ri=e=>Zr.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),ii=e=>!!e&&Number.isInteger(Number(e)),ai=e=>e.endsWith(`%`)&&R(e.slice(0,-1)),oi=e=>Qr.test(e),si=()=>!0,ci=e=>$r.test(e)&&!ei.test(e),li=()=>!1,ui=e=>ti.test(e),di=e=>ni.test(e),fi=e=>!z(e)&&!B(e),pi=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),mi=e=>ki(e,V,li),z=e=>Yr.test(e),hi=e=>ki(e,Ni,ci),gi=e=>ki(e,Pi,R),_i=e=>ki(e,Ii,si),vi=e=>ki(e,Fi,li),yi=e=>ki(e,ji,li),bi=e=>ki(e,Mi,di),xi=e=>ki(e,Li,ui),B=e=>Xr.test(e),Si=e=>Ai(e,Ni),Ci=e=>Ai(e,Fi),wi=e=>Ai(e,ji),Ti=e=>Ai(e,V),Ei=e=>Ai(e,Mi),Di=e=>Ai(e,Li,!0),Oi=e=>Ai(e,Ii,!0),ki=(e,t,n)=>{let r=Yr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ai=(e,t,n=!1)=>{let r=Xr.exec(e);return r?r[1]?t(r[1]):n:!1},ji=e=>e===`position`||e===`percentage`,Mi=e=>e===`image`||e===`url`,V=e=>e===`length`||e===`size`||e===`bg-size`,Ni=e=>e===`length`,Pi=e=>e===`number`,Fi=e=>e===`family-name`,Ii=e=>e===`number`||e===`weight`,Li=e=>e===`shadow`,Ri=Kr(()=>{let e=Jr(`color`),t=Jr(`font`),n=Jr(`text`),r=Jr(`font-weight`),i=Jr(`tracking`),a=Jr(`leading`),o=Jr(`breakpoint`),s=Jr(`container`),c=Jr(`spacing`),l=Jr(`radius`),u=Jr(`shadow`),d=Jr(`inset-shadow`),f=Jr(`text-shadow`),p=Jr(`drop-shadow`),m=Jr(`blur`),h=Jr(`perspective`),g=Jr(`aspect`),_=Jr(`ease`),v=Jr(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),B,z],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[B,z,c],T=()=>[ri,`full`,`auto`,...w()],ee=()=>[ii,`none`,`subgrid`,B,z],E=()=>[`auto`,{span:[`full`,ii,B,z]},ii,B,z],D=()=>[ii,`auto`,B,z],te=()=>[`auto`,`min`,`max`,`fr`,B,z],ne=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],re=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],O=()=>[`auto`,...w()],k=()=>[ri,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ie=()=>[ri,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ae=()=>[ri,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],A=()=>[e,B,z],j=()=>[...b(),wi,yi,{position:[B,z]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,Ti,mi,{size:[B,z]}],ce=()=>[ai,Si,hi],le=()=>[``,`none`,`full`,l,B,z],M=()=>[``,R,Si,hi],N=()=>[`solid`,`dashed`,`dotted`,`double`],ue=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],de=()=>[R,ai,wi,yi],fe=()=>[``,`none`,m,B,z],pe=()=>[`none`,R,B,z],me=()=>[`none`,R,B,z],he=()=>[R,B,z],ge=()=>[ri,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[oi],breakpoint:[oi],color:[si],container:[oi],"drop-shadow":[oi],ease:[`in`,`out`,`in-out`],font:[fi],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[oi],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[oi],shadow:[oi],spacing:[`px`,R],text:[oi],"text-shadow":[oi],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,ri,z,B,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,B,z]}],"container-named":[pi],columns:[{columns:[R,z,B,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[ii,`auto`,B,z]}],basis:[{basis:[ri,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[R,ri,`auto`,`initial`,`none`,z]}],grow:[{grow:[``,R,B,z]}],shrink:[{shrink:[``,R,B,z]}],order:[{order:[ii,`first`,`last`,`none`,B,z]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ne(),`normal`]}],"justify-items":[{"justify-items":[...re(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...re()]}],"align-content":[{content:[`normal`,...ne()]}],"align-items":[{items:[...re(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...re(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...re(),`baseline`]}],"place-self":[{"place-self":[`auto`,...re()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:k()}],"inline-size":[{inline:[`auto`,...ie()]}],"min-inline-size":[{"min-inline":[`auto`,...ie()]}],"max-inline-size":[{"max-inline":[`none`,...ie()]}],"block-size":[{block:[`auto`,...ae()]}],"min-block-size":[{"min-block":[`auto`,...ae()]}],"max-block-size":[{"max-block":[`none`,...ae()]}],w:[{w:[s,`screen`,...k()]}],"min-w":[{"min-w":[s,`screen`,`none`,...k()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...k()]}],h:[{h:[`screen`,`lh`,...k()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...k()]}],"max-h":[{"max-h":[`screen`,`lh`,...k()]}],"font-size":[{text:[`base`,n,Si,hi]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Oi,_i]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ai,z]}],"font-family":[{font:[Ci,vi,t]}],"font-features":[{"font-features":[z]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,B,z]}],"line-clamp":[{"line-clamp":[R,`none`,B,gi]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,B,z]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,B,z]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...N(),`wavy`]}],"text-decoration-thickness":[{decoration:[R,`from-font`,`auto`,B,hi]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[R,`auto`,B,z]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[ii,B,z]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,B,z]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,B,z]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ii,B,z],radial:[``,B,z],conic:[ii,B,z]},Ei,bi]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":M()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...N(),`hidden`,`none`]}],"divide-style":[{divide:[...N(),`hidden`,`none`]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...N(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[R,B,z]}],"outline-w":[{outline:[``,R,Si,hi]}],"outline-color":[{outline:A()}],shadow:[{shadow:[``,`none`,u,Di,xi]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":[`none`,d,Di,xi]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:M()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[R,hi]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":[`none`,f,Di,xi]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[R,B,z]}],"mix-blend":[{"mix-blend":[...ue(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[B,z]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,B,z]}],filter:[{filter:[``,`none`,B,z]}],blur:[{blur:fe()}],brightness:[{brightness:[R,B,z]}],contrast:[{contrast:[R,B,z]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Di,xi]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:[``,R,B,z]}],"hue-rotate":[{"hue-rotate":[R,B,z]}],invert:[{invert:[``,R,B,z]}],saturate:[{saturate:[R,B,z]}],sepia:[{sepia:[``,R,B,z]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,B,z]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[R,B,z]}],"backdrop-contrast":[{"backdrop-contrast":[R,B,z]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,R,B,z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,B,z]}],"backdrop-invert":[{"backdrop-invert":[``,R,B,z]}],"backdrop-opacity":[{"backdrop-opacity":[R,B,z]}],"backdrop-saturate":[{"backdrop-saturate":[R,B,z]}],"backdrop-sepia":[{"backdrop-sepia":[``,R,B,z]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,B,z]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[R,`initial`,B,z]}],ease:[{ease:[`linear`,`initial`,_,B,z]}],delay:[{delay:[R,B,z]}],animate:[{animate:[`none`,v,B,z]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,B,z]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":[`scale-3d`],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[B,z,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":[`translate-none`],zoom:[{zoom:[ii,B,z]}],accent:[{accent:A()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,B,z]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,B,z]}],fill:[{fill:[`none`,...A()]}],"stroke-w":[{stroke:[R,Si,hi,gi]}],stroke:[{stroke:[`none`,...A()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function H(...e){return Ri(Yn(e))}var zi=Qn(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-all duration-150 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-[0_2px_8px_rgba(26,48,98,0.30)] dark:shadow-[0_2px_14px_rgba(77,106,172,0.45)] hover:bg-[var(--palette-primary-light)] hover:shadow-[0_4px_14px_rgba(26,48,98,0.40)] dark:hover:shadow-[0_4px_20px_rgba(77,106,172,0.60)] active:bg-[var(--palette-primary-base)] active:shadow-[0_1px_4px_rgba(26,48,98,0.20)]`,destructive:`bg-destructive text-destructive-foreground shadow-[0_2px_8px_rgba(239,68,68,0.25)] hover:bg-destructive/85 hover:shadow-[0_4px_12px_rgba(239,68,68,0.35)] active:bg-destructive/95`,outline:`border border-[var(--ring)] bg-transparent text-foreground shadow-sm hover:border-primary hover:bg-primary hover:text-primary-foreground active:bg-primary/90 active:border-primary`,secondary:`bg-secondary dark:bg-[var(--glass-bg-elevated)] text-secondary-foreground border border-[var(--glass-border)] shadow-sm hover:bg-accent hover:text-foreground hover:border-[var(--palette-secondary-base)] active:bg-accent/70`,ghost:`text-foreground hover:bg-accent hover:text-accent-foreground active:bg-accent/70`,link:`text-primary underline-offset-4 hover:underline hover:text-[var(--palette-primary-light)]`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-lg px-3 text-xs`,lg:`h-10 rounded-lg px-8`,icon:`h-9 w-9`}},defaultVariants:{variant:`default`,size:`default`}}),U=(0,P.forwardRef)(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,F.jsx)(r?rr:`button`,{className:H(zi({variant:t,size:n,className:e})),ref:a,...i}));U.displayName=`Button`,typeof window<`u`&&window.document&&window.document.createElement;function W(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Bi(e,t=[]){let n=[];function r(t,r){let i=P.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=P.useMemo(()=>o,Object.values(o));return(0,F.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=P.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>P.createContext(e));return function(n){let r=n?.[e]||t;return P.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Vi(i,...t)]}function Vi(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Hi=globalThis?.document?P.useLayoutEffect:()=>{},Ui=P.useId||(()=>void 0),Wi=0;function Gi(e){let[t,n]=P.useState(Ui());return Hi(()=>{e||n(e=>e??String(Wi++))},[e]),e||(t?`radix-${t}`:``)}var Ki=P.useInsertionEffect||Hi;function qi({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=Ji({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=P.useRef(e!==void 0);P.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,P.useCallback(t=>{if(s){let n=Yi(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function Ji({defaultProp:e,onChange:t}){let[n,r]=P.useState(e),i=P.useRef(n),a=P.useRef(t);return Ki(()=>{a.current=t},[t]),P.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function Yi(e){return typeof e==`function`}var Xi=c(m(),1),Zi=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=nr(`Primitive.${t}`),r=P.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,F.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Qi(e,t){e&&Xi.flushSync(()=>e.dispatchEvent(t))}function $i(e){let t=P.useRef(e);return P.useEffect(()=>{t.current=e}),P.useMemo(()=>((...e)=>t.current?.(...e)),[])}function ea(e,t=globalThis?.document){let n=$i(e);P.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var ta=`DismissableLayer`,na=`dismissableLayer.update`,ra=`dismissableLayer.pointerDownOutside`,ia=`dismissableLayer.focusOutside`,aa,oa=P.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),sa=P.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=P.useContext(oa),[d,f]=P.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=P.useState({}),h=tr(t,e=>f(e)),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(_),y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=P.useRef(!1),C=da(e=>{let t=e.target;if(!(t instanceof Node))return;let n=[...u.branches].some(e=>e.contains(t));!x||n||(a?.(e),s?.(e),e.defaultPrevented||c?.())},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces}),w=fa(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p);return ea(e=>{y===u.layers.size-1&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},p),P.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(aa=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),pa(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=aa))}},[d,p,n,u]),P.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),pa())},[d,u]),P.useEffect(()=>{let e=()=>m({});return document.addEventListener(na,e),()=>document.removeEventListener(na,e)},[]),(0,F.jsx)(Zi.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:W(e.onFocusCapture,w.onFocusCapture),onBlurCapture:W(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,C.onPointerDownCapture)})});sa.displayName=ta;var ca=`DismissableLayerBranch`,la=P.forwardRef((e,t)=>{let n=P.useContext(oa),r=P.useRef(null),i=tr(t,r);return P.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,F.jsx)(Zi.div,{...e,ref:i})});la.displayName=ca;function ua(){let e=P.useContext(oa),[t,n]=P.useState(null);return P.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}function da(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a}=t,o=$i(e),s=P.useRef(!1),c=P.useRef(!1),l=P.useRef(new Map),u=P.useRef(()=>{});return P.useEffect(()=>{function e(){c.current=!1,i.current=!1,l.current.clear()}function t(){return Array.from(l.current.values()).some(Boolean)}function d(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||l.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{c.current&&u.current()},0)}function f(e){c.current&&l.current.set(e.type,!1)}let p=a=>{if(a.target&&!s.current){let s=function(){n.removeEventListener(`click`,u.current);let r=t();e(),r||ma(ra,o,d,{discrete:!0})},d={originalEvent:a};c.current=!0,i.current=r&&a.button===0,l.current.clear(),!r||a.button!==0?s():(n.removeEventListener(`click`,u.current),u.current=s,n.addEventListener(`click`,u.current,{once:!0}))}else n.removeEventListener(`click`,u.current),e();s.current=!1},m=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of m)n.addEventListener(e,d,!0),n.addEventListener(e,f);let h=window.setTimeout(()=>{n.addEventListener(`pointerdown`,p)},0);return()=>{window.clearTimeout(h),n.removeEventListener(`pointerdown`,p),n.removeEventListener(`click`,u.current);for(let e of m)n.removeEventListener(e,d,!0),n.removeEventListener(e,f)}},[n,o,r,i,a]),{onPointerDownCapture:()=>s.current=!0}}function fa(e,t=globalThis?.document){let n=$i(e),r=P.useRef(!1);return P.useEffect(()=>{let e=e=>{e.target&&!r.current&&ma(ia,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function pa(){let e=new CustomEvent(na);document.dispatchEvent(e)}function ma(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Qi(i,a):i.dispatchEvent(a)}var ha=`focusScope.autoFocusOnMount`,ga=`focusScope.autoFocusOnUnmount`,_a={bubbles:!1,cancelable:!0},va=`FocusScope`,ya=P.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=P.useState(null),l=$i(i),u=$i(a),d=P.useRef(null),f=tr(t,e=>c(e)),p=P.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;P.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Ea(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Ea(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Ea(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),P.useEffect(()=>{if(s){Da.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(ha,_a);s.addEventListener(ha,l),s.dispatchEvent(t),t.defaultPrevented||(ba(Aa(Sa(s)),{select:!0}),document.activeElement===e&&Ea(s))}return()=>{s.removeEventListener(ha,l),setTimeout(()=>{let t=new CustomEvent(ga,_a);s.addEventListener(ga,u),s.dispatchEvent(t),t.defaultPrevented||Ea(e??document.body,{select:!0}),s.removeEventListener(ga,u),Da.remove(p)},0)}}},[s,l,u,p]);let m=P.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=xa(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Ea(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Ea(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,F.jsx)(Zi.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});ya.displayName=va;function ba(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Ea(r,{select:t}),document.activeElement!==n)return}function xa(e){let t=Sa(e);return[Ca(t,e),Ca(t.reverse(),e)]}function Sa(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ca(e,t){for(let n of e)if(!wa(n,{upTo:t}))return n}function wa(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Ta(e){return e instanceof HTMLInputElement&&`select`in e}function Ea(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ta(e)&&t&&e.select()}}var Da=Oa();function Oa(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=ka(e,t),e.unshift(t)},remove(t){e=ka(e,t),e[0]?.resume()}}}function ka(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Aa(e){return e.filter(e=>e.tagName!==`A`)}var ja=`Portal`,Ma=P.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=P.useState(!1);Hi(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Xi.createPortal((0,F.jsx)(Zi.div,{...r,ref:t}),o):null});Ma.displayName=ja;function Na(e,t){return P.useReducer((e,n)=>t[e][n]??e,e)}var Pa=e=>{let{present:t,children:n}=e,r=Fa(t),i=typeof n==`function`?n({present:r.isPresent}):P.Children.only(n),a=La(r.ref,za(i));return typeof n==`function`||r.isPresent?P.cloneElement(i,{ref:a}):null};Pa.displayName=`Presence`;function Fa(e){let[t,n]=P.useState(),r=P.useRef(null),i=P.useRef(e),a=P.useRef(`none`),[o,s]=Na(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return P.useEffect(()=>{let e=Ra(r.current);a.current=o===`mounted`?e:`none`},[o]),Hi(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Ra(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Hi(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Ra(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=Ra(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:P.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function Ia(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function La(...e){let t=P.useRef(e);return t.current=e,P.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Ia(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Ia(n[e],null)}}},[])}function Ra(e){return e?.animationName||`none`}function za(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ba=0,Va=null;function Ha(){P.useEffect(()=>{Va||={start:Ua(),end:Ua()};let{start:e,end:t}=Va;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Ba++,()=>{Ba===1&&(Va?.start.remove(),Va?.end.remove(),Va=null),Ba=Math.max(0,Ba-1)}},[])}function Ua(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var Wa=function(){return Wa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Wa.apply(this,arguments)};function Ga(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ka(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var qa=`right-scroll-bar-position`,Ja=`width-before-scroll-bar`,Ya=`with-scroll-bars-hidden`,Xa=`--removed-body-scroll-bar-size`;function Za(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Qa(e,t){var n=(0,P.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var $a=typeof window<`u`?P.useLayoutEffect:P.useEffect,eo=new WeakMap;function to(e,t){var n=Qa(t||null,function(t){return e.forEach(function(e){return Za(e,t)})});return $a(function(){var t=eo.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Za(e,null)}),i.forEach(function(e){r.has(e)||Za(e,a)})}eo.set(n,e)},[e]),n}function no(e){return e}function ro(e,t){t===void 0&&(t=no);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function io(e){e===void 0&&(e={});var t=ro(null);return t.options=Wa({async:!0,ssr:!1},e),t}var ao=function(e){var t=e.sideCar,n=Ga(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return P.createElement(r,Wa({},n))};ao.isSideCarExport=!0;function oo(e,t){return e.useMedium(t),ao}var so=io(),G=function(){},K=P.forwardRef(function(e,t){var n=P.useRef(null),r=P.useState({onScrollCapture:G,onWheelCapture:G,onTouchMoveCapture:G}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Ga(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=to([n,t]),C=Wa(Wa({},b),i);return P.createElement(P.Fragment,null,u&&P.createElement(x,{sideCar:so,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?P.cloneElement(P.Children.only(s),Wa(Wa({},C),{ref:S})):P.createElement(v,Wa({},C,{className:c,ref:S}),s))});K.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},K.classNames={fullWidth:Ja,zeroRight:qa};var co,lo=function(){if(co)return co;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function uo(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=lo();return t&&e.setAttribute(`nonce`,t),e}function fo(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function po(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var mo=function(){var e=0,t=null;return{add:function(n){e==0&&(t=uo())&&(fo(t,n),po(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ho=function(){var e=mo();return function(t,n){P.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},go=function(){var e=ho();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},_o={left:0,top:0,right:0,gap:0},vo=function(e){return parseInt(e||``,10)||0},yo=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[vo(n),vo(r),vo(i)]},bo=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return _o;var t=yo(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},xo=go(),So=`data-scroll-locked`,Co=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
95
|
+
`).replace(kd,``)}function jd(e,t){return t=Ad(t),Ad(e)===t}function Md(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Kt(e,``+r);break;case`className`:At(e,`class`,r);break;case`tabIndex`:At(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:At(e,n,r);break;case`style`:Yt(e,r,o);break;case`data`:if(t!==`object`){At(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=$t(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Md(e,t,`name`,a.name,a,null),Md(e,t,`formEncType`,a.formEncType,a,null),Md(e,t,`formMethod`,a.formMethod,a,null),Md(e,t,`formTarget`,a.formTarget,a,null)):(Md(e,t,`encType`,a.encType,a,null),Md(e,t,`method`,a.method,a,null),Md(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=en);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=$t(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:$(`beforetoggle`,e),$(`toggle`,e),kt(e,`popover`,r);break;case`xlinkActuate`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:kt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Zt.get(n)||n,kt(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:Yt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Kt(e,``+r);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=en);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!St.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[I]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):kt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:$(`error`,e),$(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,o,s,n,null)}}a&&Md(e,t,`srcSet`,n.srcSet,n,null),r&&Md(e,t,`src`,n.src,n,null);return;case`input`:$(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Md(e,t,r,d,n,null)}}Vt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in $(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Md(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ut(e,!!r,n,!0):Ut(e,!!r,t,!1);return;case`textarea`:for(s in $(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Md(e,t,s,c,n,null)}Gt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Md(e,t,l,r,n,null)}return;case`dialog`:$(`beforetoggle`,e),$(`toggle`,e),$(`cancel`,e),$(`close`,e);break;case`iframe`:case`object`:$(`load`,e);break;case`video`:case`audio`:for(r=0;r<gd.length;r++)$(gd[r],e);break;case`image`:$(`error`,e),$(`load`,e);break;case`details`:$(`toggle`,e);break;case`embed`:case`source`:case`link`:$(`error`,e),$(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,u,r,n,null)}return;default:if(Xt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Md(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Md(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Md(e,t,p,m,r,f)}}Bt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Md(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Md(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ut(e,!!n,n?[]:``,!1):Ut(e,!!n,t,!0)):Ut(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Md(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Md(e,t,s,a,r,o)}Wt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Md(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Md(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Md(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Md(e,t,u,p,r,m)}return;default:if(Xt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Md(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Md(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ht]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),gt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ht])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=j.d;j.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=vu();return e||t}function yf(e){var t=vt(e);t!==null&&t.tag===5&&t.type===`form`?Cs(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),bt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=L(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);bt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=L(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),bt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=L(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),bt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=fe.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=L(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=L(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=L(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+zt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),bt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+zt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,bt(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,bt(a),a):(r=n,(a=mf.get(o))&&(r=h({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),bt(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ht]||a[lt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:C,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qe(0),this.hiddenUpdates=Qe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ci(3,null,null,t),e.current=a,a.stateNode=e,t=ra(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ia(a),e}function tp(e){return e?(e=oi,e):oi}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ra(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=za(e,r,t),n!==null&&(pu(n,e,t),Ba(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=R(e,67108864);t!==null&&pu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=du();t=it(t);var n=R(e,t);n!==null&&pu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=2,up(e,t,n,r)}finally{j.p=a,A.T=i}}function lp(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=8,up(e,t,n,r)}finally{j.p=a,A.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)Cd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=vt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=F(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-He(o);s.entanglements[1]|=c,o&=~c}nd(a),!(X&6)&&($l=Ae()+500,rd(0,!1))}}break;case 31:case 13:s=R(a,2),s!==null&&pu(s,a,2),vu(),ip(a,2)}if(a=dp(r),a===null&&Cd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Cd(e,t,r,null,n)}}function dp(e){return e=nn(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=_t(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(je()){case Me:return 2;case Ne:return 8;case Pe:case Fe:return 32;case Ie:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=vt(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=_t(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,st(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,st(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tn=r,n.target.dispatchEvent(r),tn=null}else return t=vt(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=vt(n);a!==null&&(e.splice(t,3),t-=3,xs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[I]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[I]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,du(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),vu(),t[ut]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=ot();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.7`)throw Error(i(527,Lp,`19.2.7`));j.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:A,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{ze=zp.inject(Rp),Be=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ws,s=Gs,c=Ks;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[ut]=t.current,xd(e),new Fp(t)}})),g=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},v=new class extends _{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},y={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},b=new class{#e=y;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function x(e){setTimeout(e,0)}var S=typeof window>`u`||`Deno`in globalThis;function C(){}function w(e,t){return typeof e==`function`?e(t):e}function T(e){return typeof e==`number`&&e>=0&&e!==1/0}function ee(e,t){return Math.max(e+(t||0)-Date.now(),0)}function E(e,t){return typeof e==`function`?e(t):e}function D(e,t){return typeof e==`function`?e(t):e}function te(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==re(o,t.options))return!1}else if(!k(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function ne(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(O(t.options.mutationKey)!==O(a))return!1}else if(!k(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function re(e,t){return(t?.queryKeyHashFn||O)(e)}function O(e){return JSON.stringify(e,(e,t)=>oe(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function k(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>k(e[n],t[n])):!1}var ie=Object.prototype.hasOwnProperty;function ae(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=j(e)&&j(t);if(!r&&!(oe(e)&&oe(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:ie.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=ae(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function A(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function j(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function oe(e){if(!se(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!se(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function se(e){return Object.prototype.toString.call(e)===`[object Object]`}function ce(e){return new Promise(t=>{b.setTimeout(t,e)})}function le(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:ae(e,t)}function M(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function N(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ue=Symbol();function de(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ue?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function fe(e,t){return typeof e==`function`?e(...t):!!e}function pe(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var me=(()=>{let e=()=>S;return{isServer(){return e()},setIsServer(t){e=t}}})();function he(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var ge=x;function _e(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ge,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var ve=_e(),ye=new class extends _{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function be(e){return Math.min(1e3*2**e,3e4)}function xe(e){return(e??`online`)!==`online`||ye.isOnline()}var Se=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Ce(e){let t=!1,n=0,r,i=he(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Se(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>v.isFocused()&&(e.networkMode===`always`||ye.isOnline())&&e.canRun(),u=()=>xe(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(me.isServer()?0:3),o=e.retryDelay??be,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),ce(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var we=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),T(this.gcTime)&&(this.#e=b.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(me.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(b.clearTimeout(this.#e),this.#e=void 0)}};function Te(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{pe(e,()=>t.signal,()=>n=!0)},u=de(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?N:M;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?De:Ee,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Ee(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Ee(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function De(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Oe=class extends we{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=je(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=je(this.options);e.data!==void 0&&(this.setState(Ae(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=le(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(C).catch(C):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>D(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ue||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>E(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!ee(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=de(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Te(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=Ce({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Se&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Se){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...ke(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Ae(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),ve.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function ke(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xe(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Ae(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function je(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Me=class extends _{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=he(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Pe(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fe(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fe(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof D(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!A(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Ie(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||D(this.options.enabled,this.#t)!==D(t.enabled,this.#t)||E(this.options.staleTime,this.#t)!==E(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||D(this.options.enabled,this.#t)!==D(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Re(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(C)),t}#g(){this.#b();let e=E(this.options.staleTime,this.#t);if(me.isServer()||this.#r.isStale||!T(e))return;let t=ee(this.#r.dataUpdatedAt,e)+1;this.#d=b.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(me.isServer()||D(this.options.enabled,this.#t)===!1||!T(this.#p)||this.#p===0)&&(this.#f=b.setInterval(()=>{(this.options.refetchIntervalInBackground||v.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(b.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(b.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Pe(e,t),o=i&&Ie(e,n,t,r);(a||o)&&(l={...l,...ke(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=le(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=le(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Le(e,t),refetch:this.refetch,promise:this.#o,isEnabled:D(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{let e=this.#o=x.promise=he();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!A(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){ve.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Ne(e,t){return D(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&D(t.retryOnMount,e)===!1)}function Pe(e,t){return Ne(e,t)||e.state.data!==void 0&&Fe(e,t,t.refetchOnMount)}function Fe(e,t,n){if(D(t.enabled,e)!==!1&&E(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Le(e,t)}return!1}function Ie(e,t,n,r){return(e!==t||D(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Le(e,n)}function Le(e,t){return D(t.enabled,e)!==!1&&e.isStaleByTime(E(t.staleTime,e))}function Re(e,t){return!A(e.getCurrentResult(),t)}var ze=class extends we{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Be(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Ce({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),ve.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Be(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Ve=class extends _{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new ze({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=He(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=He(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=He(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=He(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){ve.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>ne(t,e))}findAll(e={}){return this.getAll().filter(t=>ne(e,t))}notify(e){ve.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return ve.batch(()=>Promise.all(e.map(e=>e.continue().catch(C))))}};function He(e){return e.options.scope?.id}var Ue=class extends _{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),A(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&O(t.mutationKey)!==O(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Be();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){ve.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},We=class extends _{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??re(r,t),a=this.get(i);return a||(a=new Oe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){ve.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>te(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>te(e,t)):t}notify(e){ve.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ve.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ve.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ge=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new We,this.#t=e.mutationCache||new Ve,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=v.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=ye.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(E(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=w(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ve.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;ve.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return ve.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=ve.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(C).catch(C)}invalidateQueries(e,t={}){return ve.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=ve.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(C)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(C)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(E(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(C).catch(C)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(C).catch(C)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return ye.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(O(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{k(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(O(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{k(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=re(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ue&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Ke=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),qe=o(((e,t)=>{t.exports=Ke()})),P=c(u(),1),F=qe(),Je=P.createContext(void 0),Ye=e=>{let t=P.useContext(Je);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Xe=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,F.jsx)(Je.Provider,{value:e,children:t})),Ze=P.createContext(!1),Qe=()=>P.useContext(Ze);Ze.Provider;function $e(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var et=P.createContext($e()),tt=()=>P.useContext(et),nt=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?fe(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},rt=e=>{P.useEffect(()=>{e.clearReset()},[e])},it=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||fe(n,[e.error,r])),at=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},ot=(e,t)=>e.isLoading&&e.isFetching&&!t,st=(e,t)=>e?.suspense&&t.isPending,ct=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function lt(e,t,n){let r=Qe(),i=tt(),a=Ye(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,at(o),nt(o,i,s),rt(i);let l=!a.getQueryCache().get(o.queryHash),[u]=P.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(P.useSyncExternalStore(P.useCallback(e=>{let t=f?u.subscribe(ve.batchCalls(e)):C;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),P.useEffect(()=>{u.setOptions(o)},[o,u]),st(o,d))throw ct(o,u,i);if(it({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!me.isServer()&&ot(d,r)&&(l?ct(o,u,i):s?.promise)?.catch(C).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function I(e,t){return lt(e,Me,t)}function ut(e,t){let n=Ye(t),[r]=P.useState(()=>new Ue(n,e));P.useEffect(()=>{r.setOptions(e)},[r,e]);let i=P.useSyncExternalStore(P.useCallback(e=>r.subscribe(ve.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=P.useCallback((e,t)=>{r.mutate(e,t).catch(C)},[r]);if(i.error&&fe(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var dt=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ft=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),pt=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),mt=e=>{let t=pt(e);return t.charAt(0).toUpperCase()+t.slice(1)},ht={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},gt=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},_t=(0,P.createContext)({}),vt=()=>(0,P.useContext)(_t),yt=(0,P.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=vt()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,P.createElement)(`svg`,{ref:c,...ht,width:t??l??ht.width,height:t??l??ht.height,stroke:e??f,strokeWidth:m,className:dt(`lucide`,p,i),...!a&&!gt(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,P.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),L=(e,t)=>{let n=(0,P.forwardRef)(({className:n,...r},i)=>(0,P.createElement)(yt,{ref:i,iconNode:t,className:dt(`lucide-${ft(mt(e))}`,`lucide-${e}`,n),...r}));return n.displayName=mt(e),n},bt=L(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),xt=L(`baseline`,[[`path`,{d:`M4 20h16`,key:`14thso`}],[`path`,{d:`m6 16 6-12 6 12`,key:`1b4byz`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),St=L(`bold`,[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]),Ct=L(`chart-column`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),wt=L(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Tt=L(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Et=L(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Dt=L(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),Ot=L(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),kt=L(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),At=L(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),jt=L(`clipboard-check`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`m9 14 2 2 4-4`,key:`df797q`}]]),Mt=L(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),Nt=L(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),Pt=L(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Ft=L(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),It=L(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),Lt=L(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),Rt=L(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),zt=L(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Bt=L(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),Vt=L(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Ht=L(`highlighter`,[[`path`,{d:`m9 11-6 6v3h9l3-3`,key:`1a3l36`}],[`path`,{d:`m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4`,key:`14a9rk`}]]),Ut=L(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),Wt=L(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),Gt=L(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Kt=L(`images`,[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]),qt=L(`italic`,[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]),Jt=L(`languages`,[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),Yt=L(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),Xt=L(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),Zt=L(`list-indent-increase`,[[`path`,{d:`M21 5H11`,key:`us1j55`}],[`path`,{d:`M21 12H11`,key:`wd7e0v`}],[`path`,{d:`M21 19H11`,key:`saa85w`}],[`path`,{d:`m3 8 4 4-4 4`,key:`1a3j6y`}]]),Qt=L(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),$t=L(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),en=L(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),tn=L(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),nn=L(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),rn=L(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),an=L(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),on=L(`pencil-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),sn=L(`pilcrow`,[[`path`,{d:`M13 4v16`,key:`8vvj80`}],[`path`,{d:`M17 4v16`,key:`7dpous`}],[`path`,{d:`M19 4H9.5a4.5 4.5 0 0 0 0 9H13`,key:`sh4n9v`}]]),cn=L(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),ln=L(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),un=L(`redo-2`,[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13`,key:`6uklza`}]]),dn=L(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),fn=L(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),pn=L(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),mn=L(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),hn=L(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),gn=L(`store`,[[`path`,{d:`M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5`,key:`slp6dd`}],[`path`,{d:`M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244`,key:`o0xfot`}],[`path`,{d:`M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05`,key:`wn3emo`}]]),_n=L(`strikethrough`,[[`path`,{d:`M16 4H9a3 3 0 0 0-2.83 4`,key:`43sutm`}],[`path`,{d:`M14 12a4 4 0 0 1 0 8H6`,key:`nlfj13`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]),vn=L(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),yn=L(`table-2`,[[`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`,key:`gugj83`}]]),bn=L(`text-align-center`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M17 12H7`,key:`16if0g`}],[`path`,{d:`M19 19H5`,key:`vjpgq2`}]]),xn=L(`text-align-end`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M21 19H7`,key:`4cu937`}]]),Sn=L(`text-align-start`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]]),Cn=L(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),wn=L(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Tn=L(`type`,[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),En=L(`underline`,[[`path`,{d:`M6 4v6a6 6 0 0 0 12 0V4`,key:`9kb039`}],[`line`,{x1:`4`,x2:`20`,y1:`20`,y2:`20`,key:`nun2al`}]]),Dn=L(`undo-2`,[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]),On=L(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),kn=L(`user-plus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),An=L(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),jn=L(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),Mn=L(`wand-sparkles`,[[`path`,{d:`m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72`,key:`ul74o6`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`M5 6v4`,key:`ilb8ba`}],[`path`,{d:`M19 14v4`,key:`blhpug`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M7 8H3`,key:`zfb6yr`}],[`path`,{d:`M21 16h-4`,key:`1cnmox`}],[`path`,{d:`M11 3H9`,key:`1obp7u`}]]),Nn=L(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Pn=L(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Fn=c(g(),1),In=`layout_variant`,Ln=3600*24*7,Rn=`sidebar`,zn=P.createContext(null);function Bn(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|;\\s*)${e}=([^;]+)`));return t?decodeURIComponent(t[1]):null}function Vn(e,t){typeof document>`u`||(document.cookie=`${e}=${encodeURIComponent(t)}; Path=/; Max-Age=${Ln}; SameSite=Lax`)}function Hn(){let e=Bn(In);return e===`inset`||e===`sidebar`||e===`floating`?e:Rn}function Un({children:e}){let[t,n]=P.useState(Hn),r=P.useCallback(e=>{Vn(In,e),n(e)},[]),i=P.useMemo(()=>({variant:t,setVariant:r,defaultVariant:Rn}),[t,r]);return(0,F.jsx)(zn.Provider,{value:i,children:e})}function Wn(){let e=P.useContext(zn);if(!e)throw Error(`useLayout must be used inside LayoutProvider`);return e}var Gn=`sidebar_state`;function Kn(){let e=Bn(Gn);return e===`true`||e!==`false`&&null}function qn(e){Vn(Gn,String(e))}function Jn(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Jn(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Yn(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Jn(e))&&(r&&(r+=` `),r+=t);return r}var Xn=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Zn=Yn,Qn=(e,t)=>n=>{if(t?.variants==null)return Zn(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Xn(t)||Xn(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Zn(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)};function $n(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function er(...e){return t=>{let n=!1,r=e.map(e=>{let r=$n(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():$n(e[t],null)}}}}function tr(...e){return P.useCallback(er(...e),e)}function nr(e){let t=P.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];ur(r)&&typeof mr==`function`&&(r=mr(r._payload)),P.Children.forEach(r,e=>{if(cr(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;ur(n)&&typeof mr==`function`&&(n=mr(n._payload)),a=ar(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=P.cloneElement(a,void 0,s):!o&&P.Children.count(r)===1&&P.isValidElement(r)&&(a=r);let c=a?sr(a):void 0,l=tr(n,c);if(!a){if(r||r===0)throw Error(o?pr(e):fr(e));return r}let u=or(i,a.props??{});return a.type!==P.Fragment&&(u.ref=n?l:c),P.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}var rr=nr(`Slot`),ir=Symbol.for(`radix.slottable`),ar=(e,t)=>{if(`child`in e.props){let t=e.props.child;return P.isValidElement(t)?P.cloneElement(t,void 0,e.props.children(t.props.children)):null}return P.isValidElement(t)?t:null};function or(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function sr(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function cr(e){return P.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===ir}var lr=Symbol.for(`react.lazy`);function ur(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===lr&&`_payload`in e&&dr(e._payload)}function dr(e){return typeof e==`object`&&!!e&&`then`in e}var fr=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,pr=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,mr=P.use,hr=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},gr=(e,t)=>({classGroupId:e,validator:t}),_r=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),vr=`-`,yr=[],br=`arbitrary..`,xr=e=>{let t=wr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Cr(e);let n=e.split(vr);return Sr(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?hr(i,t):t:i||yr}return n[e]||yr}}},Sr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Sr(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(vr):e.slice(t).join(vr),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Cr=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?br+r:void 0})(),wr=e=>{let{theme:t,classGroups:n}=e;return Tr(n,t)},Tr=(e,t)=>{let n=_r();for(let r in e){let i=e[r];Er(i,n,r,t)}return n},Er=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Dr(i,t,n,r)}},Dr=(e,t,n,r)=>{if(typeof e==`string`){Or(e,t,n);return}if(typeof e==`function`){kr(e,t,n,r);return}Ar(e,t,n,r)},Or=(e,t,n)=>{let r=e===``?t:jr(t,e);r.classGroupId=n},kr=(e,t,n,r)=>{if(Mr(e)){Er(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(gr(n,e))},Ar=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Er(o,jr(t,a),n,r)}},jr=(e,t)=>{let n=e,r=t.split(vr),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=_r(),n.nextPart.set(t,i)),n=i}return n},Mr=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Nr=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Pr=`!`,Fr=`:`,Ir=[],Lr=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Rr=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Fr){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Pr)?(c=s.slice(0,-1),l=!0):s.startsWith(Pr)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Lr(t,l,c,u)};if(t){let e=t+Fr,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Lr(Ir,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},zr=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Br=e=>({cache:Nr(e.cacheSize),parseClassName:Rr(e),sortModifiers:zr(e),postfixLookupClassGroupIds:Vr(e),...xr(e)}),Vr=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Hr=/\s+/,Ur=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Hr),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Pr:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Wr=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Gr(n))&&(i&&(i+=` `),i+=r);return i},Gr=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Gr(e[r]))&&(n&&(n+=` `),n+=t);return n},Kr=(e,...t)=>{let n,r,i,a,o=o=>(n=Br(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Ur(e,n);return i(e,a),a};return a=o,(...e)=>a(Wr(...e))},qr=[],Jr=e=>{let t=t=>t[e]||qr;return t.isThemeGetter=!0,t},Yr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Qr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$r=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ei=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ti=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ni=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ri=e=>Zr.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),ii=e=>!!e&&Number.isInteger(Number(e)),ai=e=>e.endsWith(`%`)&&R(e.slice(0,-1)),oi=e=>Qr.test(e),si=()=>!0,ci=e=>$r.test(e)&&!ei.test(e),li=()=>!1,ui=e=>ti.test(e),di=e=>ni.test(e),fi=e=>!z(e)&&!B(e),pi=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),mi=e=>ki(e,V,li),z=e=>Yr.test(e),hi=e=>ki(e,Ni,ci),gi=e=>ki(e,Pi,R),_i=e=>ki(e,Ii,si),vi=e=>ki(e,Fi,li),yi=e=>ki(e,ji,li),bi=e=>ki(e,Mi,di),xi=e=>ki(e,Li,ui),B=e=>Xr.test(e),Si=e=>Ai(e,Ni),Ci=e=>Ai(e,Fi),wi=e=>Ai(e,ji),Ti=e=>Ai(e,V),Ei=e=>Ai(e,Mi),Di=e=>Ai(e,Li,!0),Oi=e=>Ai(e,Ii,!0),ki=(e,t,n)=>{let r=Yr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ai=(e,t,n=!1)=>{let r=Xr.exec(e);return r?r[1]?t(r[1]):n:!1},ji=e=>e===`position`||e===`percentage`,Mi=e=>e===`image`||e===`url`,V=e=>e===`length`||e===`size`||e===`bg-size`,Ni=e=>e===`length`,Pi=e=>e===`number`,Fi=e=>e===`family-name`,Ii=e=>e===`number`||e===`weight`,Li=e=>e===`shadow`,Ri=Kr(()=>{let e=Jr(`color`),t=Jr(`font`),n=Jr(`text`),r=Jr(`font-weight`),i=Jr(`tracking`),a=Jr(`leading`),o=Jr(`breakpoint`),s=Jr(`container`),c=Jr(`spacing`),l=Jr(`radius`),u=Jr(`shadow`),d=Jr(`inset-shadow`),f=Jr(`text-shadow`),p=Jr(`drop-shadow`),m=Jr(`blur`),h=Jr(`perspective`),g=Jr(`aspect`),_=Jr(`ease`),v=Jr(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),B,z],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[B,z,c],T=()=>[ri,`full`,`auto`,...w()],ee=()=>[ii,`none`,`subgrid`,B,z],E=()=>[`auto`,{span:[`full`,ii,B,z]},ii,B,z],D=()=>[ii,`auto`,B,z],te=()=>[`auto`,`min`,`max`,`fr`,B,z],ne=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],re=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],O=()=>[`auto`,...w()],k=()=>[ri,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ie=()=>[ri,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ae=()=>[ri,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],A=()=>[e,B,z],j=()=>[...b(),wi,yi,{position:[B,z]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,Ti,mi,{size:[B,z]}],ce=()=>[ai,Si,hi],le=()=>[``,`none`,`full`,l,B,z],M=()=>[``,R,Si,hi],N=()=>[`solid`,`dashed`,`dotted`,`double`],ue=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],de=()=>[R,ai,wi,yi],fe=()=>[``,`none`,m,B,z],pe=()=>[`none`,R,B,z],me=()=>[`none`,R,B,z],he=()=>[R,B,z],ge=()=>[ri,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[oi],breakpoint:[oi],color:[si],container:[oi],"drop-shadow":[oi],ease:[`in`,`out`,`in-out`],font:[fi],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[oi],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[oi],shadow:[oi],spacing:[`px`,R],text:[oi],"text-shadow":[oi],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,ri,z,B,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,B,z]}],"container-named":[pi],columns:[{columns:[R,z,B,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[ii,`auto`,B,z]}],basis:[{basis:[ri,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[R,ri,`auto`,`initial`,`none`,z]}],grow:[{grow:[``,R,B,z]}],shrink:[{shrink:[``,R,B,z]}],order:[{order:[ii,`first`,`last`,`none`,B,z]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ne(),`normal`]}],"justify-items":[{"justify-items":[...re(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...re()]}],"align-content":[{content:[`normal`,...ne()]}],"align-items":[{items:[...re(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...re(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...re(),`baseline`]}],"place-self":[{"place-self":[`auto`,...re()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:k()}],"inline-size":[{inline:[`auto`,...ie()]}],"min-inline-size":[{"min-inline":[`auto`,...ie()]}],"max-inline-size":[{"max-inline":[`none`,...ie()]}],"block-size":[{block:[`auto`,...ae()]}],"min-block-size":[{"min-block":[`auto`,...ae()]}],"max-block-size":[{"max-block":[`none`,...ae()]}],w:[{w:[s,`screen`,...k()]}],"min-w":[{"min-w":[s,`screen`,`none`,...k()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...k()]}],h:[{h:[`screen`,`lh`,...k()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...k()]}],"max-h":[{"max-h":[`screen`,`lh`,...k()]}],"font-size":[{text:[`base`,n,Si,hi]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Oi,_i]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ai,z]}],"font-family":[{font:[Ci,vi,t]}],"font-features":[{"font-features":[z]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,B,z]}],"line-clamp":[{"line-clamp":[R,`none`,B,gi]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,B,z]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,B,z]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...N(),`wavy`]}],"text-decoration-thickness":[{decoration:[R,`from-font`,`auto`,B,hi]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[R,`auto`,B,z]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[ii,B,z]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,B,z]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,B,z]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ii,B,z],radial:[``,B,z],conic:[ii,B,z]},Ei,bi]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":M()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...N(),`hidden`,`none`]}],"divide-style":[{divide:[...N(),`hidden`,`none`]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...N(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[R,B,z]}],"outline-w":[{outline:[``,R,Si,hi]}],"outline-color":[{outline:A()}],shadow:[{shadow:[``,`none`,u,Di,xi]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":[`none`,d,Di,xi]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:M()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[R,hi]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":[`none`,f,Di,xi]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[R,B,z]}],"mix-blend":[{"mix-blend":[...ue(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[B,z]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,B,z]}],filter:[{filter:[``,`none`,B,z]}],blur:[{blur:fe()}],brightness:[{brightness:[R,B,z]}],contrast:[{contrast:[R,B,z]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Di,xi]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:[``,R,B,z]}],"hue-rotate":[{"hue-rotate":[R,B,z]}],invert:[{invert:[``,R,B,z]}],saturate:[{saturate:[R,B,z]}],sepia:[{sepia:[``,R,B,z]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,B,z]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[R,B,z]}],"backdrop-contrast":[{"backdrop-contrast":[R,B,z]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,R,B,z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,B,z]}],"backdrop-invert":[{"backdrop-invert":[``,R,B,z]}],"backdrop-opacity":[{"backdrop-opacity":[R,B,z]}],"backdrop-saturate":[{"backdrop-saturate":[R,B,z]}],"backdrop-sepia":[{"backdrop-sepia":[``,R,B,z]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,B,z]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[R,`initial`,B,z]}],ease:[{ease:[`linear`,`initial`,_,B,z]}],delay:[{delay:[R,B,z]}],animate:[{animate:[`none`,v,B,z]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,B,z]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":[`scale-3d`],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[B,z,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":[`translate-none`],zoom:[{zoom:[ii,B,z]}],accent:[{accent:A()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,B,z]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,B,z]}],fill:[{fill:[`none`,...A()]}],"stroke-w":[{stroke:[R,Si,hi,gi]}],stroke:[{stroke:[`none`,...A()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function H(...e){return Ri(Yn(e))}var zi=Qn(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-all duration-150 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-[0_2px_8px_rgba(26,48,98,0.30)] dark:shadow-[0_2px_14px_rgba(77,106,172,0.45)] hover:bg-[var(--palette-primary-light)] hover:shadow-[0_4px_14px_rgba(26,48,98,0.40)] dark:hover:shadow-[0_4px_20px_rgba(77,106,172,0.60)] active:bg-[var(--palette-primary-base)] active:shadow-[0_1px_4px_rgba(26,48,98,0.20)]`,destructive:`bg-destructive text-destructive-foreground shadow-[0_2px_8px_rgba(239,68,68,0.25)] hover:bg-destructive/85 hover:shadow-[0_4px_12px_rgba(239,68,68,0.35)] active:bg-destructive/95`,outline:`border border-[var(--ring)] bg-transparent text-foreground shadow-sm hover:border-primary hover:bg-primary hover:text-primary-foreground active:bg-primary/90 active:border-primary`,secondary:`bg-secondary dark:bg-[var(--glass-bg-elevated)] text-secondary-foreground border border-[var(--glass-border)] shadow-sm hover:bg-accent hover:text-foreground hover:border-[var(--palette-secondary-base)] active:bg-accent/70`,ghost:`text-foreground hover:bg-accent hover:text-accent-foreground active:bg-accent/70`,link:`text-primary underline-offset-4 hover:underline hover:text-[var(--palette-primary-light)]`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-lg px-3 text-xs`,lg:`h-10 rounded-lg px-8`,icon:`h-9 w-9`}},defaultVariants:{variant:`default`,size:`default`}}),U=(0,P.forwardRef)(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,F.jsx)(r?rr:`button`,{className:H(zi({variant:t,size:n,className:e})),ref:a,...i}));U.displayName=`Button`,typeof window<`u`&&window.document&&window.document.createElement;function W(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Bi(e,t=[]){let n=[];function r(t,r){let i=P.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=P.useMemo(()=>o,Object.values(o));return(0,F.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=P.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>P.createContext(e));return function(n){let r=n?.[e]||t;return P.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Vi(i,...t)]}function Vi(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Hi=globalThis?.document?P.useLayoutEffect:()=>{},Ui=P.useId||(()=>void 0),Wi=0;function Gi(e){let[t,n]=P.useState(Ui());return Hi(()=>{e||n(e=>e??String(Wi++))},[e]),e||(t?`radix-${t}`:``)}var Ki=P.useInsertionEffect||Hi;function qi({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=Ji({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=P.useRef(e!==void 0);P.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,P.useCallback(t=>{if(s){let n=Yi(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function Ji({defaultProp:e,onChange:t}){let[n,r]=P.useState(e),i=P.useRef(n),a=P.useRef(t);return Ki(()=>{a.current=t},[t]),P.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function Yi(e){return typeof e==`function`}var Xi=c(m(),1),Zi=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=nr(`Primitive.${t}`),r=P.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,F.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Qi(e,t){e&&Xi.flushSync(()=>e.dispatchEvent(t))}function $i(e){let t=P.useRef(e);return P.useEffect(()=>{t.current=e}),P.useMemo(()=>((...e)=>t.current?.(...e)),[])}function ea(e,t=globalThis?.document){let n=$i(e);P.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var ta=`DismissableLayer`,na=`dismissableLayer.update`,ra=`dismissableLayer.pointerDownOutside`,ia=`dismissableLayer.focusOutside`,aa,oa=P.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),sa=P.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=P.useContext(oa),[d,f]=P.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=P.useState({}),h=tr(t,e=>f(e)),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(_),y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=P.useRef(!1),C=da(e=>{let t=e.target;if(!(t instanceof Node))return;let n=[...u.branches].some(e=>e.contains(t));!x||n||(a?.(e),s?.(e),e.defaultPrevented||c?.())},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces}),w=fa(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p);return ea(e=>{y===u.layers.size-1&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},p),P.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(aa=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),pa(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=aa))}},[d,p,n,u]),P.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),pa())},[d,u]),P.useEffect(()=>{let e=()=>m({});return document.addEventListener(na,e),()=>document.removeEventListener(na,e)},[]),(0,F.jsx)(Zi.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:W(e.onFocusCapture,w.onFocusCapture),onBlurCapture:W(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,C.onPointerDownCapture)})});sa.displayName=ta;var ca=`DismissableLayerBranch`,la=P.forwardRef((e,t)=>{let n=P.useContext(oa),r=P.useRef(null),i=tr(t,r);return P.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,F.jsx)(Zi.div,{...e,ref:i})});la.displayName=ca;function ua(){let e=P.useContext(oa),[t,n]=P.useState(null);return P.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}function da(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a}=t,o=$i(e),s=P.useRef(!1),c=P.useRef(!1),l=P.useRef(new Map),u=P.useRef(()=>{});return P.useEffect(()=>{function e(){c.current=!1,i.current=!1,l.current.clear()}function t(){return Array.from(l.current.values()).some(Boolean)}function d(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||l.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{c.current&&u.current()},0)}function f(e){c.current&&l.current.set(e.type,!1)}let p=a=>{if(a.target&&!s.current){let s=function(){n.removeEventListener(`click`,u.current);let r=t();e(),r||ma(ra,o,d,{discrete:!0})},d={originalEvent:a};c.current=!0,i.current=r&&a.button===0,l.current.clear(),!r||a.button!==0?s():(n.removeEventListener(`click`,u.current),u.current=s,n.addEventListener(`click`,u.current,{once:!0}))}else n.removeEventListener(`click`,u.current),e();s.current=!1},m=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of m)n.addEventListener(e,d,!0),n.addEventListener(e,f);let h=window.setTimeout(()=>{n.addEventListener(`pointerdown`,p)},0);return()=>{window.clearTimeout(h),n.removeEventListener(`pointerdown`,p),n.removeEventListener(`click`,u.current);for(let e of m)n.removeEventListener(e,d,!0),n.removeEventListener(e,f)}},[n,o,r,i,a]),{onPointerDownCapture:()=>s.current=!0}}function fa(e,t=globalThis?.document){let n=$i(e),r=P.useRef(!1);return P.useEffect(()=>{let e=e=>{e.target&&!r.current&&ma(ia,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function pa(){let e=new CustomEvent(na);document.dispatchEvent(e)}function ma(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Qi(i,a):i.dispatchEvent(a)}var ha=`focusScope.autoFocusOnMount`,ga=`focusScope.autoFocusOnUnmount`,_a={bubbles:!1,cancelable:!0},va=`FocusScope`,ya=P.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=P.useState(null),l=$i(i),u=$i(a),d=P.useRef(null),f=tr(t,e=>c(e)),p=P.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;P.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Ea(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Ea(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Ea(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),P.useEffect(()=>{if(s){Da.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(ha,_a);s.addEventListener(ha,l),s.dispatchEvent(t),t.defaultPrevented||(ba(Aa(Sa(s)),{select:!0}),document.activeElement===e&&Ea(s))}return()=>{s.removeEventListener(ha,l),setTimeout(()=>{let t=new CustomEvent(ga,_a);s.addEventListener(ga,u),s.dispatchEvent(t),t.defaultPrevented||Ea(e??document.body,{select:!0}),s.removeEventListener(ga,u),Da.remove(p)},0)}}},[s,l,u,p]);let m=P.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=xa(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Ea(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Ea(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,F.jsx)(Zi.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});ya.displayName=va;function ba(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Ea(r,{select:t}),document.activeElement!==n)return}function xa(e){let t=Sa(e);return[Ca(t,e),Ca(t.reverse(),e)]}function Sa(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ca(e,t){for(let n of e)if(!wa(n,{upTo:t}))return n}function wa(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Ta(e){return e instanceof HTMLInputElement&&`select`in e}function Ea(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ta(e)&&t&&e.select()}}var Da=Oa();function Oa(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=ka(e,t),e.unshift(t)},remove(t){e=ka(e,t),e[0]?.resume()}}}function ka(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Aa(e){return e.filter(e=>e.tagName!==`A`)}var ja=`Portal`,Ma=P.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=P.useState(!1);Hi(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Xi.createPortal((0,F.jsx)(Zi.div,{...r,ref:t}),o):null});Ma.displayName=ja;function Na(e,t){return P.useReducer((e,n)=>t[e][n]??e,e)}var Pa=e=>{let{present:t,children:n}=e,r=Fa(t),i=typeof n==`function`?n({present:r.isPresent}):P.Children.only(n),a=La(r.ref,za(i));return typeof n==`function`||r.isPresent?P.cloneElement(i,{ref:a}):null};Pa.displayName=`Presence`;function Fa(e){let[t,n]=P.useState(),r=P.useRef(null),i=P.useRef(e),a=P.useRef(`none`),[o,s]=Na(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return P.useEffect(()=>{let e=Ra(r.current);a.current=o===`mounted`?e:`none`},[o]),Hi(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Ra(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Hi(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Ra(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=Ra(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:P.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function Ia(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function La(...e){let t=P.useRef(e);return t.current=e,P.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Ia(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Ia(n[e],null)}}},[])}function Ra(e){return e?.animationName||`none`}function za(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ba=0,Va=null;function Ha(){P.useEffect(()=>{Va||={start:Ua(),end:Ua()};let{start:e,end:t}=Va;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Ba++,()=>{Ba===1&&(Va?.start.remove(),Va?.end.remove(),Va=null),Ba=Math.max(0,Ba-1)}},[])}function Ua(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var Wa=function(){return Wa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Wa.apply(this,arguments)};function Ga(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ka(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var qa=`right-scroll-bar-position`,Ja=`width-before-scroll-bar`,Ya=`with-scroll-bars-hidden`,Xa=`--removed-body-scroll-bar-size`;function Za(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Qa(e,t){var n=(0,P.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var $a=typeof window<`u`?P.useLayoutEffect:P.useEffect,eo=new WeakMap;function to(e,t){var n=Qa(t||null,function(t){return e.forEach(function(e){return Za(e,t)})});return $a(function(){var t=eo.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Za(e,null)}),i.forEach(function(e){r.has(e)||Za(e,a)})}eo.set(n,e)},[e]),n}function no(e){return e}function ro(e,t){t===void 0&&(t=no);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function io(e){e===void 0&&(e={});var t=ro(null);return t.options=Wa({async:!0,ssr:!1},e),t}var ao=function(e){var t=e.sideCar,n=Ga(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return P.createElement(r,Wa({},n))};ao.isSideCarExport=!0;function oo(e,t){return e.useMedium(t),ao}var so=io(),G=function(){},K=P.forwardRef(function(e,t){var n=P.useRef(null),r=P.useState({onScrollCapture:G,onWheelCapture:G,onTouchMoveCapture:G}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Ga(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=to([n,t]),C=Wa(Wa({},b),i);return P.createElement(P.Fragment,null,u&&P.createElement(x,{sideCar:so,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?P.cloneElement(P.Children.only(s),Wa(Wa({},C),{ref:S})):P.createElement(v,Wa({},C,{className:c,ref:S}),s))});K.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},K.classNames={fullWidth:Ja,zeroRight:qa};var co,lo=function(){if(co)return co;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function uo(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=lo();return t&&e.setAttribute(`nonce`,t),e}function fo(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function po(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var mo=function(){var e=0,t=null;return{add:function(n){e==0&&(t=uo())&&(fo(t,n),po(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ho=function(){var e=mo();return function(t,n){P.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},go=function(){var e=ho();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},_o={left:0,top:0,right:0,gap:0},vo=function(e){return parseInt(e||``,10)||0},yo=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[vo(n),vo(r),vo(i)]},bo=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return _o;var t=yo(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},xo=go(),So=`data-scroll-locked`,Co=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
96
96
|
.${Ya} {
|
|
97
97
|
overflow: hidden ${r};
|
|
98
98
|
padding-right: ${s}px ${r};
|
|
@@ -132,13 +132,13 @@ Error generating stack: `+e.message+`
|
|
|
132
132
|
`},wo=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},To=function(){P.useEffect(function(){return document.body.setAttribute(So,(wo()+1).toString()),function(){var e=wo()-1;e<=0?document.body.removeAttribute(So):document.body.setAttribute(So,e.toString())}},[])},Eo=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;To();var a=P.useMemo(function(){return bo(i)},[i]);return P.createElement(xo,{styles:Co(a,!t,i,n?``:`!important`)})},Do=!1;if(typeof window<`u`)try{var Oo=Object.defineProperty({},"passive",{get:function(){return Do=!0,!0}});window.addEventListener(`test`,Oo,Oo),window.removeEventListener(`test`,Oo,Oo)}catch{Do=!1}var ko=Do?{passive:!1}:!1,Ao=function(e){return e.tagName===`TEXTAREA`},jo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Ao(e)&&n[t]===`visible`)},Mo=function(e){return jo(e,`overflowY`)},No=function(e){return jo(e,`overflowX`)},Po=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Lo(e,r)){var i=Ro(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Fo=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Io=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Lo=function(e,t){return e===`v`?Mo(t):No(t)},Ro=function(e,t){return e===`v`?Fo(t):Io(t)},zo=function(e,t){return e===`h`&&t===`rtl`?-1:1},Bo=function(e,t,n,r,i){var a=zo(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Ro(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Lo(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Vo=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ho=function(e){return[e.deltaX,e.deltaY]},Uo=function(e){return e&&`current`in e?e.current:e},Wo=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Go=function(e){return`
|
|
133
133
|
.block-interactivity-${e} {pointer-events: none;}
|
|
134
134
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
135
|
-
`},Ko=0,qo=[];function Jo(e){var t=P.useRef([]),n=P.useRef([0,0]),r=P.useRef(),i=P.useState(Ko++)[0],a=P.useState(go)[0],o=P.useRef(e);P.useEffect(function(){o.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Ka([e.lockRef.current],(e.shards||[]).map(Uo),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=P.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Vo(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Po(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Po(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Bo(h,t,e,h===`h`?s:c,!0)},[]),c=P.useCallback(function(e){var n=e;if(!(!qo.length||qo[qo.length-1]!==a)){var r=`deltaY`in n?Ho(n):Vo(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Wo(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Uo).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=P.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Yo(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=P.useCallback(function(e){n.current=Vo(e),r.current=void 0},[]),d=P.useCallback(function(t){l(t.type,Ho(t),t.target,s(t,e.lockRef.current))},[]),f=P.useCallback(function(t){l(t.type,Vo(t),t.target,s(t,e.lockRef.current))},[]);P.useEffect(function(){return qo.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,ko),document.addEventListener(`touchmove`,c,ko),document.addEventListener(`touchstart`,u,ko),function(){qo=qo.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,ko),document.removeEventListener(`touchmove`,c,ko),document.removeEventListener(`touchstart`,u,ko)}},[]);var p=e.removeScrollBar,m=e.inert;return P.createElement(P.Fragment,null,m?P.createElement(a,{styles:Go(i)}):null,p?P.createElement(Eo,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Yo(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Xo=oo(so,Jo),Zo=P.forwardRef(function(e,t){return P.createElement(K,Wa({},e,{ref:t,sideCar:Xo}))});Zo.classNames=K.classNames;var Qo=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},$o=new WeakMap,es=new WeakMap,ts={},ns=0,rs=function(e){return e&&(e.host||rs(e.parentNode))},is=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=rs(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},as=function(e,t,n,r){var i=is(t,Array.isArray(e)?e:[e]);ts[n]||(ts[n]=new WeakMap);var a=ts[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=($o.get(e)||0)+1,l=(a.get(e)||0)+1;$o.set(e,c),a.set(e,l),o.push(e),c===1&&i&&es.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),ns++,function(){o.forEach(function(e){var t=$o.get(e)-1,i=a.get(e)-1;$o.set(e,t),a.set(e,i),t||(es.has(e)||e.removeAttribute(r),es.delete(e)),i||e.removeAttribute(n)}),ns--,ns||($o=new WeakMap,$o=new WeakMap,es=new WeakMap,ts={})}},os=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Qo(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),as(r,i,n,`aria-hidden`)):function(){return null}},ss=`Dialog`,[cs,ls]=Bi(ss),[us,ds]=cs(ss),fs=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=P.useRef(null),c=P.useRef(null),[l,u]=qi({prop:r,defaultProp:i??!1,onChange:a,caller:ss});return(0,F.jsx)(us,{scope:t,triggerRef:s,contentRef:c,contentId:Gi(),titleId:Gi(),descriptionId:Gi(),open:l,onOpenChange:u,onOpenToggle:P.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};fs.displayName=ss;var ps=`DialogTrigger`,ms=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ds(ps,n),a=tr(t,i.triggerRef);return(0,F.jsx)(Zi.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Ps(i.open),...r,ref:a,onClick:W(e.onClick,i.onOpenToggle)})});ms.displayName=ps;var hs=`DialogPortal`,[gs,_s]=cs(hs,{forceMount:void 0}),vs=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=ds(hs,t);return(0,F.jsx)(gs,{scope:t,forceMount:n,children:P.Children.map(r,e=>(0,F.jsx)(Pa,{present:n||a.open,children:(0,F.jsx)(Ma,{asChild:!0,container:i,children:e})}))})};vs.displayName=hs;var ys=`DialogOverlay`,bs=P.forwardRef((e,t)=>{let n=_s(ys,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=ds(ys,e.__scopeDialog);return a.modal?(0,F.jsx)(Pa,{present:r||a.open,children:(0,F.jsx)(Ss,{...i,ref:t})}):null});bs.displayName=ys;var xs=nr(`DialogOverlay.RemoveScroll`),Ss=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ds(ys,n),a=tr(t,ua());return(0,F.jsx)(Zo,{as:xs,allowPinchZoom:!0,shards:[i.contentRef],children:(0,F.jsx)(Zi.div,{"data-state":Ps(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})}),Cs=`DialogContent`,ws=P.forwardRef((e,t)=>{let n=_s(Cs,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=ds(Cs,e.__scopeDialog);return(0,F.jsx)(Pa,{present:r||a.open,children:a.modal?(0,F.jsx)(Ts,{...i,ref:t}):(0,F.jsx)(Es,{...i,ref:t})})});ws.displayName=Cs;var Ts=P.forwardRef((e,t)=>{let n=ds(Cs,e.__scopeDialog),r=P.useRef(null),i=tr(t,n.contentRef,r);return P.useEffect(()=>{let e=r.current;if(e)return os(e)},[]),(0,F.jsx)(Ds,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:W(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:W(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:W(e.onFocusOutside,e=>e.preventDefault())})}),Es=P.forwardRef((e,t)=>{let n=ds(Cs,e.__scopeDialog),r=P.useRef(!1),i=P.useRef(!1);return(0,F.jsx)(Ds,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),Ds=P.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=ds(Cs,n);return Ha(),(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(ya,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,F.jsx)(sa,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Ps(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})}),Os=`DialogTitle`,ks=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ds(Os,n);return(0,F.jsx)(Zi.h2,{id:i.titleId,...r,ref:t})});ks.displayName=Os;var As=`DialogDescription`,js=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ds(As,n);return(0,F.jsx)(Zi.p,{id:i.descriptionId,...r,ref:t})});js.displayName=As;var Ms=`DialogClose`,Ns=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ds(Ms,n);return(0,F.jsx)(Zi.button,{type:`button`,...r,ref:t,onClick:W(e.onClick,()=>i.onOpenChange(!1))})});Ns.displayName=Ms;function Ps(e){return e?`open`:`closed`}function Fs({...e}){return(0,F.jsx)(fs,{"data-slot":`sheet`,...e})}function Is({...e}){return(0,F.jsx)(vs,{"data-slot":`sheet-portal`,...e})}function Ls({className:e,...t}){return(0,F.jsx)(bs,{"data-slot":`sheet-overlay`,className:H(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,e),...t})}function Rs({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,F.jsxs)(Is,{children:[(0,F.jsx)(Ls,{}),(0,F.jsxs)(ws,{"data-slot":`sheet-content`,className:H(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500`,n===`right`&&`inset-y-0 right-0 h-full w-3/4 shadow-[-12px_0_32px_-12px_rgba(0,0,0,0.4)] data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`,n===`left`&&`inset-y-0 left-0 h-full w-3/4 shadow-[12px_0_32px_-12px_rgba(0,0,0,0.4)] data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,n===`top`&&`inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,n===`bottom`&&`inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,e),...i,children:[t,r&&(0,F.jsxs)(Ns,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,F.jsx)(Pn,{className:`size-4`}),(0,F.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function zs({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sheet-header`,className:H(`flex flex-col gap-1.5 p-4`,e),...t})}function Bs({className:e,...t}){return(0,F.jsx)(ks,{"data-slot":`sheet-title`,className:H(`font-semibold text-foreground`,e),...t})}function Vs({className:e,...t}){return(0,F.jsx)(js,{"data-slot":`sheet-description`,className:H(`text-sm text-muted-foreground`,e),...t})}var Hs=`16rem`,Us=`3.25rem`,Ws=`18rem`,Gs=`b`,Ks=P.createContext(null);function qs(){let[e,t]=P.useState(!1);return P.useEffect(()=>{let e=window.matchMedia(`(max-width: 767px)`),n=()=>t(window.innerWidth<768);return e.addEventListener(`change`,n),t(window.innerWidth<768),()=>e.removeEventListener(`change`,n)},[]),e}function Js({defaultOpen:e=!0,className:t,style:n,children:r,...i}){let a=qs(),[o,s]=P.useState(!1),[c,l]=P.useState(e),u=P.useCallback(e=>{qn(e),l(e)},[]),d=P.useCallback(()=>a?s(e=>!e):u(!c),[a,c,u]);P.useEffect(()=>{let e=e=>{e.key===Gs&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),d())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[d]);let f=c?`expanded`:`collapsed`,p=P.useMemo(()=>({state:f,open:c,setOpen:u,isMobile:a,openMobile:o,setOpenMobile:s,toggleSidebar:d}),[f,c,u,a,o,d]);return(0,F.jsx)(Ks.Provider,{value:p,children:(0,F.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":Hs,"--sidebar-width-icon":Us,...n},className:H(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar rtl:flex-row-reverse`,t),...i,children:r})})}function Ys(){let e=P.useContext(Ks);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Xs({side:e=`left`,variant:t=`sidebar`,className:n,children:r,...i}){let{isMobile:a,state:o,openMobile:s,setOpenMobile:c}=Ys();return a?(0,F.jsx)(Fs,{open:s,onOpenChange:c,...i,children:(0,F.jsxs)(Rs,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) glass-strip p-0 text-sidebar-foreground [&>button]:hidden`,style:{"--sidebar-width":Ws},side:e,showCloseButton:!1,children:[(0,F.jsxs)(zs,{className:`sr-only`,children:[(0,F.jsx)(Bs,{children:`Sidebar`}),(0,F.jsx)(Vs,{children:`Displays the mobile sidebar.`})]}),(0,F.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:r})]})}):(0,F.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-state":o,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,F.jsx)(`div`,{"data-slot":`sidebar-gap`,className:`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 group-data-[state=collapsed]:w-(--sidebar-width-icon)`}),(0,F.jsx)(`div`,{"data-slot":`sidebar-container`,className:H(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[width] duration-200 md:flex group-data-[state=collapsed]:w-(--sidebar-width-icon)`,e===`left`?`left-0`:`right-0`,t===`inset`?`p-2`:``,n),...i,children:(0,F.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`glass-strip flex h-full w-full flex-col`,children:r})})]})}function Zs({className:e,onClick:t,...n}){let{toggleSidebar:r}=Ys();return(0,F.jsxs)(U,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:H(`size-7`,e),onClick:e=>{t?.(e),r()},...n,children:[(0,F.jsx)(an,{}),(0,F.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function Qs({className:e,...t}){return(0,F.jsx)(`main`,{"data-slot":`sidebar-inset`,className:H(`relative flex w-full min-w-0 flex-1 flex-col overflow-x-clip bg-background`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm rtl:md:peer-data-[variant=inset]:ml-2 rtl:md:peer-data-[variant=inset]:mr-0`,e),...t})}function $s({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:H(`flex flex-col gap-2 p-2`,e),...t})}function ec({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:H(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto`,e),...t})}function tc({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:H(`flex flex-col gap-2 p-2`,e),...t})}function nc({className:e,...t}){return(0,F.jsx)(`hr`,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:H(`mx-4 my-1 h-px w-auto border-0`,`bg-linear-to-r from-transparent via-[color-mix(in_srgb,var(--primary)_24%,transparent)] to-transparent`,`opacity-70 dark:via-[color-mix(in_srgb,var(--palette-teal-light)_18%,transparent)]`,e),...t})}function rc({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:H(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function ic({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:H(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70`,e),...t})}function ac({className:e,...t}){return(0,F.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:H(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function oc({className:e,...t}){return(0,F.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:H(`group/menu-item relative`,e),...t})}var sc=Qn(`peer/menu-button relative flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm`}},defaultVariants:{size:`default`}});function cc({asChild:e=!1,isActive:t=!1,size:n=`default`,className:r,...i}){return(0,F.jsx)(e?rr:`button`,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":n,"data-active":t,className:H(sc({size:n}),r),...i})}function lc({className:e,...t}){return(0,F.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:H(`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 rtl:-translate-x-px rtl:border-l-0 rtl:border-r`,e),...t})}function uc({className:e,...t}){return(0,F.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:H(`group/menu-sub-item relative`,e),...t})}function dc({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){return(0,F.jsx)(e?rr:`a`,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:H(`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,`rtl:translate-x-px`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,r),...i})}var fc=`/admin/api`,pc=class extends Error{status;body;constructor(e,t,n){super(e),this.status=t,this.body=n,this.name=`ApiError`}};async function mc(e,t){let n=await fetch(`${fc}${e}`,{credentials:`same-origin`,...t,headers:{Accept:`application/json`,...t?.headers??{}}}),r=await n.text(),i=null;if(r)try{i=JSON.parse(r)}catch{i=r}if(!n.ok)throw new pc(`${n.status} ${n.statusText}`,n.status,i);return i}var q={get:e=>mc(e),post:(e,t)=>mc(e,hc(`POST`,t)),patch:(e,t)=>mc(e,hc(`PATCH`,t)),delete:e=>mc(e,{method:`DELETE`})};function hc(e,t){return{method:e,headers:{"Content-Type":`application/json`},body:t===void 0?void 0:JSON.stringify(t)}}function gc(e,t,n){if(e==null)return null;if(typeof e==`string`)return e;if(Object.prototype.hasOwnProperty.call(e,t))return e[t];if(n&&Object.prototype.hasOwnProperty.call(e,n))return e[n];let r=Object.keys(e)[0];return r===void 0?null:e[r]}function _c(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/[_-]+/g,` `).replace(/\b\w/g,e=>e.toUpperCase())}function vc(e,t,n,r){return gc(t?.title,n,r)??_c(e)}function yc(e,t,n){return gc(e?.description,t,n)??void 0}function bc(){return{queryKey:[`views-manifest`],queryFn:async()=>(await q.get(`/views-manifest`)).views}}function xc(){return{queryKey:[`operations`],queryFn:async()=>(await q.get(`/operations`)).operations}}var Sc=[`draft`,`review`,`published`,`archived`],Cc=[`draft`,`published`,`archived`],wc=P.createContext(null);function Tc(){return typeof window>`u`?{pathname:`/admin`,search:``}:{pathname:window.location.pathname,search:window.location.search}}function Ec(e){if(typeof window>`u`)return!1;let t=new URL(e,window.location.href);return!(t.origin!==window.location.origin||!t.pathname.startsWith(`/admin`)||t.pathname.startsWith(`/admin/api/`)||t.pathname.startsWith(`/admin/auth/`)||t.pathname===`/admin/logout`)}function Dc({children:e}){let[t,n]=P.useState(Tc),r=P.useCallback((e,t={})=>{if(typeof window>`u`)return;let r=new URL(e,window.location.href),i=`${r.pathname}${r.search}${r.hash}`;i!==`${window.location.pathname}${window.location.search}${window.location.hash}`&&(t.replace?window.history.replaceState(null,``,i):window.history.pushState(null,``,i));let a={pathname:r.pathname,search:r.search};(0,Xi.flushSync)(()=>n(a))},[]);P.useEffect(()=>{let e=()=>n(Tc());return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[]),P.useEffect(()=>{let e=e=>{if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=e.target;if(!(t instanceof Element))return;let n=t.closest(`a[href]`);n instanceof HTMLAnchorElement&&(n.target&&n.target!==`_self`||n.hasAttribute(`download`)||Ec(n.href)&&(e.preventDefault(),r(n.href)))};return document.addEventListener(`click`,e,{capture:!0}),()=>document.removeEventListener(`click`,e,{capture:!0})},[r]);let i=P.useMemo(()=>({location:t,navigate:r}),[t,r]);return(0,F.jsx)(wc.Provider,{value:i,children:e})}function Oc(){let e=P.useContext(wc);if(!e)throw Error(`useAdminRouter must be used inside AdminRouterProvider.`);return e}function kc(){return Oc().location}var Ac=[{value:`en`,label:`English`,nativeLabel:`English`,htmlLang:`en`,direction:`ltr`},{value:`de`,label:`German`,nativeLabel:`Deutsch`,htmlLang:`de`,direction:`ltr`},{value:`es`,label:`Spanish`,nativeLabel:`Español`,htmlLang:`es`,direction:`ltr`},{value:`fr`,label:`French`,nativeLabel:`Français`,htmlLang:`fr`,direction:`ltr`},{value:`it`,label:`Italian`,nativeLabel:`Italiano`,htmlLang:`it`,direction:`ltr`},{value:`ja`,label:`Japanese`,nativeLabel:`日本語`,htmlLang:`ja`,direction:`ltr`},{value:`ko`,label:`Korean`,nativeLabel:`한국어`,htmlLang:`ko`,direction:`ltr`},{value:`pt-BR`,label:`Portuguese (Brazil)`,nativeLabel:`Português (BR)`,htmlLang:`pt-BR`,direction:`ltr`},{value:`ru`,label:`Russian`,nativeLabel:`Русский`,htmlLang:`ru`,direction:`ltr`},{value:`zh-CN`,label:`Simplified Chinese`,nativeLabel:`简体中文`,htmlLang:`zh-Hans-CN`,direction:`ltr`},{value:`zh-TW`,label:`Traditional Chinese`,nativeLabel:`繁體中文`,htmlLang:`zh-Hant-TW`,direction:`ltr`},{value:`id`,label:`Indonesian`,nativeLabel:`Bahasa Indonesia`,htmlLang:`id`,direction:`ltr`},{value:`nl`,label:`Dutch`,nativeLabel:`Nederlands`,htmlLang:`nl`,direction:`ltr`},{value:`pl`,label:`Polish`,nativeLabel:`Polski`,htmlLang:`pl`,direction:`ltr`},{value:`tr`,label:`Turkish`,nativeLabel:`Türkçe`,htmlLang:`tr`,direction:`ltr`},{value:`vi`,label:`Vietnamese`,nativeLabel:`Tiếng Việt`,htmlLang:`vi`,direction:`ltr`},{value:`cs`,label:`Czech`,nativeLabel:`Čeština`,htmlLang:`cs`,direction:`ltr`},{value:`uk`,label:`Ukrainian`,nativeLabel:`Українська`,htmlLang:`uk`,direction:`ltr`},{value:`ar`,label:`Arabic`,nativeLabel:`العربية`,htmlLang:`ar`,direction:`rtl`},{value:`he`,label:`Hebrew`,nativeLabel:`עברית`,htmlLang:`he`,direction:`rtl`},{value:`fa`,label:`Persian`,nativeLabel:`فارسی`,htmlLang:`fa`,direction:`rtl`},{value:`th`,label:`Thai`,nativeLabel:`ไทย`,htmlLang:`th`,direction:`ltr`}],jc=`cms.preference.language`,Mc=`cms.preference.direction`,Nc=`cms.preference.theme`,Pc=`cms.theme`,Fc=P.createContext(null);function Ic({children:e}){let[t,n]=P.useState(Lc),[r,i]=P.useState(()=>Rc(Lc())),[a,o]=P.useState(zc),s=P.useCallback(e=>{let t=Wc(e);Vc(jc,e),Vc(Mc,t),n(e),i(t)},[]),c=P.useCallback(e=>{Vc(Mc,e),i(e)},[]),l=P.useCallback(e=>{Vc(Nc,e),Vc(Pc,e),o(e)},[]);P.useEffect(()=>{document.documentElement.lang=Ac.find(e=>e.value===t)?.htmlLang??`en`,document.documentElement.dir=r},[t,r]),P.useEffect(()=>{let e=()=>{let e=typeof matchMedia<`u`&&matchMedia(`(prefers-color-scheme: dark)`).matches;document.documentElement.classList.toggle(`dark`,a===`dark`||a===`system`&&e)};if(e(),a!==`system`||typeof matchMedia>`u`)return;let t=matchMedia(`(prefers-color-scheme: dark)`);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},[a]);let u=P.useMemo(()=>({language:t,direction:r,theme:a,setLanguage:s,setDirection:c,setTheme:l}),[t,r,a,s,c,l]);return(0,F.jsx)(Fc.Provider,{value:u,children:e})}function J(){let e=P.useContext(Fc);if(!e)throw Error(`usePreferences must be used inside PreferencesProvider.`);return e}function Lc(){let e=Bc(jc);if(Hc(e))return e;if(typeof navigator>`u`)return`en`;for(let e of navigator.languages??[]){let t=Uc(e);if(t!==`en`||e.toLowerCase().startsWith(`en`))return t}return Uc(navigator.language)}function Rc(e){let t=Bc(Mc);return t===`rtl`||t===`ltr`?t:Wc(e)}function zc(){let e=Bc(`cms.preference.theme`)??Bc(Pc);return e===`light`||e===`dark`||e===`system`?e:`system`}function Bc(e){try{return localStorage.getItem(e)}catch{return null}}function Vc(e,t){try{localStorage.setItem(e,t)}catch{}}function Hc(e){return Ac.some(t=>t.value===e)}function Uc(e){let t=(e??``).toLowerCase();if(t===`zh-tw`||t===`zh-hant`||t.startsWith(`zh-hant`))return`zh-TW`;if(t===`zh-cn`||t===`zh-hans`||t.startsWith(`zh-hans`))return`zh-CN`;if(t.startsWith(`pt-br`)||t===`pt`)return`pt-BR`;let n=t.split(`-`)[0];return n===`ar`?`ar`:n===`cs`?`cs`:n===`de`?`de`:n===`es`?`es`:n===`fa`?`fa`:n===`fr`?`fr`:n===`he`||n===`iw`?`he`:n===`id`?`id`:n===`it`?`it`:n===`ja`?`ja`:n===`ko`?`ko`:n===`nl`?`nl`:n===`pl`?`pl`:n===`pt`?`pt-BR`:n===`ru`?`ru`:n===`th`?`th`:n===`tr`?`tr`:n===`uk`?`uk`:n===`vi`?`vi`:n===`zh`?`zh-TW`:`en`}function Wc(e){return Ac.find(t=>t.value===e)?.direction??`ltr`}var Gc=`@aotter/mantle`,Kc=`0.0.11-alpha.45`,qc=`https://www.npmjs.com/package/@aotter/mantle`,Jc=`https://github.com/aotter/mantle`,Yc=`M62.27,18.91c-24.86,0-45.09,20.23-45.09,45.09s20.23,45.09,45.09,45.09,45.09-20.23,45.09-45.09-20.23-45.09-45.09-45.09ZM65.07,102.86v-18.98h5.49c1.26,0,2.29-1.03,2.29-2.29v-4.47h11.6c1.26,0,2.29-1.03,2.29-2.29v-20.57c0-1.26-1.03-2.29-2.29-2.29h-5.13v-12.73c0-1.55-1.26-2.8-2.8-2.8s-2.8,1.26-2.8,2.8v12.73h-22.89v-12.73c0-1.55-1.26-2.8-2.81-2.8s-2.8,1.26-2.8,2.8v12.73h-5.13c-1.26,0-2.29,1.03-2.29,2.29v20.57c0,1.26,1.03,2.29,2.29,2.29h11.6v4.47c0,1.26,1.03,2.29,2.29,2.29h5.49v18.98c-20.32-1.45-36.16-18.42-36.16-38.86,0-21.49,17.48-38.97,38.97-38.97s38.97,17.48,38.97,38.97-15.84,37.42-36.16,38.86ZM41.89,73.03v-16.96h14.46c1.94,2.28,5.02,5.87,5.11,5.97.19.19.39.23.52.23s.34-.04.54-.25c.07-.06,1.33-1.44,4.33-4.69.4-.44.8-.87,1.17-1.26h14.63v16.96h-40.75ZM55.78,79.79v-3.15h12.98v3.15h-12.98Z`;function Xc(e){switch(e){case`brand`:return`text-[#1a3062]`;case`black`:return`text-[#040000]`;case`white`:return`text-white`;default:return`text-current`}}function Zc({className:e,title:t,tone:n=`current`}){return(0,F.jsxs)(`svg`,{viewBox:`0 0 128 128`,role:t?`img`:void 0,"aria-hidden":t?void 0:!0,className:H(Xc(n),e),children:[t?(0,F.jsx)(`title`,{children:t}):null,(0,F.jsx)(`path`,{fill:`currentColor`,d:Yc})]})}function Qc(){return(0,F.jsxs)(`div`,{className:H(`fixed bottom-3 end-3 z-30 hidden items-center gap-2 rounded-full`,`border border-border/60 bg-background/65 px-2.5 py-1.5 text-xs`,`text-muted-foreground shadow-[var(--glass-shadow)] backdrop-blur-md md:flex`),children:[(0,F.jsx)(Zc,{className:`size-4 text-primary`}),(0,F.jsx)(`a`,{href:qc,target:`_blank`,rel:`noreferrer`,className:`font-medium text-foreground/80 hover:text-primary`,children:Gc}),(0,F.jsx)(`span`,{"aria-hidden":!0,children:`·`}),(0,F.jsx)(`a`,{href:Jc,target:`_blank`,rel:`noreferrer`,className:`hover:text-primary`,children:`GitHub`}),(0,F.jsxs)(`span`,{"aria-label":`version ${Kc}`,children:[`v`,Kc]})]})}var $c={en:{"admin.consoleTitle":`Admin console`,"auth.accessDenied.title":`Access denied`,"auth.accessDenied.noStaff":`You're signed in, but this account isn't on the admin staff list.`,"auth.accessDenied.askOwner":`Ask a site owner to add your GitHub login, or sign out to try a different account.`,"auth.error.title":`Something went wrong`,"auth.signIn.eyebrow":`AotterMantle admin`,"auth.signIn.title":`Sign in`,"auth.signIn.body":`Staff console. Access is gated by role after sign-in.`,"auth.signIn.methodsLoadFailed":`Couldn't load sign-in methods. Try refreshing.`,"auth.signIn.noMethods":`No sign-in methods are configured for this site.`,"auth.signIn.unknownMethod":`Unsupported sign-in method: {kind}.`,"auth.signIn.method.social.button":`Continue with {provider}`,"auth.signIn.method.oauth.button":`Continue with {provider}`,"auth.signIn.method.email-otp.body":`Sign in with a one-time code sent to your email.`,"auth.signIn.method.email-otp.emailLabel":`Email address`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`Send code`,"auth.signIn.method.email-otp.sendFailed":`Couldn't send the code. Check the email and try again.`,"auth.signIn.method.email-otp.sentTo":`We sent a code to {email}.`,"auth.signIn.method.email-otp.otpLabel":`One-time code`,"auth.signIn.method.email-otp.otpPlaceholder":`Enter the 6-digit code`,"auth.signIn.method.email-otp.verifyButton":`Verify and sign in`,"auth.signIn.method.email-otp.verifyFailed":`That code didn't match. Try again.`,"auth.signIn.method.email-otp.back":`Use a different email`,"auth.signIn.method.magic-link.body":`We'll email you a one-tap sign-in link.`,"auth.signIn.method.magic-link.emailLabel":`Email address`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`Send sign-in link`,"auth.signIn.method.magic-link.sendFailed":`Couldn't send the link. Check the email and try again.`,"auth.signIn.method.magic-link.sentTo":`We sent a sign-in link to {email}.`,"auth.signIn.method.magic-link.clickHint":`Click the link in the email to finish signing in. The link expires shortly.`,"auth.signIn.method.magic-link.anotherEmail":`Use a different email`,"common.signOut":`Sign out`,"common.viewSite":`View site`,"common.copy":`Copy`,"common.open":`Open`,"common.failedToLoad":`Failed to load`,"common.signedIn":`Signed in`,"console.eyebrow":`Owner console`,"console.description":`Manage {title}'s content and operations here. MCP-capable agents can work alongside you.`,"console.descriptionFallback":`Manage this site's content and operations here. MCP-capable agents can work alongside you.`,"console.agent.title":`Next: connect an agent`,"console.agent.body":`Give this Staff MCP URL to Claude Code, Codex, Cursor, or another MCP client. It will open a consent screen, then the agent can manage this site's content with your staff permission.`,"console.workspace.title":`Start editing here`,"console.workspace.body":`Your content collections, pages, and settings are all editable from this console. Pick a common action to begin.`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`Public URL`,"console.loop.title":`Operational loop`,"console.loop.body":`Ask your content agent to list entries, create drafts, publish, unpublish, or adjust copy. Then refresh this console if you want a human-readable inventory.`,"console.onboarding.title":`Guided setup`,"console.onboarding.body":`A first-run overlay will guide new owners through editing content, checking media, and publishing.`,"console.onboarding.step1":`Review the seeded products and homepage sections.`,"console.onboarding.step2":`Edit copy with the rich editor inside the relevant entry.`,"console.onboarding.step3":`Preview the storefront, then publish the change.`,"console.loop.step1":`Open the public site and inspect the result.`,"console.loop.step2":`Connect a second agent through MCP.`,"console.loop.step3":`Tell the agent what content or workflow to change.`,"console.collections.eyebrow":`Content model`,"console.collections.title":`Content lists`,"console.collections.body":`All of this site's content collections are listed here. Translated content is merged into its main entry.`,"console.collections.emptyTitle":`No collections defined yet`,"console.collections.emptyBody":`No data collections yet. Start from a template, or ask your agent to create the first one.`,"console.collections.noDescription":`No description.`,"collection.breadcrumb":`Collections`,"collection.create":`New entry`,"collection.defaultDescription":`Entries in this collection.`,"collection.schemaSummary":`Manage items, publishing state, and localized content for {name}.`,"collection.schemaDetails":`Schema notes`,"collection.searchPlaceholder":`Search title, id, status...`,"collection.filter.all":`All`,"collection.empty.title":`No entries yet`,"collection.empty.search":`No entries matched “{search}”.`,"collection.empty.withStatus":`No {status} entries in this collection.`,"collection.empty.all":`This collection has no entries yet.`,"collection.refreshing":`Updating the list...`,"collection.loadMore":`Load more`,"collection.export":`Export CSV`,"collection.copyId":`Copy full ID`,"collection.table.id":`ID`,"collection.table.title":`Title`,"collection.table.status":`Status`,"collection.table.locale":`Locale`,"collection.table.version":`Version`,"collection.table.updated":`Updated`,"collection.table.actions":`Actions`,"collection.table.selectAll":`Select all rows on this page`,"collection.table.selectRow":`Select {name}`,"collection.actions.label":`Collection actions`,"rowActions.menuLabel":`Row operations`,"rowActions.cancel":`Cancel`,"collection.untitled":`(untitled)`,"collection.bulk.selectedCount":`{count} selected`,"collection.bulk.publish":`Publish`,"collection.bulk.unpublish":`Unpublish`,"collection.bulk.delete":`Delete`,"collection.bulk.deleteConfirm":`Delete {count} selected entries? This cannot be undone.`,"crud.create":`Add`,"crud.edit":`Edit`,"crud.search":`Search`,"crud.delete":`Delete`,"crud.createTooltip":`Create a new {name} entry.`,"crud.editTooltip":`Edit {name}.`,"crud.searchTooltip":`Search {name}.`,"crud.deleteTooltip":`Delete {name}.`,"crud.duplicateTooltip":`Duplicate {name}.`,"crud.saveTitle":`Save title`,"crud.cancelTitle":`Cancel editing`,"crud.deleteConfirm":`Delete {name}? This cannot be undone.`,"crud.saving":`Saving...`,"crud.duplicating":`Duplicating...`,"crud.deleting":`Deleting...`,"entryEdit.back":`Back to {name}`,"entryEdit.body":`Edit this {name} entry. Related records show up alongside automatically.`,"entryEdit.parent":`Parent: {name}`,"entryEdit.save":`Save changes`,"entryEdit.saveTooltip":`Save this entry.`,"entryEdit.fields":`Entry fields`,"entryEdit.meta":`Entry details`,"entryEdit.related":`Related entries`,"entryEdit.noRelated":`No child collections were inferred for this entry.`,"entryEdit.noChildEntries":`No child entries match this entry yet.`,"entryEdit.relationship":`Joined by {child} from parent {parent}.`,"entryEdit.addItem":`Add item`,"entryEdit.removeItem":`Remove item`,"entryEdit.emptyOption":`No value`,"entryEdit.boolean":`Enabled`,"entryEdit.operationalHint":`System-written record — edits may be overwritten by the next sync.`,"entryEdit.publish":`Publish`,"entryEdit.publishing":`Publishing...`,"entryEdit.publishTooltip":`Publish this draft.`,"entryEdit.publishDisabledDirty":`Save changes before publishing.`,"entryEdit.unpublish":`Unpublish`,"entryEdit.unpublishing":`Unpublishing...`,"entryEdit.unpublishTooltip":`Move this entry back to draft so it can be edited.`,"entryEdit.uploadMedia":`Upload`,"entryEdit.uploadingMedia":`Uploading...`,"entryEdit.noMediaPurpose":`No media upload purpose is configured.`,"settings.page.title":`Store settings`,"settings.page.body":`Manage site-level brand copy and default service information used across the storefront.`,"settings.tabsLabel":`Store settings sections`,"settings.tab.brand":`Brand`,"settings.tab.tracking":`Tracking`,"settings.brandSection":`Brand and service`,"settings.brandSectionBody":`Default site copy shared across generated pages.`,"settings.siteBrand":`Site brand`,"settings.siteTitle":`Site title`,"settings.siteDescription":`Site description`,"settings.trackingSection":`Tracking codes`,"settings.trackingSectionBody":`Fill in analytics IDs and Mantle will inject the matching tracking scripts into generated storefront pages.`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`Use the ID only, for example G-XXXXXXXXXX. Do not paste the whole gtag script.`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`Use the numeric Pixel ID only. Mantle will generate the base Pixel code.`,"guide.title":`Your store admin is ready`,"guide.body":`Use this guided flow to understand where editing happens before you ask an agent to make larger changes.`,"guide.step1":`Open Products and confirm the seeded storefront items.`,"guide.step2":`Use Add, Edit, Search, or Delete from the collection page.`,"guide.step3":`Preview the public site, then keep refining with the rich editor inside each content area.`,"guide.close":`Close guide`,"guide.open":`Guide`,"guide.next":`Next`,"guide.prev":`Previous`,"guide.finish":`Finish`,"guide.collections.title":`Start with your content`,"guide.collections.body":`Open your first collection to manage its entries, statuses, and localized copy.`,"guide.filters.title":`Filter publishing states`,"guide.filters.body":`Switch between all, draft, published, and archived entries without leaving the list.`,"guide.actions.title":`Edit from the list`,"guide.actions.body":`Use the row actions to edit an entry or remove it from the site.`,"guide.reopen.title":`Reopen this guide anytime`,"guide.reopen.body":`The guide button stays in the status bar, so users can turn this walkthrough on again whenever they need it.`,"nav.home":`Home`,"nav.content":`Content`,"nav.operations":`Records`,"nav.editor":`Editor`,"nav.media":`Media library`,"nav.more":`More`,"nav.approvals":`Approvals`,"nav.settings":`Settings`,"nav.staff":`Staff`,"nav.ops":`Operations`,"nav.reports":`Reports`,"ops.page.title":`Operations`,"ops.page.body":`Run site operations here. Fill in the fields and press Run — the result shows up right below.`,"ops.run":`Run`,"ops.running":`Running...`,"ops.result.title":`Result`,"ops.error.title":`Error`,"ops.empty.title":`No staff operations are exposed yet`,"ops.empty.body":`No operations are available yet. Once your site's config opens an operation to staff, its form appears here automatically.`,"ops.triggers.mcp":`MCP`,"ops.triggers.http":`HTTP`,"views.page.title":`View`,"views.page.body":`A read-only report over {schema}.`,"views.params.title":`Parameters`,"views.run":`Query`,"views.running":`Querying...`,"views.empty.title":`No rows`,"views.empty.body":`No data under the current filters.`,"views.notFound.title":`View not found`,"staff.page.title":`Staff`,"staff.page.body":`Invite staff by email, assign roles, and revoke pending invitations. Only owners can see this page.`,"staff.invite.title":`Invite staff`,"staff.invite.emailLabel":`Email address`,"staff.invite.emailPlaceholder":`teammate@example.com`,"staff.invite.roleLabel":`Role`,"staff.invite.button":`Invite`,"staff.invite.sending":`Inviting…`,"staff.invite.revoke":`Revoke`,"staff.invite.hint":`Invitees sign in at /admin/sign-in with the invited email (magic link, email code, or a social account on the same address) and land with their role already in effect.`,"staff.table.name":`Name`,"staff.table.email":`Email`,"staff.table.status":`Status / sign-in`,"staff.table.role":`Role`,"staff.role.owner":`Owner`,"staff.role.editor":`Editor`,"staff.role.contributor":`Contributor`,"staff.role.none":`No role`,"staff.badge.invited":`Invited`,"staff.status.emailSignIn":`Email sign-in`,"staff.self":`you`,"status.draft":`Drafts`,"status.review":`In Review`,"status.published":`Published`,"status.archived":`Archived`,"preferences.heading":`Preferences`,"preferences.language":`Admin language`,"preferences.language.search":`Search languages...`,"preferences.language.noResults":`No languages found.`,"preferences.direction":`Text direction`,"preferences.direction.auto":`Text direction follows the selected language.`,"preferences.appearance":`Appearance`,"preferences.light":`Light`,"preferences.dark":`Dark`,"preferences.system":`System`,"preferences.ltr":`Left to right`,"preferences.rtl":`Right to left`,"preferences.page.title":`Personal preferences`,"preferences.page.body":`These preferences stay on this browser. They change the admin console only and do not modify site settings.`,"preferences.page.languageBody":`Choose the language used by system pages and admin chrome.`,"preferences.page.appearanceBody":`Choose light, dark, or follow your operating system.`,"preferences.page.open":`Preferences`,"settings.planned.title":`Settings are not wired yet`,"settings.planned.body":`Settings are for values persisted to the site, such as site config. Preferences stay local to this browser.`,"system.notFound.title":`Not found`,"system.notFound.plannedTitle":`Not wired yet`,"system.notFound.body":`No view registered for`,"system.notFound.back":`Back to home`,"editor.page.title":`Content editor`,"editor.page.body":`Draft copy in Markdown, HTML, or rich text before handing it to an agent or publishing workflow.`,"editor.mode.markdown":`Markdown`,"editor.mode.html":`HTML`,"editor.mode.rich":`Rich editor`,"editor.titleLabel":`Title`,"editor.slugLabel":`Slug`,"editor.bodyLabel":`Body`,"editor.preview":`Preview`,"editor.insertBlock":`Insert block`,"editor.saveDraft":`Save draft`,"editor.markdownHint":`Supports headings, lists, links, and fenced code blocks.`,"editor.htmlHint":`Edit trusted HTML fragments with a plain source view.`,"editor.richHint":`Format sections, callouts, and copy without touching markup.`,"editor.toolbar":`Rich editor toolbar`,"editor.undo":`Undo`,"editor.redo":`Redo`,"editor.aiClean":`Insert callout`,"editor.uploadImage":`Upload image`,"editor.uploading":`Uploading image...`,"editor.textStyle":`Text style`,"editor.headingPlaceholder":`Heading`,"editor.decreaseFont":`Decrease font size`,"editor.increaseFont":`Increase font size`,"editor.selectedText":`selected text`,"editor.bold":`Bold`,"editor.italic":`Italic`,"editor.underline":`Underline`,"editor.strike":`Strikethrough`,"editor.inlineCode":`Inline code`,"editor.textColor":`Text color`,"editor.highlight":`Highlight`,"editor.palette":`Brand color`,"editor.alignLeft":`Align left`,"editor.alignCenter":`Align center`,"editor.alignRight":`Align right`,"editor.bulletList":`Bullet list`,"editor.numberList":`Numbered list`,"editor.checkList":`Checklist`,"editor.indent":`Indent`,"editor.link":`Link`,"editor.linkText":`link text`,"editor.table":`Table`,"editor.emoji":`Emoji`,"editor.mediaLibrary":`Media library`,"editor.imageUrl":`Image URL`,"editor.insertImage":`Insert image`,"editor.videoUrl":`YouTube / Dailymotion URL`,"editor.insertVideo":`Insert video`,"editor.audioHint":`Audio embed`,"media.alt":`Alt text`,"media.title":`Media library`,"media.description":`Every image uploaded to this site. Reuse one in an entry, tidy up its alt text, or remove it.`,"media.upload":`Upload`,"media.uploading":`Uploading...`,"media.dropHere":`Drop images here to upload`,"media.searchPlaceholder":`Search alt text, caption, or id`,"media.empty.title":`No images yet`,"media.empty.all":`Upload an image to start building the library.`,"media.empty.search":`No images match “{search}”.`,"media.noPurpose":`No upload purpose is configured for this site, so uploads are disabled.`,"media.caption":`Caption`,"media.altPlaceholder":`Describe this image`,"media.captionPlaceholder":`Optional caption`,"media.save":`Save`,"media.saving":`Saving...`,"media.saved":`Saved`,"media.delete":`Delete`,"media.deleteConfirm":`Delete this image? It will be removed everywhere it is used.`,"media.open":`Open original`,"media.copyId":`Copy id`,"media.uploaded":`Uploaded {date}`,"media.pick":`Choose from library`,"media.pickTitle":`Choose an image`,"media.pickDescription":`Pick an existing image to reuse, or upload a new one.`,"media.use":`Use this image`,"media.uploadNew":`Upload new`,"media.loadMore":`Load more`,"media.uploadFailed":`{count} of {total} uploads failed.`,"media.encoderUnsupported":`This site's media policy requires an image format this browser cannot produce ({mime}). Contact the site developer to update the policy.`,"approvals.title":`Approvals`,"approvals.body":`Review editorial entries that are waiting for approval before they go live.`,"approvals.emptyTitle":`Nothing is waiting for review`,"approvals.emptyBody":`Entries submitted for review will appear here by collection.`,"approvals.groupBody":`{count} entries are currently marked {status}.`,"approvals.openCollection":`Open collection`,"approvals.reviewEntry":`Review`,"ops.error.executionFailed":`The operation ran but failed to complete.`,"ops.error.detailsLabel":`Show details`,"ops.success":`{name} completed.`,"confirm.title":`Are you sure?`,"confirm.cancel":`Cancel`,"confirm.confirm":`Confirm`,"collection.schemaSummary.lifecycleAndI18n":`Manage items, publishing state, and localized content for {name}.`,"collection.schemaSummary.lifecycleOnly":`Manage items and publishing state for {name}.`,"collection.schemaSummary.i18nOnly":`Manage items and localized content for {name}.`,"collection.schemaSummary.plain":`Manage items for {name}.`,"entryEdit.mediaMissing":`This image is missing or was deleted.`,"field.hint.moneyMinor":`amount (minor units)`,"field.hint.timestampMs":`timestamp (ms)`},"zh-TW":{"admin.consoleTitle":`管理後台`,"auth.accessDenied.title":`無法存取`,"auth.accessDenied.noStaff":`你已登入,但這個帳號不在 admin staff 清單內。`,"auth.accessDenied.askOwner":`請網站 owner 加入你的 GitHub login,或登出改用其他帳號。`,"auth.error.title":`發生錯誤`,"auth.signIn.eyebrow":`AotterMantle 後台`,"auth.signIn.title":`登入`,"auth.signIn.body":`Staff 後台。登入後依角色決定能用的範圍。`,"auth.signIn.methodsLoadFailed":`讀取登入方式失敗,請重新整理頁面。`,"auth.signIn.noMethods":`這個站台還沒設定任何登入方式。`,"auth.signIn.unknownMethod":`不支援的登入方式:{kind}。`,"auth.signIn.method.social.button":`使用 {provider} 繼續`,"auth.signIn.method.oauth.button":`使用 {provider} 繼續`,"auth.signIn.method.email-otp.body":`輸入 email,我們會寄一次性驗證碼給你。`,"auth.signIn.method.email-otp.emailLabel":`電子郵件`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`寄送驗證碼`,"auth.signIn.method.email-otp.sendFailed":`驗證碼寄送失敗,請確認 email 後重試。`,"auth.signIn.method.email-otp.sentTo":`已寄驗證碼到 {email}。`,"auth.signIn.method.email-otp.otpLabel":`驗證碼`,"auth.signIn.method.email-otp.otpPlaceholder":`輸入 6 位驗證碼`,"auth.signIn.method.email-otp.verifyButton":`驗證並登入`,"auth.signIn.method.email-otp.verifyFailed":`驗證碼錯誤,請再試一次。`,"auth.signIn.method.email-otp.back":`用其他 email`,"auth.signIn.method.magic-link.body":`我們會寄一個一鍵登入連結給你。`,"auth.signIn.method.magic-link.emailLabel":`電子郵件`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`寄送登入連結`,"auth.signIn.method.magic-link.sendFailed":`連結寄送失敗,請確認 email 後重試。`,"auth.signIn.method.magic-link.sentTo":`已將登入連結寄到 {email}。`,"auth.signIn.method.magic-link.clickHint":`請點 email 裡的連結完成登入。連結很快會過期。`,"auth.signIn.method.magic-link.anotherEmail":`用其他 email`,"common.signOut":`登出`,"common.viewSite":`查看網站`,"common.copy":`複製`,"common.open":`開啟`,"common.failedToLoad":`載入失敗`,"common.signedIn":`已登入`,"console.eyebrow":`Owner console`,"console.description":`在這裡管理 {title} 的內容與營運資料。支援 MCP 的 agent 也能與你並行協作。`,"console.descriptionFallback":`在這裡管理這個網站的內容與營運資料。支援 MCP 的 agent 也能與你並行協作。`,"console.agent.title":`下一步:連接 agent`,"console.agent.body":`把這個 Staff MCP URL 交給 Claude Code、Codex、Cursor 或其他 MCP client。它會開啟 consent 畫面,授權後 agent 就能用你的 staff 權限管理網站內容。`,"console.workspace.title":`從這裡開始編輯`,"console.workspace.body":`你的內容 collection、頁面與設定都能在這個後台管理。先選一個常用操作開始。`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`公開網站 URL`,"console.loop.title":`營運閉環`,"console.loop.body":`你可以請內容 agent 列出 entries、建立草稿、發布、取消發布或調整文案。需要人工盤點時,再回這個 console 查看。`,"console.onboarding.title":`操作導覽`,"console.onboarding.body":`第一次進入後台時,會用 overlay 帶店主完成內容編輯、媒體檢查與發布。`,"console.onboarding.step1":`先檢查預設商品與首頁區塊。`,"console.onboarding.step2":`在對應的項目裡直接用 Rich Editor 修改內容。`,"console.onboarding.step3":`預覽前台,再發布變更。`,"console.loop.step1":`先打開公開網站檢查結果。`,"console.loop.step2":`透過 MCP 連接第二個 agent。`,"console.loop.step3":`用自然語言告訴 agent 要改內容或流程。`,"console.collections.eyebrow":`內容模型`,"console.collections.title":`內容清單`,"console.collections.body":`這裡列出網站的所有資料集合。翻譯內容會併入主項目顯示。`,"console.collections.emptyTitle":`尚未定義 collections`,"console.collections.emptyBody":`還沒有任何資料集合。可以從範本開始,或請你的 agent 建立第一個。`,"console.collections.noDescription":`沒有描述。`,"collection.breadcrumb":`內容清單`,"collection.create":`新增`,"collection.defaultDescription":`這個 collection 裡的 entries。`,"collection.schemaSummary":`管理 {name} 的項目、發布狀態與多語內容。`,"collection.schemaDetails":`Schema 說明`,"collection.searchPlaceholder":`搜尋標題、ID、狀態...`,"collection.filter.all":`全部`,"collection.empty.title":`目前沒有 entries`,"collection.empty.search":`沒有符合「{search}」的資料。`,"collection.empty.withStatus":`這個 collection 目前沒有 {status} entries。`,"collection.empty.all":`這個 collection 目前沒有 entries。`,"collection.refreshing":`清單更新中...`,"collection.loadMore":`載入更多`,"collection.export":`匯出 CSV`,"collection.copyId":`複製完整 ID`,"collection.table.id":`ID`,"collection.table.title":`標題`,"collection.table.status":`狀態`,"collection.table.locale":`語言`,"collection.table.version":`版本`,"collection.table.updated":`更新時間`,"collection.table.actions":`操作`,"collection.table.selectAll":`選取這一頁的所有項目`,"collection.table.selectRow":`選取 {name}`,"collection.actions.label":`內容操作`,"rowActions.menuLabel":`資料列操作`,"rowActions.cancel":`取消`,"collection.untitled":`(未命名)`,"collection.bulk.selectedCount":`已選取 {count} 筆`,"collection.bulk.publish":`發布`,"collection.bulk.unpublish":`下架`,"collection.bulk.delete":`刪除`,"collection.bulk.deleteConfirm":`刪除已選取的 {count} 筆資料?這個動作無法復原。`,"crud.create":`新增`,"crud.edit":`編輯`,"crud.search":`查詢`,"crud.delete":`刪除`,"crud.createTooltip":`新增一筆{name}。`,"crud.editTooltip":`編輯{name}。`,"crud.searchTooltip":`查詢{name}。`,"crud.deleteTooltip":`刪除{name}。`,"crud.duplicateTooltip":`複製{name}。`,"crud.saveTitle":`儲存標題`,"crud.cancelTitle":`取消編輯`,"crud.deleteConfirm":`確定要刪除{name}?這個動作無法復原。`,"crud.saving":`儲存中...`,"crud.duplicating":`複製中...`,"crud.deleting":`刪除中...`,"entryEdit.back":`回到 {name}`,"entryEdit.body":`編輯 {name} 的內容,相關資料會自動帶出。`,"entryEdit.parent":`父層:{name}`,"entryEdit.save":`儲存變更`,"entryEdit.saveTooltip":`儲存這筆資料。`,"entryEdit.fields":`資料欄位`,"entryEdit.meta":`資料資訊`,"entryEdit.related":`相關資料`,"entryEdit.noRelated":`目前沒有推導出這筆資料的子 collection。`,"entryEdit.noChildEntries":`目前沒有符合這筆資料的子資料。`,"entryEdit.relationship":`透過子欄位 {child} 對應父欄位 {parent}。`,"entryEdit.addItem":`新增項目`,"entryEdit.removeItem":`移除項目`,"entryEdit.emptyOption":`無值`,"entryEdit.boolean":`啟用`,"entryEdit.operationalHint":`系統寫入的資料——手動修改可能在下次同步時被覆蓋。`,"settings.page.title":`商店設定`,"settings.page.body":`管理全站品牌文案與預設服務資訊,讓商品與首頁可以共用。`,"settings.tabsLabel":`商店設定分頁`,"settings.tab.brand":`品牌`,"settings.tab.tracking":`追蹤碼`,"settings.brandSection":`品牌與服務`,"settings.brandSectionBody":`產生頁面時共用的預設站台文案。`,"settings.siteBrand":`網站品牌`,"settings.siteTitle":`網站標題`,"settings.siteDescription":`網站描述`,"settings.trackingSection":`追蹤碼`,"settings.trackingSectionBody":`填入 analytics ID 後,Mantle 會在產生的前台頁面自動埋入對應追蹤碼。`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`只需要填 ID,例如 G-XXXXXXXXXX,不要貼整段 gtag script。`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`只需要填數字 Pixel ID,Mantle 會產生標準 Pixel base code。`,"guide.title":`你的商店後台已經準備好了`,"guide.body":`先用這個導覽了解每個編輯入口,再交給 agent 做更大量的調整。`,"guide.step1":`打開商品清單,確認前台預設商品都有進後台。`,"guide.step2":`在 collection 頁使用新增、編輯、查詢或刪除。`,"guide.step3":`預覽公開網站,再在各內容區直接用 Rich Editor 持續調整。`,"guide.close":`關閉引導`,"guide.open":`使用者引導`,"guide.next":`下一步`,"guide.prev":`上一步`,"guide.finish":`完成`,"guide.collections.title":`從內容開始`,"guide.collections.body":`打開第一個 collection,管理裡面的項目、狀態與多語內容。`,"guide.filters.title":`切換發布狀態`,"guide.filters.body":`在清單上直接切換全部、草稿、已發布與已封存,不需要離開目前頁面。`,"guide.actions.title":`在清單裡直接操作`,"guide.actions.body":`用每列右側操作編輯項目,或從網站移除。`,"guide.reopen.title":`隨時重新打開引導`,"guide.reopen.body":`右上角會保留使用者引導按鈕,需要時可以再次開啟或關閉這套逐步導覽。`,"nav.home":`首頁`,"nav.content":`內容`,"nav.operations":`營運資料`,"nav.editor":`編輯器`,"nav.media":`媒體庫`,"nav.more":`更多`,"nav.approvals":`審核`,"nav.settings":`設定`,"nav.staff":`員工管理`,"nav.ops":`操作`,"nav.reports":`報表`,"ops.page.title":`操作`,"ops.page.body":`站務操作都在這裡。填好欄位、按執行,結果會直接顯示在下方。`,"ops.run":`執行`,"ops.running":`執行中...`,"ops.result.title":`結果`,"ops.error.title":`錯誤`,"ops.empty.title":`目前沒有開放給 staff 的操作`,"ops.empty.body":`目前沒有可用的操作。網站設定檔把操作開放給站務人員後,表單會自動出現在這裡。`,"ops.triggers.mcp":`MCP`,"ops.triggers.http":`HTTP`,"views.page.title":`報表`,"views.page.body":`{schema} 的唯讀報表。`,"views.params.title":`查詢參數`,"views.run":`查詢`,"views.running":`查詢中...`,"views.empty.title":`沒有資料`,"views.empty.body":`目前的條件下沒有資料。`,"views.notFound.title":`找不到這個 View`,"staff.page.title":`員工管理`,"staff.page.body":`以 email 邀請員工、指派角色、撤銷尚未使用的邀請。僅 owner 可見此頁。`,"staff.invite.title":`邀請員工`,"staff.invite.emailLabel":`Email`,"staff.invite.emailPlaceholder":`teammate@example.com`,"staff.invite.roleLabel":`角色`,"staff.invite.button":`建立邀請`,"staff.invite.sending":`邀請中…`,"staff.invite.revoke":`撤銷`,"staff.invite.hint":`受邀者到 /admin/sign-in 用受邀的 email 登入(magic link、email 驗證碼,或同信箱的社群帳號),登入時角色即已生效。`,"staff.table.name":`姓名`,"staff.table.email":`Email`,"staff.table.status":`狀態/登入方式`,"staff.table.role":`角色`,"staff.role.owner":`管理者`,"staff.role.editor":`編輯`,"staff.role.contributor":`協作者`,"staff.role.none":`無角色`,"staff.badge.invited":`邀請中`,"staff.status.emailSignIn":`Email 登入`,"staff.self":`你自己`,"status.draft":`草稿`,"status.review":`審核中`,"status.published":`已發布`,"status.archived":`已封存`,"preferences.heading":`偏好設定`,"preferences.language":`後台語言`,"preferences.language.search":`搜尋語言...`,"preferences.language.noResults":`找不到語言。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向會跟隨選擇的語言。`,"preferences.appearance":`外觀`,"preferences.light":`淺色`,"preferences.dark":`深色`,"preferences.system":`跟隨系統`,"preferences.ltr":`左到右`,"preferences.rtl":`右到左`,"preferences.page.title":`個人偏好`,"preferences.page.body":`這些偏好只保存在這個瀏覽器,只影響 admin console,不會改動站台設定。`,"preferences.page.languageBody":`選擇系統頁與 admin chrome 使用的語言。`,"preferences.page.appearanceBody":`選擇淺色、深色,或跟隨作業系統。`,"preferences.page.open":`個人偏好`,"settings.planned.title":`Settings 尚未接上`,"settings.planned.body":`Settings 是會寫進站台的資料,例如 site config。Preferences 則只保存在這個瀏覽器。`,"system.notFound.title":`找不到頁面`,"system.notFound.plannedTitle":`尚未接上`,"system.notFound.body":`沒有 view 註冊在`,"system.notFound.back":`回首頁`,"editor.page.title":`內容編輯器`,"editor.page.body":`在交給 agent 或發布流程之前,先用 Markdown、HTML 或 Rich Editor 編輯內容草稿。`,"editor.mode.markdown":`Markdown`,"editor.mode.html":`HTML`,"editor.mode.rich":`Rich Editor`,"editor.titleLabel":`標題`,"editor.slugLabel":`Slug`,"editor.bodyLabel":`本文`,"editor.preview":`預覽`,"editor.insertBlock":`插入區塊`,"editor.saveDraft":`儲存草稿`,"editor.markdownHint":`支援標題、清單、連結與 fenced code blocks。`,"editor.htmlHint":`用原始碼模式編輯可信任的 HTML 片段。`,"editor.richHint":`不碰 markup 也能整理段落、提示框與內文。`,"editor.toolbar":`Rich Editor 工具列`,"editor.undo":`復原`,"editor.redo":`重做`,"editor.aiClean":`插入提示區塊`,"editor.uploadImage":`上傳圖片`,"editor.uploading":`圖片上傳中...`,"editor.textStyle":`文字樣式`,"editor.headingPlaceholder":`標題`,"editor.decreaseFont":`縮小字級`,"editor.increaseFont":`放大字級`,"editor.selectedText":`選取文字`,"editor.bold":`粗體`,"editor.italic":`斜體`,"editor.underline":`底線`,"editor.strike":`刪除線`,"editor.inlineCode":`行內程式碼`,"editor.textColor":`文字顏色`,"editor.highlight":`螢光標記`,"editor.palette":`品牌色`,"editor.alignLeft":`靠左對齊`,"editor.alignCenter":`置中對齊`,"editor.alignRight":`靠右對齊`,"editor.bulletList":`項目清單`,"editor.numberList":`編號清單`,"editor.checkList":`待辦清單`,"editor.indent":`縮排`,"editor.link":`連結`,"editor.linkText":`連結文字`,"editor.table":`表格`,"editor.emoji":`表情符號`,"editor.mediaLibrary":`媒體庫`,"editor.imageUrl":`圖片網址`,"editor.insertImage":`插入圖片`,"editor.videoUrl":`YouTube / Dailymotion 連結`,"editor.insertVideo":`插入影片`,"editor.audioHint":`音訊嵌入`,"media.alt":`替代文字`,"media.title":`媒體庫`,"media.description":`這個網站上傳過的所有圖片。可以在內容中重複使用、整理替代文字,或刪除不需要的圖片。`,"media.upload":`上傳`,"media.uploading":`上傳中...`,"media.dropHere":`把圖片拖曳到這裡上傳`,"media.searchPlaceholder":`搜尋替代文字、說明或 id`,"media.empty.title":`還沒有圖片`,"media.empty.all":`上傳一張圖片,開始建立媒體庫。`,"media.empty.search":`沒有符合「{search}」的圖片。`,"media.noPurpose":`這個網站沒有設定上傳用途,無法上傳。`,"media.caption":`說明文字`,"media.altPlaceholder":`描述這張圖片`,"media.captionPlaceholder":`選填說明`,"media.save":`儲存`,"media.saving":`儲存中...`,"media.saved":`已儲存`,"media.delete":`刪除`,"media.deleteConfirm":`確定要刪除這張圖片嗎?所有使用到的地方都會一併移除。`,"media.open":`開啟原圖`,"media.copyId":`複製 id`,"media.uploaded":`上傳於 {date}`,"media.pick":`從媒體庫選擇`,"media.pickTitle":`選擇圖片`,"media.pickDescription":`挑一張現有圖片重複使用,或上傳新圖片。`,"media.use":`使用這張圖片`,"media.uploadNew":`上傳新圖片`,"media.loadMore":`載入更多`,"media.uploadFailed":`{total} 張圖片中有 {count} 張上傳失敗。`,"media.encoderUnsupported":`這個網站的媒體政策要求此瀏覽器無法產生的圖片格式({mime})。請聯絡網站開發者調整政策。`,"approvals.title":`審核中心`,"approvals.body":`集中查看等待審核的 editorial entries,發布前可以逐筆檢查內容。`,"approvals.emptyTitle":`目前沒有等待審核的內容`,"approvals.emptyBody":`送出審核的資料會依 collection 分組顯示在這裡。`,"approvals.groupBody":`目前有 {count} 筆內容標記為「{status}」。`,"approvals.openCollection":`開啟清單`,"approvals.reviewEntry":`審核`,"entryEdit.publish":`發布`,"entryEdit.publishing":`發布中...`,"entryEdit.publishTooltip":`發布這筆草稿。`,"entryEdit.publishDisabledDirty":`請先儲存變更才能發布。`,"entryEdit.unpublish":`取消發布`,"entryEdit.unpublishing":`取消發布中...`,"entryEdit.unpublishTooltip":`將這筆資料改回草稿以便編輯。`,"ops.error.executionFailed":`操作已執行,但未能完成。`,"ops.error.detailsLabel":`顯示詳細資訊`,"ops.success":`{name} 已完成。`,"confirm.title":`確定要這麼做嗎?`,"confirm.cancel":`取消`,"confirm.confirm":`確定`,"collection.schemaSummary.lifecycleAndI18n":`管理 {name} 的項目、發布狀態與多語內容。`,"collection.schemaSummary.lifecycleOnly":`管理 {name} 的項目與發布狀態。`,"collection.schemaSummary.i18nOnly":`管理 {name} 的項目與多語內容。`,"collection.schemaSummary.plain":`管理 {name} 的項目。`,"entryEdit.mediaMissing":`這張圖片已遺失或已被刪除。`,"field.hint.moneyMinor":`金額(最小單位)`,"field.hint.timestampMs":`時間戳記(毫秒)`},"zh-CN":{"admin.consoleTitle":`管理后台`,"auth.signIn.title":`登录`,"common.signOut":`登出`,"common.viewSite":`查看网站`,"common.copy":`复制`,"common.open":`打开`,"common.failedToLoad":`加载失败`,"common.signedIn":`已登录`,"console.agent.title":`下一步:连接 agent`,"console.description":`在这里管理 {title} 的内容与运营数据。支持 MCP 的 agent 也能与你并行协作。`,"console.descriptionFallback":`在这里管理这个网站的内容与运营数据。支持 MCP 的 agent 也能与你并行协作。`,"console.workspace.title":`从这里开始编辑`,"console.workspace.body":`你的内容 collection、页面与设置都能在这个后台管理。先选一个常用操作开始。`,"console.onboarding.title":`操作导览`,"console.onboarding.body":`第一次进入后台时,会用 overlay 带店主完成内容编辑、媒体检查与发布。`,"console.onboarding.step1":`先检查预设商品与首页区块。`,"console.onboarding.step2":`在对应的项目里直接用 Rich Editor 修改内容。`,"console.onboarding.step3":`预览前台,再发布变更。`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`公开网站 URL`,"console.collections.title":`内容清单`,"console.collections.body":`这里列出网站的所有资料集合。翻译内容会并入主项目显示。`,"collection.breadcrumb":`内容清单`,"collection.create":`新增`,"collection.filter.all":`全部`,"collection.table.title":`标题`,"collection.table.status":`状态`,"collection.table.locale":`语言`,"collection.table.version":`版本`,"collection.table.updated":`更新时间`,"collection.table.actions":`操作`,"collection.actions.label":`内容操作`,"rowActions.menuLabel":`数据行操作`,"rowActions.cancel":`取消`,"collection.untitled":`(未命名)`,"collection.searchPlaceholder":`搜索标题、ID、状态...`,"collection.empty.search":`没有符合“{search}”的资料。`,"collection.refreshing":`列表更新中...`,"collection.loadMore":`加载更多`,"collection.export":`导出 CSV`,"collection.copyId":`复制完整 ID`,"collection.table.id":`ID`,"collection.table.selectAll":`选取本页所有项目`,"collection.table.selectRow":`选取 {name}`,"collection.bulk.selectedCount":`已选取 {count} 笔`,"collection.bulk.publish":`发布`,"collection.bulk.unpublish":`下架`,"collection.bulk.delete":`删除`,"collection.bulk.deleteConfirm":`删除已选取的 {count} 笔资料?这个动作无法复原。`,"crud.create":`新增`,"crud.edit":`编辑`,"crud.search":`查询`,"crud.delete":`删除`,"crud.createTooltip":`新增一笔{name}。`,"crud.editTooltip":`编辑{name}。`,"crud.searchTooltip":`查询{name}。`,"crud.deleteTooltip":`删除{name}。`,"crud.duplicateTooltip":`复制{name}。`,"crud.saveTitle":`保存标题`,"crud.cancelTitle":`取消编辑`,"crud.deleteConfirm":`确定要删除{name}?这个动作无法复原。`,"crud.saving":`保存中...`,"crud.duplicating":`复制中...`,"crud.deleting":`删除中...`,"entryEdit.back":`回到 {name}`,"entryEdit.body":`编辑 {name} 的内容,相关资料会自动带出。`,"entryEdit.parent":`父层:{name}`,"entryEdit.save":`保存变更`,"entryEdit.saveTooltip":`保存这笔资料。`,"entryEdit.fields":`资料字段`,"entryEdit.meta":`资料信息`,"entryEdit.related":`相关资料`,"entryEdit.noRelated":`目前没有推导出这笔资料的子 collection。`,"entryEdit.noChildEntries":`目前没有符合这笔资料的子资料。`,"entryEdit.relationship":`透过子字段 {child} 对应父字段 {parent}。`,"entryEdit.addItem":`新增项目`,"entryEdit.removeItem":`移除项目`,"entryEdit.emptyOption":`无值`,"entryEdit.boolean":`启用`,"entryEdit.operationalHint":`系统写入的资料——手动修改可能在下次同步时被覆盖。`,"settings.page.title":`商店设置`,"settings.page.body":`管理全站品牌文案与预设服务信息,让商品与首页可以共用。`,"settings.tabsLabel":`商店设置分页`,"settings.tab.brand":`品牌`,"settings.tab.tracking":`追踪码`,"settings.brandSection":`品牌与服务`,"settings.brandSectionBody":`生成页面时共用的默认站台文案。`,"settings.siteBrand":`网站品牌`,"settings.siteTitle":`网站标题`,"settings.siteDescription":`网站描述`,"settings.trackingSection":`追踪码`,"settings.trackingSectionBody":`填入 analytics ID 后,Mantle 会在生成的前台页面自动埋入对应追踪码。`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`只需要填 ID,例如 G-XXXXXXXXXX,不要贴整段 gtag script。`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`只需要填数字 Pixel ID,Mantle 会生成标准 Pixel base code。`,"guide.title":`你的商店后台已经准备好了`,"guide.body":`先用这个导览了解每个编辑入口,再交给 agent 做更大量的调整。`,"guide.step1":`打开商品清单,确认前台预设商品都有进后台。`,"guide.step2":`在 collection 页使用新增、编辑、查询或删除。`,"guide.step3":`预览公开网站,再在各内容区直接用 Rich Editor 持续调整。`,"guide.close":`关闭引导`,"guide.open":`使用者引导`,"guide.next":`下一步`,"guide.prev":`上一步`,"guide.finish":`完成`,"guide.collections.title":`从内容开始`,"guide.collections.body":`打开第一个 collection,管理里面的项目、状态与多语内容。`,"guide.filters.title":`切换发布状态`,"guide.filters.body":`在清单上直接切换全部、草稿、已发布与已归档,不需要离开当前页面。`,"guide.actions.title":`在清单里直接操作`,"guide.actions.body":`用每列右侧操作编辑项目,或从网站移除。`,"guide.reopen.title":`随时重新打开引导`,"guide.reopen.body":`右上角会保留使用者引导按钮,需要时可以再次开启或关闭这套逐步导览。`,"nav.home":`首页`,"nav.content":`内容`,"nav.operations":`运营数据`,"nav.editor":`编辑器`,"nav.media":`媒体库`,"nav.more":`更多`,"nav.approvals":`审核`,"nav.settings":`设置`,"nav.ops":`操作`,"nav.reports":`报表`,"ops.page.title":`操作`,"ops.page.body":`站务操作都在这里。填好字段、按执行,结果会直接显示在下方。`,"ops.run":`执行`,"ops.running":`执行中...`,"ops.result.title":`结果`,"ops.error.title":`错误`,"ops.empty.title":`目前没有开放给 staff 的操作`,"ops.empty.body":`目前没有可用的操作。网站配置把操作开放给站务人员后,表单会自动出现在这里。`,"ops.triggers.mcp":`MCP`,"ops.triggers.http":`HTTP`,"views.page.title":`报表`,"views.page.body":`{schema} 的只读报表。`,"views.params.title":`查询参数`,"views.run":`查询`,"views.running":`查询中...`,"views.empty.title":`没有数据`,"views.empty.body":`当前条件下没有数据。`,"views.notFound.title":`找不到这个 View`,"status.draft":`草稿`,"status.review":`审核中`,"status.published":`已发布`,"status.archived":`已归档`,"preferences.heading":`偏好设置`,"preferences.language":`后台语言`,"preferences.language.search":`搜索语言...`,"preferences.language.noResults":`找不到语言。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向会跟随选择的语言。`,"preferences.appearance":`外观`,"preferences.light":`浅色`,"preferences.dark":`深色`,"preferences.system":`跟随系统`,"preferences.ltr":`从左到右`,"preferences.rtl":`从右到左`,"preferences.page.open":`个人偏好`,"preferences.page.title":`个人偏好`,"preferences.page.body":`这些偏好只保存在此浏览器,只影响 admin console,不会修改站点设置。`,"preferences.page.languageBody":`选择系统页面和 admin chrome 使用的语言。`,"preferences.page.appearanceBody":`选择浅色、深色,或跟随操作系统。`,"editor.page.title":`内容编辑器`,"editor.page.body":`在交给 agent 或发布流程前,先用 Markdown、HTML 或 Rich Editor 编辑内容草稿。`,"editor.mode.markdown":`Markdown`,"editor.mode.html":`HTML`,"editor.mode.rich":`Rich Editor`,"editor.titleLabel":`标题`,"editor.slugLabel":`Slug`,"editor.bodyLabel":`正文`,"editor.preview":`预览`,"editor.insertBlock":`插入区块`,"editor.saveDraft":`保存草稿`,"editor.markdownHint":`支持标题、列表、链接与 fenced code blocks。`,"editor.htmlHint":`用源码模式编辑可信任的 HTML 片段。`,"editor.richHint":`不用碰 markup 也能整理段落、提示框与内文。`,"editor.toolbar":`Rich Editor 工具栏`,"editor.undo":`撤销`,"editor.redo":`重做`,"editor.aiClean":`插入提示区块`,"editor.uploadImage":`上传图片`,"editor.uploading":`图片上传中...`,"editor.textStyle":`文字样式`,"editor.headingPlaceholder":`标题`,"editor.decreaseFont":`缩小字号`,"editor.increaseFont":`放大字号`,"editor.selectedText":`选取文字`,"editor.bold":`粗体`,"editor.italic":`斜体`,"editor.underline":`下划线`,"editor.strike":`删除线`,"editor.inlineCode":`行内代码`,"editor.textColor":`文字颜色`,"editor.highlight":`高亮标记`,"editor.palette":`品牌色`,"editor.alignLeft":`左对齐`,"editor.alignCenter":`居中对齐`,"editor.alignRight":`右对齐`,"editor.bulletList":`项目列表`,"editor.numberList":`编号列表`,"editor.checkList":`待办列表`,"editor.indent":`缩进`,"editor.link":`链接`,"editor.linkText":`链接文字`,"editor.table":`表格`,"editor.emoji":`表情符号`,"editor.mediaLibrary":`媒体库`,"editor.imageUrl":`图片网址`,"editor.insertImage":`插入图片`,"editor.videoUrl":`YouTube / Dailymotion 链接`,"editor.insertVideo":`插入视频`,"editor.audioHint":`音频嵌入`,"media.alt":`替代文字`,"media.title":`媒体库`,"media.description":`这个网站上传过的所有图片。可以在内容中重复使用、整理替代文字,或删除不需要的图片。`,"media.upload":`上传`,"media.uploading":`上传中...`,"media.dropHere":`把图片拖到这里上传`,"media.searchPlaceholder":`搜索替代文字、说明或 id`,"media.empty.title":`还没有图片`,"media.empty.all":`上传一张图片,开始建立媒体库。`,"media.empty.search":`没有符合“{search}”的图片。`,"media.noPurpose":`这个网站没有设置上传用途,无法上传。`,"media.caption":`说明文字`,"media.altPlaceholder":`描述这张图片`,"media.captionPlaceholder":`选填说明`,"media.save":`保存`,"media.saving":`保存中...`,"media.saved":`已保存`,"media.delete":`删除`,"media.deleteConfirm":`确定要删除这张图片吗?所有使用到的地方都会一并移除。`,"media.open":`打开原图`,"media.copyId":`复制 id`,"media.uploaded":`上传于 {date}`,"media.pick":`从媒体库选择`,"media.pickTitle":`选择图片`,"media.pickDescription":`挑一张现有图片重复使用,或上传新图片。`,"media.use":`使用这张图片`,"media.uploadNew":`上传新图片`,"media.loadMore":`加载更多`,"media.uploadFailed":`{total} 张图片中有 {count} 张上传失败。`,"media.encoderUnsupported":`这个网站的媒体政策要求此浏览器无法生成的图片格式({mime})。请联系网站开发者调整政策。`,"approvals.title":`审核中心`,"approvals.body":`集中查看等待审核的 editorial entries,发布前可以逐笔检查内容。`,"approvals.emptyTitle":`目前没有等待审核的内容`,"approvals.emptyBody":`送出审核的资料会依 collection 分组显示在这里。`,"approvals.groupBody":`目前有 {count} 笔内容标记为“{status}”。`,"approvals.openCollection":`打开清单`,"approvals.reviewEntry":`审核`,"entryEdit.publish":`发布`,"entryEdit.publishing":`发布中...`,"entryEdit.publishTooltip":`发布这笔草稿。`,"entryEdit.publishDisabledDirty":`请先保存变更才能发布。`,"entryEdit.unpublish":`取消发布`,"entryEdit.unpublishing":`取消发布中...`,"entryEdit.unpublishTooltip":`将这笔资料改回草稿以便编辑。`,"ops.error.executionFailed":`操作已执行,但未能完成。`,"ops.error.detailsLabel":`显示详细信息`,"ops.success":`{name} 已完成。`,"confirm.title":`确定要这么做吗?`,"confirm.cancel":`取消`,"confirm.confirm":`确定`,"collection.schemaSummary.lifecycleAndI18n":`管理 {name} 的项目、发布状态与多语内容。`,"collection.schemaSummary.lifecycleOnly":`管理 {name} 的项目与发布状态。`,"collection.schemaSummary.i18nOnly":`管理 {name} 的项目与多语内容。`,"collection.schemaSummary.plain":`管理 {name} 的项目。`,"entryEdit.mediaMissing":`这张图片已丢失或已被删除。`,"field.hint.moneyMinor":`金额(最小单位)`,"field.hint.timestampMs":`时间戳(毫秒)`},de:{"auth.signIn.title":`Anmelden`,"common.signOut":`Abmelden`,"common.viewSite":`Website ansehen`,"common.copy":`Kopieren`,"common.open":`Öffnen`,"common.failedToLoad":`Laden fehlgeschlagen`,"common.signedIn":`Angemeldet`,"console.agent.title":`Nächster Schritt: Agent verbinden`,"collection.filter.all":`Alle`,"nav.home":`Start`,"nav.content":`Inhalte`,"nav.more":`Mehr`,"nav.approvals":`Freigaben`,"nav.settings":`Einstellungen`,"status.draft":`Entwürfe`,"status.review":`In Prüfung`,"status.published":`Veröffentlicht`,"status.archived":`Archiviert`,"preferences.heading":`Präferenzen`,"preferences.language":`Admin-Sprache`,"preferences.language.search":`Sprachen suchen...`,"preferences.language.noResults":`Keine Sprachen gefunden.`,"preferences.direction":`Textrichtung`,"preferences.direction.auto":`Die Textrichtung folgt der gewählten Sprache.`,"preferences.appearance":`Darstellung`,"preferences.light":`Hell`,"preferences.dark":`Dunkel`,"preferences.system":`System`,"preferences.ltr":`Links nach rechts`,"preferences.rtl":`Rechts nach links`,"preferences.page.open":`Präferenzen`,"preferences.page.title":`Persönliche Präferenzen`,"preferences.page.body":`Diese Präferenzen bleiben in diesem Browser. Sie ändern nur die Admin-Konsole und keine Website-Einstellungen.`,"preferences.page.languageBody":`Wähle die Sprache für Systemseiten und Admin-Chrome.`,"preferences.page.appearanceBody":`Wähle hell, dunkel oder dein Betriebssystem.`},es:{"auth.signIn.title":`Iniciar sesión`,"common.signOut":`Cerrar sesión`,"common.viewSite":`Ver sitio`,"common.copy":`Copiar`,"common.open":`Abrir`,"common.failedToLoad":`Error al cargar`,"common.signedIn":`Sesión iniciada`,"console.agent.title":`Siguiente: conectar un agente`,"collection.filter.all":`Todo`,"nav.home":`Inicio`,"nav.content":`Contenido`,"nav.more":`Más`,"nav.approvals":`Aprobaciones`,"nav.settings":`Configuración`,"status.draft":`Borradores`,"status.review":`En revisión`,"status.published":`Publicado`,"status.archived":`Archivado`,"preferences.heading":`Preferencias`,"preferences.language":`Idioma del admin`,"preferences.language.search":`Buscar idiomas...`,"preferences.language.noResults":`No se encontraron idiomas.`,"preferences.direction":`Dirección del texto`,"preferences.direction.auto":`La dirección del texto sigue el idioma seleccionado.`,"preferences.appearance":`Apariencia`,"preferences.light":`Claro`,"preferences.dark":`Oscuro`,"preferences.system":`Sistema`,"preferences.ltr":`Izquierda a derecha`,"preferences.rtl":`Derecha a izquierda`,"preferences.page.open":`Preferencias`,"preferences.page.title":`Preferencias personales`,"preferences.page.body":`Estas preferencias se guardan en este navegador. Solo cambian la consola de administración y no modifican la configuración del sitio.`,"preferences.page.languageBody":`Elige el idioma de las páginas del sistema y la interfaz de administración.`,"preferences.page.appearanceBody":`Elige claro, oscuro o seguir el sistema operativo.`},fr:{"auth.signIn.title":`Se connecter`,"common.signOut":`Se déconnecter`,"common.viewSite":`Voir le site`,"common.copy":`Copier`,"common.open":`Ouvrir`,"common.failedToLoad":`Échec du chargement`,"common.signedIn":`Connecté`,"console.agent.title":`Étape suivante : connecter un agent`,"collection.filter.all":`Tout`,"nav.home":`Accueil`,"nav.content":`Contenu`,"nav.more":`Plus`,"nav.approvals":`Approbations`,"nav.settings":`Paramètres`,"status.draft":`Brouillons`,"status.review":`En révision`,"status.published":`Publié`,"status.archived":`Archivé`,"preferences.heading":`Préférences`,"preferences.language":`Langue admin`,"preferences.language.search":`Rechercher une langue...`,"preferences.language.noResults":`Aucune langue trouvée.`,"preferences.direction":`Direction du texte`,"preferences.direction.auto":`La direction du texte suit la langue sélectionnée.`,"preferences.appearance":`Apparence`,"preferences.light":`Clair`,"preferences.dark":`Sombre`,"preferences.system":`Système`,"preferences.ltr":`Gauche à droite`,"preferences.rtl":`Droite à gauche`,"preferences.page.open":`Préférences`,"preferences.page.title":`Préférences personnelles`,"preferences.page.body":`Ces préférences restent dans ce navigateur. Elles modifient seulement la console admin, pas les paramètres du site.`,"preferences.page.languageBody":`Choisissez la langue des pages système et de l'interface admin.`,"preferences.page.appearanceBody":`Choisissez clair, sombre ou le thème du système.`},it:{"auth.signIn.title":`Accedi`,"common.signOut":`Esci`,"common.viewSite":`Vedi sito`,"common.copy":`Copia`,"common.open":`Apri`,"common.failedToLoad":`Caricamento non riuscito`,"common.signedIn":`Accesso effettuato`,"console.agent.title":`Prossimo: collega un agente`,"collection.filter.all":`Tutto`,"nav.home":`Home`,"nav.content":`Contenuti`,"nav.more":`Altro`,"nav.approvals":`Approvazioni`,"nav.settings":`Impostazioni`,"status.draft":`Bozze`,"status.review":`In revisione`,"status.published":`Pubblicato`,"status.archived":`Archiviato`,"preferences.heading":`Preferenze`,"preferences.language":`Lingua admin`,"preferences.language.search":`Cerca lingue...`,"preferences.language.noResults":`Nessuna lingua trovata.`,"preferences.direction":`Direzione testo`,"preferences.direction.auto":`La direzione del testo segue la lingua selezionata.`,"preferences.appearance":`Aspetto`,"preferences.light":`Chiaro`,"preferences.dark":`Scuro`,"preferences.system":`Sistema`,"preferences.ltr":`Da sinistra a destra`,"preferences.rtl":`Da destra a sinistra`,"preferences.page.open":`Preferenze`,"preferences.page.title":`Preferenze personali`,"preferences.page.body":`Queste preferenze restano in questo browser. Modificano solo la console admin e non le impostazioni del sito.`,"preferences.page.languageBody":`Scegli la lingua delle pagine di sistema e dell'interfaccia admin.`,"preferences.page.appearanceBody":`Scegli chiaro, scuro o segui il sistema operativo.`},ja:{"auth.signIn.title":`サインイン`,"auth.signIn.body":`管理コンソールです。サインイン後にロールでアクセスを判定します。`,"auth.signIn.methodsLoadFailed":`サインイン方法を読み込めませんでした。再読み込みしてください。`,"auth.signIn.noMethods":`このサイトにはサインイン方法が設定されていません。`,"auth.signIn.unknownMethod":`未対応のサインイン方法: {kind}`,"auth.signIn.method.social.button":`{provider} でサインイン`,"auth.signIn.method.email-otp.body":`メールに届くワンタイムコードでサインインします。`,"auth.signIn.method.email-otp.emailLabel":`メールアドレス`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`コードを送信`,"auth.signIn.method.email-otp.sendFailed":`コードの送信に失敗しました。メールを確認してもう一度お試しください。`,"auth.signIn.method.email-otp.sentTo":`{email} にコードを送信しました。`,"auth.signIn.method.email-otp.otpLabel":`ワンタイムコード`,"auth.signIn.method.email-otp.otpPlaceholder":`6 桁のコードを入力`,"auth.signIn.method.email-otp.verifyButton":`コードを確認してサインイン`,"auth.signIn.method.email-otp.verifyFailed":`コードが一致しません。もう一度入力してください。`,"auth.signIn.method.email-otp.back":`別のメールアドレスを使う`,"auth.signIn.method.magic-link.body":`ワンタップでサインインできるリンクをメールでお送りします。`,"auth.signIn.method.magic-link.emailLabel":`メールアドレス`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`サインインリンクを送信`,"auth.signIn.method.magic-link.sendFailed":`リンクの送信に失敗しました。メールを確認してもう一度お試しください。`,"auth.signIn.method.magic-link.sentTo":`{email} にサインインリンクを送信しました。`,"auth.signIn.method.magic-link.clickHint":`メール内のリンクをクリックしてサインインを完了してください。リンクはまもなく失効します。`,"auth.signIn.method.magic-link.anotherEmail":`別のメールアドレスを使う`,"common.signOut":`サインアウト`,"common.viewSite":`サイトを見る`,"common.copy":`コピー`,"common.open":`開く`,"common.failedToLoad":`読み込みに失敗しました`,"common.signedIn":`サインイン済み`,"console.agent.title":`次へ: agent を接続`,"collection.filter.all":`すべて`,"nav.home":`ホーム`,"nav.content":`コンテンツ`,"nav.more":`その他`,"nav.approvals":`承認`,"nav.settings":`設定`,"status.draft":`下書き`,"status.review":`レビュー中`,"status.published":`公開済み`,"status.archived":`アーカイブ済み`,"preferences.heading":`環境設定`,"preferences.language":`管理画面の言語`,"preferences.language.search":`言語を検索...`,"preferences.language.noResults":`言語が見つかりません。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向は選択した言語に従います。`,"preferences.appearance":`外観`,"preferences.light":`ライト`,"preferences.dark":`ダーク`,"preferences.system":`システム`,"preferences.ltr":`左から右`,"preferences.rtl":`右から左`,"preferences.page.open":`環境設定`,"preferences.page.title":`個人設定`,"preferences.page.body":`これらの設定はこのブラウザにのみ保存されます。管理コンソールだけに影響し、サイト設定は変更しません。`,"preferences.page.languageBody":`システムページと管理 UI で使う言語を選びます。`,"preferences.page.appearanceBody":`ライト、ダーク、またはシステム設定に合わせます。`},ko:{"auth.signIn.title":`로그인`,"common.signOut":`로그아웃`,"common.viewSite":`사이트 보기`,"common.copy":`복사`,"common.open":`열기`,"common.failedToLoad":`로드 실패`,"common.signedIn":`로그인됨`,"console.agent.title":`다음: agent 연결`,"collection.filter.all":`전체`,"nav.home":`홈`,"nav.content":`콘텐츠`,"nav.more":`더보기`,"nav.approvals":`승인`,"nav.settings":`설정`,"status.draft":`초안`,"status.review":`검토 중`,"status.published":`게시됨`,"status.archived":`보관됨`,"preferences.heading":`환경설정`,"preferences.language":`관리 언어`,"preferences.language.search":`언어 검색...`,"preferences.language.noResults":`언어를 찾을 수 없습니다.`,"preferences.direction":`텍스트 방향`,"preferences.direction.auto":`텍스트 방향은 선택한 언어를 따릅니다.`,"preferences.appearance":`화면 모드`,"preferences.light":`라이트`,"preferences.dark":`다크`,"preferences.system":`시스템`,"preferences.ltr":`왼쪽에서 오른쪽`,"preferences.rtl":`오른쪽에서 왼쪽`,"preferences.page.open":`환경설정`,"preferences.page.title":`개인 환경설정`,"preferences.page.body":`이 설정은 이 브라우저에만 저장됩니다. 관리 콘솔에만 적용되며 사이트 설정은 변경하지 않습니다.`,"preferences.page.languageBody":`시스템 페이지와 관리 UI에 사용할 언어를 선택합니다.`,"preferences.page.appearanceBody":`라이트, 다크 또는 운영체제 설정을 따르도록 선택합니다.`},"pt-BR":{"auth.signIn.title":`Entrar`,"common.signOut":`Sair`,"common.viewSite":`Ver site`,"common.copy":`Copiar`,"common.open":`Abrir`,"common.failedToLoad":`Falha ao carregar`,"common.signedIn":`Conectado`,"console.agent.title":`Próximo: conectar um agente`,"collection.filter.all":`Todos`,"nav.home":`Início`,"nav.content":`Conteúdo`,"nav.more":`Mais`,"nav.approvals":`Aprovações`,"nav.settings":`Configurações`,"status.draft":`Rascunhos`,"status.review":`Em revisão`,"status.published":`Publicado`,"status.archived":`Arquivado`,"preferences.heading":`Preferências`,"preferences.language":`Idioma do admin`,"preferences.language.search":`Pesquisar idiomas...`,"preferences.language.noResults":`Nenhum idioma encontrado.`,"preferences.direction":`Direção do texto`,"preferences.direction.auto":`A direção do texto segue o idioma selecionado.`,"preferences.appearance":`Aparência`,"preferences.light":`Claro`,"preferences.dark":`Escuro`,"preferences.system":`Sistema`,"preferences.ltr":`Esquerda para direita`,"preferences.rtl":`Direita para esquerda`,"preferences.page.open":`Preferências`,"preferences.page.title":`Preferências pessoais`,"preferences.page.body":`Estas preferências ficam neste navegador. Elas mudam apenas o console admin e não alteram as configurações do site.`,"preferences.page.languageBody":`Escolha o idioma das páginas do sistema e da interface admin.`,"preferences.page.appearanceBody":`Escolha claro, escuro ou seguir o sistema operacional.`},ru:{"auth.signIn.title":`Войти`,"common.signOut":`Выйти`,"common.viewSite":`Открыть сайт`,"common.copy":`Копировать`,"common.open":`Открыть`,"common.failedToLoad":`Не удалось загрузить`,"common.signedIn":`Вы вошли`,"console.agent.title":`Далее: подключите агента`,"collection.filter.all":`Все`,"nav.home":`Главная`,"nav.content":`Контент`,"nav.more":`Еще`,"nav.approvals":`Одобрения`,"nav.settings":`Настройки`,"status.draft":`Черновики`,"status.review":`На проверке`,"status.published":`Опубликовано`,"status.archived":`Архив`,"preferences.heading":`Предпочтения`,"preferences.language":`Язык админки`,"preferences.language.search":`Поиск языков...`,"preferences.language.noResults":`Языки не найдены.`,"preferences.direction":`Направление текста`,"preferences.direction.auto":`Направление текста следует выбранному языку.`,"preferences.appearance":`Внешний вид`,"preferences.light":`Светлая`,"preferences.dark":`Темная`,"preferences.system":`Система`,"preferences.ltr":`Слева направо`,"preferences.rtl":`Справа налево`,"preferences.page.open":`Предпочтения`,"preferences.page.title":`Личные предпочтения`,"preferences.page.body":`Эти предпочтения хранятся в этом браузере. Они меняют только админ-консоль и не изменяют настройки сайта.`,"preferences.page.languageBody":`Выберите язык системных страниц и интерфейса админки.`,"preferences.page.appearanceBody":`Выберите светлую, темную тему или тему системы.`},nl:{"auth.signIn.title":`Inloggen`,"common.signOut":`Uitloggen`,"common.viewSite":`Site bekijken`,"common.copy":`Kopiëren`,"common.open":`Openen`,"common.failedToLoad":`Laden mislukt`,"common.signedIn":`Ingelogd`,"console.agent.title":`Volgende stap: agent verbinden`,"collection.filter.all":`Alles`,"nav.home":`Home`,"nav.content":`Content`,"nav.more":`Meer`,"nav.approvals":`Goedkeuringen`,"nav.settings":`Instellingen`,"status.draft":`Concepten`,"status.review":`In review`,"status.published":`Gepubliceerd`,"status.archived":`Gearchiveerd`,"preferences.heading":`Voorkeuren`,"preferences.language":`Beheertaal`,"preferences.language.search":`Talen zoeken...`,"preferences.language.noResults":`Geen talen gevonden.`,"preferences.direction":`Tekstrichting`,"preferences.direction.auto":`De tekstrichting volgt de gekozen taal.`,"preferences.appearance":`Weergave`,"preferences.light":`Licht`,"preferences.dark":`Donker`,"preferences.system":`Systeem`,"preferences.ltr":`Links naar rechts`,"preferences.rtl":`Rechts naar links`,"preferences.page.open":`Voorkeuren`,"preferences.page.title":`Persoonlijke voorkeuren`,"preferences.page.body":`Deze voorkeuren blijven in deze browser. Ze wijzigen alleen de adminconsole en niet de site-instellingen.`,"preferences.page.languageBody":`Kies de taal voor systeempagina's en de admininterface.`,"preferences.page.appearanceBody":`Kies licht, donker of volg het besturingssysteem.`},pl:{"auth.signIn.title":`Zaloguj się`,"common.signOut":`Wyloguj się`,"common.viewSite":`Zobacz stronę`,"common.copy":`Kopiuj`,"common.open":`Otwórz`,"common.failedToLoad":`Nie udało się załadować`,"common.signedIn":`Zalogowano`,"console.agent.title":`Dalej: połącz agenta`,"collection.filter.all":`Wszystkie`,"nav.home":`Start`,"nav.content":`Treści`,"nav.more":`Więcej`,"nav.approvals":`Zatwierdzenia`,"nav.settings":`Ustawienia`,"status.draft":`Szkice`,"status.review":`W recenzji`,"status.published":`Opublikowane`,"status.archived":`Zarchiwizowane`,"preferences.heading":`Preferencje`,"preferences.language":`Język panelu`,"preferences.language.search":`Szukaj języków...`,"preferences.language.noResults":`Nie znaleziono języków.`,"preferences.direction":`Kierunek tekstu`,"preferences.direction.auto":`Kierunek tekstu wynika z wybranego języka.`,"preferences.appearance":`Wygląd`,"preferences.light":`Jasny`,"preferences.dark":`Ciemny`,"preferences.system":`System`,"preferences.ltr":`Od lewej do prawej`,"preferences.rtl":`Od prawej do lewej`,"preferences.page.open":`Preferencje`,"preferences.page.title":`Preferencje osobiste`,"preferences.page.body":`Te preferencje są zapisane w tej przeglądarce. Zmieniają tylko konsolę administracyjną, nie ustawienia strony.`,"preferences.page.languageBody":`Wybierz język stron systemowych i interfejsu admina.`,"preferences.page.appearanceBody":`Wybierz jasny, ciemny lub zgodny z systemem.`},tr:{"auth.signIn.title":`Oturum aç`,"common.signOut":`Çıkış yap`,"common.viewSite":`Siteyi görüntüle`,"common.copy":`Kopyala`,"common.open":`Aç`,"common.failedToLoad":`Yüklenemedi`,"common.signedIn":`Oturum açık`,"console.agent.title":`Sonraki: agent bağla`,"collection.filter.all":`Tümü`,"nav.home":`Ana sayfa`,"nav.content":`İçerik`,"nav.more":`Daha fazla`,"nav.approvals":`Onaylar`,"nav.settings":`Ayarlar`,"status.draft":`Taslaklar`,"status.review":`İncelemede`,"status.published":`Yayında`,"status.archived":`Arşivlendi`,"preferences.heading":`Tercihler`,"preferences.language":`Yönetici dili`,"preferences.language.search":`Dil ara...`,"preferences.language.noResults":`Dil bulunamadı.`,"preferences.direction":`Metin yönü`,"preferences.direction.auto":`Metin yönü seçilen dili izler.`,"preferences.appearance":`Görünüm`,"preferences.light":`Açık`,"preferences.dark":`Koyu`,"preferences.system":`Sistem`,"preferences.ltr":`Soldan sağa`,"preferences.rtl":`Sağdan sola`,"preferences.page.open":`Tercihler`,"preferences.page.title":`Kişisel tercihler`,"preferences.page.body":`Bu tercihler bu tarayıcıda kalır. Yalnızca yönetim konsolunu değiştirir, site ayarlarını değiştirmez.`,"preferences.page.languageBody":`Sistem sayfaları ve yönetim arayüzü için dili seçin.`,"preferences.page.appearanceBody":`Açık, koyu veya işletim sistemini takip et seçeneğini seçin.`},vi:{"auth.signIn.title":`Đăng nhập`,"common.signOut":`Đăng xuất`,"common.viewSite":`Xem trang`,"common.copy":`Sao chép`,"common.open":`Mở`,"common.failedToLoad":`Tải thất bại`,"common.signedIn":`Đã đăng nhập`,"console.agent.title":`Tiếp theo: kết nối agent`,"collection.filter.all":`Tất cả`,"nav.home":`Trang chủ`,"nav.content":`Nội dung`,"nav.more":`Thêm`,"nav.approvals":`Phê duyệt`,"nav.settings":`Cài đặt`,"status.draft":`Bản nháp`,"status.review":`Đang duyệt`,"status.published":`Đã xuất bản`,"status.archived":`Đã lưu trữ`,"preferences.heading":`Tùy chọn`,"preferences.language":`Ngôn ngữ quản trị`,"preferences.language.search":`Tìm ngôn ngữ...`,"preferences.language.noResults":`Không tìm thấy ngôn ngữ.`,"preferences.direction":`Hướng văn bản`,"preferences.direction.auto":`Hướng văn bản theo ngôn ngữ đã chọn.`,"preferences.appearance":`Giao diện`,"preferences.light":`Sáng`,"preferences.dark":`Tối`,"preferences.system":`Hệ thống`,"preferences.ltr":`Trái sang phải`,"preferences.rtl":`Phải sang trái`,"preferences.page.open":`Tùy chọn`,"preferences.page.title":`Tùy chọn cá nhân`,"preferences.page.body":`Các tùy chọn này chỉ lưu trong trình duyệt này. Chúng chỉ thay đổi admin console và không sửa cài đặt trang.`,"preferences.page.languageBody":`Chọn ngôn ngữ cho trang hệ thống và giao diện quản trị.`,"preferences.page.appearanceBody":`Chọn sáng, tối hoặc theo hệ điều hành.`},cs:{"auth.signIn.title":`Přihlásit se`,"common.signOut":`Odhlásit se`,"common.viewSite":`Zobrazit web`,"common.copy":`Kopírovat`,"common.open":`Otevřít`,"common.failedToLoad":`Načtení selhalo`,"common.signedIn":`Přihlášeno`,"console.agent.title":`Další: připojit agenta`,"collection.filter.all":`Vše`,"nav.home":`Domů`,"nav.content":`Obsah`,"nav.more":`Více`,"nav.approvals":`Schválení`,"nav.settings":`Nastavení`,"status.draft":`Koncepty`,"status.review":`V kontrole`,"status.published":`Publikováno`,"status.archived":`Archivováno`,"preferences.heading":`Předvolby`,"preferences.language":`Jazyk administrace`,"preferences.language.search":`Hledat jazyky...`,"preferences.language.noResults":`Nenalezeny žádné jazyky.`,"preferences.direction":`Směr textu`,"preferences.direction.auto":`Směr textu se řídí vybraným jazykem.`,"preferences.appearance":`Vzhled`,"preferences.light":`Světlý`,"preferences.dark":`Tmavý`,"preferences.system":`Systém`,"preferences.ltr":`Zleva doprava`,"preferences.rtl":`Zprava doleva`,"preferences.page.open":`Předvolby`,"preferences.page.title":`Osobní předvolby`,"preferences.page.body":`Tyto předvolby zůstávají v tomto prohlížeči. Mění jen administrační konzoli, ne nastavení webu.`,"preferences.page.languageBody":`Vyberte jazyk systémových stránek a administračního rozhraní.`,"preferences.page.appearanceBody":`Vyberte světlý, tmavý nebo systémový režim.`},uk:{"auth.signIn.title":`Увійти`,"common.signOut":`Вийти`,"common.viewSite":`Переглянути сайт`,"common.copy":`Копіювати`,"common.open":`Відкрити`,"common.failedToLoad":`Не вдалося завантажити`,"common.signedIn":`Ви увійшли`,"console.agent.title":`Далі: підключіть агента`,"collection.filter.all":`Усі`,"nav.home":`Головна`,"nav.content":`Контент`,"nav.more":`Більше`,"nav.approvals":`Схвалення`,"nav.settings":`Налаштування`,"status.draft":`Чернетки`,"status.review":`На перевірці`,"status.published":`Опубліковано`,"status.archived":`Архівовано`,"preferences.heading":`Параметри`,"preferences.language":`Мова адмінки`,"preferences.language.search":`Пошук мов...`,"preferences.language.noResults":`Мови не знайдено.`,"preferences.direction":`Напрям тексту`,"preferences.direction.auto":`Напрям тексту відповідає вибраній мові.`,"preferences.appearance":`Вигляд`,"preferences.light":`Світла`,"preferences.dark":`Темна`,"preferences.system":`Система`,"preferences.ltr":`Зліва направо`,"preferences.rtl":`Справа наліво`,"preferences.page.open":`Параметри`,"preferences.page.title":`Особисті параметри`,"preferences.page.body":`Ці параметри зберігаються в цьому браузері. Вони змінюють лише адмін-консоль, а не налаштування сайту.`,"preferences.page.languageBody":`Виберіть мову системних сторінок та адмін-інтерфейсу.`,"preferences.page.appearanceBody":`Виберіть світлу, темну тему або тему системи.`},ar:{"auth.signIn.title":`تسجيل الدخول`,"common.signOut":`تسجيل الخروج`,"common.viewSite":`عرض الموقع`,"common.copy":`نسخ`,"common.open":`فتح`,"common.failedToLoad":`فشل التحميل`,"common.signedIn":`تم تسجيل الدخول`,"console.agent.title":`التالي: وصّل الوكيل`,"collection.filter.all":`الكل`,"nav.home":`الرئيسية`,"nav.content":`المحتوى`,"nav.more":`المزيد`,"nav.approvals":`الموافقات`,"nav.settings":`الإعدادات`,"status.draft":`مسودات`,"status.review":`قيد المراجعة`,"status.published":`منشور`,"status.archived":`مؤرشف`,"preferences.heading":`التفضيلات`,"preferences.language":`لغة الإدارة`,"preferences.language.search":`ابحث عن اللغات...`,"preferences.language.noResults":`لم يتم العثور على لغات.`,"preferences.direction":`اتجاه النص`,"preferences.direction.auto":`يتبع اتجاه النص اللغة المحددة.`,"preferences.appearance":`المظهر`,"preferences.light":`فاتح`,"preferences.dark":`داكن`,"preferences.system":`النظام`,"preferences.ltr":`من اليسار إلى اليمين`,"preferences.rtl":`من اليمين إلى اليسار`,"preferences.page.open":`التفضيلات`,"preferences.page.title":`التفضيلات الشخصية`,"preferences.page.body":`تبقى هذه التفضيلات في هذا المتصفح. إنها تغيّر وحدة الإدارة فقط ولا تعدّل إعدادات الموقع.`,"preferences.page.languageBody":`اختر لغة صفحات النظام وواجهة الإدارة.`,"preferences.page.appearanceBody":`اختر الوضع الفاتح أو الداكن أو اتبع نظام التشغيل.`},he:{"auth.signIn.title":`כניסה`,"common.signOut":`יציאה`,"common.viewSite":`הצג אתר`,"common.copy":`העתק`,"common.open":`פתח`,"common.failedToLoad":`הטעינה נכשלה`,"common.signedIn":`מחובר`,"console.agent.title":`הבא: חבר agent`,"collection.filter.all":`הכול`,"nav.home":`בית`,"nav.content":`תוכן`,"nav.more":`עוד`,"nav.approvals":`אישורים`,"nav.settings":`הגדרות`,"status.draft":`טיוטות`,"status.review":`בבדיקה`,"status.published":`פורסם`,"status.archived":`בארכיון`,"preferences.heading":`העדפות`,"preferences.language":`שפת ניהול`,"preferences.language.search":`חפש שפות...`,"preferences.language.noResults":`לא נמצאו שפות.`,"preferences.direction":`כיוון טקסט`,"preferences.direction.auto":`כיוון הטקסט נקבע לפי השפה שנבחרה.`,"preferences.appearance":`מראה`,"preferences.light":`בהיר`,"preferences.dark":`כהה`,"preferences.system":`מערכת`,"preferences.ltr":`משמאל לימין`,"preferences.rtl":`מימין לשמאל`,"preferences.page.open":`העדפות`,"preferences.page.title":`העדפות אישיות`,"preferences.page.body":`העדפות אלה נשמרות בדפדפן הזה. הן משנות רק את מסוף הניהול ולא את הגדרות האתר.`,"preferences.page.languageBody":`בחר את שפת דפי המערכת וממשק הניהול.`,"preferences.page.appearanceBody":`בחר בהיר, כהה או לפי מערכת ההפעלה.`},fa:{"auth.signIn.title":`ورود`,"common.signOut":`خروج`,"common.viewSite":`مشاهده سایت`,"common.copy":`کپی`,"common.open":`باز کردن`,"common.failedToLoad":`بارگذاری ناموفق بود`,"common.signedIn":`وارد شدهاید`,"console.agent.title":`بعدی: اتصال agent`,"collection.filter.all":`همه`,"nav.home":`خانه`,"nav.content":`محتوا`,"nav.more":`بیشتر`,"nav.approvals":`تأییدها`,"nav.settings":`تنظیمات`,"status.draft":`پیشنویسها`,"status.review":`در بازبینی`,"status.published":`منتشر شده`,"status.archived":`بایگانی شده`,"preferences.heading":`ترجیحات`,"preferences.language":`زبان مدیریت`,"preferences.language.search":`جستجوی زبانها...`,"preferences.language.noResults":`زبانی پیدا نشد.`,"preferences.direction":`جهت متن`,"preferences.direction.auto":`جهت متن از زبان انتخابشده پیروی میکند.`,"preferences.appearance":`ظاهر`,"preferences.light":`روشن`,"preferences.dark":`تیره`,"preferences.system":`سیستم`,"preferences.ltr":`چپ به راست`,"preferences.rtl":`راست به چپ`,"preferences.page.open":`ترجیحات`,"preferences.page.title":`ترجیحات شخصی`,"preferences.page.body":`این ترجیحات در همین مرورگر ذخیره میشود. فقط کنسول مدیریت را تغییر میدهد و تنظیمات سایت را تغییر نمیدهد.`,"preferences.page.languageBody":`زبان صفحات سیستمی و رابط مدیریت را انتخاب کنید.`,"preferences.page.appearanceBody":`روشن، تیره یا پیروی از سیستمعامل را انتخاب کنید.`},th:{"auth.signIn.title":`เข้าสู่ระบบ`,"common.signOut":`ออกจากระบบ`,"common.viewSite":`ดูเว็บไซต์`,"common.copy":`คัดลอก`,"common.open":`เปิด`,"common.failedToLoad":`โหลดไม่สำเร็จ`,"common.signedIn":`เข้าสู่ระบบแล้ว`,"console.agent.title":`ถัดไป: เชื่อมต่อ agent`,"collection.filter.all":`ทั้งหมด`,"nav.home":`หน้าแรก`,"nav.content":`เนื้อหา`,"nav.more":`เพิ่มเติม`,"nav.approvals":`การอนุมัติ`,"nav.settings":`การตั้งค่า`,"status.draft":`ฉบับร่าง`,"status.review":`กำลังตรวจสอบ`,"status.published":`เผยแพร่แล้ว`,"status.archived":`เก็บถาวร`,"preferences.heading":`ค่ากำหนด`,"preferences.language":`ภาษาผู้ดูแล`,"preferences.language.search":`ค้นหาภาษา...`,"preferences.language.noResults":`ไม่พบภาษา`,"preferences.direction":`ทิศทางข้อความ`,"preferences.direction.auto":`ทิศทางข้อความจะตามภาษาที่เลือก`,"preferences.appearance":`รูปลักษณ์`,"preferences.light":`สว่าง`,"preferences.dark":`มืด`,"preferences.system":`ระบบ`,"preferences.ltr":`ซ้ายไปขวา`,"preferences.rtl":`ขวาไปซ้าย`,"preferences.page.open":`ค่ากำหนด`,"preferences.page.title":`ค่ากำหนดส่วนตัว`,"preferences.page.body":`ค่ากำหนดเหล่านี้จะอยู่ในเบราว์เซอร์นี้เท่านั้น และมีผลกับ admin console โดยไม่แก้การตั้งค่าเว็บไซต์`,"preferences.page.languageBody":`เลือกภาษาสำหรับหน้าระบบและส่วนติดต่อผู้ดูแล`,"preferences.page.appearanceBody":`เลือกสว่าง มืด หรือใช้ตามระบบปฏิบัติการ`},id:{"auth.signIn.title":`Masuk`,"common.signOut":`Keluar`,"common.viewSite":`Lihat situs`,"common.copy":`Salin`,"common.open":`Buka`,"common.failedToLoad":`Gagal memuat`,"common.signedIn":`Sudah masuk`,"console.agent.title":`Berikutnya: hubungkan agent`,"collection.filter.all":`Semua`,"nav.home":`Beranda`,"nav.content":`Konten`,"nav.more":`Lainnya`,"nav.approvals":`Persetujuan`,"nav.settings":`Pengaturan`,"status.draft":`Draf`,"status.review":`Dalam ulasan`,"status.published":`Terbit`,"status.archived":`Arsip`,"preferences.heading":`Preferensi`,"preferences.language":`Bahasa admin`,"preferences.language.search":`Cari bahasa...`,"preferences.language.noResults":`Bahasa tidak ditemukan.`,"preferences.direction":`Arah teks`,"preferences.direction.auto":`Arah teks mengikuti bahasa yang dipilih.`,"preferences.appearance":`Tampilan`,"preferences.light":`Terang`,"preferences.dark":`Gelap`,"preferences.system":`Sistem`,"preferences.ltr":`Kiri ke kanan`,"preferences.rtl":`Kanan ke kiri`,"preferences.page.open":`Preferensi`,"preferences.page.title":`Preferensi pribadi`,"preferences.page.body":`Preferensi ini tetap di browser ini. Preferensi hanya mengubah konsol admin dan tidak mengubah pengaturan situs.`,"preferences.page.languageBody":`Pilih bahasa untuk halaman sistem dan antarmuka admin.`,"preferences.page.appearanceBody":`Pilih terang, gelap, atau ikuti sistem operasi.`}};function Y(e,t,n={}){let r=$c[e]?.[t]??$c.en[t];for(let[e,t]of Object.entries(n))r=r.split(`{${e}}`).join(t);return r}function el({brand:e}){let{setOpenMobile:t}=Ys(),{language:n}=J();return(0,F.jsx)(ac,{children:(0,F.jsx)(oc,{children:(0,F.jsx)(cc,{asChild:!0,size:`lg`,className:`data-[slot=sidebar-menu-button]:!p-1.5`,children:(0,F.jsxs)(`a`,{href:e.href??`/admin`,onClick:()=>t(!1),children:[(0,F.jsx)(`span`,{className:`text-primary flex aspect-square size-8 items-center justify-center`,children:(0,F.jsx)(Zc,{className:`size-5`})}),(0,F.jsx)(`div`,{"data-sidebar-label":!0,className:`grid flex-1 text-start text-sm leading-tight`,children:(0,F.jsx)(`span`,{className:`truncate font-semibold`,children:Y(n,`admin.consoleTitle`)})})]})})})})}var tl=`Collapsible`,[nl,rl]=Bi(tl),[il,al]=nl(tl),ol=P.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=qi({prop:r,defaultProp:i??!1,onChange:o,caller:tl});return(0,F.jsx)(il,{scope:n,disabled:a,contentId:Gi(),open:c,onOpenToggle:P.useCallback(()=>l(e=>!e),[l]),children:(0,F.jsx)(Zi.div,{"data-state":fl(c),"data-disabled":a?``:void 0,...s,ref:t})})});ol.displayName=tl;var sl=`CollapsibleTrigger`,cl=P.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=al(sl,n);return(0,F.jsx)(Zi.button,{type:`button`,"aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open||!1,"data-state":fl(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:W(e.onClick,i.onOpenToggle)})});cl.displayName=sl;var ll=`CollapsibleContent`,ul=P.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=al(ll,e.__scopeCollapsible);return(0,F.jsx)(Pa,{present:n||i.open,children:({present:e})=>(0,F.jsx)(dl,{...r,ref:t,present:e})})});ul.displayName=ll;var dl=P.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=al(ll,n),[s,c]=P.useState(r),l=P.useRef(null),u=tr(t,l),d=P.useRef(0),f=d.current,p=P.useRef(0),m=p.current,h=o.open||s,g=P.useRef(h),_=P.useRef(void 0);return P.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),Hi(()=>{let e=l.current;if(e){_.current=_.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,g.current||(e.style.transitionDuration=_.current.transitionDuration,e.style.animationName=_.current.animationName),c(r)}},[o.open,r]),(0,F.jsx)(Zi.div,{"data-state":fl(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!h,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&i})});function fl(e){return e?`open`:`closed`}var pl=ol,ml=cl,hl=ul;function gl(e){let t=e+`CollectionProvider`,[n,r]=Bi(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=P.useRef(null),a=P.useRef(new Map).current;return(0,F.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=nr(s),l=P.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,F.jsx)(c,{ref:tr(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=nr(u),p=P.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=P.useRef(null),s=tr(t,o),c=a(u,n);return P.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,F.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return P.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}var _l=P.createContext(void 0);function vl(e){let t=P.useContext(_l);return e||t||`ltr`}var yl=[`top`,`right`,`bottom`,`left`],bl=Math.min,xl=Math.max,Sl=Math.round,Cl=Math.floor,wl=e=>({x:e,y:e}),Tl={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function El(e,t,n){return xl(e,bl(t,n))}function Dl(e,t){return typeof e==`function`?e(t):e}function Ol(e){return e.split(`-`)[0]}function kl(e){return e.split(`-`)[1]}function Al(e){return e===`x`?`y`:`x`}function jl(e){return e===`y`?`height`:`width`}function Ml(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Nl(e){return Al(Ml(e))}function Pl(e,t,n){n===void 0&&(n=!1);let r=kl(e),i=Nl(e),a=jl(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Bl(o)),[o,Bl(o)]}function X(e){let t=Bl(e);return[Fl(e),t,Fl(t)]}function Fl(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Z=[`left`,`right`],Q=[`right`,`left`],Il=[`top`,`bottom`],Ll=[`bottom`,`top`];function Rl(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Q:Z:t?Z:Q;case`left`:case`right`:return t?Il:Ll;default:return[]}}function zl(e,t,n,r){let i=kl(e),a=Rl(Ol(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Fl)))),a}function Bl(e){let t=Ol(e);return Tl[t]+e.slice(t.length)}function Vl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hl(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Vl(e)}function Ul(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Wl(e,t,n){let{reference:r,floating:i}=e,a=Ml(t),o=Nl(t),s=jl(o),c=Ol(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(kl(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Gl(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Dl(t,e),p=Hl(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ul(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ul(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Kl=50,ql=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Gl},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Wl(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Kl&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Wl(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Jl=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Dl(e,t)||{};if(l==null)return{};let d=Hl(u),f={x:n,y:r},p=Nl(i),m=jl(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,ee=bl(d[_],T),E=bl(d[v],T),D=ee,te=C-h[m]-E,ne=C/2-h[m]/2+w,re=El(D,ne,te),O=!c.arrow&&kl(i)!=null&&ne!==re&&a.reference[m]/2-(ne<D?ee:E)-h[m]/2<0,k=O?ne<D?ne-D:ne-te:0;return{[p]:f[p]+k,data:{[p]:re,centerOffset:ne-re-k,...O&&{alignmentOffset:k}},reset:O}}}),Yl=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Dl(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Ol(r),_=Ml(o),v=Ol(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Bl(o)]:X(o)),x=p!==`none`;!d&&x&&b.push(...zl(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Pl(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Ml(t))||T.every(e=>Ml(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Ml(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Xl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zl(e){return yl.some(t=>e[t]>=0)}var Ql=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Dl(e,t);switch(i){case`referenceHidden`:{let e=Xl(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Zl(e)}}}case`escaped`:{let e=Xl(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Zl(e)}}}default:return{}}}}},$l=new Set([`left`,`top`]);async function eu(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ol(n),s=kl(n),c=Ml(n)===`y`,l=$l.has(o)?-1:1,u=a&&c?-1:1,d=Dl(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var tu=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await eu(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},nu=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Dl(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Ml(Ol(i)),p=Al(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=El(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=El(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},ru=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Dl(e,t),u={x:n,y:r},d=Ml(i),f=Al(d),p=u[f],m=u[d],h=Dl(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=$l.has(Ol(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},iu=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Dl(e,t),u=await o.detectOverflow(t,l),d=Ol(i),f=kl(i),p=Ml(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=bl(h-u[g],v),x=bl(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=xl(u.left,0),t=xl(u.right,0),n=xl(u.top,0),r=xl(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:xl(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:xl(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function au(){return typeof window<`u`}function ou(e){return lu(e)?(e.nodeName||``).toLowerCase():`#document`}function su(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function cu(e){return((lu(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function lu(e){return au()?e instanceof Node||e instanceof su(e).Node:!1}function uu(e){return au()?e instanceof Element||e instanceof su(e).Element:!1}function du(e){return au()?e instanceof HTMLElement||e instanceof su(e).HTMLElement:!1}function fu(e){return!au()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof su(e).ShadowRoot}function pu(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=wu(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function mu(e){return/^(table|td|th)$/.test(ou(e))}function hu(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var gu=/transform|translate|scale|rotate|perspective|filter/,_u=/paint|layout|strict|content/,vu=e=>!!e&&e!==`none`,yu;function bu(e){let t=uu(e)?wu(e):e;return vu(t.transform)||vu(t.translate)||vu(t.scale)||vu(t.rotate)||vu(t.perspective)||!Su()&&(vu(t.backdropFilter)||vu(t.filter))||gu.test(t.willChange||``)||_u.test(t.contain||``)}function xu(e){let t=Eu(e);for(;du(t)&&!Cu(t);){if(bu(t))return t;if(hu(t))return null;t=Eu(t)}return null}function Su(){return yu??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),yu}function Cu(e){return/^(html|body|#document)$/.test(ou(e))}function wu(e){return su(e).getComputedStyle(e)}function Tu(e){return uu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Eu(e){if(ou(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||fu(e)&&e.host||cu(e);return fu(t)?t.host:t}function Du(e){let t=Eu(e);return Cu(t)?e.ownerDocument?e.ownerDocument.body:e.body:du(t)&&pu(t)?t:Du(t)}function Ou(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Du(e),i=r===e.ownerDocument?.body,a=su(r);if(i){let e=ku(a);return t.concat(a,a.visualViewport||[],pu(r)?r:[],e&&n?Ou(e):[])}else return t.concat(r,Ou(r,[],n))}function ku(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Au(e){let t=wu(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=du(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Sl(n)!==a||Sl(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ju(e){return uu(e)?e:e.contextElement}function Mu(e){let t=ju(e);if(!du(t))return wl(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Au(t),o=(a?Sl(n.width):n.width)/r,s=(a?Sl(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Nu=wl(0);function Pu(e){let t=su(e);return!Su()||!t.visualViewport?Nu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==su(e)?!1:t}function Iu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ju(e),o=wl(1);t&&(r?uu(r)&&(o=Mu(r)):o=Mu(e));let s=Fu(a,n,r)?Pu(a):wl(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=su(a),t=r&&uu(r)?su(r):r,n=e,i=ku(n);for(;i&&r&&t!==n;){let e=Mu(i),t=i.getBoundingClientRect(),r=wu(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=su(i),i=ku(n)}}return Ul({width:u,height:d,x:c,y:l})}function Lu(e,t){let n=Tu(e).scrollLeft;return t?t.left+n:Iu(cu(e)).left+n}function Ru(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Lu(e,n),y:n.top+t.scrollTop}}function zu(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=cu(r),s=t?hu(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=wl(1),u=wl(0),d=du(r);if((d||!d&&!a)&&((ou(r)!==`body`||pu(o))&&(c=Tu(r)),d)){let e=Iu(r);l=Mu(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ru(o,c):wl(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Bu(e){return Array.from(e.getClientRects())}function Vu(e){let t=cu(e),n=Tu(e),r=e.ownerDocument.body,i=xl(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=xl(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Lu(e),s=-n.scrollTop;return wu(r).direction===`rtl`&&(o+=xl(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Hu=25;function Uu(e,t){let n=su(e),r=cu(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Su();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Lu(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Hu&&(a-=o)}else l<=Hu&&(a+=l);return{width:a,height:o,x:s,y:c}}function Wu(e,t){let n=Iu(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=du(e)?Mu(e):wl(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Gu(e,t,n){let r;if(t===`viewport`)r=Uu(e,n);else if(t===`document`)r=Vu(cu(e));else if(uu(t))r=Wu(t,n);else{let n=Pu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ul(r)}function Ku(e,t){let n=Eu(e);return n===t||!uu(n)||Cu(n)?!1:wu(n).position===`fixed`||Ku(n,t)}function qu(e,t){let n=t.get(e);if(n)return n;let r=Ou(e,[],!1).filter(e=>uu(e)&&ou(e)!==`body`),i=null,a=wu(e).position===`fixed`,o=a?Eu(e):e;for(;uu(o)&&!Cu(o);){let t=wu(o),n=bu(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||pu(o)&&!n&&Ku(e,o))?r=r.filter(e=>e!==o):i=t,o=Eu(o)}return t.set(e,r),r}function Ju(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?hu(t)?[]:qu(t,this._c):[].concat(n),r],o=Gu(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Gu(t,a[e],i);s=xl(n.top,s),c=bl(n.right,c),l=bl(n.bottom,l),u=xl(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Yu(e){let{width:t,height:n}=Au(e);return{width:t,height:n}}function Xu(e,t,n){let r=du(t),i=cu(t),a=n===`fixed`,o=Iu(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=wl(0);function l(){c.x=Lu(i)}if(r||!r&&!a)if((ou(t)!==`body`||pu(i))&&(s=Tu(t)),r){let e=Iu(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Ru(i,s):wl(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Zu(e){return wu(e).position===`static`}function Qu(e,t){if(!du(e)||wu(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return cu(e)===n&&(n=n.ownerDocument.body),n}function $u(e,t){let n=su(e);if(hu(e))return n;if(!du(e)){let t=Eu(e);for(;t&&!Cu(t);){if(uu(t)&&!Zu(t))return t;t=Eu(t)}return n}let r=Qu(e,t);for(;r&&mu(r)&&Zu(r);)r=Qu(r,t);return r&&Cu(r)&&Zu(r)&&!bu(r)?n:r||xu(e)||n}var ed=async function(e){let t=this.getOffsetParent||$u,n=this.getDimensions,r=await n(e.floating);return{reference:Xu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function td(e){return wu(e).direction===`rtl`}var nd={convertOffsetParentRelativeRectToViewportRelativeRect:zu,getDocumentElement:cu,getClippingRect:Ju,getOffsetParent:$u,getElementRects:ed,getClientRects:Bu,getDimensions:Yu,getScale:Mu,isElement:uu,isRTL:td};function rd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function id(e,t){let n=null,r,i=cu(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Cl(d),h=Cl(i.clientWidth-(u+f)),g=Cl(i.clientHeight-(d+p)),_=Cl(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:xl(0,bl(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!rd(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function ad(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ju(e),u=i||a?[...l?Ou(l):[],...t?Ou(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?id(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Iu(e):null;c&&g();function g(){let t=Iu(e);h&&!rd(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var od=tu,sd=nu,cd=Yl,ld=iu,ud=Ql,dd=Jl,fd=ru,pd=(e,t,n)=>{let r=new Map,i={platform:nd,...n},a={...i.platform,_c:r};return ql(e,t,{...i,platform:a})},md=typeof document<`u`?P.useLayoutEffect:function(){};function hd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!hd(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!hd(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function gd(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _d(e,t){let n=gd(e);return Math.round(t*n)/n}function vd(e){let t=P.useRef(e);return md(()=>{t.current=e}),t}function $(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=P.useState(r);hd(f,r)||p(r);let[m,h]=P.useState(null),[g,_]=P.useState(null),v=P.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=P.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=P.useRef(null),C=P.useRef(null),w=P.useRef(u),T=c!=null,ee=vd(c),E=vd(i),D=vd(l),te=P.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};E.current&&(e.platform=E.current),pd(S.current,C.current,e).then(e=>{let t={...e,isPositioned:D.current!==!1};ne.current&&!hd(w.current,t)&&(w.current=t,Xi.flushSync(()=>{d(t)}))})},[f,t,n,E,D]);md(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ne=P.useRef(!1);md(()=>(ne.current=!0,()=>{ne.current=!1}),[]),md(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(ee.current)return ee.current(b,x,te);te()}},[b,x,te,ee,T]);let re=P.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),O=P.useMemo(()=>({reference:b,floating:x}),[b,x]),k=P.useMemo(()=>{let e={position:n,left:0,top:0};if(!O.floating)return e;let t=_d(O.floating,u.x),r=_d(O.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...gd(O.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,O.floating,u.x,u.y]);return P.useMemo(()=>({...u,update:te,refs:re,elements:O,floatingStyles:k}),[u,te,re,O,k])}var yd=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:dd({element:r.current,padding:i}).fn(n):r?dd({element:r,padding:i}).fn(n):{}}}},bd=(e,t)=>{let n=od(e);return{name:n.name,fn:n.fn,options:[e,t]}},xd=(e,t)=>{let n=sd(e);return{name:n.name,fn:n.fn,options:[e,t]}},Sd=(e,t)=>({fn:fd(e).fn,options:[e,t]}),Cd=(e,t)=>{let n=cd(e);return{name:n.name,fn:n.fn,options:[e,t]}},wd=(e,t)=>{let n=ld(e);return{name:n.name,fn:n.fn,options:[e,t]}},Td=(e,t)=>{let n=ud(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ed=(e,t)=>{let n=yd(e);return{name:n.name,fn:n.fn,options:[e,t]}},Dd=`Arrow`,Od=P.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,F.jsx)(Zi.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,F.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Od.displayName=Dd;var kd=Od;function Ad(e){let[t,n]=P.useState(void 0);return Hi(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var jd=`Popper`,[Md,Nd]=Bi(jd),[Pd,Fd]=Md(jd),Id=e=>{let{__scopePopper:t,children:n}=e,[r,i]=P.useState(null),[a,o]=P.useState(void 0);return(0,F.jsx)(Pd,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})};Id.displayName=jd;var Ld=`PopperAnchor`,Rd=P.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=Fd(Ld,n),o=P.useRef(null),s=a.onAnchorChange,c=tr(t,P.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=P.useRef(null);P.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Jd(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,F.jsx)(Zi.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})});Rd.displayName=Ld;var zd=`PopperContent`,[Bd,Vd]=Md(zd),Hd=P.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=Fd(zd,n),[_,v]=P.useState(null),y=tr(t,e=>v(e)),[b,x]=P.useState(null),S=Ad(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),ee=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},E=Array.isArray(l)?l:[l],D=E.length>0,te={padding:ee,boundary:E.filter(Kd),altBoundary:D},{refs:ne,floatingStyles:re,placement:O,isPositioned:k,middlewareData:ie}=$({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>ad(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[bd({mainAxis:i+w,alignmentAxis:o}),c&&xd({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Sd():void 0,...te}),c&&Cd({...te}),wd({...te,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),b&&Ed({element:b,padding:s}),qd({arrowWidth:C,arrowHeight:w}),f&&Td({strategy:`referenceHidden`,...te,boundary:D?te.boundary:void 0})]}),ae=g.setPlacementState;Hi(()=>(ae(O),()=>{ae(void 0)}),[O,ae]);let[A,j]=Jd(O),oe=$i(m);Hi(()=>{k&&oe?.()},[k,oe]);let se=ie.arrow?.x,ce=ie.arrow?.y,le=ie.arrow?.centerOffset!==0,[M,N]=P.useState();return Hi(()=>{_&&N(window.getComputedStyle(_).zIndex)},[_]),(0,F.jsx)(`div`,{ref:ne.setFloating,"data-radix-popper-content-wrapper":``,style:{...re,transform:k?re.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:M,"--radix-popper-transform-origin":[ie.transformOrigin?.x,ie.transformOrigin?.y].join(` `),...ie.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,F.jsx)(Bd,{scope:n,placedSide:A,placedAlign:j,onArrowChange:x,arrowX:se,arrowY:ce,shouldHideArrow:le,children:(0,F.jsx)(Zi.div,{"data-side":A,"data-align":j,...h,ref:y,style:{...h.style,animation:k?void 0:`none`}})})})});Hd.displayName=zd;var Ud=`PopperArrow`,Wd={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Gd=P.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Vd(Ud,n),a=Wd[i.placedSide];return(0,F.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,F.jsx)(kd,{...r,ref:t,style:{...r.style,display:`block`}})})});Gd.displayName=Ud;function Kd(e){return e!==null}var qd=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Jd(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Jd(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Yd=Id,Xd=Rd,Zd=Hd,Qd=Gd,$d=`rovingFocusGroup.onEntryFocus`,ef={bubbles:!1,cancelable:!0},tf=`RovingFocusGroup`,[nf,rf,af]=gl(tf),[of,sf]=Bi(tf,[af]),[cf,lf]=of(tf),uf=P.forwardRef((e,t)=>(0,F.jsx)(nf.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,F.jsx)(nf.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,F.jsx)(df,{...e,ref:t})})}));uf.displayName=tf;var df=P.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=P.useRef(null),p=tr(t,f),m=vl(a),[h,g]=qi({prop:o,defaultProp:s??null,onChange:c,caller:tf}),[_,v]=P.useState(!1),y=$i(l),b=rf(n),x=P.useRef(!1),[S,C]=P.useState(0);return P.useEffect(()=>{let e=f.current;if(e)return e.addEventListener($d,y),()=>e.removeEventListener($d,y)},[y]),(0,F.jsx)(cf,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:P.useCallback(e=>g(e),[g]),onItemShiftTab:P.useCallback(()=>v(!0),[]),onFocusableItemAdd:P.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:P.useCallback(()=>C(e=>e-1),[]),children:(0,F.jsx)(Zi.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:W(e.onMouseDown,()=>{x.current=!0}),onFocus:W(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent($d,ef);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);_f([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:W(e.onBlur,()=>v(!1))})})}),ff=`RovingFocusGroupItem`,pf=P.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Gi(),l=a||c,u=lf(ff,n),d=u.currentTabStopId===l,f=rf(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return P.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,F.jsx)(nf.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,F.jsx)(Zi.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:W(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:W(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:W(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=gf(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?vf(n,r+1):n.slice(r+1)}setTimeout(()=>_f(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});pf.displayName=ff;var mf={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function hf(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function gf(e,t,n){let r=hf(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return mf[r]}function _f(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function vf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var yf=uf,bf=pf,xf=[`Enter`,` `],Sf=[`ArrowDown`,`PageUp`,`Home`],Cf=[`ArrowUp`,`PageDown`,`End`],wf=[...Sf,...Cf],Tf={ltr:[...xf,`ArrowRight`],rtl:[...xf,`ArrowLeft`]},Ef={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},Df=`Menu`,[Of,kf,Af]=gl(Df),[jf,Mf]=Bi(Df,[Af,Nd,sf]),Nf=Nd(),Pf=sf(),[Ff,If]=jf(Df),[Lf,Rf]=jf(Df),zf=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Nf(t),[c,l]=P.useState(null),u=P.useRef(!1),d=$i(a),f=vl(i);return P.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),P.useEffect(()=>{if(!n)return;let e=()=>d(!1);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,F.jsx)(Yd,{...s,children:(0,F.jsx)(Ff,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,F.jsx)(Lf,{scope:t,onClose:P.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};zf.displayName=Df;var Bf=`MenuAnchor`,Vf=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Nf(n);return(0,F.jsx)(Xd,{...i,...r,ref:t})});Vf.displayName=Bf;var Hf=`MenuPortal`,[Uf,Wf]=jf(Hf,{forceMount:void 0}),Gf=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=If(Hf,t);return(0,F.jsx)(Uf,{scope:t,forceMount:n,children:(0,F.jsx)(Pa,{present:n||a.open,children:(0,F.jsx)(Ma,{asChild:!0,container:i,children:r})})})};Gf.displayName=Hf;var Kf=`MenuContent`,[qf,Jf]=jf(Kf),Yf=P.forwardRef((e,t)=>{let n=Wf(Kf,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=If(Kf,e.__scopeMenu),o=Rf(Kf,e.__scopeMenu);return(0,F.jsx)(Of.Provider,{scope:e.__scopeMenu,children:(0,F.jsx)(Pa,{present:r||a.open,children:(0,F.jsx)(Of.Slot,{scope:e.__scopeMenu,children:o.modal?(0,F.jsx)(Xf,{...i,ref:t}):(0,F.jsx)(Zf,{...i,ref:t})})})})}),Xf=P.forwardRef((e,t)=>{let n=If(Kf,e.__scopeMenu),r=P.useRef(null),i=tr(t,r);return P.useEffect(()=>{let e=r.current;if(e)return os(e)},[]),(0,F.jsx)($f,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:W(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Zf=P.forwardRef((e,t)=>{let n=If(Kf,e.__scopeMenu);return(0,F.jsx)($f,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Qf=nr(`MenuContent.ScrollLock`),$f=P.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=If(Kf,n),_=Rf(Kf,n),v=Nf(n),y=Pf(n),b=kf(n),[x,S]=P.useState(null),C=P.useRef(null),w=tr(t,C,g.onContentChange),T=P.useRef(0),ee=P.useRef(``),E=P.useRef(0),D=P.useRef(null),te=P.useRef(`right`),ne=P.useRef(0),re=m?Zo:P.Fragment,O=m?{as:Qf,allowPinchZoom:!0}:void 0,k=e=>{let t=ee.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Lp(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){ee.current=t,window.clearTimeout(T.current),t!==``&&(T.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};P.useEffect(()=>()=>window.clearTimeout(T.current),[]),Ha();let ie=P.useCallback(e=>te.current===D.current?.side&&zp(e,D.current?.area),[]);return(0,F.jsx)(qf,{scope:n,searchRef:ee,onItemEnter:P.useCallback(e=>{ie(e)&&e.preventDefault()},[ie]),onItemLeave:P.useCallback(e=>{ie(e)||(C.current?.focus(),S(null))},[ie]),onTriggerLeave:P.useCallback(e=>{ie(e)&&e.preventDefault()},[ie]),pointerGraceTimerRef:E,onPointerGraceIntentChange:P.useCallback(e=>{D.current=e},[]),children:(0,F.jsx)(re,{...O,children:(0,F.jsx)(ya,{asChild:!0,trapped:i,onMountAutoFocus:W(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,F.jsx)(sa,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,F.jsx)(yf,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:W(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,F.jsx)(Zd,{role:`menu`,"aria-orientation":`vertical`,"data-state":Mp(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:w,style:{outline:`none`,...h.style},onKeyDown:W(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&k(e.key));let i=C.current;if(e.target!==i||!wf.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);Cf.includes(e.key)&&a.reverse(),Fp(a)}),onBlur:W(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),ee.current=``)}),onPointerMove:W(e.onPointerMove,Bp(e=>{let t=e.target,n=ne.current!==e.clientX;e.currentTarget.contains(t)&&n&&(te.current=e.clientX>ne.current?`right`:`left`,ne.current=e.clientX)}))})})})})})})});Yf.displayName=Kf;var ep=`MenuGroup`,tp=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,F.jsx)(Zi.div,{role:`group`,...r,ref:t})});tp.displayName=ep;var np=`MenuLabel`,rp=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,F.jsx)(Zi.div,{...r,ref:t})});rp.displayName=np;var ip=`MenuItem`,ap=`menu.itemSelect`,op=P.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=P.useRef(null),o=Rf(ip,e.__scopeMenu),s=Jf(ip,e.__scopeMenu),c=tr(t,a),l=P.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(ap,{bubbles:!0,cancelable:!0});e.addEventListener(ap,e=>r?.(e),{once:!0}),Qi(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,F.jsx)(sp,{...i,ref:c,disabled:n,onClick:W(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:W(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:W(e.onKeyDown,e=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||xf.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});op.displayName=ip;var sp=P.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Jf(ip,n),s=Pf(n),c=P.useRef(null),l=tr(t,c),[u,d]=P.useState(!1),[f,p]=P.useState(``);return P.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,F.jsx)(Of.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,F.jsx)(bf,{asChild:!0,...s,focusable:!r,children:(0,F.jsx)(Zi.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:W(e.onPointerMove,Bp(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:W(e.onPointerLeave,Bp(e=>o.onItemLeave(e))),onFocus:W(e.onFocus,()=>d(!0)),onBlur:W(e.onBlur,()=>d(!1))})})})}),cp=`MenuCheckboxItem`,lp=P.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,F.jsx)(_p,{scope:e.__scopeMenu,checked:n,children:(0,F.jsx)(op,{role:`menuitemcheckbox`,"aria-checked":Np(n)?`mixed`:n,...i,ref:t,"data-state":Pp(n),onSelect:W(i.onSelect,()=>r?.(Np(n)?!0:!n),{checkForDefaultPrevented:!1})})})});lp.displayName=cp;var up=`MenuRadioGroup`,[dp,fp]=jf(up,{value:void 0,onValueChange:()=>{}}),pp=P.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=$i(r);return(0,F.jsx)(dp,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,F.jsx)(tp,{...i,ref:t})})});pp.displayName=up;var mp=`MenuRadioItem`,hp=P.forwardRef((e,t)=>{let{value:n,...r}=e,i=fp(mp,e.__scopeMenu),a=n===i.value;return(0,F.jsx)(_p,{scope:e.__scopeMenu,checked:a,children:(0,F.jsx)(op,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Pp(a),onSelect:W(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});hp.displayName=mp;var gp=`MenuItemIndicator`,[_p,vp]=jf(gp,{checked:!1}),yp=P.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=vp(gp,n);return(0,F.jsx)(Pa,{present:r||Np(a.checked)||a.checked===!0,children:(0,F.jsx)(Zi.span,{...i,ref:t,"data-state":Pp(a.checked)})})});yp.displayName=gp;var bp=`MenuSeparator`,xp=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,F.jsx)(Zi.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});xp.displayName=bp;var Sp=`MenuArrow`,Cp=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Nf(n);return(0,F.jsx)(Qd,{...i,...r,ref:t})});Cp.displayName=Sp;var wp=`MenuSub`,[Tp,Ep]=jf(wp),Dp=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=If(wp,t),o=Nf(t),[s,c]=P.useState(null),[l,u]=P.useState(null),d=$i(i);return P.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,F.jsx)(Yd,{...o,children:(0,F.jsx)(Ff,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,F.jsx)(Tp,{scope:t,contentId:Gi(),triggerId:Gi(),trigger:s,onTriggerChange:c,children:n})})})};Dp.displayName=wp;var Op=`MenuSubTrigger`,kp=P.forwardRef((e,t)=>{let n=If(Op,e.__scopeMenu),r=Rf(Op,e.__scopeMenu),i=Ep(Op,e.__scopeMenu),a=Jf(Op,e.__scopeMenu),o=P.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=P.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return P.useEffect(()=>u,[u]),P.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,F.jsx)(Vf,{asChild:!0,...l,children:(0,F.jsx)(sp,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":Mp(n.open),...e,ref:er(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:W(e.onPointerMove,Bp(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:W(e.onPointerLeave,Bp(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:W(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||Tf[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});kp.displayName=Op;var Ap=`MenuSubContent`,jp=P.forwardRef((e,t)=>{let n=Wf(Kf,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=If(Kf,e.__scopeMenu),s=Rf(Kf,e.__scopeMenu),c=Ep(Ap,e.__scopeMenu),l=P.useRef(null),u=tr(t,l);return(0,F.jsx)(Of.Provider,{scope:e.__scopeMenu,children:(0,F.jsx)(Pa,{present:r||o.open,children:(0,F.jsx)(Of.Slot,{scope:e.__scopeMenu,children:(0,F.jsx)($f,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:i,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:W(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:W(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:W(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Ef[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});jp.displayName=Ap;function Mp(e){return e?`open`:`closed`}function Np(e){return e===`indeterminate`}function Pp(e){return Np(e)?`indeterminate`:e?`checked`:`unchecked`}function Fp(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Ip(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Lp(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Ip(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Rp(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function zp(e,t){return t?Rp({x:e.clientX,y:e.clientY},t):!1}function Bp(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Vp=zf,Hp=Vf,Up=Gf,Wp=Yf,Gp=tp,Kp=rp,qp=op,Jp=lp,Yp=pp,Xp=hp,Zp=yp,Qp=xp,$p=Cp,em=kp,tm=jp,nm=`DropdownMenu`,[rm,im]=Bi(nm,[Mf]),am=Mf(),[om,sm]=rm(nm),cm=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=am(t),l=P.useRef(null),[u,d]=qi({prop:i,defaultProp:a??!1,onChange:o,caller:nm});return(0,F.jsx)(om,{scope:t,triggerId:Gi(),triggerRef:l,contentId:Gi(),open:u,onOpenChange:d,onOpenToggle:P.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,F.jsx)(Vp,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};cm.displayName=nm;var lm=`DropdownMenuTrigger`,um=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=sm(lm,n),o=am(n);return(0,F.jsx)(Hp,{asChild:!0,...o,children:(0,F.jsx)(Zi.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:er(t,a.triggerRef),onPointerDown:W(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:W(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});um.displayName=lm;var dm=`DropdownMenuPortal`,fm=e=>{let{__scopeDropdownMenu:t,...n}=e,r=am(t);return(0,F.jsx)(Up,{...r,...n})};fm.displayName=dm;var pm=`DropdownMenuContent`,mm=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=sm(pm,n),a=am(n),o=P.useRef(!1);return(0,F.jsx)(Wp,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:W(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:W(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});mm.displayName=pm;var hm=`DropdownMenuGroup`,gm=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(Gp,{...i,...r,ref:t})});gm.displayName=hm;var _m=`DropdownMenuLabel`,vm=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(Kp,{...i,...r,ref:t})});vm.displayName=_m;var ym=`DropdownMenuItem`,bm=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(qp,{...i,...r,ref:t})});bm.displayName=ym;var xm=`DropdownMenuCheckboxItem`,Sm=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(Jp,{...i,...r,ref:t})});Sm.displayName=xm;var Cm=`DropdownMenuRadioGroup`,wm=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(Yp,{...i,...r,ref:t})});wm.displayName=Cm;var Tm=`DropdownMenuRadioItem`,Em=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(Xp,{...i,...r,ref:t})});Em.displayName=Tm;var Dm=`DropdownMenuItemIndicator`,Om=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(Zp,{...i,...r,ref:t})});Om.displayName=Dm;var km=`DropdownMenuSeparator`,Am=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(Qp,{...i,...r,ref:t})});Am.displayName=km;var jm=`DropdownMenuArrow`,Mm=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)($p,{...i,...r,ref:t})});Mm.displayName=jm;var Nm=`DropdownMenuSubTrigger`,Pm=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(em,{...i,...r,ref:t})});Pm.displayName=Nm;var Fm=`DropdownMenuSubContent`,Im=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(tm,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Im.displayName=Fm;var Lm=cm,Rm=um,zm=fm,Bm=mm,Vm=vm,Hm=bm,Um=Am,Wm=Lm,Gm=Rm,Km=P.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,F.jsx)(zm,{children:(0,F.jsx)(Bm,{ref:r,sideOffset:t,className:H(`z-50 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--glass-border)] bg-card backdrop-blur-md p-1 text-foreground shadow-[var(--glass-shadow-lg)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,e),...n})}));Km.displayName=Bm.displayName;var qm=P.forwardRef(({className:e,inset:t,...n},r)=>(0,F.jsx)(Hm,{ref:r,className:H(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,t&&`ps-8`,e),...n}));qm.displayName=Hm.displayName;var Jm=P.forwardRef(({className:e,inset:t,...n},r)=>(0,F.jsx)(Vm,{ref:r,className:H(`px-2 py-1.5 text-sm font-semibold text-primary`,t&&`ps-8`,e),...n}));Jm.displayName=Vm.displayName;var Ym=P.forwardRef(({className:e,...t},n)=>(0,F.jsx)(Um,{ref:n,className:H(`-mx-1 my-1 h-px bg-[var(--glass-border)]`,e),...t}));Ym.displayName=Um.displayName;function Xm(e){return Array.isArray(e.items)}function Zm({group:e,pathname:t,search:n}){return(0,F.jsxs)(rc,{children:[e.title&&(0,F.jsx)(ic,{title:e.title,children:e.title}),(0,F.jsx)(ac,{children:e.items.map(e=>(0,F.jsx)($m,{item:e,pathname:t,search:n},Qm(e)))})]})}function Qm(e){return Xm(e)?`g:${e.title}`:`l:${e.url}`}function $m({item:e,pathname:t,search:n}){let{state:r,isMobile:i}=Ys();return Xm(e)?r===`collapsed`&&!i?(0,F.jsx)(ih,{item:e,pathname:t,search:n}):(0,F.jsx)(th,{item:e,pathname:t,search:n}):(0,F.jsx)(eh,{item:e,pathname:t,search:n})}function eh({item:e,pathname:t,search:n}){let{setOpenMobile:r}=Ys();return(0,F.jsx)(oc,{children:(0,F.jsx)(cc,{asChild:!0,isActive:oh(e,t,n),children:(0,F.jsxs)(`a`,{href:e.url,title:e.title,"data-tour":rh(e.url),onClick:()=>r(!1),...e.external?{target:`_blank`,rel:`noreferrer`}:null,children:[e.icon&&(0,F.jsx)(e.icon,{"aria-hidden":!0}),(0,F.jsx)(`span`,{"data-sidebar-label":!0,className:`flex-1 truncate`,children:e.title}),e.marker&&(0,F.jsx)(e.marker,{"aria-hidden":!0,"data-sidebar-label":!0,className:`size-3.5 text-muted-foreground`}),e.badge&&(0,F.jsx)(ah,{sidebarLabel:!0,children:e.badge})]})})})}function th({item:e,pathname:t,search:n}){let r=sh(e,t,n);return(0,F.jsx)(pl,{defaultOpen:r,className:`group/collapsible`,asChild:!0,children:(0,F.jsxs)(oc,{children:[(0,F.jsx)(ml,{asChild:!0,children:(0,F.jsxs)(cc,{isActive:r,"data-tour":rh(e.items[0]?.url),children:[e.icon&&(0,F.jsx)(e.icon,{"aria-hidden":!0}),(0,F.jsx)(`span`,{"data-sidebar-label":!0,className:`flex-1 truncate`,title:e.title,children:e.title}),e.marker&&(0,F.jsx)(e.marker,{"aria-hidden":!0,"data-sidebar-label":!0,className:`size-3.5 text-muted-foreground`}),e.badge&&(0,F.jsx)(ah,{sidebarLabel:!0,children:e.badge}),(0,F.jsx)(Et,{"aria-hidden":!0,"data-sidebar-label":!0,className:`transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90 rtl:rotate-180 rtl:group-data-[state=open]/collapsible:-rotate-90`})]})}),(0,F.jsx)(hl,{children:(0,F.jsx)(lc,{children:e.items.map(e=>(0,F.jsx)(nh,{link:e,pathname:t,search:n},e.url))})})]})})}function nh({link:e,pathname:t,search:n}){let{setOpenMobile:r}=Ys();return(0,F.jsx)(uc,{children:(0,F.jsx)(dc,{asChild:!0,isActive:oh(e,t,n),children:(0,F.jsxs)(`a`,{href:e.url,title:e.title,"data-tour":rh(e.url),onClick:()=>r(!1),children:[e.icon&&(0,F.jsx)(e.icon,{"aria-hidden":!0}),(0,F.jsx)(`span`,{children:e.title}),e.badge&&(0,F.jsx)(ah,{children:e.badge})]})})})}function rh(e){if(!e)return;if(e===`/admin`)return`nav-home`;if(e===`/admin/settings`)return`nav-settings`;let t=e.match(/^\/admin\/c\/([^/?]+)$/);if(t)return`nav-c-${decodeURIComponent(t[1])}`}function ih({item:e,pathname:t,search:n}){let r=sh(e,t,n),{direction:i}=J();return(0,F.jsx)(oc,{children:(0,F.jsxs)(Wm,{children:[(0,F.jsx)(Gm,{asChild:!0,children:(0,F.jsxs)(cc,{isActive:r,children:[e.icon&&(0,F.jsx)(e.icon,{"aria-hidden":!0}),(0,F.jsx)(`span`,{"data-sidebar-label":!0,title:e.title,children:e.title}),(0,F.jsx)(Et,{"aria-hidden":!0,"data-sidebar-label":!0,className:`ms-auto`})]})}),(0,F.jsxs)(Km,{side:i===`rtl`?`left`:`right`,align:`start`,sideOffset:4,children:[(0,F.jsx)(Jm,{children:e.title}),(0,F.jsx)(Ym,{}),e.items.map(e=>(0,F.jsx)(qm,{asChild:!0,children:(0,F.jsx)(`a`,{href:e.url,className:H(oh(e,t,n)&&`font-medium`),children:e.title})},e.url))]})]})})}function ah({children:e,sidebarLabel:t=!1}){return(0,F.jsx)(`span`,{"data-sidebar-label":t||void 0,className:`ms-auto rounded-full bg-accent px-2 py-0.5 text-xs text-accent-foreground`,children:e})}function oh(e,t,n){let r=new URL(e.url,`http://x`);if(r.pathname!==t)return!1;if(!r.search)return!0;let i=new URLSearchParams(r.search),a=new URLSearchParams(n);for(let[e,t]of i.entries())if(a.get(e)!==t)return!1;return!0}function sh(e,t,n){return e.items.some(e=>oh(e,t,n))?!0:e.items.some(e=>new URL(e.url,`http://x`).pathname===t)}function ch({login:e,role:t}){let{isMobile:n}=Ys(),{language:r}=J(),i=(e??`?`).charAt(0).toUpperCase(),a=e?`https://github.com/${encodeURIComponent(e)}.png?size=80`:null;return(0,F.jsx)(ac,{children:(0,F.jsx)(oc,{children:(0,F.jsxs)(Wm,{children:[(0,F.jsx)(Gm,{asChild:!0,children:(0,F.jsxs)(cc,{size:`lg`,className:`data-[state=open]:bg-accent/40`,children:[(0,F.jsx)(lh,{avatarUrl:a,initial:i}),(0,F.jsxs)(`div`,{"data-sidebar-label":!0,className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,F.jsx)(`span`,{className:`truncate font-semibold`,children:e??`—`}),(0,F.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:t??Y(r,`common.signedIn`)})]}),(0,F.jsx)(Dt,{"data-sidebar-label":!0,className:`ms-auto size-4 text-muted-foreground`,"aria-hidden":!0})]})}),(0,F.jsxs)(Km,{align:`end`,side:n?`bottom`:`right`,sideOffset:6,className:`w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg`,children:[(0,F.jsxs)(Jm,{className:`flex items-center gap-3 py-2`,children:[(0,F.jsx)(lh,{avatarUrl:a,initial:i,large:!0}),(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,F.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground`,children:e??`—`}),(0,F.jsx)(`span`,{className:`label-eyebrow truncate`,children:t??Y(r,`common.signedIn`)})]})]}),(0,F.jsx)(Ym,{}),(0,F.jsx)(qm,{asChild:!0,children:(0,F.jsxs)(`a`,{href:`/admin/preferences`,className:`flex items-center gap-2`,children:[(0,F.jsx)(hn,{className:`size-4`,"aria-hidden":!0}),Y(r,`preferences.page.open`)]})}),(0,F.jsx)(Ym,{}),(0,F.jsx)(qm,{asChild:!0,className:`text-destructive focus:text-destructive focus:bg-destructive/10`,children:(0,F.jsxs)(`button`,{type:`button`,onClick:uh,className:`flex w-full cursor-pointer items-center gap-2`,children:[(0,F.jsx)(en,{className:`size-4`,"aria-hidden":!0}),Y(r,`common.signOut`)]})})]})]})})})}function lh({avatarUrl:e,initial:t,large:n=!1}){let r=n?`size-9`:`size-8`,i=n?`text-sm`:`text-xs`;return(0,F.jsx)(`span`,{className:H(`shrink-0 inline-flex items-center justify-center rounded-lg`,`bg-primary/15 text-foreground/80 ring-1 ring-border`,r),"aria-hidden":!0,children:e?(0,F.jsx)(`img`,{src:e,alt:``,className:`size-full rounded-lg object-cover`,decoding:`async`}):(0,F.jsx)(`span`,{className:H(`font-medium`,i),children:t})})}function uh(){let e=document.createElement(`form`);e.method=`POST`,e.action=`/admin/logout`,document.body.appendChild(e),e.submit()}function dh({brand:e,groups:t,pathname:n,search:r,user:i}){let{variant:a}=Wn(),{direction:o}=J();return(0,F.jsxs)(Xs,{side:o===`rtl`?`right`:`left`,variant:a===`floating`?`sidebar`:a,children:[(0,F.jsx)($s,{children:(0,F.jsxs)(`div`,{className:`sidebar-chrome-row`,children:[(0,F.jsx)(el,{brand:e}),(0,F.jsx)(Zs,{})]})}),(0,F.jsx)(nc,{}),(0,F.jsx)(ec,{children:t.map((e,t)=>(0,F.jsx)(Zm,{group:e,pathname:n,search:r},e.title??`g-${t}`))}),(0,F.jsx)(nc,{}),(0,F.jsx)(tc,{children:(0,F.jsx)(ch,{login:i.login,role:i.role})})]})}function fh({login:e,role:t}){let{language:n}=J(),r=(e??`?`).charAt(0).toUpperCase(),i=e?`https://github.com/${encodeURIComponent(e)}.png?size=80`:null;return(0,F.jsxs)(Wm,{children:[(0,F.jsx)(Gm,{"aria-label":`Account menu`,className:H(`relative inline-flex size-8 items-center justify-center rounded-full`,`outline-hidden ring-1 ring-border`,`hover:ring-primary/40 transition-all`,`data-[state=open]:ring-primary`),children:(0,F.jsx)(ph,{avatarUrl:i,initial:r})}),(0,F.jsxs)(Km,{align:`end`,sideOffset:6,className:`w-56`,children:[(0,F.jsxs)(Jm,{className:`flex items-center gap-3 py-2`,children:[(0,F.jsx)(ph,{avatarUrl:i,initial:r,large:!0}),(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,F.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground`,children:e??`—`}),(0,F.jsx)(`span`,{className:`label-eyebrow truncate`,children:t??Y(n,`common.signedIn`)})]})]}),(0,F.jsx)(Ym,{}),(0,F.jsx)(qm,{asChild:!0,children:(0,F.jsxs)(`a`,{href:`/admin/preferences`,className:`flex items-center gap-2`,children:[(0,F.jsx)(hn,{className:`size-4`,"aria-hidden":!0}),Y(n,`preferences.page.open`)]})}),(0,F.jsx)(Ym,{}),(0,F.jsx)(qm,{asChild:!0,className:`text-destructive focus:text-destructive focus:bg-destructive/10`,children:(0,F.jsxs)(`button`,{type:`button`,onClick:mh,className:`flex w-full cursor-pointer items-center gap-2`,children:[(0,F.jsx)(en,{className:`size-4`,"aria-hidden":!0}),Y(n,`common.signOut`)]})})]})]})}function ph({avatarUrl:e,initial:t,large:n=!1}){let r=n?`size-9`:`size-8`,i=n?`text-sm`:`text-xs`;return(0,F.jsx)(`span`,{className:H(`shrink-0 inline-flex items-center justify-center rounded-full overflow-hidden`,`bg-primary/15 text-foreground/80`,r),"aria-hidden":!0,children:e?(0,F.jsx)(`img`,{src:e,alt:``,className:`size-full object-cover`,decoding:`async`}):(0,F.jsx)(`span`,{className:H(`font-medium`,i),children:t})})}function mh(){let e=document.createElement(`form`);e.method=`POST`,e.action=`/admin/logout`,document.body.appendChild(e),e.submit()}function hh(){let{language:e,setLanguage:t}=J(),n=Ac.find(t=>t.value===e)??Ac[0];return(0,F.jsxs)(Wm,{children:[(0,F.jsx)(Gm,{asChild:!0,children:(0,F.jsxs)(U,{type:`button`,variant:`ghost`,size:`sm`,className:`h-8 gap-2 rounded-full border border-border/60 bg-background/30 px-2.5`,"aria-label":Y(e,`preferences.language`),children:[(0,F.jsx)(Jt,{className:`size-4 text-primary`,"aria-hidden":!0}),(0,F.jsx)(`span`,{className:`hidden text-xs font-medium sm:inline`,children:n.nativeLabel})]})}),(0,F.jsxs)(Km,{align:`end`,className:`max-h-[min(28rem,80vh)] w-52 overflow-y-auto`,children:[(0,F.jsx)(Jm,{className:`label-eyebrow opacity-70`,children:Y(e,`preferences.language`)}),Ac.map(n=>(0,F.jsxs)(qm,{onSelect:()=>t(n.value),className:`justify-between`,children:[(0,F.jsx)(`span`,{children:n.nativeLabel}),(0,F.jsx)(wt,{"aria-hidden":!0,className:H(`size-4 text-primary`,n.value===e?`opacity-100`:`opacity-0`)})]},n.value))]})]})}function gh(){let{language:e,theme:t,setTheme:n}=J(),r=_h(e).find(e=>e.value===t),i=r?.icon??tn;return(0,F.jsxs)(Wm,{children:[(0,F.jsx)(Gm,{asChild:!0,children:(0,F.jsxs)(U,{type:`button`,variant:`ghost`,size:`sm`,className:`h-8 gap-2 rounded-full border border-border/60 bg-background/30 px-2.5`,"aria-label":Y(e,`preferences.appearance`),children:[(0,F.jsx)(i,{className:`size-4 text-primary`,"aria-hidden":!0}),(0,F.jsx)(`span`,{className:`hidden text-xs font-medium sm:inline`,children:r?.label??Y(e,`preferences.system`)})]})}),(0,F.jsxs)(Km,{align:`end`,className:`w-44`,children:[(0,F.jsx)(Jm,{className:`label-eyebrow opacity-70`,children:Y(e,`preferences.appearance`)}),_h(e).map(e=>{let r=e.icon;return(0,F.jsxs)(qm,{onSelect:()=>n(e.value),className:`justify-between`,children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(r,{className:`size-4`,"aria-hidden":!0}),e.label]}),(0,F.jsx)(wt,{"aria-hidden":!0,className:H(`size-4 text-primary`,e.value===t?`opacity-100`:`opacity-0`)})]},e.value)})]})]})}function _h(e){return[{value:`light`,label:Y(e,`preferences.light`),icon:vn},{value:`dark`,label:Y(e,`preferences.dark`),icon:nn},{value:`system`,label:Y(e,`preferences.system`),icon:tn}]}function vh({fixed:e=!1,className:t,children:n,user:r,site:i,publicUrl:a,onOpenGuide:o}){let{language:s}=J(),[c,l]=P.useState(!1);return P.useEffect(()=>{if(!e)return;let t=()=>l(window.scrollY>10);return t(),window.addEventListener(`scroll`,t,{passive:!0}),()=>window.removeEventListener(`scroll`,t)},[e]),(0,F.jsxs)(`header`,{"data-slot":`header`,"data-scrolled":c||void 0,className:H(`admin-statusbar z-20 flex h-14 shrink-0 items-center gap-3 px-4`,e?`sticky top-0 w-[inherit] transition-shadow`:`border-b border-border/40`,c&&`shadow-sm`,t),children:[(0,F.jsx)(Zs,{className:`-ms-1 md:hidden`}),i?(0,F.jsxs)(`div`,{className:`admin-site-status`,"aria-label":`Current admin site`,children:[(0,F.jsx)(`span`,{children:i.title}),i.subtitle?(0,F.jsx)(`small`,{children:i.subtitle}):null]}):null,a?(0,F.jsx)(U,{asChild:!0,variant:`secondary`,size:`sm`,className:`shrink-0`,children:(0,F.jsxs)(`a`,{href:a,target:`_blank`,rel:`noreferrer`,title:Y(s,`common.viewSite`),children:[(0,F.jsx)(Rt,{className:`size-3.5`,"aria-hidden":!0}),(0,F.jsx)(`span`,{className:`hidden sm:inline`,children:Y(s,`common.viewSite`)})]})}):null,n,r?(0,F.jsxs)(`div`,{className:H(`flex items-center gap-2`,n?``:`ms-auto`),children:[o?(0,F.jsxs)(U,{type:`button`,variant:`ghost`,size:`sm`,onClick:o,"data-tour":`guide-button`,title:Y(s,`guide.open`),"aria-label":Y(s,`guide.open`),children:[(0,F.jsx)(At,{className:`size-4`,"aria-hidden":!0}),(0,F.jsx)(`span`,{className:`hidden sm:inline`,children:Y(s,`guide.open`)})]}):null,(0,F.jsx)(hh,{}),(0,F.jsx)(gh,{}),(0,F.jsx)(fh,{login:r.login,role:r.role})]}):null]})}var yh=`content`;function bh({className:e}){return(0,F.jsx)(`a`,{href:`#${yh}`,className:H(`fixed inset-inline-start-3 top-3 z-[999]`,`-translate-y-52 rounded-md bg-primary px-3 py-2 text-sm font-medium`,`text-primary-foreground shadow`,`focus-visible:translate-y-0 transition-transform`,`outline-2 outline-offset-2 outline-ring/40`,e),children:`Skip to main content`})}function xh({fixed:e=!1,fluid:t=!1,className:n,children:r}){return(0,F.jsx)(`div`,{id:yh,"data-layout":e?`fixed`:`auto`,className:H(`@container/content`,`w-full px-4 py-6 sm:px-6`,e&&`flex grow flex-col overflow-hidden`,!t&&`mx-auto max-w-[1440px]`,`flex-1`,n),children:r})}function Sh(e,t){switch(t){case`draft`:return Y(e,`status.draft`);case`review`:return Y(e,`status.review`);case`published`:return Y(e,`status.published`);case`archived`:return Y(e,`status.archived`)}}var Ch=`mantle.admin.guide.closed`;function wh(e){let t={key:`reopen`,selector:`[data-tour="guide-button"]`};if(!e)return[t];let n=`/admin/c/${encodeURIComponent(e.name)}`;return[{key:`collections`,selector:`[data-tour="nav-c-${e.name}"]`},{key:`filters`,selector:`[data-tour="status-filter"]`,href:n},{key:`actions`,selector:`[data-tour="entry-actions"]`,href:n},t]}var Th={collections:{title:`guide.collections.title`,body:`guide.collections.body`},filters:{title:`guide.filters.title`,body:`guide.filters.body`},actions:{title:`guide.actions.title`,body:`guide.actions.body`},reopen:{title:`guide.reopen.title`,body:`guide.reopen.body`}};function Eh({language:e,firstCollection:t,onClose:n}){let[r,i]=P.useState(0),{location:a,navigate:o}=Oc(),s=P.useMemo(()=>wh(t),[t]),c=s[r]??s[0],l=Oh(c),u=P.useMemo(()=>kh(l),[l]),d=r===s.length-1;return P.useEffect(()=>{c.href&&`${a.pathname}${a.search}`!==c.href&&o(c.href)},[a.pathname,a.search,o,c]),(0,F.jsxs)(`div`,{className:`admin-guide-overlay`,role:`dialog`,"aria-modal":`false`,"aria-labelledby":`admin-guide-title`,children:[l?(0,F.jsx)(`div`,{className:`admin-guide-highlight`,style:{top:l.top-8,left:l.left-8,width:l.width+16,height:l.height+16}}):null,(0,F.jsxs)(`section`,{className:`admin-guide-popover`,style:u,children:[(0,F.jsxs)(`div`,{className:`admin-guide-progress`,children:[(0,F.jsx)(`span`,{children:r+1}),(0,F.jsx)(`small`,{children:s.length})]}),(0,F.jsxs)(`div`,{className:`admin-guide-copy`,children:[(0,F.jsx)(`p`,{className:`label-eyebrow`,children:`AotterMantle`}),(0,F.jsx)(`h2`,{id:`admin-guide-title`,children:Y(e,Th[c.key].title)}),(0,F.jsx)(`p`,{children:Y(e,Th[c.key].body)})]}),(0,F.jsxs)(`div`,{className:`admin-guide-controls`,children:[(0,F.jsx)(`button`,{type:`button`,className:`guide-icon-button`,onClick:()=>i(e=>Math.max(0,e-1)),disabled:r===0,title:Y(e,`guide.prev`),children:(0,F.jsx)(Tt,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsxs)(`button`,{type:`button`,className:`guide-primary-button`,onClick:()=>d?n():i(e=>Math.min(s.length-1,e+1)),children:[d?Y(e,`guide.finish`):Y(e,`guide.next`),d?null:(0,F.jsx)(Et,{className:`size-4`,"aria-hidden":!0})]}),(0,F.jsx)(`button`,{type:`button`,className:`guide-icon-button`,onClick:n,title:Y(e,`guide.close`),children:(0,F.jsx)(Pn,{className:`size-4`,"aria-hidden":!0})})]})]})]})}function Dh(){let{language:e}=J(),[t,n]=P.useState(()=>Ah());return{language:e,open:t,showGuide:P.useCallback(()=>{try{localStorage.removeItem(Ch)}catch{}n(!0)},[]),closeGuide:P.useCallback(()=>{try{localStorage.setItem(Ch,`1`)}catch{}n(!1)},[])}}function Oh(e){let[t,n]=P.useState(null);return P.useEffect(()=>{let t=0,r=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>{let t=document.querySelector(e.selector);if(!t){n(null);return}t.scrollIntoView({block:`nearest`,inline:`nearest`});let r=t.getBoundingClientRect();n({top:r.top,left:r.left,width:r.width,height:r.height})})};return r(),window.addEventListener(`resize`,r),window.addEventListener(`scroll`,r,!0),()=>{cancelAnimationFrame(t),window.removeEventListener(`resize`,r),window.removeEventListener(`scroll`,r,!0)}},[e]),t}function kh(e){if(typeof window>`u`)return{};if(!e)return{top:`5rem`,left:`50%`,transform:`translateX(-50%)`};let t=Math.min(380,Math.max(280,window.innerWidth-32)),n=e.left+e.width+t+24<window.innerWidth,r=e.left-t-24>0,i=Math.min(window.innerHeight-220,Math.max(16,e.top));return n?{top:i,left:e.left+e.width+18}:r?{top:i,left:e.left-t-18}:{top:Math.min(window.innerHeight-220,e.top+e.height+18),left:`50%`,transform:`translateX(-50%)`}}function Ah(){if(typeof window>`u`)return!1;try{return localStorage.getItem(Ch)!==`1`}catch{return!0}}var jh={title:`CMS`,subtitle:`admin`,href:`/admin`};function Mh({brand:e=jh,fixed:t=!1,fluid:n=!1,children:r}){let{pathname:i,search:a}=kc(),{language:o}=J(),s=Dh(),c=I({queryKey:[`me`],queryFn:()=>q.get(`/me`),retry:!1}),l=I({queryKey:[`collections`],queryFn:async()=>(await q.get(`/collections`)).collections}),u=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}),d=I(xc()),f=I(bc()),p=P.useMemo(()=>({...e,title:u.data?.brand??e.title,subtitle:u.data?.canonicalLocale??e.subtitle}),[e,u.data]),m=u.data?.canonicalLocale??null,h=P.useMemo(()=>Nh(l.data??[],d.data??[],f.data??[],o,m,c.data?.role??null),[l.data,d.data,f.data,o,m,c.data?.role]),g=P.useMemo(()=>{let e=(l.data??[]).find(e=>!e.parent);if(!e)return null;let t=gc(e.title,o,m)??_c(e.name);return{name:e.name,title:t}},[l.data,o,m]);return(0,F.jsx)(Un,{children:(0,F.jsxs)(Js,{defaultOpen:Kn()??!0,children:[(0,F.jsx)(bh,{}),(0,F.jsx)(dh,{brand:p,groups:h,pathname:i,search:a,user:{login:c.data?.login??null,role:c.data?.role??null}}),(0,F.jsxs)(Qs,{children:[(0,F.jsx)(vh,{fixed:!0,site:p,publicUrl:u.data?.publicUrl,onOpenGuide:s.showGuide,user:{login:c.data?.login??null,role:c.data?.role??null}}),(0,F.jsx)(xh,{fixed:t,fluid:n,children:r})]}),(0,F.jsx)(Qc,{}),s.open?(0,F.jsx)(Eh,{language:s.language,firstCollection:g,onClose:s.closeGuide}):null]})})}function Nh(e,t,n,r,i,a){let o=e.filter(e=>!e.parent),s=o.filter(e=>e.lifecycle!==`none`),c=o.filter(e=>e.lifecycle===`none`),l=e.some(e=>e.lifecycle===`editorial`),u={items:[{title:Y(r,`nav.home`),url:`/admin`,icon:Ut}]},d={title:Y(r,`nav.content`),items:s.map(e=>Ph(e,r,i))},f=c.length>0?{title:Y(r,`nav.operations`),items:c.map(e=>Ph(e,r,i))}:null,p=t.filter(e=>e.rowBindings.length===0),m=p.length>0?{title:Y(r,`nav.ops`),items:p.map(e=>({title:gc(e.title,r,i)??_c(e.name),icon:Nn,url:`/admin/ops#${e.name}`}))}:null,h=n.length>0?{title:Y(r,`nav.reports`),items:n.map(e=>({title:gc(e.title,r,i)??_c(e.name),icon:Ct,url:`/admin/views/${encodeURIComponent(e.name)}`}))}:null,g={title:Y(r,`nav.more`),items:[...l?[{title:Y(r,`nav.approvals`),url:`/admin/approvals`,icon:Mt}]:[],{title:Y(r,`nav.media`),url:`/admin/media`,icon:Kt},{title:Y(r,`nav.settings`),url:`/admin/settings`,icon:hn},...a===`owner`?[{title:Y(r,`nav.staff`),url:`/admin/staff`,icon:An}]:[]]};return[u,d,...f?[f]:[],...m?[m]:[],...h?[h]:[],g]}function Ph(e,t,n){let r={title:gc(e.title,t,n)??_c(e.name),icon:Bt,marker:e.hasTranslations?Vt:void 0},i=Fh(e);return i.length===0?{...r,url:`/admin/c/${e.name}`}:{...r,items:[{title:Y(t,`collection.filter.all`),url:`/admin/c/${e.name}`},...i.map(n=>({title:Sh(t,n),url:`/admin/c/${e.name}?status=${n}`}))]}}function Fh(e){return e.lifecycle===`editorial`?Sc:e.lifecycle===`none`?[]:Cc}function Ih(){return(0,F.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,F.jsxs)(`div`,{className:`glass-card w-full max-w-sm p-6`,children:[(0,F.jsx)(`div`,{className:`mb-4 h-4 w-24 animate-pulse rounded bg-muted`}),(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsx)(`div`,{className:`h-3 w-full animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-3 w-2/3 animate-pulse rounded bg-muted`})]})]})})}function Lh({error:e}){let{language:t}=J(),n=e instanceof Error?e.message:`Unknown error.`;return(0,F.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,F.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-sm p-8 text-center`,children:[(0,F.jsx)(`h1`,{className:`mb-2 text-xl`,children:Y(t,`auth.error.title`)}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n})]})})}function Rh({login:e}){let{language:t}=J();return(0,F.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,F.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-md p-8 text-center`,children:[(0,F.jsx)(`div`,{className:`mx-auto mb-3 inline-flex size-10 items-center justify-center rounded-full bg-destructive/10 text-destructive`,children:(0,F.jsx)(wn,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsx)(`h1`,{className:`mb-2 text-xl`,children:Y(t,`auth.accessDenied.title`)}),e?(0,F.jsxs)(`p`,{className:`mb-1 text-sm font-medium text-foreground`,children:[`GitHub: `,e]}):null,(0,F.jsx)(`p`,{className:`mb-1 text-sm text-muted-foreground`,children:Y(t,`auth.accessDenied.noStaff`)}),(0,F.jsx)(`p`,{className:`mb-6 text-sm text-muted-foreground`,children:Y(t,`auth.accessDenied.askOwner`)}),(0,F.jsxs)(U,{variant:`outline`,className:`w-full`,onClick:Xh,children:[(0,F.jsx)(en,{className:`me-2 size-4`,"aria-hidden":!0}),Y(t,`common.signOut`)]})]})})}var zh=`w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,Bh=`first:mt-0 mt-4`,Vh=`first:mt-0 first:border-t-0 first:pt-0 mt-6 border-t border-border pt-4`;function Hh(){let{language:e}=J(),t=new URLSearchParams(window.location.search).get(`return`)??`/admin`,[n,r]=P.useState(null),[i,a]=P.useState(null);return P.useEffect(()=>{let e=!1;async function t(){try{let t=await fetch(`/api/auth/methods`,{credentials:`include`});if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();if(e)return;r(n.methods??[])}catch(t){if(e)return;a(t instanceof Error?t.message:String(t))}}return t(),()=>{e=!0}},[]),(0,F.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,F.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-sm p-8`,children:[(0,F.jsx)(`p`,{className:`label-eyebrow mb-2`,children:Y(e,`auth.signIn.eyebrow`)}),(0,F.jsx)(`h1`,{className:`mb-2 text-xl`,children:Y(e,`auth.signIn.title`)}),i?(0,F.jsx)(`p`,{className:`mb-4 text-sm text-destructive`,children:Y(e,`auth.signIn.methodsLoadFailed`)}):null,n===null&&!i?(0,F.jsx)(`div`,{className:`space-y-2`,children:(0,F.jsx)(`div`,{className:`h-9 w-full animate-pulse rounded bg-muted`})}):null,n&&n.length===0?(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Y(e,`auth.signIn.noMethods`)}):null,n&&n.length>0?(0,F.jsx)(`div`,{children:n.map(e=>(0,F.jsx)(Uh,{method:e,returnTo:t},e.kind===`social`?`social:${e.provider}`:e.kind===`oauth`?`oauth:${e.providerId}`:e.kind))}):null]})})}function Uh({method:e,returnTo:t}){switch(e.kind){case`social`:return(0,F.jsx)(Gh,{provider:e.provider,returnTo:t});case`oauth`:return(0,F.jsx)(Kh,{providerId:e.providerId,displayName:e.displayName??e.providerId,returnTo:t});case`email-otp`:return(0,F.jsx)(qh,{returnTo:t});case`magic-link`:return(0,F.jsx)(Jh,{returnTo:t});default:return(0,F.jsx)(Yh,{kind:e.kind})}}var Wh={github:`GitHub`,google:`Google`,apple:`Apple`,"microsoft-entra-id":`Microsoft`,facebook:`Facebook`,discord:`Discord`,twitter:`Twitter / X`,linkedin:`LinkedIn`,spotify:`Spotify`,twitch:`Twitch`,gitlab:`GitLab`,tiktok:`TikTok`,reddit:`Reddit`,kick:`Kick`,vk:`VK`,naver:`Naver`,kakao:`Kakao`,line:`LINE`,slack:`Slack`,atlassian:`Atlassian`,zoom:`Zoom`,notion:`Notion`,figma:`Figma`,linear:`Linear`,vercel:`Vercel`,paypal:`PayPal`,huggingface:`Hugging Face`,cognito:`Cognito`,salesforce:`Salesforce`,polar:`Polar`,railway:`Railway`,roblox:`Roblox`,paybin:`Paybin`,wechat:`WeChat`,dropbox:`Dropbox`};function Gh({provider:e,returnTo:t}){let{language:n}=J(),r=Wh[e]??e,i=async()=>{let n=await fetch(`/api/auth/sign-in/social`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({provider:e,callbackURL:t})});if(!n.ok)return;let r=await n.json();r.url&&(window.location.href=r.url)};return(0,F.jsx)(`div`,{className:Bh,children:(0,F.jsx)(U,{onClick:()=>void i(),className:`w-full`,children:Y(n,`auth.signIn.method.social.button`,{provider:r})})})}function Kh({providerId:e,displayName:t,returnTo:n}){let{language:r}=J(),i=async()=>{let t=await fetch(`/api/auth/sign-in/oauth2`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({providerId:e,callbackURL:n})});if(!t.ok)return;let r=await t.json();r.url&&(window.location.href=r.url)};return(0,F.jsx)(`div`,{className:Bh,children:(0,F.jsx)(U,{onClick:()=>void i(),className:`w-full`,children:Y(r,`auth.signIn.method.oauth.button`,{provider:t})})})}function qh({returnTo:e}){let{language:t}=J(),[n,r]=P.useState(`email`),[i,a]=P.useState(``),[o,s]=P.useState(``),[c,l]=P.useState(!1),[u,d]=P.useState(null),f=async e=>{l(!0),d(null);try{await e()}finally{l(!1)}};return(0,F.jsxs)(`div`,{className:Vh,children:[(0,F.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:Y(t,`auth.signIn.method.email-otp.body`)}),n===`email`?(0,F.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),i&&f(async()=>{if(!(await fetch(`/api/auth/email-otp/send-verification-otp`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:i,type:`sign-in`})})).ok){d(Y(t,`auth.signIn.method.email-otp.sendFailed`));return}r(`otp`)})},className:`space-y-2`,children:[(0,F.jsx)(`label`,{htmlFor:`signin-email`,className:`sr-only`,children:Y(t,`auth.signIn.method.email-otp.emailLabel`)}),(0,F.jsx)(`input`,{id:`signin-email`,type:`email`,value:i,onChange:e=>a(e.currentTarget.value),placeholder:Y(t,`auth.signIn.method.email-otp.emailPlaceholder`),required:!0,autoComplete:`email`,className:zh}),(0,F.jsx)(U,{type:`submit`,className:`w-full`,disabled:c||!i,children:Y(t,`auth.signIn.method.email-otp.sendButton`)})]}):(0,F.jsxs)(`form`,{onSubmit:n=>{n.preventDefault(),o&&f(async()=>{if(!(await fetch(`/api/auth/sign-in/email-otp`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:i,otp:o})})).ok){d(Y(t,`auth.signIn.method.email-otp.verifyFailed`));return}window.location.assign(e)})},className:`space-y-2`,children:[(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:Y(t,`auth.signIn.method.email-otp.sentTo`,{email:i})}),(0,F.jsx)(`label`,{htmlFor:`signin-otp`,className:`sr-only`,children:Y(t,`auth.signIn.method.email-otp.otpLabel`)}),(0,F.jsx)(`input`,{id:`signin-otp`,type:`text`,inputMode:`numeric`,autoComplete:`one-time-code`,value:o,onChange:e=>s(e.currentTarget.value),placeholder:Y(t,`auth.signIn.method.email-otp.otpPlaceholder`),required:!0,className:zh}),(0,F.jsx)(U,{type:`submit`,className:`w-full`,disabled:c||!o,children:Y(t,`auth.signIn.method.email-otp.verifyButton`)}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>r(`email`),className:`text-xs text-muted-foreground underline-offset-2 hover:underline`,children:Y(t,`auth.signIn.method.email-otp.back`)})]}),u?(0,F.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:u}):null]})}function Jh({returnTo:e}){let{language:t}=J(),[n,r]=P.useState(``),[i,a]=P.useState(!1),[o,s]=P.useState(!1),[c,l]=P.useState(null),u=async e=>{a(!0),l(null);try{await e()}finally{a(!1)}};return(0,F.jsxs)(`div`,{className:Vh,children:[(0,F.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:Y(t,`auth.signIn.method.magic-link.body`)}),o?(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsx)(`p`,{className:`text-sm text-foreground`,children:Y(t,`auth.signIn.method.magic-link.sentTo`,{email:n})}),(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:Y(t,`auth.signIn.method.magic-link.clickHint`)}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>{s(!1),r(``)},className:`text-xs text-muted-foreground underline-offset-2 hover:underline`,children:Y(t,`auth.signIn.method.magic-link.anotherEmail`)})]}):(0,F.jsxs)(`form`,{onSubmit:r=>{r.preventDefault(),n&&u(async()=>{if(!(await fetch(`/api/auth/sign-in/magic-link`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:n,callbackURL:e})})).ok){l(Y(t,`auth.signIn.method.magic-link.sendFailed`));return}s(!0)})},className:`space-y-2`,children:[(0,F.jsx)(`label`,{htmlFor:`signin-mlink-email`,className:`sr-only`,children:Y(t,`auth.signIn.method.magic-link.emailLabel`)}),(0,F.jsx)(`input`,{id:`signin-mlink-email`,type:`email`,value:n,onChange:e=>r(e.currentTarget.value),placeholder:Y(t,`auth.signIn.method.magic-link.emailPlaceholder`),required:!0,autoComplete:`email`,className:zh}),(0,F.jsx)(U,{type:`submit`,className:`w-full`,disabled:i||!n,children:Y(t,`auth.signIn.method.magic-link.sendButton`)})]}),c?(0,F.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:c}):null]})}function Yh({kind:e}){let{language:t}=J();return(0,F.jsx)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:Y(t,`auth.signIn.unknownMethod`,{kind:e})})}function Xh(){fetch(`/api/auth/sign-out`,{method:`POST`,credentials:`include`}).then(()=>{window.location.href=`/admin/sign-in`})}function Zh({eyebrow:e,title:t,description:n,actions:r}){return(0,F.jsxs)(`div`,{className:`mb-6 flex flex-wrap items-end justify-between gap-4`,children:[(0,F.jsxs)(`div`,{className:`min-w-0`,children:[e?(0,F.jsx)(`p`,{className:`label-eyebrow mb-1`,children:e}):null,(0,F.jsx)(`h1`,{className:`text-2xl`,children:t}),n?(0,F.jsx)(`div`,{className:`mt-1 max-w-3xl text-sm text-muted-foreground`,children:n}):null]}),r?(0,F.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:r}):null]})}function Qh({id:e,className:t,children:n}){return(0,F.jsx)(`section`,{id:e,className:H(`glass-card p-5`,t),children:n})}function $h({icon:e=Ot,title:t,description:n,action:r}){return(0,F.jsxs)(`div`,{className:`rounded-lg border border-dashed border-border p-8 text-center`,children:[(0,F.jsx)(`div`,{className:`mx-auto mb-3 inline-flex size-10 items-center justify-center rounded-full bg-accent text-accent-foreground`,children:(0,F.jsx)(e,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsx)(`h2`,{className:`text-lg`,children:t}),n?(0,F.jsx)(`p`,{className:`mx-auto mt-1 max-w-md text-sm text-muted-foreground`,children:n}):null,r?(0,F.jsx)(`div`,{className:`mt-4`,children:r}):null]})}function eg({error:e}){let{language:t}=J(),n=e instanceof pc&&e.status===401;if(P.useEffect(()=>{if(!n||typeof window>`u`)return;let e=window.location.pathname+window.location.search;window.location.href=`/admin/sign-in?return=${encodeURIComponent(e)}`},[n]),n)return null;let r=e instanceof Error?e.message:`Unknown error.`;return(0,F.jsxs)(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive`,children:[Y(t,`common.failedToLoad`),`: `,r]})}function tg({error:e}){let{language:t}=J(),n=e instanceof pc&&e.status===401;if(P.useEffect(()=>{if(!n||typeof window>`u`)return;let e=window.location.pathname+window.location.search;window.location.href=`/admin/sign-in?return=${encodeURIComponent(e)}`},[n]),n)return null;let r=e instanceof Error?e.message:String(e);return(0,F.jsxs)(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive`,children:[(0,F.jsx)(`p`,{children:Y(t,`ops.error.executionFailed`)}),(0,F.jsxs)(`details`,{className:`group mt-2`,children:[(0,F.jsx)(`summary`,{className:`inline-flex cursor-pointer list-none items-center rounded-md border border-destructive/30 bg-card/40 px-2.5 py-1 text-xs font-semibold text-destructive/80 transition hover:bg-destructive/10`,children:Y(t,`ops.error.detailsLabel`)}),(0,F.jsx)(`p`,{className:`mt-2 max-w-3xl whitespace-pre-wrap break-words rounded-md border border-destructive/20 bg-card/30 p-3 font-mono text-xs leading-relaxed text-destructive/90`,children:r})]})]})}function ng({description:e,summaryLabel:t,collapsedIntro:n}){return rg(e)?(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsx)(`p`,{children:n}),(0,F.jsxs)(`details`,{className:`group`,children:[(0,F.jsx)(`summary`,{className:`inline-flex cursor-pointer list-none items-center rounded-md border border-border bg-card/70 px-2.5 py-1 text-xs font-semibold text-foreground/70 transition hover:bg-accent hover:text-accent-foreground`,children:t}),(0,F.jsx)(`p`,{className:`mt-2 max-w-3xl rounded-md border border-border bg-card/55 p-3 text-xs leading-relaxed text-muted-foreground`,children:e})]})]}):(0,F.jsx)(F.Fragment,{children:e})}function rg(e){return e.length>180||e.includes("`")}var ig=[on,zt,Ft];function ag(){let{language:e}=J(),t=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}),n=I({queryKey:[`collections`],queryFn:async()=>(await q.get(`/collections`)).collections}),r=(n.data??[]).filter(e=>!e.parent),i=t.data,a=i?.canonicalLocale??null;return(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(Zh,{eyebrow:Y(e,`console.eyebrow`),title:i?.brand??`AotterMantle`,description:i?Y(e,`console.description`,{title:i.title}):Y(e,`console.descriptionFallback`),actions:i?.publicUrl?(0,F.jsx)(U,{asChild:!0,variant:`outline`,children:(0,F.jsxs)(`a`,{href:i.publicUrl,target:`_blank`,rel:`noreferrer`,children:[(0,F.jsx)(Vt,{className:`size-4`,"aria-hidden":!0}),Y(e,`common.viewSite`)]})}):null}),(0,F.jsx)(`div`,{className:`grid grid-cols-1 gap-4`,children:(0,F.jsxs)(Qh,{className:`admin-dashboard-panel`,children:[(0,F.jsxs)(`div`,{className:`mb-4 flex items-start gap-3`,children:[(0,F.jsx)(`div`,{className:`rounded-xl bg-primary/15 p-2 text-primary`,children:(0,F.jsx)(on,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-lg`,children:Y(e,`console.workspace.title`)}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Y(e,`console.workspace.body`)})]})]}),(0,F.jsx)(`div`,{className:`grid grid-cols-1 gap-2 sm:grid-cols-3`,children:r.slice(0,3).map((t,n)=>(0,F.jsx)(og,{href:`/admin/c/${encodeURIComponent(t.name)}`,icon:ig[n%ig.length],label:gc(t.title,e,a)??t.name},t.name))})]})}),(0,F.jsxs)(`section`,{children:[(0,F.jsx)(Zh,{eyebrow:Y(e,`console.collections.eyebrow`),title:Y(e,`console.collections.title`),description:Y(e,`console.collections.body`)}),n.isLoading&&(0,F.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[0,1,2].map(e=>(0,F.jsx)(`div`,{className:`glass-card h-36 animate-pulse`},e))}),n.isError&&(0,F.jsx)(eg,{error:n.error}),n.data&&r.length===0&&(0,F.jsx)($h,{icon:Ft,title:Y(e,`console.collections.emptyTitle`),description:Y(e,`console.collections.emptyBody`)}),r.length>0&&(0,F.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:r.map(t=>{let n=gc(t.title,e,a)??t.name,r=gc(t.description,e,a);return(0,F.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(t.name)}`,className:`glass-card card-lift block p-5 no-underline text-foreground`,children:[(0,F.jsxs)(`div`,{className:`mb-3 flex items-start justify-between gap-3`,children:[(0,F.jsxs)(`div`,{className:`min-w-0`,children:[(0,F.jsx)(`h2`,{className:`truncate text-lg`,title:n,children:n}),(0,F.jsx)(`p`,{className:`font-mono text-xs text-muted-foreground`,children:t.name})]}),(0,F.jsx)(zt,{className:`size-5 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),r?(0,F.jsx)(`p`,{className:`line-clamp-2 text-sm text-muted-foreground`,children:sg(r)}):(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Y(e,`console.collections.noDescription`)}),(0,F.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-2`,children:[t.hasTranslations?(0,F.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--info)_16%,transparent)] text-[color:var(--info)]`,children:`i18n`}):null,t.mediaFields?.length?(0,F.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--success)_16%,transparent)] text-[color:var(--success)]`,children:`media`}):null]})]},t.name)})})]})]})}function og({href:e,icon:t,label:n}){return(0,F.jsxs)(`a`,{href:e,title:n,className:`quick-action`,children:[(0,F.jsx)(t,{className:`size-4`,"aria-hidden":!0}),(0,F.jsx)(`span`,{children:n})]})}function sg(e){let t=/^(.*?(?:。|\. ))/.exec(e);return(t?t[1]:e).trim()}function cg({children:e,className:t}){return(0,F.jsx)(`div`,{className:H(`glass-card overflow-hidden`,t),children:(0,F.jsx)(`div`,{className:`overflow-x-auto`,children:(0,F.jsx)(`table`,{className:`w-full min-w-[720px] text-sm`,children:e})})})}function lg({children:e,className:t}){return(0,F.jsx)(`th`,{className:H(`label-eyebrow px-3 py-2 text-left`,t),children:e})}function ug({children:e,className:t}){return(0,F.jsx)(`td`,{className:H(`px-3 py-2 align-middle`,t),children:e})}function dg({...e}){return(0,F.jsx)(fs,{"data-slot":`dialog`,...e})}function fg({...e}){return(0,F.jsx)(vs,{"data-slot":`dialog-portal`,...e})}function pg({className:e,...t}){return(0,F.jsx)(bs,{"data-slot":`dialog-overlay`,className:H(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,e),...t})}function mg({className:e,children:t,showCloseButton:n=!0,...r}){return(0,F.jsxs)(fg,{children:[(0,F.jsx)(pg,{}),(0,F.jsxs)(ws,{"data-slot":`dialog-content`,className:H(`fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl border border-[var(--glass-border)] bg-background p-6 shadow-[var(--glass-shadow-lg)] transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-200 data-[state=open]:animate-in data-[state=open]:duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`,e),...r,children:[t,n&&(0,F.jsxs)(Ns,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,F.jsx)(Pn,{className:`size-4`}),(0,F.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function hg({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`dialog-header`,className:H(`flex flex-col gap-1.5`,e),...t})}function gg({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`dialog-footer`,className:H(`flex justify-end gap-2`,e),...t})}function _g({className:e,...t}){return(0,F.jsx)(ks,{"data-slot":`dialog-title`,className:H(`font-semibold text-foreground`,e),...t})}function vg({className:e,...t}){return(0,F.jsx)(js,{"data-slot":`dialog-description`,className:H(`text-sm text-muted-foreground`,e),...t})}var yg=P.createContext(null);function bg({children:e}){let{language:t}=J(),[n,r]=P.useState(null),i=P.useCallback(e=>new Promise(t=>{r({...e,resolve:t})}),[]);function a(e){n?.resolve(e),r(null)}let o=P.useMemo(()=>({confirm:i}),[i]);return(0,F.jsxs)(yg.Provider,{value:o,children:[e,(0,F.jsx)(dg,{open:n!=null,onOpenChange:e=>{e||a(!1)},children:(0,F.jsxs)(mg,{children:[(0,F.jsxs)(hg,{children:[(0,F.jsx)(_g,{children:Y(t,`confirm.title`)}),(0,F.jsx)(vg,{children:n?.description})]}),(0,F.jsxs)(gg,{children:[(0,F.jsx)(U,{type:`button`,variant:`secondary`,onClick:()=>a(!1),children:Y(t,`confirm.cancel`)}),(0,F.jsx)(U,{type:`button`,variant:n?.variant??`destructive`,onClick:()=>a(!0),children:n?.confirmLabel??Y(t,`confirm.confirm`)})]})]})})]})}function xg(){let e=P.useContext(yg);if(!e)throw Error(`useConfirm() must be used within <ConfirmProvider>.`);return e.confirm}var Sg={draft:`bg-muted text-muted-foreground`,review:`bg-[color-mix(in_srgb,var(--warning)_18%,transparent)] text-[color:var(--warning)]`,approved:`bg-[color-mix(in_srgb,var(--success)_18%,transparent)] text-[color:var(--success)]`,scheduled:`bg-[color-mix(in_srgb,var(--info)_18%,transparent)] text-[color:var(--info)]`,published:`bg-[color-mix(in_srgb,var(--success)_18%,transparent)] text-[color:var(--success)]`,archived:`bg-secondary text-muted-foreground`},Cg={draft:`status.draft`,review:`status.review`,published:`status.published`,archived:`status.archived`};function wg({status:e,className:t}){let{language:n}=J(),r=Tg(e),i=Cg[e];return(0,F.jsx)(`span`,{className:H(`badge-status`,r?Sg[e]:`bg-accent text-accent-foreground`,t),children:i?Y(n,i):e})}function Tg(e){return e in Sg}var Eg=new Intl.DateTimeFormat(void 0,{dateStyle:`short`,timeStyle:`short`});function Dg(e){return e?.[`x-mcp-hint`]===`money-minor`}function Og(e){return e?.[`x-mcp-hint`]===`timestamp-ms`}function kg(e,t){if(typeof e!=`number`||!Number.isFinite(e))return null;let n=e/100;if(typeof t==`string`&&t)try{return new Intl.NumberFormat(void 0,{style:`currency`,currency:t}).format(n)}catch{}return new Intl.NumberFormat().format(n)}function Ag(e){if(typeof e!=`number`||!Number.isFinite(e))return null;try{return Eg.format(new Date(e))}catch{return null}}function jg(e,t){return e===`money-minor`?Y(t,`field.hint.moneyMinor`):e===`timestamp-ms`?Y(t,`field.hint.timestampMs`):e}function Mg(e,t=8){return e.length<=t?e:e.slice(-t)}function Ng(e){if(e instanceof pc){let t=e.body?.diagnostic?.message;if(t)return Error(t)}return e}var Pg=P.createContext(null),Fg=3200;function Ig({children:e}){let[t,n]=P.useState([]),r=P.useRef(0),i=P.useCallback(e=>{let t=r.current++;n(n=>[...n,{id:t,message:e}]),window.setTimeout(()=>{n(e=>e.filter(e=>e.id!==t))},Fg)},[]),a=P.useMemo(()=>({showToast:i}),[i]);return(0,F.jsxs)(Pg.Provider,{value:a,children:[e,(0,F.jsx)(`div`,{className:`pointer-events-none fixed bottom-4 right-4 z-[100] flex flex-col gap-2`,role:`status`,"aria-live":`polite`,children:t.map(e=>(0,F.jsxs)(`div`,{className:H(`pointer-events-auto flex items-center gap-2 rounded-lg border border-[var(--glass-border)] bg-background px-4 py-3 text-sm shadow-[var(--glass-shadow-lg)]`,`animate-in slide-in-from-bottom-2 fade-in-0 duration-200`),children:[(0,F.jsx)(kt,{className:`size-4 shrink-0 text-[color:var(--success)]`,"aria-hidden":!0}),(0,F.jsx)(`span`,{className:`text-foreground`,children:e.message})]},e.id))})]})}function Lg(){let e=P.useContext(Pg);if(!e)throw Error(`useToast() must be used within <ToastProvider>.`);return e}async function Rg(e){let t=zg(e.purposes,e.preferredPurpose);if(!t)throw Error(`No media upload purpose is configured for this site.`);let n=await Hg(e.file,t,e.language??`en`),r=await q.post(`/media/uploads`,{filename:e.file.name,purpose:t.name,variants:n.map(e=>({mimeType:e.mimeType,byteSize:e.blob.size,role:e.role})),alt:e.alt??Qg(e.file),caption:e.caption});for(let e of n){let t=r.capabilities.find(t=>t.mimeType===e.mimeType&&t.role===e.role);if(!t)throw Error(`Upload capability missing for ${e.mimeType}.`);await fetch(t.uploadUrl,{method:t.method,headers:t.requiredHeaders??{"Content-Type":e.mimeType},body:e.blob})}return q.post(`/media/uploads/${encodeURIComponent(r.uploadGroupId)}/commit`,{alt:e.alt??Qg(e.file),caption:e.caption})}function zg(e,t){if(t){let n=e.find(e=>e.name===t);if(n)return n}return e.find(e=>e.name===`content`)??e[0]??null}function Bg(e,t,n){let r=n[n.length-1]??``,i=Zg(t.replace(/-translations$/,``)),a=[];/cover/i.test(r)&&a.push(`${i}-cover`),/image|asset|media/i.test(r)&&(a.push(`${i}-image`),a.push(`${i}-media`)),a.push(`content`);for(let t of a)if(e.some(e=>e.name===t))return t;return e[0]?.name}function Vg(e){return(e.variants.find(e=>e.role===`primary`)??e.variants[0])?.publicUrl??null}async function Hg(e,t,n){if(!e.type.startsWith(`image/`)||e.type===`image/svg+xml`)throw Error(`Only raster image uploads are supported in the admin UI.`);let r=Ug(t.required);if(r.length===0)throw Error(`Media purpose '${t.name}' does not declare required image variants.`);let i=await createImageBitmap(e);try{let e=await Promise.all(r.map(e=>qg(e,t,n))),a=e.find(Xg)??e[0],o=[];for(let r of e){let e=t.maxBytes[r]??2**53-1;o.push({mimeType:r,role:r===a?`primary`:`alternate`,blob:await Jg(i,r,e,n)})}return o}finally{i.close?.()}}function Ug(e){return e.map(e=>e.split(`,`).map(Wg).filter(e=>!!e)).filter(e=>e.length>0)}function Wg(e){let t=e.trim().toLowerCase();return t?t===`jpg`||t===`jpeg`||t===`image/jpg`?`image/jpeg`:t===`png`?`image/png`:t===`webp`?`image/webp`:t===`avif`?`image/avif`:t===`gif`?`image/gif`:t.includes(`/`)?t:null:null}var Gg=new Map;function Kg(e){let t=Gg.get(e);return t||(t=(async()=>{try{let t=document.createElement(`canvas`);return t.width=1,t.height=1,(await new Promise(n=>t.toBlob(n,e)))?.type===e}catch{return!0}})(),Gg.set(e,t)),t}async function qg(e,t,n){for(let n of e)if(n.startsWith(`image/`)&&t.maxBytes[n]!=null&&await Kg(n))return n;let r=e.find(e=>e.startsWith(`image/`)&&t.maxBytes[e]!=null);throw Error(Y(n,`media.encoderUnsupported`,{mime:r??e[0]??`?`}))}async function Jg(e,t,n,r){let i=1,a=t===`image/jpeg`?[.88,.78,.68,.58]:[.78,.68,.58,.48],o=null;for(let s=0;s<6;s+=1){for(let c of a){let a=await Yg(e,t,i,c);if(a.type!==t){if(s===0&&o===null)throw Error(Y(r,`media.encoderUnsupported`,{mime:t}));continue}if(o=a,a.size<=n)return a}i*=.82}if(o)return o;throw Error(`This browser cannot encode ${t}.`)}async function Yg(e,t,n,r){let i=document.createElement(`canvas`);i.width=Math.max(1,Math.round(e.width*n)),i.height=Math.max(1,Math.round(e.height*n));let a=i.getContext(`2d`);if(!a)throw Error(`Could not prepare image upload.`);a.drawImage(e,0,0,i.width,i.height);let o=await new Promise(e=>i.toBlob(e,t,r));if(!o)throw Error(`This browser cannot encode ${t}.`);return o}function Xg(e){return e===`image/jpeg`||e===`image/png`||e===`image/gif`}function Zg(e){return e.endsWith(`ies`)?`${e.slice(0,-3)}y`:e.endsWith(`ses`)?e.slice(0,-2):e.endsWith(`s`)&&e.length>1?e.slice(0,-1):e}function Qg(e){return e.name.replace(/\.[^.]+$/,``)}function $g({value:e,onChange:t,label:n,mode:r,onModeChange:i,compact:a=!1,showPreview:o=!1}){let{language:s}=J(),c=P.useRef(null),l=P.useRef(null),[u,d]=P.useState(!1),[f,p]=P.useState(!1),[m,h]=P.useState(!1),[g,_]=P.useState(null),v=r??`rich`,y=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}),b=P.useCallback((n,r=``,i=``)=>{let a=c.current;if(!a){t(`${e}${n}${i}${r}`);return}let o=a.selectionStart,s=a.selectionEnd,l=e.slice(o,s)||i;t(`${e.slice(0,o)}${n}${l}${r}${e.slice(s)}`),window.requestAnimationFrame(()=>{a.focus();let e=o+n.length,t=e+l.length;a.setSelectionRange(e,t)})},[t,e]),x=P.useCallback(t=>{b(`${e.endsWith(`
|
|
135
|
+
`},Ko=0,qo=[];function Jo(e){var t=P.useRef([]),n=P.useRef([0,0]),r=P.useRef(),i=P.useState(Ko++)[0],a=P.useState(go)[0],o=P.useRef(e);P.useEffect(function(){o.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Ka([e.lockRef.current],(e.shards||[]).map(Uo),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=P.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Vo(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Po(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Po(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Bo(h,t,e,h===`h`?s:c,!0)},[]),c=P.useCallback(function(e){var n=e;if(!(!qo.length||qo[qo.length-1]!==a)){var r=`deltaY`in n?Ho(n):Vo(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Wo(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Uo).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=P.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Yo(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=P.useCallback(function(e){n.current=Vo(e),r.current=void 0},[]),d=P.useCallback(function(t){l(t.type,Ho(t),t.target,s(t,e.lockRef.current))},[]),f=P.useCallback(function(t){l(t.type,Vo(t),t.target,s(t,e.lockRef.current))},[]);P.useEffect(function(){return qo.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,ko),document.addEventListener(`touchmove`,c,ko),document.addEventListener(`touchstart`,u,ko),function(){qo=qo.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,ko),document.removeEventListener(`touchmove`,c,ko),document.removeEventListener(`touchstart`,u,ko)}},[]);var p=e.removeScrollBar,m=e.inert;return P.createElement(P.Fragment,null,m?P.createElement(a,{styles:Go(i)}):null,p?P.createElement(Eo,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Yo(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Xo=oo(so,Jo),Zo=P.forwardRef(function(e,t){return P.createElement(K,Wa({},e,{ref:t,sideCar:Xo}))});Zo.classNames=K.classNames;var Qo=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},$o=new WeakMap,es=new WeakMap,ts={},ns=0,rs=function(e){return e&&(e.host||rs(e.parentNode))},is=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=rs(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},as=function(e,t,n,r){var i=is(t,Array.isArray(e)?e:[e]);ts[n]||(ts[n]=new WeakMap);var a=ts[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=($o.get(e)||0)+1,l=(a.get(e)||0)+1;$o.set(e,c),a.set(e,l),o.push(e),c===1&&i&&es.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),ns++,function(){o.forEach(function(e){var t=$o.get(e)-1,i=a.get(e)-1;$o.set(e,t),a.set(e,i),t||(es.has(e)||e.removeAttribute(r),es.delete(e)),i||e.removeAttribute(n)}),ns--,ns||($o=new WeakMap,$o=new WeakMap,es=new WeakMap,ts={})}},os=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Qo(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),as(r,i,n,`aria-hidden`)):function(){return null}},ss=`Dialog`,[cs,ls]=Bi(ss),[us,ds]=cs(ss),fs=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=P.useRef(null),c=P.useRef(null),[l,u]=qi({prop:r,defaultProp:i??!1,onChange:a,caller:ss});return(0,F.jsx)(us,{scope:t,triggerRef:s,contentRef:c,contentId:Gi(),titleId:Gi(),descriptionId:Gi(),open:l,onOpenChange:u,onOpenToggle:P.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};fs.displayName=ss;var ps=`DialogTrigger`,ms=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ds(ps,n),a=tr(t,i.triggerRef);return(0,F.jsx)(Zi.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Ps(i.open),...r,ref:a,onClick:W(e.onClick,i.onOpenToggle)})});ms.displayName=ps;var hs=`DialogPortal`,[gs,_s]=cs(hs,{forceMount:void 0}),vs=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=ds(hs,t);return(0,F.jsx)(gs,{scope:t,forceMount:n,children:P.Children.map(r,e=>(0,F.jsx)(Pa,{present:n||a.open,children:(0,F.jsx)(Ma,{asChild:!0,container:i,children:e})}))})};vs.displayName=hs;var ys=`DialogOverlay`,bs=P.forwardRef((e,t)=>{let n=_s(ys,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=ds(ys,e.__scopeDialog);return a.modal?(0,F.jsx)(Pa,{present:r||a.open,children:(0,F.jsx)(Ss,{...i,ref:t})}):null});bs.displayName=ys;var xs=nr(`DialogOverlay.RemoveScroll`),Ss=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ds(ys,n),a=tr(t,ua());return(0,F.jsx)(Zo,{as:xs,allowPinchZoom:!0,shards:[i.contentRef],children:(0,F.jsx)(Zi.div,{"data-state":Ps(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})}),Cs=`DialogContent`,ws=P.forwardRef((e,t)=>{let n=_s(Cs,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=ds(Cs,e.__scopeDialog);return(0,F.jsx)(Pa,{present:r||a.open,children:a.modal?(0,F.jsx)(Ts,{...i,ref:t}):(0,F.jsx)(Es,{...i,ref:t})})});ws.displayName=Cs;var Ts=P.forwardRef((e,t)=>{let n=ds(Cs,e.__scopeDialog),r=P.useRef(null),i=tr(t,n.contentRef,r);return P.useEffect(()=>{let e=r.current;if(e)return os(e)},[]),(0,F.jsx)(Ds,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:W(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:W(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:W(e.onFocusOutside,e=>e.preventDefault())})}),Es=P.forwardRef((e,t)=>{let n=ds(Cs,e.__scopeDialog),r=P.useRef(!1),i=P.useRef(!1);return(0,F.jsx)(Ds,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),Ds=P.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=ds(Cs,n);return Ha(),(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(ya,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,F.jsx)(sa,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Ps(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})}),Os=`DialogTitle`,ks=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ds(Os,n);return(0,F.jsx)(Zi.h2,{id:i.titleId,...r,ref:t})});ks.displayName=Os;var As=`DialogDescription`,js=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ds(As,n);return(0,F.jsx)(Zi.p,{id:i.descriptionId,...r,ref:t})});js.displayName=As;var Ms=`DialogClose`,Ns=P.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ds(Ms,n);return(0,F.jsx)(Zi.button,{type:`button`,...r,ref:t,onClick:W(e.onClick,()=>i.onOpenChange(!1))})});Ns.displayName=Ms;function Ps(e){return e?`open`:`closed`}function Fs({...e}){return(0,F.jsx)(fs,{"data-slot":`sheet`,...e})}function Is({...e}){return(0,F.jsx)(vs,{"data-slot":`sheet-portal`,...e})}function Ls({className:e,...t}){return(0,F.jsx)(bs,{"data-slot":`sheet-overlay`,className:H(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,e),...t})}function Rs({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,F.jsxs)(Is,{children:[(0,F.jsx)(Ls,{}),(0,F.jsxs)(ws,{"data-slot":`sheet-content`,className:H(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500`,n===`right`&&`inset-y-0 right-0 h-full w-3/4 shadow-[-12px_0_32px_-12px_rgba(0,0,0,0.4)] data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`,n===`left`&&`inset-y-0 left-0 h-full w-3/4 shadow-[12px_0_32px_-12px_rgba(0,0,0,0.4)] data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,n===`top`&&`inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,n===`bottom`&&`inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,e),...i,children:[t,r&&(0,F.jsxs)(Ns,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,F.jsx)(Pn,{className:`size-4`}),(0,F.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function zs({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sheet-header`,className:H(`flex flex-col gap-1.5 p-4`,e),...t})}function Bs({className:e,...t}){return(0,F.jsx)(ks,{"data-slot":`sheet-title`,className:H(`font-semibold text-foreground`,e),...t})}function Vs({className:e,...t}){return(0,F.jsx)(js,{"data-slot":`sheet-description`,className:H(`text-sm text-muted-foreground`,e),...t})}var Hs=`16rem`,Us=`3.25rem`,Ws=`18rem`,Gs=`b`,Ks=P.createContext(null);function qs(){let[e,t]=P.useState(!1);return P.useEffect(()=>{let e=window.matchMedia(`(max-width: 767px)`),n=()=>t(window.innerWidth<768);return e.addEventListener(`change`,n),t(window.innerWidth<768),()=>e.removeEventListener(`change`,n)},[]),e}function Js({defaultOpen:e=!0,className:t,style:n,children:r,...i}){let a=qs(),[o,s]=P.useState(!1),[c,l]=P.useState(e),u=P.useCallback(e=>{qn(e),l(e)},[]),d=P.useCallback(()=>a?s(e=>!e):u(!c),[a,c,u]);P.useEffect(()=>{let e=e=>{e.key===Gs&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),d())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[d]);let f=c?`expanded`:`collapsed`,p=P.useMemo(()=>({state:f,open:c,setOpen:u,isMobile:a,openMobile:o,setOpenMobile:s,toggleSidebar:d}),[f,c,u,a,o,d]);return(0,F.jsx)(Ks.Provider,{value:p,children:(0,F.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":Hs,"--sidebar-width-icon":Us,...n},className:H(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar rtl:flex-row-reverse`,t),...i,children:r})})}function Ys(){let e=P.useContext(Ks);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Xs({side:e=`left`,variant:t=`sidebar`,className:n,children:r,...i}){let{isMobile:a,state:o,openMobile:s,setOpenMobile:c}=Ys();return a?(0,F.jsx)(Fs,{open:s,onOpenChange:c,...i,children:(0,F.jsxs)(Rs,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) glass-strip p-0 text-sidebar-foreground [&>button]:hidden`,style:{"--sidebar-width":Ws},side:e,showCloseButton:!1,children:[(0,F.jsxs)(zs,{className:`sr-only`,children:[(0,F.jsx)(Bs,{children:`Sidebar`}),(0,F.jsx)(Vs,{children:`Displays the mobile sidebar.`})]}),(0,F.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:r})]})}):(0,F.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-state":o,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,F.jsx)(`div`,{"data-slot":`sidebar-gap`,className:`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 group-data-[state=collapsed]:w-(--sidebar-width-icon)`}),(0,F.jsx)(`div`,{"data-slot":`sidebar-container`,className:H(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[width] duration-200 md:flex group-data-[state=collapsed]:w-(--sidebar-width-icon)`,e===`left`?`left-0`:`right-0`,t===`inset`?`p-2`:``,n),...i,children:(0,F.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`glass-strip flex h-full w-full flex-col`,children:r})})]})}function Zs({className:e,onClick:t,...n}){let{toggleSidebar:r}=Ys();return(0,F.jsxs)(U,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:H(`size-7`,e),onClick:e=>{t?.(e),r()},...n,children:[(0,F.jsx)(an,{}),(0,F.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function Qs({className:e,...t}){return(0,F.jsx)(`main`,{"data-slot":`sidebar-inset`,className:H(`relative flex w-full min-w-0 flex-1 flex-col overflow-x-clip bg-background`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm rtl:md:peer-data-[variant=inset]:ml-2 rtl:md:peer-data-[variant=inset]:mr-0`,e),...t})}function $s({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:H(`flex flex-col gap-2 p-2`,e),...t})}function ec({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:H(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto`,e),...t})}function tc({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:H(`flex flex-col gap-2 p-2`,e),...t})}function nc({className:e,...t}){return(0,F.jsx)(`hr`,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:H(`mx-4 my-1 h-px w-auto border-0`,`bg-linear-to-r from-transparent via-[color-mix(in_srgb,var(--primary)_24%,transparent)] to-transparent`,`opacity-70 dark:via-[color-mix(in_srgb,var(--palette-teal-light)_18%,transparent)]`,e),...t})}function rc({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:H(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function ic({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:H(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70`,e),...t})}function ac({className:e,...t}){return(0,F.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:H(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function oc({className:e,...t}){return(0,F.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:H(`group/menu-item relative`,e),...t})}var sc=Qn(`peer/menu-button relative flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm`}},defaultVariants:{size:`default`}});function cc({asChild:e=!1,isActive:t=!1,size:n=`default`,className:r,...i}){return(0,F.jsx)(e?rr:`button`,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":n,"data-active":t,className:H(sc({size:n}),r),...i})}function lc({className:e,...t}){return(0,F.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:H(`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 rtl:-translate-x-px rtl:border-l-0 rtl:border-r`,e),...t})}function uc({className:e,...t}){return(0,F.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:H(`group/menu-sub-item relative`,e),...t})}function dc({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){return(0,F.jsx)(e?rr:`a`,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:H(`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,`rtl:translate-x-px`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,r),...i})}var fc=`/admin/api`,pc=class extends Error{status;body;constructor(e,t,n){super(e),this.status=t,this.body=n,this.name=`ApiError`}};async function mc(e,t){let n=await fetch(`${fc}${e}`,{credentials:`same-origin`,...t,headers:{Accept:`application/json`,...t?.headers??{}}}),r=await n.text(),i=null;if(r)try{i=JSON.parse(r)}catch{i=r}if(!n.ok)throw new pc(`${n.status} ${n.statusText}`,n.status,i);return i}var q={get:e=>mc(e),post:(e,t)=>mc(e,hc(`POST`,t)),patch:(e,t)=>mc(e,hc(`PATCH`,t)),delete:e=>mc(e,{method:`DELETE`})};function hc(e,t){return{method:e,headers:{"Content-Type":`application/json`},body:t===void 0?void 0:JSON.stringify(t)}}function gc(e,t,n){if(e==null)return null;if(typeof e==`string`)return e;if(Object.prototype.hasOwnProperty.call(e,t))return e[t];if(n&&Object.prototype.hasOwnProperty.call(e,n))return e[n];let r=Object.keys(e)[0];return r===void 0?null:e[r]}function _c(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/[_-]+/g,` `).replace(/\b\w/g,e=>e.toUpperCase())}function vc(e,t,n,r){return gc(t?.title,n,r)??_c(e)}function yc(e,t,n){return gc(e?.description,t,n)??void 0}function bc(){return{queryKey:[`views-manifest`],queryFn:async()=>(await q.get(`/views-manifest`)).views}}function xc(){return{queryKey:[`operations`],queryFn:async()=>(await q.get(`/operations`)).operations}}var Sc=[`draft`,`review`,`published`,`archived`],Cc=[`draft`,`published`,`archived`],wc=P.createContext(null);function Tc(){return typeof window>`u`?{pathname:`/admin`,search:``}:{pathname:window.location.pathname,search:window.location.search}}function Ec(e){if(typeof window>`u`)return!1;let t=new URL(e,window.location.href);return!(t.origin!==window.location.origin||!t.pathname.startsWith(`/admin`)||t.pathname.startsWith(`/admin/api/`)||t.pathname.startsWith(`/admin/auth/`)||t.pathname===`/admin/logout`)}function Dc({children:e}){let[t,n]=P.useState(Tc),r=P.useCallback((e,t={})=>{if(typeof window>`u`)return;let r=new URL(e,window.location.href),i=`${r.pathname}${r.search}${r.hash}`;i!==`${window.location.pathname}${window.location.search}${window.location.hash}`&&(t.replace?window.history.replaceState(null,``,i):window.history.pushState(null,``,i));let a={pathname:r.pathname,search:r.search};(0,Xi.flushSync)(()=>n(a))},[]);P.useEffect(()=>{let e=()=>n(Tc());return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[]),P.useEffect(()=>{let e=e=>{if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=e.target;if(!(t instanceof Element))return;let n=t.closest(`a[href]`);n instanceof HTMLAnchorElement&&(n.target&&n.target!==`_self`||n.hasAttribute(`download`)||Ec(n.href)&&(e.preventDefault(),r(n.href)))};return document.addEventListener(`click`,e,{capture:!0}),()=>document.removeEventListener(`click`,e,{capture:!0})},[r]);let i=P.useMemo(()=>({location:t,navigate:r}),[t,r]);return(0,F.jsx)(wc.Provider,{value:i,children:e})}function Oc(){let e=P.useContext(wc);if(!e)throw Error(`useAdminRouter must be used inside AdminRouterProvider.`);return e}function kc(){return Oc().location}var Ac=[{value:`en`,label:`English`,nativeLabel:`English`,htmlLang:`en`,direction:`ltr`},{value:`de`,label:`German`,nativeLabel:`Deutsch`,htmlLang:`de`,direction:`ltr`},{value:`es`,label:`Spanish`,nativeLabel:`Español`,htmlLang:`es`,direction:`ltr`},{value:`fr`,label:`French`,nativeLabel:`Français`,htmlLang:`fr`,direction:`ltr`},{value:`it`,label:`Italian`,nativeLabel:`Italiano`,htmlLang:`it`,direction:`ltr`},{value:`ja`,label:`Japanese`,nativeLabel:`日本語`,htmlLang:`ja`,direction:`ltr`},{value:`ko`,label:`Korean`,nativeLabel:`한국어`,htmlLang:`ko`,direction:`ltr`},{value:`pt-BR`,label:`Portuguese (Brazil)`,nativeLabel:`Português (BR)`,htmlLang:`pt-BR`,direction:`ltr`},{value:`ru`,label:`Russian`,nativeLabel:`Русский`,htmlLang:`ru`,direction:`ltr`},{value:`zh-CN`,label:`Simplified Chinese`,nativeLabel:`简体中文`,htmlLang:`zh-Hans-CN`,direction:`ltr`},{value:`zh-TW`,label:`Traditional Chinese`,nativeLabel:`繁體中文`,htmlLang:`zh-Hant-TW`,direction:`ltr`},{value:`id`,label:`Indonesian`,nativeLabel:`Bahasa Indonesia`,htmlLang:`id`,direction:`ltr`},{value:`nl`,label:`Dutch`,nativeLabel:`Nederlands`,htmlLang:`nl`,direction:`ltr`},{value:`pl`,label:`Polish`,nativeLabel:`Polski`,htmlLang:`pl`,direction:`ltr`},{value:`tr`,label:`Turkish`,nativeLabel:`Türkçe`,htmlLang:`tr`,direction:`ltr`},{value:`vi`,label:`Vietnamese`,nativeLabel:`Tiếng Việt`,htmlLang:`vi`,direction:`ltr`},{value:`cs`,label:`Czech`,nativeLabel:`Čeština`,htmlLang:`cs`,direction:`ltr`},{value:`uk`,label:`Ukrainian`,nativeLabel:`Українська`,htmlLang:`uk`,direction:`ltr`},{value:`ar`,label:`Arabic`,nativeLabel:`العربية`,htmlLang:`ar`,direction:`rtl`},{value:`he`,label:`Hebrew`,nativeLabel:`עברית`,htmlLang:`he`,direction:`rtl`},{value:`fa`,label:`Persian`,nativeLabel:`فارسی`,htmlLang:`fa`,direction:`rtl`},{value:`th`,label:`Thai`,nativeLabel:`ไทย`,htmlLang:`th`,direction:`ltr`}],jc=`cms.preference.language`,Mc=`cms.preference.direction`,Nc=`cms.preference.theme`,Pc=`cms.theme`,Fc=P.createContext(null);function Ic({children:e}){let[t,n]=P.useState(Lc),[r,i]=P.useState(()=>Rc(Lc())),[a,o]=P.useState(zc),s=P.useCallback(e=>{let t=Wc(e);Vc(jc,e),Vc(Mc,t),n(e),i(t)},[]),c=P.useCallback(e=>{Vc(Mc,e),i(e)},[]),l=P.useCallback(e=>{Vc(Nc,e),Vc(Pc,e),o(e)},[]);P.useEffect(()=>{document.documentElement.lang=Ac.find(e=>e.value===t)?.htmlLang??`en`,document.documentElement.dir=r},[t,r]),P.useEffect(()=>{let e=()=>{let e=typeof matchMedia<`u`&&matchMedia(`(prefers-color-scheme: dark)`).matches;document.documentElement.classList.toggle(`dark`,a===`dark`||a===`system`&&e)};if(e(),a!==`system`||typeof matchMedia>`u`)return;let t=matchMedia(`(prefers-color-scheme: dark)`);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},[a]);let u=P.useMemo(()=>({language:t,direction:r,theme:a,setLanguage:s,setDirection:c,setTheme:l}),[t,r,a,s,c,l]);return(0,F.jsx)(Fc.Provider,{value:u,children:e})}function J(){let e=P.useContext(Fc);if(!e)throw Error(`usePreferences must be used inside PreferencesProvider.`);return e}function Lc(){let e=Bc(jc);if(Hc(e))return e;if(typeof navigator>`u`)return`en`;for(let e of navigator.languages??[]){let t=Uc(e);if(t!==`en`||e.toLowerCase().startsWith(`en`))return t}return Uc(navigator.language)}function Rc(e){let t=Bc(Mc);return t===`rtl`||t===`ltr`?t:Wc(e)}function zc(){let e=Bc(`cms.preference.theme`)??Bc(Pc);return e===`light`||e===`dark`||e===`system`?e:`system`}function Bc(e){try{return localStorage.getItem(e)}catch{return null}}function Vc(e,t){try{localStorage.setItem(e,t)}catch{}}function Hc(e){return Ac.some(t=>t.value===e)}function Uc(e){let t=(e??``).toLowerCase();if(t===`zh-tw`||t===`zh-hant`||t.startsWith(`zh-hant`))return`zh-TW`;if(t===`zh-cn`||t===`zh-hans`||t.startsWith(`zh-hans`))return`zh-CN`;if(t.startsWith(`pt-br`)||t===`pt`)return`pt-BR`;let n=t.split(`-`)[0];return n===`ar`?`ar`:n===`cs`?`cs`:n===`de`?`de`:n===`es`?`es`:n===`fa`?`fa`:n===`fr`?`fr`:n===`he`||n===`iw`?`he`:n===`id`?`id`:n===`it`?`it`:n===`ja`?`ja`:n===`ko`?`ko`:n===`nl`?`nl`:n===`pl`?`pl`:n===`pt`?`pt-BR`:n===`ru`?`ru`:n===`th`?`th`:n===`tr`?`tr`:n===`uk`?`uk`:n===`vi`?`vi`:n===`zh`?`zh-TW`:`en`}function Wc(e){return Ac.find(t=>t.value===e)?.direction??`ltr`}var Gc=`@aotter/mantle`,Kc=`0.0.11-alpha.46`,qc=`https://www.npmjs.com/package/@aotter/mantle`,Jc=`https://github.com/aotter/mantle`,Yc=`M62.27,18.91c-24.86,0-45.09,20.23-45.09,45.09s20.23,45.09,45.09,45.09,45.09-20.23,45.09-45.09-20.23-45.09-45.09-45.09ZM65.07,102.86v-18.98h5.49c1.26,0,2.29-1.03,2.29-2.29v-4.47h11.6c1.26,0,2.29-1.03,2.29-2.29v-20.57c0-1.26-1.03-2.29-2.29-2.29h-5.13v-12.73c0-1.55-1.26-2.8-2.8-2.8s-2.8,1.26-2.8,2.8v12.73h-22.89v-12.73c0-1.55-1.26-2.8-2.81-2.8s-2.8,1.26-2.8,2.8v12.73h-5.13c-1.26,0-2.29,1.03-2.29,2.29v20.57c0,1.26,1.03,2.29,2.29,2.29h11.6v4.47c0,1.26,1.03,2.29,2.29,2.29h5.49v18.98c-20.32-1.45-36.16-18.42-36.16-38.86,0-21.49,17.48-38.97,38.97-38.97s38.97,17.48,38.97,38.97-15.84,37.42-36.16,38.86ZM41.89,73.03v-16.96h14.46c1.94,2.28,5.02,5.87,5.11,5.97.19.19.39.23.52.23s.34-.04.54-.25c.07-.06,1.33-1.44,4.33-4.69.4-.44.8-.87,1.17-1.26h14.63v16.96h-40.75ZM55.78,79.79v-3.15h12.98v3.15h-12.98Z`;function Xc(e){switch(e){case`brand`:return`text-[#1a3062]`;case`black`:return`text-[#040000]`;case`white`:return`text-white`;default:return`text-current`}}function Zc({className:e,title:t,tone:n=`current`}){return(0,F.jsxs)(`svg`,{viewBox:`0 0 128 128`,role:t?`img`:void 0,"aria-hidden":!t||void 0,className:H(Xc(n),e),children:[t?(0,F.jsx)(`title`,{children:t}):null,(0,F.jsx)(`path`,{fill:`currentColor`,d:Yc})]})}function Qc(){return(0,F.jsxs)(`div`,{className:H(`fixed bottom-3 end-3 z-30 hidden items-center gap-2 rounded-full`,`border border-border/60 bg-background/65 px-2.5 py-1.5 text-xs`,`text-muted-foreground shadow-[var(--glass-shadow)] backdrop-blur-md md:flex`),children:[(0,F.jsx)(Zc,{className:`size-4 text-primary`}),(0,F.jsx)(`a`,{href:qc,target:`_blank`,rel:`noreferrer`,className:`font-medium text-foreground/80 hover:text-primary`,children:Gc}),(0,F.jsx)(`span`,{"aria-hidden":!0,children:`·`}),(0,F.jsx)(`a`,{href:Jc,target:`_blank`,rel:`noreferrer`,className:`hover:text-primary`,children:`GitHub`}),(0,F.jsxs)(`span`,{"aria-label":`version ${Kc}`,children:[`v`,Kc]})]})}var $c={en:{"admin.consoleTitle":`Admin console`,"auth.accessDenied.title":`Access denied`,"auth.accessDenied.noStaff":`You're signed in, but this account isn't on the admin staff list.`,"auth.accessDenied.askOwner":`Ask a site owner to add your GitHub login, or sign out to try a different account.`,"auth.error.title":`Something went wrong`,"auth.signIn.eyebrow":`AotterMantle admin`,"auth.signIn.title":`Sign in`,"auth.signIn.body":`Staff console. Access is gated by role after sign-in.`,"auth.signIn.methodsLoadFailed":`Couldn't load sign-in methods. Try refreshing.`,"auth.signIn.noMethods":`No sign-in methods are configured for this site.`,"auth.signIn.unknownMethod":`Unsupported sign-in method: {kind}.`,"auth.signIn.method.social.button":`Continue with {provider}`,"auth.signIn.method.oauth.button":`Continue with {provider}`,"auth.signIn.method.email-otp.body":`Sign in with a one-time code sent to your email.`,"auth.signIn.method.email-otp.emailLabel":`Email address`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`Send code`,"auth.signIn.method.email-otp.sendFailed":`Couldn't send the code. Check the email and try again.`,"auth.signIn.method.email-otp.sentTo":`We sent a code to {email}.`,"auth.signIn.method.email-otp.otpLabel":`One-time code`,"auth.signIn.method.email-otp.otpPlaceholder":`Enter the 6-digit code`,"auth.signIn.method.email-otp.verifyButton":`Verify and sign in`,"auth.signIn.method.email-otp.verifyFailed":`That code didn't match. Try again.`,"auth.signIn.method.email-otp.back":`Use a different email`,"auth.signIn.method.magic-link.body":`We'll email you a one-tap sign-in link.`,"auth.signIn.method.magic-link.emailLabel":`Email address`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`Send sign-in link`,"auth.signIn.method.magic-link.sendFailed":`Couldn't send the link. Check the email and try again.`,"auth.signIn.method.magic-link.sentTo":`We sent a sign-in link to {email}.`,"auth.signIn.method.magic-link.clickHint":`Click the link in the email to finish signing in. The link expires shortly.`,"auth.signIn.method.magic-link.anotherEmail":`Use a different email`,"common.signOut":`Sign out`,"common.viewSite":`View site`,"common.copy":`Copy`,"common.open":`Open`,"common.failedToLoad":`Failed to load`,"common.signedIn":`Signed in`,"console.eyebrow":`Owner console`,"console.description":`Manage {title}'s content and operations here. MCP-capable agents can work alongside you.`,"console.descriptionFallback":`Manage this site's content and operations here. MCP-capable agents can work alongside you.`,"console.agent.title":`Next: connect an agent`,"console.agent.body":`Give this Staff MCP URL to Claude Code, Codex, Cursor, or another MCP client. It will open a consent screen, then the agent can manage this site's content with your staff permission.`,"console.workspace.title":`Start editing here`,"console.workspace.body":`Your content collections, pages, and settings are all editable from this console. Pick a common action to begin.`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`Public URL`,"console.loop.title":`Operational loop`,"console.loop.body":`Ask your content agent to list entries, create drafts, publish, unpublish, or adjust copy. Then refresh this console if you want a human-readable inventory.`,"console.onboarding.title":`Guided setup`,"console.onboarding.body":`A first-run overlay will guide new owners through editing content, checking media, and publishing.`,"console.onboarding.step1":`Review the seeded products and homepage sections.`,"console.onboarding.step2":`Edit copy with the rich editor inside the relevant entry.`,"console.onboarding.step3":`Preview the storefront, then publish the change.`,"console.loop.step1":`Open the public site and inspect the result.`,"console.loop.step2":`Connect a second agent through MCP.`,"console.loop.step3":`Tell the agent what content or workflow to change.`,"console.collections.eyebrow":`Content model`,"console.collections.title":`Content lists`,"console.collections.body":`All of this site's content collections are listed here. Translated content is merged into its main entry.`,"console.collections.emptyTitle":`No collections defined yet`,"console.collections.emptyBody":`No data collections yet. Start from a template, or ask your agent to create the first one.`,"console.collections.noDescription":`No description.`,"collection.breadcrumb":`Collections`,"collection.create":`New entry`,"collection.defaultDescription":`Entries in this collection.`,"collection.schemaSummary":`Manage items, publishing state, and localized content for {name}.`,"collection.schemaDetails":`Schema notes`,"collection.searchPlaceholder":`Search title, id, status...`,"collection.filter.all":`All`,"collection.empty.title":`No entries yet`,"collection.empty.search":`No entries matched “{search}”.`,"collection.empty.withStatus":`No {status} entries in this collection.`,"collection.empty.all":`This collection has no entries yet.`,"collection.refreshing":`Updating the list...`,"collection.loadMore":`Load more`,"collection.export":`Export CSV`,"collection.copyId":`Copy full ID`,"collection.table.id":`ID`,"collection.table.title":`Title`,"collection.table.status":`Status`,"collection.table.locale":`Locale`,"collection.table.version":`Version`,"collection.table.updated":`Updated`,"collection.table.actions":`Actions`,"collection.table.selectAll":`Select all rows on this page`,"collection.table.selectRow":`Select {name}`,"collection.actions.label":`Collection actions`,"rowActions.menuLabel":`Row operations`,"rowActions.cancel":`Cancel`,"collection.untitled":`(untitled)`,"collection.bulk.selectedCount":`{count} selected`,"collection.bulk.publish":`Publish`,"collection.bulk.unpublish":`Unpublish`,"collection.bulk.delete":`Delete`,"collection.bulk.deleteConfirm":`Delete {count} selected entries? This cannot be undone.`,"crud.create":`Add`,"crud.edit":`Edit`,"crud.search":`Search`,"crud.delete":`Delete`,"crud.createTooltip":`Create a new {name} entry.`,"crud.editTooltip":`Edit {name}.`,"crud.searchTooltip":`Search {name}.`,"crud.deleteTooltip":`Delete {name}.`,"crud.duplicateTooltip":`Duplicate {name}.`,"crud.saveTitle":`Save title`,"crud.cancelTitle":`Cancel editing`,"crud.deleteConfirm":`Delete {name}? This cannot be undone.`,"crud.saving":`Saving...`,"crud.duplicating":`Duplicating...`,"crud.deleting":`Deleting...`,"entryEdit.back":`Back to {name}`,"entryEdit.body":`Edit this {name} entry. Related records show up alongside automatically.`,"entryEdit.parent":`Parent: {name}`,"entryEdit.save":`Save changes`,"entryEdit.saveTooltip":`Save this entry.`,"entryEdit.fields":`Entry fields`,"entryEdit.meta":`Entry details`,"entryEdit.related":`Related entries`,"entryEdit.noRelated":`No child collections were inferred for this entry.`,"entryEdit.noChildEntries":`No child entries match this entry yet.`,"entryEdit.relationship":`Joined by {child} from parent {parent}.`,"entryEdit.addItem":`Add item`,"entryEdit.removeItem":`Remove item`,"entryEdit.emptyOption":`No value`,"entryEdit.boolean":`Enabled`,"entryEdit.operationalHint":`System-written record — edits may be overwritten by the next sync.`,"entryEdit.publish":`Publish`,"entryEdit.publishing":`Publishing...`,"entryEdit.publishTooltip":`Publish this draft.`,"entryEdit.publishDisabledDirty":`Save changes before publishing.`,"entryEdit.unpublish":`Unpublish`,"entryEdit.unpublishing":`Unpublishing...`,"entryEdit.unpublishTooltip":`Move this entry back to draft so it can be edited.`,"entryEdit.uploadMedia":`Upload`,"entryEdit.uploadingMedia":`Uploading...`,"entryEdit.noMediaPurpose":`No media upload purpose is configured.`,"settings.page.title":`Store settings`,"settings.page.body":`Manage site-level brand copy and default service information used across the storefront.`,"settings.tabsLabel":`Store settings sections`,"settings.tab.brand":`Brand`,"settings.tab.tracking":`Tracking`,"settings.brandSection":`Brand and service`,"settings.brandSectionBody":`Default site copy shared across generated pages.`,"settings.siteBrand":`Site brand`,"settings.siteTitle":`Site title`,"settings.siteDescription":`Site description`,"settings.trackingSection":`Tracking codes`,"settings.trackingSectionBody":`Fill in analytics IDs and Mantle will inject the matching tracking scripts into generated storefront pages.`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`Use the ID only, for example G-XXXXXXXXXX. Do not paste the whole gtag script.`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`Use the numeric Pixel ID only. Mantle will generate the base Pixel code.`,"guide.title":`Your store admin is ready`,"guide.body":`Use this guided flow to understand where editing happens before you ask an agent to make larger changes.`,"guide.step1":`Open Products and confirm the seeded storefront items.`,"guide.step2":`Use Add, Edit, Search, or Delete from the collection page.`,"guide.step3":`Preview the public site, then keep refining with the rich editor inside each content area.`,"guide.close":`Close guide`,"guide.open":`Guide`,"guide.next":`Next`,"guide.prev":`Previous`,"guide.finish":`Finish`,"guide.collections.title":`Start with your content`,"guide.collections.body":`Open your first collection to manage its entries, statuses, and localized copy.`,"guide.filters.title":`Filter publishing states`,"guide.filters.body":`Switch between all, draft, published, and archived entries without leaving the list.`,"guide.actions.title":`Edit from the list`,"guide.actions.body":`Use the row actions to edit an entry or remove it from the site.`,"guide.reopen.title":`Reopen this guide anytime`,"guide.reopen.body":`The guide button stays in the status bar, so users can turn this walkthrough on again whenever they need it.`,"nav.home":`Home`,"nav.content":`Content`,"nav.operations":`Records`,"nav.editor":`Editor`,"nav.media":`Media library`,"nav.more":`More`,"nav.approvals":`Approvals`,"nav.settings":`Settings`,"nav.staff":`Staff`,"nav.ops":`Operations`,"nav.reports":`Reports`,"ops.page.title":`Operations`,"ops.page.body":`Run site operations here. Fill in the fields and press Run — the result shows up right below.`,"ops.run":`Run`,"ops.running":`Running...`,"ops.result.title":`Result`,"ops.error.title":`Error`,"ops.empty.title":`No staff operations are exposed yet`,"ops.empty.body":`No operations are available yet. Once your site's config opens an operation to staff, its form appears here automatically.`,"ops.triggers.mcp":`MCP`,"ops.triggers.http":`HTTP`,"views.page.title":`View`,"views.page.body":`A read-only report over {schema}.`,"views.params.title":`Parameters`,"views.run":`Query`,"views.running":`Querying...`,"views.empty.title":`No rows`,"views.empty.body":`No data under the current filters.`,"views.notFound.title":`View not found`,"staff.page.title":`Staff`,"staff.page.body":`Invite staff by email, assign roles, and revoke pending invitations. Only owners can see this page.`,"staff.invite.title":`Invite staff`,"staff.invite.emailLabel":`Email address`,"staff.invite.emailPlaceholder":`teammate@example.com`,"staff.invite.roleLabel":`Role`,"staff.invite.button":`Invite`,"staff.invite.sending":`Inviting…`,"staff.invite.revoke":`Revoke`,"staff.invite.hint":`Invitees sign in at /admin/sign-in with the invited email (magic link, email code, or a social account on the same address) and land with their role already in effect.`,"staff.table.name":`Name`,"staff.table.email":`Email`,"staff.table.status":`Status / sign-in`,"staff.table.role":`Role`,"staff.role.owner":`Owner`,"staff.role.editor":`Editor`,"staff.role.contributor":`Contributor`,"staff.role.none":`No role`,"staff.badge.invited":`Invited`,"staff.status.emailSignIn":`Email sign-in`,"staff.self":`you`,"status.draft":`Drafts`,"status.review":`In Review`,"status.published":`Published`,"status.archived":`Archived`,"preferences.heading":`Preferences`,"preferences.language":`Admin language`,"preferences.language.search":`Search languages...`,"preferences.language.noResults":`No languages found.`,"preferences.direction":`Text direction`,"preferences.direction.auto":`Text direction follows the selected language.`,"preferences.appearance":`Appearance`,"preferences.light":`Light`,"preferences.dark":`Dark`,"preferences.system":`System`,"preferences.ltr":`Left to right`,"preferences.rtl":`Right to left`,"preferences.page.title":`Personal preferences`,"preferences.page.body":`These preferences stay on this browser. They change the admin console only and do not modify site settings.`,"preferences.page.languageBody":`Choose the language used by system pages and admin chrome.`,"preferences.page.appearanceBody":`Choose light, dark, or follow your operating system.`,"preferences.page.open":`Preferences`,"settings.planned.title":`Settings are not wired yet`,"settings.planned.body":`Settings are for values persisted to the site, such as site config. Preferences stay local to this browser.`,"system.notFound.title":`Not found`,"system.notFound.plannedTitle":`Not wired yet`,"system.notFound.body":`No view registered for`,"system.notFound.back":`Back to home`,"editor.page.title":`Content editor`,"editor.page.body":`Draft copy in Markdown, HTML, or rich text before handing it to an agent or publishing workflow.`,"editor.mode.markdown":`Markdown`,"editor.mode.html":`HTML`,"editor.mode.rich":`Rich editor`,"editor.titleLabel":`Title`,"editor.slugLabel":`Slug`,"editor.bodyLabel":`Body`,"editor.preview":`Preview`,"editor.insertBlock":`Insert block`,"editor.saveDraft":`Save draft`,"editor.markdownHint":`Supports headings, lists, links, and fenced code blocks.`,"editor.htmlHint":`Edit trusted HTML fragments with a plain source view.`,"editor.richHint":`Format sections, callouts, and copy without touching markup.`,"editor.toolbar":`Rich editor toolbar`,"editor.undo":`Undo`,"editor.redo":`Redo`,"editor.aiClean":`Insert callout`,"editor.uploadImage":`Upload image`,"editor.uploading":`Uploading image...`,"editor.textStyle":`Text style`,"editor.headingPlaceholder":`Heading`,"editor.decreaseFont":`Decrease font size`,"editor.increaseFont":`Increase font size`,"editor.selectedText":`selected text`,"editor.bold":`Bold`,"editor.italic":`Italic`,"editor.underline":`Underline`,"editor.strike":`Strikethrough`,"editor.inlineCode":`Inline code`,"editor.textColor":`Text color`,"editor.highlight":`Highlight`,"editor.palette":`Brand color`,"editor.alignLeft":`Align left`,"editor.alignCenter":`Align center`,"editor.alignRight":`Align right`,"editor.bulletList":`Bullet list`,"editor.numberList":`Numbered list`,"editor.checkList":`Checklist`,"editor.indent":`Indent`,"editor.link":`Link`,"editor.linkText":`link text`,"editor.table":`Table`,"editor.emoji":`Emoji`,"editor.mediaLibrary":`Media library`,"editor.imageUrl":`Image URL`,"editor.insertImage":`Insert image`,"editor.videoUrl":`YouTube / Dailymotion URL`,"editor.insertVideo":`Insert video`,"editor.audioHint":`Audio embed`,"media.alt":`Alt text`,"media.title":`Media library`,"media.description":`Every image uploaded to this site. Reuse one in an entry, tidy up its alt text, or remove it.`,"media.upload":`Upload`,"media.uploading":`Uploading...`,"media.dropHere":`Drop images here to upload`,"media.searchPlaceholder":`Search alt text, caption, or id`,"media.empty.title":`No images yet`,"media.empty.all":`Upload an image to start building the library.`,"media.empty.search":`No images match “{search}”.`,"media.noPurpose":`No upload purpose is configured for this site, so uploads are disabled.`,"media.caption":`Caption`,"media.altPlaceholder":`Describe this image`,"media.captionPlaceholder":`Optional caption`,"media.save":`Save`,"media.saving":`Saving...`,"media.saved":`Saved`,"media.delete":`Delete`,"media.deleteConfirm":`Delete this image? It will be removed everywhere it is used.`,"media.open":`Open original`,"media.copyId":`Copy id`,"media.uploaded":`Uploaded {date}`,"media.pick":`Choose from library`,"media.pickTitle":`Choose an image`,"media.pickDescription":`Pick an existing image to reuse, or upload a new one.`,"media.use":`Use this image`,"media.uploadNew":`Upload new`,"media.loadMore":`Load more`,"media.uploadFailed":`{count} of {total} uploads failed.`,"media.encoderUnsupported":`This site's media policy requires an image format this browser cannot produce ({mime}). Contact the site developer to update the policy.`,"approvals.title":`Approvals`,"approvals.body":`Review editorial entries that are waiting for approval before they go live.`,"approvals.emptyTitle":`Nothing is waiting for review`,"approvals.emptyBody":`Entries submitted for review will appear here by collection.`,"approvals.groupBody":`{count} entries are currently marked {status}.`,"approvals.openCollection":`Open collection`,"approvals.reviewEntry":`Review`,"ops.error.executionFailed":`The operation ran but failed to complete.`,"ops.error.detailsLabel":`Show details`,"ops.success":`{name} completed.`,"confirm.title":`Are you sure?`,"confirm.cancel":`Cancel`,"confirm.confirm":`Confirm`,"collection.schemaSummary.lifecycleAndI18n":`Manage items, publishing state, and localized content for {name}.`,"collection.schemaSummary.lifecycleOnly":`Manage items and publishing state for {name}.`,"collection.schemaSummary.i18nOnly":`Manage items and localized content for {name}.`,"collection.schemaSummary.plain":`Manage items for {name}.`,"entryEdit.mediaMissing":`This image is missing or was deleted.`,"field.hint.moneyMinor":`amount (minor units)`,"field.hint.timestampMs":`timestamp (ms)`},"zh-TW":{"admin.consoleTitle":`管理後台`,"auth.accessDenied.title":`無法存取`,"auth.accessDenied.noStaff":`你已登入,但這個帳號不在 admin staff 清單內。`,"auth.accessDenied.askOwner":`請網站 owner 加入你的 GitHub login,或登出改用其他帳號。`,"auth.error.title":`發生錯誤`,"auth.signIn.eyebrow":`AotterMantle 後台`,"auth.signIn.title":`登入`,"auth.signIn.body":`Staff 後台。登入後依角色決定能用的範圍。`,"auth.signIn.methodsLoadFailed":`讀取登入方式失敗,請重新整理頁面。`,"auth.signIn.noMethods":`這個站台還沒設定任何登入方式。`,"auth.signIn.unknownMethod":`不支援的登入方式:{kind}。`,"auth.signIn.method.social.button":`使用 {provider} 繼續`,"auth.signIn.method.oauth.button":`使用 {provider} 繼續`,"auth.signIn.method.email-otp.body":`輸入 email,我們會寄一次性驗證碼給你。`,"auth.signIn.method.email-otp.emailLabel":`電子郵件`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`寄送驗證碼`,"auth.signIn.method.email-otp.sendFailed":`驗證碼寄送失敗,請確認 email 後重試。`,"auth.signIn.method.email-otp.sentTo":`已寄驗證碼到 {email}。`,"auth.signIn.method.email-otp.otpLabel":`驗證碼`,"auth.signIn.method.email-otp.otpPlaceholder":`輸入 6 位驗證碼`,"auth.signIn.method.email-otp.verifyButton":`驗證並登入`,"auth.signIn.method.email-otp.verifyFailed":`驗證碼錯誤,請再試一次。`,"auth.signIn.method.email-otp.back":`用其他 email`,"auth.signIn.method.magic-link.body":`我們會寄一個一鍵登入連結給你。`,"auth.signIn.method.magic-link.emailLabel":`電子郵件`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`寄送登入連結`,"auth.signIn.method.magic-link.sendFailed":`連結寄送失敗,請確認 email 後重試。`,"auth.signIn.method.magic-link.sentTo":`已將登入連結寄到 {email}。`,"auth.signIn.method.magic-link.clickHint":`請點 email 裡的連結完成登入。連結很快會過期。`,"auth.signIn.method.magic-link.anotherEmail":`用其他 email`,"common.signOut":`登出`,"common.viewSite":`查看網站`,"common.copy":`複製`,"common.open":`開啟`,"common.failedToLoad":`載入失敗`,"common.signedIn":`已登入`,"console.eyebrow":`Owner console`,"console.description":`在這裡管理 {title} 的內容與營運資料。支援 MCP 的 agent 也能與你並行協作。`,"console.descriptionFallback":`在這裡管理這個網站的內容與營運資料。支援 MCP 的 agent 也能與你並行協作。`,"console.agent.title":`下一步:連接 agent`,"console.agent.body":`把這個 Staff MCP URL 交給 Claude Code、Codex、Cursor 或其他 MCP client。它會開啟 consent 畫面,授權後 agent 就能用你的 staff 權限管理網站內容。`,"console.workspace.title":`從這裡開始編輯`,"console.workspace.body":`你的內容 collection、頁面與設定都能在這個後台管理。先選一個常用操作開始。`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`公開網站 URL`,"console.loop.title":`營運閉環`,"console.loop.body":`你可以請內容 agent 列出 entries、建立草稿、發布、取消發布或調整文案。需要人工盤點時,再回這個 console 查看。`,"console.onboarding.title":`操作導覽`,"console.onboarding.body":`第一次進入後台時,會用 overlay 帶店主完成內容編輯、媒體檢查與發布。`,"console.onboarding.step1":`先檢查預設商品與首頁區塊。`,"console.onboarding.step2":`在對應的項目裡直接用 Rich Editor 修改內容。`,"console.onboarding.step3":`預覽前台,再發布變更。`,"console.loop.step1":`先打開公開網站檢查結果。`,"console.loop.step2":`透過 MCP 連接第二個 agent。`,"console.loop.step3":`用自然語言告訴 agent 要改內容或流程。`,"console.collections.eyebrow":`內容模型`,"console.collections.title":`內容清單`,"console.collections.body":`這裡列出網站的所有資料集合。翻譯內容會併入主項目顯示。`,"console.collections.emptyTitle":`尚未定義 collections`,"console.collections.emptyBody":`還沒有任何資料集合。可以從範本開始,或請你的 agent 建立第一個。`,"console.collections.noDescription":`沒有描述。`,"collection.breadcrumb":`內容清單`,"collection.create":`新增`,"collection.defaultDescription":`這個 collection 裡的 entries。`,"collection.schemaSummary":`管理 {name} 的項目、發布狀態與多語內容。`,"collection.schemaDetails":`Schema 說明`,"collection.searchPlaceholder":`搜尋標題、ID、狀態...`,"collection.filter.all":`全部`,"collection.empty.title":`目前沒有 entries`,"collection.empty.search":`沒有符合「{search}」的資料。`,"collection.empty.withStatus":`這個 collection 目前沒有 {status} entries。`,"collection.empty.all":`這個 collection 目前沒有 entries。`,"collection.refreshing":`清單更新中...`,"collection.loadMore":`載入更多`,"collection.export":`匯出 CSV`,"collection.copyId":`複製完整 ID`,"collection.table.id":`ID`,"collection.table.title":`標題`,"collection.table.status":`狀態`,"collection.table.locale":`語言`,"collection.table.version":`版本`,"collection.table.updated":`更新時間`,"collection.table.actions":`操作`,"collection.table.selectAll":`選取這一頁的所有項目`,"collection.table.selectRow":`選取 {name}`,"collection.actions.label":`內容操作`,"rowActions.menuLabel":`資料列操作`,"rowActions.cancel":`取消`,"collection.untitled":`(未命名)`,"collection.bulk.selectedCount":`已選取 {count} 筆`,"collection.bulk.publish":`發布`,"collection.bulk.unpublish":`下架`,"collection.bulk.delete":`刪除`,"collection.bulk.deleteConfirm":`刪除已選取的 {count} 筆資料?這個動作無法復原。`,"crud.create":`新增`,"crud.edit":`編輯`,"crud.search":`查詢`,"crud.delete":`刪除`,"crud.createTooltip":`新增一筆{name}。`,"crud.editTooltip":`編輯{name}。`,"crud.searchTooltip":`查詢{name}。`,"crud.deleteTooltip":`刪除{name}。`,"crud.duplicateTooltip":`複製{name}。`,"crud.saveTitle":`儲存標題`,"crud.cancelTitle":`取消編輯`,"crud.deleteConfirm":`確定要刪除{name}?這個動作無法復原。`,"crud.saving":`儲存中...`,"crud.duplicating":`複製中...`,"crud.deleting":`刪除中...`,"entryEdit.back":`回到 {name}`,"entryEdit.body":`編輯 {name} 的內容,相關資料會自動帶出。`,"entryEdit.parent":`父層:{name}`,"entryEdit.save":`儲存變更`,"entryEdit.saveTooltip":`儲存這筆資料。`,"entryEdit.fields":`資料欄位`,"entryEdit.meta":`資料資訊`,"entryEdit.related":`相關資料`,"entryEdit.noRelated":`目前沒有推導出這筆資料的子 collection。`,"entryEdit.noChildEntries":`目前沒有符合這筆資料的子資料。`,"entryEdit.relationship":`透過子欄位 {child} 對應父欄位 {parent}。`,"entryEdit.addItem":`新增項目`,"entryEdit.removeItem":`移除項目`,"entryEdit.emptyOption":`無值`,"entryEdit.boolean":`啟用`,"entryEdit.operationalHint":`系統寫入的資料——手動修改可能在下次同步時被覆蓋。`,"settings.page.title":`商店設定`,"settings.page.body":`管理全站品牌文案與預設服務資訊,讓商品與首頁可以共用。`,"settings.tabsLabel":`商店設定分頁`,"settings.tab.brand":`品牌`,"settings.tab.tracking":`追蹤碼`,"settings.brandSection":`品牌與服務`,"settings.brandSectionBody":`產生頁面時共用的預設站台文案。`,"settings.siteBrand":`網站品牌`,"settings.siteTitle":`網站標題`,"settings.siteDescription":`網站描述`,"settings.trackingSection":`追蹤碼`,"settings.trackingSectionBody":`填入 analytics ID 後,Mantle 會在產生的前台頁面自動埋入對應追蹤碼。`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`只需要填 ID,例如 G-XXXXXXXXXX,不要貼整段 gtag script。`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`只需要填數字 Pixel ID,Mantle 會產生標準 Pixel base code。`,"guide.title":`你的商店後台已經準備好了`,"guide.body":`先用這個導覽了解每個編輯入口,再交給 agent 做更大量的調整。`,"guide.step1":`打開商品清單,確認前台預設商品都有進後台。`,"guide.step2":`在 collection 頁使用新增、編輯、查詢或刪除。`,"guide.step3":`預覽公開網站,再在各內容區直接用 Rich Editor 持續調整。`,"guide.close":`關閉引導`,"guide.open":`使用者引導`,"guide.next":`下一步`,"guide.prev":`上一步`,"guide.finish":`完成`,"guide.collections.title":`從內容開始`,"guide.collections.body":`打開第一個 collection,管理裡面的項目、狀態與多語內容。`,"guide.filters.title":`切換發布狀態`,"guide.filters.body":`在清單上直接切換全部、草稿、已發布與已封存,不需要離開目前頁面。`,"guide.actions.title":`在清單裡直接操作`,"guide.actions.body":`用每列右側操作編輯項目,或從網站移除。`,"guide.reopen.title":`隨時重新打開引導`,"guide.reopen.body":`右上角會保留使用者引導按鈕,需要時可以再次開啟或關閉這套逐步導覽。`,"nav.home":`首頁`,"nav.content":`內容`,"nav.operations":`營運資料`,"nav.editor":`編輯器`,"nav.media":`媒體庫`,"nav.more":`更多`,"nav.approvals":`審核`,"nav.settings":`設定`,"nav.staff":`員工管理`,"nav.ops":`操作`,"nav.reports":`報表`,"ops.page.title":`操作`,"ops.page.body":`站務操作都在這裡。填好欄位、按執行,結果會直接顯示在下方。`,"ops.run":`執行`,"ops.running":`執行中...`,"ops.result.title":`結果`,"ops.error.title":`錯誤`,"ops.empty.title":`目前沒有開放給 staff 的操作`,"ops.empty.body":`目前沒有可用的操作。網站設定檔把操作開放給站務人員後,表單會自動出現在這裡。`,"ops.triggers.mcp":`MCP`,"ops.triggers.http":`HTTP`,"views.page.title":`報表`,"views.page.body":`{schema} 的唯讀報表。`,"views.params.title":`查詢參數`,"views.run":`查詢`,"views.running":`查詢中...`,"views.empty.title":`沒有資料`,"views.empty.body":`目前的條件下沒有資料。`,"views.notFound.title":`找不到這個 View`,"staff.page.title":`員工管理`,"staff.page.body":`以 email 邀請員工、指派角色、撤銷尚未使用的邀請。僅 owner 可見此頁。`,"staff.invite.title":`邀請員工`,"staff.invite.emailLabel":`Email`,"staff.invite.emailPlaceholder":`teammate@example.com`,"staff.invite.roleLabel":`角色`,"staff.invite.button":`建立邀請`,"staff.invite.sending":`邀請中…`,"staff.invite.revoke":`撤銷`,"staff.invite.hint":`受邀者到 /admin/sign-in 用受邀的 email 登入(magic link、email 驗證碼,或同信箱的社群帳號),登入時角色即已生效。`,"staff.table.name":`姓名`,"staff.table.email":`Email`,"staff.table.status":`狀態/登入方式`,"staff.table.role":`角色`,"staff.role.owner":`管理者`,"staff.role.editor":`編輯`,"staff.role.contributor":`協作者`,"staff.role.none":`無角色`,"staff.badge.invited":`邀請中`,"staff.status.emailSignIn":`Email 登入`,"staff.self":`你自己`,"status.draft":`草稿`,"status.review":`審核中`,"status.published":`已發布`,"status.archived":`已封存`,"preferences.heading":`偏好設定`,"preferences.language":`後台語言`,"preferences.language.search":`搜尋語言...`,"preferences.language.noResults":`找不到語言。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向會跟隨選擇的語言。`,"preferences.appearance":`外觀`,"preferences.light":`淺色`,"preferences.dark":`深色`,"preferences.system":`跟隨系統`,"preferences.ltr":`左到右`,"preferences.rtl":`右到左`,"preferences.page.title":`個人偏好`,"preferences.page.body":`這些偏好只保存在這個瀏覽器,只影響 admin console,不會改動站台設定。`,"preferences.page.languageBody":`選擇系統頁與 admin chrome 使用的語言。`,"preferences.page.appearanceBody":`選擇淺色、深色,或跟隨作業系統。`,"preferences.page.open":`個人偏好`,"settings.planned.title":`Settings 尚未接上`,"settings.planned.body":`Settings 是會寫進站台的資料,例如 site config。Preferences 則只保存在這個瀏覽器。`,"system.notFound.title":`找不到頁面`,"system.notFound.plannedTitle":`尚未接上`,"system.notFound.body":`沒有 view 註冊在`,"system.notFound.back":`回首頁`,"editor.page.title":`內容編輯器`,"editor.page.body":`在交給 agent 或發布流程之前,先用 Markdown、HTML 或 Rich Editor 編輯內容草稿。`,"editor.mode.markdown":`Markdown`,"editor.mode.html":`HTML`,"editor.mode.rich":`Rich Editor`,"editor.titleLabel":`標題`,"editor.slugLabel":`Slug`,"editor.bodyLabel":`本文`,"editor.preview":`預覽`,"editor.insertBlock":`插入區塊`,"editor.saveDraft":`儲存草稿`,"editor.markdownHint":`支援標題、清單、連結與 fenced code blocks。`,"editor.htmlHint":`用原始碼模式編輯可信任的 HTML 片段。`,"editor.richHint":`不碰 markup 也能整理段落、提示框與內文。`,"editor.toolbar":`Rich Editor 工具列`,"editor.undo":`復原`,"editor.redo":`重做`,"editor.aiClean":`插入提示區塊`,"editor.uploadImage":`上傳圖片`,"editor.uploading":`圖片上傳中...`,"editor.textStyle":`文字樣式`,"editor.headingPlaceholder":`標題`,"editor.decreaseFont":`縮小字級`,"editor.increaseFont":`放大字級`,"editor.selectedText":`選取文字`,"editor.bold":`粗體`,"editor.italic":`斜體`,"editor.underline":`底線`,"editor.strike":`刪除線`,"editor.inlineCode":`行內程式碼`,"editor.textColor":`文字顏色`,"editor.highlight":`螢光標記`,"editor.palette":`品牌色`,"editor.alignLeft":`靠左對齊`,"editor.alignCenter":`置中對齊`,"editor.alignRight":`靠右對齊`,"editor.bulletList":`項目清單`,"editor.numberList":`編號清單`,"editor.checkList":`待辦清單`,"editor.indent":`縮排`,"editor.link":`連結`,"editor.linkText":`連結文字`,"editor.table":`表格`,"editor.emoji":`表情符號`,"editor.mediaLibrary":`媒體庫`,"editor.imageUrl":`圖片網址`,"editor.insertImage":`插入圖片`,"editor.videoUrl":`YouTube / Dailymotion 連結`,"editor.insertVideo":`插入影片`,"editor.audioHint":`音訊嵌入`,"media.alt":`替代文字`,"media.title":`媒體庫`,"media.description":`這個網站上傳過的所有圖片。可以在內容中重複使用、整理替代文字,或刪除不需要的圖片。`,"media.upload":`上傳`,"media.uploading":`上傳中...`,"media.dropHere":`把圖片拖曳到這裡上傳`,"media.searchPlaceholder":`搜尋替代文字、說明或 id`,"media.empty.title":`還沒有圖片`,"media.empty.all":`上傳一張圖片,開始建立媒體庫。`,"media.empty.search":`沒有符合「{search}」的圖片。`,"media.noPurpose":`這個網站沒有設定上傳用途,無法上傳。`,"media.caption":`說明文字`,"media.altPlaceholder":`描述這張圖片`,"media.captionPlaceholder":`選填說明`,"media.save":`儲存`,"media.saving":`儲存中...`,"media.saved":`已儲存`,"media.delete":`刪除`,"media.deleteConfirm":`確定要刪除這張圖片嗎?所有使用到的地方都會一併移除。`,"media.open":`開啟原圖`,"media.copyId":`複製 id`,"media.uploaded":`上傳於 {date}`,"media.pick":`從媒體庫選擇`,"media.pickTitle":`選擇圖片`,"media.pickDescription":`挑一張現有圖片重複使用,或上傳新圖片。`,"media.use":`使用這張圖片`,"media.uploadNew":`上傳新圖片`,"media.loadMore":`載入更多`,"media.uploadFailed":`{total} 張圖片中有 {count} 張上傳失敗。`,"media.encoderUnsupported":`這個網站的媒體政策要求此瀏覽器無法產生的圖片格式({mime})。請聯絡網站開發者調整政策。`,"approvals.title":`審核中心`,"approvals.body":`集中查看等待審核的 editorial entries,發布前可以逐筆檢查內容。`,"approvals.emptyTitle":`目前沒有等待審核的內容`,"approvals.emptyBody":`送出審核的資料會依 collection 分組顯示在這裡。`,"approvals.groupBody":`目前有 {count} 筆內容標記為「{status}」。`,"approvals.openCollection":`開啟清單`,"approvals.reviewEntry":`審核`,"entryEdit.publish":`發布`,"entryEdit.publishing":`發布中...`,"entryEdit.publishTooltip":`發布這筆草稿。`,"entryEdit.publishDisabledDirty":`請先儲存變更才能發布。`,"entryEdit.unpublish":`取消發布`,"entryEdit.unpublishing":`取消發布中...`,"entryEdit.unpublishTooltip":`將這筆資料改回草稿以便編輯。`,"ops.error.executionFailed":`操作已執行,但未能完成。`,"ops.error.detailsLabel":`顯示詳細資訊`,"ops.success":`{name} 已完成。`,"confirm.title":`確定要這麼做嗎?`,"confirm.cancel":`取消`,"confirm.confirm":`確定`,"collection.schemaSummary.lifecycleAndI18n":`管理 {name} 的項目、發布狀態與多語內容。`,"collection.schemaSummary.lifecycleOnly":`管理 {name} 的項目與發布狀態。`,"collection.schemaSummary.i18nOnly":`管理 {name} 的項目與多語內容。`,"collection.schemaSummary.plain":`管理 {name} 的項目。`,"entryEdit.mediaMissing":`這張圖片已遺失或已被刪除。`,"field.hint.moneyMinor":`金額(最小單位)`,"field.hint.timestampMs":`時間戳記(毫秒)`},"zh-CN":{"admin.consoleTitle":`管理后台`,"auth.signIn.title":`登录`,"common.signOut":`登出`,"common.viewSite":`查看网站`,"common.copy":`复制`,"common.open":`打开`,"common.failedToLoad":`加载失败`,"common.signedIn":`已登录`,"console.agent.title":`下一步:连接 agent`,"console.description":`在这里管理 {title} 的内容与运营数据。支持 MCP 的 agent 也能与你并行协作。`,"console.descriptionFallback":`在这里管理这个网站的内容与运营数据。支持 MCP 的 agent 也能与你并行协作。`,"console.workspace.title":`从这里开始编辑`,"console.workspace.body":`你的内容 collection、页面与设置都能在这个后台管理。先选一个常用操作开始。`,"console.onboarding.title":`操作导览`,"console.onboarding.body":`第一次进入后台时,会用 overlay 带店主完成内容编辑、媒体检查与发布。`,"console.onboarding.step1":`先检查预设商品与首页区块。`,"console.onboarding.step2":`在对应的项目里直接用 Rich Editor 修改内容。`,"console.onboarding.step3":`预览前台,再发布变更。`,"console.mcpUrl":`Staff MCP URL`,"console.publicUrl":`公开网站 URL`,"console.collections.title":`内容清单`,"console.collections.body":`这里列出网站的所有资料集合。翻译内容会并入主项目显示。`,"collection.breadcrumb":`内容清单`,"collection.create":`新增`,"collection.filter.all":`全部`,"collection.table.title":`标题`,"collection.table.status":`状态`,"collection.table.locale":`语言`,"collection.table.version":`版本`,"collection.table.updated":`更新时间`,"collection.table.actions":`操作`,"collection.actions.label":`内容操作`,"rowActions.menuLabel":`数据行操作`,"rowActions.cancel":`取消`,"collection.untitled":`(未命名)`,"collection.searchPlaceholder":`搜索标题、ID、状态...`,"collection.empty.search":`没有符合“{search}”的资料。`,"collection.refreshing":`列表更新中...`,"collection.loadMore":`加载更多`,"collection.export":`导出 CSV`,"collection.copyId":`复制完整 ID`,"collection.table.id":`ID`,"collection.table.selectAll":`选取本页所有项目`,"collection.table.selectRow":`选取 {name}`,"collection.bulk.selectedCount":`已选取 {count} 笔`,"collection.bulk.publish":`发布`,"collection.bulk.unpublish":`下架`,"collection.bulk.delete":`删除`,"collection.bulk.deleteConfirm":`删除已选取的 {count} 笔资料?这个动作无法复原。`,"crud.create":`新增`,"crud.edit":`编辑`,"crud.search":`查询`,"crud.delete":`删除`,"crud.createTooltip":`新增一笔{name}。`,"crud.editTooltip":`编辑{name}。`,"crud.searchTooltip":`查询{name}。`,"crud.deleteTooltip":`删除{name}。`,"crud.duplicateTooltip":`复制{name}。`,"crud.saveTitle":`保存标题`,"crud.cancelTitle":`取消编辑`,"crud.deleteConfirm":`确定要删除{name}?这个动作无法复原。`,"crud.saving":`保存中...`,"crud.duplicating":`复制中...`,"crud.deleting":`删除中...`,"entryEdit.back":`回到 {name}`,"entryEdit.body":`编辑 {name} 的内容,相关资料会自动带出。`,"entryEdit.parent":`父层:{name}`,"entryEdit.save":`保存变更`,"entryEdit.saveTooltip":`保存这笔资料。`,"entryEdit.fields":`资料字段`,"entryEdit.meta":`资料信息`,"entryEdit.related":`相关资料`,"entryEdit.noRelated":`目前没有推导出这笔资料的子 collection。`,"entryEdit.noChildEntries":`目前没有符合这笔资料的子资料。`,"entryEdit.relationship":`透过子字段 {child} 对应父字段 {parent}。`,"entryEdit.addItem":`新增项目`,"entryEdit.removeItem":`移除项目`,"entryEdit.emptyOption":`无值`,"entryEdit.boolean":`启用`,"entryEdit.operationalHint":`系统写入的资料——手动修改可能在下次同步时被覆盖。`,"settings.page.title":`商店设置`,"settings.page.body":`管理全站品牌文案与预设服务信息,让商品与首页可以共用。`,"settings.tabsLabel":`商店设置分页`,"settings.tab.brand":`品牌`,"settings.tab.tracking":`追踪码`,"settings.brandSection":`品牌与服务`,"settings.brandSectionBody":`生成页面时共用的默认站台文案。`,"settings.siteBrand":`网站品牌`,"settings.siteTitle":`网站标题`,"settings.siteDescription":`网站描述`,"settings.trackingSection":`追踪码`,"settings.trackingSectionBody":`填入 analytics ID 后,Mantle 会在生成的前台页面自动埋入对应追踪码。`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`只需要填 ID,例如 G-XXXXXXXXXX,不要贴整段 gtag script。`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`只需要填数字 Pixel ID,Mantle 会生成标准 Pixel base code。`,"guide.title":`你的商店后台已经准备好了`,"guide.body":`先用这个导览了解每个编辑入口,再交给 agent 做更大量的调整。`,"guide.step1":`打开商品清单,确认前台预设商品都有进后台。`,"guide.step2":`在 collection 页使用新增、编辑、查询或删除。`,"guide.step3":`预览公开网站,再在各内容区直接用 Rich Editor 持续调整。`,"guide.close":`关闭引导`,"guide.open":`使用者引导`,"guide.next":`下一步`,"guide.prev":`上一步`,"guide.finish":`完成`,"guide.collections.title":`从内容开始`,"guide.collections.body":`打开第一个 collection,管理里面的项目、状态与多语内容。`,"guide.filters.title":`切换发布状态`,"guide.filters.body":`在清单上直接切换全部、草稿、已发布与已归档,不需要离开当前页面。`,"guide.actions.title":`在清单里直接操作`,"guide.actions.body":`用每列右侧操作编辑项目,或从网站移除。`,"guide.reopen.title":`随时重新打开引导`,"guide.reopen.body":`右上角会保留使用者引导按钮,需要时可以再次开启或关闭这套逐步导览。`,"nav.home":`首页`,"nav.content":`内容`,"nav.operations":`运营数据`,"nav.editor":`编辑器`,"nav.media":`媒体库`,"nav.more":`更多`,"nav.approvals":`审核`,"nav.settings":`设置`,"nav.ops":`操作`,"nav.reports":`报表`,"ops.page.title":`操作`,"ops.page.body":`站务操作都在这里。填好字段、按执行,结果会直接显示在下方。`,"ops.run":`执行`,"ops.running":`执行中...`,"ops.result.title":`结果`,"ops.error.title":`错误`,"ops.empty.title":`目前没有开放给 staff 的操作`,"ops.empty.body":`目前没有可用的操作。网站配置把操作开放给站务人员后,表单会自动出现在这里。`,"ops.triggers.mcp":`MCP`,"ops.triggers.http":`HTTP`,"views.page.title":`报表`,"views.page.body":`{schema} 的只读报表。`,"views.params.title":`查询参数`,"views.run":`查询`,"views.running":`查询中...`,"views.empty.title":`没有数据`,"views.empty.body":`当前条件下没有数据。`,"views.notFound.title":`找不到这个 View`,"status.draft":`草稿`,"status.review":`审核中`,"status.published":`已发布`,"status.archived":`已归档`,"preferences.heading":`偏好设置`,"preferences.language":`后台语言`,"preferences.language.search":`搜索语言...`,"preferences.language.noResults":`找不到语言。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向会跟随选择的语言。`,"preferences.appearance":`外观`,"preferences.light":`浅色`,"preferences.dark":`深色`,"preferences.system":`跟随系统`,"preferences.ltr":`从左到右`,"preferences.rtl":`从右到左`,"preferences.page.open":`个人偏好`,"preferences.page.title":`个人偏好`,"preferences.page.body":`这些偏好只保存在此浏览器,只影响 admin console,不会修改站点设置。`,"preferences.page.languageBody":`选择系统页面和 admin chrome 使用的语言。`,"preferences.page.appearanceBody":`选择浅色、深色,或跟随操作系统。`,"editor.page.title":`内容编辑器`,"editor.page.body":`在交给 agent 或发布流程前,先用 Markdown、HTML 或 Rich Editor 编辑内容草稿。`,"editor.mode.markdown":`Markdown`,"editor.mode.html":`HTML`,"editor.mode.rich":`Rich Editor`,"editor.titleLabel":`标题`,"editor.slugLabel":`Slug`,"editor.bodyLabel":`正文`,"editor.preview":`预览`,"editor.insertBlock":`插入区块`,"editor.saveDraft":`保存草稿`,"editor.markdownHint":`支持标题、列表、链接与 fenced code blocks。`,"editor.htmlHint":`用源码模式编辑可信任的 HTML 片段。`,"editor.richHint":`不用碰 markup 也能整理段落、提示框与内文。`,"editor.toolbar":`Rich Editor 工具栏`,"editor.undo":`撤销`,"editor.redo":`重做`,"editor.aiClean":`插入提示区块`,"editor.uploadImage":`上传图片`,"editor.uploading":`图片上传中...`,"editor.textStyle":`文字样式`,"editor.headingPlaceholder":`标题`,"editor.decreaseFont":`缩小字号`,"editor.increaseFont":`放大字号`,"editor.selectedText":`选取文字`,"editor.bold":`粗体`,"editor.italic":`斜体`,"editor.underline":`下划线`,"editor.strike":`删除线`,"editor.inlineCode":`行内代码`,"editor.textColor":`文字颜色`,"editor.highlight":`高亮标记`,"editor.palette":`品牌色`,"editor.alignLeft":`左对齐`,"editor.alignCenter":`居中对齐`,"editor.alignRight":`右对齐`,"editor.bulletList":`项目列表`,"editor.numberList":`编号列表`,"editor.checkList":`待办列表`,"editor.indent":`缩进`,"editor.link":`链接`,"editor.linkText":`链接文字`,"editor.table":`表格`,"editor.emoji":`表情符号`,"editor.mediaLibrary":`媒体库`,"editor.imageUrl":`图片网址`,"editor.insertImage":`插入图片`,"editor.videoUrl":`YouTube / Dailymotion 链接`,"editor.insertVideo":`插入视频`,"editor.audioHint":`音频嵌入`,"media.alt":`替代文字`,"media.title":`媒体库`,"media.description":`这个网站上传过的所有图片。可以在内容中重复使用、整理替代文字,或删除不需要的图片。`,"media.upload":`上传`,"media.uploading":`上传中...`,"media.dropHere":`把图片拖到这里上传`,"media.searchPlaceholder":`搜索替代文字、说明或 id`,"media.empty.title":`还没有图片`,"media.empty.all":`上传一张图片,开始建立媒体库。`,"media.empty.search":`没有符合“{search}”的图片。`,"media.noPurpose":`这个网站没有设置上传用途,无法上传。`,"media.caption":`说明文字`,"media.altPlaceholder":`描述这张图片`,"media.captionPlaceholder":`选填说明`,"media.save":`保存`,"media.saving":`保存中...`,"media.saved":`已保存`,"media.delete":`删除`,"media.deleteConfirm":`确定要删除这张图片吗?所有使用到的地方都会一并移除。`,"media.open":`打开原图`,"media.copyId":`复制 id`,"media.uploaded":`上传于 {date}`,"media.pick":`从媒体库选择`,"media.pickTitle":`选择图片`,"media.pickDescription":`挑一张现有图片重复使用,或上传新图片。`,"media.use":`使用这张图片`,"media.uploadNew":`上传新图片`,"media.loadMore":`加载更多`,"media.uploadFailed":`{total} 张图片中有 {count} 张上传失败。`,"media.encoderUnsupported":`这个网站的媒体政策要求此浏览器无法生成的图片格式({mime})。请联系网站开发者调整政策。`,"approvals.title":`审核中心`,"approvals.body":`集中查看等待审核的 editorial entries,发布前可以逐笔检查内容。`,"approvals.emptyTitle":`目前没有等待审核的内容`,"approvals.emptyBody":`送出审核的资料会依 collection 分组显示在这里。`,"approvals.groupBody":`目前有 {count} 笔内容标记为“{status}”。`,"approvals.openCollection":`打开清单`,"approvals.reviewEntry":`审核`,"entryEdit.publish":`发布`,"entryEdit.publishing":`发布中...`,"entryEdit.publishTooltip":`发布这笔草稿。`,"entryEdit.publishDisabledDirty":`请先保存变更才能发布。`,"entryEdit.unpublish":`取消发布`,"entryEdit.unpublishing":`取消发布中...`,"entryEdit.unpublishTooltip":`将这笔资料改回草稿以便编辑。`,"ops.error.executionFailed":`操作已执行,但未能完成。`,"ops.error.detailsLabel":`显示详细信息`,"ops.success":`{name} 已完成。`,"confirm.title":`确定要这么做吗?`,"confirm.cancel":`取消`,"confirm.confirm":`确定`,"collection.schemaSummary.lifecycleAndI18n":`管理 {name} 的项目、发布状态与多语内容。`,"collection.schemaSummary.lifecycleOnly":`管理 {name} 的项目与发布状态。`,"collection.schemaSummary.i18nOnly":`管理 {name} 的项目与多语内容。`,"collection.schemaSummary.plain":`管理 {name} 的项目。`,"entryEdit.mediaMissing":`这张图片已丢失或已被删除。`,"field.hint.moneyMinor":`金额(最小单位)`,"field.hint.timestampMs":`时间戳(毫秒)`},de:{"auth.signIn.title":`Anmelden`,"common.signOut":`Abmelden`,"common.viewSite":`Website ansehen`,"common.copy":`Kopieren`,"common.open":`Öffnen`,"common.failedToLoad":`Laden fehlgeschlagen`,"common.signedIn":`Angemeldet`,"console.agent.title":`Nächster Schritt: Agent verbinden`,"collection.filter.all":`Alle`,"nav.home":`Start`,"nav.content":`Inhalte`,"nav.more":`Mehr`,"nav.approvals":`Freigaben`,"nav.settings":`Einstellungen`,"status.draft":`Entwürfe`,"status.review":`In Prüfung`,"status.published":`Veröffentlicht`,"status.archived":`Archiviert`,"preferences.heading":`Präferenzen`,"preferences.language":`Admin-Sprache`,"preferences.language.search":`Sprachen suchen...`,"preferences.language.noResults":`Keine Sprachen gefunden.`,"preferences.direction":`Textrichtung`,"preferences.direction.auto":`Die Textrichtung folgt der gewählten Sprache.`,"preferences.appearance":`Darstellung`,"preferences.light":`Hell`,"preferences.dark":`Dunkel`,"preferences.system":`System`,"preferences.ltr":`Links nach rechts`,"preferences.rtl":`Rechts nach links`,"preferences.page.open":`Präferenzen`,"preferences.page.title":`Persönliche Präferenzen`,"preferences.page.body":`Diese Präferenzen bleiben in diesem Browser. Sie ändern nur die Admin-Konsole und keine Website-Einstellungen.`,"preferences.page.languageBody":`Wähle die Sprache für Systemseiten und Admin-Chrome.`,"preferences.page.appearanceBody":`Wähle hell, dunkel oder dein Betriebssystem.`},es:{"auth.signIn.title":`Iniciar sesión`,"common.signOut":`Cerrar sesión`,"common.viewSite":`Ver sitio`,"common.copy":`Copiar`,"common.open":`Abrir`,"common.failedToLoad":`Error al cargar`,"common.signedIn":`Sesión iniciada`,"console.agent.title":`Siguiente: conectar un agente`,"collection.filter.all":`Todo`,"nav.home":`Inicio`,"nav.content":`Contenido`,"nav.more":`Más`,"nav.approvals":`Aprobaciones`,"nav.settings":`Configuración`,"status.draft":`Borradores`,"status.review":`En revisión`,"status.published":`Publicado`,"status.archived":`Archivado`,"preferences.heading":`Preferencias`,"preferences.language":`Idioma del admin`,"preferences.language.search":`Buscar idiomas...`,"preferences.language.noResults":`No se encontraron idiomas.`,"preferences.direction":`Dirección del texto`,"preferences.direction.auto":`La dirección del texto sigue el idioma seleccionado.`,"preferences.appearance":`Apariencia`,"preferences.light":`Claro`,"preferences.dark":`Oscuro`,"preferences.system":`Sistema`,"preferences.ltr":`Izquierda a derecha`,"preferences.rtl":`Derecha a izquierda`,"preferences.page.open":`Preferencias`,"preferences.page.title":`Preferencias personales`,"preferences.page.body":`Estas preferencias se guardan en este navegador. Solo cambian la consola de administración y no modifican la configuración del sitio.`,"preferences.page.languageBody":`Elige el idioma de las páginas del sistema y la interfaz de administración.`,"preferences.page.appearanceBody":`Elige claro, oscuro o seguir el sistema operativo.`},fr:{"auth.signIn.title":`Se connecter`,"common.signOut":`Se déconnecter`,"common.viewSite":`Voir le site`,"common.copy":`Copier`,"common.open":`Ouvrir`,"common.failedToLoad":`Échec du chargement`,"common.signedIn":`Connecté`,"console.agent.title":`Étape suivante : connecter un agent`,"collection.filter.all":`Tout`,"nav.home":`Accueil`,"nav.content":`Contenu`,"nav.more":`Plus`,"nav.approvals":`Approbations`,"nav.settings":`Paramètres`,"status.draft":`Brouillons`,"status.review":`En révision`,"status.published":`Publié`,"status.archived":`Archivé`,"preferences.heading":`Préférences`,"preferences.language":`Langue admin`,"preferences.language.search":`Rechercher une langue...`,"preferences.language.noResults":`Aucune langue trouvée.`,"preferences.direction":`Direction du texte`,"preferences.direction.auto":`La direction du texte suit la langue sélectionnée.`,"preferences.appearance":`Apparence`,"preferences.light":`Clair`,"preferences.dark":`Sombre`,"preferences.system":`Système`,"preferences.ltr":`Gauche à droite`,"preferences.rtl":`Droite à gauche`,"preferences.page.open":`Préférences`,"preferences.page.title":`Préférences personnelles`,"preferences.page.body":`Ces préférences restent dans ce navigateur. Elles modifient seulement la console admin, pas les paramètres du site.`,"preferences.page.languageBody":`Choisissez la langue des pages système et de l'interface admin.`,"preferences.page.appearanceBody":`Choisissez clair, sombre ou le thème du système.`},it:{"auth.signIn.title":`Accedi`,"common.signOut":`Esci`,"common.viewSite":`Vedi sito`,"common.copy":`Copia`,"common.open":`Apri`,"common.failedToLoad":`Caricamento non riuscito`,"common.signedIn":`Accesso effettuato`,"console.agent.title":`Prossimo: collega un agente`,"collection.filter.all":`Tutto`,"nav.home":`Home`,"nav.content":`Contenuti`,"nav.more":`Altro`,"nav.approvals":`Approvazioni`,"nav.settings":`Impostazioni`,"status.draft":`Bozze`,"status.review":`In revisione`,"status.published":`Pubblicato`,"status.archived":`Archiviato`,"preferences.heading":`Preferenze`,"preferences.language":`Lingua admin`,"preferences.language.search":`Cerca lingue...`,"preferences.language.noResults":`Nessuna lingua trovata.`,"preferences.direction":`Direzione testo`,"preferences.direction.auto":`La direzione del testo segue la lingua selezionata.`,"preferences.appearance":`Aspetto`,"preferences.light":`Chiaro`,"preferences.dark":`Scuro`,"preferences.system":`Sistema`,"preferences.ltr":`Da sinistra a destra`,"preferences.rtl":`Da destra a sinistra`,"preferences.page.open":`Preferenze`,"preferences.page.title":`Preferenze personali`,"preferences.page.body":`Queste preferenze restano in questo browser. Modificano solo la console admin e non le impostazioni del sito.`,"preferences.page.languageBody":`Scegli la lingua delle pagine di sistema e dell'interfaccia admin.`,"preferences.page.appearanceBody":`Scegli chiaro, scuro o segui il sistema operativo.`},ja:{"auth.signIn.title":`サインイン`,"auth.signIn.body":`管理コンソールです。サインイン後にロールでアクセスを判定します。`,"auth.signIn.methodsLoadFailed":`サインイン方法を読み込めませんでした。再読み込みしてください。`,"auth.signIn.noMethods":`このサイトにはサインイン方法が設定されていません。`,"auth.signIn.unknownMethod":`未対応のサインイン方法: {kind}`,"auth.signIn.method.social.button":`{provider} でサインイン`,"auth.signIn.method.email-otp.body":`メールに届くワンタイムコードでサインインします。`,"auth.signIn.method.email-otp.emailLabel":`メールアドレス`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`コードを送信`,"auth.signIn.method.email-otp.sendFailed":`コードの送信に失敗しました。メールを確認してもう一度お試しください。`,"auth.signIn.method.email-otp.sentTo":`{email} にコードを送信しました。`,"auth.signIn.method.email-otp.otpLabel":`ワンタイムコード`,"auth.signIn.method.email-otp.otpPlaceholder":`6 桁のコードを入力`,"auth.signIn.method.email-otp.verifyButton":`コードを確認してサインイン`,"auth.signIn.method.email-otp.verifyFailed":`コードが一致しません。もう一度入力してください。`,"auth.signIn.method.email-otp.back":`別のメールアドレスを使う`,"auth.signIn.method.magic-link.body":`ワンタップでサインインできるリンクをメールでお送りします。`,"auth.signIn.method.magic-link.emailLabel":`メールアドレス`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`サインインリンクを送信`,"auth.signIn.method.magic-link.sendFailed":`リンクの送信に失敗しました。メールを確認してもう一度お試しください。`,"auth.signIn.method.magic-link.sentTo":`{email} にサインインリンクを送信しました。`,"auth.signIn.method.magic-link.clickHint":`メール内のリンクをクリックしてサインインを完了してください。リンクはまもなく失効します。`,"auth.signIn.method.magic-link.anotherEmail":`別のメールアドレスを使う`,"common.signOut":`サインアウト`,"common.viewSite":`サイトを見る`,"common.copy":`コピー`,"common.open":`開く`,"common.failedToLoad":`読み込みに失敗しました`,"common.signedIn":`サインイン済み`,"console.agent.title":`次へ: agent を接続`,"collection.filter.all":`すべて`,"nav.home":`ホーム`,"nav.content":`コンテンツ`,"nav.more":`その他`,"nav.approvals":`承認`,"nav.settings":`設定`,"status.draft":`下書き`,"status.review":`レビュー中`,"status.published":`公開済み`,"status.archived":`アーカイブ済み`,"preferences.heading":`環境設定`,"preferences.language":`管理画面の言語`,"preferences.language.search":`言語を検索...`,"preferences.language.noResults":`言語が見つかりません。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向は選択した言語に従います。`,"preferences.appearance":`外観`,"preferences.light":`ライト`,"preferences.dark":`ダーク`,"preferences.system":`システム`,"preferences.ltr":`左から右`,"preferences.rtl":`右から左`,"preferences.page.open":`環境設定`,"preferences.page.title":`個人設定`,"preferences.page.body":`これらの設定はこのブラウザにのみ保存されます。管理コンソールだけに影響し、サイト設定は変更しません。`,"preferences.page.languageBody":`システムページと管理 UI で使う言語を選びます。`,"preferences.page.appearanceBody":`ライト、ダーク、またはシステム設定に合わせます。`},ko:{"auth.signIn.title":`로그인`,"common.signOut":`로그아웃`,"common.viewSite":`사이트 보기`,"common.copy":`복사`,"common.open":`열기`,"common.failedToLoad":`로드 실패`,"common.signedIn":`로그인됨`,"console.agent.title":`다음: agent 연결`,"collection.filter.all":`전체`,"nav.home":`홈`,"nav.content":`콘텐츠`,"nav.more":`더보기`,"nav.approvals":`승인`,"nav.settings":`설정`,"status.draft":`초안`,"status.review":`검토 중`,"status.published":`게시됨`,"status.archived":`보관됨`,"preferences.heading":`환경설정`,"preferences.language":`관리 언어`,"preferences.language.search":`언어 검색...`,"preferences.language.noResults":`언어를 찾을 수 없습니다.`,"preferences.direction":`텍스트 방향`,"preferences.direction.auto":`텍스트 방향은 선택한 언어를 따릅니다.`,"preferences.appearance":`화면 모드`,"preferences.light":`라이트`,"preferences.dark":`다크`,"preferences.system":`시스템`,"preferences.ltr":`왼쪽에서 오른쪽`,"preferences.rtl":`오른쪽에서 왼쪽`,"preferences.page.open":`환경설정`,"preferences.page.title":`개인 환경설정`,"preferences.page.body":`이 설정은 이 브라우저에만 저장됩니다. 관리 콘솔에만 적용되며 사이트 설정은 변경하지 않습니다.`,"preferences.page.languageBody":`시스템 페이지와 관리 UI에 사용할 언어를 선택합니다.`,"preferences.page.appearanceBody":`라이트, 다크 또는 운영체제 설정을 따르도록 선택합니다.`},"pt-BR":{"auth.signIn.title":`Entrar`,"common.signOut":`Sair`,"common.viewSite":`Ver site`,"common.copy":`Copiar`,"common.open":`Abrir`,"common.failedToLoad":`Falha ao carregar`,"common.signedIn":`Conectado`,"console.agent.title":`Próximo: conectar um agente`,"collection.filter.all":`Todos`,"nav.home":`Início`,"nav.content":`Conteúdo`,"nav.more":`Mais`,"nav.approvals":`Aprovações`,"nav.settings":`Configurações`,"status.draft":`Rascunhos`,"status.review":`Em revisão`,"status.published":`Publicado`,"status.archived":`Arquivado`,"preferences.heading":`Preferências`,"preferences.language":`Idioma do admin`,"preferences.language.search":`Pesquisar idiomas...`,"preferences.language.noResults":`Nenhum idioma encontrado.`,"preferences.direction":`Direção do texto`,"preferences.direction.auto":`A direção do texto segue o idioma selecionado.`,"preferences.appearance":`Aparência`,"preferences.light":`Claro`,"preferences.dark":`Escuro`,"preferences.system":`Sistema`,"preferences.ltr":`Esquerda para direita`,"preferences.rtl":`Direita para esquerda`,"preferences.page.open":`Preferências`,"preferences.page.title":`Preferências pessoais`,"preferences.page.body":`Estas preferências ficam neste navegador. Elas mudam apenas o console admin e não alteram as configurações do site.`,"preferences.page.languageBody":`Escolha o idioma das páginas do sistema e da interface admin.`,"preferences.page.appearanceBody":`Escolha claro, escuro ou seguir o sistema operacional.`},ru:{"auth.signIn.title":`Войти`,"common.signOut":`Выйти`,"common.viewSite":`Открыть сайт`,"common.copy":`Копировать`,"common.open":`Открыть`,"common.failedToLoad":`Не удалось загрузить`,"common.signedIn":`Вы вошли`,"console.agent.title":`Далее: подключите агента`,"collection.filter.all":`Все`,"nav.home":`Главная`,"nav.content":`Контент`,"nav.more":`Еще`,"nav.approvals":`Одобрения`,"nav.settings":`Настройки`,"status.draft":`Черновики`,"status.review":`На проверке`,"status.published":`Опубликовано`,"status.archived":`Архив`,"preferences.heading":`Предпочтения`,"preferences.language":`Язык админки`,"preferences.language.search":`Поиск языков...`,"preferences.language.noResults":`Языки не найдены.`,"preferences.direction":`Направление текста`,"preferences.direction.auto":`Направление текста следует выбранному языку.`,"preferences.appearance":`Внешний вид`,"preferences.light":`Светлая`,"preferences.dark":`Темная`,"preferences.system":`Система`,"preferences.ltr":`Слева направо`,"preferences.rtl":`Справа налево`,"preferences.page.open":`Предпочтения`,"preferences.page.title":`Личные предпочтения`,"preferences.page.body":`Эти предпочтения хранятся в этом браузере. Они меняют только админ-консоль и не изменяют настройки сайта.`,"preferences.page.languageBody":`Выберите язык системных страниц и интерфейса админки.`,"preferences.page.appearanceBody":`Выберите светлую, темную тему или тему системы.`},nl:{"auth.signIn.title":`Inloggen`,"common.signOut":`Uitloggen`,"common.viewSite":`Site bekijken`,"common.copy":`Kopiëren`,"common.open":`Openen`,"common.failedToLoad":`Laden mislukt`,"common.signedIn":`Ingelogd`,"console.agent.title":`Volgende stap: agent verbinden`,"collection.filter.all":`Alles`,"nav.home":`Home`,"nav.content":`Content`,"nav.more":`Meer`,"nav.approvals":`Goedkeuringen`,"nav.settings":`Instellingen`,"status.draft":`Concepten`,"status.review":`In review`,"status.published":`Gepubliceerd`,"status.archived":`Gearchiveerd`,"preferences.heading":`Voorkeuren`,"preferences.language":`Beheertaal`,"preferences.language.search":`Talen zoeken...`,"preferences.language.noResults":`Geen talen gevonden.`,"preferences.direction":`Tekstrichting`,"preferences.direction.auto":`De tekstrichting volgt de gekozen taal.`,"preferences.appearance":`Weergave`,"preferences.light":`Licht`,"preferences.dark":`Donker`,"preferences.system":`Systeem`,"preferences.ltr":`Links naar rechts`,"preferences.rtl":`Rechts naar links`,"preferences.page.open":`Voorkeuren`,"preferences.page.title":`Persoonlijke voorkeuren`,"preferences.page.body":`Deze voorkeuren blijven in deze browser. Ze wijzigen alleen de adminconsole en niet de site-instellingen.`,"preferences.page.languageBody":`Kies de taal voor systeempagina's en de admininterface.`,"preferences.page.appearanceBody":`Kies licht, donker of volg het besturingssysteem.`},pl:{"auth.signIn.title":`Zaloguj się`,"common.signOut":`Wyloguj się`,"common.viewSite":`Zobacz stronę`,"common.copy":`Kopiuj`,"common.open":`Otwórz`,"common.failedToLoad":`Nie udało się załadować`,"common.signedIn":`Zalogowano`,"console.agent.title":`Dalej: połącz agenta`,"collection.filter.all":`Wszystkie`,"nav.home":`Start`,"nav.content":`Treści`,"nav.more":`Więcej`,"nav.approvals":`Zatwierdzenia`,"nav.settings":`Ustawienia`,"status.draft":`Szkice`,"status.review":`W recenzji`,"status.published":`Opublikowane`,"status.archived":`Zarchiwizowane`,"preferences.heading":`Preferencje`,"preferences.language":`Język panelu`,"preferences.language.search":`Szukaj języków...`,"preferences.language.noResults":`Nie znaleziono języków.`,"preferences.direction":`Kierunek tekstu`,"preferences.direction.auto":`Kierunek tekstu wynika z wybranego języka.`,"preferences.appearance":`Wygląd`,"preferences.light":`Jasny`,"preferences.dark":`Ciemny`,"preferences.system":`System`,"preferences.ltr":`Od lewej do prawej`,"preferences.rtl":`Od prawej do lewej`,"preferences.page.open":`Preferencje`,"preferences.page.title":`Preferencje osobiste`,"preferences.page.body":`Te preferencje są zapisane w tej przeglądarce. Zmieniają tylko konsolę administracyjną, nie ustawienia strony.`,"preferences.page.languageBody":`Wybierz język stron systemowych i interfejsu admina.`,"preferences.page.appearanceBody":`Wybierz jasny, ciemny lub zgodny z systemem.`},tr:{"auth.signIn.title":`Oturum aç`,"common.signOut":`Çıkış yap`,"common.viewSite":`Siteyi görüntüle`,"common.copy":`Kopyala`,"common.open":`Aç`,"common.failedToLoad":`Yüklenemedi`,"common.signedIn":`Oturum açık`,"console.agent.title":`Sonraki: agent bağla`,"collection.filter.all":`Tümü`,"nav.home":`Ana sayfa`,"nav.content":`İçerik`,"nav.more":`Daha fazla`,"nav.approvals":`Onaylar`,"nav.settings":`Ayarlar`,"status.draft":`Taslaklar`,"status.review":`İncelemede`,"status.published":`Yayında`,"status.archived":`Arşivlendi`,"preferences.heading":`Tercihler`,"preferences.language":`Yönetici dili`,"preferences.language.search":`Dil ara...`,"preferences.language.noResults":`Dil bulunamadı.`,"preferences.direction":`Metin yönü`,"preferences.direction.auto":`Metin yönü seçilen dili izler.`,"preferences.appearance":`Görünüm`,"preferences.light":`Açık`,"preferences.dark":`Koyu`,"preferences.system":`Sistem`,"preferences.ltr":`Soldan sağa`,"preferences.rtl":`Sağdan sola`,"preferences.page.open":`Tercihler`,"preferences.page.title":`Kişisel tercihler`,"preferences.page.body":`Bu tercihler bu tarayıcıda kalır. Yalnızca yönetim konsolunu değiştirir, site ayarlarını değiştirmez.`,"preferences.page.languageBody":`Sistem sayfaları ve yönetim arayüzü için dili seçin.`,"preferences.page.appearanceBody":`Açık, koyu veya işletim sistemini takip et seçeneğini seçin.`},vi:{"auth.signIn.title":`Đăng nhập`,"common.signOut":`Đăng xuất`,"common.viewSite":`Xem trang`,"common.copy":`Sao chép`,"common.open":`Mở`,"common.failedToLoad":`Tải thất bại`,"common.signedIn":`Đã đăng nhập`,"console.agent.title":`Tiếp theo: kết nối agent`,"collection.filter.all":`Tất cả`,"nav.home":`Trang chủ`,"nav.content":`Nội dung`,"nav.more":`Thêm`,"nav.approvals":`Phê duyệt`,"nav.settings":`Cài đặt`,"status.draft":`Bản nháp`,"status.review":`Đang duyệt`,"status.published":`Đã xuất bản`,"status.archived":`Đã lưu trữ`,"preferences.heading":`Tùy chọn`,"preferences.language":`Ngôn ngữ quản trị`,"preferences.language.search":`Tìm ngôn ngữ...`,"preferences.language.noResults":`Không tìm thấy ngôn ngữ.`,"preferences.direction":`Hướng văn bản`,"preferences.direction.auto":`Hướng văn bản theo ngôn ngữ đã chọn.`,"preferences.appearance":`Giao diện`,"preferences.light":`Sáng`,"preferences.dark":`Tối`,"preferences.system":`Hệ thống`,"preferences.ltr":`Trái sang phải`,"preferences.rtl":`Phải sang trái`,"preferences.page.open":`Tùy chọn`,"preferences.page.title":`Tùy chọn cá nhân`,"preferences.page.body":`Các tùy chọn này chỉ lưu trong trình duyệt này. Chúng chỉ thay đổi admin console và không sửa cài đặt trang.`,"preferences.page.languageBody":`Chọn ngôn ngữ cho trang hệ thống và giao diện quản trị.`,"preferences.page.appearanceBody":`Chọn sáng, tối hoặc theo hệ điều hành.`},cs:{"auth.signIn.title":`Přihlásit se`,"common.signOut":`Odhlásit se`,"common.viewSite":`Zobrazit web`,"common.copy":`Kopírovat`,"common.open":`Otevřít`,"common.failedToLoad":`Načtení selhalo`,"common.signedIn":`Přihlášeno`,"console.agent.title":`Další: připojit agenta`,"collection.filter.all":`Vše`,"nav.home":`Domů`,"nav.content":`Obsah`,"nav.more":`Více`,"nav.approvals":`Schválení`,"nav.settings":`Nastavení`,"status.draft":`Koncepty`,"status.review":`V kontrole`,"status.published":`Publikováno`,"status.archived":`Archivováno`,"preferences.heading":`Předvolby`,"preferences.language":`Jazyk administrace`,"preferences.language.search":`Hledat jazyky...`,"preferences.language.noResults":`Nenalezeny žádné jazyky.`,"preferences.direction":`Směr textu`,"preferences.direction.auto":`Směr textu se řídí vybraným jazykem.`,"preferences.appearance":`Vzhled`,"preferences.light":`Světlý`,"preferences.dark":`Tmavý`,"preferences.system":`Systém`,"preferences.ltr":`Zleva doprava`,"preferences.rtl":`Zprava doleva`,"preferences.page.open":`Předvolby`,"preferences.page.title":`Osobní předvolby`,"preferences.page.body":`Tyto předvolby zůstávají v tomto prohlížeči. Mění jen administrační konzoli, ne nastavení webu.`,"preferences.page.languageBody":`Vyberte jazyk systémových stránek a administračního rozhraní.`,"preferences.page.appearanceBody":`Vyberte světlý, tmavý nebo systémový režim.`},uk:{"auth.signIn.title":`Увійти`,"common.signOut":`Вийти`,"common.viewSite":`Переглянути сайт`,"common.copy":`Копіювати`,"common.open":`Відкрити`,"common.failedToLoad":`Не вдалося завантажити`,"common.signedIn":`Ви увійшли`,"console.agent.title":`Далі: підключіть агента`,"collection.filter.all":`Усі`,"nav.home":`Головна`,"nav.content":`Контент`,"nav.more":`Більше`,"nav.approvals":`Схвалення`,"nav.settings":`Налаштування`,"status.draft":`Чернетки`,"status.review":`На перевірці`,"status.published":`Опубліковано`,"status.archived":`Архівовано`,"preferences.heading":`Параметри`,"preferences.language":`Мова адмінки`,"preferences.language.search":`Пошук мов...`,"preferences.language.noResults":`Мови не знайдено.`,"preferences.direction":`Напрям тексту`,"preferences.direction.auto":`Напрям тексту відповідає вибраній мові.`,"preferences.appearance":`Вигляд`,"preferences.light":`Світла`,"preferences.dark":`Темна`,"preferences.system":`Система`,"preferences.ltr":`Зліва направо`,"preferences.rtl":`Справа наліво`,"preferences.page.open":`Параметри`,"preferences.page.title":`Особисті параметри`,"preferences.page.body":`Ці параметри зберігаються в цьому браузері. Вони змінюють лише адмін-консоль, а не налаштування сайту.`,"preferences.page.languageBody":`Виберіть мову системних сторінок та адмін-інтерфейсу.`,"preferences.page.appearanceBody":`Виберіть світлу, темну тему або тему системи.`},ar:{"auth.signIn.title":`تسجيل الدخول`,"common.signOut":`تسجيل الخروج`,"common.viewSite":`عرض الموقع`,"common.copy":`نسخ`,"common.open":`فتح`,"common.failedToLoad":`فشل التحميل`,"common.signedIn":`تم تسجيل الدخول`,"console.agent.title":`التالي: وصّل الوكيل`,"collection.filter.all":`الكل`,"nav.home":`الرئيسية`,"nav.content":`المحتوى`,"nav.more":`المزيد`,"nav.approvals":`الموافقات`,"nav.settings":`الإعدادات`,"status.draft":`مسودات`,"status.review":`قيد المراجعة`,"status.published":`منشور`,"status.archived":`مؤرشف`,"preferences.heading":`التفضيلات`,"preferences.language":`لغة الإدارة`,"preferences.language.search":`ابحث عن اللغات...`,"preferences.language.noResults":`لم يتم العثور على لغات.`,"preferences.direction":`اتجاه النص`,"preferences.direction.auto":`يتبع اتجاه النص اللغة المحددة.`,"preferences.appearance":`المظهر`,"preferences.light":`فاتح`,"preferences.dark":`داكن`,"preferences.system":`النظام`,"preferences.ltr":`من اليسار إلى اليمين`,"preferences.rtl":`من اليمين إلى اليسار`,"preferences.page.open":`التفضيلات`,"preferences.page.title":`التفضيلات الشخصية`,"preferences.page.body":`تبقى هذه التفضيلات في هذا المتصفح. إنها تغيّر وحدة الإدارة فقط ولا تعدّل إعدادات الموقع.`,"preferences.page.languageBody":`اختر لغة صفحات النظام وواجهة الإدارة.`,"preferences.page.appearanceBody":`اختر الوضع الفاتح أو الداكن أو اتبع نظام التشغيل.`},he:{"auth.signIn.title":`כניסה`,"common.signOut":`יציאה`,"common.viewSite":`הצג אתר`,"common.copy":`העתק`,"common.open":`פתח`,"common.failedToLoad":`הטעינה נכשלה`,"common.signedIn":`מחובר`,"console.agent.title":`הבא: חבר agent`,"collection.filter.all":`הכול`,"nav.home":`בית`,"nav.content":`תוכן`,"nav.more":`עוד`,"nav.approvals":`אישורים`,"nav.settings":`הגדרות`,"status.draft":`טיוטות`,"status.review":`בבדיקה`,"status.published":`פורסם`,"status.archived":`בארכיון`,"preferences.heading":`העדפות`,"preferences.language":`שפת ניהול`,"preferences.language.search":`חפש שפות...`,"preferences.language.noResults":`לא נמצאו שפות.`,"preferences.direction":`כיוון טקסט`,"preferences.direction.auto":`כיוון הטקסט נקבע לפי השפה שנבחרה.`,"preferences.appearance":`מראה`,"preferences.light":`בהיר`,"preferences.dark":`כהה`,"preferences.system":`מערכת`,"preferences.ltr":`משמאל לימין`,"preferences.rtl":`מימין לשמאל`,"preferences.page.open":`העדפות`,"preferences.page.title":`העדפות אישיות`,"preferences.page.body":`העדפות אלה נשמרות בדפדפן הזה. הן משנות רק את מסוף הניהול ולא את הגדרות האתר.`,"preferences.page.languageBody":`בחר את שפת דפי המערכת וממשק הניהול.`,"preferences.page.appearanceBody":`בחר בהיר, כהה או לפי מערכת ההפעלה.`},fa:{"auth.signIn.title":`ورود`,"common.signOut":`خروج`,"common.viewSite":`مشاهده سایت`,"common.copy":`کپی`,"common.open":`باز کردن`,"common.failedToLoad":`بارگذاری ناموفق بود`,"common.signedIn":`وارد شدهاید`,"console.agent.title":`بعدی: اتصال agent`,"collection.filter.all":`همه`,"nav.home":`خانه`,"nav.content":`محتوا`,"nav.more":`بیشتر`,"nav.approvals":`تأییدها`,"nav.settings":`تنظیمات`,"status.draft":`پیشنویسها`,"status.review":`در بازبینی`,"status.published":`منتشر شده`,"status.archived":`بایگانی شده`,"preferences.heading":`ترجیحات`,"preferences.language":`زبان مدیریت`,"preferences.language.search":`جستجوی زبانها...`,"preferences.language.noResults":`زبانی پیدا نشد.`,"preferences.direction":`جهت متن`,"preferences.direction.auto":`جهت متن از زبان انتخابشده پیروی میکند.`,"preferences.appearance":`ظاهر`,"preferences.light":`روشن`,"preferences.dark":`تیره`,"preferences.system":`سیستم`,"preferences.ltr":`چپ به راست`,"preferences.rtl":`راست به چپ`,"preferences.page.open":`ترجیحات`,"preferences.page.title":`ترجیحات شخصی`,"preferences.page.body":`این ترجیحات در همین مرورگر ذخیره میشود. فقط کنسول مدیریت را تغییر میدهد و تنظیمات سایت را تغییر نمیدهد.`,"preferences.page.languageBody":`زبان صفحات سیستمی و رابط مدیریت را انتخاب کنید.`,"preferences.page.appearanceBody":`روشن، تیره یا پیروی از سیستمعامل را انتخاب کنید.`},th:{"auth.signIn.title":`เข้าสู่ระบบ`,"common.signOut":`ออกจากระบบ`,"common.viewSite":`ดูเว็บไซต์`,"common.copy":`คัดลอก`,"common.open":`เปิด`,"common.failedToLoad":`โหลดไม่สำเร็จ`,"common.signedIn":`เข้าสู่ระบบแล้ว`,"console.agent.title":`ถัดไป: เชื่อมต่อ agent`,"collection.filter.all":`ทั้งหมด`,"nav.home":`หน้าแรก`,"nav.content":`เนื้อหา`,"nav.more":`เพิ่มเติม`,"nav.approvals":`การอนุมัติ`,"nav.settings":`การตั้งค่า`,"status.draft":`ฉบับร่าง`,"status.review":`กำลังตรวจสอบ`,"status.published":`เผยแพร่แล้ว`,"status.archived":`เก็บถาวร`,"preferences.heading":`ค่ากำหนด`,"preferences.language":`ภาษาผู้ดูแล`,"preferences.language.search":`ค้นหาภาษา...`,"preferences.language.noResults":`ไม่พบภาษา`,"preferences.direction":`ทิศทางข้อความ`,"preferences.direction.auto":`ทิศทางข้อความจะตามภาษาที่เลือก`,"preferences.appearance":`รูปลักษณ์`,"preferences.light":`สว่าง`,"preferences.dark":`มืด`,"preferences.system":`ระบบ`,"preferences.ltr":`ซ้ายไปขวา`,"preferences.rtl":`ขวาไปซ้าย`,"preferences.page.open":`ค่ากำหนด`,"preferences.page.title":`ค่ากำหนดส่วนตัว`,"preferences.page.body":`ค่ากำหนดเหล่านี้จะอยู่ในเบราว์เซอร์นี้เท่านั้น และมีผลกับ admin console โดยไม่แก้การตั้งค่าเว็บไซต์`,"preferences.page.languageBody":`เลือกภาษาสำหรับหน้าระบบและส่วนติดต่อผู้ดูแล`,"preferences.page.appearanceBody":`เลือกสว่าง มืด หรือใช้ตามระบบปฏิบัติการ`},id:{"auth.signIn.title":`Masuk`,"common.signOut":`Keluar`,"common.viewSite":`Lihat situs`,"common.copy":`Salin`,"common.open":`Buka`,"common.failedToLoad":`Gagal memuat`,"common.signedIn":`Sudah masuk`,"console.agent.title":`Berikutnya: hubungkan agent`,"collection.filter.all":`Semua`,"nav.home":`Beranda`,"nav.content":`Konten`,"nav.more":`Lainnya`,"nav.approvals":`Persetujuan`,"nav.settings":`Pengaturan`,"status.draft":`Draf`,"status.review":`Dalam ulasan`,"status.published":`Terbit`,"status.archived":`Arsip`,"preferences.heading":`Preferensi`,"preferences.language":`Bahasa admin`,"preferences.language.search":`Cari bahasa...`,"preferences.language.noResults":`Bahasa tidak ditemukan.`,"preferences.direction":`Arah teks`,"preferences.direction.auto":`Arah teks mengikuti bahasa yang dipilih.`,"preferences.appearance":`Tampilan`,"preferences.light":`Terang`,"preferences.dark":`Gelap`,"preferences.system":`Sistem`,"preferences.ltr":`Kiri ke kanan`,"preferences.rtl":`Kanan ke kiri`,"preferences.page.open":`Preferensi`,"preferences.page.title":`Preferensi pribadi`,"preferences.page.body":`Preferensi ini tetap di browser ini. Preferensi hanya mengubah konsol admin dan tidak mengubah pengaturan situs.`,"preferences.page.languageBody":`Pilih bahasa untuk halaman sistem dan antarmuka admin.`,"preferences.page.appearanceBody":`Pilih terang, gelap, atau ikuti sistem operasi.`}};function Y(e,t,n={}){let r=$c[e]?.[t]??$c.en[t];for(let[e,t]of Object.entries(n))r=r.split(`{${e}}`).join(t);return r}function el({brand:e}){let{setOpenMobile:t}=Ys(),{language:n}=J();return(0,F.jsx)(ac,{children:(0,F.jsx)(oc,{children:(0,F.jsx)(cc,{asChild:!0,size:`lg`,className:`data-[slot=sidebar-menu-button]:!p-1.5`,children:(0,F.jsxs)(`a`,{href:e.href??`/admin`,onClick:()=>t(!1),children:[(0,F.jsx)(`span`,{className:`text-primary flex aspect-square size-8 items-center justify-center`,children:(0,F.jsx)(Zc,{className:`size-5`})}),(0,F.jsx)(`div`,{"data-sidebar-label":!0,className:`grid flex-1 text-start text-sm leading-tight`,children:(0,F.jsx)(`span`,{className:`truncate font-semibold`,children:Y(n,`admin.consoleTitle`)})})]})})})})}var tl=`Collapsible`,[nl,rl]=Bi(tl),[il,al]=nl(tl),ol=P.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=qi({prop:r,defaultProp:i??!1,onChange:o,caller:tl});return(0,F.jsx)(il,{scope:n,disabled:a,contentId:Gi(),open:c,onOpenToggle:P.useCallback(()=>l(e=>!e),[l]),children:(0,F.jsx)(Zi.div,{"data-state":fl(c),"data-disabled":a?``:void 0,...s,ref:t})})});ol.displayName=tl;var sl=`CollapsibleTrigger`,cl=P.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=al(sl,n);return(0,F.jsx)(Zi.button,{type:`button`,"aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open||!1,"data-state":fl(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:W(e.onClick,i.onOpenToggle)})});cl.displayName=sl;var ll=`CollapsibleContent`,ul=P.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=al(ll,e.__scopeCollapsible);return(0,F.jsx)(Pa,{present:n||i.open,children:({present:e})=>(0,F.jsx)(dl,{...r,ref:t,present:e})})});ul.displayName=ll;var dl=P.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=al(ll,n),[s,c]=P.useState(r),l=P.useRef(null),u=tr(t,l),d=P.useRef(0),f=d.current,p=P.useRef(0),m=p.current,h=o.open||s,g=P.useRef(h),_=P.useRef(void 0);return P.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),Hi(()=>{let e=l.current;if(e){_.current=_.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,g.current||(e.style.transitionDuration=_.current.transitionDuration,e.style.animationName=_.current.animationName),c(r)}},[o.open,r]),(0,F.jsx)(Zi.div,{"data-state":fl(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!h,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&i})});function fl(e){return e?`open`:`closed`}var pl=ol,ml=cl,hl=ul;function gl(e){let t=e+`CollectionProvider`,[n,r]=Bi(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=P.useRef(null),a=P.useRef(new Map).current;return(0,F.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=nr(s),l=P.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=tr(t,a(s,n).collectionRef);return(0,F.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=nr(u),p=P.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=P.useRef(null),s=tr(t,o),c=a(u,n);return P.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,F.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return P.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}var _l=P.createContext(void 0);function vl(e){let t=P.useContext(_l);return e||t||`ltr`}var yl=[`top`,`right`,`bottom`,`left`],bl=Math.min,xl=Math.max,Sl=Math.round,Cl=Math.floor,wl=e=>({x:e,y:e}),Tl={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function El(e,t,n){return xl(e,bl(t,n))}function Dl(e,t){return typeof e==`function`?e(t):e}function Ol(e){return e.split(`-`)[0]}function kl(e){return e.split(`-`)[1]}function Al(e){return e===`x`?`y`:`x`}function jl(e){return e===`y`?`height`:`width`}function Ml(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Nl(e){return Al(Ml(e))}function Pl(e,t,n){n===void 0&&(n=!1);let r=kl(e),i=Nl(e),a=jl(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Bl(o)),[o,Bl(o)]}function X(e){let t=Bl(e);return[Fl(e),t,Fl(t)]}function Fl(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Z=[`left`,`right`],Q=[`right`,`left`],Il=[`top`,`bottom`],Ll=[`bottom`,`top`];function Rl(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Q:Z:t?Z:Q;case`left`:case`right`:return t?Il:Ll;default:return[]}}function zl(e,t,n,r){let i=kl(e),a=Rl(Ol(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Fl)))),a}function Bl(e){let t=Ol(e);return Tl[t]+e.slice(t.length)}function Vl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hl(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Vl(e)}function Ul(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Wl(e,t,n){let{reference:r,floating:i}=e,a=Ml(t),o=Nl(t),s=jl(o),c=Ol(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(kl(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Gl(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Dl(t,e),p=Hl(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ul(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ul(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Kl=50,ql=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Gl},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Wl(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Kl&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Wl(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Jl=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Dl(e,t)||{};if(l==null)return{};let d=Hl(u),f={x:n,y:r},p=Nl(i),m=jl(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,ee=bl(d[_],T),E=bl(d[v],T),D=ee,te=C-h[m]-E,ne=C/2-h[m]/2+w,re=El(D,ne,te),O=!c.arrow&&kl(i)!=null&&ne!==re&&a.reference[m]/2-(ne<D?ee:E)-h[m]/2<0,k=O?ne<D?ne-D:ne-te:0;return{[p]:f[p]+k,data:{[p]:re,centerOffset:ne-re-k,...O&&{alignmentOffset:k}},reset:O}}}),Yl=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Dl(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Ol(r),_=Ml(o),v=Ol(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Bl(o)]:X(o)),x=p!==`none`;!d&&x&&b.push(...zl(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Pl(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Ml(t))||T.every(e=>Ml(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Ml(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Xl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zl(e){return yl.some(t=>e[t]>=0)}var Ql=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Dl(e,t);switch(i){case`referenceHidden`:{let e=Xl(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Zl(e)}}}case`escaped`:{let e=Xl(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Zl(e)}}}default:return{}}}}},$l=new Set([`left`,`top`]);async function eu(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ol(n),s=kl(n),c=Ml(n)===`y`,l=$l.has(o)?-1:1,u=a&&c?-1:1,d=Dl(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var tu=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await eu(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},nu=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Dl(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Ml(Ol(i)),p=Al(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=El(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=El(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},ru=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Dl(e,t),u={x:n,y:r},d=Ml(i),f=Al(d),p=u[f],m=u[d],h=Dl(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=$l.has(Ol(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},iu=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Dl(e,t),u=await o.detectOverflow(t,l),d=Ol(i),f=kl(i),p=Ml(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=bl(h-u[g],v),x=bl(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=xl(u.left,0),t=xl(u.right,0),n=xl(u.top,0),r=xl(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:xl(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:xl(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function au(){return typeof window<`u`}function ou(e){return lu(e)?(e.nodeName||``).toLowerCase():`#document`}function su(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function cu(e){return((lu(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function lu(e){return au()?e instanceof Node||e instanceof su(e).Node:!1}function uu(e){return au()?e instanceof Element||e instanceof su(e).Element:!1}function du(e){return au()?e instanceof HTMLElement||e instanceof su(e).HTMLElement:!1}function fu(e){return!au()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof su(e).ShadowRoot}function pu(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=wu(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function mu(e){return/^(table|td|th)$/.test(ou(e))}function hu(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var gu=/transform|translate|scale|rotate|perspective|filter/,_u=/paint|layout|strict|content/,vu=e=>!!e&&e!==`none`,yu;function bu(e){let t=uu(e)?wu(e):e;return vu(t.transform)||vu(t.translate)||vu(t.scale)||vu(t.rotate)||vu(t.perspective)||!Su()&&(vu(t.backdropFilter)||vu(t.filter))||gu.test(t.willChange||``)||_u.test(t.contain||``)}function xu(e){let t=Eu(e);for(;du(t)&&!Cu(t);){if(bu(t))return t;if(hu(t))return null;t=Eu(t)}return null}function Su(){return yu??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),yu}function Cu(e){return/^(html|body|#document)$/.test(ou(e))}function wu(e){return su(e).getComputedStyle(e)}function Tu(e){return uu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Eu(e){if(ou(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||fu(e)&&e.host||cu(e);return fu(t)?t.host:t}function Du(e){let t=Eu(e);return Cu(t)?e.ownerDocument?e.ownerDocument.body:e.body:du(t)&&pu(t)?t:Du(t)}function Ou(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Du(e),i=r===e.ownerDocument?.body,a=su(r);if(i){let e=ku(a);return t.concat(a,a.visualViewport||[],pu(r)?r:[],e&&n?Ou(e):[])}else return t.concat(r,Ou(r,[],n))}function ku(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Au(e){let t=wu(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=du(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Sl(n)!==a||Sl(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ju(e){return uu(e)?e:e.contextElement}function Mu(e){let t=ju(e);if(!du(t))return wl(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Au(t),o=(a?Sl(n.width):n.width)/r,s=(a?Sl(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Nu=wl(0);function Pu(e){let t=su(e);return!Su()||!t.visualViewport?Nu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==su(e)?!1:t}function Iu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ju(e),o=wl(1);t&&(r?uu(r)&&(o=Mu(r)):o=Mu(e));let s=Fu(a,n,r)?Pu(a):wl(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=su(a),t=r&&uu(r)?su(r):r,n=e,i=ku(n);for(;i&&r&&t!==n;){let e=Mu(i),t=i.getBoundingClientRect(),r=wu(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=su(i),i=ku(n)}}return Ul({width:u,height:d,x:c,y:l})}function Lu(e,t){let n=Tu(e).scrollLeft;return t?t.left+n:Iu(cu(e)).left+n}function Ru(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Lu(e,n),y:n.top+t.scrollTop}}function zu(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=cu(r),s=t?hu(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=wl(1),u=wl(0),d=du(r);if((d||!d&&!a)&&((ou(r)!==`body`||pu(o))&&(c=Tu(r)),d)){let e=Iu(r);l=Mu(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ru(o,c):wl(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Bu(e){return Array.from(e.getClientRects())}function Vu(e){let t=cu(e),n=Tu(e),r=e.ownerDocument.body,i=xl(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=xl(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Lu(e),s=-n.scrollTop;return wu(r).direction===`rtl`&&(o+=xl(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Hu=25;function Uu(e,t){let n=su(e),r=cu(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Su();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Lu(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Hu&&(a-=o)}else l<=Hu&&(a+=l);return{width:a,height:o,x:s,y:c}}function Wu(e,t){let n=Iu(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=du(e)?Mu(e):wl(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Gu(e,t,n){let r;if(t===`viewport`)r=Uu(e,n);else if(t===`document`)r=Vu(cu(e));else if(uu(t))r=Wu(t,n);else{let n=Pu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ul(r)}function Ku(e,t){let n=Eu(e);return n===t||!uu(n)||Cu(n)?!1:wu(n).position===`fixed`||Ku(n,t)}function qu(e,t){let n=t.get(e);if(n)return n;let r=Ou(e,[],!1).filter(e=>uu(e)&&ou(e)!==`body`),i=null,a=wu(e).position===`fixed`,o=a?Eu(e):e;for(;uu(o)&&!Cu(o);){let t=wu(o),n=bu(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||pu(o)&&!n&&Ku(e,o))?r=r.filter(e=>e!==o):i=t,o=Eu(o)}return t.set(e,r),r}function Ju(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?hu(t)?[]:qu(t,this._c):[].concat(n),r],o=Gu(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Gu(t,a[e],i);s=xl(n.top,s),c=bl(n.right,c),l=bl(n.bottom,l),u=xl(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Yu(e){let{width:t,height:n}=Au(e);return{width:t,height:n}}function Xu(e,t,n){let r=du(t),i=cu(t),a=n===`fixed`,o=Iu(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=wl(0);function l(){c.x=Lu(i)}if(r||!r&&!a)if((ou(t)!==`body`||pu(i))&&(s=Tu(t)),r){let e=Iu(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Ru(i,s):wl(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Zu(e){return wu(e).position===`static`}function Qu(e,t){if(!du(e)||wu(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return cu(e)===n&&(n=n.ownerDocument.body),n}function $u(e,t){let n=su(e);if(hu(e))return n;if(!du(e)){let t=Eu(e);for(;t&&!Cu(t);){if(uu(t)&&!Zu(t))return t;t=Eu(t)}return n}let r=Qu(e,t);for(;r&&mu(r)&&Zu(r);)r=Qu(r,t);return r&&Cu(r)&&Zu(r)&&!bu(r)?n:r||xu(e)||n}var ed=async function(e){let t=this.getOffsetParent||$u,n=this.getDimensions,r=await n(e.floating);return{reference:Xu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function td(e){return wu(e).direction===`rtl`}var nd={convertOffsetParentRelativeRectToViewportRelativeRect:zu,getDocumentElement:cu,getClippingRect:Ju,getOffsetParent:$u,getElementRects:ed,getClientRects:Bu,getDimensions:Yu,getScale:Mu,isElement:uu,isRTL:td};function rd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function id(e,t){let n=null,r,i=cu(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Cl(d),h=Cl(i.clientWidth-(u+f)),g=Cl(i.clientHeight-(d+p)),_=Cl(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:xl(0,bl(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!rd(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function ad(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ju(e),u=i||a?[...l?Ou(l):[],...t?Ou(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?id(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Iu(e):null;c&&g();function g(){let t=Iu(e);h&&!rd(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var od=tu,sd=nu,cd=Yl,ld=iu,ud=Ql,dd=Jl,fd=ru,pd=(e,t,n)=>{let r=new Map,i={platform:nd,...n},a={...i.platform,_c:r};return ql(e,t,{...i,platform:a})},md=typeof document<`u`?P.useLayoutEffect:function(){};function hd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!hd(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!hd(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function gd(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _d(e,t){let n=gd(e);return Math.round(t*n)/n}function vd(e){let t=P.useRef(e);return md(()=>{t.current=e}),t}function $(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=P.useState(r);hd(f,r)||p(r);let[m,h]=P.useState(null),[g,_]=P.useState(null),v=P.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=P.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=P.useRef(null),C=P.useRef(null),w=P.useRef(u),T=c!=null,ee=vd(c),E=vd(i),D=vd(l),te=P.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};E.current&&(e.platform=E.current),pd(S.current,C.current,e).then(e=>{let t={...e,isPositioned:D.current!==!1};ne.current&&!hd(w.current,t)&&(w.current=t,Xi.flushSync(()=>{d(t)}))})},[f,t,n,E,D]);md(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ne=P.useRef(!1);md(()=>(ne.current=!0,()=>{ne.current=!1}),[]),md(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(ee.current)return ee.current(b,x,te);te()}},[b,x,te,ee,T]);let re=P.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),O=P.useMemo(()=>({reference:b,floating:x}),[b,x]),k=P.useMemo(()=>{let e={position:n,left:0,top:0};if(!O.floating)return e;let t=_d(O.floating,u.x),r=_d(O.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...gd(O.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,O.floating,u.x,u.y]);return P.useMemo(()=>({...u,update:te,refs:re,elements:O,floatingStyles:k}),[u,te,re,O,k])}var yd=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:dd({element:r.current,padding:i}).fn(n):r?dd({element:r,padding:i}).fn(n):{}}}},bd=(e,t)=>{let n=od(e);return{name:n.name,fn:n.fn,options:[e,t]}},xd=(e,t)=>{let n=sd(e);return{name:n.name,fn:n.fn,options:[e,t]}},Sd=(e,t)=>({fn:fd(e).fn,options:[e,t]}),Cd=(e,t)=>{let n=cd(e);return{name:n.name,fn:n.fn,options:[e,t]}},wd=(e,t)=>{let n=ld(e);return{name:n.name,fn:n.fn,options:[e,t]}},Td=(e,t)=>{let n=ud(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ed=(e,t)=>{let n=yd(e);return{name:n.name,fn:n.fn,options:[e,t]}},Dd=`Arrow`,Od=P.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,F.jsx)(Zi.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,F.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Od.displayName=Dd;var kd=Od;function Ad(e){let[t,n]=P.useState(void 0);return Hi(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var jd=`Popper`,[Md,Nd]=Bi(jd),[Pd,Fd]=Md(jd),Id=e=>{let{__scopePopper:t,children:n}=e,[r,i]=P.useState(null),[a,o]=P.useState(void 0);return(0,F.jsx)(Pd,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})};Id.displayName=jd;var Ld=`PopperAnchor`,Rd=P.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=Fd(Ld,n),o=P.useRef(null),s=a.onAnchorChange,c=tr(t,P.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=P.useRef(null);P.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Jd(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,F.jsx)(Zi.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})});Rd.displayName=Ld;var zd=`PopperContent`,[Bd,Vd]=Md(zd),Hd=P.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=Fd(zd,n),[_,v]=P.useState(null),y=tr(t,e=>v(e)),[b,x]=P.useState(null),S=Ad(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),ee=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},E=Array.isArray(l)?l:[l],D=E.length>0,te={padding:ee,boundary:E.filter(Kd),altBoundary:D},{refs:ne,floatingStyles:re,placement:O,isPositioned:k,middlewareData:ie}=$({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>ad(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[bd({mainAxis:i+w,alignmentAxis:o}),c&&xd({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Sd():void 0,...te}),c&&Cd({...te}),wd({...te,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),b&&Ed({element:b,padding:s}),qd({arrowWidth:C,arrowHeight:w}),f&&Td({strategy:`referenceHidden`,...te,boundary:D?te.boundary:void 0})]}),ae=g.setPlacementState;Hi(()=>(ae(O),()=>{ae(void 0)}),[O,ae]);let[A,j]=Jd(O),oe=$i(m);Hi(()=>{k&&oe?.()},[k,oe]);let se=ie.arrow?.x,ce=ie.arrow?.y,le=ie.arrow?.centerOffset!==0,[M,N]=P.useState();return Hi(()=>{_&&N(window.getComputedStyle(_).zIndex)},[_]),(0,F.jsx)(`div`,{ref:ne.setFloating,"data-radix-popper-content-wrapper":``,style:{...re,transform:k?re.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:M,"--radix-popper-transform-origin":[ie.transformOrigin?.x,ie.transformOrigin?.y].join(` `),...ie.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,F.jsx)(Bd,{scope:n,placedSide:A,placedAlign:j,onArrowChange:x,arrowX:se,arrowY:ce,shouldHideArrow:le,children:(0,F.jsx)(Zi.div,{"data-side":A,"data-align":j,...h,ref:y,style:{...h.style,animation:k?void 0:`none`}})})})});Hd.displayName=zd;var Ud=`PopperArrow`,Wd={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Gd=P.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Vd(Ud,n),a=Wd[i.placedSide];return(0,F.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,F.jsx)(kd,{...r,ref:t,style:{...r.style,display:`block`}})})});Gd.displayName=Ud;function Kd(e){return e!==null}var qd=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Jd(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Jd(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Yd=Id,Xd=Rd,Zd=Hd,Qd=Gd,$d=`rovingFocusGroup.onEntryFocus`,ef={bubbles:!1,cancelable:!0},tf=`RovingFocusGroup`,[nf,rf,af]=gl(tf),[of,sf]=Bi(tf,[af]),[cf,lf]=of(tf),uf=P.forwardRef((e,t)=>(0,F.jsx)(nf.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,F.jsx)(nf.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,F.jsx)(df,{...e,ref:t})})}));uf.displayName=tf;var df=P.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=P.useRef(null),p=tr(t,f),m=vl(a),[h,g]=qi({prop:o,defaultProp:s??null,onChange:c,caller:tf}),[_,v]=P.useState(!1),y=$i(l),b=rf(n),x=P.useRef(!1),[S,C]=P.useState(0);return P.useEffect(()=>{let e=f.current;if(e)return e.addEventListener($d,y),()=>e.removeEventListener($d,y)},[y]),(0,F.jsx)(cf,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:P.useCallback(e=>g(e),[g]),onItemShiftTab:P.useCallback(()=>v(!0),[]),onFocusableItemAdd:P.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:P.useCallback(()=>C(e=>e-1),[]),children:(0,F.jsx)(Zi.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:W(e.onMouseDown,()=>{x.current=!0}),onFocus:W(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent($d,ef);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);_f([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:W(e.onBlur,()=>v(!1))})})}),ff=`RovingFocusGroupItem`,pf=P.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Gi(),l=a||c,u=lf(ff,n),d=u.currentTabStopId===l,f=rf(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return P.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,F.jsx)(nf.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,F.jsx)(Zi.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:W(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:W(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:W(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=gf(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?vf(n,r+1):n.slice(r+1)}setTimeout(()=>_f(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});pf.displayName=ff;var mf={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function hf(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function gf(e,t,n){let r=hf(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return mf[r]}function _f(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function vf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var yf=uf,bf=pf,xf=[`Enter`,` `],Sf=[`ArrowDown`,`PageUp`,`Home`],Cf=[`ArrowUp`,`PageDown`,`End`],wf=[...Sf,...Cf],Tf={ltr:[...xf,`ArrowRight`],rtl:[...xf,`ArrowLeft`]},Ef={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},Df=`Menu`,[Of,kf,Af]=gl(Df),[jf,Mf]=Bi(Df,[Af,Nd,sf]),Nf=Nd(),Pf=sf(),[Ff,If]=jf(Df),[Lf,Rf]=jf(Df),zf=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Nf(t),[c,l]=P.useState(null),u=P.useRef(!1),d=$i(a),f=vl(i);return P.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),P.useEffect(()=>{if(!n)return;let e=()=>d(!1);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,F.jsx)(Yd,{...s,children:(0,F.jsx)(Ff,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,F.jsx)(Lf,{scope:t,onClose:P.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};zf.displayName=Df;var Bf=`MenuAnchor`,Vf=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Nf(n);return(0,F.jsx)(Xd,{...i,...r,ref:t})});Vf.displayName=Bf;var Hf=`MenuPortal`,[Uf,Wf]=jf(Hf,{forceMount:void 0}),Gf=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=If(Hf,t);return(0,F.jsx)(Uf,{scope:t,forceMount:n,children:(0,F.jsx)(Pa,{present:n||a.open,children:(0,F.jsx)(Ma,{asChild:!0,container:i,children:r})})})};Gf.displayName=Hf;var Kf=`MenuContent`,[qf,Jf]=jf(Kf),Yf=P.forwardRef((e,t)=>{let n=Wf(Kf,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=If(Kf,e.__scopeMenu),o=Rf(Kf,e.__scopeMenu);return(0,F.jsx)(Of.Provider,{scope:e.__scopeMenu,children:(0,F.jsx)(Pa,{present:r||a.open,children:(0,F.jsx)(Of.Slot,{scope:e.__scopeMenu,children:o.modal?(0,F.jsx)(Xf,{...i,ref:t}):(0,F.jsx)(Zf,{...i,ref:t})})})})}),Xf=P.forwardRef((e,t)=>{let n=If(Kf,e.__scopeMenu),r=P.useRef(null),i=tr(t,r);return P.useEffect(()=>{let e=r.current;if(e)return os(e)},[]),(0,F.jsx)($f,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:W(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Zf=P.forwardRef((e,t)=>{let n=If(Kf,e.__scopeMenu);return(0,F.jsx)($f,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Qf=nr(`MenuContent.ScrollLock`),$f=P.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=If(Kf,n),_=Rf(Kf,n),v=Nf(n),y=Pf(n),b=kf(n),[x,S]=P.useState(null),C=P.useRef(null),w=tr(t,C,g.onContentChange),T=P.useRef(0),ee=P.useRef(``),E=P.useRef(0),D=P.useRef(null),te=P.useRef(`right`),ne=P.useRef(0),re=m?Zo:P.Fragment,O=m?{as:Qf,allowPinchZoom:!0}:void 0,k=e=>{let t=ee.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Lp(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){ee.current=t,window.clearTimeout(T.current),t!==``&&(T.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};P.useEffect(()=>()=>window.clearTimeout(T.current),[]),Ha();let ie=P.useCallback(e=>te.current===D.current?.side&&zp(e,D.current?.area),[]);return(0,F.jsx)(qf,{scope:n,searchRef:ee,onItemEnter:P.useCallback(e=>{ie(e)&&e.preventDefault()},[ie]),onItemLeave:P.useCallback(e=>{ie(e)||(C.current?.focus(),S(null))},[ie]),onTriggerLeave:P.useCallback(e=>{ie(e)&&e.preventDefault()},[ie]),pointerGraceTimerRef:E,onPointerGraceIntentChange:P.useCallback(e=>{D.current=e},[]),children:(0,F.jsx)(re,{...O,children:(0,F.jsx)(ya,{asChild:!0,trapped:i,onMountAutoFocus:W(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,F.jsx)(sa,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,F.jsx)(yf,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:W(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,F.jsx)(Zd,{role:`menu`,"aria-orientation":`vertical`,"data-state":Mp(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:w,style:{outline:`none`,...h.style},onKeyDown:W(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&k(e.key));let i=C.current;if(e.target!==i||!wf.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);Cf.includes(e.key)&&a.reverse(),Fp(a)}),onBlur:W(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),ee.current=``)}),onPointerMove:W(e.onPointerMove,Bp(e=>{let t=e.target,n=ne.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>ne.current?`right`:`left`;te.current=t,ne.current=e.clientX}}))})})})})})})});Yf.displayName=Kf;var ep=`MenuGroup`,tp=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,F.jsx)(Zi.div,{role:`group`,...r,ref:t})});tp.displayName=ep;var np=`MenuLabel`,rp=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,F.jsx)(Zi.div,{...r,ref:t})});rp.displayName=np;var ip=`MenuItem`,ap=`menu.itemSelect`,op=P.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=P.useRef(null),o=Rf(ip,e.__scopeMenu),s=Jf(ip,e.__scopeMenu),c=tr(t,a),l=P.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(ap,{bubbles:!0,cancelable:!0});e.addEventListener(ap,e=>r?.(e),{once:!0}),Qi(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,F.jsx)(sp,{...i,ref:c,disabled:n,onClick:W(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:W(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:W(e.onKeyDown,e=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||xf.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});op.displayName=ip;var sp=P.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Jf(ip,n),s=Pf(n),c=P.useRef(null),l=tr(t,c),[u,d]=P.useState(!1),[f,p]=P.useState(``);return P.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,F.jsx)(Of.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,F.jsx)(bf,{asChild:!0,...s,focusable:!r,children:(0,F.jsx)(Zi.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:W(e.onPointerMove,Bp(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:W(e.onPointerLeave,Bp(e=>o.onItemLeave(e))),onFocus:W(e.onFocus,()=>d(!0)),onBlur:W(e.onBlur,()=>d(!1))})})})}),cp=`MenuCheckboxItem`,lp=P.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,F.jsx)(_p,{scope:e.__scopeMenu,checked:n,children:(0,F.jsx)(op,{role:`menuitemcheckbox`,"aria-checked":Np(n)?`mixed`:n,...i,ref:t,"data-state":Pp(n),onSelect:W(i.onSelect,()=>r?.(Np(n)?!0:!n),{checkForDefaultPrevented:!1})})})});lp.displayName=cp;var up=`MenuRadioGroup`,[dp,fp]=jf(up,{value:void 0,onValueChange:()=>{}}),pp=P.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=$i(r);return(0,F.jsx)(dp,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,F.jsx)(tp,{...i,ref:t})})});pp.displayName=up;var mp=`MenuRadioItem`,hp=P.forwardRef((e,t)=>{let{value:n,...r}=e,i=fp(mp,e.__scopeMenu),a=n===i.value;return(0,F.jsx)(_p,{scope:e.__scopeMenu,checked:a,children:(0,F.jsx)(op,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Pp(a),onSelect:W(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});hp.displayName=mp;var gp=`MenuItemIndicator`,[_p,vp]=jf(gp,{checked:!1}),yp=P.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=vp(gp,n);return(0,F.jsx)(Pa,{present:r||Np(a.checked)||a.checked===!0,children:(0,F.jsx)(Zi.span,{...i,ref:t,"data-state":Pp(a.checked)})})});yp.displayName=gp;var bp=`MenuSeparator`,xp=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,F.jsx)(Zi.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});xp.displayName=bp;var Sp=`MenuArrow`,Cp=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Nf(n);return(0,F.jsx)(Qd,{...i,...r,ref:t})});Cp.displayName=Sp;var wp=`MenuSub`,[Tp,Ep]=jf(wp),Dp=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=If(wp,t),o=Nf(t),[s,c]=P.useState(null),[l,u]=P.useState(null),d=$i(i);return P.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,F.jsx)(Yd,{...o,children:(0,F.jsx)(Ff,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,F.jsx)(Tp,{scope:t,contentId:Gi(),triggerId:Gi(),trigger:s,onTriggerChange:c,children:n})})})};Dp.displayName=wp;var Op=`MenuSubTrigger`,kp=P.forwardRef((e,t)=>{let n=If(Op,e.__scopeMenu),r=Rf(Op,e.__scopeMenu),i=Ep(Op,e.__scopeMenu),a=Jf(Op,e.__scopeMenu),o=P.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=P.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return P.useEffect(()=>u,[u]),P.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,F.jsx)(Vf,{asChild:!0,...l,children:(0,F.jsx)(sp,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":Mp(n.open),...e,ref:er(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:W(e.onPointerMove,Bp(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:W(e.onPointerLeave,Bp(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:W(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||Tf[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});kp.displayName=Op;var Ap=`MenuSubContent`,jp=P.forwardRef((e,t)=>{let n=Wf(Kf,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=If(Kf,e.__scopeMenu),s=Rf(Kf,e.__scopeMenu),c=Ep(Ap,e.__scopeMenu),l=P.useRef(null),u=tr(t,l);return(0,F.jsx)(Of.Provider,{scope:e.__scopeMenu,children:(0,F.jsx)(Pa,{present:r||o.open,children:(0,F.jsx)(Of.Slot,{scope:e.__scopeMenu,children:(0,F.jsx)($f,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:i,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:W(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:W(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:W(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Ef[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});jp.displayName=Ap;function Mp(e){return e?`open`:`closed`}function Np(e){return e===`indeterminate`}function Pp(e){return Np(e)?`indeterminate`:e?`checked`:`unchecked`}function Fp(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Ip(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Lp(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Ip(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Rp(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function zp(e,t){return t?Rp({x:e.clientX,y:e.clientY},t):!1}function Bp(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Vp=zf,Hp=Vf,Up=Gf,Wp=Yf,Gp=tp,Kp=rp,qp=op,Jp=lp,Yp=pp,Xp=hp,Zp=yp,Qp=xp,$p=Cp,em=kp,tm=jp,nm=`DropdownMenu`,[rm,im]=Bi(nm,[Mf]),am=Mf(),[om,sm]=rm(nm),cm=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=am(t),l=P.useRef(null),[u,d]=qi({prop:i,defaultProp:a??!1,onChange:o,caller:nm});return(0,F.jsx)(om,{scope:t,triggerId:Gi(),triggerRef:l,contentId:Gi(),open:u,onOpenChange:d,onOpenToggle:P.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,F.jsx)(Vp,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};cm.displayName=nm;var lm=`DropdownMenuTrigger`,um=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=sm(lm,n),o=am(n);return(0,F.jsx)(Hp,{asChild:!0,...o,children:(0,F.jsx)(Zi.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:er(t,a.triggerRef),onPointerDown:W(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:W(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});um.displayName=lm;var dm=`DropdownMenuPortal`,fm=e=>{let{__scopeDropdownMenu:t,...n}=e,r=am(t);return(0,F.jsx)(Up,{...r,...n})};fm.displayName=dm;var pm=`DropdownMenuContent`,mm=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=sm(pm,n),a=am(n),o=P.useRef(!1);return(0,F.jsx)(Wp,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:W(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:W(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});mm.displayName=pm;var hm=`DropdownMenuGroup`,gm=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(Gp,{...i,...r,ref:t})});gm.displayName=hm;var _m=`DropdownMenuLabel`,vm=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(Kp,{...i,...r,ref:t})});vm.displayName=_m;var ym=`DropdownMenuItem`,bm=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(qp,{...i,...r,ref:t})});bm.displayName=ym;var xm=`DropdownMenuCheckboxItem`,Sm=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(Jp,{...i,...r,ref:t})});Sm.displayName=xm;var Cm=`DropdownMenuRadioGroup`,wm=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(Yp,{...i,...r,ref:t})});wm.displayName=Cm;var Tm=`DropdownMenuRadioItem`,Em=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(Xp,{...i,...r,ref:t})});Em.displayName=Tm;var Dm=`DropdownMenuItemIndicator`,Om=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(Zp,{...i,...r,ref:t})});Om.displayName=Dm;var km=`DropdownMenuSeparator`,Am=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(Qp,{...i,...r,ref:t})});Am.displayName=km;var jm=`DropdownMenuArrow`,Mm=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)($p,{...i,...r,ref:t})});Mm.displayName=jm;var Nm=`DropdownMenuSubTrigger`,Pm=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(em,{...i,...r,ref:t})});Pm.displayName=Nm;var Fm=`DropdownMenuSubContent`,Im=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=am(n);return(0,F.jsx)(tm,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Im.displayName=Fm;var Lm=cm,Rm=um,zm=fm,Bm=mm,Vm=vm,Hm=bm,Um=Am,Wm=Lm,Gm=Rm,Km=P.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,F.jsx)(zm,{children:(0,F.jsx)(Bm,{ref:r,sideOffset:t,className:H(`z-50 min-w-[8rem] overflow-hidden rounded-lg border border-[var(--glass-border)] bg-card backdrop-blur-md p-1 text-foreground shadow-[var(--glass-shadow-lg)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,e),...n})}));Km.displayName=Bm.displayName;var qm=P.forwardRef(({className:e,inset:t,...n},r)=>(0,F.jsx)(Hm,{ref:r,className:H(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,t&&`ps-8`,e),...n}));qm.displayName=Hm.displayName;var Jm=P.forwardRef(({className:e,inset:t,...n},r)=>(0,F.jsx)(Vm,{ref:r,className:H(`px-2 py-1.5 text-sm font-semibold text-primary`,t&&`ps-8`,e),...n}));Jm.displayName=Vm.displayName;var Ym=P.forwardRef(({className:e,...t},n)=>(0,F.jsx)(Um,{ref:n,className:H(`-mx-1 my-1 h-px bg-[var(--glass-border)]`,e),...t}));Ym.displayName=Um.displayName;function Xm(e){return Array.isArray(e.items)}function Zm({group:e,pathname:t,search:n}){return(0,F.jsxs)(rc,{children:[e.title&&(0,F.jsx)(ic,{title:e.title,children:e.title}),(0,F.jsx)(ac,{children:e.items.map(e=>(0,F.jsx)($m,{item:e,pathname:t,search:n},Qm(e)))})]})}function Qm(e){return Xm(e)?`g:${e.title}`:`l:${e.url}`}function $m({item:e,pathname:t,search:n}){let{state:r,isMobile:i}=Ys();return Xm(e)?r===`collapsed`&&!i?(0,F.jsx)(ih,{item:e,pathname:t,search:n}):(0,F.jsx)(th,{item:e,pathname:t,search:n}):(0,F.jsx)(eh,{item:e,pathname:t,search:n})}function eh({item:e,pathname:t,search:n}){let{setOpenMobile:r}=Ys();return(0,F.jsx)(oc,{children:(0,F.jsx)(cc,{asChild:!0,isActive:oh(e,t,n),children:(0,F.jsxs)(`a`,{href:e.url,title:e.title,"data-tour":rh(e.url),onClick:()=>r(!1),...e.external?{target:`_blank`,rel:`noreferrer`}:null,children:[e.icon&&(0,F.jsx)(e.icon,{"aria-hidden":!0}),(0,F.jsx)(`span`,{"data-sidebar-label":!0,className:`flex-1 truncate`,children:e.title}),e.marker&&(0,F.jsx)(e.marker,{"aria-hidden":!0,"data-sidebar-label":!0,className:`size-3.5 text-muted-foreground`}),e.badge&&(0,F.jsx)(ah,{sidebarLabel:!0,children:e.badge})]})})})}function th({item:e,pathname:t,search:n}){let r=sh(e,t,n);return(0,F.jsx)(pl,{defaultOpen:r,className:`group/collapsible`,asChild:!0,children:(0,F.jsxs)(oc,{children:[(0,F.jsx)(ml,{asChild:!0,children:(0,F.jsxs)(cc,{isActive:r,"data-tour":rh(e.items[0]?.url),children:[e.icon&&(0,F.jsx)(e.icon,{"aria-hidden":!0}),(0,F.jsx)(`span`,{"data-sidebar-label":!0,className:`flex-1 truncate`,title:e.title,children:e.title}),e.marker&&(0,F.jsx)(e.marker,{"aria-hidden":!0,"data-sidebar-label":!0,className:`size-3.5 text-muted-foreground`}),e.badge&&(0,F.jsx)(ah,{sidebarLabel:!0,children:e.badge}),(0,F.jsx)(Et,{"aria-hidden":!0,"data-sidebar-label":!0,className:`transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90 rtl:rotate-180 rtl:group-data-[state=open]/collapsible:-rotate-90`})]})}),(0,F.jsx)(hl,{children:(0,F.jsx)(lc,{children:e.items.map(e=>(0,F.jsx)(nh,{link:e,pathname:t,search:n},e.url))})})]})})}function nh({link:e,pathname:t,search:n}){let{setOpenMobile:r}=Ys();return(0,F.jsx)(uc,{children:(0,F.jsx)(dc,{asChild:!0,isActive:oh(e,t,n),children:(0,F.jsxs)(`a`,{href:e.url,title:e.title,"data-tour":rh(e.url),onClick:()=>r(!1),children:[e.icon&&(0,F.jsx)(e.icon,{"aria-hidden":!0}),(0,F.jsx)(`span`,{children:e.title}),e.badge&&(0,F.jsx)(ah,{children:e.badge})]})})})}function rh(e){if(!e)return;if(e===`/admin`)return`nav-home`;if(e===`/admin/settings`)return`nav-settings`;let t=e.match(/^\/admin\/c\/([^/?]+)$/);if(t)return`nav-c-${decodeURIComponent(t[1])}`}function ih({item:e,pathname:t,search:n}){let r=sh(e,t,n),{direction:i}=J();return(0,F.jsx)(oc,{children:(0,F.jsxs)(Wm,{children:[(0,F.jsx)(Gm,{asChild:!0,children:(0,F.jsxs)(cc,{isActive:r,children:[e.icon&&(0,F.jsx)(e.icon,{"aria-hidden":!0}),(0,F.jsx)(`span`,{"data-sidebar-label":!0,title:e.title,children:e.title}),(0,F.jsx)(Et,{"aria-hidden":!0,"data-sidebar-label":!0,className:`ms-auto`})]})}),(0,F.jsxs)(Km,{side:i===`rtl`?`left`:`right`,align:`start`,sideOffset:4,children:[(0,F.jsx)(Jm,{children:e.title}),(0,F.jsx)(Ym,{}),e.items.map(e=>(0,F.jsx)(qm,{asChild:!0,children:(0,F.jsx)(`a`,{href:e.url,className:H(oh(e,t,n)&&`font-medium`),children:e.title})},e.url))]})]})})}function ah({children:e,sidebarLabel:t=!1}){return(0,F.jsx)(`span`,{"data-sidebar-label":t||void 0,className:`ms-auto rounded-full bg-accent px-2 py-0.5 text-xs text-accent-foreground`,children:e})}function oh(e,t,n){let r=new URL(e.url,`http://x`);if(r.pathname!==t)return!1;if(!r.search)return!0;let i=new URLSearchParams(r.search),a=new URLSearchParams(n);for(let[e,t]of i.entries())if(a.get(e)!==t)return!1;return!0}function sh(e,t,n){return e.items.some(e=>oh(e,t,n))?!0:e.items.some(e=>new URL(e.url,`http://x`).pathname===t)}function ch({login:e,role:t}){let{isMobile:n}=Ys(),{language:r}=J(),i=(e??`?`).charAt(0).toUpperCase(),a=e?`https://github.com/${encodeURIComponent(e)}.png?size=80`:null;return(0,F.jsx)(ac,{children:(0,F.jsx)(oc,{children:(0,F.jsxs)(Wm,{children:[(0,F.jsx)(Gm,{asChild:!0,children:(0,F.jsxs)(cc,{size:`lg`,className:`data-[state=open]:bg-accent/40`,children:[(0,F.jsx)(lh,{avatarUrl:a,initial:i}),(0,F.jsxs)(`div`,{"data-sidebar-label":!0,className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,F.jsx)(`span`,{className:`truncate font-semibold`,children:e??`—`}),(0,F.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:t??Y(r,`common.signedIn`)})]}),(0,F.jsx)(Dt,{"data-sidebar-label":!0,className:`ms-auto size-4 text-muted-foreground`,"aria-hidden":!0})]})}),(0,F.jsxs)(Km,{align:`end`,side:n?`bottom`:`right`,sideOffset:6,className:`w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg`,children:[(0,F.jsxs)(Jm,{className:`flex items-center gap-3 py-2`,children:[(0,F.jsx)(lh,{avatarUrl:a,initial:i,large:!0}),(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,F.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground`,children:e??`—`}),(0,F.jsx)(`span`,{className:`label-eyebrow truncate`,children:t??Y(r,`common.signedIn`)})]})]}),(0,F.jsx)(Ym,{}),(0,F.jsx)(qm,{asChild:!0,children:(0,F.jsxs)(`a`,{href:`/admin/preferences`,className:`flex items-center gap-2`,children:[(0,F.jsx)(hn,{className:`size-4`,"aria-hidden":!0}),Y(r,`preferences.page.open`)]})}),(0,F.jsx)(Ym,{}),(0,F.jsx)(qm,{asChild:!0,className:`text-destructive focus:text-destructive focus:bg-destructive/10`,children:(0,F.jsxs)(`button`,{type:`button`,onClick:uh,className:`flex w-full cursor-pointer items-center gap-2`,children:[(0,F.jsx)(en,{className:`size-4`,"aria-hidden":!0}),Y(r,`common.signOut`)]})})]})]})})})}function lh({avatarUrl:e,initial:t,large:n=!1}){let r=n?`size-9`:`size-8`,i=n?`text-sm`:`text-xs`;return(0,F.jsx)(`span`,{className:H(`shrink-0 inline-flex items-center justify-center rounded-lg`,`bg-primary/15 text-foreground/80 ring-1 ring-border`,r),"aria-hidden":!0,children:e?(0,F.jsx)(`img`,{src:e,alt:``,className:`size-full rounded-lg object-cover`,decoding:`async`}):(0,F.jsx)(`span`,{className:H(`font-medium`,i),children:t})})}function uh(){let e=document.createElement(`form`);e.method=`POST`,e.action=`/admin/logout`,document.body.appendChild(e),e.submit()}function dh({brand:e,groups:t,pathname:n,search:r,user:i}){let{variant:a}=Wn(),{direction:o}=J();return(0,F.jsxs)(Xs,{side:o===`rtl`?`right`:`left`,variant:a===`floating`?`sidebar`:a,children:[(0,F.jsx)($s,{children:(0,F.jsxs)(`div`,{className:`sidebar-chrome-row`,children:[(0,F.jsx)(el,{brand:e}),(0,F.jsx)(Zs,{})]})}),(0,F.jsx)(nc,{}),(0,F.jsx)(ec,{children:t.map((e,t)=>(0,F.jsx)(Zm,{group:e,pathname:n,search:r},e.title??`g-${t}`))}),(0,F.jsx)(nc,{}),(0,F.jsx)(tc,{children:(0,F.jsx)(ch,{login:i.login,role:i.role})})]})}function fh({login:e,role:t}){let{language:n}=J(),r=(e??`?`).charAt(0).toUpperCase(),i=e?`https://github.com/${encodeURIComponent(e)}.png?size=80`:null;return(0,F.jsxs)(Wm,{children:[(0,F.jsx)(Gm,{"aria-label":`Account menu`,className:H(`relative inline-flex size-8 items-center justify-center rounded-full`,`outline-hidden ring-1 ring-border`,`hover:ring-primary/40 transition-all`,`data-[state=open]:ring-primary`),children:(0,F.jsx)(ph,{avatarUrl:i,initial:r})}),(0,F.jsxs)(Km,{align:`end`,sideOffset:6,className:`w-56`,children:[(0,F.jsxs)(Jm,{className:`flex items-center gap-3 py-2`,children:[(0,F.jsx)(ph,{avatarUrl:i,initial:r,large:!0}),(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,F.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground`,children:e??`—`}),(0,F.jsx)(`span`,{className:`label-eyebrow truncate`,children:t??Y(n,`common.signedIn`)})]})]}),(0,F.jsx)(Ym,{}),(0,F.jsx)(qm,{asChild:!0,children:(0,F.jsxs)(`a`,{href:`/admin/preferences`,className:`flex items-center gap-2`,children:[(0,F.jsx)(hn,{className:`size-4`,"aria-hidden":!0}),Y(n,`preferences.page.open`)]})}),(0,F.jsx)(Ym,{}),(0,F.jsx)(qm,{asChild:!0,className:`text-destructive focus:text-destructive focus:bg-destructive/10`,children:(0,F.jsxs)(`button`,{type:`button`,onClick:mh,className:`flex w-full cursor-pointer items-center gap-2`,children:[(0,F.jsx)(en,{className:`size-4`,"aria-hidden":!0}),Y(n,`common.signOut`)]})})]})]})}function ph({avatarUrl:e,initial:t,large:n=!1}){let r=n?`size-9`:`size-8`,i=n?`text-sm`:`text-xs`;return(0,F.jsx)(`span`,{className:H(`shrink-0 inline-flex items-center justify-center rounded-full overflow-hidden`,`bg-primary/15 text-foreground/80`,r),"aria-hidden":!0,children:e?(0,F.jsx)(`img`,{src:e,alt:``,className:`size-full object-cover`,decoding:`async`}):(0,F.jsx)(`span`,{className:H(`font-medium`,i),children:t})})}function mh(){let e=document.createElement(`form`);e.method=`POST`,e.action=`/admin/logout`,document.body.appendChild(e),e.submit()}function hh(){let{language:e,setLanguage:t}=J(),n=Ac.find(t=>t.value===e)??Ac[0];return(0,F.jsxs)(Wm,{children:[(0,F.jsx)(Gm,{asChild:!0,children:(0,F.jsxs)(U,{type:`button`,variant:`ghost`,size:`sm`,className:`h-8 gap-2 rounded-full border border-border/60 bg-background/30 px-2.5`,"aria-label":Y(e,`preferences.language`),children:[(0,F.jsx)(Jt,{className:`size-4 text-primary`,"aria-hidden":!0}),(0,F.jsx)(`span`,{className:`hidden text-xs font-medium sm:inline`,children:n.nativeLabel})]})}),(0,F.jsxs)(Km,{align:`end`,className:`max-h-[min(28rem,80vh)] w-52 overflow-y-auto`,children:[(0,F.jsx)(Jm,{className:`label-eyebrow opacity-70`,children:Y(e,`preferences.language`)}),Ac.map(n=>(0,F.jsxs)(qm,{onSelect:()=>t(n.value),className:`justify-between`,children:[(0,F.jsx)(`span`,{children:n.nativeLabel}),(0,F.jsx)(wt,{"aria-hidden":!0,className:H(`size-4 text-primary`,n.value===e?`opacity-100`:`opacity-0`)})]},n.value))]})]})}function gh(){let{language:e,theme:t,setTheme:n}=J(),r=_h(e).find(e=>e.value===t),i=r?.icon??tn;return(0,F.jsxs)(Wm,{children:[(0,F.jsx)(Gm,{asChild:!0,children:(0,F.jsxs)(U,{type:`button`,variant:`ghost`,size:`sm`,className:`h-8 gap-2 rounded-full border border-border/60 bg-background/30 px-2.5`,"aria-label":Y(e,`preferences.appearance`),children:[(0,F.jsx)(i,{className:`size-4 text-primary`,"aria-hidden":!0}),(0,F.jsx)(`span`,{className:`hidden text-xs font-medium sm:inline`,children:r?.label??Y(e,`preferences.system`)})]})}),(0,F.jsxs)(Km,{align:`end`,className:`w-44`,children:[(0,F.jsx)(Jm,{className:`label-eyebrow opacity-70`,children:Y(e,`preferences.appearance`)}),_h(e).map(e=>{let r=e.icon;return(0,F.jsxs)(qm,{onSelect:()=>n(e.value),className:`justify-between`,children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(r,{className:`size-4`,"aria-hidden":!0}),e.label]}),(0,F.jsx)(wt,{"aria-hidden":!0,className:H(`size-4 text-primary`,e.value===t?`opacity-100`:`opacity-0`)})]},e.value)})]})]})}function _h(e){return[{value:`light`,label:Y(e,`preferences.light`),icon:vn},{value:`dark`,label:Y(e,`preferences.dark`),icon:nn},{value:`system`,label:Y(e,`preferences.system`),icon:tn}]}function vh({fixed:e=!1,className:t,children:n,user:r,site:i,publicUrl:a,onOpenGuide:o}){let{language:s}=J(),[c,l]=P.useState(!1);return P.useEffect(()=>{if(!e)return;let t=()=>l(window.scrollY>10);return t(),window.addEventListener(`scroll`,t,{passive:!0}),()=>window.removeEventListener(`scroll`,t)},[e]),(0,F.jsxs)(`header`,{"data-slot":`header`,"data-scrolled":c||void 0,className:H(`admin-statusbar z-20 flex h-14 shrink-0 items-center gap-3 px-4`,e?`sticky top-0 w-[inherit] transition-shadow`:`border-b border-border/40`,c&&`shadow-sm`,t),children:[(0,F.jsx)(Zs,{className:`-ms-1 md:hidden`}),i?(0,F.jsxs)(`div`,{className:`admin-site-status`,"aria-label":`Current admin site`,children:[(0,F.jsx)(`span`,{children:i.title}),i.subtitle?(0,F.jsx)(`small`,{children:i.subtitle}):null]}):null,a?(0,F.jsx)(U,{asChild:!0,variant:`secondary`,size:`sm`,className:`shrink-0`,children:(0,F.jsxs)(`a`,{href:a,target:`_blank`,rel:`noreferrer`,title:Y(s,`common.viewSite`),children:[(0,F.jsx)(Rt,{className:`size-3.5`,"aria-hidden":!0}),(0,F.jsx)(`span`,{className:`hidden sm:inline`,children:Y(s,`common.viewSite`)})]})}):null,n,r?(0,F.jsxs)(`div`,{className:H(`flex items-center gap-2`,n?``:`ms-auto`),children:[o?(0,F.jsxs)(U,{type:`button`,variant:`ghost`,size:`sm`,onClick:o,"data-tour":`guide-button`,title:Y(s,`guide.open`),"aria-label":Y(s,`guide.open`),children:[(0,F.jsx)(At,{className:`size-4`,"aria-hidden":!0}),(0,F.jsx)(`span`,{className:`hidden sm:inline`,children:Y(s,`guide.open`)})]}):null,(0,F.jsx)(hh,{}),(0,F.jsx)(gh,{}),(0,F.jsx)(fh,{login:r.login,role:r.role})]}):null]})}var yh=`content`;function bh({className:e}){return(0,F.jsx)(`a`,{href:`#${yh}`,className:H(`fixed inset-inline-start-3 top-3 z-[999]`,`-translate-y-52 rounded-md bg-primary px-3 py-2 text-sm font-medium`,`text-primary-foreground shadow`,`focus-visible:translate-y-0 transition-transform`,`outline-2 outline-offset-2 outline-ring/40`,e),children:`Skip to main content`})}function xh({fixed:e=!1,fluid:t=!1,className:n,children:r}){return(0,F.jsx)(`div`,{id:yh,"data-layout":e?`fixed`:`auto`,className:H(`@container/content`,`w-full px-4 py-6 sm:px-6`,e&&`flex grow flex-col overflow-hidden`,!t&&`mx-auto max-w-[1440px]`,`flex-1`,n),children:r})}function Sh(e,t){switch(t){case`draft`:return Y(e,`status.draft`);case`review`:return Y(e,`status.review`);case`published`:return Y(e,`status.published`);case`archived`:return Y(e,`status.archived`)}}var Ch=`mantle.admin.guide.closed`;function wh(e){let t={key:`reopen`,selector:`[data-tour="guide-button"]`};if(!e)return[t];let n=`/admin/c/${encodeURIComponent(e.name)}`;return[{key:`collections`,selector:`[data-tour="nav-c-${e.name}"]`},{key:`filters`,selector:`[data-tour="status-filter"]`,href:n},{key:`actions`,selector:`[data-tour="entry-actions"]`,href:n},t]}var Th={collections:{title:`guide.collections.title`,body:`guide.collections.body`},filters:{title:`guide.filters.title`,body:`guide.filters.body`},actions:{title:`guide.actions.title`,body:`guide.actions.body`},reopen:{title:`guide.reopen.title`,body:`guide.reopen.body`}};function Eh({language:e,firstCollection:t,onClose:n}){let[r,i]=P.useState(0),{location:a,navigate:o}=Oc(),s=P.useMemo(()=>wh(t),[t]),c=s[r]??s[0],l=Oh(c),u=P.useMemo(()=>kh(l),[l]),d=r===s.length-1;return P.useEffect(()=>{c.href&&`${a.pathname}${a.search}`!==c.href&&o(c.href)},[a.pathname,a.search,o,c]),(0,F.jsxs)(`div`,{className:`admin-guide-overlay`,role:`dialog`,"aria-modal":`false`,"aria-labelledby":`admin-guide-title`,children:[l?(0,F.jsx)(`div`,{className:`admin-guide-highlight`,style:{top:l.top-8,left:l.left-8,width:l.width+16,height:l.height+16}}):null,(0,F.jsxs)(`section`,{className:`admin-guide-popover`,style:u,children:[(0,F.jsxs)(`div`,{className:`admin-guide-progress`,children:[(0,F.jsx)(`span`,{children:r+1}),(0,F.jsx)(`small`,{children:s.length})]}),(0,F.jsxs)(`div`,{className:`admin-guide-copy`,children:[(0,F.jsx)(`p`,{className:`label-eyebrow`,children:`AotterMantle`}),(0,F.jsx)(`h2`,{id:`admin-guide-title`,children:Y(e,Th[c.key].title)}),(0,F.jsx)(`p`,{children:Y(e,Th[c.key].body)})]}),(0,F.jsxs)(`div`,{className:`admin-guide-controls`,children:[(0,F.jsx)(`button`,{type:`button`,className:`guide-icon-button`,onClick:()=>i(e=>Math.max(0,e-1)),disabled:r===0,title:Y(e,`guide.prev`),children:(0,F.jsx)(Tt,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsxs)(`button`,{type:`button`,className:`guide-primary-button`,onClick:()=>d?n():i(e=>Math.min(s.length-1,e+1)),children:[d?Y(e,`guide.finish`):Y(e,`guide.next`),d?null:(0,F.jsx)(Et,{className:`size-4`,"aria-hidden":!0})]}),(0,F.jsx)(`button`,{type:`button`,className:`guide-icon-button`,onClick:n,title:Y(e,`guide.close`),children:(0,F.jsx)(Pn,{className:`size-4`,"aria-hidden":!0})})]})]})]})}function Dh(){let{language:e}=J(),[t,n]=P.useState(()=>Ah());return{language:e,open:t,showGuide:P.useCallback(()=>{try{localStorage.removeItem(Ch)}catch{}n(!0)},[]),closeGuide:P.useCallback(()=>{try{localStorage.setItem(Ch,`1`)}catch{}n(!1)},[])}}function Oh(e){let[t,n]=P.useState(null);return P.useEffect(()=>{let t=0,r=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>{let t=document.querySelector(e.selector);if(!t){n(null);return}t.scrollIntoView({block:`nearest`,inline:`nearest`});let r=t.getBoundingClientRect();n({top:r.top,left:r.left,width:r.width,height:r.height})})};return r(),window.addEventListener(`resize`,r),window.addEventListener(`scroll`,r,!0),()=>{cancelAnimationFrame(t),window.removeEventListener(`resize`,r),window.removeEventListener(`scroll`,r,!0)}},[e]),t}function kh(e){if(typeof window>`u`)return{};if(!e)return{top:`5rem`,left:`50%`,transform:`translateX(-50%)`};let t=Math.min(380,Math.max(280,window.innerWidth-32)),n=e.left+e.width+t+24<window.innerWidth,r=e.left-t-24>0,i=Math.min(window.innerHeight-220,Math.max(16,e.top));return n?{top:i,left:e.left+e.width+18}:r?{top:i,left:e.left-t-18}:{top:Math.min(window.innerHeight-220,e.top+e.height+18),left:`50%`,transform:`translateX(-50%)`}}function Ah(){if(typeof window>`u`)return!1;try{return localStorage.getItem(Ch)!==`1`}catch{return!0}}var jh={title:`CMS`,subtitle:`admin`,href:`/admin`};function Mh({brand:e=jh,fixed:t=!1,fluid:n=!1,children:r}){let{pathname:i,search:a}=kc(),{language:o}=J(),s=Dh(),c=I({queryKey:[`me`],queryFn:()=>q.get(`/me`),retry:!1}),l=I({queryKey:[`collections`],queryFn:async()=>(await q.get(`/collections`)).collections}),u=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}),d=I(xc()),f=I(bc()),p=P.useMemo(()=>({...e,title:u.data?.brand??e.title,subtitle:u.data?.canonicalLocale??e.subtitle}),[e,u.data]),m=u.data?.canonicalLocale??null,h=P.useMemo(()=>Nh(l.data??[],d.data??[],f.data??[],o,m,c.data?.role??null),[l.data,d.data,f.data,o,m,c.data?.role]),g=P.useMemo(()=>{let e=(l.data??[]).find(e=>!e.parent);if(!e)return null;let t=gc(e.title,o,m)??_c(e.name);return{name:e.name,title:t}},[l.data,o,m]);return(0,F.jsx)(Un,{children:(0,F.jsxs)(Js,{defaultOpen:Kn()??!0,children:[(0,F.jsx)(bh,{}),(0,F.jsx)(dh,{brand:p,groups:h,pathname:i,search:a,user:{login:c.data?.login??null,role:c.data?.role??null}}),(0,F.jsxs)(Qs,{children:[(0,F.jsx)(vh,{fixed:!0,site:p,publicUrl:u.data?.publicUrl,onOpenGuide:s.showGuide,user:{login:c.data?.login??null,role:c.data?.role??null}}),(0,F.jsx)(xh,{fixed:t,fluid:n,children:r})]}),(0,F.jsx)(Qc,{}),s.open?(0,F.jsx)(Eh,{language:s.language,firstCollection:g,onClose:s.closeGuide}):null]})})}function Nh(e,t,n,r,i,a){let o=e.filter(e=>!e.parent),s=o.filter(e=>e.lifecycle!==`none`),c=o.filter(e=>e.lifecycle===`none`),l=e.some(e=>e.lifecycle===`editorial`),u={items:[{title:Y(r,`nav.home`),url:`/admin`,icon:Ut}]},d={title:Y(r,`nav.content`),items:s.map(e=>Ph(e,r,i))},f=c.length>0?{title:Y(r,`nav.operations`),items:c.map(e=>Ph(e,r,i))}:null,p=t.filter(e=>e.rowBindings.length===0),m=p.length>0?{title:Y(r,`nav.ops`),items:p.map(e=>({title:gc(e.title,r,i)??_c(e.name),icon:Nn,url:`/admin/ops#${e.name}`}))}:null,h=n.length>0?{title:Y(r,`nav.reports`),items:n.map(e=>({title:gc(e.title,r,i)??_c(e.name),icon:Ct,url:`/admin/views/${encodeURIComponent(e.name)}`}))}:null,g={title:Y(r,`nav.more`),items:[...l?[{title:Y(r,`nav.approvals`),url:`/admin/approvals`,icon:Mt}]:[],{title:Y(r,`nav.media`),url:`/admin/media`,icon:Kt},{title:Y(r,`nav.settings`),url:`/admin/settings`,icon:hn},...a===`owner`?[{title:Y(r,`nav.staff`),url:`/admin/staff`,icon:An}]:[]]};return[u,d,...f?[f]:[],...m?[m]:[],...h?[h]:[],g]}function Ph(e,t,n){let r={title:gc(e.title,t,n)??_c(e.name),icon:Bt,marker:e.hasTranslations?Vt:void 0},i=Fh(e);return i.length===0?{...r,url:`/admin/c/${e.name}`}:{...r,items:[{title:Y(t,`collection.filter.all`),url:`/admin/c/${e.name}`},...i.map(n=>({title:Sh(t,n),url:`/admin/c/${e.name}?status=${n}`}))]}}function Fh(e){return e.lifecycle===`editorial`?Sc:e.lifecycle===`none`?[]:Cc}function Ih(){return(0,F.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,F.jsxs)(`div`,{className:`glass-card w-full max-w-sm p-6`,children:[(0,F.jsx)(`div`,{className:`mb-4 h-4 w-24 animate-pulse rounded bg-muted`}),(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsx)(`div`,{className:`h-3 w-full animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-3 w-2/3 animate-pulse rounded bg-muted`})]})]})})}function Lh({error:e}){let{language:t}=J(),n=e instanceof Error?e.message:`Unknown error.`;return(0,F.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,F.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-sm p-8 text-center`,children:[(0,F.jsx)(`h1`,{className:`mb-2 text-xl`,children:Y(t,`auth.error.title`)}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n})]})})}function Rh({login:e}){let{language:t}=J();return(0,F.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,F.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-md p-8 text-center`,children:[(0,F.jsx)(`div`,{className:`mx-auto mb-3 inline-flex size-10 items-center justify-center rounded-full bg-destructive/10 text-destructive`,children:(0,F.jsx)(wn,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsx)(`h1`,{className:`mb-2 text-xl`,children:Y(t,`auth.accessDenied.title`)}),e?(0,F.jsxs)(`p`,{className:`mb-1 text-sm font-medium text-foreground`,children:[`GitHub: `,e]}):null,(0,F.jsx)(`p`,{className:`mb-1 text-sm text-muted-foreground`,children:Y(t,`auth.accessDenied.noStaff`)}),(0,F.jsx)(`p`,{className:`mb-6 text-sm text-muted-foreground`,children:Y(t,`auth.accessDenied.askOwner`)}),(0,F.jsxs)(U,{variant:`outline`,className:`w-full`,onClick:Xh,children:[(0,F.jsx)(en,{className:`me-2 size-4`,"aria-hidden":!0}),Y(t,`common.signOut`)]})]})})}var zh=`w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,Bh=`first:mt-0 mt-4`,Vh=`first:mt-0 first:border-t-0 first:pt-0 mt-6 border-t border-border pt-4`;function Hh(){let{language:e}=J(),t=new URLSearchParams(window.location.search).get(`return`)??`/admin`,[n,r]=P.useState(null),[i,a]=P.useState(null);return P.useEffect(()=>{let e=!1;async function t(){try{let t=await fetch(`/api/auth/methods`,{credentials:`include`});if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();if(e)return;r(n.methods??[])}catch(t){if(e)return;a(t instanceof Error?t.message:String(t))}}return t(),()=>{e=!0}},[]),(0,F.jsx)(`div`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,F.jsxs)(`div`,{className:`glass-card animate-rise w-full max-w-sm p-8`,children:[(0,F.jsx)(`p`,{className:`label-eyebrow mb-2`,children:Y(e,`auth.signIn.eyebrow`)}),(0,F.jsx)(`h1`,{className:`mb-2 text-xl`,children:Y(e,`auth.signIn.title`)}),i?(0,F.jsx)(`p`,{className:`mb-4 text-sm text-destructive`,children:Y(e,`auth.signIn.methodsLoadFailed`)}):null,n===null&&!i?(0,F.jsx)(`div`,{className:`space-y-2`,children:(0,F.jsx)(`div`,{className:`h-9 w-full animate-pulse rounded bg-muted`})}):null,n&&n.length===0?(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Y(e,`auth.signIn.noMethods`)}):null,n&&n.length>0?(0,F.jsx)(`div`,{children:n.map(e=>(0,F.jsx)(Uh,{method:e,returnTo:t},e.kind===`social`?`social:${e.provider}`:e.kind===`oauth`?`oauth:${e.providerId}`:e.kind))}):null]})})}function Uh({method:e,returnTo:t}){switch(e.kind){case`social`:return(0,F.jsx)(Gh,{provider:e.provider,returnTo:t});case`oauth`:return(0,F.jsx)(Kh,{providerId:e.providerId,displayName:e.displayName??e.providerId,returnTo:t});case`email-otp`:return(0,F.jsx)(qh,{returnTo:t});case`magic-link`:return(0,F.jsx)(Jh,{returnTo:t});default:return(0,F.jsx)(Yh,{kind:e.kind})}}var Wh={github:`GitHub`,google:`Google`,apple:`Apple`,"microsoft-entra-id":`Microsoft`,facebook:`Facebook`,discord:`Discord`,twitter:`Twitter / X`,linkedin:`LinkedIn`,spotify:`Spotify`,twitch:`Twitch`,gitlab:`GitLab`,tiktok:`TikTok`,reddit:`Reddit`,kick:`Kick`,vk:`VK`,naver:`Naver`,kakao:`Kakao`,line:`LINE`,slack:`Slack`,atlassian:`Atlassian`,zoom:`Zoom`,notion:`Notion`,figma:`Figma`,linear:`Linear`,vercel:`Vercel`,paypal:`PayPal`,huggingface:`Hugging Face`,cognito:`Cognito`,salesforce:`Salesforce`,polar:`Polar`,railway:`Railway`,roblox:`Roblox`,paybin:`Paybin`,wechat:`WeChat`,dropbox:`Dropbox`};function Gh({provider:e,returnTo:t}){let{language:n}=J(),r=Wh[e]??e,i=async()=>{let n=await fetch(`/api/auth/sign-in/social`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({provider:e,callbackURL:t})});if(!n.ok)return;let r=await n.json();r.url&&(window.location.href=r.url)};return(0,F.jsx)(`div`,{className:Bh,children:(0,F.jsx)(U,{onClick:()=>void i(),className:`w-full`,children:Y(n,`auth.signIn.method.social.button`,{provider:r})})})}function Kh({providerId:e,displayName:t,returnTo:n}){let{language:r}=J(),i=async()=>{let t=await fetch(`/api/auth/sign-in/oauth2`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({providerId:e,callbackURL:n})});if(!t.ok)return;let r=await t.json();r.url&&(window.location.href=r.url)};return(0,F.jsx)(`div`,{className:Bh,children:(0,F.jsx)(U,{onClick:()=>void i(),className:`w-full`,children:Y(r,`auth.signIn.method.oauth.button`,{provider:t})})})}function qh({returnTo:e}){let{language:t}=J(),[n,r]=P.useState(`email`),[i,a]=P.useState(``),[o,s]=P.useState(``),[c,l]=P.useState(!1),[u,d]=P.useState(null),f=async e=>{l(!0),d(null);try{await e()}finally{l(!1)}};return(0,F.jsxs)(`div`,{className:Vh,children:[(0,F.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:Y(t,`auth.signIn.method.email-otp.body`)}),n===`email`?(0,F.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),i&&f(async()=>{if(!(await fetch(`/api/auth/email-otp/send-verification-otp`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:i,type:`sign-in`})})).ok){d(Y(t,`auth.signIn.method.email-otp.sendFailed`));return}r(`otp`)})},className:`space-y-2`,children:[(0,F.jsx)(`label`,{htmlFor:`signin-email`,className:`sr-only`,children:Y(t,`auth.signIn.method.email-otp.emailLabel`)}),(0,F.jsx)(`input`,{id:`signin-email`,type:`email`,value:i,onChange:e=>a(e.currentTarget.value),placeholder:Y(t,`auth.signIn.method.email-otp.emailPlaceholder`),required:!0,autoComplete:`email`,className:zh}),(0,F.jsx)(U,{type:`submit`,className:`w-full`,disabled:c||!i,children:Y(t,`auth.signIn.method.email-otp.sendButton`)})]}):(0,F.jsxs)(`form`,{onSubmit:n=>{n.preventDefault(),o&&f(async()=>{if(!(await fetch(`/api/auth/sign-in/email-otp`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:i,otp:o})})).ok){d(Y(t,`auth.signIn.method.email-otp.verifyFailed`));return}window.location.assign(e)})},className:`space-y-2`,children:[(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:Y(t,`auth.signIn.method.email-otp.sentTo`,{email:i})}),(0,F.jsx)(`label`,{htmlFor:`signin-otp`,className:`sr-only`,children:Y(t,`auth.signIn.method.email-otp.otpLabel`)}),(0,F.jsx)(`input`,{id:`signin-otp`,type:`text`,inputMode:`numeric`,autoComplete:`one-time-code`,value:o,onChange:e=>s(e.currentTarget.value),placeholder:Y(t,`auth.signIn.method.email-otp.otpPlaceholder`),required:!0,className:zh}),(0,F.jsx)(U,{type:`submit`,className:`w-full`,disabled:c||!o,children:Y(t,`auth.signIn.method.email-otp.verifyButton`)}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>r(`email`),className:`text-xs text-muted-foreground underline-offset-2 hover:underline`,children:Y(t,`auth.signIn.method.email-otp.back`)})]}),u?(0,F.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:u}):null]})}function Jh({returnTo:e}){let{language:t}=J(),[n,r]=P.useState(``),[i,a]=P.useState(!1),[o,s]=P.useState(!1),[c,l]=P.useState(null),u=async e=>{a(!0),l(null);try{await e()}finally{a(!1)}};return(0,F.jsxs)(`div`,{className:Vh,children:[(0,F.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:Y(t,`auth.signIn.method.magic-link.body`)}),o?(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsx)(`p`,{className:`text-sm text-foreground`,children:Y(t,`auth.signIn.method.magic-link.sentTo`,{email:n})}),(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:Y(t,`auth.signIn.method.magic-link.clickHint`)}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>{s(!1),r(``)},className:`text-xs text-muted-foreground underline-offset-2 hover:underline`,children:Y(t,`auth.signIn.method.magic-link.anotherEmail`)})]}):(0,F.jsxs)(`form`,{onSubmit:r=>{r.preventDefault(),n&&u(async()=>{if(!(await fetch(`/api/auth/sign-in/magic-link`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:n,callbackURL:e})})).ok){l(Y(t,`auth.signIn.method.magic-link.sendFailed`));return}s(!0)})},className:`space-y-2`,children:[(0,F.jsx)(`label`,{htmlFor:`signin-mlink-email`,className:`sr-only`,children:Y(t,`auth.signIn.method.magic-link.emailLabel`)}),(0,F.jsx)(`input`,{id:`signin-mlink-email`,type:`email`,value:n,onChange:e=>r(e.currentTarget.value),placeholder:Y(t,`auth.signIn.method.magic-link.emailPlaceholder`),required:!0,autoComplete:`email`,className:zh}),(0,F.jsx)(U,{type:`submit`,className:`w-full`,disabled:i||!n,children:Y(t,`auth.signIn.method.magic-link.sendButton`)})]}),c?(0,F.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:c}):null]})}function Yh({kind:e}){let{language:t}=J();return(0,F.jsx)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:Y(t,`auth.signIn.unknownMethod`,{kind:e})})}function Xh(){fetch(`/api/auth/sign-out`,{method:`POST`,credentials:`include`}).then(()=>{window.location.href=`/admin/sign-in`})}function Zh({eyebrow:e,title:t,description:n,actions:r}){return(0,F.jsxs)(`div`,{className:`mb-6 flex flex-wrap items-end justify-between gap-4`,children:[(0,F.jsxs)(`div`,{className:`min-w-0`,children:[e?(0,F.jsx)(`p`,{className:`label-eyebrow mb-1`,children:e}):null,(0,F.jsx)(`h1`,{className:`text-2xl`,children:t}),n?(0,F.jsx)(`div`,{className:`mt-1 max-w-3xl text-sm text-muted-foreground`,children:n}):null]}),r?(0,F.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:r}):null]})}function Qh({id:e,className:t,children:n}){return(0,F.jsx)(`section`,{id:e,className:H(`glass-card p-5`,t),children:n})}function $h({icon:e=Ot,title:t,description:n,action:r}){return(0,F.jsxs)(`div`,{className:`rounded-lg border border-dashed border-border p-8 text-center`,children:[(0,F.jsx)(`div`,{className:`mx-auto mb-3 inline-flex size-10 items-center justify-center rounded-full bg-accent text-accent-foreground`,children:(0,F.jsx)(e,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsx)(`h2`,{className:`text-lg`,children:t}),n?(0,F.jsx)(`p`,{className:`mx-auto mt-1 max-w-md text-sm text-muted-foreground`,children:n}):null,r?(0,F.jsx)(`div`,{className:`mt-4`,children:r}):null]})}function eg({error:e}){let{language:t}=J(),n=e instanceof pc&&e.status===401;if(P.useEffect(()=>{if(!n||typeof window>`u`)return;let e=window.location.pathname+window.location.search;window.location.href=`/admin/sign-in?return=${encodeURIComponent(e)}`},[n]),n)return null;let r=e instanceof Error?e.message:`Unknown error.`;return(0,F.jsxs)(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive`,children:[Y(t,`common.failedToLoad`),`: `,r]})}function tg({error:e}){let{language:t}=J(),n=e instanceof pc&&e.status===401;if(P.useEffect(()=>{if(!n||typeof window>`u`)return;let e=window.location.pathname+window.location.search;window.location.href=`/admin/sign-in?return=${encodeURIComponent(e)}`},[n]),n)return null;let r=e instanceof Error?e.message:String(e);return(0,F.jsxs)(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive`,children:[(0,F.jsx)(`p`,{children:Y(t,`ops.error.executionFailed`)}),(0,F.jsxs)(`details`,{className:`group mt-2`,children:[(0,F.jsx)(`summary`,{className:`inline-flex cursor-pointer list-none items-center rounded-md border border-destructive/30 bg-card/40 px-2.5 py-1 text-xs font-semibold text-destructive/80 transition hover:bg-destructive/10`,children:Y(t,`ops.error.detailsLabel`)}),(0,F.jsx)(`p`,{className:`mt-2 max-w-3xl whitespace-pre-wrap break-words rounded-md border border-destructive/20 bg-card/30 p-3 font-mono text-xs leading-relaxed text-destructive/90`,children:r})]})]})}function ng({description:e,summaryLabel:t,collapsedIntro:n}){return rg(e)?(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsx)(`p`,{children:n}),(0,F.jsxs)(`details`,{className:`group`,children:[(0,F.jsx)(`summary`,{className:`inline-flex cursor-pointer list-none items-center rounded-md border border-border bg-card/70 px-2.5 py-1 text-xs font-semibold text-foreground/70 transition hover:bg-accent hover:text-accent-foreground`,children:t}),(0,F.jsx)(`p`,{className:`mt-2 max-w-3xl rounded-md border border-border bg-card/55 p-3 text-xs leading-relaxed text-muted-foreground`,children:e})]})]}):(0,F.jsx)(F.Fragment,{children:e})}function rg(e){return e.length>180||e.includes("`")}var ig=[on,zt,Ft];function ag(){let{language:e}=J(),t=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}),n=I({queryKey:[`collections`],queryFn:async()=>(await q.get(`/collections`)).collections}),r=(n.data??[]).filter(e=>!e.parent),i=t.data,a=i?.canonicalLocale??null;return(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(Zh,{eyebrow:Y(e,`console.eyebrow`),title:i?.brand??`AotterMantle`,description:i?Y(e,`console.description`,{title:i.title}):Y(e,`console.descriptionFallback`),actions:i?.publicUrl?(0,F.jsx)(U,{asChild:!0,variant:`outline`,children:(0,F.jsxs)(`a`,{href:i.publicUrl,target:`_blank`,rel:`noreferrer`,children:[(0,F.jsx)(Vt,{className:`size-4`,"aria-hidden":!0}),Y(e,`common.viewSite`)]})}):null}),(0,F.jsx)(`div`,{className:`grid grid-cols-1 gap-4`,children:(0,F.jsxs)(Qh,{className:`admin-dashboard-panel`,children:[(0,F.jsxs)(`div`,{className:`mb-4 flex items-start gap-3`,children:[(0,F.jsx)(`div`,{className:`rounded-xl bg-primary/15 p-2 text-primary`,children:(0,F.jsx)(on,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-lg`,children:Y(e,`console.workspace.title`)}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Y(e,`console.workspace.body`)})]})]}),(0,F.jsx)(`div`,{className:`grid grid-cols-1 gap-2 sm:grid-cols-3`,children:r.slice(0,3).map((t,n)=>(0,F.jsx)(og,{href:`/admin/c/${encodeURIComponent(t.name)}`,icon:ig[n%ig.length],label:gc(t.title,e,a)??t.name},t.name))})]})}),(0,F.jsxs)(`section`,{children:[(0,F.jsx)(Zh,{eyebrow:Y(e,`console.collections.eyebrow`),title:Y(e,`console.collections.title`),description:Y(e,`console.collections.body`)}),n.isLoading&&(0,F.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[0,1,2].map(e=>(0,F.jsx)(`div`,{className:`glass-card h-36 animate-pulse`},e))}),n.isError&&(0,F.jsx)(eg,{error:n.error}),n.data&&r.length===0&&(0,F.jsx)($h,{icon:Ft,title:Y(e,`console.collections.emptyTitle`),description:Y(e,`console.collections.emptyBody`)}),r.length>0&&(0,F.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:r.map(t=>{let n=gc(t.title,e,a)??t.name,r=gc(t.description,e,a);return(0,F.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(t.name)}`,className:`glass-card card-lift block p-5 no-underline text-foreground`,children:[(0,F.jsxs)(`div`,{className:`mb-3 flex items-start justify-between gap-3`,children:[(0,F.jsxs)(`div`,{className:`min-w-0`,children:[(0,F.jsx)(`h2`,{className:`truncate text-lg`,title:n,children:n}),(0,F.jsx)(`p`,{className:`font-mono text-xs text-muted-foreground`,children:t.name})]}),(0,F.jsx)(zt,{className:`size-5 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),r?(0,F.jsx)(`p`,{className:`line-clamp-2 text-sm text-muted-foreground`,children:sg(r)}):(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Y(e,`console.collections.noDescription`)}),(0,F.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-2`,children:[t.hasTranslations?(0,F.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--info)_16%,transparent)] text-[color:var(--info)]`,children:`i18n`}):null,t.mediaFields?.length?(0,F.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--success)_16%,transparent)] text-[color:var(--success)]`,children:`media`}):null]})]},t.name)})})]})]})}function og({href:e,icon:t,label:n}){return(0,F.jsxs)(`a`,{href:e,title:n,className:`quick-action`,children:[(0,F.jsx)(t,{className:`size-4`,"aria-hidden":!0}),(0,F.jsx)(`span`,{children:n})]})}function sg(e){let t=/^(.*?(?:。|\. ))/.exec(e);return(t?t[1]:e).trim()}function cg({children:e,className:t}){return(0,F.jsx)(`div`,{className:H(`glass-card overflow-hidden`,t),children:(0,F.jsx)(`div`,{className:`overflow-x-auto`,children:(0,F.jsx)(`table`,{className:`w-full min-w-[720px] text-sm`,children:e})})})}function lg({children:e,className:t}){return(0,F.jsx)(`th`,{className:H(`label-eyebrow px-3 py-2 text-left`,t),children:e})}function ug({children:e,className:t}){return(0,F.jsx)(`td`,{className:H(`px-3 py-2 align-middle`,t),children:e})}function dg({...e}){return(0,F.jsx)(fs,{"data-slot":`dialog`,...e})}function fg({...e}){return(0,F.jsx)(vs,{"data-slot":`dialog-portal`,...e})}function pg({className:e,...t}){return(0,F.jsx)(bs,{"data-slot":`dialog-overlay`,className:H(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,e),...t})}function mg({className:e,children:t,showCloseButton:n=!0,...r}){return(0,F.jsxs)(fg,{children:[(0,F.jsx)(pg,{}),(0,F.jsxs)(ws,{"data-slot":`dialog-content`,className:H(`fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl border border-[var(--glass-border)] bg-background p-6 shadow-[var(--glass-shadow-lg)] transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-200 data-[state=open]:animate-in data-[state=open]:duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`,e),...r,children:[t,n&&(0,F.jsxs)(Ns,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,F.jsx)(Pn,{className:`size-4`}),(0,F.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function hg({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`dialog-header`,className:H(`flex flex-col gap-1.5`,e),...t})}function gg({className:e,...t}){return(0,F.jsx)(`div`,{"data-slot":`dialog-footer`,className:H(`flex justify-end gap-2`,e),...t})}function _g({className:e,...t}){return(0,F.jsx)(ks,{"data-slot":`dialog-title`,className:H(`font-semibold text-foreground`,e),...t})}function vg({className:e,...t}){return(0,F.jsx)(js,{"data-slot":`dialog-description`,className:H(`text-sm text-muted-foreground`,e),...t})}var yg=P.createContext(null);function bg({children:e}){let{language:t}=J(),[n,r]=P.useState(null),i=P.useCallback(e=>new Promise(t=>{r({...e,resolve:t})}),[]);function a(e){n?.resolve(e),r(null)}let o=P.useMemo(()=>({confirm:i}),[i]);return(0,F.jsxs)(yg.Provider,{value:o,children:[e,(0,F.jsx)(dg,{open:n!=null,onOpenChange:e=>{e||a(!1)},children:(0,F.jsxs)(mg,{children:[(0,F.jsxs)(hg,{children:[(0,F.jsx)(_g,{children:Y(t,`confirm.title`)}),(0,F.jsx)(vg,{children:n?.description})]}),(0,F.jsxs)(gg,{children:[(0,F.jsx)(U,{type:`button`,variant:`secondary`,onClick:()=>a(!1),children:Y(t,`confirm.cancel`)}),(0,F.jsx)(U,{type:`button`,variant:n?.variant??`destructive`,onClick:()=>a(!0),children:n?.confirmLabel??Y(t,`confirm.confirm`)})]})]})})]})}function xg(){let e=P.useContext(yg);if(!e)throw Error(`useConfirm() must be used within <ConfirmProvider>.`);return e.confirm}var Sg={draft:`bg-muted text-muted-foreground`,review:`bg-[color-mix(in_srgb,var(--warning)_18%,transparent)] text-[color:var(--warning)]`,approved:`bg-[color-mix(in_srgb,var(--success)_18%,transparent)] text-[color:var(--success)]`,scheduled:`bg-[color-mix(in_srgb,var(--info)_18%,transparent)] text-[color:var(--info)]`,published:`bg-[color-mix(in_srgb,var(--success)_18%,transparent)] text-[color:var(--success)]`,archived:`bg-secondary text-muted-foreground`},Cg={draft:`status.draft`,review:`status.review`,published:`status.published`,archived:`status.archived`};function wg({status:e,className:t}){let{language:n}=J(),r=Tg(e),i=Cg[e];return(0,F.jsx)(`span`,{className:H(`badge-status`,r?Sg[e]:`bg-accent text-accent-foreground`,t),children:i?Y(n,i):e})}function Tg(e){return e in Sg}var Eg=new Intl.DateTimeFormat(void 0,{dateStyle:`short`,timeStyle:`short`});function Dg(e){return e?.[`x-mcp-hint`]===`money-minor`}function Og(e){return e?.[`x-mcp-hint`]===`timestamp-ms`}function kg(e,t){if(typeof e!=`number`||!Number.isFinite(e))return null;let n=e/100;if(typeof t==`string`&&t)try{return new Intl.NumberFormat(void 0,{style:`currency`,currency:t}).format(n)}catch{}return new Intl.NumberFormat().format(n)}function Ag(e){if(typeof e!=`number`||!Number.isFinite(e))return null;try{return Eg.format(new Date(e))}catch{return null}}function jg(e,t){return e===`money-minor`?Y(t,`field.hint.moneyMinor`):e===`timestamp-ms`?Y(t,`field.hint.timestampMs`):e}function Mg(e,t=8){return e.length<=t?e:e.slice(-t)}function Ng(e){if(e instanceof pc){let t=e.body?.diagnostic?.message;if(t)return Error(t)}return e}var Pg=P.createContext(null),Fg=3200;function Ig({children:e}){let[t,n]=P.useState([]),r=P.useRef(0),i=P.useCallback(e=>{let t=r.current++;n(n=>[...n,{id:t,message:e}]),window.setTimeout(()=>{n(e=>e.filter(e=>e.id!==t))},Fg)},[]),a=P.useMemo(()=>({showToast:i}),[i]);return(0,F.jsxs)(Pg.Provider,{value:a,children:[e,(0,F.jsx)(`div`,{className:`pointer-events-none fixed bottom-4 right-4 z-[100] flex flex-col gap-2`,role:`status`,"aria-live":`polite`,children:t.map(e=>(0,F.jsxs)(`div`,{className:H(`pointer-events-auto flex items-center gap-2 rounded-lg border border-[var(--glass-border)] bg-background px-4 py-3 text-sm shadow-[var(--glass-shadow-lg)]`,`animate-in slide-in-from-bottom-2 fade-in-0 duration-200`),children:[(0,F.jsx)(kt,{className:`size-4 shrink-0 text-[color:var(--success)]`,"aria-hidden":!0}),(0,F.jsx)(`span`,{className:`text-foreground`,children:e.message})]},e.id))})]})}function Lg(){let e=P.useContext(Pg);if(!e)throw Error(`useToast() must be used within <ToastProvider>.`);return e}async function Rg(e){let t=zg(e.purposes,e.preferredPurpose);if(!t)throw Error(`No media upload purpose is configured for this site.`);let n=await Hg(e.file,t,e.language??`en`),r=await q.post(`/media/uploads`,{filename:e.file.name,purpose:t.name,variants:n.map(e=>({mimeType:e.mimeType,byteSize:e.blob.size,role:e.role})),alt:e.alt??Qg(e.file),caption:e.caption});for(let e of n){let t=r.capabilities.find(t=>t.mimeType===e.mimeType&&t.role===e.role);if(!t)throw Error(`Upload capability missing for ${e.mimeType}.`);await fetch(t.uploadUrl,{method:t.method,headers:t.requiredHeaders??{"Content-Type":e.mimeType},body:e.blob})}return q.post(`/media/uploads/${encodeURIComponent(r.uploadGroupId)}/commit`,{alt:e.alt??Qg(e.file),caption:e.caption})}function zg(e,t){if(t){let n=e.find(e=>e.name===t);if(n)return n}return e.find(e=>e.name===`content`)??e[0]??null}function Bg(e,t,n){let r=n[n.length-1]??``,i=Zg(t.replace(/-translations$/,``)),a=[];/cover/i.test(r)&&a.push(`${i}-cover`),/image|asset|media/i.test(r)&&(a.push(`${i}-image`),a.push(`${i}-media`)),a.push(`content`);for(let t of a)if(e.some(e=>e.name===t))return t;return e[0]?.name}function Vg(e){return(e.variants.find(e=>e.role===`primary`)??e.variants[0])?.publicUrl??null}async function Hg(e,t,n){if(!e.type.startsWith(`image/`)||e.type===`image/svg+xml`)throw Error(`Only raster image uploads are supported in the admin UI.`);let r=Ug(t.required);if(r.length===0)throw Error(`Media purpose '${t.name}' does not declare required image variants.`);let i=await createImageBitmap(e);try{let e=await Promise.all(r.map(e=>qg(e,t,n))),a=e.find(Xg)??e[0],o=[];for(let r of e){let e=t.maxBytes[r]??2**53-1;o.push({mimeType:r,role:r===a?`primary`:`alternate`,blob:await Jg(i,r,e,n)})}return o}finally{i.close?.()}}function Ug(e){return e.map(e=>e.split(`,`).map(Wg).filter(e=>!!e)).filter(e=>e.length>0)}function Wg(e){let t=e.trim().toLowerCase();return t?t===`jpg`||t===`jpeg`||t===`image/jpg`?`image/jpeg`:t===`png`?`image/png`:t===`webp`?`image/webp`:t===`avif`?`image/avif`:t===`gif`?`image/gif`:t.includes(`/`)?t:null:null}var Gg=new Map;function Kg(e){let t=Gg.get(e);return t||(t=(async()=>{try{let t=document.createElement(`canvas`);return t.width=1,t.height=1,(await new Promise(n=>t.toBlob(n,e)))?.type===e}catch{return!0}})(),Gg.set(e,t)),t}async function qg(e,t,n){for(let n of e)if(n.startsWith(`image/`)&&t.maxBytes[n]!=null&&await Kg(n))return n;let r=e.find(e=>e.startsWith(`image/`)&&t.maxBytes[e]!=null);throw Error(Y(n,`media.encoderUnsupported`,{mime:r??e[0]??`?`}))}async function Jg(e,t,n,r){let i=1,a=t===`image/jpeg`?[.88,.78,.68,.58]:[.78,.68,.58,.48],o=null;for(let s=0;s<6;s+=1){for(let c of a){let a=await Yg(e,t,i,c);if(a.type!==t){if(s===0&&o===null)throw Error(Y(r,`media.encoderUnsupported`,{mime:t}));continue}if(o=a,a.size<=n)return a}i*=.82}if(o)return o;throw Error(`This browser cannot encode ${t}.`)}async function Yg(e,t,n,r){let i=document.createElement(`canvas`);i.width=Math.max(1,Math.round(e.width*n)),i.height=Math.max(1,Math.round(e.height*n));let a=i.getContext(`2d`);if(!a)throw Error(`Could not prepare image upload.`);a.drawImage(e,0,0,i.width,i.height);let o=await new Promise(e=>i.toBlob(e,t,r));if(!o)throw Error(`This browser cannot encode ${t}.`);return o}function Xg(e){return e===`image/jpeg`||e===`image/png`||e===`image/gif`}function Zg(e){return e.endsWith(`ies`)?`${e.slice(0,-3)}y`:e.endsWith(`ses`)?e.slice(0,-2):e.endsWith(`s`)&&e.length>1?e.slice(0,-1):e}function Qg(e){return e.name.replace(/\.[^.]+$/,``)}function $g({value:e,onChange:t,label:n,mode:r,onModeChange:i,compact:a=!1,showPreview:o=!1}){let{language:s}=J(),c=P.useRef(null),l=P.useRef(null),[u,d]=P.useState(!1),[f,p]=P.useState(!1),[m,h]=P.useState(!1),[g,_]=P.useState(null),v=r??`rich`,y=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}),b=P.useCallback((n,r=``,i=``)=>{let a=c.current;if(!a){t(`${e}${n}${i}${r}`);return}let o=a.selectionStart,s=a.selectionEnd,l=e.slice(o,s)||i;t(`${e.slice(0,o)}${n}${l}${r}${e.slice(s)}`),window.requestAnimationFrame(()=>{a.focus();let e=o+n.length,t=e+l.length;a.setSelectionRange(e,t)})},[t,e]),x=P.useCallback(t=>{let n=e.endsWith(`
|
|
136
136
|
`)||e.length===0?``:`
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
`;b(`${n}${t}`,``,``)},[b,e]);async function S(e){h(!0),_(null);try{let t=await Rg({file:e,purposes:y.data?.media?.purposes??[],preferredPurpose:`content`,language:s}),n=Vg(t);if(!n)throw Error(`Uploaded media has no public URL.`);C(n,t.alt??e.name)}catch(e){_(e instanceof Error?e.message:String(e))}finally{h(!1),l.current&&(l.current.value=``)}}function C(e,t){x(``)}function w(e){let t=s_(e);x(t),p(!1)}function T(e){if(e!==`paragraph`){if(/^h[1-6]$/.test(e)){let t=Number(e.slice(1));b(`${`#`.repeat(t)} `,``,Y(s,`editor.headingPlaceholder`));return}e===`quote`&&x(`> `),e===`code`&&b("```\n","\n```",`code`)}}return(0,F.jsxs)(`div`,{className:`rich-editor`,children:[(0,F.jsxs)(`div`,{className:`rich-editor-topline`,children:[n?(0,F.jsx)(`span`,{className:`text-sm font-semibold`,children:n}):null,i?(0,F.jsx)(`div`,{className:`segmented-control rich-editor-modes`,children:[`rich`,`markdown`,`html`].map(e=>(0,F.jsx)(`button`,{type:`button`,"data-active":v===e,onClick:()=>i(e),children:t_(s,e)},e))}):null]}),(0,F.jsxs)(`div`,{className:`rich-editor-toolbar`,"aria-label":Y(s,`editor.toolbar`),children:[(0,F.jsx)(e_,{title:Y(s,`editor.undo`),onClick:()=>o_(`undo`,c.current),children:(0,F.jsx)(Dn,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.redo`),onClick:()=>o_(`redo`,c.current),children:(0,F.jsx)(un,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(n_,{}),(0,F.jsx)(e_,{title:Y(s,`editor.aiClean`),onClick:()=>x(`> 重點提示:`),children:(0,F.jsx)(Mn,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.uploadImage`),onClick:()=>l.current?.click(),disabled:m,children:(0,F.jsx)(On,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(`input`,{ref:l,type:`file`,accept:`image/*`,className:`hidden`,onChange:e=>{let t=e.currentTarget.files?.[0];t&&S(t)}}),(0,F.jsx)(n_,{}),(0,F.jsxs)(`label`,{className:`rich-editor-select`,title:Y(s,`editor.textStyle`),children:[(0,F.jsx)(Tn,{className:`size-4`,"aria-hidden":!0}),(0,F.jsxs)(`select`,{onChange:e=>{T(e.target.value),e.target.value=`paragraph`},defaultValue:`paragraph`,children:[(0,F.jsx)(`option`,{value:`paragraph`,children:`Paragraph`}),(0,F.jsx)(`option`,{value:`h1`,children:`H1`}),(0,F.jsx)(`option`,{value:`h2`,children:`H2`}),(0,F.jsx)(`option`,{value:`h3`,children:`H3`}),(0,F.jsx)(`option`,{value:`h4`,children:`H4`}),(0,F.jsx)(`option`,{value:`h5`,children:`H5`}),(0,F.jsx)(`option`,{value:`h6`,children:`H6`}),(0,F.jsx)(`option`,{value:`quote`,children:`Quote`}),(0,F.jsx)(`option`,{value:`code`,children:`Code`})]})]}),(0,F.jsx)(n_,{}),(0,F.jsx)(e_,{title:Y(s,`editor.bold`),onClick:()=>b(`**`,`**`,Y(s,`editor.selectedText`)),children:(0,F.jsx)(St,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.italic`),onClick:()=>b(`_`,`_`,Y(s,`editor.selectedText`)),children:(0,F.jsx)(qt,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.underline`),onClick:()=>b(`<u>`,`</u>`,Y(s,`editor.selectedText`)),children:(0,F.jsx)(En,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.strike`),onClick:()=>b(`~~`,`~~`,Y(s,`editor.selectedText`)),children:(0,F.jsx)(_n,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.inlineCode`),onClick:()=>b("`","`",`code`),children:(0,F.jsx)(Nt,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.textColor`),onClick:()=>b(`<span class="text-accent">`,`</span>`,Y(s,`editor.selectedText`)),children:(0,F.jsx)(xt,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.highlight`),onClick:()=>b(`<mark>`,`</mark>`,Y(s,`editor.selectedText`)),children:(0,F.jsx)(Ht,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.palette`),onClick:()=>b(`<span class="brand-tone">`,`</span>`,Y(s,`editor.selectedText`)),children:(0,F.jsx)(rn,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(n_,{}),(0,F.jsx)(e_,{title:Y(s,`editor.alignLeft`),onClick:()=>x(`<p style="text-align:left"></p>`),children:(0,F.jsx)(Sn,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.alignCenter`),onClick:()=>x(`<p style="text-align:center"></p>`),children:(0,F.jsx)(bn,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.alignRight`),onClick:()=>x(`<p style="text-align:right"></p>`),children:(0,F.jsx)(xn,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.bulletList`),onClick:()=>x(`- `),children:(0,F.jsx)($t,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.numberList`),onClick:()=>x(`1. `),children:(0,F.jsx)(Qt,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.checkList`),onClick:()=>x(`- [ ] `),children:(0,F.jsx)(Yt,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.indent`),onClick:()=>b(` `,``,``),children:(0,F.jsx)(Zt,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(n_,{}),(0,F.jsx)(e_,{title:Y(s,`editor.link`),onClick:()=>b(`[`,`](https://)`,Y(s,`editor.linkText`)),children:(0,F.jsx)(Xt,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.table`),onClick:()=>x(`| 欄位 | 說明 |
|
|
139
139
|
| --- | --- |
|
|
140
140
|
| | |`),children:(0,F.jsx)(yn,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.mediaLibrary`),onClick:()=>d(!0),children:(0,F.jsx)(Kt,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.imageUrl`),onClick:()=>d(!0),children:(0,F.jsx)(Gt,{className:`size-4`,"aria-hidden":!0})}),(0,F.jsx)(e_,{title:Y(s,`editor.videoUrl`),onClick:()=>p(!0),children:(0,F.jsx)(jn,{className:`size-4`,"aria-hidden":!0})})]}),(0,F.jsx)(`textarea`,{ref:c,className:a?`admin-textarea admin-textarea-compact rich-editor-textarea`:`admin-textarea rich-editor-textarea`,value:e,onChange:e=>t(e.target.value)}),g?(0,F.jsx)(`p`,{className:`text-xs text-destructive`,children:g}):null,m?(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:Y(s,`editor.uploading`)}):null,o?(0,F.jsx)(`div`,{className:`editor-preview`,dangerouslySetInnerHTML:{__html:d_(e,v)}}):null,u?(0,F.jsx)(r_,{language:s,onClose:()=>d(!1),onInsert:(e,t)=>{C(e,t),d(!1)}}):null,f?(0,F.jsx)(i_,{language:s,onClose:()=>p(!1),onInsert:w}):null]})}function e_({title:e,onClick:t,disabled:n,children:r}){return(0,F.jsx)(`button`,{type:`button`,title:e,"aria-label":e,onClick:t,disabled:n,children:r})}function t_(e,t){return t===`html`?Y(e,`editor.mode.html`):t===`markdown`?Y(e,`editor.mode.markdown`):Y(e,`editor.mode.rich`)}function n_(){return(0,F.jsx)(`span`,{className:`rich-editor-divider`,"aria-hidden":!0})}function r_({language:e,onClose:t,onInsert:n}){let[r,i]=P.useState(``),[a,o]=P.useState(``);return(0,F.jsx)(`div`,{className:`rich-editor-dialog-backdrop`,role:`presentation`,children:(0,F.jsxs)(`div`,{className:`rich-editor-dialog`,role:`dialog`,"aria-modal":`true`,"aria-label":Y(e,`editor.mediaLibrary`),children:[(0,F.jsx)(a_,{title:Y(e,`editor.insertImage`),onClose:t}),(0,F.jsxs)(`div`,{className:`grid gap-3`,children:[(0,F.jsxs)(`label`,{className:`grid gap-1 text-sm font-medium`,children:[Y(e,`editor.imageUrl`),(0,F.jsx)(`input`,{className:`admin-input`,value:r,onChange:e=>i(e.target.value),placeholder:`https://...`})]}),(0,F.jsxs)(`label`,{className:`grid gap-1 text-sm font-medium`,children:[Y(e,`media.alt`),(0,F.jsx)(`input`,{className:`admin-input`,value:a,onChange:e=>o(e.target.value)})]}),(0,F.jsxs)(U,{type:`button`,disabled:!r.trim(),onClick:()=>n(r.trim(),a.trim()),children:[(0,F.jsx)(wt,{className:`size-4`,"aria-hidden":!0}),Y(e,`editor.insertImage`)]})]})]})})}function i_({language:e,onClose:t,onInsert:n}){let[r,i]=P.useState(``);return(0,F.jsx)(`div`,{className:`rich-editor-dialog-backdrop`,role:`presentation`,children:(0,F.jsxs)(`div`,{className:`rich-editor-dialog`,role:`dialog`,"aria-modal":`true`,"aria-label":Y(e,`editor.videoUrl`),children:[(0,F.jsx)(a_,{title:Y(e,`editor.insertVideo`),onClose:t}),(0,F.jsxs)(`label`,{className:`grid gap-1 text-sm font-medium`,children:[Y(e,`editor.videoUrl`),(0,F.jsx)(`input`,{className:`admin-input`,value:r,onChange:e=>i(e.target.value),placeholder:`YouTube / Dailymotion URL`})]}),(0,F.jsxs)(U,{type:`button`,className:`mt-3`,disabled:!r.trim(),onClick:()=>n(r.trim()),children:[(0,F.jsx)(jn,{className:`size-4`,"aria-hidden":!0}),Y(e,`editor.insertVideo`)]})]})})}function a_({title:e,onClose:t}){return(0,F.jsxs)(`div`,{className:`mb-4 flex items-center justify-between gap-3`,children:[(0,F.jsx)(`h2`,{className:`text-lg font-semibold`,children:e}),(0,F.jsx)(`button`,{type:`button`,className:`row-action`,onClick:t,"aria-label":`Close`,children:(0,F.jsx)(Pn,{className:`size-4`,"aria-hidden":!0})})]})}function o_(e,t){t?.focus(),document.execCommand(e)}function s_(e){let t=c_(e);if(!t)return`<a href="${m_(e)}">${p_(e)}</a>`;let n=l_(t);if(n)return`<iframe src="https://www.youtube.com/embed/${n}" title="YouTube video" loading="lazy" allowfullscreen></iframe>`;let r=u_(t);return r?`<iframe src="https://www.dailymotion.com/embed/video/${r}" title="Dailymotion video" loading="lazy" allowfullscreen></iframe>`:`<a href="${m_(t.toString())}">${p_(t.toString())}</a>`}function c_(e){try{return new URL(e)}catch{return null}}function l_(e){return e.hostname===`youtu.be`?e.pathname.split(`/`).filter(Boolean)[0]??null:e.hostname.includes(`youtube.com`)?e.pathname.startsWith(`/shorts/`)?e.pathname.split(`/`).filter(Boolean)[1]??null:e.searchParams.get(`v`):null}function u_(e){if(e.hostname===`dai.ly`)return e.pathname.split(`/`).filter(Boolean)[0]??null;if(!e.hostname.includes(`dailymotion.com`))return null;let t=e.pathname.split(`/`).filter(Boolean),n=t.indexOf(`video`);return n>=0?t[n+1]??null:null}function d_(e,t){if(t===`html`)return e;let n=[],r=!1,i=!1;for(let t of e.split(`
|
|
141
|
-
`)){let e=t.trim();if(!e){r&&n.push(`</ul>`),i&&n.push(`</ol>`),r=!1,i=!1;continue}if(e.startsWith(`<`)){r&&n.push(`</ul>`),i&&n.push(`</ol>`),r=!1,i=!1,n.push(e);continue}let a=e.match(/^!\[(.*)]\((.*)\)$/);if(a){n.push(`<figure><img src="${m_(a[2]??``)}" alt="${m_(a[1]??``)}" /></figure>`);continue}let o=f_(e);if(e.startsWith(`## `)){r&&n.push(`</ul>`),i&&n.push(`</ol>`),r=!1,i=!1,n.push(`<h2>${f_(e.slice(3))}</h2>`);continue}if(e.startsWith(`- [ ] `)){r||=(n.push(`<ul>`),!0),n.push(`<li><input type="checkbox" disabled /> ${f_(e.slice(6))}</li>`);continue}if(e.startsWith(`- `)){r||=(n.push(`<ul>`),!0),n.push(`<li>${f_(e.slice(2))}</li>`);continue}if(/^\d+\.\s/.test(e)){i||=(n.push(`<ol>`),!0),n.push(`<li>${f_(e.replace(/^\d+\.\s/,``))}</li>`);continue}r&&n.push(`</ul>`),i&&n.push(`</ol>`),r=!1,i=!1,n.push(`<p>${o}</p>`)}return r&&n.push(`</ul>`),i&&n.push(`</ol>`),n.join(``)}function f_(e){return p_(e).replace(/\*\*(.+?)\*\*/g,`<strong>$1</strong>`).replace(/_(.+?)_/g,`<em>$1</em>`).replace(/~~(.+?)~~/g,`<s>$1</s>`).replace(/`(.+?)`/g,`<code>$1</code>`).replace(/\[(.+?)]\((https?:\/\/[^)]+)\)/g,`<a href="$2">$1</a>`)}function p_(e){return e.replace(/[&<>"']/g,e=>{switch(e){case`&`:return`&`;case`<`:return`<`;case`>`:return`>`;case`"`:return`"`;default:return`'`}})}function m_(e){return p_(e).replace(/`/g,```)}var h_=new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`short`});function g_(){let{language:e}=J(),t=kc(),n=new URLSearchParams(t.search).get(`search`)?.trim()??``,r=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}).data?.media?.purposes??[];return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Zh,{eyebrow:Y(e,`nav.media`),title:Y(e,`media.title`),description:Y(e,`media.description`)}),(0,F.jsx)(y_,{searchTerm:n,language:e}),(0,F.jsx)(__,{language:e,purposes:r,searchTerm:n,emptyIcon:Kt})]})}function __({language:e,purposes:t,searchTerm:n,emptyIcon:r,onPick:i}){let a=Ye(),o=I({queryKey:[`media`,n],queryFn:()=>{let e=new URLSearchParams({limit:`60`});return n&&e.set(`search`,n),q.get(`/media?${e.toString()}`)}}),[s,c]=P.useState([]),[l,u]=P.useState(void 0),[d,f]=P.useState(!1),[p,m]=P.useState(null);P.useEffect(()=>{c([]),u(void 0),m(null)},[n]);let h=l===void 0?o.data?.next_cursor??null:l,g=P.useMemo(()=>[...o.data?.items??[],...s],[o.data,s]),[_,v]=P.useState(!1),[y,b]=P.useState(null),[x,S]=P.useState(!1),C=P.useRef(null),w=t.length>0&&!_,T=P.useCallback(()=>{a.invalidateQueries({queryKey:[`media`]})},[a]);async function ee(n){let r=Array.from(n).filter(e=>e.type.startsWith(`image/`));if(r.length!==0){v(!0),b(null);try{let n=await Promise.allSettled(r.map(n=>Rg({file:n,purposes:t,language:e}))),i=n.filter(e=>e.status===`fulfilled`).length,a=n.filter(e=>e.status===`rejected`);if(i>0&&T(),a.length>0){let t=a[0]?.reason,n=t instanceof Error?t.message:String(t);b(`${Y(e,`media.uploadFailed`,{count:String(a.length),total:String(r.length)})} ${n}`.trim())}}finally{v(!1),C.current&&(C.current.value=``)}}}async function E(){if(h){f(!0),m(null);try{let e=new URLSearchParams({limit:`60`,cursor:h});n&&e.set(`search`,n);let t=await q.get(`/media?${e.toString()}`);c(e=>[...e,...t.items]),u(t.next_cursor)}catch(e){m(e)}finally{f(!1)}}}return(0,F.jsxs)(`div`,{onDragOver:e=>{w&&(e.preventDefault(),S(!0))},onDragLeave:()=>S(!1),onDrop:e=>{w&&(e.preventDefault(),S(!1),ee(e.dataTransfer.files))},className:H(`rounded-xl border border-dashed p-4 transition-colors`,x?`border-primary bg-accent/40`:`border-transparent`),children:[(0,F.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center gap-2`,children:[(0,F.jsxs)(U,{type:`button`,variant:`default`,onClick:()=>C.current?.click(),disabled:!w,title:t.length===0?Y(e,`media.noPurpose`):void 0,children:[(0,F.jsx)(On,{className:`size-4`,"aria-hidden":!0}),_?Y(e,`media.uploading`):Y(e,`media.upload`)]}),(0,F.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:Y(e,`media.dropHere`)}),(0,F.jsx)(`input`,{ref:C,type:`file`,accept:`image/*`,multiple:!0,className:`hidden`,onChange:e=>{e.currentTarget.files&&ee(e.currentTarget.files)}})]}),y?(0,F.jsx)(`p`,{className:`mb-3 text-xs text-destructive`,children:y}):null,o.isError?(0,F.jsx)(eg,{error:o.error}):null,o.isLoading?(0,F.jsx)(b_,{}):g.length===0?(0,F.jsx)($h,{icon:r,title:Y(e,`media.empty.title`),description:n?Y(e,`media.empty.search`,{search:n}):Y(e,`media.empty.all`)}):(0,F.jsx)(`div`,{className:`grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4`,children:g.map(t=>(0,F.jsx)(v_,{item:t,language:e,onChanged:T,onPick:i},t.id))}),p?(0,F.jsx)(eg,{error:p}):null,h?(0,F.jsx)(`div`,{className:`mt-4`,children:(0,F.jsx)(U,{type:`button`,variant:`secondary`,onClick:()=>void E(),disabled:d,children:d?Y(e,`media.saving`):Y(e,`media.loadMore`)})}):null]})}function v_({item:e,language:t,onChanged:n,onPick:r}){let[i,a]=P.useState(e.alt??``),[o,s]=P.useState(e.caption??``),[c,l]=P.useState(!1),u=i!==(e.alt??``)||o!==(e.caption??``),d=ut({mutationFn:()=>q.patch(`/media/${encodeURIComponent(e.id)}`,{alt:i,caption:o}),onSuccess:n}),f=ut({mutationFn:()=>q.delete(`/media/${encodeURIComponent(e.id)}`),onSuccess:n}),p=xg();async function m(){await p({description:Y(t,`media.deleteConfirm`)})&&f.mutate()}async function h(){try{await navigator.clipboard.writeText(e.id),l(!0),window.setTimeout(()=>l(!1),1400)}catch{l(!1)}}return(0,F.jsxs)(`div`,{className:`flex flex-col overflow-hidden rounded-xl border border-[var(--glass-border)] bg-card/50`,children:[(0,F.jsxs)(`div`,{className:`relative aspect-square bg-muted/40`,children:[e.primaryUrl?(0,F.jsx)(`img`,{src:e.primaryUrl,alt:e.alt??``,loading:`lazy`,className:`size-full object-cover`}):(0,F.jsx)(`div`,{className:`flex size-full items-center justify-center text-muted-foreground`,children:(0,F.jsx)(Kt,{className:`size-6`,"aria-hidden":!0})}),r?(0,F.jsx)(`button`,{type:`button`,className:`absolute inset-0 flex items-end justify-center bg-black/0 p-2 opacity-0 transition hover:bg-black/40 hover:opacity-100`,onClick:()=>r(e),children:(0,F.jsx)(`span`,{className:`rounded-md bg-primary px-3 py-1 text-xs font-semibold text-primary-foreground`,children:Y(t,`media.use`)})}):null]}),(0,F.jsxs)(`div`,{className:`flex flex-1 flex-col gap-2 p-3`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between gap-2 text-xs text-muted-foreground`,children:[(0,F.jsxs)(`button`,{type:`button`,className:`group inline-flex items-center gap-1 font-mono hover:text-foreground`,title:Y(t,`media.copyId`),onClick:()=>void h(),children:[e.id.slice(0,8),c?(0,F.jsx)(wt,{className:`size-3 text-[color:var(--success)]`,"aria-hidden":!0}):(0,F.jsx)(Pt,{className:`size-3 opacity-40 transition-opacity group-hover:opacity-80`,"aria-hidden":!0})]}),(0,F.jsx)(`span`,{children:S_(e.byteSize)})]}),r?null:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`input`,{className:`admin-input h-8 text-sm`,value:i,placeholder:Y(t,`media.altPlaceholder`),"aria-label":Y(t,`media.alt`),onChange:e=>a(e.target.value)}),(0,F.jsx)(`input`,{className:`admin-input h-8 text-sm`,value:o,placeholder:Y(t,`media.captionPlaceholder`),"aria-label":Y(t,`media.caption`),onChange:e=>s(e.target.value)}),(0,F.jsxs)(`div`,{className:`mt-1 flex items-center justify-between gap-2`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-1`,children:[e.primaryUrl?(0,F.jsx)(`a`,{className:`row-action`,href:e.primaryUrl,target:`_blank`,rel:`noreferrer`,title:Y(t,`media.open`),children:(0,F.jsx)(Rt,{className:`size-3.5`,"aria-hidden":!0})}):null,(0,F.jsx)(`button`,{type:`button`,className:`row-action`,title:Y(t,`media.delete`),disabled:f.isPending,onClick:()=>void m(),children:(0,F.jsx)(Cn,{className:`size-3.5`,"aria-hidden":!0})})]}),(0,F.jsx)(U,{type:`button`,size:`sm`,variant:`secondary`,disabled:!u||d.isPending,onClick:()=>d.mutate(),children:d.isPending?Y(t,`media.saving`):d.isSuccess&&!u?Y(t,`media.saved`):Y(t,`media.save`)})]}),d.isError?(0,F.jsx)(eg,{error:d.error}):null,f.isError?(0,F.jsx)(eg,{error:f.error}):null]}),(0,F.jsx)(`p`,{className:`text-[11px] text-muted-foreground`,children:Y(t,`media.uploaded`,{date:x_(e.createdAt)})})]})]})}function y_({searchTerm:e,language:t}){let{navigate:n}=Oc(),[r,i]=P.useState(e);return P.useEffect(()=>i(e),[e]),(0,F.jsx)(`form`,{className:`mb-4 max-w-xl`,role:`search`,onSubmit:e=>{e.preventDefault();let t=r.trim(),i=new URLSearchParams;t&&i.set(`search`,t);let a=i.toString();n(`/admin/media${a?`?${a}`:``}`)},children:(0,F.jsxs)(`label`,{className:`relative block`,children:[(0,F.jsx)(pn,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,F.jsx)(`input`,{className:`admin-input h-10 pl-9`,value:r,onChange:e=>i(e.target.value),placeholder:Y(t,`media.searchPlaceholder`)})]})})}function b_(){return(0,F.jsx)(`div`,{className:`grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4`,children:[0,1,2,3,4,5,6,7].map(e=>(0,F.jsxs)(`div`,{className:`overflow-hidden rounded-xl border border-[var(--glass-border)]`,children:[(0,F.jsx)(`div`,{className:`aspect-square animate-pulse bg-muted`}),(0,F.jsxs)(`div`,{className:`space-y-2 p-3`,children:[(0,F.jsx)(`div`,{className:`h-3 w-1/2 animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-8 animate-pulse rounded bg-muted`})]})]},e))})}function x_(e){if(!Number.isFinite(e))return`-`;try{return h_.format(new Date(e))}catch{return`-`}}function S_(e){return e==null||!Number.isFinite(e)?``:e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function C_({collectionName:e,entryId:t}){let{language:n}=J(),r=Ye(),i=P.useMemo(()=>[`entry-editor`,e,t],[e,t]),a=I({queryKey:i,queryFn:()=>q.get(`/entries/${encodeURIComponent(t)}`)}),o=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}),s=I(xc()),c=P.useMemo(()=>Y_(s.data,e),[s.data,e]),[l,u]=P.useState(null);P.useEffect(()=>{a.data&&u(a.data.entry.data)},[a.data]);let d=P.useCallback(e=>{u(e.entry.data),r.setQueryData(i,e)},[r,i]),f=ut({mutationFn:e=>q.patch(`/entries/${encodeURIComponent(t)}`,{data:e,expectedVersion:a.data?.entry.version}),onSuccess:d}),p=ut({mutationFn:()=>q.post(`/entries/${encodeURIComponent(t)}/publish`,{}),onSuccess:d}),m=ut({mutationFn:()=>q.post(`/entries/${encodeURIComponent(t)}/unpublish`,{}),onSuccess:d});if(a.isLoading)return(0,F.jsx)(`div`,{className:`glass-card h-64 animate-pulse`});if(a.isError)return(0,F.jsx)(eg,{error:a.error});if(!a.data||!l)return(0,F.jsx)(eg,{error:Error(`Missing entry editor payload.`)});let h=a.data,g=o.data?.canonicalLocale??null,_=I_(l,h.entry.id,h.collection.schema),v=gc(h.collection.title,n,g)??h.collection.name,y=gc(h.collection.description,n,g),b=JSON.stringify(l)!==JSON.stringify(h.entry.data),x=h.collection.lifecycle===`none`,S=h.entry.status===`draft`,C=b&&(S||x),w=f.isPending||p.isPending||m.isPending,T=o.data?.media?.purposes??[],ee=P_(h.collection,l),E=h.related.filter(F_),D=h.related.filter(e=>!F_(e));return(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(Zh,{eyebrow:(0,F.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,F.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(e)}`,className:`inline-flex items-center gap-2 hover:underline`,children:[(0,F.jsx)(bt,{className:`size-3.5`,"aria-hidden":!0}),Y(n,`entryEdit.back`,{name:v})]}),ee?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{className:`text-foreground/30`,children:`/`}),(0,F.jsx)(`a`,{href:ee.href,className:`hover:underline`,children:Y(n,`entryEdit.parent`,{name:ee.label})})]}):null]}),title:_,description:Y(n,`entryEdit.body`,{name:v}),actions:(0,F.jsxs)(F.Fragment,{children:[!x&&(0,F.jsx)(wg,{status:h.entry.status}),(0,F.jsx)(X_,{row:h.entry,operations:c,language:n,canonical:g,onSuccess:()=>void r.invalidateQueries({queryKey:i}),trigger:(0,F.jsxs)(U,{type:`button`,variant:`secondary`,children:[(0,F.jsx)(Lt,{className:`size-4`,"aria-hidden":!0}),Y(n,`rowActions.menuLabel`)]})}),!x&&(S?(0,F.jsxs)(U,{type:`button`,variant:`secondary`,onClick:()=>p.mutate(),disabled:w||b,title:b?Y(n,`entryEdit.publishDisabledDirty`):Y(n,`entryEdit.publishTooltip`),children:[(0,F.jsx)(mn,{className:`size-4`,"aria-hidden":!0}),p.isPending?Y(n,`entryEdit.publishing`):Y(n,`entryEdit.publish`)]}):(0,F.jsxs)(U,{type:`button`,variant:`secondary`,onClick:()=>m.mutate(),disabled:w,title:Y(n,`entryEdit.unpublishTooltip`),children:[(0,F.jsx)(dn,{className:`size-4`,"aria-hidden":!0}),m.isPending?Y(n,`entryEdit.unpublishing`):Y(n,`entryEdit.unpublish`)]})),(0,F.jsxs)(U,{type:`button`,onClick:()=>f.mutate(l),disabled:w||!C,title:Y(n,`entryEdit.saveTooltip`),children:[(0,F.jsx)(fn,{className:`size-4`,"aria-hidden":!0}),f.isPending?Y(n,`crud.saving`):Y(n,`entryEdit.save`)]})]})}),x?(0,F.jsx)(`p`,{className:`-mt-4 text-sm text-muted-foreground`,children:Y(n,`entryEdit.operationalHint`)}):null,f.isError?(0,F.jsx)(eg,{error:f.error}):null,p.isError?(0,F.jsx)(eg,{error:p.error}):null,m.isError?(0,F.jsx)(eg,{error:m.error}):null,(0,F.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-[minmax(0,1fr)_22rem]`,children:[(0,F.jsxs)(`div`,{className:`space-y-5`,children:[(0,F.jsxs)(Qh,{children:[(0,F.jsx)(w_,{title:Y(n,`entryEdit.fields`),body:y?(0,F.jsx)(ng,{description:y,summaryLabel:Y(n,`collection.schemaDetails`),collapsedIntro:Y(n,iv(h.collection),{name:v})}):void 0}),(0,F.jsx)(E_,{schema:h.collection.schema,value:l,path:[],onChange:u,language:n,canonical:g,collectionName:h.collection.name,mediaPurposes:T})]}),E.length>0?(0,F.jsx)(N_,{sections:E,language:n,canonical:g,operations:s.data,onOperationSuccess:()=>void r.invalidateQueries({queryKey:i})}):null]}),(0,F.jsxs)(`div`,{className:`space-y-4`,children:[(0,F.jsxs)(Qh,{children:[(0,F.jsx)(w_,{title:Y(n,`entryEdit.meta`),body:`${h.entry.collection} / ${h.entry.id}`}),(0,F.jsxs)(`dl`,{className:`space-y-3 text-sm`,children:[!x&&(0,F.jsx)(T_,{label:Y(n,`collection.table.status`),value:(0,F.jsx)(wg,{status:h.entry.status})}),(0,F.jsx)(T_,{label:Y(n,`collection.table.locale`),value:h.entry.locale??`-`}),(0,F.jsx)(T_,{label:Y(n,`collection.table.version`),value:`v${h.entry.version}`})]})]}),D.length>0?(0,F.jsx)(N_,{sections:D,language:n,canonical:g,operations:s.data,onOperationSuccess:()=>void r.invalidateQueries({queryKey:i})}):null]})]})]})}function w_({title:e,body:t}){return(0,F.jsxs)(`div`,{className:`mb-4`,children:[(0,F.jsx)(`h2`,{className:`text-lg font-semibold`,children:e}),t?(0,F.jsx)(`div`,{className:`mt-1 text-sm leading-6 text-muted-foreground`,children:t}):null]})}function T_({label:e,value:t}){return(0,F.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,F.jsx)(`dt`,{className:`text-muted-foreground`,children:e}),(0,F.jsx)(`dd`,{className:`min-w-0 text-right font-medium`,children:t})]})}function E_({schema:e,value:t,path:n,onChange:r,language:i,canonical:a=null,collectionName:o,mediaPurposes:s}){let c=e.properties??{},l=new Set(e.required??[]);return(0,F.jsx)(`div`,{className:`space-y-5`,children:Object.entries(c).map(([e,c])=>(0,F.jsx)(D_,{name:e,schema:c,required:l.has(e),value:W_(t,[...n,e]),path:[...n,e],rootValue:t,onChange:r,language:i,canonical:a,collectionName:o,mediaPurposes:s},[...n,e].join(`.`)))})}function D_({name:e,schema:t,required:n,value:r,path:i,rootValue:a,onChange:o,language:s,canonical:c=null,collectionName:l,mediaPurposes:u}){let d=L_(t),f=vc(e,t,s,c),p=yc(t,s,c),m=e=>o(G_(a,i,e)),h=B_(t);return(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsxs)(`label`,{className:`flex items-center justify-between gap-3 text-sm font-semibold text-foreground`,children:[(0,F.jsxs)(`span`,{children:[f,n?(0,F.jsx)(`span`,{className:`ml-1 text-destructive`,children:`*`}):null]}),t[`x-mcp-hint`]?(0,F.jsx)(`span`,{className:`badge-status bg-accent text-accent-foreground`,title:String(t[`x-mcp-hint`]),children:jg(String(t[`x-mcp-hint`]),s)}):null]}),p?(0,F.jsx)(`p`,{className:`text-xs leading-5 text-muted-foreground`,children:p}):null,h?(0,F.jsx)(`p`,{className:`admin-input cursor-not-allowed bg-muted/40 text-muted-foreground`,title:String(t[`x-mantle-bind`]),children:V_(r)||Y(s,`entryEdit.emptyOption`)}):t.enum?(0,F.jsxs)(`select`,{className:`admin-input`,value:V_(r),onChange:e=>m(e.target.value),children:[(0,F.jsx)(`option`,{value:``,children:Y(s,`entryEdit.emptyOption`)}),t.enum.map(e=>(0,F.jsx)(`option`,{value:String(e),children:String(e)},String(e)))]}):d===`boolean`?(0,F.jsxs)(`label`,{className:`inline-flex items-center gap-2 text-sm text-muted-foreground`,children:[(0,F.jsx)(`input`,{type:`checkbox`,className:`size-4 accent-[var(--primary)]`,checked:!!r,onChange:e=>m(e.target.checked)}),Y(s,`entryEdit.boolean`)]}):d===`number`||d===`integer`?(0,F.jsxs)(`div`,{className:`space-y-1`,children:[(0,F.jsx)(`input`,{className:`admin-input`,type:`number`,value:H_(r),min:t.minimum,max:t.maximum,onChange:e=>{let t=e.target.value;m(t===``?null:Number(t))}}),(0,F.jsx)(O_,{schema:t,value:r,rootValue:a})]}):d===`object`?(0,F.jsx)(`div`,{className:`rounded-lg border border-[var(--glass-border)] bg-background/30 p-4`,children:t.properties?(0,F.jsx)(E_,{schema:t,value:a,path:i,onChange:o,language:s,canonical:c,collectionName:l,mediaPurposes:u}):(0,F.jsx)(M_,{value:r,onChange:m})}):z_(t)?(0,F.jsx)(A_,{value:r,path:i,collectionName:l,mediaPurposes:u,language:s,onChange:m}):d===`array`?(0,F.jsx)(k_,{schema:t,value:Array.isArray(r)?r:[],path:i,rootValue:a,onChange:o,language:s,canonical:c,collectionName:l,mediaPurposes:u}):R_(t,e)?(0,F.jsx)($g,{compact:!0,value:V_(r),onChange:m}):(0,F.jsx)(`input`,{className:`admin-input`,type:t.format===`date-time`?`datetime-local`:`text`,value:V_(r),onChange:e=>m(e.target.value)})]})}function O_({schema:e,value:t,rootValue:n}){if(Dg(e)){let e=kg(t,n.currency);return e?(0,F.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`= `,e]}):null}if(Og(e)){let e=Ag(t);return e?(0,F.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`= `,e]}):null}return null}function k_({schema:e,value:t,path:n,rootValue:r,onChange:i,language:a,canonical:o=null,collectionName:s,mediaPurposes:c}){let l=e.items??{},u=e=>i(G_(r,n,e));return(0,F.jsxs)(`div`,{className:`space-y-3 rounded-lg border border-[var(--glass-border)] bg-background/30 p-3`,children:[t.map((e,d)=>(0,F.jsxs)(`div`,{className:`rounded-lg border border-border/70 bg-card/50 p-3`,children:[(0,F.jsxs)(`div`,{className:`mb-3 flex items-center justify-between gap-2`,children:[(0,F.jsxs)(`span`,{className:`text-xs font-semibold text-muted-foreground`,children:[`#`,d+1]}),(0,F.jsx)(`button`,{type:`button`,className:`row-action`,title:Y(a,`entryEdit.removeItem`),onClick:()=>u(t.filter((e,t)=>t!==d)),children:(0,F.jsx)(Cn,{className:`size-3.5`,"aria-hidden":!0})})]}),L_(l)===`object`&&l.properties?(0,F.jsx)(E_,{schema:l,value:r,path:[...n,String(d)],onChange:i,language:a,canonical:o,collectionName:s,mediaPurposes:c}):(0,F.jsx)(`input`,{className:`admin-input`,value:V_(e),onChange:e=>{let n=[...t];n[d]=e.target.value,u(n)}})]},d)),(0,F.jsxs)(U,{type:`button`,variant:`secondary`,size:`sm`,onClick:()=>u([...t,U_(l)]),children:[(0,F.jsx)(ln,{className:`size-3.5`,"aria-hidden":!0}),Y(a,`entryEdit.addItem`)]})]})}function A_({value:e,path:t,collectionName:n,mediaPurposes:r,language:i,onChange:a}){let o=P.useRef(null),[s,c]=P.useState(!1),[l,u]=P.useState(null),[d,f]=P.useState(null),[p,m]=P.useState(!1),h=Bg(r,n,t),g=typeof e==`string`?e:``,_=I({queryKey:[`media-asset`,g],queryFn:()=>q.get(`/media/${encodeURIComponent(g)}`),enabled:g.length>0,retry:!1});async function v(e){c(!0),u(null);try{let t=await Rg({file:e,purposes:r,preferredPurpose:h,language:i});a(t.id),f(Vg(t))}catch(e){u(e instanceof Error?e.message:String(e))}finally{c(!1),o.current&&(o.current.value=``)}}return(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(j_,{assetId:g,asset:_.data,isError:_.isError,language:i}),(0,F.jsx)(`input`,{className:`admin-input min-w-0 flex-1`,value:V_(e),onChange:e=>a(e.target.value),placeholder:`media_assets id`}),(0,F.jsxs)(U,{type:`button`,variant:`secondary`,onClick:()=>m(!0),children:[(0,F.jsx)(Kt,{className:`size-4`,"aria-hidden":!0}),Y(i,`media.pick`)]}),(0,F.jsxs)(U,{type:`button`,variant:`secondary`,onClick:()=>o.current?.click(),disabled:s||r.length===0,title:h??Y(i,`entryEdit.noMediaPurpose`),children:[(0,F.jsx)(Wt,{className:`size-4`,"aria-hidden":!0}),s?Y(i,`entryEdit.uploadingMedia`):Y(i,`entryEdit.uploadMedia`)]})]}),(0,F.jsx)(`input`,{ref:o,type:`file`,accept:`image/*`,className:`hidden`,onChange:e=>{let t=e.currentTarget.files?.[0];t&&v(t)}}),h?(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:h}):null,d?(0,F.jsx)(`a`,{className:`text-xs text-primary hover:underline`,href:d,target:`_blank`,rel:`noreferrer`,children:d}):null,l?(0,F.jsx)(`p`,{className:`text-xs text-destructive`,children:l}):null,(0,F.jsx)(dg,{open:p,onOpenChange:m,children:(0,F.jsxs)(mg,{className:`max-h-[85vh] w-full max-w-3xl overflow-y-auto`,children:[(0,F.jsxs)(hg,{children:[(0,F.jsx)(_g,{children:Y(i,`media.pickTitle`)}),(0,F.jsx)(vg,{children:Y(i,`media.pickDescription`)})]}),(0,F.jsx)(__,{language:i,purposes:r,searchTerm:``,emptyIcon:Kt,onPick:e=>{a(e.id),f(e.primaryUrl),m(!1)}})]})})]})}function j_({assetId:e,asset:t,isError:n,language:r}){return e?(0,F.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-md border border-[var(--glass-border)] bg-muted/40`,title:n?Y(r,`entryEdit.mediaMissing`):e,children:t?.primaryUrl?(0,F.jsx)(`img`,{src:t.primaryUrl,alt:``,className:`size-full object-cover`}):(0,F.jsx)(Kt,{className:`size-4 text-muted-foreground`,"aria-hidden":!0})}):null}function M_({value:e,onChange:t}){let[n,r]=P.useState(JSON.stringify(e??{},null,2)),[i,a]=P.useState(null);return P.useEffect(()=>{r(JSON.stringify(e??{},null,2))},[e]),(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsx)(`textarea`,{className:`admin-textarea admin-textarea-compact font-mono`,value:n,onChange:e=>{let n=e.target.value;r(n);try{t(JSON.parse(n)),a(null)}catch(e){a(e instanceof Error?e.message:String(e))}}}),i?(0,F.jsx)(`p`,{className:`text-xs text-destructive`,children:i}):null]})}function N_({sections:e,language:t,canonical:n,operations:r,onOperationSuccess:i}){return e.length===0?(0,F.jsx)(Qh,{children:(0,F.jsx)(w_,{title:Y(t,`entryEdit.related`),body:Y(t,`entryEdit.noRelated`)})}):(0,F.jsx)(F.Fragment,{children:e.map(e=>{let a=Y_(r,e.collection.name);return(0,F.jsxs)(Qh,{children:[(0,F.jsx)(w_,{title:gc(e.collection.title,t,n)??e.collection.name,body:Y(t,`entryEdit.relationship`,{child:e.relationship.childField,parent:e.relationship.parentField})}),(0,F.jsx)(`div`,{className:`space-y-2`,children:e.entries.length===0?(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Y(t,`entryEdit.noChildEntries`)}):e.entries.map(r=>(0,F.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-lg border border-[var(--glass-border)] bg-background/35 p-3 text-sm text-foreground transition hover:border-primary hover:bg-accent`,children:[(0,F.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(r.collection)}/${encodeURIComponent(r.id)}`,className:`flex min-w-0 flex-1 items-center gap-3`,children:[(0,F.jsxs)(`span`,{className:`min-w-0`,children:[(0,F.jsx)(`span`,{className:`block truncate font-semibold`,children:I_(r.data,r.id,e.collection.schema)}),(0,F.jsxs)(`span`,{className:`block text-xs text-muted-foreground`,children:[r.collection,` / v`,r.version]})]}),(0,F.jsx)(Rt,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),(0,F.jsx)(X_,{row:r,operations:a,language:t,canonical:n,onSuccess:i})]},r.id))})]},`${e.collection.name}:${e.relationship.childField}`)})})}function P_(e,t){if(!e.parent)return null;let n=t[e.parent.childField];return typeof n!=`string`||!n?null:{href:`/admin/c/${encodeURIComponent(e.parent.collection)}?search=${encodeURIComponent(n)}`,label:`${e.parent.collection} / ${n}`}}function F_(e){return e.relationship.kind===`field`}function I_(e,t,n){for(let t of[`title`,`name`,`slug`,`id`]){let n=e[t];if(typeof n==`string`&&n.trim())return n}if(n){let t=n.properties??{};for(let r of n.required??[]){let n=t[r];if(!n||L_(n)!==`string`)continue;let i=e[r];if(typeof i==`string`&&i.trim())return i}}return t.slice(0,8)}function L_(e){return(Array.isArray(e.type)?e.type.find(e=>e!==`null`):e.type)||(e.properties?`object`:e.items?`array`:`string`)}function R_(e,t){let n=typeof e[`x-mcp-hint`]==`string`?e[`x-mcp-hint`]:``;return n.includes(`markdown`)||n.includes(`html`)||/body|description|content|intro|notes|summary/i.test(t)||typeof e.maxLength==`number`&&e.maxLength>160}function z_(e){return e[`x-mantle-ref`]===`media_assets`}function B_(e){return typeof e[`x-mantle-bind`]==`string`}function V_(e){return e==null?``:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`?String(e):JSON.stringify(e)}function H_(e){return typeof e==`number`&&Number.isFinite(e)||typeof e==`string`?e:``}function U_(e){if(e.default!==void 0)return e.default;let t=L_(e);return t===`object`?{}:t===`array`?[]:t===`boolean`?!1:t===`number`||t===`integer`?0:``}function W_(e,t){let n=e;for(let e of t)if(Array.isArray(n))n=n[Number(e)];else if(typeof n==`object`&&n)n=n[e];else return;return n}function G_(e,t,n){if(t.length===0)return q_(n);let r=K_(e),i=r;for(let e=0;e<t.length-1;e+=1){let n=t[e],r=t[e+1];if(Array.isArray(i)){let e=Number(n);i[e]=i[e]??(J_(r)?[]:{}),i=i[e]}else if(typeof i==`object`&&i){let e=i;e[n]=e[n]??(J_(r)?[]:{}),i=e[n]}}let a=t[t.length-1];return Array.isArray(i)?i[Number(a)]=n:typeof i==`object`&&i&&(i[a]=n),r}function K_(e){return typeof structuredClone==`function`?structuredClone(e):JSON.parse(JSON.stringify(e))}function q_(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:{}}function J_(e){return/^\d+$/.test(e)}function Y_(e,t){return(e??[]).filter(e=>e.rowBindings.some(e=>e.collection===t))}function X_({row:e,operations:t,language:n,canonical:r,onSuccess:i,trigger:a}){let[o,s]=P.useState(null);return t.length===0?null:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(Wm,{children:[(0,F.jsx)(Gm,{asChild:!0,children:a??(0,F.jsx)(`button`,{type:`button`,className:`row-action`,title:Y(n,`rowActions.menuLabel`),"aria-label":Y(n,`rowActions.menuLabel`),children:(0,F.jsx)(Lt,{className:`size-3.5`,"aria-hidden":!0})})}),(0,F.jsx)(Km,{align:`end`,children:t.map(e=>(0,F.jsx)(qm,{onSelect:()=>s(e),children:gc(e.title,n,r)??_c(e.name)},e.name))})]}),o?(0,F.jsx)(Z_,{operation:o,binding:o.rowBindings.find(t=>t.collection===e.collection),row:e,language:n,canonical:r,onClose:()=>s(null),onSuccess:()=>{s(null),i()}}):null]})}function Z_({operation:e,binding:t,row:n,language:r,canonical:i,onClose:a,onSuccess:o}){let s=gc(e.title,r,i)??_c(e.name),c=gc(e.description,r,i),l=t?.rowField??`id`,u=t?.inputField,d=I({queryKey:[`entry-editor`,n.collection,n.id],queryFn:()=>q.get(`/entries/${encodeURIComponent(n.id)}`)}),f=P.useMemo(()=>l===`id`?n.id:d.data?.entry.data[l]??void 0,[d.data,l,n.id]),[p,m]=P.useState({});P.useEffect(()=>{f===void 0||!u||m(e=>({...e,[u]:f}))},[f,u]);let h=P.useMemo(()=>{if(!u)return e.input;let t={...e.input.properties??{}};delete t[u];let n=(e.input.required??[]).filter(e=>e!==u);return{...e.input,properties:t,required:n}},[e.input,u]),g=u?e.input.properties?.[u]:void 0,_=u?gc(g?.title,r,i)??gc(g?.description,r,i)??_c(u):null,{showToast:v}=Lg(),y=ut({mutationFn:t=>q.post(`/operations/${encodeURIComponent(e.name)}`,t),onSuccess:()=>{v(Y(r,`ops.success`,{name:s})),o()}}),b=!u||f!==void 0;return(0,F.jsx)(dg,{open:!0,onOpenChange:e=>{e||a()},children:(0,F.jsxs)(mg,{children:[(0,F.jsxs)(hg,{children:[(0,F.jsx)(_g,{children:s}),c?(0,F.jsx)(vg,{children:c}):null]}),d.isLoading?(0,F.jsx)(`div`,{className:`glass-card h-24 animate-pulse`}):(0,F.jsxs)(`div`,{className:`space-y-5`,children:[u?(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsx)(`label`,{className:`text-sm font-semibold text-foreground`,children:_}),(0,F.jsx)(`p`,{className:`admin-input cursor-not-allowed bg-muted/40 text-muted-foreground`,children:Q_(f)})]}):null,(0,F.jsx)(E_,{schema:h,value:p,path:[],onChange:m,language:r,canonical:i,collectionName:e.name,mediaPurposes:[]})]}),d.isError?(0,F.jsx)(eg,{error:d.error}):null,y.isError?(0,F.jsx)(tg,{error:Ng(y.error)}):null,(0,F.jsxs)(gg,{children:[(0,F.jsx)(U,{type:`button`,variant:`secondary`,onClick:a,disabled:y.isPending,children:Y(r,`rowActions.cancel`)}),(0,F.jsx)(U,{type:`button`,onClick:()=>y.mutate(p),disabled:y.isPending||!b,children:y.isPending?Y(r,`ops.running`):Y(r,`ops.run`)})]})]})})}function Q_(e){return e==null?``:typeof e==`string`||typeof e==`number`||typeof e==`boolean`?String(e):JSON.stringify(e)}var $_=new Intl.DateTimeFormat(void 0,{dateStyle:`short`,timeStyle:`short`});function ev({collectionName:e}){let{language:t}=J(),n=kc(),r=Ye(),i=new URLSearchParams(n.search),a=i.get(`status`)??void 0,o=i.get(`search`)?.trim()??``,s=I({queryKey:[`collections`],queryFn:async()=>(await q.get(`/collections`)).collections}),c=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}).data?.canonicalLocale??null,l=I(xc()),u=P.useMemo(()=>Y_(l.data,e),[l.data,e]),d=I({queryKey:[`entries`,e,a??`all`,t,o],queryFn:()=>{let n=new URLSearchParams({collection:e,limit:`99`,locale:t});return a&&n.set(`status`,a),o&&n.set(`search`,o),q.get(`/entries?${n.toString()}`)}}),[f,p]=P.useState(null);P.useEffect(()=>{d.data&&p(d.data)},[d.data]);let[m,h]=P.useState([]),[g,_]=P.useState(null),[v,y]=P.useState(null),[b,x]=P.useState(!1);P.useEffect(()=>{h([]),_(d.data?.next_cursor??null),y(null)},[e,a,o,t,d.data]);let S=P.useMemo(()=>{let e=d.data??f;return e&&{...e,items:[...e.items,...m]}},[d.data,f,m]),C=d.isLoading&&!S,[w,T]=P.useState(new Set),ee=P.useCallback(()=>T(new Set),[]),E=s.data?.find(t=>t.name===e),D=E?gc(E.title,t,c)??E.name:e,te=E?.lifecycle===`none`,ne=P.useMemo(()=>hv(E),[E]),re=P.useCallback(()=>{ee(),r.invalidateQueries({queryKey:[`entries`,e]})},[e,r,ee]);async function O(){if(g){x(!0),y(null);try{let n=new URLSearchParams({collection:e,limit:`99`,locale:t,cursor:g});a&&n.set(`status`,a),o&&n.set(`search`,o);let r=await q.get(`/entries?${n.toString()}`);h(e=>[...e,...r.items]),_(r.next_cursor)}catch(e){y(e)}finally{x(!1)}}}let k=ut({mutationFn:({id:e,title:t,version:n})=>q.patch(`/entries/${encodeURIComponent(e)}`,{data:{title:t},expectedVersion:n}),onSuccess:re}),ie=ut({mutationFn:e=>q.delete(`/entries/${encodeURIComponent(e)}`),onSuccess:re}),ae=ut({mutationFn:()=>q.post(`/entries`,{collection:e,data:{}}),onSuccess:t=>{window.location.href=`/admin/c/${encodeURIComponent(e)}/${encodeURIComponent(t.entry.id)}`}});return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Zh,{eyebrow:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`a`,{href:`/admin`,className:`hover:underline`,children:Y(t,`collection.breadcrumb`)}),(0,F.jsx)(`span`,{className:`mx-2 text-foreground/30`,children:`/`}),(0,F.jsx)(`span`,{className:`text-foreground/70`,children:e})]}),title:D,description:rv(E,t,c),actions:(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[(0,F.jsxs)(U,{type:`button`,variant:`secondary`,onClick:()=>{window.location.href=`/admin/api/entries/export?collection=${encodeURIComponent(e)}`},children:[(0,F.jsx)(It,{className:`size-4`,"aria-hidden":!0}),Y(t,`collection.export`)]}),(0,F.jsxs)(U,{type:`button`,variant:te?`ghost`:`default`,onClick:()=>ae.mutate(),disabled:ae.isPending,children:[(0,F.jsx)(ln,{className:`size-4`,"aria-hidden":!0}),ae.isPending?Y(t,`crud.saving`):Y(t,`collection.create`)]}),a?(0,F.jsx)(wg,{status:a}):null,E?.hasTranslations?(0,F.jsx)(`span`,{className:`badge-status bg-accent text-accent-foreground`,children:`i18n`}):null,E?.mediaFields?.length?(0,F.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--success)_16%,transparent)] text-[color:var(--success)]`,children:`media`}):null]})}),ae.isError?(0,F.jsx)(eg,{error:ae.error}):null,E?(0,F.jsx)(nv,{collectionName:E.name,status:a,searchTerm:o,language:t}):null,E&&E.lifecycle!==`none`?(0,F.jsx)(av,{collection:E,activeStatus:a,searchTerm:o,language:t}):null,C&&(0,F.jsx)(cv,{}),d.isError&&!S&&(0,F.jsx)(eg,{error:d.error}),S&&S.items.length===0&&(0,F.jsx)($h,{icon:zt,title:Y(t,`collection.empty.title`),description:o?Y(t,`collection.empty.search`,{search:o}):a?Y(t,`collection.empty.withStatus`,{status:a}):Y(t,`collection.empty.all`)}),S&&S.items.length>0&&(0,F.jsxs)(F.Fragment,{children:[w.size>0?(0,F.jsx)(tv,{language:t,collection:E,selectedIds:[...w],onDone:re,onClear:ee}):null,(0,F.jsxs)(cg,{children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{className:`border-b border-[var(--glass-border)]`,children:[(0,F.jsx)(lg,{className:`w-10`,children:(0,F.jsx)(`input`,{type:`checkbox`,className:`size-4 accent-[var(--primary)]`,"aria-label":Y(t,`collection.table.selectAll`),checked:w.size>0&&S.items.every(e=>w.has(e.id)),ref:e=>{if(!e)return;let t=S.items.some(e=>w.has(e.id)),n=S.items.every(e=>w.has(e.id));e.indeterminate=t&&!n},onChange:e=>{T(t=>{let n=new Set(t);for(let t of S.items)e.target.checked?n.add(t.id):n.delete(t.id);return n})}})}),(0,F.jsx)(lg,{children:Y(t,`collection.table.id`)}),(0,F.jsx)(lg,{children:Y(t,`collection.table.title`)}),te?ne.map(e=>(0,F.jsx)(lg,{children:vc(e,E?.schema?.properties?.[e],t,c)},e)):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(lg,{children:Y(t,`collection.table.status`)}),(0,F.jsx)(lg,{children:Y(t,`collection.table.locale`)}),(0,F.jsx)(lg,{children:Y(t,`collection.table.version`)})]}),(0,F.jsx)(lg,{children:Y(t,`collection.table.updated`)}),(0,F.jsx)(lg,{children:Y(t,`collection.table.actions`)})]})}),(0,F.jsx)(`tbody`,{children:S.items.map(e=>(0,F.jsx)(uv,{row:e,language:t,canonical:c,collection:E,dataColumns:te?ne:null,boundOperations:u,onOperationSuccess:re,selected:w.has(e.id),onToggleSelect:t=>{T(n=>{let r=new Set(n);return t?r.add(e.id):r.delete(e.id),r})},onRename:t=>k.mutateAsync({id:e.id,title:t,version:e.version}),onDelete:()=>ie.mutateAsync(e.id),busy:k.isPending&&k.variables?.id===e.id||ie.isPending&&ie.variables===e.id},e.id))})]}),d.isFetching&&!d.data?(0,F.jsx)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:Y(t,`collection.refreshing`)}):null,v?(0,F.jsx)(eg,{error:v}):null,g?(0,F.jsx)(`div`,{className:`mt-3`,children:(0,F.jsx)(U,{type:`button`,variant:`secondary`,onClick:()=>void O(),disabled:b,children:b?Y(t,`crud.saving`):Y(t,`collection.loadMore`)})}):null]})]})}function tv({language:e,collection:t,selectedIds:n,onDone:r,onClear:i}){let[a,o]=P.useState(null),[s,c]=P.useState([]),l=t&&t.lifecycle!==`none`,u=xg();async function d(e,t){o(e),c([]);let i=[];for(let e of n)try{await t(e)}catch(e){i.push(e)}o(null),c(i),r()}async function f(){await u({description:Y(e,`collection.bulk.deleteConfirm`,{count:String(n.length)})})&&d(`delete`,e=>q.delete(`/entries/${encodeURIComponent(e)}`))}return(0,F.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center gap-2 rounded-lg border border-[var(--glass-border)] bg-accent/40 px-3 py-2`,children:[(0,F.jsx)(`span`,{className:`text-sm font-medium`,children:Y(e,`collection.bulk.selectedCount`,{count:String(n.length)})}),(0,F.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[l?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(U,{type:`button`,variant:`secondary`,size:`sm`,disabled:a!==null,onClick:()=>void d(`publish`,e=>q.post(`/entries/${encodeURIComponent(e)}/publish`,{})),children:Y(e,`collection.bulk.publish`)}),(0,F.jsx)(U,{type:`button`,variant:`secondary`,size:`sm`,disabled:a!==null,onClick:()=>void d(`unpublish`,e=>q.post(`/entries/${encodeURIComponent(e)}/unpublish`,{})),children:Y(e,`collection.bulk.unpublish`)})]}):null,(0,F.jsx)(U,{type:`button`,variant:`destructive`,size:`sm`,disabled:a!==null,onClick:()=>void f(),children:Y(e,`collection.bulk.delete`)}),(0,F.jsx)(U,{type:`button`,variant:`ghost`,size:`sm`,onClick:i,children:(0,F.jsx)(Pn,{className:`size-3.5`,"aria-hidden":!0})})]}),s.length>0?(0,F.jsx)(`div`,{className:`w-full space-y-1`,children:s.map((e,t)=>(0,F.jsx)(eg,{error:e},t))}):null]})}function nv({collectionName:e,status:t,searchTerm:n,language:r}){let[i,a]=P.useState(n);return P.useEffect(()=>a(n),[n]),(0,F.jsx)(`form`,{className:`mb-3 max-w-xl`,role:`search`,onSubmit:n=>{n.preventDefault();let r=i.trim(),a=new URLSearchParams;t&&a.set(`status`,t),r&&a.set(`search`,r);let o=a.toString();window.location.href=`/admin/c/${encodeURIComponent(e)}${o?`?${o}`:``}`},children:(0,F.jsxs)(`label`,{className:`relative block`,children:[(0,F.jsx)(pn,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,F.jsx)(`input`,{className:`admin-input h-10 pl-9`,value:i,onChange:e=>a(e.target.value),placeholder:Y(r,`collection.searchPlaceholder`)})]})})}function rv(e,t,n){let r=e?gc(e.title,t,n)??e.name:``,i=gc(e?.description,t,n)?.trim(),a=iv(e);return i?(0,F.jsx)(ng,{description:i,summaryLabel:Y(t,`collection.schemaDetails`),collapsedIntro:Y(t,a,{name:r})}):Y(t,a,{name:r})}function iv(e){let t=e?e.lifecycle!==`none`:!0,n=e?.hasTranslations??!1;return t&&n?`collection.schemaSummary.lifecycleAndI18n`:t?`collection.schemaSummary.lifecycleOnly`:n?`collection.schemaSummary.i18nOnly`:`collection.schemaSummary.plain`}function av({collection:e,activeStatus:t,searchTerm:n,language:r}){let i=e.lifecycle===`editorial`?[`draft`,`review`,`published`,`archived`]:[`draft`,`published`,`archived`];return(0,F.jsxs)(`div`,{className:`mb-5 flex gap-2 overflow-x-auto pb-1`,"data-tour":`status-filter`,children:[(0,F.jsx)(sv,{href:ov(e.name,void 0,n),active:!t,children:Y(r,`collection.filter.all`)}),i.map(i=>(0,F.jsx)(sv,{href:ov(e.name,i,n),active:t===i,children:Sh(r,i)},i))]})}function ov(e,t,n){let r=new URLSearchParams;t&&r.set(`status`,t),n&&r.set(`search`,n);let i=r.toString();return`/admin/c/${encodeURIComponent(e)}${i?`?${i}`:``}`}function sv({href:e,active:t,children:n}){return(0,F.jsx)(`a`,{href:e,"aria-current":t?`page`:void 0,className:H(`inline-flex h-8 shrink-0 items-center justify-center rounded-lg border px-3 text-xs font-medium`,`transition-colors duration-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,t?`border-[var(--glass-border)] bg-secondary text-secondary-foreground`:`border-transparent text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:n})}function cv(){return(0,F.jsx)(`div`,{className:`glass-card overflow-hidden`,children:[0,1,2,3,4].map(e=>(0,F.jsxs)(`div`,{className:`flex items-center gap-4 border-b border-[var(--glass-border)] p-3 last:border-b-0`,children:[(0,F.jsx)(`div`,{className:`h-3 w-16 animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-3 flex-1 animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-6 w-20 animate-pulse rounded-full bg-muted`})]},e))})}function lv({id:e,language:t}){let[n,r]=P.useState(!1);async function i(){try{await navigator.clipboard.writeText(e),r(!0),window.setTimeout(()=>r(!1),1400)}catch{r(!1)}}return(0,F.jsxs)(`button`,{type:`button`,className:`group inline-flex items-center gap-1 hover:text-foreground`,title:`${e} — ${Y(t,`collection.copyId`)}`,onClick:()=>void i(),children:[Mg(e),n?(0,F.jsx)(wt,{className:`size-3 text-[color:var(--success)]`,"aria-hidden":!0}):(0,F.jsx)(Pt,{className:`size-3 opacity-40 transition-opacity group-hover:opacity-80`,"aria-hidden":!0})]})}function uv({row:e,language:t,canonical:n,collection:r,dataColumns:i,boundOperations:a,onOperationSuccess:o,selected:s,onToggleSelect:c,onRename:l,onDelete:u,busy:d}){let f=fv(e.title,t),[p,m]=P.useState(!1),[h,g]=P.useState(f),[_,v]=P.useState(null),y=xg();P.useEffect(()=>{p||g(f)},[p,f]);async function b(){let e=h.trim();if(!e||e===f){m(!1),g(f);return}v(null);try{await l(e),m(!1)}catch(e){v(e instanceof Error?e.message:String(e))}}async function x(){if(await y({description:Y(t,`crud.deleteConfirm`,{name:f})})){v(null);try{await u()}catch(e){v(e instanceof Error?e.message:String(e))}}}return(0,F.jsxs)(`tr`,{className:`border-t border-[var(--glass-border)] hover:bg-accent/40`,children:[(0,F.jsx)(ug,{children:(0,F.jsx)(`input`,{type:`checkbox`,className:`size-4 accent-[var(--primary)]`,"aria-label":Y(t,`collection.table.selectRow`,{name:f}),checked:s,onChange:e=>c(e.target.checked)})}),(0,F.jsx)(ug,{className:`font-mono text-xs text-muted-foreground`,children:(0,F.jsx)(lv,{id:String(e.id),language:t})}),(0,F.jsx)(ug,{className:`max-w-[28rem]`,children:(0,F.jsxs)(`div`,{className:`min-w-[16rem]`,children:[p?(0,F.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,F.jsx)(`input`,{className:`admin-input h-9 min-w-0 flex-1`,value:h,autoFocus:!0,disabled:d,onChange:e=>g(e.target.value),onBlur:()=>void b(),onKeyDown:e=>{e.key===`Enter`&&b(),e.key===`Escape`&&(g(f),m(!1))}}),(0,F.jsx)(`button`,{type:`button`,className:`row-action`,title:Y(t,`crud.saveTitle`),disabled:d,onMouseDown:e=>e.preventDefault(),onClick:()=>void b(),children:(0,F.jsx)(wt,{className:`size-3.5`,"aria-hidden":!0})}),(0,F.jsx)(`button`,{type:`button`,className:`row-action`,title:Y(t,`crud.cancelTitle`),disabled:d,onMouseDown:e=>e.preventDefault(),onClick:()=>{g(f),m(!1)},children:(0,F.jsx)(Pn,{className:`size-3.5`,"aria-hidden":!0})})]}):(0,F.jsxs)(`button`,{type:`button`,className:`group inline-flex max-w-full items-center gap-2 text-left`,onClick:()=>m(!0),title:f,children:[(0,F.jsx)(`span`,{className:`truncate`,children:dv(e.title,t)}),(0,F.jsx)(on,{className:`size-3 shrink-0 opacity-0 transition-opacity group-hover:opacity-60`,"aria-hidden":!0})]}),_?(0,F.jsx)(`p`,{className:`mt-1 text-xs text-destructive`,children:_}):null]})}),i?i.map(t=>(0,F.jsx)(ug,{className:`text-muted-foreground`,children:gv(r,t,e.data_preview?.[t])},t)):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ug,{children:(0,F.jsx)(wg,{status:e.status})}),(0,F.jsx)(ug,{className:`text-muted-foreground`,children:e.locale??`-`}),(0,F.jsxs)(ug,{className:`font-mono text-xs text-muted-foreground`,children:[`v`,e.version]})]}),(0,F.jsx)(ug,{className:`text-muted-foreground`,children:pv(e.updated_at)}),(0,F.jsxs)(ug,{children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-1`,"data-tour":`entry-actions`,children:[(0,F.jsx)(`a`,{className:`row-action`,title:Y(t,`crud.editTooltip`,{name:f}),href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,children:(0,F.jsx)(on,{className:`size-3.5`,"aria-hidden":!0})}),(0,F.jsx)(`button`,{type:`button`,className:`row-action`,title:Y(t,`crud.deleteTooltip`,{name:f}),disabled:d,onClick:()=>void x(),children:(0,F.jsx)(Cn,{className:`size-3.5`,"aria-hidden":!0})}),(0,F.jsx)(X_,{row:e,operations:a,language:t,canonical:n,onSuccess:o})]}),(0,F.jsx)(`span`,{className:`sr-only`,children:r?gc(r.title,t,n)??r.name:``})]})]})}function dv(e,t){return e==null||e===``?(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:Y(t,`collection.untitled`)}):typeof e==`string`?e:(0,F.jsx)(`span`,{className:`font-mono text-xs`,children:JSON.stringify(e)})}function fv(e,t){return typeof e==`string`&&e?e:e==null||e===``?Y(t,`collection.untitled`):JSON.stringify(e)}function pv(e){if(!Number.isFinite(e))return`-`;try{return $_.format(new Date(e))}catch{return`-`}}var mv=new Set([`updatedAt`,`createdAt`]);function hv(e){if(!e||e.lifecycle!==`none`)return[];let t=e.schema,n=t?.required??[],r=t?.properties??{},i=[`title`,`name`,`slug`].find(e=>e in r)??n.find(e=>{let t=r[e]?.type;return(Array.isArray(t)?t:t?[t]:[]).includes(`string`)})??null;return n.filter(e=>e!==i&&!mv.has(e)).slice(0,3)}function gv(e,t,n){let r=e?.schema?.properties?.[t];if(Dg(r)){let e=kg(n,void 0);if(e)return e}if(Og(r)){let e=Ag(n);if(e)return e}return n==null||n===``?(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:`-`}):typeof n==`string`||typeof n==`number`||typeof n==`boolean`?String(n):(0,F.jsx)(`span`,{className:`font-mono text-xs`,children:JSON.stringify(n)})}var _v=`## 商品介紹\\n\\n用清楚的段落描述服務內容、交付方式與購買須知。\\n\\n- 支援 Markdown\\n- 可切換 HTML source\\n- 可用 Rich Editor 快速排版`;function vv(){let{language:e}=J(),[t,n]=P.useState(`rich`),[r,i]=P.useState(_v),a=P.useMemo(()=>d_(r,t),[r,t]);return(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(Zh,{eyebrow:`AotterMantle`,title:Y(e,`editor.page.title`),description:Y(e,`editor.page.body`),actions:(0,F.jsxs)(U,{children:[(0,F.jsx)(fn,{className:`size-4`,"aria-hidden":!0}),Y(e,`editor.saveDraft`)]})}),(0,F.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 xl:grid-cols-[minmax(0,1fr)_22rem]`,children:[(0,F.jsxs)(Qh,{className:`space-y-4`,children:[(0,F.jsxs)(`div`,{className:`grid grid-cols-1 gap-3 md:grid-cols-2`,children:[(0,F.jsxs)(`label`,{className:`grid gap-1 text-sm font-medium`,children:[Y(e,`editor.titleLabel`),(0,F.jsx)(`input`,{className:`admin-input`,defaultValue:`品牌定位快思衝刺`})]}),(0,F.jsxs)(`label`,{className:`grid gap-1 text-sm font-medium`,children:[Y(e,`editor.slugLabel`),(0,F.jsx)(`input`,{className:`admin-input font-mono`,defaultValue:`brand-positioning-sprint`})]})]}),(0,F.jsx)($g,{label:Y(e,`editor.bodyLabel`),value:r,onChange:i,mode:t,onModeChange:n})]}),(0,F.jsxs)(Qh,{className:`space-y-4`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`label-eyebrow`,children:Y(e,`editor.preview`)}),(0,F.jsx)(`div`,{className:`editor-preview`,dangerouslySetInnerHTML:{__html:a}})]}),(0,F.jsxs)(`div`,{className:`grid gap-3 text-sm text-muted-foreground`,children:[(0,F.jsx)(`p`,{children:Y(e,`editor.markdownHint`)}),(0,F.jsx)(`p`,{children:Y(e,`editor.htmlHint`)}),(0,F.jsx)(`p`,{children:Y(e,`editor.richHint`)})]})]})]})]})}function yv(){let{language:e}=J(),t=I(xc()),n=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}).data?.canonicalLocale??null;if(t.isLoading)return(0,F.jsx)(`div`,{className:`glass-card h-64 animate-pulse`});if(t.isError)return(0,F.jsx)(eg,{error:t.error});let r=t.data??[];return(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(Zh,{eyebrow:`AotterMantle`,title:Y(e,`ops.page.title`),description:Y(e,`ops.page.body`)}),r.length===0?(0,F.jsx)($h,{icon:Nn,title:Y(e,`ops.empty.title`),description:Y(e,`ops.empty.body`)}):(0,F.jsx)(`div`,{className:`space-y-4`,children:r.map(t=>(0,F.jsx)(bv,{operation:t,language:e,canonical:n},t.name))})]})}function bv({operation:e,language:t,canonical:n}){let[r,i]=P.useState({}),a=P.useRef(null);P.useEffect(()=>{typeof window>`u`||window.location.hash===`#${e.name}`&&a.current?.scrollIntoView({block:`start`})},[e.name]);let o=gc(e.title,t,n)??_c(e.name),s=gc(e.description,t,n),{showToast:c}=Lg(),l=ut({mutationFn:t=>q.post(`/operations/${encodeURIComponent(e.name)}`,t),onSuccess:()=>c(Y(t,`ops.success`,{name:o}))});return(0,F.jsxs)(Qh,{className:`space-y-4 scroll-mt-20`,id:e.name,children:[(0,F.jsxs)(`div`,{ref:a,className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,F.jsxs)(`div`,{className:`min-w-0`,children:[(0,F.jsxs)(`h2`,{className:`flex items-center gap-2 text-base font-semibold`,children:[(0,F.jsx)(Nn,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0}),o]}),s?(0,F.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:s}):null]}),(0,F.jsx)(`div`,{className:`flex shrink-0 gap-1`,children:e.triggers.map(e=>(0,F.jsx)(`span`,{className:`badge-status bg-accent text-accent-foreground`,children:Y(t,e===`mcp`?`ops.triggers.mcp`:`ops.triggers.http`)},e))})]}),(0,F.jsx)(E_,{schema:e.input,value:r,path:[],onChange:i,language:t,canonical:n,collectionName:e.name,mediaPurposes:[]}),(0,F.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,F.jsxs)(U,{type:`button`,onClick:()=>l.mutate(r),disabled:l.isPending,children:[(0,F.jsx)(cn,{className:`size-4`,"aria-hidden":!0}),l.isPending?Y(t,`ops.running`):Y(t,`ops.run`)]})}),l.isError?(0,F.jsx)(tg,{error:Ng(l.error)}):null,l.isSuccess?(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h3`,{className:`mb-1 text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:Y(t,`ops.result.title`)}),(0,F.jsx)(`pre`,{className:`max-h-96 overflow-auto rounded-lg border border-[var(--glass-border)] bg-background/40 p-3 text-xs`,children:JSON.stringify(l.data.output,null,2)})]}):null]})}var xv=[`page`,`show`];async function Sv(e,t){let n=new URLSearchParams;for(let[e,r]of Object.entries(t))r==null||r===``||n.set(e,String(r));let r=n.toString(),i=await fetch(`/admin/api/views/${encodeURIComponent(e)}${r?`?${r}`:``}`,{credentials:`same-origin`,headers:{Accept:`application/json`}}),a=await i.json();if(!i.ok||!a.ok){let e=`diagnostic`in a?a.diagnostic.message:`${i.status} ${i.statusText}`;throw Error(e)}return a}function Cv({name:e}){let{language:t}=J(),n=I(bc()),r=I({queryKey:[`collections`],queryFn:async()=>(await q.get(`/collections`)).collections}),i=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}).data?.canonicalLocale??null,a=n.data?.find(t=>t.name===e),o=r.data?.find(e=>e.name===a?.from)?.schema,[s,c]=P.useState({}),[l,u]=P.useState(``),[d,f]=P.useState(``),p=I({queryKey:[`view`,e,s,l,d],queryFn:()=>Sv(e,{...s,...l?{page:l}:{},...d?{show:d}:{}}),enabled:!!a});if(n.isLoading||r.isLoading)return(0,F.jsx)(`div`,{className:`glass-card h-64 animate-pulse`});if(n.isError)return(0,F.jsx)(eg,{error:n.error});if(!a)return(0,F.jsx)(`div`,{className:`space-y-6`,children:(0,F.jsx)(Zh,{eyebrow:`AotterMantle`,title:Y(t,`views.notFound.title`)})});let m=p.data?.data.rows??[],h=Tv(a,m);return(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(Zh,{eyebrow:`AotterMantle`,title:gc(a.title,t,i)??_c(a.name),description:Y(t,`views.page.body`,{schema:a.from})}),a.params?(0,F.jsxs)(Qh,{className:`space-y-4`,children:[(0,F.jsx)(`h2`,{className:`text-sm font-semibold`,children:Y(t,`views.params.title`)}),(0,F.jsx)(E_,{schema:a.params,value:s,path:[],onChange:c,language:t,canonical:i,collectionName:a.name,mediaPurposes:[]}),(0,F.jsx)(wv,{page:l,show:d,onPage:u,onShow:f}),(0,F.jsxs)(U,{type:`button`,onClick:()=>void p.refetch(),disabled:p.isFetching,children:[(0,F.jsx)(pn,{className:`size-4`,"aria-hidden":!0}),p.isFetching?Y(t,`views.running`):Y(t,`views.run`)]})]}):(0,F.jsxs)(Qh,{className:`space-y-4`,children:[(0,F.jsx)(wv,{page:l,show:d,onPage:u,onShow:f}),(0,F.jsxs)(U,{type:`button`,onClick:()=>void p.refetch(),disabled:p.isFetching,children:[(0,F.jsx)(pn,{className:`size-4`,"aria-hidden":!0}),p.isFetching?Y(t,`views.running`):Y(t,`views.run`)]})]}),p.isError?(0,F.jsx)(eg,{error:p.error}):null,p.data&&m.length===0?(0,F.jsx)($h,{title:Y(t,`views.empty.title`),description:Y(t,`views.empty.body`)}):null,m.length>0?(0,F.jsxs)(cg,{children:[(0,F.jsx)(`thead`,{children:(0,F.jsx)(`tr`,{className:`border-b border-[var(--glass-border)]`,children:h.map(e=>(0,F.jsx)(lg,{children:vc(e,o?.properties?.[e],t,i)},e))})}),(0,F.jsx)(`tbody`,{children:m.map((e,t)=>(0,F.jsx)(`tr`,{className:`border-t border-[var(--glass-border)]`,children:h.map(t=>(0,F.jsx)(ug,{className:`text-muted-foreground`,children:Ev(o,t,e[t])},t))},t))})]}):null]})}function wv({page:e,show:t,onPage:n,onShow:r}){let[i,a]=xv;return(0,F.jsxs)(`div`,{className:`flex flex-wrap gap-3`,children:[(0,F.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium`,children:[(0,F.jsx)(`span`,{children:_c(i)}),(0,F.jsx)(`input`,{className:`admin-input w-28`,type:`number`,min:1,value:e,onChange:e=>n(e.target.value)})]}),(0,F.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium`,children:[(0,F.jsx)(`span`,{children:_c(a)}),(0,F.jsx)(`input`,{className:`admin-input w-28`,type:`number`,min:1,value:t,onChange:e=>r(e.target.value)})]})]})}function Tv(e,t){if(e.fields&&e.fields.length>0)return[...e.fields];let n=new Set;for(let e of t)for(let t of Object.keys(e))n.add(t);return[...n]}function Ev(e,t,n){let r=e?.properties?.[t];if(Dg(r)){let e=kg(n,void 0);if(e)return e}if(Og(r)){let e=Ag(n);if(e)return e}return n==null||n===``?(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:`-`}):typeof n==`string`||typeof n==`number`||typeof n==`boolean`?String(n):(0,F.jsx)(`span`,{className:`font-mono text-xs`,children:JSON.stringify(n)})}var Dv=new Intl.DateTimeFormat(void 0,{dateStyle:`short`,timeStyle:`short`});function Ov(){let{language:e}=J(),t=I({queryKey:[`approvals`,e],queryFn:()=>kv(e)}),n=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}).data?.canonicalLocale??null,r=t.data??[],i=r.reduce((e,t)=>e+t.entries.length,0);return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Zh,{eyebrow:`AotterMantle`,title:Y(e,`approvals.title`),description:Y(e,`approvals.body`),actions:(0,F.jsx)(wg,{status:`review`})}),t.isLoading?(0,F.jsx)(jv,{}):null,t.isError?(0,F.jsx)(eg,{error:t.error}):null,!t.isLoading&&!t.isError&&i===0?(0,F.jsx)($h,{icon:jt,title:Y(e,`approvals.emptyTitle`),description:Y(e,`approvals.emptyBody`)}):null,i>0?(0,F.jsx)(`div`,{className:`space-y-4`,children:r.map(t=>(0,F.jsxs)(Qh,{children:[(0,F.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center justify-between gap-3`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-lg font-semibold`,children:gc(t.collection.title,e,n)??t.collection.name}),(0,F.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:Y(e,`approvals.groupBody`,{count:String(t.entries.length),status:Sh(e,`review`)})})]}),(0,F.jsx)(U,{asChild:!0,variant:`secondary`,size:`sm`,children:(0,F.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(t.collection.name)}?status=review`,children:[Y(e,`approvals.openCollection`),(0,F.jsx)(Rt,{className:`size-3.5`,"aria-hidden":!0})]})})]}),(0,F.jsx)(`div`,{className:`divide-y divide-[var(--glass-border)] overflow-hidden rounded-lg border border-[var(--glass-border)] bg-background/25`,children:t.entries.map(t=>(0,F.jsx)(Av,{entry:t,language:e},t.id))})]},t.collection.name))}):null]})}async function kv(e){let{collections:t}=await q.get(`/collections`),n=t.filter(e=>e.lifecycle===`editorial`);return(await Promise.all(n.map(async t=>{let n=new URLSearchParams({collection:t.name,status:`review`,limit:`99`,locale:e});return{collection:t,entries:(await q.get(`/entries?${n.toString()}`)).items}}))).filter(e=>e.entries.length>0)}function Av({entry:e,language:t}){let n=Mv(e,t);return(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 p-3`,children:[(0,F.jsxs)(`div`,{className:`min-w-0`,children:[(0,F.jsx)(`a`,{href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,className:`block truncate text-sm font-semibold text-foreground hover:underline`,title:n,children:n}),(0,F.jsxs)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:[e.collection,` / v`,e.version,` / `,Nv(e.updated_at)]})]}),(0,F.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,F.jsx)(wg,{status:e.status}),(0,F.jsx)(U,{asChild:!0,size:`sm`,children:(0,F.jsx)(`a`,{href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,children:Y(t,`approvals.reviewEntry`)})})]})]})}function jv(){return(0,F.jsx)(`div`,{className:`glass-card overflow-hidden`,children:[0,1,2].map(e=>(0,F.jsxs)(`div`,{className:`flex items-center gap-4 border-b border-[var(--glass-border)] p-4 last:border-b-0`,children:[(0,F.jsx)(`div`,{className:`h-3 w-32 animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-3 flex-1 animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-8 w-24 animate-pulse rounded bg-muted`})]},e))})}function Mv(e,t){return typeof e.title==`string`&&e.title.trim()?e.title:e.title==null||e.title===``?Y(t,`collection.untitled`):JSON.stringify(e.title)}function Nv(e){if(!Number.isFinite(e))return`-`;try{return Dv.format(new Date(e))}catch{return`-`}}function Pv({path:e,intent:t=`missing`,kind:n=`route`}){let{language:r}=J(),i=t===`planned`&&n===`settings`;return(0,F.jsxs)(`div`,{className:`glass-card animate-rise mx-auto max-w-md p-8 text-center`,children:[(0,F.jsx)(`h1`,{className:`mb-2 text-xl`,children:i?Y(r,`settings.planned.title`):t===`planned`?Y(r,`system.notFound.plannedTitle`):Y(r,`system.notFound.title`)}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:i?Y(r,`settings.planned.body`):(0,F.jsxs)(F.Fragment,{children:[Y(r,`system.notFound.body`),` `,(0,F.jsx)(`code`,{className:`font-mono text-xs`,children:e}),`.`]})}),(0,F.jsx)(`p`,{className:`mt-4 text-sm`,children:(0,F.jsx)(`a`,{href:`/admin`,className:`text-primary hover:underline`,children:Y(r,`system.notFound.back`)})})]})}function Fv(){let{language:e,direction:t,theme:n,setLanguage:r,setTheme:i}=J();return(0,F.jsxs)(`div`,{className:`mx-auto max-w-4xl`,children:[(0,F.jsx)(Zh,{eyebrow:Y(e,`preferences.heading`),title:Y(e,`preferences.page.title`),description:Y(e,`preferences.page.body`)}),(0,F.jsxs)(`div`,{className:`grid gap-4`,children:[(0,F.jsxs)(Qh,{children:[(0,F.jsx)(Lv,{icon:Jt,title:Y(e,`preferences.language`),body:Y(e,`preferences.page.languageBody`)}),(0,F.jsx)(Iv,{language:e,onChange:r})]}),(0,F.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,F.jsxs)(Qh,{children:[(0,F.jsx)(Lv,{icon:tn,title:Y(e,`preferences.appearance`),body:Y(e,`preferences.page.appearanceBody`)}),(0,F.jsx)(`div`,{className:`mt-4 grid gap-2`,children:zv(e).map(e=>(0,F.jsx)(Rv,{selected:e.value===n,onClick:()=>i(e.value),icon:e.icon,children:e.label},e.value))})]}),(0,F.jsxs)(Qh,{children:[(0,F.jsx)(Lv,{icon:sn,title:Y(e,`preferences.direction`),body:Y(e,`preferences.direction.auto`)}),(0,F.jsx)(`div`,{className:`mt-4 rounded-lg border border-border/70 bg-background/30 px-3 py-2 text-sm`,children:(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:t===`rtl`?Y(e,`preferences.rtl`):Y(e,`preferences.ltr`)})})]})]})]})]})}function Iv({language:e,onChange:t}){let[n,r]=P.useState(!1),[i,a]=P.useState(``),o=Ac.find(t=>t.value===e)??Ac[0],s=i.trim().toLowerCase(),c=s?Ac.filter(e=>[e.nativeLabel,e.label,e.value,e.htmlLang,e.direction].join(` `).toLowerCase().includes(s)):Ac;return(0,F.jsxs)(`div`,{className:`relative mt-4`,children:[(0,F.jsxs)(`button`,{type:`button`,onClick:()=>r(e=>!e),className:`flex w-full items-center justify-between gap-3 rounded-lg border border-border/70 bg-background/30 px-3 py-2 text-start text-sm transition-colors hover:bg-accent hover:text-accent-foreground`,"aria-expanded":n,children:[(0,F.jsxs)(`span`,{className:`min-w-0`,children:[(0,F.jsx)(`span`,{className:`block truncate font-medium text-foreground`,children:o.nativeLabel}),(0,F.jsxs)(`span`,{className:`block truncate text-xs text-muted-foreground`,children:[o.label,` · `,o.value,` · `,Wc(o.value).toUpperCase()]})]}),(0,F.jsx)(Dt,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),n?(0,F.jsxs)(`div`,{className:`absolute z-30 mt-2 w-full overflow-hidden rounded-xl border border-[var(--glass-border)] bg-card shadow-[var(--glass-shadow-lg)] backdrop-blur-md`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-[var(--glass-border)] px-3 py-2`,children:[(0,F.jsx)(pn,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,F.jsx)(`input`,{autoFocus:!0,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>{e.key===`Escape`&&r(!1)},placeholder:Y(e,`preferences.language.search`),className:`min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground`})]}),(0,F.jsx)(`div`,{className:`max-h-72 overflow-y-auto p-1`,children:c.length===0?(0,F.jsx)(`div`,{className:`px-3 py-6 text-center text-sm text-muted-foreground`,children:Y(e,`preferences.language.noResults`)}):c.map(n=>(0,F.jsxs)(`button`,{type:`button`,onClick:()=>{t(n.value),a(``),r(!1)},className:H(`flex w-full items-center justify-between gap-3 rounded-lg px-3 py-2 text-start text-sm transition-colors`,n.value===e?`bg-primary/10 text-foreground`:`text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:[(0,F.jsxs)(`span`,{className:`min-w-0`,children:[(0,F.jsx)(`span`,{className:`block truncate font-medium`,children:n.nativeLabel}),(0,F.jsxs)(`span`,{className:`block truncate text-xs opacity-75`,children:[n.label,` · `,n.value,` · `,n.direction.toUpperCase()]})]}),(0,F.jsx)(wt,{className:H(`size-4 shrink-0 text-primary`,n.value===e?`opacity-100`:`opacity-0`),"aria-hidden":!0})]},n.value))})]}):null]})}function Lv({icon:e,title:t,body:n}){return(0,F.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,F.jsx)(`div`,{className:`rounded-xl bg-primary/15 p-2 text-primary`,children:(0,F.jsx)(e,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-lg`,children:t}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n})]})]})}function Rv({selected:e,onClick:t,icon:n,children:r}){return(0,F.jsxs)(`button`,{type:`button`,onClick:t,className:H(`flex min-h-10 items-center justify-between gap-3 rounded-lg border px-3 py-2 text-start text-sm transition-colors`,e?`border-primary/50 bg-primary/10 text-foreground`:`border-border/70 bg-background/30 text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:[(0,F.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[n?(0,F.jsx)(n,{className:`size-4 shrink-0`,"aria-hidden":!0}):null,(0,F.jsx)(`span`,{className:`truncate`,children:r})]}),(0,F.jsx)(wt,{className:H(`size-4 shrink-0 text-primary`,e?`opacity-100`:`opacity-0`),"aria-hidden":!0})]})}function zv(e){return[{value:`light`,label:Y(e,`preferences.light`),icon:vn},{value:`dark`,label:Y(e,`preferences.dark`),icon:nn},{value:`system`,label:Y(e,`preferences.system`),icon:tn}]}function Bv(){let{language:e}=J(),t=I({queryKey:[`site-settings`],queryFn:()=>q.get(`/site-settings`)}),[n,r]=P.useState(null),[i,a]=P.useState(`brand`);P.useEffect(()=>{t.data&&r(t.data)},[t.data]);let o=ut({mutationFn:e=>q.patch(`/site-settings`,e),onSuccess:e=>r(e)});return t.isLoading||!n?(0,F.jsx)(`div`,{className:`glass-card h-64 animate-pulse`}):t.isError?(0,F.jsx)(eg,{error:t.error}):(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(Zh,{eyebrow:`AotterMantle`,title:Y(e,`settings.page.title`),description:Y(e,`settings.page.body`),actions:(0,F.jsxs)(U,{onClick:()=>o.mutate(n),disabled:o.isPending,children:[(0,F.jsx)(fn,{className:`size-4`,"aria-hidden":!0}),o.isPending?Y(e,`crud.saving`):Y(e,`entryEdit.save`)]})}),o.isError?(0,F.jsx)(eg,{error:o.error}):null,(0,F.jsxs)(`div`,{role:`tablist`,"aria-label":Y(e,`settings.tabsLabel`),className:`inline-flex gap-1 rounded-lg border border-[var(--glass-border)] bg-background/60 p-1`,children:[(0,F.jsx)(Vv,{active:i===`brand`,icon:gn,label:Y(e,`settings.tab.brand`),onClick:()=>a(`brand`)}),(0,F.jsx)(Vv,{active:i===`tracking`,icon:Ct,label:Y(e,`settings.tab.tracking`),onClick:()=>a(`tracking`)})]}),i===`brand`?(0,F.jsxs)(Qh,{className:`grid max-w-5xl gap-4`,children:[(0,F.jsx)(Hv,{title:Y(e,`settings.brandSection`),body:Y(e,`settings.brandSectionBody`)}),(0,F.jsx)(Uv,{label:Y(e,`settings.siteBrand`),children:(0,F.jsx)(`input`,{className:`admin-input`,value:n.brand,onChange:e=>Wv(r,`brand`,e.target.value)})}),(0,F.jsx)(Uv,{label:Y(e,`settings.siteTitle`),children:(0,F.jsx)(`input`,{className:`admin-input`,value:n.title,onChange:e=>Wv(r,`title`,e.target.value)})}),(0,F.jsx)(Uv,{label:Y(e,`settings.siteDescription`),children:(0,F.jsx)(`textarea`,{className:`admin-textarea min-h-24`,value:n.description,onChange:e=>Wv(r,`description`,e.target.value)})})]}):null,i===`tracking`?(0,F.jsxs)(Qh,{className:`grid max-w-5xl gap-4`,children:[(0,F.jsx)(Hv,{title:Y(e,`settings.trackingSection`),body:Y(e,`settings.trackingSectionBody`)}),(0,F.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,F.jsx)(Uv,{label:Y(e,`settings.ga4MeasurementId`),description:Y(e,`settings.ga4MeasurementIdHelp`),children:(0,F.jsx)(`input`,{className:`admin-input`,value:n.ga4MeasurementId,placeholder:`G-XXXXXXXXXX`,onChange:e=>Wv(r,`ga4MeasurementId`,e.target.value)})}),(0,F.jsx)(Uv,{label:Y(e,`settings.facebookPixelId`),description:Y(e,`settings.facebookPixelIdHelp`),children:(0,F.jsx)(`input`,{className:`admin-input`,value:n.facebookPixelId,placeholder:`123456789012345`,onChange:e=>Wv(r,`facebookPixelId`,e.target.value)})})]})]}):null]})}function Vv({active:e,icon:t,label:n,onClick:r}){return(0,F.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":e,className:H(`inline-flex h-9 items-center gap-2 rounded-md px-3 text-sm font-semibold transition`,e?`bg-primary text-primary-foreground shadow-sm`:`text-muted-foreground hover:bg-accent hover:text-accent-foreground`),onClick:r,children:[(0,F.jsx)(t,{className:`size-4`,"aria-hidden":!0}),n]})}function Hv({title:e,body:t}){return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-lg font-semibold`,children:e}),(0,F.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:t})]})}function Uv({label:e,description:t,children:n}){return(0,F.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium`,children:[(0,F.jsx)(`span`,{children:e}),t?(0,F.jsx)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:t}):null,n]})}function Wv(e,t,n){e(e=>e&&{...e,[t]:n})}var Gv=[`owner`,`editor`,`contributor`,`none`],Kv=[`owner`,`editor`,`contributor`];function qv(){let{language:e}=J(),t=Ye(),n=I({queryKey:[`me`],queryFn:()=>q.get(`/me`),retry:!1}),r=I({queryKey:[`staff`],queryFn:()=>q.get(`/staff`),retry:!1}),i=()=>{t.invalidateQueries({queryKey:[`staff`]})},a=ut({mutationFn:e=>q.patch(`/staff/${encodeURIComponent(e.userId)}/role`,{role:e.role}),onSettled:i}),o=ut({mutationFn:e=>q.delete(`/staff/invitations/${encodeURIComponent(e)}`),onSettled:i});if(r.isError)return(0,F.jsx)(eg,{error:r.error});if(r.isLoading||!r.data)return(0,F.jsx)(`div`,{className:`glass-card h-64 animate-pulse`});let s=t=>Y(e,`staff.role.${t}`);return(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(Zh,{eyebrow:`AotterMantle`,title:Y(e,`staff.page.title`),description:Y(e,`staff.page.body`)}),a.isError?(0,F.jsx)(eg,{error:Xv(a.error)}):null,o.isError?(0,F.jsx)(eg,{error:Xv(o.error)}):null,(0,F.jsx)(Jv,{onInvited:i}),(0,F.jsx)(Qh,{className:`overflow-x-auto p-0`,children:(0,F.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{className:`border-b text-left [&>th]:px-4 [&>th]:py-3 [&>th]:font-medium`,children:[(0,F.jsx)(`th`,{children:Y(e,`staff.table.name`)}),(0,F.jsx)(`th`,{children:Y(e,`staff.table.email`)}),(0,F.jsx)(`th`,{children:Y(e,`staff.table.status`)}),(0,F.jsx)(`th`,{children:Y(e,`staff.table.role`)})]})}),(0,F.jsx)(`tbody`,{children:r.data.users.map(t=>{let r=t.id===n.data?.userId,i=!t.emailVerified&&!t.githubLogin,c=Yv(t.role)?t.role:`none`;return(0,F.jsxs)(`tr`,{className:`border-b last:border-b-0 [&>td]:px-4 [&>td]:py-3`,children:[(0,F.jsx)(`td`,{children:t.name}),(0,F.jsx)(`td`,{children:t.email}),(0,F.jsx)(`td`,{children:i?(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,F.jsx)(`span`,{className:`rounded bg-amber-100 px-2 py-0.5 text-xs text-amber-800`,children:Y(e,`staff.badge.invited`)}),(0,F.jsx)(U,{variant:`ghost`,size:`sm`,disabled:o.isPending,onClick:()=>o.mutate(t.id),children:Y(e,`staff.invite.revoke`)})]}):t.githubLogin?`GitHub: ${t.githubLogin}`:Y(e,`staff.status.emailSignIn`)}),(0,F.jsx)(`td`,{children:r?(0,F.jsxs)(`span`,{className:`text-muted-foreground`,children:[s(c),` · `,Y(e,`staff.self`)]}):(0,F.jsx)(`select`,{className:`admin-input max-w-56`,value:c,disabled:a.isPending,onChange:e=>{let n=e.target.value;a.mutate({userId:t.id,role:Yv(n)?n:null})},children:Gv.map(e=>(0,F.jsx)(`option`,{value:e,children:s(e)},e))})})]},t.id)})})]})}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Y(e,`staff.invite.hint`)})]})}function Jv({onInvited:e}){let{language:t}=J(),[n,r]=P.useState(``),[i,a]=P.useState(`contributor`),o=ut({mutationFn:()=>q.post(`/staff/invitations`,{email:n,role:i}),onSuccess:()=>{r(``),e()}});return(0,F.jsxs)(Qh,{className:`grid gap-4`,children:[(0,F.jsx)(`h2`,{className:`text-sm font-semibold`,children:Y(t,`staff.invite.title`)}),o.isError?(0,F.jsx)(eg,{error:Xv(o.error)}):null,(0,F.jsxs)(`div`,{className:`flex flex-wrap items-end gap-3`,children:[(0,F.jsxs)(`label`,{className:`grid min-w-64 flex-1 gap-1.5 text-sm font-medium`,children:[(0,F.jsx)(`span`,{children:Y(t,`staff.invite.emailLabel`)}),(0,F.jsx)(`input`,{className:`admin-input`,type:`email`,value:n,placeholder:Y(t,`staff.invite.emailPlaceholder`),onChange:e=>r(e.target.value)})]}),(0,F.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium`,children:[(0,F.jsx)(`span`,{children:Y(t,`staff.invite.roleLabel`)}),(0,F.jsx)(`select`,{className:`admin-input`,value:i,onChange:e=>{let t=e.target.value;Yv(t)&&a(t)},children:Kv.map(e=>(0,F.jsx)(`option`,{value:e,children:Y(t,`staff.role.${e}`)},e))})]}),(0,F.jsxs)(U,{onClick:()=>o.mutate(),disabled:o.isPending||n.trim()===``,children:[(0,F.jsx)(kn,{className:`size-4`,"aria-hidden":!0}),o.isPending?Y(t,`staff.invite.sending`):Y(t,`staff.invite.button`)]})]})]})}function Yv(e){return e===`owner`||e===`editor`||e===`contributor`}function Xv(e){if(e instanceof pc){let t=e.body?.diagnostic?.message;if(t)return Error(t)}return e}function Zv(){let e=kc();return e.pathname===`/admin/sign-in`?(0,F.jsx)(Hh,{}):(0,F.jsx)(Qv,{path:e.pathname})}function Qv({path:e}){let t=I({queryKey:[`me`],queryFn:()=>q.get(`/me`),retry:!1}),n=t.isError&&t.error instanceof pc&&t.error.status===401;if((0,P.useEffect)(()=>{if(!n||typeof window>`u`)return;let e=window.location.pathname+window.location.search;window.location.href=`/admin/sign-in?return=${encodeURIComponent(e)}`},[n]),n)return(0,F.jsx)(Ih,{});if(t.isError&&t.error instanceof pc&&t.error.status===403)return(0,F.jsx)(Rh,{login:(t.error.body??{}).login??null});if(t.isError)return(0,F.jsx)(Lh,{error:t.error});if(t.isLoading)return(0,F.jsx)(Ih,{});let r=e.match(/^\/admin\/c\/([^/]+)\/?$/);if(r)return(0,F.jsx)(Mh,{children:(0,F.jsx)(ev,{collectionName:decodeURIComponent(r[1])})});let i=e.match(/^\/admin\/c\/([^/]+)\/([^/]+)\/?$/);if(i)return(0,F.jsx)(Mh,{children:(0,F.jsx)(C_,{collectionName:decodeURIComponent(i[1]),entryId:decodeURIComponent(i[2])})});if(e===`/admin`||e===`/admin/`)return(0,F.jsx)(Mh,{children:(0,F.jsx)(ag,{})});if(e===`/admin/editor`)return(0,F.jsx)(Mh,{children:(0,F.jsx)(vv,{})});if(e===`/admin/media`)return(0,F.jsx)(Mh,{children:(0,F.jsx)(g_,{})});if(e===`/admin/preferences`)return(0,F.jsx)(Mh,{children:(0,F.jsx)(Fv,{})});if(e===`/admin/settings`)return(0,F.jsx)(Mh,{children:(0,F.jsx)(Bv,{})});if(e===`/admin/staff`)return(0,F.jsx)(Mh,{children:(0,F.jsx)(qv,{})});if(e===`/admin/approvals`)return(0,F.jsx)(Mh,{children:(0,F.jsx)(Ov,{})});if(e===`/admin/ops`)return(0,F.jsx)(Mh,{children:(0,F.jsx)(yv,{})});let a=e.match(/^\/admin\/views\/([^/]+)\/?$/);return a?(0,F.jsx)(Mh,{children:(0,F.jsx)(Cv,{name:decodeURIComponent(a[1])})}):(0,F.jsx)(Mh,{children:(0,F.jsx)(Pv,{path:e})})}var $v=new Ge({defaultOptions:{queries:{retry:(e,t)=>t instanceof pc&&[401,403].includes(t.status)?!1:e<2,refetchOnWindowFocus:!1,staleTime:1e4}}}),ey=document.getElementById(`root`);if(!ey)throw Error(`Missing #root element.`);Fn.createRoot(ey).render((0,F.jsx)(P.StrictMode,{children:(0,F.jsx)(Xe,{client:$v,children:(0,F.jsx)(Ic,{children:(0,F.jsx)(Dc,{children:(0,F.jsx)(Ig,{children:(0,F.jsx)(bg,{children:(0,F.jsx)(Zv,{})})})})})})}));</script>
|
|
141
|
+
`)){let e=t.trim();if(!e){r&&n.push(`</ul>`),i&&n.push(`</ol>`),r=!1,i=!1;continue}if(e.startsWith(`<`)){r&&n.push(`</ul>`),i&&n.push(`</ol>`),r=!1,i=!1,n.push(e);continue}let a=e.match(/^!\[(.*)]\((.*)\)$/);if(a){n.push(`<figure><img src="${m_(a[2]??``)}" alt="${m_(a[1]??``)}" /></figure>`);continue}let o=f_(e);if(e.startsWith(`## `)){r&&n.push(`</ul>`),i&&n.push(`</ol>`),r=!1,i=!1,n.push(`<h2>${f_(e.slice(3))}</h2>`);continue}if(e.startsWith(`- [ ] `)){r||=(n.push(`<ul>`),!0),n.push(`<li><input type="checkbox" disabled /> ${f_(e.slice(6))}</li>`);continue}if(e.startsWith(`- `)){r||=(n.push(`<ul>`),!0),n.push(`<li>${f_(e.slice(2))}</li>`);continue}if(/^\d+\.\s/.test(e)){i||=(n.push(`<ol>`),!0),n.push(`<li>${f_(e.replace(/^\d+\.\s/,``))}</li>`);continue}r&&n.push(`</ul>`),i&&n.push(`</ol>`),r=!1,i=!1,n.push(`<p>${o}</p>`)}return r&&n.push(`</ul>`),i&&n.push(`</ol>`),n.join(``)}function f_(e){return p_(e).replace(/\*\*(.+?)\*\*/g,`<strong>$1</strong>`).replace(/_(.+?)_/g,`<em>$1</em>`).replace(/~~(.+?)~~/g,`<s>$1</s>`).replace(/`(.+?)`/g,`<code>$1</code>`).replace(/\[(.+?)]\((https?:\/\/[^)]+)\)/g,`<a href="$2">$1</a>`)}function p_(e){return e.replace(/[&<>"']/g,e=>{switch(e){case`&`:return`&`;case`<`:return`<`;case`>`:return`>`;case`"`:return`"`;default:return`'`}})}function m_(e){return p_(e).replace(/`/g,```)}var h_=new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`short`});function g_(){let{language:e}=J(),t=kc(),n=new URLSearchParams(t.search).get(`search`)?.trim()??``,r=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}).data?.media?.purposes??[];return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Zh,{eyebrow:Y(e,`nav.media`),title:Y(e,`media.title`),description:Y(e,`media.description`)}),(0,F.jsx)(y_,{searchTerm:n,language:e}),(0,F.jsx)(__,{language:e,purposes:r,searchTerm:n,emptyIcon:Kt})]})}function __({language:e,purposes:t,searchTerm:n,emptyIcon:r,onPick:i}){let a=Ye(),o=I({queryKey:[`media`,n],queryFn:()=>{let e=new URLSearchParams({limit:`60`});return n&&e.set(`search`,n),q.get(`/media?${e.toString()}`)}}),[s,c]=P.useState([]),[l,u]=P.useState(void 0),[d,f]=P.useState(!1),[p,m]=P.useState(null);P.useEffect(()=>{c([]),u(void 0),m(null)},[n]);let h=l===void 0?o.data?.next_cursor??null:l,g=P.useMemo(()=>[...o.data?.items??[],...s],[o.data,s]),[_,v]=P.useState(!1),[y,b]=P.useState(null),[x,S]=P.useState(!1),C=P.useRef(null),w=t.length>0&&!_,T=P.useCallback(()=>{a.invalidateQueries({queryKey:[`media`]})},[a]);async function ee(n){let r=Array.from(n).filter(e=>e.type.startsWith(`image/`));if(r.length!==0){v(!0),b(null);try{let n=await Promise.allSettled(r.map(n=>Rg({file:n,purposes:t,language:e}))),i=n.filter(e=>e.status===`fulfilled`).length,a=n.filter(e=>e.status===`rejected`);if(i>0&&T(),a.length>0){let t=a[0]?.reason,n=t instanceof Error?t.message:String(t);b(`${Y(e,`media.uploadFailed`,{count:String(a.length),total:String(r.length)})} ${n}`.trim())}}finally{v(!1),C.current&&(C.current.value=``)}}}async function E(){if(h){f(!0),m(null);try{let e=new URLSearchParams({limit:`60`,cursor:h});n&&e.set(`search`,n);let t=await q.get(`/media?${e.toString()}`);c(e=>[...e,...t.items]),u(t.next_cursor)}catch(e){m(e)}finally{f(!1)}}}return(0,F.jsxs)(`div`,{onDragOver:e=>{w&&(e.preventDefault(),S(!0))},onDragLeave:()=>S(!1),onDrop:e=>{w&&(e.preventDefault(),S(!1),ee(e.dataTransfer.files))},className:H(`rounded-xl border border-dashed p-4 transition-colors`,x?`border-primary bg-accent/40`:`border-transparent`),children:[(0,F.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center gap-2`,children:[(0,F.jsxs)(U,{type:`button`,variant:`default`,onClick:()=>C.current?.click(),disabled:!w,title:t.length===0?Y(e,`media.noPurpose`):void 0,children:[(0,F.jsx)(On,{className:`size-4`,"aria-hidden":!0}),_?Y(e,`media.uploading`):Y(e,`media.upload`)]}),(0,F.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:Y(e,`media.dropHere`)}),(0,F.jsx)(`input`,{ref:C,type:`file`,accept:`image/*`,multiple:!0,className:`hidden`,onChange:e=>{e.currentTarget.files&&ee(e.currentTarget.files)}})]}),y?(0,F.jsx)(`p`,{className:`mb-3 text-xs text-destructive`,children:y}):null,o.isError?(0,F.jsx)(eg,{error:o.error}):null,o.isLoading?(0,F.jsx)(b_,{}):g.length===0?(0,F.jsx)($h,{icon:r,title:Y(e,`media.empty.title`),description:n?Y(e,`media.empty.search`,{search:n}):Y(e,`media.empty.all`)}):(0,F.jsx)(`div`,{className:`grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4`,children:g.map(t=>(0,F.jsx)(v_,{item:t,language:e,onChanged:T,onPick:i},t.id))}),p?(0,F.jsx)(eg,{error:p}):null,h?(0,F.jsx)(`div`,{className:`mt-4`,children:(0,F.jsx)(U,{type:`button`,variant:`secondary`,onClick:()=>void E(),disabled:d,children:d?Y(e,`media.saving`):Y(e,`media.loadMore`)})}):null]})}function v_({item:e,language:t,onChanged:n,onPick:r}){let[i,a]=P.useState(e.alt??``),[o,s]=P.useState(e.caption??``),[c,l]=P.useState(!1),u=i!==(e.alt??``)||o!==(e.caption??``),d=ut({mutationFn:()=>q.patch(`/media/${encodeURIComponent(e.id)}`,{alt:i,caption:o}),onSuccess:n}),f=ut({mutationFn:()=>q.delete(`/media/${encodeURIComponent(e.id)}`),onSuccess:n}),p=xg();async function m(){await p({description:Y(t,`media.deleteConfirm`)})&&f.mutate()}async function h(){try{await navigator.clipboard.writeText(e.id),l(!0),window.setTimeout(()=>l(!1),1400)}catch{l(!1)}}return(0,F.jsxs)(`div`,{className:`flex flex-col overflow-hidden rounded-xl border border-[var(--glass-border)] bg-card/50`,children:[(0,F.jsxs)(`div`,{className:`relative aspect-square bg-muted/40`,children:[e.primaryUrl?(0,F.jsx)(`img`,{src:e.primaryUrl,alt:e.alt??``,loading:`lazy`,className:`size-full object-cover`}):(0,F.jsx)(`div`,{className:`flex size-full items-center justify-center text-muted-foreground`,children:(0,F.jsx)(Kt,{className:`size-6`,"aria-hidden":!0})}),r?(0,F.jsx)(`button`,{type:`button`,className:`absolute inset-0 flex items-end justify-center bg-black/0 p-2 opacity-0 transition hover:bg-black/40 hover:opacity-100`,onClick:()=>r(e),children:(0,F.jsx)(`span`,{className:`rounded-md bg-primary px-3 py-1 text-xs font-semibold text-primary-foreground`,children:Y(t,`media.use`)})}):null]}),(0,F.jsxs)(`div`,{className:`flex flex-1 flex-col gap-2 p-3`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between gap-2 text-xs text-muted-foreground`,children:[(0,F.jsxs)(`button`,{type:`button`,className:`group inline-flex items-center gap-1 font-mono hover:text-foreground`,title:Y(t,`media.copyId`),onClick:()=>void h(),children:[e.id.slice(0,8),c?(0,F.jsx)(wt,{className:`size-3 text-[color:var(--success)]`,"aria-hidden":!0}):(0,F.jsx)(Pt,{className:`size-3 opacity-40 transition-opacity group-hover:opacity-80`,"aria-hidden":!0})]}),(0,F.jsx)(`span`,{children:S_(e.byteSize)})]}),r?null:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`input`,{className:`admin-input h-8 text-sm`,value:i,placeholder:Y(t,`media.altPlaceholder`),"aria-label":Y(t,`media.alt`),onChange:e=>a(e.target.value)}),(0,F.jsx)(`input`,{className:`admin-input h-8 text-sm`,value:o,placeholder:Y(t,`media.captionPlaceholder`),"aria-label":Y(t,`media.caption`),onChange:e=>s(e.target.value)}),(0,F.jsxs)(`div`,{className:`mt-1 flex items-center justify-between gap-2`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-1`,children:[e.primaryUrl?(0,F.jsx)(`a`,{className:`row-action`,href:e.primaryUrl,target:`_blank`,rel:`noreferrer`,title:Y(t,`media.open`),children:(0,F.jsx)(Rt,{className:`size-3.5`,"aria-hidden":!0})}):null,(0,F.jsx)(`button`,{type:`button`,className:`row-action`,title:Y(t,`media.delete`),disabled:f.isPending,onClick:()=>void m(),children:(0,F.jsx)(Cn,{className:`size-3.5`,"aria-hidden":!0})})]}),(0,F.jsx)(U,{type:`button`,size:`sm`,variant:`secondary`,disabled:!u||d.isPending,onClick:()=>d.mutate(),children:d.isPending?Y(t,`media.saving`):d.isSuccess&&!u?Y(t,`media.saved`):Y(t,`media.save`)})]}),d.isError?(0,F.jsx)(eg,{error:d.error}):null,f.isError?(0,F.jsx)(eg,{error:f.error}):null]}),(0,F.jsx)(`p`,{className:`text-[11px] text-muted-foreground`,children:Y(t,`media.uploaded`,{date:x_(e.createdAt)})})]})]})}function y_({searchTerm:e,language:t}){let{navigate:n}=Oc(),[r,i]=P.useState(e);return P.useEffect(()=>i(e),[e]),(0,F.jsx)(`form`,{className:`mb-4 max-w-xl`,role:`search`,onSubmit:e=>{e.preventDefault();let t=r.trim(),i=new URLSearchParams;t&&i.set(`search`,t);let a=i.toString();n(`/admin/media${a?`?${a}`:``}`)},children:(0,F.jsxs)(`label`,{className:`relative block`,children:[(0,F.jsx)(pn,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,F.jsx)(`input`,{className:`admin-input h-10 pl-9`,value:r,onChange:e=>i(e.target.value),placeholder:Y(t,`media.searchPlaceholder`)})]})})}function b_(){return(0,F.jsx)(`div`,{className:`grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4`,children:[0,1,2,3,4,5,6,7].map(e=>(0,F.jsxs)(`div`,{className:`overflow-hidden rounded-xl border border-[var(--glass-border)]`,children:[(0,F.jsx)(`div`,{className:`aspect-square animate-pulse bg-muted`}),(0,F.jsxs)(`div`,{className:`space-y-2 p-3`,children:[(0,F.jsx)(`div`,{className:`h-3 w-1/2 animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-8 animate-pulse rounded bg-muted`})]})]},e))})}function x_(e){if(!Number.isFinite(e))return`-`;try{return h_.format(new Date(e))}catch{return`-`}}function S_(e){return e==null||!Number.isFinite(e)?``:e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function C_({collectionName:e,entryId:t}){let{language:n}=J(),r=Ye(),i=P.useMemo(()=>[`entry-editor`,e,t],[e,t]),a=I({queryKey:i,queryFn:()=>q.get(`/entries/${encodeURIComponent(t)}`)}),o=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}),s=I(xc()),c=P.useMemo(()=>Y_(s.data,e),[s.data,e]),[l,u]=P.useState(null);P.useEffect(()=>{a.data&&u(a.data.entry.data)},[a.data]);let d=P.useCallback(e=>{u(e.entry.data),r.setQueryData(i,e)},[r,i]),f=ut({mutationFn:e=>q.patch(`/entries/${encodeURIComponent(t)}`,{data:e,expectedVersion:a.data?.entry.version}),onSuccess:d}),p=ut({mutationFn:()=>q.post(`/entries/${encodeURIComponent(t)}/publish`,{}),onSuccess:d}),m=ut({mutationFn:()=>q.post(`/entries/${encodeURIComponent(t)}/unpublish`,{}),onSuccess:d});if(a.isLoading)return(0,F.jsx)(`div`,{className:`glass-card h-64 animate-pulse`});if(a.isError)return(0,F.jsx)(eg,{error:a.error});if(!a.data||!l)return(0,F.jsx)(eg,{error:Error(`Missing entry editor payload.`)});let h=a.data,g=o.data?.canonicalLocale??null,_=I_(l,h.entry.id,h.collection.schema),v=gc(h.collection.title,n,g)??h.collection.name,y=gc(h.collection.description,n,g),b=JSON.stringify(l)!==JSON.stringify(h.entry.data),x=h.collection.lifecycle===`none`,S=h.entry.status===`draft`,C=b&&(S||x),w=f.isPending||p.isPending||m.isPending,T=o.data?.media?.purposes??[],ee=P_(h.collection,l),E=h.related.filter(F_),D=h.related.filter(e=>!F_(e));return(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(Zh,{eyebrow:(0,F.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,F.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(e)}`,className:`inline-flex items-center gap-2 hover:underline`,children:[(0,F.jsx)(bt,{className:`size-3.5`,"aria-hidden":!0}),Y(n,`entryEdit.back`,{name:v})]}),ee?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{className:`text-foreground/30`,children:`/`}),(0,F.jsx)(`a`,{href:ee.href,className:`hover:underline`,children:Y(n,`entryEdit.parent`,{name:ee.label})})]}):null]}),title:_,description:Y(n,`entryEdit.body`,{name:v}),actions:(0,F.jsxs)(F.Fragment,{children:[!x&&(0,F.jsx)(wg,{status:h.entry.status}),(0,F.jsx)(X_,{row:h.entry,operations:c,language:n,canonical:g,onSuccess:()=>void r.invalidateQueries({queryKey:i}),trigger:(0,F.jsxs)(U,{type:`button`,variant:`secondary`,children:[(0,F.jsx)(Lt,{className:`size-4`,"aria-hidden":!0}),Y(n,`rowActions.menuLabel`)]})}),!x&&(S?(0,F.jsxs)(U,{type:`button`,variant:`secondary`,onClick:()=>p.mutate(),disabled:w||b,title:b?Y(n,`entryEdit.publishDisabledDirty`):Y(n,`entryEdit.publishTooltip`),children:[(0,F.jsx)(mn,{className:`size-4`,"aria-hidden":!0}),p.isPending?Y(n,`entryEdit.publishing`):Y(n,`entryEdit.publish`)]}):(0,F.jsxs)(U,{type:`button`,variant:`secondary`,onClick:()=>m.mutate(),disabled:w,title:Y(n,`entryEdit.unpublishTooltip`),children:[(0,F.jsx)(dn,{className:`size-4`,"aria-hidden":!0}),m.isPending?Y(n,`entryEdit.unpublishing`):Y(n,`entryEdit.unpublish`)]})),(0,F.jsxs)(U,{type:`button`,onClick:()=>f.mutate(l),disabled:w||!C,title:Y(n,`entryEdit.saveTooltip`),children:[(0,F.jsx)(fn,{className:`size-4`,"aria-hidden":!0}),f.isPending?Y(n,`crud.saving`):Y(n,`entryEdit.save`)]})]})}),x?(0,F.jsx)(`p`,{className:`-mt-4 text-sm text-muted-foreground`,children:Y(n,`entryEdit.operationalHint`)}):null,f.isError?(0,F.jsx)(eg,{error:f.error}):null,p.isError?(0,F.jsx)(eg,{error:p.error}):null,m.isError?(0,F.jsx)(eg,{error:m.error}):null,(0,F.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-[minmax(0,1fr)_22rem]`,children:[(0,F.jsxs)(`div`,{className:`space-y-5`,children:[(0,F.jsxs)(Qh,{children:[(0,F.jsx)(w_,{title:Y(n,`entryEdit.fields`),body:y?(0,F.jsx)(ng,{description:y,summaryLabel:Y(n,`collection.schemaDetails`),collapsedIntro:Y(n,iv(h.collection),{name:v})}):void 0}),(0,F.jsx)(E_,{schema:h.collection.schema,value:l,path:[],onChange:u,language:n,canonical:g,collectionName:h.collection.name,mediaPurposes:T})]}),E.length>0?(0,F.jsx)(N_,{sections:E,language:n,canonical:g,operations:s.data,onOperationSuccess:()=>void r.invalidateQueries({queryKey:i})}):null]}),(0,F.jsxs)(`div`,{className:`space-y-4`,children:[(0,F.jsxs)(Qh,{children:[(0,F.jsx)(w_,{title:Y(n,`entryEdit.meta`),body:`${h.entry.collection} / ${h.entry.id}`}),(0,F.jsxs)(`dl`,{className:`space-y-3 text-sm`,children:[!x&&(0,F.jsx)(T_,{label:Y(n,`collection.table.status`),value:(0,F.jsx)(wg,{status:h.entry.status})}),(0,F.jsx)(T_,{label:Y(n,`collection.table.locale`),value:h.entry.locale??`-`}),(0,F.jsx)(T_,{label:Y(n,`collection.table.version`),value:`v${h.entry.version}`})]})]}),D.length>0?(0,F.jsx)(N_,{sections:D,language:n,canonical:g,operations:s.data,onOperationSuccess:()=>void r.invalidateQueries({queryKey:i})}):null]})]})]})}function w_({title:e,body:t}){return(0,F.jsxs)(`div`,{className:`mb-4`,children:[(0,F.jsx)(`h2`,{className:`text-lg font-semibold`,children:e}),t?(0,F.jsx)(`div`,{className:`mt-1 text-sm leading-6 text-muted-foreground`,children:t}):null]})}function T_({label:e,value:t}){return(0,F.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,F.jsx)(`dt`,{className:`text-muted-foreground`,children:e}),(0,F.jsx)(`dd`,{className:`min-w-0 text-right font-medium`,children:t})]})}function E_({schema:e,value:t,path:n,onChange:r,language:i,canonical:a=null,collectionName:o,mediaPurposes:s}){let c=e.properties??{},l=new Set(e.required??[]);return(0,F.jsx)(`div`,{className:`space-y-5`,children:Object.entries(c).map(([e,c])=>(0,F.jsx)(D_,{name:e,schema:c,required:l.has(e),value:W_(t,[...n,e]),path:[...n,e],rootValue:t,onChange:r,language:i,canonical:a,collectionName:o,mediaPurposes:s},[...n,e].join(`.`)))})}function D_({name:e,schema:t,required:n,value:r,path:i,rootValue:a,onChange:o,language:s,canonical:c=null,collectionName:l,mediaPurposes:u}){let d=L_(t),f=vc(e,t,s,c),p=yc(t,s,c),m=e=>o(G_(a,i,e)),h=B_(t);return(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsxs)(`label`,{className:`flex items-center justify-between gap-3 text-sm font-semibold text-foreground`,children:[(0,F.jsxs)(`span`,{children:[f,n?(0,F.jsx)(`span`,{className:`ml-1 text-destructive`,children:`*`}):null]}),t[`x-mcp-hint`]?(0,F.jsx)(`span`,{className:`badge-status bg-accent text-accent-foreground`,title:String(t[`x-mcp-hint`]),children:jg(String(t[`x-mcp-hint`]),s)}):null]}),p?(0,F.jsx)(`p`,{className:`text-xs leading-5 text-muted-foreground`,children:p}):null,h?(0,F.jsx)(`p`,{className:`admin-input cursor-not-allowed bg-muted/40 text-muted-foreground`,title:String(t[`x-mantle-bind`]),children:V_(r)||Y(s,`entryEdit.emptyOption`)}):t.enum?(0,F.jsxs)(`select`,{className:`admin-input`,value:V_(r),onChange:e=>m(e.target.value),children:[(0,F.jsx)(`option`,{value:``,children:Y(s,`entryEdit.emptyOption`)}),t.enum.map(e=>(0,F.jsx)(`option`,{value:String(e),children:String(e)},String(e)))]}):d===`boolean`?(0,F.jsxs)(`label`,{className:`inline-flex items-center gap-2 text-sm text-muted-foreground`,children:[(0,F.jsx)(`input`,{type:`checkbox`,className:`size-4 accent-[var(--primary)]`,checked:!!r,onChange:e=>m(e.target.checked)}),Y(s,`entryEdit.boolean`)]}):d===`number`||d===`integer`?(0,F.jsxs)(`div`,{className:`space-y-1`,children:[(0,F.jsx)(`input`,{className:`admin-input`,type:`number`,value:H_(r),min:t.minimum,max:t.maximum,onChange:e=>{let t=e.target.value;m(t===``?null:Number(t))}}),(0,F.jsx)(O_,{schema:t,value:r,rootValue:a})]}):d===`object`?(0,F.jsx)(`div`,{className:`rounded-lg border border-[var(--glass-border)] bg-background/30 p-4`,children:t.properties?(0,F.jsx)(E_,{schema:t,value:a,path:i,onChange:o,language:s,canonical:c,collectionName:l,mediaPurposes:u}):(0,F.jsx)(M_,{value:r,onChange:m})}):z_(t)?(0,F.jsx)(A_,{value:r,path:i,collectionName:l,mediaPurposes:u,language:s,onChange:m}):d===`array`?(0,F.jsx)(k_,{schema:t,value:Array.isArray(r)?r:[],path:i,rootValue:a,onChange:o,language:s,canonical:c,collectionName:l,mediaPurposes:u}):R_(t,e)?(0,F.jsx)($g,{compact:!0,value:V_(r),onChange:m}):(0,F.jsx)(`input`,{className:`admin-input`,type:t.format===`date-time`?`datetime-local`:`text`,value:V_(r),onChange:e=>m(e.target.value)})]})}function O_({schema:e,value:t,rootValue:n}){if(Dg(e)){let e=kg(t,n.currency);return e?(0,F.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`= `,e]}):null}if(Og(e)){let e=Ag(t);return e?(0,F.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`= `,e]}):null}return null}function k_({schema:e,value:t,path:n,rootValue:r,onChange:i,language:a,canonical:o=null,collectionName:s,mediaPurposes:c}){let l=e.items??{},u=e=>i(G_(r,n,e));return(0,F.jsxs)(`div`,{className:`space-y-3 rounded-lg border border-[var(--glass-border)] bg-background/30 p-3`,children:[t.map((e,d)=>(0,F.jsxs)(`div`,{className:`rounded-lg border border-border/70 bg-card/50 p-3`,children:[(0,F.jsxs)(`div`,{className:`mb-3 flex items-center justify-between gap-2`,children:[(0,F.jsxs)(`span`,{className:`text-xs font-semibold text-muted-foreground`,children:[`#`,d+1]}),(0,F.jsx)(`button`,{type:`button`,className:`row-action`,title:Y(a,`entryEdit.removeItem`),onClick:()=>u(t.filter((e,t)=>t!==d)),children:(0,F.jsx)(Cn,{className:`size-3.5`,"aria-hidden":!0})})]}),L_(l)===`object`&&l.properties?(0,F.jsx)(E_,{schema:l,value:r,path:[...n,String(d)],onChange:i,language:a,canonical:o,collectionName:s,mediaPurposes:c}):(0,F.jsx)(`input`,{className:`admin-input`,value:V_(e),onChange:e=>{let n=[...t];n[d]=e.target.value,u(n)}})]},d)),(0,F.jsxs)(U,{type:`button`,variant:`secondary`,size:`sm`,onClick:()=>u([...t,U_(l)]),children:[(0,F.jsx)(ln,{className:`size-3.5`,"aria-hidden":!0}),Y(a,`entryEdit.addItem`)]})]})}function A_({value:e,path:t,collectionName:n,mediaPurposes:r,language:i,onChange:a}){let o=P.useRef(null),[s,c]=P.useState(!1),[l,u]=P.useState(null),[d,f]=P.useState(null),[p,m]=P.useState(!1),h=Bg(r,n,t),g=typeof e==`string`?e:``,_=I({queryKey:[`media-asset`,g],queryFn:()=>q.get(`/media/${encodeURIComponent(g)}`),enabled:g.length>0,retry:!1});async function v(e){c(!0),u(null);try{let t=await Rg({file:e,purposes:r,preferredPurpose:h,language:i});a(t.id),f(Vg(t))}catch(e){u(e instanceof Error?e.message:String(e))}finally{c(!1),o.current&&(o.current.value=``)}}return(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(j_,{assetId:g,asset:_.data,isError:_.isError,language:i}),(0,F.jsx)(`input`,{className:`admin-input min-w-0 flex-1`,value:V_(e),onChange:e=>a(e.target.value),placeholder:`media_assets id`}),(0,F.jsxs)(U,{type:`button`,variant:`secondary`,onClick:()=>m(!0),children:[(0,F.jsx)(Kt,{className:`size-4`,"aria-hidden":!0}),Y(i,`media.pick`)]}),(0,F.jsxs)(U,{type:`button`,variant:`secondary`,onClick:()=>o.current?.click(),disabled:s||r.length===0,title:h??Y(i,`entryEdit.noMediaPurpose`),children:[(0,F.jsx)(Wt,{className:`size-4`,"aria-hidden":!0}),s?Y(i,`entryEdit.uploadingMedia`):Y(i,`entryEdit.uploadMedia`)]})]}),(0,F.jsx)(`input`,{ref:o,type:`file`,accept:`image/*`,className:`hidden`,onChange:e=>{let t=e.currentTarget.files?.[0];t&&v(t)}}),h?(0,F.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:h}):null,d?(0,F.jsx)(`a`,{className:`text-xs text-primary hover:underline`,href:d,target:`_blank`,rel:`noreferrer`,children:d}):null,l?(0,F.jsx)(`p`,{className:`text-xs text-destructive`,children:l}):null,(0,F.jsx)(dg,{open:p,onOpenChange:m,children:(0,F.jsxs)(mg,{className:`max-h-[85vh] w-full max-w-3xl overflow-y-auto`,children:[(0,F.jsxs)(hg,{children:[(0,F.jsx)(_g,{children:Y(i,`media.pickTitle`)}),(0,F.jsx)(vg,{children:Y(i,`media.pickDescription`)})]}),(0,F.jsx)(__,{language:i,purposes:r,searchTerm:``,emptyIcon:Kt,onPick:e=>{a(e.id),f(e.primaryUrl),m(!1)}})]})})]})}function j_({assetId:e,asset:t,isError:n,language:r}){return e?(0,F.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-md border border-[var(--glass-border)] bg-muted/40`,title:n?Y(r,`entryEdit.mediaMissing`):e,children:t?.primaryUrl?(0,F.jsx)(`img`,{src:t.primaryUrl,alt:``,className:`size-full object-cover`}):(0,F.jsx)(Kt,{className:`size-4 text-muted-foreground`,"aria-hidden":!0})}):null}function M_({value:e,onChange:t}){let[n,r]=P.useState(JSON.stringify(e??{},null,2)),[i,a]=P.useState(null);return P.useEffect(()=>{r(JSON.stringify(e??{},null,2))},[e]),(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsx)(`textarea`,{className:`admin-textarea admin-textarea-compact font-mono`,value:n,onChange:e=>{let n=e.target.value;r(n);try{t(JSON.parse(n)),a(null)}catch(e){a(e instanceof Error?e.message:String(e))}}}),i?(0,F.jsx)(`p`,{className:`text-xs text-destructive`,children:i}):null]})}function N_({sections:e,language:t,canonical:n,operations:r,onOperationSuccess:i}){return e.length===0?(0,F.jsx)(Qh,{children:(0,F.jsx)(w_,{title:Y(t,`entryEdit.related`),body:Y(t,`entryEdit.noRelated`)})}):(0,F.jsx)(F.Fragment,{children:e.map(e=>{let a=Y_(r,e.collection.name);return(0,F.jsxs)(Qh,{children:[(0,F.jsx)(w_,{title:gc(e.collection.title,t,n)??e.collection.name,body:Y(t,`entryEdit.relationship`,{child:e.relationship.childField,parent:e.relationship.parentField})}),(0,F.jsx)(`div`,{className:`space-y-2`,children:e.entries.length===0?(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Y(t,`entryEdit.noChildEntries`)}):e.entries.map(r=>(0,F.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-lg border border-[var(--glass-border)] bg-background/35 p-3 text-sm text-foreground transition hover:border-primary hover:bg-accent`,children:[(0,F.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(r.collection)}/${encodeURIComponent(r.id)}`,className:`flex min-w-0 flex-1 items-center gap-3`,children:[(0,F.jsxs)(`span`,{className:`min-w-0`,children:[(0,F.jsx)(`span`,{className:`block truncate font-semibold`,children:I_(r.data,r.id,e.collection.schema)}),(0,F.jsxs)(`span`,{className:`block text-xs text-muted-foreground`,children:[r.collection,` / v`,r.version]})]}),(0,F.jsx)(Rt,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),(0,F.jsx)(X_,{row:r,operations:a,language:t,canonical:n,onSuccess:i})]},r.id))})]},`${e.collection.name}:${e.relationship.childField}`)})})}function P_(e,t){if(!e.parent)return null;let n=t[e.parent.childField];return typeof n!=`string`||!n?null:{href:`/admin/c/${encodeURIComponent(e.parent.collection)}?search=${encodeURIComponent(n)}`,label:`${e.parent.collection} / ${n}`}}function F_(e){return e.relationship.kind===`field`}function I_(e,t,n){for(let t of[`title`,`name`,`slug`,`id`]){let n=e[t];if(typeof n==`string`&&n.trim())return n}if(n){let t=n.properties??{};for(let r of n.required??[]){let n=t[r];if(!n||L_(n)!==`string`)continue;let i=e[r];if(typeof i==`string`&&i.trim())return i}}return t.slice(0,8)}function L_(e){return(Array.isArray(e.type)?e.type.find(e=>e!==`null`):e.type)||(e.properties?`object`:e.items?`array`:`string`)}function R_(e,t){let n=typeof e[`x-mcp-hint`]==`string`?e[`x-mcp-hint`]:``;return n.includes(`markdown`)||n.includes(`html`)||/body|description|content|intro|notes|summary/i.test(t)||typeof e.maxLength==`number`&&e.maxLength>160}function z_(e){return e[`x-mantle-ref`]===`media_assets`}function B_(e){return typeof e[`x-mantle-bind`]==`string`}function V_(e){return e==null?``:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`?String(e):JSON.stringify(e)}function H_(e){return typeof e==`number`&&Number.isFinite(e)||typeof e==`string`?e:``}function U_(e){if(e.default!==void 0)return e.default;let t=L_(e);return t===`object`?{}:t===`array`?[]:t===`boolean`?!1:t===`number`||t===`integer`?0:``}function W_(e,t){let n=e;for(let e of t)if(Array.isArray(n))n=n[Number(e)];else if(typeof n==`object`&&n)n=n[e];else return;return n}function G_(e,t,n){if(t.length===0)return q_(n);let r=K_(e),i=r;for(let e=0;e<t.length-1;e+=1){let n=t[e],r=t[e+1];if(Array.isArray(i)){let e=Number(n);i[e]=i[e]??(J_(r)?[]:{}),i=i[e]}else if(typeof i==`object`&&i){let e=i;e[n]=e[n]??(J_(r)?[]:{}),i=e[n]}}let a=t[t.length-1];return Array.isArray(i)?i[Number(a)]=n:typeof i==`object`&&i&&(i[a]=n),r}function K_(e){return typeof structuredClone==`function`?structuredClone(e):JSON.parse(JSON.stringify(e))}function q_(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:{}}function J_(e){return/^\d+$/.test(e)}function Y_(e,t){return(e??[]).filter(e=>e.rowBindings.some(e=>e.collection===t))}function X_({row:e,operations:t,language:n,canonical:r,onSuccess:i,trigger:a}){let[o,s]=P.useState(null);return t.length===0?null:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(Wm,{children:[(0,F.jsx)(Gm,{asChild:!0,children:a??(0,F.jsx)(`button`,{type:`button`,className:`row-action`,title:Y(n,`rowActions.menuLabel`),"aria-label":Y(n,`rowActions.menuLabel`),children:(0,F.jsx)(Lt,{className:`size-3.5`,"aria-hidden":!0})})}),(0,F.jsx)(Km,{align:`end`,children:t.map(e=>(0,F.jsx)(qm,{onSelect:()=>s(e),children:gc(e.title,n,r)??_c(e.name)},e.name))})]}),o?(0,F.jsx)(Z_,{operation:o,binding:o.rowBindings.find(t=>t.collection===e.collection),row:e,language:n,canonical:r,onClose:()=>s(null),onSuccess:()=>{s(null),i()}}):null]})}function Z_({operation:e,binding:t,row:n,language:r,canonical:i,onClose:a,onSuccess:o}){let s=gc(e.title,r,i)??_c(e.name),c=gc(e.description,r,i),l=t?.rowField??`id`,u=t?.inputField,d=I({queryKey:[`entry-editor`,n.collection,n.id],queryFn:()=>q.get(`/entries/${encodeURIComponent(n.id)}`)}),f=P.useMemo(()=>l===`id`?n.id:d.data?.entry.data[l]??void 0,[d.data,l,n.id]),[p,m]=P.useState({});P.useEffect(()=>{f===void 0||!u||m(e=>({...e,[u]:f}))},[f,u]);let h=P.useMemo(()=>{if(!u)return e.input;let t={...e.input.properties??{}};delete t[u];let n=(e.input.required??[]).filter(e=>e!==u);return{...e.input,properties:t,required:n}},[e.input,u]),g=u?e.input.properties?.[u]:void 0,_=u?gc(g?.title,r,i)??gc(g?.description,r,i)??_c(u):null,{showToast:v}=Lg(),y=ut({mutationFn:t=>q.post(`/operations/${encodeURIComponent(e.name)}`,t),onSuccess:()=>{v(Y(r,`ops.success`,{name:s})),o()}}),b=!u||f!==void 0;return(0,F.jsx)(dg,{open:!0,onOpenChange:e=>{e||a()},children:(0,F.jsxs)(mg,{children:[(0,F.jsxs)(hg,{children:[(0,F.jsx)(_g,{children:s}),c?(0,F.jsx)(vg,{children:c}):null]}),d.isLoading?(0,F.jsx)(`div`,{className:`glass-card h-24 animate-pulse`}):(0,F.jsxs)(`div`,{className:`space-y-5`,children:[u?(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsx)(`label`,{className:`text-sm font-semibold text-foreground`,children:_}),(0,F.jsx)(`p`,{className:`admin-input cursor-not-allowed bg-muted/40 text-muted-foreground`,children:Q_(f)})]}):null,(0,F.jsx)(E_,{schema:h,value:p,path:[],onChange:m,language:r,canonical:i,collectionName:e.name,mediaPurposes:[]})]}),d.isError?(0,F.jsx)(eg,{error:d.error}):null,y.isError?(0,F.jsx)(tg,{error:Ng(y.error)}):null,(0,F.jsxs)(gg,{children:[(0,F.jsx)(U,{type:`button`,variant:`secondary`,onClick:a,disabled:y.isPending,children:Y(r,`rowActions.cancel`)}),(0,F.jsx)(U,{type:`button`,onClick:()=>y.mutate(p),disabled:y.isPending||!b,children:y.isPending?Y(r,`ops.running`):Y(r,`ops.run`)})]})]})})}function Q_(e){return e==null?``:typeof e==`string`||typeof e==`number`||typeof e==`boolean`?String(e):JSON.stringify(e)}var $_=new Intl.DateTimeFormat(void 0,{dateStyle:`short`,timeStyle:`short`});function ev({collectionName:e}){let{language:t}=J(),n=kc(),r=Ye(),i=new URLSearchParams(n.search),a=i.get(`status`)??void 0,o=i.get(`search`)?.trim()??``,s=I({queryKey:[`collections`],queryFn:async()=>(await q.get(`/collections`)).collections}),c=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}).data?.canonicalLocale??null,l=I(xc()),u=P.useMemo(()=>Y_(l.data,e),[l.data,e]),d=I({queryKey:[`entries`,e,a??`all`,t,o],queryFn:()=>{let n=new URLSearchParams({collection:e,limit:`99`,locale:t});return a&&n.set(`status`,a),o&&n.set(`search`,o),q.get(`/entries?${n.toString()}`)}}),[f,p]=P.useState(null);P.useEffect(()=>{d.data&&p(d.data)},[d.data]);let[m,h]=P.useState([]),[g,_]=P.useState(null),[v,y]=P.useState(null),[b,x]=P.useState(!1);P.useEffect(()=>{h([]),_(d.data?.next_cursor??null),y(null)},[e,a,o,t,d.data]);let S=P.useMemo(()=>{let e=d.data??f;return e&&{...e,items:[...e.items,...m]}},[d.data,f,m]),C=d.isLoading&&!S,[w,T]=P.useState(new Set),ee=P.useCallback(()=>T(new Set),[]),E=s.data?.find(t=>t.name===e),D=E?gc(E.title,t,c)??E.name:e,te=E?.lifecycle===`none`,ne=P.useMemo(()=>hv(E),[E]),re=P.useCallback(()=>{ee(),r.invalidateQueries({queryKey:[`entries`,e]})},[e,r,ee]);async function O(){if(g){x(!0),y(null);try{let n=new URLSearchParams({collection:e,limit:`99`,locale:t,cursor:g});a&&n.set(`status`,a),o&&n.set(`search`,o);let r=await q.get(`/entries?${n.toString()}`);h(e=>[...e,...r.items]),_(r.next_cursor)}catch(e){y(e)}finally{x(!1)}}}let k=ut({mutationFn:({id:e,title:t,version:n})=>q.patch(`/entries/${encodeURIComponent(e)}`,{data:{title:t},expectedVersion:n}),onSuccess:re}),ie=ut({mutationFn:e=>q.delete(`/entries/${encodeURIComponent(e)}`),onSuccess:re}),ae=ut({mutationFn:()=>q.post(`/entries`,{collection:e,data:{}}),onSuccess:t=>{window.location.href=`/admin/c/${encodeURIComponent(e)}/${encodeURIComponent(t.entry.id)}`}});return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Zh,{eyebrow:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`a`,{href:`/admin`,className:`hover:underline`,children:Y(t,`collection.breadcrumb`)}),(0,F.jsx)(`span`,{className:`mx-2 text-foreground/30`,children:`/`}),(0,F.jsx)(`span`,{className:`text-foreground/70`,children:e})]}),title:D,description:rv(E,t,c),actions:(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[(0,F.jsxs)(U,{type:`button`,variant:`secondary`,onClick:()=>{window.location.href=`/admin/api/entries/export?collection=${encodeURIComponent(e)}`},children:[(0,F.jsx)(It,{className:`size-4`,"aria-hidden":!0}),Y(t,`collection.export`)]}),(0,F.jsxs)(U,{type:`button`,variant:te?`ghost`:`default`,onClick:()=>ae.mutate(),disabled:ae.isPending,children:[(0,F.jsx)(ln,{className:`size-4`,"aria-hidden":!0}),ae.isPending?Y(t,`crud.saving`):Y(t,`collection.create`)]}),a?(0,F.jsx)(wg,{status:a}):null,E?.hasTranslations?(0,F.jsx)(`span`,{className:`badge-status bg-accent text-accent-foreground`,children:`i18n`}):null,E?.mediaFields?.length?(0,F.jsx)(`span`,{className:`badge-status bg-[color-mix(in_srgb,var(--success)_16%,transparent)] text-[color:var(--success)]`,children:`media`}):null]})}),ae.isError?(0,F.jsx)(eg,{error:ae.error}):null,E?(0,F.jsx)(nv,{collectionName:E.name,status:a,searchTerm:o,language:t}):null,E&&E.lifecycle!==`none`?(0,F.jsx)(av,{collection:E,activeStatus:a,searchTerm:o,language:t}):null,C&&(0,F.jsx)(cv,{}),d.isError&&!S&&(0,F.jsx)(eg,{error:d.error}),S&&S.items.length===0&&(0,F.jsx)($h,{icon:zt,title:Y(t,`collection.empty.title`),description:o?Y(t,`collection.empty.search`,{search:o}):a?Y(t,`collection.empty.withStatus`,{status:a}):Y(t,`collection.empty.all`)}),S&&S.items.length>0&&(0,F.jsxs)(F.Fragment,{children:[w.size>0?(0,F.jsx)(tv,{language:t,collection:E,selectedIds:[...w],onDone:re,onClear:ee}):null,(0,F.jsxs)(cg,{children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{className:`border-b border-[var(--glass-border)]`,children:[(0,F.jsx)(lg,{className:`w-10`,children:(0,F.jsx)(`input`,{type:`checkbox`,className:`size-4 accent-[var(--primary)]`,"aria-label":Y(t,`collection.table.selectAll`),checked:w.size>0&&S.items.every(e=>w.has(e.id)),ref:e=>{if(!e)return;let t=S.items.some(e=>w.has(e.id)),n=S.items.every(e=>w.has(e.id));e.indeterminate=t&&!n},onChange:e=>{T(t=>{let n=new Set(t);for(let t of S.items)e.target.checked?n.add(t.id):n.delete(t.id);return n})}})}),(0,F.jsx)(lg,{children:Y(t,`collection.table.id`)}),(0,F.jsx)(lg,{children:Y(t,`collection.table.title`)}),te?ne.map(e=>(0,F.jsx)(lg,{children:vc(e,E?.schema?.properties?.[e],t,c)},e)):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(lg,{children:Y(t,`collection.table.status`)}),(0,F.jsx)(lg,{children:Y(t,`collection.table.locale`)}),(0,F.jsx)(lg,{children:Y(t,`collection.table.version`)})]}),(0,F.jsx)(lg,{children:Y(t,`collection.table.updated`)}),(0,F.jsx)(lg,{children:Y(t,`collection.table.actions`)})]})}),(0,F.jsx)(`tbody`,{children:S.items.map(e=>(0,F.jsx)(uv,{row:e,language:t,canonical:c,collection:E,dataColumns:te?ne:null,boundOperations:u,onOperationSuccess:re,selected:w.has(e.id),onToggleSelect:t=>{T(n=>{let r=new Set(n);return t?r.add(e.id):r.delete(e.id),r})},onRename:t=>k.mutateAsync({id:e.id,title:t,version:e.version}),onDelete:()=>ie.mutateAsync(e.id),busy:k.isPending&&k.variables?.id===e.id||ie.isPending&&ie.variables===e.id},e.id))})]}),d.isFetching&&!d.data?(0,F.jsx)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:Y(t,`collection.refreshing`)}):null,v?(0,F.jsx)(eg,{error:v}):null,g?(0,F.jsx)(`div`,{className:`mt-3`,children:(0,F.jsx)(U,{type:`button`,variant:`secondary`,onClick:()=>void O(),disabled:b,children:b?Y(t,`crud.saving`):Y(t,`collection.loadMore`)})}):null]})]})}function tv({language:e,collection:t,selectedIds:n,onDone:r,onClear:i}){let[a,o]=P.useState(null),[s,c]=P.useState([]),l=t&&t.lifecycle!==`none`,u=xg();async function d(e,t){o(e),c([]);let i=[];for(let e of n)try{await t(e)}catch(e){i.push(e)}o(null),c(i),r()}async function f(){await u({description:Y(e,`collection.bulk.deleteConfirm`,{count:String(n.length)})})&&d(`delete`,e=>q.delete(`/entries/${encodeURIComponent(e)}`))}return(0,F.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center gap-2 rounded-lg border border-[var(--glass-border)] bg-accent/40 px-3 py-2`,children:[(0,F.jsx)(`span`,{className:`text-sm font-medium`,children:Y(e,`collection.bulk.selectedCount`,{count:String(n.length)})}),(0,F.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[l?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(U,{type:`button`,variant:`secondary`,size:`sm`,disabled:a!==null,onClick:()=>void d(`publish`,e=>q.post(`/entries/${encodeURIComponent(e)}/publish`,{})),children:Y(e,`collection.bulk.publish`)}),(0,F.jsx)(U,{type:`button`,variant:`secondary`,size:`sm`,disabled:a!==null,onClick:()=>void d(`unpublish`,e=>q.post(`/entries/${encodeURIComponent(e)}/unpublish`,{})),children:Y(e,`collection.bulk.unpublish`)})]}):null,(0,F.jsx)(U,{type:`button`,variant:`destructive`,size:`sm`,disabled:a!==null,onClick:()=>void f(),children:Y(e,`collection.bulk.delete`)}),(0,F.jsx)(U,{type:`button`,variant:`ghost`,size:`sm`,onClick:i,children:(0,F.jsx)(Pn,{className:`size-3.5`,"aria-hidden":!0})})]}),s.length>0?(0,F.jsx)(`div`,{className:`w-full space-y-1`,children:s.map((e,t)=>(0,F.jsx)(eg,{error:e},t))}):null]})}function nv({collectionName:e,status:t,searchTerm:n,language:r}){let[i,a]=P.useState(n);return P.useEffect(()=>a(n),[n]),(0,F.jsx)(`form`,{className:`mb-3 max-w-xl`,role:`search`,onSubmit:n=>{n.preventDefault();let r=i.trim(),a=new URLSearchParams;t&&a.set(`status`,t),r&&a.set(`search`,r);let o=a.toString();window.location.href=`/admin/c/${encodeURIComponent(e)}${o?`?${o}`:``}`},children:(0,F.jsxs)(`label`,{className:`relative block`,children:[(0,F.jsx)(pn,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,F.jsx)(`input`,{className:`admin-input h-10 pl-9`,value:i,onChange:e=>a(e.target.value),placeholder:Y(r,`collection.searchPlaceholder`)})]})})}function rv(e,t,n){let r=e?gc(e.title,t,n)??e.name:``,i=gc(e?.description,t,n)?.trim(),a=iv(e);return i?(0,F.jsx)(ng,{description:i,summaryLabel:Y(t,`collection.schemaDetails`),collapsedIntro:Y(t,a,{name:r})}):Y(t,a,{name:r})}function iv(e){let t=!e||e.lifecycle!==`none`,n=e?.hasTranslations??!1;return t&&n?`collection.schemaSummary.lifecycleAndI18n`:t?`collection.schemaSummary.lifecycleOnly`:n?`collection.schemaSummary.i18nOnly`:`collection.schemaSummary.plain`}function av({collection:e,activeStatus:t,searchTerm:n,language:r}){let i=e.lifecycle===`editorial`?[`draft`,`review`,`published`,`archived`]:[`draft`,`published`,`archived`];return(0,F.jsxs)(`div`,{className:`mb-5 flex gap-2 overflow-x-auto pb-1`,"data-tour":`status-filter`,children:[(0,F.jsx)(sv,{href:ov(e.name,void 0,n),active:!t,children:Y(r,`collection.filter.all`)}),i.map(i=>(0,F.jsx)(sv,{href:ov(e.name,i,n),active:t===i,children:Sh(r,i)},i))]})}function ov(e,t,n){let r=new URLSearchParams;t&&r.set(`status`,t),n&&r.set(`search`,n);let i=r.toString();return`/admin/c/${encodeURIComponent(e)}${i?`?${i}`:``}`}function sv({href:e,active:t,children:n}){return(0,F.jsx)(`a`,{href:e,"aria-current":t?`page`:void 0,className:H(`inline-flex h-8 shrink-0 items-center justify-center rounded-lg border px-3 text-xs font-medium`,`transition-colors duration-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,t?`border-[var(--glass-border)] bg-secondary text-secondary-foreground`:`border-transparent text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:n})}function cv(){return(0,F.jsx)(`div`,{className:`glass-card overflow-hidden`,children:[0,1,2,3,4].map(e=>(0,F.jsxs)(`div`,{className:`flex items-center gap-4 border-b border-[var(--glass-border)] p-3 last:border-b-0`,children:[(0,F.jsx)(`div`,{className:`h-3 w-16 animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-3 flex-1 animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-6 w-20 animate-pulse rounded-full bg-muted`})]},e))})}function lv({id:e,language:t}){let[n,r]=P.useState(!1);async function i(){try{await navigator.clipboard.writeText(e),r(!0),window.setTimeout(()=>r(!1),1400)}catch{r(!1)}}return(0,F.jsxs)(`button`,{type:`button`,className:`group inline-flex items-center gap-1 hover:text-foreground`,title:`${e} — ${Y(t,`collection.copyId`)}`,onClick:()=>void i(),children:[Mg(e),n?(0,F.jsx)(wt,{className:`size-3 text-[color:var(--success)]`,"aria-hidden":!0}):(0,F.jsx)(Pt,{className:`size-3 opacity-40 transition-opacity group-hover:opacity-80`,"aria-hidden":!0})]})}function uv({row:e,language:t,canonical:n,collection:r,dataColumns:i,boundOperations:a,onOperationSuccess:o,selected:s,onToggleSelect:c,onRename:l,onDelete:u,busy:d}){let f=fv(e.title,t),[p,m]=P.useState(!1),[h,g]=P.useState(f),[_,v]=P.useState(null),y=xg();P.useEffect(()=>{p||g(f)},[p,f]);async function b(){let e=h.trim();if(!e||e===f){m(!1),g(f);return}v(null);try{await l(e),m(!1)}catch(e){v(e instanceof Error?e.message:String(e))}}async function x(){if(await y({description:Y(t,`crud.deleteConfirm`,{name:f})})){v(null);try{await u()}catch(e){v(e instanceof Error?e.message:String(e))}}}return(0,F.jsxs)(`tr`,{className:`border-t border-[var(--glass-border)] hover:bg-accent/40`,children:[(0,F.jsx)(ug,{children:(0,F.jsx)(`input`,{type:`checkbox`,className:`size-4 accent-[var(--primary)]`,"aria-label":Y(t,`collection.table.selectRow`,{name:f}),checked:s,onChange:e=>c(e.target.checked)})}),(0,F.jsx)(ug,{className:`font-mono text-xs text-muted-foreground`,children:(0,F.jsx)(lv,{id:String(e.id),language:t})}),(0,F.jsx)(ug,{className:`max-w-[28rem]`,children:(0,F.jsxs)(`div`,{className:`min-w-[16rem]`,children:[p?(0,F.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,F.jsx)(`input`,{className:`admin-input h-9 min-w-0 flex-1`,value:h,autoFocus:!0,disabled:d,onChange:e=>g(e.target.value),onBlur:()=>void b(),onKeyDown:e=>{e.key===`Enter`&&b(),e.key===`Escape`&&(g(f),m(!1))}}),(0,F.jsx)(`button`,{type:`button`,className:`row-action`,title:Y(t,`crud.saveTitle`),disabled:d,onMouseDown:e=>e.preventDefault(),onClick:()=>void b(),children:(0,F.jsx)(wt,{className:`size-3.5`,"aria-hidden":!0})}),(0,F.jsx)(`button`,{type:`button`,className:`row-action`,title:Y(t,`crud.cancelTitle`),disabled:d,onMouseDown:e=>e.preventDefault(),onClick:()=>{g(f),m(!1)},children:(0,F.jsx)(Pn,{className:`size-3.5`,"aria-hidden":!0})})]}):(0,F.jsxs)(`button`,{type:`button`,className:`group inline-flex max-w-full items-center gap-2 text-left`,onClick:()=>m(!0),title:f,children:[(0,F.jsx)(`span`,{className:`truncate`,children:dv(e.title,t)}),(0,F.jsx)(on,{className:`size-3 shrink-0 opacity-0 transition-opacity group-hover:opacity-60`,"aria-hidden":!0})]}),_?(0,F.jsx)(`p`,{className:`mt-1 text-xs text-destructive`,children:_}):null]})}),i?i.map(t=>(0,F.jsx)(ug,{className:`text-muted-foreground`,children:gv(r,t,e.data_preview?.[t])},t)):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ug,{children:(0,F.jsx)(wg,{status:e.status})}),(0,F.jsx)(ug,{className:`text-muted-foreground`,children:e.locale??`-`}),(0,F.jsxs)(ug,{className:`font-mono text-xs text-muted-foreground`,children:[`v`,e.version]})]}),(0,F.jsx)(ug,{className:`text-muted-foreground`,children:pv(e.updated_at)}),(0,F.jsxs)(ug,{children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-1`,"data-tour":`entry-actions`,children:[(0,F.jsx)(`a`,{className:`row-action`,title:Y(t,`crud.editTooltip`,{name:f}),href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,children:(0,F.jsx)(on,{className:`size-3.5`,"aria-hidden":!0})}),(0,F.jsx)(`button`,{type:`button`,className:`row-action`,title:Y(t,`crud.deleteTooltip`,{name:f}),disabled:d,onClick:()=>void x(),children:(0,F.jsx)(Cn,{className:`size-3.5`,"aria-hidden":!0})}),(0,F.jsx)(X_,{row:e,operations:a,language:t,canonical:n,onSuccess:o})]}),(0,F.jsx)(`span`,{className:`sr-only`,children:r?gc(r.title,t,n)??r.name:``})]})]})}function dv(e,t){return e==null||e===``?(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:Y(t,`collection.untitled`)}):typeof e==`string`?e:(0,F.jsx)(`span`,{className:`font-mono text-xs`,children:JSON.stringify(e)})}function fv(e,t){return typeof e==`string`&&e?e:e==null||e===``?Y(t,`collection.untitled`):JSON.stringify(e)}function pv(e){if(!Number.isFinite(e))return`-`;try{return $_.format(new Date(e))}catch{return`-`}}var mv=new Set([`updatedAt`,`createdAt`]);function hv(e){if(!e||e.lifecycle!==`none`)return[];let t=e.schema,n=t?.required??[],r=t?.properties??{},i=[`title`,`name`,`slug`].find(e=>e in r)??n.find(e=>{let t=r[e]?.type;return(Array.isArray(t)?t:t?[t]:[]).includes(`string`)})??null;return n.filter(e=>e!==i&&!mv.has(e)).slice(0,3)}function gv(e,t,n){let r=e?.schema?.properties?.[t];if(Dg(r)){let e=kg(n,void 0);if(e)return e}if(Og(r)){let e=Ag(n);if(e)return e}return n==null||n===``?(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:`-`}):typeof n==`string`||typeof n==`number`||typeof n==`boolean`?String(n):(0,F.jsx)(`span`,{className:`font-mono text-xs`,children:JSON.stringify(n)})}var _v=`## 商品介紹\\n\\n用清楚的段落描述服務內容、交付方式與購買須知。\\n\\n- 支援 Markdown\\n- 可切換 HTML source\\n- 可用 Rich Editor 快速排版`;function vv(){let{language:e}=J(),[t,n]=P.useState(`rich`),[r,i]=P.useState(_v),a=P.useMemo(()=>d_(r,t),[r,t]);return(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(Zh,{eyebrow:`AotterMantle`,title:Y(e,`editor.page.title`),description:Y(e,`editor.page.body`),actions:(0,F.jsxs)(U,{children:[(0,F.jsx)(fn,{className:`size-4`,"aria-hidden":!0}),Y(e,`editor.saveDraft`)]})}),(0,F.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 xl:grid-cols-[minmax(0,1fr)_22rem]`,children:[(0,F.jsxs)(Qh,{className:`space-y-4`,children:[(0,F.jsxs)(`div`,{className:`grid grid-cols-1 gap-3 md:grid-cols-2`,children:[(0,F.jsxs)(`label`,{className:`grid gap-1 text-sm font-medium`,children:[Y(e,`editor.titleLabel`),(0,F.jsx)(`input`,{className:`admin-input`,defaultValue:`品牌定位快思衝刺`})]}),(0,F.jsxs)(`label`,{className:`grid gap-1 text-sm font-medium`,children:[Y(e,`editor.slugLabel`),(0,F.jsx)(`input`,{className:`admin-input font-mono`,defaultValue:`brand-positioning-sprint`})]})]}),(0,F.jsx)($g,{label:Y(e,`editor.bodyLabel`),value:r,onChange:i,mode:t,onModeChange:n})]}),(0,F.jsxs)(Qh,{className:`space-y-4`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`label-eyebrow`,children:Y(e,`editor.preview`)}),(0,F.jsx)(`div`,{className:`editor-preview`,dangerouslySetInnerHTML:{__html:a}})]}),(0,F.jsxs)(`div`,{className:`grid gap-3 text-sm text-muted-foreground`,children:[(0,F.jsx)(`p`,{children:Y(e,`editor.markdownHint`)}),(0,F.jsx)(`p`,{children:Y(e,`editor.htmlHint`)}),(0,F.jsx)(`p`,{children:Y(e,`editor.richHint`)})]})]})]})]})}function yv(){let{language:e}=J(),t=I(xc()),n=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}).data?.canonicalLocale??null;if(t.isLoading)return(0,F.jsx)(`div`,{className:`glass-card h-64 animate-pulse`});if(t.isError)return(0,F.jsx)(eg,{error:t.error});let r=t.data??[];return(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(Zh,{eyebrow:`AotterMantle`,title:Y(e,`ops.page.title`),description:Y(e,`ops.page.body`)}),r.length===0?(0,F.jsx)($h,{icon:Nn,title:Y(e,`ops.empty.title`),description:Y(e,`ops.empty.body`)}):(0,F.jsx)(`div`,{className:`space-y-4`,children:r.map(t=>(0,F.jsx)(bv,{operation:t,language:e,canonical:n},t.name))})]})}function bv({operation:e,language:t,canonical:n}){let[r,i]=P.useState({}),a=P.useRef(null);P.useEffect(()=>{typeof window>`u`||window.location.hash===`#${e.name}`&&a.current?.scrollIntoView({block:`start`})},[e.name]);let o=gc(e.title,t,n)??_c(e.name),s=gc(e.description,t,n),{showToast:c}=Lg(),l=ut({mutationFn:t=>q.post(`/operations/${encodeURIComponent(e.name)}`,t),onSuccess:()=>c(Y(t,`ops.success`,{name:o}))});return(0,F.jsxs)(Qh,{className:`space-y-4 scroll-mt-20`,id:e.name,children:[(0,F.jsxs)(`div`,{ref:a,className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,F.jsxs)(`div`,{className:`min-w-0`,children:[(0,F.jsxs)(`h2`,{className:`flex items-center gap-2 text-base font-semibold`,children:[(0,F.jsx)(Nn,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0}),o]}),s?(0,F.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:s}):null]}),(0,F.jsx)(`div`,{className:`flex shrink-0 gap-1`,children:e.triggers.map(e=>(0,F.jsx)(`span`,{className:`badge-status bg-accent text-accent-foreground`,children:Y(t,e===`mcp`?`ops.triggers.mcp`:`ops.triggers.http`)},e))})]}),(0,F.jsx)(E_,{schema:e.input,value:r,path:[],onChange:i,language:t,canonical:n,collectionName:e.name,mediaPurposes:[]}),(0,F.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,F.jsxs)(U,{type:`button`,onClick:()=>l.mutate(r),disabled:l.isPending,children:[(0,F.jsx)(cn,{className:`size-4`,"aria-hidden":!0}),l.isPending?Y(t,`ops.running`):Y(t,`ops.run`)]})}),l.isError?(0,F.jsx)(tg,{error:Ng(l.error)}):null,l.isSuccess?(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h3`,{className:`mb-1 text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:Y(t,`ops.result.title`)}),(0,F.jsx)(`pre`,{className:`max-h-96 overflow-auto rounded-lg border border-[var(--glass-border)] bg-background/40 p-3 text-xs`,children:JSON.stringify(l.data.output,null,2)})]}):null]})}var xv=[`page`,`show`];async function Sv(e,t){let n=new URLSearchParams;for(let[e,r]of Object.entries(t))r==null||r===``||n.set(e,String(r));let r=n.toString(),i=await fetch(`/admin/api/views/${encodeURIComponent(e)}${r?`?${r}`:``}`,{credentials:`same-origin`,headers:{Accept:`application/json`}}),a=await i.json();if(!i.ok||!a.ok){let e=`diagnostic`in a?a.diagnostic.message:`${i.status} ${i.statusText}`;throw Error(e)}return a}function Cv({name:e}){let{language:t}=J(),n=I(bc()),r=I({queryKey:[`collections`],queryFn:async()=>(await q.get(`/collections`)).collections}),i=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}).data?.canonicalLocale??null,a=n.data?.find(t=>t.name===e),o=r.data?.find(e=>e.name===a?.from)?.schema,[s,c]=P.useState({}),[l,u]=P.useState(``),[d,f]=P.useState(``),p=I({queryKey:[`view`,e,s,l,d],queryFn:()=>Sv(e,{...s,...l?{page:l}:{},...d?{show:d}:{}}),enabled:!!a});if(n.isLoading||r.isLoading)return(0,F.jsx)(`div`,{className:`glass-card h-64 animate-pulse`});if(n.isError)return(0,F.jsx)(eg,{error:n.error});if(!a)return(0,F.jsx)(`div`,{className:`space-y-6`,children:(0,F.jsx)(Zh,{eyebrow:`AotterMantle`,title:Y(t,`views.notFound.title`)})});let m=p.data?.data.rows??[],h=Tv(a,m);return(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(Zh,{eyebrow:`AotterMantle`,title:gc(a.title,t,i)??_c(a.name),description:Y(t,`views.page.body`,{schema:a.from})}),a.params?(0,F.jsxs)(Qh,{className:`space-y-4`,children:[(0,F.jsx)(`h2`,{className:`text-sm font-semibold`,children:Y(t,`views.params.title`)}),(0,F.jsx)(E_,{schema:a.params,value:s,path:[],onChange:c,language:t,canonical:i,collectionName:a.name,mediaPurposes:[]}),(0,F.jsx)(wv,{page:l,show:d,onPage:u,onShow:f}),(0,F.jsxs)(U,{type:`button`,onClick:()=>void p.refetch(),disabled:p.isFetching,children:[(0,F.jsx)(pn,{className:`size-4`,"aria-hidden":!0}),p.isFetching?Y(t,`views.running`):Y(t,`views.run`)]})]}):(0,F.jsxs)(Qh,{className:`space-y-4`,children:[(0,F.jsx)(wv,{page:l,show:d,onPage:u,onShow:f}),(0,F.jsxs)(U,{type:`button`,onClick:()=>void p.refetch(),disabled:p.isFetching,children:[(0,F.jsx)(pn,{className:`size-4`,"aria-hidden":!0}),p.isFetching?Y(t,`views.running`):Y(t,`views.run`)]})]}),p.isError?(0,F.jsx)(eg,{error:p.error}):null,p.data&&m.length===0?(0,F.jsx)($h,{title:Y(t,`views.empty.title`),description:Y(t,`views.empty.body`)}):null,m.length>0?(0,F.jsxs)(cg,{children:[(0,F.jsx)(`thead`,{children:(0,F.jsx)(`tr`,{className:`border-b border-[var(--glass-border)]`,children:h.map(e=>(0,F.jsx)(lg,{children:vc(e,o?.properties?.[e],t,i)},e))})}),(0,F.jsx)(`tbody`,{children:m.map((e,t)=>(0,F.jsx)(`tr`,{className:`border-t border-[var(--glass-border)]`,children:h.map(t=>(0,F.jsx)(ug,{className:`text-muted-foreground`,children:Ev(o,t,e[t])},t))},t))})]}):null]})}function wv({page:e,show:t,onPage:n,onShow:r}){let[i,a]=xv;return(0,F.jsxs)(`div`,{className:`flex flex-wrap gap-3`,children:[(0,F.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium`,children:[(0,F.jsx)(`span`,{children:_c(i)}),(0,F.jsx)(`input`,{className:`admin-input w-28`,type:`number`,min:1,value:e,onChange:e=>n(e.target.value)})]}),(0,F.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium`,children:[(0,F.jsx)(`span`,{children:_c(a)}),(0,F.jsx)(`input`,{className:`admin-input w-28`,type:`number`,min:1,value:t,onChange:e=>r(e.target.value)})]})]})}function Tv(e,t){if(e.fields&&e.fields.length>0)return[...e.fields];let n=new Set;for(let e of t)for(let t of Object.keys(e))n.add(t);return[...n]}function Ev(e,t,n){let r=e?.properties?.[t];if(Dg(r)){let e=kg(n,void 0);if(e)return e}if(Og(r)){let e=Ag(n);if(e)return e}return n==null||n===``?(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:`-`}):typeof n==`string`||typeof n==`number`||typeof n==`boolean`?String(n):(0,F.jsx)(`span`,{className:`font-mono text-xs`,children:JSON.stringify(n)})}var Dv=new Intl.DateTimeFormat(void 0,{dateStyle:`short`,timeStyle:`short`});function Ov(){let{language:e}=J(),t=I({queryKey:[`approvals`,e],queryFn:()=>kv(e)}),n=I({queryKey:[`site`],queryFn:()=>q.get(`/site`)}).data?.canonicalLocale??null,r=t.data??[],i=r.reduce((e,t)=>e+t.entries.length,0);return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Zh,{eyebrow:`AotterMantle`,title:Y(e,`approvals.title`),description:Y(e,`approvals.body`),actions:(0,F.jsx)(wg,{status:`review`})}),t.isLoading?(0,F.jsx)(jv,{}):null,t.isError?(0,F.jsx)(eg,{error:t.error}):null,!t.isLoading&&!t.isError&&i===0?(0,F.jsx)($h,{icon:jt,title:Y(e,`approvals.emptyTitle`),description:Y(e,`approvals.emptyBody`)}):null,i>0?(0,F.jsx)(`div`,{className:`space-y-4`,children:r.map(t=>(0,F.jsxs)(Qh,{children:[(0,F.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center justify-between gap-3`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-lg font-semibold`,children:gc(t.collection.title,e,n)??t.collection.name}),(0,F.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:Y(e,`approvals.groupBody`,{count:String(t.entries.length),status:Sh(e,`review`)})})]}),(0,F.jsx)(U,{asChild:!0,variant:`secondary`,size:`sm`,children:(0,F.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(t.collection.name)}?status=review`,children:[Y(e,`approvals.openCollection`),(0,F.jsx)(Rt,{className:`size-3.5`,"aria-hidden":!0})]})})]}),(0,F.jsx)(`div`,{className:`divide-y divide-[var(--glass-border)] overflow-hidden rounded-lg border border-[var(--glass-border)] bg-background/25`,children:t.entries.map(t=>(0,F.jsx)(Av,{entry:t,language:e},t.id))})]},t.collection.name))}):null]})}async function kv(e){let{collections:t}=await q.get(`/collections`),n=t.filter(e=>e.lifecycle===`editorial`);return(await Promise.all(n.map(async t=>{let n=new URLSearchParams({collection:t.name,status:`review`,limit:`99`,locale:e});return{collection:t,entries:(await q.get(`/entries?${n.toString()}`)).items}}))).filter(e=>e.entries.length>0)}function Av({entry:e,language:t}){let n=Mv(e,t);return(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 p-3`,children:[(0,F.jsxs)(`div`,{className:`min-w-0`,children:[(0,F.jsx)(`a`,{href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,className:`block truncate text-sm font-semibold text-foreground hover:underline`,title:n,children:n}),(0,F.jsxs)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:[e.collection,` / v`,e.version,` / `,Nv(e.updated_at)]})]}),(0,F.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,F.jsx)(wg,{status:e.status}),(0,F.jsx)(U,{asChild:!0,size:`sm`,children:(0,F.jsx)(`a`,{href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,children:Y(t,`approvals.reviewEntry`)})})]})]})}function jv(){return(0,F.jsx)(`div`,{className:`glass-card overflow-hidden`,children:[0,1,2].map(e=>(0,F.jsxs)(`div`,{className:`flex items-center gap-4 border-b border-[var(--glass-border)] p-4 last:border-b-0`,children:[(0,F.jsx)(`div`,{className:`h-3 w-32 animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-3 flex-1 animate-pulse rounded bg-muted`}),(0,F.jsx)(`div`,{className:`h-8 w-24 animate-pulse rounded bg-muted`})]},e))})}function Mv(e,t){return typeof e.title==`string`&&e.title.trim()?e.title:e.title==null||e.title===``?Y(t,`collection.untitled`):JSON.stringify(e.title)}function Nv(e){if(!Number.isFinite(e))return`-`;try{return Dv.format(new Date(e))}catch{return`-`}}function Pv({path:e,intent:t=`missing`,kind:n=`route`}){let{language:r}=J(),i=t===`planned`&&n===`settings`;return(0,F.jsxs)(`div`,{className:`glass-card animate-rise mx-auto max-w-md p-8 text-center`,children:[(0,F.jsx)(`h1`,{className:`mb-2 text-xl`,children:i?Y(r,`settings.planned.title`):t===`planned`?Y(r,`system.notFound.plannedTitle`):Y(r,`system.notFound.title`)}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:i?Y(r,`settings.planned.body`):(0,F.jsxs)(F.Fragment,{children:[Y(r,`system.notFound.body`),` `,(0,F.jsx)(`code`,{className:`font-mono text-xs`,children:e}),`.`]})}),(0,F.jsx)(`p`,{className:`mt-4 text-sm`,children:(0,F.jsx)(`a`,{href:`/admin`,className:`text-primary hover:underline`,children:Y(r,`system.notFound.back`)})})]})}function Fv(){let{language:e,direction:t,theme:n,setLanguage:r,setTheme:i}=J();return(0,F.jsxs)(`div`,{className:`mx-auto max-w-4xl`,children:[(0,F.jsx)(Zh,{eyebrow:Y(e,`preferences.heading`),title:Y(e,`preferences.page.title`),description:Y(e,`preferences.page.body`)}),(0,F.jsxs)(`div`,{className:`grid gap-4`,children:[(0,F.jsxs)(Qh,{children:[(0,F.jsx)(Lv,{icon:Jt,title:Y(e,`preferences.language`),body:Y(e,`preferences.page.languageBody`)}),(0,F.jsx)(Iv,{language:e,onChange:r})]}),(0,F.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,F.jsxs)(Qh,{children:[(0,F.jsx)(Lv,{icon:tn,title:Y(e,`preferences.appearance`),body:Y(e,`preferences.page.appearanceBody`)}),(0,F.jsx)(`div`,{className:`mt-4 grid gap-2`,children:zv(e).map(e=>(0,F.jsx)(Rv,{selected:e.value===n,onClick:()=>i(e.value),icon:e.icon,children:e.label},e.value))})]}),(0,F.jsxs)(Qh,{children:[(0,F.jsx)(Lv,{icon:sn,title:Y(e,`preferences.direction`),body:Y(e,`preferences.direction.auto`)}),(0,F.jsx)(`div`,{className:`mt-4 rounded-lg border border-border/70 bg-background/30 px-3 py-2 text-sm`,children:(0,F.jsx)(`span`,{className:`text-muted-foreground`,children:t===`rtl`?Y(e,`preferences.rtl`):Y(e,`preferences.ltr`)})})]})]})]})]})}function Iv({language:e,onChange:t}){let[n,r]=P.useState(!1),[i,a]=P.useState(``),o=Ac.find(t=>t.value===e)??Ac[0],s=i.trim().toLowerCase(),c=s?Ac.filter(e=>[e.nativeLabel,e.label,e.value,e.htmlLang,e.direction].join(` `).toLowerCase().includes(s)):Ac;return(0,F.jsxs)(`div`,{className:`relative mt-4`,children:[(0,F.jsxs)(`button`,{type:`button`,onClick:()=>r(e=>!e),className:`flex w-full items-center justify-between gap-3 rounded-lg border border-border/70 bg-background/30 px-3 py-2 text-start text-sm transition-colors hover:bg-accent hover:text-accent-foreground`,"aria-expanded":n,children:[(0,F.jsxs)(`span`,{className:`min-w-0`,children:[(0,F.jsx)(`span`,{className:`block truncate font-medium text-foreground`,children:o.nativeLabel}),(0,F.jsxs)(`span`,{className:`block truncate text-xs text-muted-foreground`,children:[o.label,` · `,o.value,` · `,Wc(o.value).toUpperCase()]})]}),(0,F.jsx)(Dt,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),n?(0,F.jsxs)(`div`,{className:`absolute z-30 mt-2 w-full overflow-hidden rounded-xl border border-[var(--glass-border)] bg-card shadow-[var(--glass-shadow-lg)] backdrop-blur-md`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-[var(--glass-border)] px-3 py-2`,children:[(0,F.jsx)(pn,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,F.jsx)(`input`,{autoFocus:!0,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>{e.key===`Escape`&&r(!1)},placeholder:Y(e,`preferences.language.search`),className:`min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground`})]}),(0,F.jsx)(`div`,{className:`max-h-72 overflow-y-auto p-1`,children:c.length===0?(0,F.jsx)(`div`,{className:`px-3 py-6 text-center text-sm text-muted-foreground`,children:Y(e,`preferences.language.noResults`)}):c.map(n=>(0,F.jsxs)(`button`,{type:`button`,onClick:()=>{t(n.value),a(``),r(!1)},className:H(`flex w-full items-center justify-between gap-3 rounded-lg px-3 py-2 text-start text-sm transition-colors`,n.value===e?`bg-primary/10 text-foreground`:`text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:[(0,F.jsxs)(`span`,{className:`min-w-0`,children:[(0,F.jsx)(`span`,{className:`block truncate font-medium`,children:n.nativeLabel}),(0,F.jsxs)(`span`,{className:`block truncate text-xs opacity-75`,children:[n.label,` · `,n.value,` · `,n.direction.toUpperCase()]})]}),(0,F.jsx)(wt,{className:H(`size-4 shrink-0 text-primary`,n.value===e?`opacity-100`:`opacity-0`),"aria-hidden":!0})]},n.value))})]}):null]})}function Lv({icon:e,title:t,body:n}){return(0,F.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,F.jsx)(`div`,{className:`rounded-xl bg-primary/15 p-2 text-primary`,children:(0,F.jsx)(e,{className:`size-5`,"aria-hidden":!0})}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-lg`,children:t}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n})]})]})}function Rv({selected:e,onClick:t,icon:n,children:r}){return(0,F.jsxs)(`button`,{type:`button`,onClick:t,className:H(`flex min-h-10 items-center justify-between gap-3 rounded-lg border px-3 py-2 text-start text-sm transition-colors`,e?`border-primary/50 bg-primary/10 text-foreground`:`border-border/70 bg-background/30 text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:[(0,F.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[n?(0,F.jsx)(n,{className:`size-4 shrink-0`,"aria-hidden":!0}):null,(0,F.jsx)(`span`,{className:`truncate`,children:r})]}),(0,F.jsx)(wt,{className:H(`size-4 shrink-0 text-primary`,e?`opacity-100`:`opacity-0`),"aria-hidden":!0})]})}function zv(e){return[{value:`light`,label:Y(e,`preferences.light`),icon:vn},{value:`dark`,label:Y(e,`preferences.dark`),icon:nn},{value:`system`,label:Y(e,`preferences.system`),icon:tn}]}function Bv(){let{language:e}=J(),t=I({queryKey:[`site-settings`],queryFn:()=>q.get(`/site-settings`)}),[n,r]=P.useState(null),[i,a]=P.useState(`brand`);P.useEffect(()=>{t.data&&r(t.data)},[t.data]);let o=ut({mutationFn:e=>q.patch(`/site-settings`,e),onSuccess:e=>r(e)});return t.isLoading||!n?(0,F.jsx)(`div`,{className:`glass-card h-64 animate-pulse`}):t.isError?(0,F.jsx)(eg,{error:t.error}):(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(Zh,{eyebrow:`AotterMantle`,title:Y(e,`settings.page.title`),description:Y(e,`settings.page.body`),actions:(0,F.jsxs)(U,{onClick:()=>o.mutate(n),disabled:o.isPending,children:[(0,F.jsx)(fn,{className:`size-4`,"aria-hidden":!0}),o.isPending?Y(e,`crud.saving`):Y(e,`entryEdit.save`)]})}),o.isError?(0,F.jsx)(eg,{error:o.error}):null,(0,F.jsxs)(`div`,{role:`tablist`,"aria-label":Y(e,`settings.tabsLabel`),className:`inline-flex gap-1 rounded-lg border border-[var(--glass-border)] bg-background/60 p-1`,children:[(0,F.jsx)(Vv,{active:i===`brand`,icon:gn,label:Y(e,`settings.tab.brand`),onClick:()=>a(`brand`)}),(0,F.jsx)(Vv,{active:i===`tracking`,icon:Ct,label:Y(e,`settings.tab.tracking`),onClick:()=>a(`tracking`)})]}),i===`brand`?(0,F.jsxs)(Qh,{className:`grid max-w-5xl gap-4`,children:[(0,F.jsx)(Hv,{title:Y(e,`settings.brandSection`),body:Y(e,`settings.brandSectionBody`)}),(0,F.jsx)(Uv,{label:Y(e,`settings.siteBrand`),children:(0,F.jsx)(`input`,{className:`admin-input`,value:n.brand,onChange:e=>Wv(r,`brand`,e.target.value)})}),(0,F.jsx)(Uv,{label:Y(e,`settings.siteTitle`),children:(0,F.jsx)(`input`,{className:`admin-input`,value:n.title,onChange:e=>Wv(r,`title`,e.target.value)})}),(0,F.jsx)(Uv,{label:Y(e,`settings.siteDescription`),children:(0,F.jsx)(`textarea`,{className:`admin-textarea min-h-24`,value:n.description,onChange:e=>Wv(r,`description`,e.target.value)})})]}):null,i===`tracking`?(0,F.jsxs)(Qh,{className:`grid max-w-5xl gap-4`,children:[(0,F.jsx)(Hv,{title:Y(e,`settings.trackingSection`),body:Y(e,`settings.trackingSectionBody`)}),(0,F.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,F.jsx)(Uv,{label:Y(e,`settings.ga4MeasurementId`),description:Y(e,`settings.ga4MeasurementIdHelp`),children:(0,F.jsx)(`input`,{className:`admin-input`,value:n.ga4MeasurementId,placeholder:`G-XXXXXXXXXX`,onChange:e=>Wv(r,`ga4MeasurementId`,e.target.value)})}),(0,F.jsx)(Uv,{label:Y(e,`settings.facebookPixelId`),description:Y(e,`settings.facebookPixelIdHelp`),children:(0,F.jsx)(`input`,{className:`admin-input`,value:n.facebookPixelId,placeholder:`123456789012345`,onChange:e=>Wv(r,`facebookPixelId`,e.target.value)})})]})]}):null]})}function Vv({active:e,icon:t,label:n,onClick:r}){return(0,F.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":e,className:H(`inline-flex h-9 items-center gap-2 rounded-md px-3 text-sm font-semibold transition`,e?`bg-primary text-primary-foreground shadow-sm`:`text-muted-foreground hover:bg-accent hover:text-accent-foreground`),onClick:r,children:[(0,F.jsx)(t,{className:`size-4`,"aria-hidden":!0}),n]})}function Hv({title:e,body:t}){return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-lg font-semibold`,children:e}),(0,F.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:t})]})}function Uv({label:e,description:t,children:n}){return(0,F.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium`,children:[(0,F.jsx)(`span`,{children:e}),t?(0,F.jsx)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:t}):null,n]})}function Wv(e,t,n){e(e=>e&&{...e,[t]:n})}var Gv=[`owner`,`editor`,`contributor`,`none`],Kv=[`owner`,`editor`,`contributor`];function qv(){let{language:e}=J(),t=Ye(),n=I({queryKey:[`me`],queryFn:()=>q.get(`/me`),retry:!1}),r=I({queryKey:[`staff`],queryFn:()=>q.get(`/staff`),retry:!1}),i=()=>{t.invalidateQueries({queryKey:[`staff`]})},a=ut({mutationFn:e=>q.patch(`/staff/${encodeURIComponent(e.userId)}/role`,{role:e.role}),onSettled:i}),o=ut({mutationFn:e=>q.delete(`/staff/invitations/${encodeURIComponent(e)}`),onSettled:i});if(r.isError)return(0,F.jsx)(eg,{error:r.error});if(r.isLoading||!r.data)return(0,F.jsx)(`div`,{className:`glass-card h-64 animate-pulse`});let s=t=>Y(e,`staff.role.${t}`);return(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsx)(Zh,{eyebrow:`AotterMantle`,title:Y(e,`staff.page.title`),description:Y(e,`staff.page.body`)}),a.isError?(0,F.jsx)(eg,{error:Xv(a.error)}):null,o.isError?(0,F.jsx)(eg,{error:Xv(o.error)}):null,(0,F.jsx)(Jv,{onInvited:i}),(0,F.jsx)(Qh,{className:`overflow-x-auto p-0`,children:(0,F.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,F.jsx)(`thead`,{children:(0,F.jsxs)(`tr`,{className:`border-b text-left [&>th]:px-4 [&>th]:py-3 [&>th]:font-medium`,children:[(0,F.jsx)(`th`,{children:Y(e,`staff.table.name`)}),(0,F.jsx)(`th`,{children:Y(e,`staff.table.email`)}),(0,F.jsx)(`th`,{children:Y(e,`staff.table.status`)}),(0,F.jsx)(`th`,{children:Y(e,`staff.table.role`)})]})}),(0,F.jsx)(`tbody`,{children:r.data.users.map(t=>{let r=t.id===n.data?.userId,i=!t.emailVerified&&!t.githubLogin,c=Yv(t.role)?t.role:`none`;return(0,F.jsxs)(`tr`,{className:`border-b last:border-b-0 [&>td]:px-4 [&>td]:py-3`,children:[(0,F.jsx)(`td`,{children:t.name}),(0,F.jsx)(`td`,{children:t.email}),(0,F.jsx)(`td`,{children:i?(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,F.jsx)(`span`,{className:`rounded bg-amber-100 px-2 py-0.5 text-xs text-amber-800`,children:Y(e,`staff.badge.invited`)}),(0,F.jsx)(U,{variant:`ghost`,size:`sm`,disabled:o.isPending,onClick:()=>o.mutate(t.id),children:Y(e,`staff.invite.revoke`)})]}):t.githubLogin?`GitHub: ${t.githubLogin}`:Y(e,`staff.status.emailSignIn`)}),(0,F.jsx)(`td`,{children:r?(0,F.jsxs)(`span`,{className:`text-muted-foreground`,children:[s(c),` · `,Y(e,`staff.self`)]}):(0,F.jsx)(`select`,{className:`admin-input max-w-56`,value:c,disabled:a.isPending,onChange:e=>{let n=e.target.value;a.mutate({userId:t.id,role:Yv(n)?n:null})},children:Gv.map(e=>(0,F.jsx)(`option`,{value:e,children:s(e)},e))})})]},t.id)})})]})}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Y(e,`staff.invite.hint`)})]})}function Jv({onInvited:e}){let{language:t}=J(),[n,r]=P.useState(``),[i,a]=P.useState(`contributor`),o=ut({mutationFn:()=>q.post(`/staff/invitations`,{email:n,role:i}),onSuccess:()=>{r(``),e()}});return(0,F.jsxs)(Qh,{className:`grid gap-4`,children:[(0,F.jsx)(`h2`,{className:`text-sm font-semibold`,children:Y(t,`staff.invite.title`)}),o.isError?(0,F.jsx)(eg,{error:Xv(o.error)}):null,(0,F.jsxs)(`div`,{className:`flex flex-wrap items-end gap-3`,children:[(0,F.jsxs)(`label`,{className:`grid min-w-64 flex-1 gap-1.5 text-sm font-medium`,children:[(0,F.jsx)(`span`,{children:Y(t,`staff.invite.emailLabel`)}),(0,F.jsx)(`input`,{className:`admin-input`,type:`email`,value:n,placeholder:Y(t,`staff.invite.emailPlaceholder`),onChange:e=>r(e.target.value)})]}),(0,F.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium`,children:[(0,F.jsx)(`span`,{children:Y(t,`staff.invite.roleLabel`)}),(0,F.jsx)(`select`,{className:`admin-input`,value:i,onChange:e=>{let t=e.target.value;Yv(t)&&a(t)},children:Kv.map(e=>(0,F.jsx)(`option`,{value:e,children:Y(t,`staff.role.${e}`)},e))})]}),(0,F.jsxs)(U,{onClick:()=>o.mutate(),disabled:o.isPending||n.trim()===``,children:[(0,F.jsx)(kn,{className:`size-4`,"aria-hidden":!0}),o.isPending?Y(t,`staff.invite.sending`):Y(t,`staff.invite.button`)]})]})]})}function Yv(e){return e===`owner`||e===`editor`||e===`contributor`}function Xv(e){if(e instanceof pc){let t=e.body?.diagnostic?.message;if(t)return Error(t)}return e}function Zv(){let e=kc();return e.pathname===`/admin/sign-in`?(0,F.jsx)(Hh,{}):(0,F.jsx)(Qv,{path:e.pathname})}function Qv({path:e}){let t=I({queryKey:[`me`],queryFn:()=>q.get(`/me`),retry:!1}),n=t.isError&&t.error instanceof pc&&t.error.status===401;if((0,P.useEffect)(()=>{if(!n||typeof window>`u`)return;let e=window.location.pathname+window.location.search;window.location.href=`/admin/sign-in?return=${encodeURIComponent(e)}`},[n]),n)return(0,F.jsx)(Ih,{});if(t.isError&&t.error instanceof pc&&t.error.status===403)return(0,F.jsx)(Rh,{login:(t.error.body??{}).login??null});if(t.isError)return(0,F.jsx)(Lh,{error:t.error});if(t.isLoading)return(0,F.jsx)(Ih,{});let r=e.match(/^\/admin\/c\/([^/]+)\/?$/);if(r)return(0,F.jsx)(Mh,{children:(0,F.jsx)(ev,{collectionName:decodeURIComponent(r[1])})});let i=e.match(/^\/admin\/c\/([^/]+)\/([^/]+)\/?$/);if(i)return(0,F.jsx)(Mh,{children:(0,F.jsx)(C_,{collectionName:decodeURIComponent(i[1]),entryId:decodeURIComponent(i[2])})});if(e===`/admin`||e===`/admin/`)return(0,F.jsx)(Mh,{children:(0,F.jsx)(ag,{})});if(e===`/admin/editor`)return(0,F.jsx)(Mh,{children:(0,F.jsx)(vv,{})});if(e===`/admin/media`)return(0,F.jsx)(Mh,{children:(0,F.jsx)(g_,{})});if(e===`/admin/preferences`)return(0,F.jsx)(Mh,{children:(0,F.jsx)(Fv,{})});if(e===`/admin/settings`)return(0,F.jsx)(Mh,{children:(0,F.jsx)(Bv,{})});if(e===`/admin/staff`)return(0,F.jsx)(Mh,{children:(0,F.jsx)(qv,{})});if(e===`/admin/approvals`)return(0,F.jsx)(Mh,{children:(0,F.jsx)(Ov,{})});if(e===`/admin/ops`)return(0,F.jsx)(Mh,{children:(0,F.jsx)(yv,{})});let a=e.match(/^\/admin\/views\/([^/]+)\/?$/);return a?(0,F.jsx)(Mh,{children:(0,F.jsx)(Cv,{name:decodeURIComponent(a[1])})}):(0,F.jsx)(Mh,{children:(0,F.jsx)(Pv,{path:e})})}var $v=new Ge({defaultOptions:{queries:{retry:(e,t)=>t instanceof pc&&[401,403].includes(t.status)?!1:e<2,refetchOnWindowFocus:!1,staleTime:1e4}}}),ey=document.getElementById(`root`);if(!ey)throw Error(`Missing #root element.`);Fn.createRoot(ey).render((0,F.jsx)(P.StrictMode,{children:(0,F.jsx)(Xe,{client:$v,children:(0,F.jsx)(Ic,{children:(0,F.jsx)(Dc,{children:(0,F.jsx)(Ig,{children:(0,F.jsx)(bg,{children:(0,F.jsx)(Zv,{})})})})})})}));</script>
|
|
142
142
|
<style rel="stylesheet" crossorigin>@import "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Noto+Sans+TC:wght@400;500;600;700;800;900&display=swap";@layer components;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:"Noto Sans TC", "PingFang TC", "Heiti TC", "Microsoft JhengHei", "Source Han Sans TC", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-mono:"IBM Plex Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;--color-amber-100:oklch(96.2% .059 95.617);--color-amber-800:oklch(47.3% .137 46.201);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:1.45;--text-sm:.9375rem;--text-sm--line-height:1.6;--text-base:1rem;--text-base--line-height:1.68;--text-lg:1.125rem;--text-lg--line-height:1.58;--text-xl:1.25rem;--text-xl--line-height:1.45;--text-2xl:1.5rem;--text-2xl--line-height:1.34;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--leading-tight:1.25;--leading-relaxed:1.625;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-success:var(--success);--color-warning:var(--warning);--color-info:var(--info);--font-display:"Noto Sans TC", "PingFang TC", "Heiti TC", "Microsoft JhengHei", "Source Han Sans TC", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{.\@container\/content{container:content/inline-size}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{inset-inline:0}.inset-y-0{inset-block:0}.end-3{inset-inline-end:calc(var(--spacing) * 3)}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:calc(var(--spacing) * 3)}.top-4{top:calc(var(--spacing) * 4)}.right-0{right:0}.right-4{right:calc(var(--spacing) * 4)}.bottom-0{bottom:0}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-4{bottom:calc(var(--spacing) * 4)}.left-0{left:0}.left-1\/2{left:50%}.left-3{left:calc(var(--spacing) * 3)}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[999\]{z-index:999}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-2{margin:calc(var(--spacing) * 2)}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-3\.5{margin-inline:calc(var(--spacing) * 3.5)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-auto{margin-inline:auto}.my-1{margin-block:var(--spacing)}.-ms-1{margin-inline-start:calc(var(--spacing) * -1)}.ms-auto{margin-inline-start:auto}.me-2{margin-inline-end:calc(var(--spacing) * 2)}.me-auto{margin-inline-end:auto}.-mt-4{margin-top:calc(var(--spacing) * -4)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-1{margin-left:var(--spacing)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.aspect-square{aspect-ratio:1}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-full{width:100%;height:100%}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-24{height:calc(var(--spacing) * 24)}.h-36{height:calc(var(--spacing) * 36)}.h-64{height:calc(var(--spacing) * 64)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[85vh\]{max-height:85vh}.max-h-\[min\(28rem\,80vh\)\]{max-height:min(28rem,80vh)}.min-h-0{min-height:0}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-24{min-height:calc(var(--spacing) * 24)}.min-h-svh{min-height:100svh}.w-\(--radix-dropdown-menu-trigger-width\){width:var(--radix-dropdown-menu-trigger-width)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-1\/2{width:50%}.w-2\/3{width:66.6667%}.w-3\/4{width:75%}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-28{width:calc(var(--spacing) * 28)}.w-32{width:calc(var(--spacing) * 32)}.w-44{width:calc(var(--spacing) * 44)}.w-52{width:calc(var(--spacing) * 52)}.w-56{width:calc(var(--spacing) * 56)}.w-\[inherit\]{width:inherit}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-56{max-width:calc(var(--spacing) * 56)}.max-w-\[28rem\]{max-width:28rem}.max-w-\[1440px\]{max-width:1440px}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.min-w-0{min-width:0}.min-w-56{min-width:calc(var(--spacing) * 56)}.min-w-64{min-width:calc(var(--spacing) * 64)}.min-w-\[8rem\]{min-width:8rem}.min-w-\[16rem\]{min-width:16rem}.min-w-\[720px\]{min-width:720px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-52{--tw-translate-y:calc(var(--spacing) * -52);translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-pulse{animation:var(--animate-pulse)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.scroll-mt-20{scroll-margin-top:calc(var(--spacing) * 20)}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-y-1{row-gap:var(--spacing)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-\[var\(--glass-border\)\]>:not(:last-child)){border-color:var(--glass-border)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-clip{overflow-x:clip}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\[var\(--glass-border\)\]{border-color:var(--glass-border)}.border-\[var\(--ring\)\]{border-color:var(--ring)}.border-border,.border-border\/40{border-color:var(--border)}@supports (color:color-mix(in lab, red, red)){.border-border\/40{border-color:color-mix(in oklab, var(--border) 40%, transparent)}}.border-border\/60{border-color:var(--border)}@supports (color:color-mix(in lab, red, red)){.border-border\/60{border-color:color-mix(in oklab, var(--border) 60%, transparent)}}.border-border\/70{border-color:var(--border)}@supports (color:color-mix(in lab, red, red)){.border-border\/70{border-color:color-mix(in oklab, var(--border) 70%, transparent)}}.border-destructive\/20{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.border-destructive\/20{border-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.border-destructive\/30{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.border-destructive\/30{border-color:color-mix(in oklab, var(--destructive) 30%, transparent)}}.border-input{border-color:var(--input)}.border-primary,.border-primary\/50{border-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.border-primary\/50{border-color:color-mix(in oklab, var(--primary) 50%, transparent)}}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.bg-\[color-mix\(in_srgb\,var\(--info\)_16\%\,transparent\)\]{background-color:var(--info)}@supports (color:color-mix(in lab, red, red)){.bg-\[color-mix\(in_srgb\,var\(--info\)_16\%\,transparent\)\]{background-color:color-mix(in srgb,var(--info) 16%,transparent)}}.bg-\[color-mix\(in_srgb\,var\(--info\)_18\%\,transparent\)\]{background-color:var(--info)}@supports (color:color-mix(in lab, red, red)){.bg-\[color-mix\(in_srgb\,var\(--info\)_18\%\,transparent\)\]{background-color:color-mix(in srgb,var(--info) 18%,transparent)}}.bg-\[color-mix\(in_srgb\,var\(--success\)_16\%\,transparent\)\]{background-color:var(--success)}@supports (color:color-mix(in lab, red, red)){.bg-\[color-mix\(in_srgb\,var\(--success\)_16\%\,transparent\)\]{background-color:color-mix(in srgb,var(--success) 16%,transparent)}}.bg-\[color-mix\(in_srgb\,var\(--success\)_18\%\,transparent\)\]{background-color:var(--success)}@supports (color:color-mix(in lab, red, red)){.bg-\[color-mix\(in_srgb\,var\(--success\)_18\%\,transparent\)\]{background-color:color-mix(in srgb,var(--success) 18%,transparent)}}.bg-\[color-mix\(in_srgb\,var\(--warning\)_18\%\,transparent\)\]{background-color:var(--warning)}@supports (color:color-mix(in lab, red, red)){.bg-\[color-mix\(in_srgb\,var\(--warning\)_18\%\,transparent\)\]{background-color:color-mix(in srgb,var(--warning) 18%,transparent)}}.bg-\[var\(--glass-border\)\]{background-color:var(--glass-border)}.bg-accent,.bg-accent\/40{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.bg-accent\/40{background-color:color-mix(in oklab, var(--accent) 40%, transparent)}}.bg-amber-100{background-color:var(--color-amber-100)}.bg-background,.bg-background\/25{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/25{background-color:color-mix(in oklab, var(--background) 25%, transparent)}}.bg-background\/30{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/30{background-color:color-mix(in oklab, var(--background) 30%, transparent)}}.bg-background\/35{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/35{background-color:color-mix(in oklab, var(--background) 35%, transparent)}}.bg-background\/40{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/40{background-color:color-mix(in oklab, var(--background) 40%, transparent)}}.bg-background\/60{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/60{background-color:color-mix(in oklab, var(--background) 60%, transparent)}}.bg-background\/65{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/65{background-color:color-mix(in oklab, var(--background) 65%, transparent)}}.bg-black\/0{background-color:#0000}@supports (color:color-mix(in lab, red, red)){.bg-black\/0{background-color:color-mix(in oklab, var(--color-black) 0%, transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-border{background-color:var(--border)}.bg-card,.bg-card\/30{background-color:var(--card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/30{background-color:color-mix(in oklab, var(--card) 30%, transparent)}}.bg-card\/40{background-color:var(--card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/40{background-color:color-mix(in oklab, var(--card) 40%, transparent)}}.bg-card\/50{background-color:var(--card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/50{background-color:color-mix(in oklab, var(--card) 50%, transparent)}}.bg-card\/55{background-color:var(--card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/55{background-color:color-mix(in oklab, var(--card) 55%, transparent)}}.bg-card\/70{background-color:var(--card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/70{background-color:color-mix(in oklab, var(--card) 70%, transparent)}}.bg-destructive,.bg-destructive\/5{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/5{background-color:color-mix(in oklab, var(--destructive) 5%, transparent)}}.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/10{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.bg-muted,.bg-muted\/40{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/40{background-color:color-mix(in oklab, var(--muted) 40%, transparent)}}.bg-primary,.bg-primary\/10{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\/10{background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.bg-primary\/15{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\/15{background-color:color-mix(in oklab, var(--primary) 15%, transparent)}}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-linear-to-r{--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-r{--tw-gradient-position:to right in oklab}}.bg-linear-to-r{background-image:linear-gradient(var(--tw-gradient-stops))}.from-transparent{--tw-gradient-from:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.via-\[color-mix\(in_srgb\,var\(--primary\)_24\%\,transparent\)\]{--tw-gradient-via:var(--primary)}@supports (color:color-mix(in lab, red, red)){.via-\[color-mix\(in_srgb\,var\(--primary\)_24\%\,transparent\)\]{--tw-gradient-via:color-mix(in srgb,var(--primary) 24%,transparent)}}.via-\[color-mix\(in_srgb\,var\(--primary\)_24\%\,transparent\)\]{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-6{padding-block:calc(var(--spacing) * 6)}.ps-8{padding-inline-start:calc(var(--spacing) * 8)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pb-1{padding-bottom:var(--spacing)}.pl-9{padding-left:calc(var(--spacing) * 9)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[11px\]{font-size:11px}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-6{--tw-leading:calc(var(--spacing) * 6);line-height:calc(var(--spacing) * 6)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\[\#1a3062\]{color:#1a3062}.text-\[\#040000\]{color:#040000}.text-\[color\:var\(--info\)\]{color:var(--info)}.text-\[color\:var\(--success\)\]{color:var(--success)}.text-\[color\:var\(--warning\)\]{color:var(--warning)}.text-accent{color:var(--accent)}.text-accent-foreground{color:var(--accent-foreground)}.text-amber-800{color:var(--color-amber-800)}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}.text-destructive-foreground{color:var(--destructive-foreground)}.text-destructive\/80{color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.text-destructive\/80{color:color-mix(in oklab, var(--destructive) 80%, transparent)}}.text-destructive\/90{color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.text-destructive\/90{color:color-mix(in oklab, var(--destructive) 90%, transparent)}}.text-foreground,.text-foreground\/30{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/30{color:color-mix(in oklab, var(--foreground) 30%, transparent)}}.text-foreground\/70{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/70{color:color-mix(in oklab, var(--foreground) 70%, transparent)}}.text-foreground\/80{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/80{color:color-mix(in oklab, var(--foreground) 80%, transparent)}}.text-muted-foreground{color:var(--muted-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab, red, red)){.text-sidebar-foreground\/70{color:color-mix(in oklab, var(--sidebar-foreground) 70%, transparent)}}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.accent-\[var\(--primary\)\]{accent-color:var(--primary)}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[-12px_0_32px_-12px_rgba\(0\,0\,0\,0\.4\)\]{--tw-shadow:-12px 0 32px -12px var(--tw-shadow-color,#0006);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_8px_rgba\(26\,48\,98\,0\.30\)\]{--tw-shadow:0 2px 8px var(--tw-shadow-color,#1a30624d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_8px_rgba\(239\,68\,68\,0\.25\)\]{--tw-shadow:0 2px 8px var(--tw-shadow-color,#ef444440);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[12px_0_32px_-12px_rgba\(0\,0\,0\,0\.4\)\]{--tw-shadow:12px 0 32px -12px var(--tw-shadow-color,#0006);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[var\(--glass-shadow\)\]{--tw-shadow:var(--glass-shadow);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[var\(--glass-shadow-lg\)\]{--tw-shadow:var(--glass-shadow-lg);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-border{--tw-ring-color:var(--border)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.outline-offset-2{outline-offset:2px}.outline-ring\/40{outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.outline-ring\/40{outline-color:color-mix(in oklab, var(--ring) 40%, transparent)}}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.running{animation-play-state:running}.slide-in-from-bottom-2{--tw-enter-translate-y:calc(2*var(--spacing))}@media (hover:hover){.group-hover\:opacity-60:is(:where(.group):hover *){opacity:.6}.group-hover\:opacity-80:is(:where(.group):hover *){opacity:.8}}.group-data-\[state\=collapsed\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-state=collapsed] *){width:var(--sidebar-width-icon)}.group-data-\[state\=open\]\/collapsible\:rotate-90:is(:where(.group\/collapsible)[data-state=open] *){rotate:90deg}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.first\:mt-0:first-child{margin-top:0}.first\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.first\:pt-0:first-child{padding-top:0}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:border-\[var\(--palette-secondary-base\)\]:hover{border-color:var(--palette-secondary-base)}.hover\:border-primary:hover{border-color:var(--primary)}.hover\:bg-\[var\(--palette-primary-light\)\]:hover{background-color:var(--palette-primary-light)}.hover\:bg-accent:hover,.hover\:bg-accent\/40:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-accent\/40:hover{background-color:color-mix(in oklab, var(--accent) 40%, transparent)}}.hover\:bg-black\/40:hover{background-color:#0006}@supports (color:color-mix(in lab, red, red)){.hover\:bg-black\/40:hover{background-color:color-mix(in oklab, var(--color-black) 40%, transparent)}}.hover\:bg-destructive\/10:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/10:hover{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.hover\:bg-destructive\/85:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/85:hover{background-color:color-mix(in oklab, var(--destructive) 85%, transparent)}}.hover\:bg-primary:hover{background-color:var(--primary)}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:text-\[var\(--palette-primary-light\)\]:hover{color:var(--palette-primary-light)}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-primary:hover{color:var(--primary)}.hover\:text-primary-foreground:hover{color:var(--primary-foreground)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_4px_12px_rgba\(239\,68\,68\,0\.35\)\]:hover{--tw-shadow:0 4px 12px var(--tw-shadow-color,#ef444459);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:shadow-\[0_4px_14px_rgba\(26\,48\,98\,0\.40\)\]:hover{--tw-shadow:0 4px 14px var(--tw-shadow-color,#1a306266);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:ring-primary\/40:hover{--tw-ring-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\:ring-primary\/40:hover{--tw-ring-color:color-mix(in oklab, var(--primary) 40%, transparent)}}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:bg-destructive\/10:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus\:bg-destructive\/10:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:text-destructive:focus{color:var(--destructive)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:translate-y-0:focus-visible{--tw-translate-y:0;translate:var(--tw-translate-x) var(--tw-translate-y)}.focus-visible\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--ring)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:border-primary:active{border-color:var(--primary)}.active\:bg-\[var\(--palette-primary-base\)\]:active{background-color:var(--palette-primary-base)}.active\:bg-accent\/70:active{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.active\:bg-accent\/70:active{background-color:color-mix(in oklab, var(--accent) 70%, transparent)}}.active\:bg-destructive\/95:active{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.active\:bg-destructive\/95:active{background-color:color-mix(in oklab, var(--destructive) 95%, transparent)}}.active\:bg-primary\/90:active{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.active\:bg-primary\/90:active{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}.active\:bg-sidebar-accent:active{background-color:var(--sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--sidebar-accent-foreground)}.active\:shadow-\[0_1px_4px_rgba\(26\,48\,98\,0\.20\)\]:active{--tw-shadow:0 1px 4px var(--tw-shadow-color,#1a306233);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--sidebar)}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:var(--sidebar-accent)}.data-\[active\=true\]\:font-medium[data-active=true]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:var(--sidebar-accent-foreground)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[slot\=sidebar-menu-button\]\:\!p-1\.5[data-slot=sidebar-menu-button]{padding:calc(var(--spacing) * 1.5)!important}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:duration-200[data-state=closed]{--tw-duration:.2s;transition-duration:.2s}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent\/40[data-state=open]{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.data-\[state\=open\]\:bg-accent\/40[data-state=open]{background-color:color-mix(in oklab, var(--accent) 40%, transparent)}}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:var(--secondary)}.data-\[state\=open\]\:ring-primary[data-state=open]{--tw-ring-color:var(--primary)}.data-\[state\=open\]\:duration-200[data-state=open]{--tw-duration:.2s;transition-duration:.2s}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}@media (hover:hover){.data-\[state\=open\]\:hover\:bg-sidebar-accent[data-state=open]:hover{background-color:var(--sidebar-accent)}.data-\[state\=open\]\:hover\:text-sidebar-accent-foreground[data-state=open]:hover{color:var(--sidebar-accent-foreground)}}@media (width>=40rem){.sm\:inline{display:inline}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}}@media (width>=48rem){.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing) * 2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:0}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:var(--radius-xl)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}@media (width>=64rem){.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-\[minmax\(0\,1fr\)_22rem\]{grid-template-columns:minmax(0,1fr) 22rem}}@media (width>=80rem){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-\[minmax\(0\,1fr\)_22rem\]{grid-template-columns:minmax(0,1fr) 22rem}}.rtl\:-translate-x-px:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:translate-x-px:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:rotate-180:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){rotate:180deg}.rtl\:flex-row-reverse:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.rtl\:border-r:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){border-right-style:var(--tw-border-style);border-right-width:1px}.rtl\:border-l-0:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){border-left-style:var(--tw-border-style);border-left-width:0}.rtl\:group-data-\[state\=open\]\/collapsible\:-rotate-90:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):is(:where(.group\/collapsible)[data-state=open] *){rotate:-90deg}@media (width>=48rem){.rtl\:md\:peer-data-\[variant\=inset\]\:mr-0:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):is(:where(.peer)[data-variant=inset]~*){margin-right:0}.rtl\:md\:peer-data-\[variant\=inset\]\:ml-2:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing) * 2)}}.dark\:bg-\[var\(--glass-bg-elevated\)\]:where(.dark,.dark *){background-color:var(--glass-bg-elevated)}.dark\:via-\[color-mix\(in_srgb\,var\(--palette-teal-light\)_18\%\,transparent\)\]:where(.dark,.dark *){--tw-gradient-via:var(--palette-teal-light)}@supports (color:color-mix(in lab, red, red)){.dark\:via-\[color-mix\(in_srgb\,var\(--palette-teal-light\)_18\%\,transparent\)\]:where(.dark,.dark *){--tw-gradient-via:color-mix(in srgb,var(--palette-teal-light) 18%,transparent)}}.dark\:via-\[color-mix\(in_srgb\,var\(--palette-teal-light\)_18\%\,transparent\)\]:where(.dark,.dark *){--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.dark\:shadow-\[0_2px_14px_rgba\(77\,106\,172\,0\.45\)\]:where(.dark,.dark *){--tw-shadow:0 2px 14px var(--tw-shadow-color,#4d6aac73);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@media (hover:hover){.dark\:hover\:shadow-\[0_4px_20px_rgba\(77\,106\,172\,0\.60\)\]:where(.dark,.dark *):hover{--tw-shadow:0 4px 20px var(--tw-shadow-color,#4d6aac99);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.\[\&\>button\]\:hidden>button{display:none}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>td\]\:px-4>td{padding-inline:calc(var(--spacing) * 4)}.\[\&\>td\]\:py-3>td{padding-block:calc(var(--spacing) * 3)}.\[\&\>th\]\:px-4>th{padding-inline:calc(var(--spacing) * 4)}.\[\&\>th\]\:py-3>th{padding-block:calc(var(--spacing) * 3)}.\[\&\>th\]\:font-medium>th{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--color-primary-base:#091125;--color-primary-light:#1e305c;--color-primary-lighter:#33477a;--color-primary-dark:#000;--color-primary-darker:#000;--color-secondary-base:#273453;--color-secondary-light:#4a597d;--color-secondary-lighter:#697591;--color-secondary-dark:#0c1322;--color-secondary-darker:#000;--color-error:#ef4444;--color-warning:#f59e0b;--color-success:#10b981;--color-info:#3b82f6;--color-link:#1e101b;--color-link-hover:#000;--color-button:#101e13;--color-button-hover:#000;--color-white:#fff;--color-light:#f3f4f6;--color-medium:#d1d5db;--color-dark:#374151;--color-black:#111827;--color-background:#fff;--color-surface:#f9fafb;--color-border:#e5e7eb;--color-text:#111827;--color-text-secondary:#6b7280;--color-disabled:#d1d5db;--background:#fff;--foreground:#111827;--card:var(--glass-bg-elevated);--card-foreground:#111827;--popover:var(--glass-bg-elevated);--popover-foreground:#111827;--primary:var(--palette-primary-base);--primary-foreground:#fff;--secondary:#f1f5f9;--secondary-foreground:#111827;--muted:#eef1f8;--muted-foreground:#6b7280;--accent:#e8edf8;--accent-foreground:#111827;--destructive:var(--palette-error);--destructive-foreground:#fff;--success:var(--palette-success);--success-foreground:#f0fdf4;--warning:var(--palette-warning);--warning-foreground:#111827;--info:var(--palette-info);--info-foreground:#dbeafe;--border:var(--glass-border);--input:var(--glass-border);--ring:var(--palette-primary-light);--radius:.5rem;--sidebar:var(--glass-bg);--sidebar-foreground:var(--foreground);--sidebar-primary:var(--primary);--sidebar-primary-foreground:var(--primary-foreground);--sidebar-accent:var(--accent);--sidebar-accent-foreground:var(--accent-foreground);--sidebar-border:var(--glass-border);--sidebar-ring:var(--ring);--palette-primary-darker:var(--color-primary-darker);--palette-primary-dark:var(--color-primary-dark);--palette-primary-base:var(--color-primary-base);--palette-primary-light:var(--color-primary-light);--palette-primary-lighter:var(--color-primary-lighter);--palette-secondary-darker:var(--color-secondary-darker);--palette-secondary-dark:var(--color-secondary-dark);--palette-secondary-base:var(--color-secondary-base);--palette-secondary-light:var(--color-secondary-light);--palette-secondary-lighter:var(--color-secondary-lighter);--palette-error:var(--color-error);--palette-warning:var(--color-warning);--palette-success:var(--color-success);--palette-info:var(--color-info);--palette-teal-dark:#0072a4;--palette-teal-base:#00b7c7;--palette-teal-light:#6efacd;--glass-bg:#ffffffad;--glass-bg-elevated:#ffffffdb;--glass-bg-dialog:#fffffff7;--glass-border:#d1d5db8c;--glass-blur:22px;--glass-shadow:0 16px 48px #0911251a, 0 1px 4px #0911250d;--glass-shadow-lg:0 24px 72px #09112529, 0 3px 12px #09112514;--app-bg:radial-gradient(ellipse at 20% 20%, #4d6aac1a 0%, transparent 55%), radial-gradient(ellipse at 80% 80%, #00b7c712 0%, transparent 55%), radial-gradient(ellipse at 50% 100%, #1a30620d 0%, transparent 45%), #f9fafb;--scrollbar:#d1d5db}:root.dark{--background:#071127;--foreground:#e8ecf8;--card:var(--glass-bg-elevated);--card-foreground:#f1f5f9;--popover:var(--glass-bg-elevated);--popover-foreground:#f1f5f9;--primary:var(--palette-primary-lighter);--primary-foreground:#fff;--secondary:#0d1a38;--secondary-foreground:#e8ecf8;--muted:#122040;--muted-foreground:#7b95cc;--accent:#152444;--accent-foreground:#7b9ef0;--destructive:var(--palette-error);--destructive-foreground:#fff;--success:var(--palette-success);--success-foreground:#dcfce7;--warning:var(--palette-warning);--warning-foreground:#f1f5f9;--info:var(--palette-info);--info-foreground:#0f172a;--border:var(--glass-border);--input:var(--glass-border);--ring:var(--palette-primary-lighter);--sidebar:var(--glass-bg);--sidebar-foreground:var(--foreground);--sidebar-primary:var(--primary);--sidebar-primary-foreground:var(--primary-foreground);--sidebar-accent:var(--accent);--sidebar-accent-foreground:var(--accent-foreground);--sidebar-border:var(--glass-border);--sidebar-ring:var(--ring);--glass-bg:#1a306259;--glass-bg-elevated:#2333588c;--glass-bg-dialog:#0d1632f7;--glass-border:#4d6aac38;--glass-blur:16px;--glass-shadow:0 4px 24px #07112780, 0 1px 4px #0711274d;--glass-shadow-lg:0 8px 40px #071127a6, 0 2px 8px #07112766;--app-bg:radial-gradient(ellipse at 20% 25%, #1a3062cc 0%, transparent 50%), radial-gradient(ellipse at 80% 75%, #0072a473 0%, transparent 50%), radial-gradient(ellipse at 55% 5%, #4d6aac40 0%, transparent 40%), #071127;--scrollbar:#475569}html{background:var(--background)}body{font-family:var(--font-sans);font-size:var(--text-base);font-feature-settings:"kern", "liga";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--foreground);letter-spacing:0;margin:0;line-height:1.68;transition:color .2s}body:before{content:"";z-index:-1;pointer-events:none;background:var(--app-bg);position:fixed;inset:0}:is([data-slot=sidebar-wrapper]:has([data-variant=inset]),[data-slot=sidebar-inset]){background-color:#0000}[data-sidebar=menu-button][data-active=true]:before{content:"";background:var(--primary);border-radius:0 2px 2px 0;width:2px;height:1rem;position:absolute;top:50%;left:0;transform:translateY(-50%)}[dir=rtl] [data-sidebar=menu-button][data-active=true]:before{border-radius:2px 0 0 2px;left:auto;right:0}[dir=rtl] [data-sidebar=trigger] svg{transform:scaleX(-1)}.sidebar-chrome-row{align-items:center;gap:.5rem;display:flex}.sidebar-chrome-row [data-sidebar=menu]{flex:auto;min-width:0}.sidebar-chrome-row [data-sidebar=trigger]{border:1px solid var(--glass-border);background:var(--glass-bg-elevated);flex:none;width:2.5rem;height:2.5rem}@supports (color:color-mix(in lab, red, red)){.sidebar-chrome-row [data-sidebar=trigger]{background:color-mix(in srgb, var(--glass-bg-elevated) 72%, transparent)}}.sidebar-chrome-row [data-sidebar=trigger]{color:var(--foreground)}[data-state=collapsed] [data-sidebar=group-label],[data-state=collapsed] [data-sidebar-label],[data-state=collapsed] [data-sidebar=separator]{display:none}[data-state=collapsed] [data-sidebar=header],[data-state=collapsed] [data-sidebar=footer],[data-state=collapsed] [data-sidebar=group]{padding-left:.5rem;padding-right:.5rem}[data-state=collapsed] [data-sidebar=menu-button],[data-state=collapsed] .sidebar-chrome-row{justify-content:center}.admin-statusbar{border-bottom:1px solid var(--glass-border)}@supports (color:color-mix(in lab, red, red)){.admin-statusbar{border-bottom:1px solid color-mix(in srgb, var(--glass-border) 76%, transparent)}}.admin-statusbar{background:linear-gradient(180deg, var(--background), var(--background))}@supports (color:color-mix(in lab, red, red)){.admin-statusbar{background:linear-gradient(180deg, color-mix(in srgb, var(--background) 80%, transparent), color-mix(in srgb, var(--background) 62%, transparent))}}.admin-statusbar{-webkit-backdrop-filter:blur(var(--glass-blur)) saturate(1.25)}.admin-site-status{border:1px solid var(--glass-border);background:var(--glass-bg-elevated);align-items:center;gap:.55rem;min-width:0;max-width:min(32rem,52vw);height:2.35rem;display:inline-flex}@supports (color:color-mix(in lab, red, red)){.admin-site-status{background:color-mix(in srgb, var(--glass-bg-elevated) 70%, transparent)}}.admin-site-status{color:var(--foreground);padding:0 .75rem;box-shadow:0 10px 28px #0911250f}.admin-site-status span,.admin-site-status small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.admin-site-status span{font-weight:700}.admin-site-status small{color:var(--muted-foreground);letter-spacing:.04em;text-transform:uppercase;font-size:.78rem}h1,h2,h3,h4{font-family:var(--font-display);font-feature-settings:"kern", "liga";letter-spacing:0;font-weight:700;line-height:1.22}h1{line-height:1.18}code,kbd,pre{font-family:var(--font-mono)}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--scrollbar);border-radius:3px}.glass-card{border-radius:calc(var(--radius) + 4px);border:1px solid var(--glass-border);background-color:var(--glass-bg-elevated);-webkit-backdrop-filter:blur(var(--glass-blur));box-shadow:var(--glass-shadow)}.admin-input,.admin-textarea,.admin-search input{border-radius:calc(var(--radius) + 2px);border:1px solid var(--glass-border);background:var(--glass-bg-dialog);width:100%}@supports (color:color-mix(in lab, red, red)){.admin-input,.admin-textarea,.admin-search input{background:color-mix(in srgb, var(--glass-bg-dialog) 80%, transparent)}}.admin-input,.admin-textarea,.admin-search input{color:var(--foreground);outline:none;transition:border-color .18s,box-shadow .18s,background .18s}.admin-input,.admin-search input{letter-spacing:0;min-height:2.85rem;padding:0 1rem;font-size:1rem;line-height:1.5}.admin-search-field{display:block;position:relative}.admin-search-icon{pointer-events:none;width:1rem;height:1rem;color:var(--muted-foreground);inset-inline-start:1rem;position:absolute;top:50%;transform:translateY(-50%)}.admin-search-input{min-height:2.85rem;padding-inline:2.75rem 1rem!important}.admin-input::placeholder,.admin-textarea::placeholder,.admin-search input::placeholder{color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.admin-input::placeholder,.admin-textarea::placeholder,.admin-search input::placeholder{color:color-mix(in srgb, var(--muted-foreground) 78%, transparent)}}.admin-input::placeholder,.admin-textarea::placeholder,.admin-search input::placeholder{opacity:1}.admin-textarea{resize:vertical;min-height:24rem;font-family:var(--font-mono);padding:.9rem;line-height:1.65}.admin-textarea-compact{min-height:10rem}.admin-input:focus,.admin-textarea:focus,.admin-search input:focus{border-color:var(--primary);background:var(--glass-bg-dialog)}@supports (color:color-mix(in lab, red, red)){.admin-input:focus,.admin-textarea:focus,.admin-search input:focus{background:color-mix(in srgb, var(--glass-bg-dialog) 95%, transparent)}}.admin-input:focus,.admin-textarea:focus,.admin-search input:focus{box-shadow:0 0 0 3px var(--primary)}@supports (color:color-mix(in lab, red, red)){.admin-input:focus,.admin-textarea:focus,.admin-search input:focus{box-shadow:0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent)}}.segmented-control,.editor-toolbar,.admin-search{border:1px solid var(--glass-border);background:var(--glass-bg);align-items:center;max-width:100%;display:inline-flex}@supports (color:color-mix(in lab, red, red)){.segmented-control,.editor-toolbar,.admin-search{background:color-mix(in srgb, var(--glass-bg) 88%, transparent)}}.segmented-control,.editor-toolbar,.admin-search{-webkit-backdrop-filter:blur(var(--glass-blur))}.segmented-control{white-space:nowrap;overflow:auto hidden}.segmented-control button,.editor-toolbar button{min-height:2.5rem;color:var(--foreground);font:inherit;cursor:pointer;background:0 0;border:0;padding:0 .85rem;font-weight:600}.segmented-control button{white-space:nowrap;justify-content:center;align-items:center;gap:.55rem;min-width:max-content;padding:0 1.05rem;line-height:1;display:inline-flex}.segmented-control button svg{flex:none}.segmented-control button[data-active=true],.editor-toolbar button:hover{background:var(--primary);color:var(--primary-foreground)}.admin-search{gap:.5rem;padding:0 .75rem;display:flex}.admin-search input{background:0 0;border:0;padding-inline:0}.editor-preview{border:1px solid var(--glass-border);background:var(--glass-bg);min-height:18rem}@supports (color:color-mix(in lab, red, red)){.editor-preview{background:color-mix(in srgb, var(--glass-bg) 81%, transparent)}}.editor-preview{padding:1rem;line-height:1.7}.editor-preview-compact{min-height:8rem}.editor-preview h2{margin-bottom:.75rem}.editor-preview ul{padding-left:1.25rem}.rich-editor{gap:.75rem;display:grid;position:relative}.rich-editor-topline{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;display:flex}.rich-editor-toolbar{border:1px solid var(--glass-border);background:var(--glass-bg-elevated);align-items:stretch;gap:0;display:flex;overflow-x:auto}@supports (color:color-mix(in lab, red, red)){.rich-editor-toolbar{background:color-mix(in srgb, var(--glass-bg-elevated) 86%, transparent)}}.rich-editor-toolbar{-webkit-backdrop-filter:blur(calc(var(--glass-blur) * 1.25)) saturate(1.3);box-shadow:var(--glass-shadow)}.rich-editor-toolbar button,.rich-editor-select{min-height:2.25rem;color:var(--foreground);white-space:nowrap;background:0 0;border:0;justify-content:center;align-items:center;gap:.35rem;padding:0 .5rem;display:inline-flex}.rich-editor-toolbar svg{width:.9rem;height:.9rem}.rich-editor-toolbar button{cursor:pointer;transition:background .15s,color .15s,transform .15s}.rich-editor-toolbar button:hover,.rich-editor-toolbar button:focus-visible{background:var(--primary);color:var(--primary-foreground)}.rich-editor-toolbar button:active{transform:translateY(1px)}.rich-editor-toolbar button:disabled{cursor:progress;opacity:.55}.rich-editor-select select{min-width:7.25rem;color:inherit;font:inherit;background:0 0;border:0;outline:none;font-size:.88rem;font-weight:700}.rich-editor-divider{background:var(--glass-border);width:1px;min-width:1px;margin:.4rem .25rem}.rich-editor-textarea{min-height:18rem;font-family:var(--font-sans)}.rich-editor-textarea.admin-textarea-compact{min-height:13rem}.rich-editor-dialog-backdrop{z-index:60;background:var(--background);place-items:center;padding:1rem;display:grid;position:fixed;inset:0}@supports (color:color-mix(in lab, red, red)){.rich-editor-dialog-backdrop{background:color-mix(in srgb, var(--background) 30%, #0e1a306b)}}.rich-editor-dialog-backdrop{-webkit-backdrop-filter:blur(18px)saturate(1.25)}.rich-editor-dialog{border:1px solid var(--glass-border);background:var(--glass-bg-elevated);width:min(44rem,100%);max-height:min(42rem,100vh - 2rem);overflow:auto}@supports (color:color-mix(in lab, red, red)){.rich-editor-dialog{background:color-mix(in srgb, var(--glass-bg-elevated) 90%, transparent)}}.rich-editor-dialog{padding:1.25rem;box-shadow:0 24px 80px #10182847}.editor-preview img,.editor-preview iframe{border:1px solid var(--glass-border);background:var(--card);width:100%;max-width:100%;display:block}.editor-preview img{height:auto}.editor-preview iframe{aspect-ratio:16/9}.quick-action,.inline-admin-action,.row-action{border:1px solid var(--glass-border);color:var(--foreground);background:#ffffffa3;justify-content:center;align-items:center;gap:.45rem;font-weight:700;text-decoration:none;transition:transform .16s,background .16s,box-shadow .16s;display:inline-flex}.quick-action{min-height:3.25rem;padding:.7rem .8rem}.inline-admin-action{min-height:2.6rem;padding:0 .9rem}.row-action{width:2.25rem;height:2.25rem;padding:0}.row-action-label{white-space:nowrap;width:auto;min-width:4.25rem;padding:0 .7rem}.quick-action:hover,.inline-admin-action:hover,.row-action:hover{background:var(--primary);color:var(--primary-foreground);box-shadow:var(--glass-shadow);transform:translateY(-2px)}.dark .quick-action,.dark .inline-admin-action,.dark .row-action{color:var(--foreground);background:#ffffff14;border-color:#97a9d357}.dark .quick-action:hover,.dark .inline-admin-action:hover,.dark .row-action:hover{border-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.dark .quick-action:hover,.dark .inline-admin-action:hover,.dark .row-action:hover{border-color:color-mix(in srgb, var(--primary) 58%, transparent)}}.dark .quick-action:hover,.dark .inline-admin-action:hover,.dark .row-action:hover{background:var(--primary)}@supports (color:color-mix(in lab, red, red)){.dark .quick-action:hover,.dark .inline-admin-action:hover,.dark .row-action:hover{background:color-mix(in srgb, var(--primary) 22%, #ffffff14)}}.dark .quick-action:hover,.dark .inline-admin-action:hover,.dark .row-action:hover{color:var(--foreground);box-shadow:0 18px 48px #00000047}.admin-dashboard-panel{min-height:12rem}.admin-guide-overlay{z-index:60;pointer-events:none;-webkit-backdrop-filter:blur(2px);background:#0911251f;position:fixed;inset:0}.dark .admin-guide-overlay{background:#02071461}.admin-guide-highlight{pointer-events:none;border:2px solid var(--palette-teal-base);position:fixed}@supports (color:color-mix(in lab, red, red)){.admin-guide-highlight{border:2px solid color-mix(in srgb, var(--palette-teal-base) 72%, white)}}.admin-guide-highlight{background:var(--palette-teal-light)}@supports (color:color-mix(in lab, red, red)){.admin-guide-highlight{background:color-mix(in srgb, var(--palette-teal-light) 14%, transparent)}}.admin-guide-highlight{box-shadow:0 0 0 9999px #09112538,0 20px 70px #00b7c738,inset 0 0 0 1px #ffffff6b}.dark .admin-guide-highlight{border-color:var(--palette-teal-light)}@supports (color:color-mix(in lab, red, red)){.dark .admin-guide-highlight{border-color:color-mix(in srgb, var(--palette-teal-light) 72%, white)}}.dark .admin-guide-highlight{background:#00b7c71f;box-shadow:0 0 0 9999px #0207147a,0 20px 76px #00b7c747,inset 0 0 0 1px #ffffff29}.admin-guide-popover{border:1px solid var(--glass-border);width:min(23.75rem,100vw - 2rem);color:var(--foreground);pointer-events:auto;-webkit-backdrop-filter:blur(var(--glass-blur));background:linear-gradient(135deg,#ffffffdb,#ffffffad);grid-template-columns:auto minmax(0,1fr);gap:.95rem;padding:1rem;display:grid;position:fixed;box-shadow:0 22px 60px #17223a2e}.dark .admin-guide-popover{color:var(--foreground);background:linear-gradient(135deg,#142344d6,#070f1fb8);border-color:#97a9d33d;box-shadow:0 26px 78px #0006}.admin-guide-progress{border:1px solid var(--glass-border);background:var(--primary);width:3rem;height:3rem;color:var(--primary-foreground);align-content:center;place-items:center;display:grid}.admin-guide-progress span{font-size:1.1rem;font-weight:900;line-height:1}.admin-guide-progress small{opacity:.76;font-size:.7rem;line-height:1}.admin-guide-copy{gap:.35rem;display:grid}.admin-guide-copy h2{margin:0;font-size:1.18rem;line-height:1.25}.admin-guide-copy p{color:var(--muted-foreground);margin:0;line-height:1.65}.admin-guide-controls{grid-column:1/-1;justify-content:flex-end;align-items:center;gap:.5rem;display:flex}.guide-primary-button,.guide-icon-button{border:1px solid var(--glass-border);color:var(--foreground);cursor:pointer;justify-content:center;align-items:center;font-weight:800;display:inline-flex}.guide-primary-button{background:var(--primary);min-height:2.45rem;color:var(--primary-foreground);gap:.35rem;padding:0 .9rem}.guide-icon-button{background:var(--glass-bg-elevated);width:2.45rem;height:2.45rem}@supports (color:color-mix(in lab, red, red)){.guide-icon-button{background:color-mix(in srgb, var(--glass-bg-elevated) 72%, transparent)}}.guide-icon-button:disabled{cursor:not-allowed;opacity:.42}.dark .guide-icon-button{background:#ffffff14;border-color:#97a9d34d}@media (width<=720px){.admin-guide-popover{bottom:1rem;inset-inline:1rem!important;top:auto!important;transform:none!important}}[data-sidebar=group]{padding-block:.9rem}[data-sidebar=group-label]{letter-spacing:0;height:2.2rem;font-size:.92rem}[data-sidebar=menu]{gap:.42rem}[data-sidebar=menu-button]{gap:.75rem;min-height:2.75rem;font-size:1.02rem}[data-sidebar=menu-sub]{gap:.32rem;padding-block:.35rem}[data-sidebar=menu-sub-button]{min-height:2.35rem;font-size:.96rem}.glass-strip{background-color:var(--glass-bg);--tw-backdrop-blur:blur(var(--glass-blur));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.badge-status{border-radius:9999px;align-items:center;padding:.125rem .625rem;font-size:.75rem;font-weight:500;line-height:1rem;display:inline-flex}.label-eyebrow{text-transform:uppercase;letter-spacing:.06em;color:var(--muted-foreground);font-size:.7rem;font-weight:700;line-height:1.45}.card-lift{transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s}.card-lift:hover{box-shadow:var(--glass-shadow-lg);transform:translateY(-2px)}@keyframes fadeSlideIn{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.animate-rise{animation:.5s cubic-bezier(.2,.8,.2,1) backwards fadeSlideIn}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}
|
|
143
143
|
/*$vite$:1*/</style>
|
|
144
144
|
</head>
|