@dimples/apa 0.1.0-dev.12 → 0.1.0-dev.13
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/public/assets/index-BvEvqeRM.css +1 -0
- package/dist/public/assets/{index-D9H6pJ8a.js → index-t_D5osH9.js} +2 -2
- package/dist/public/assets/{project-studio-BT6W-EiS.js → project-studio-Dl7BkPQN.js} +1 -1
- package/dist/public/index.html +2 -2
- package/package.json +1 -1
- package/dist/public/assets/index-BeiqqvLw.css +0 -1
|
@@ -8,7 +8,7 @@ Error generating stack: `+e.message+`
|
|
|
8
8
|
`+e.stack}}var Ne=Object.prototype.hasOwnProperty,Pe=t.unstable_scheduleCallback,Fe=t.unstable_cancelCallback,Ie=t.unstable_shouldYield,Le=t.unstable_requestPaint,Re=t.unstable_now,ze=t.unstable_getCurrentPriorityLevel,Be=t.unstable_ImmediatePriority,Ve=t.unstable_UserBlockingPriority,He=t.unstable_NormalPriority,Ue=t.unstable_LowPriority,We=t.unstable_IdlePriority,Ge=t.log,Ke=t.unstable_setDisableYieldValue,qe=null,Je=null;function Ye(e){if(typeof Ge==`function`&&Ke(e),Je&&typeof Je.setStrictMode==`function`)try{Je.setStrictMode(qe,e)}catch{}}var Xe=Math.clz32?Math.clz32:$e,Ze=Math.log,Qe=Math.LN2;function $e(e){return e>>>=0,e===0?32:31-(Ze(e)/Qe|0)|0}var et=256,tt=262144,nt=4194304;function rt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function it(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=rt(n))):i=rt(o):i=rt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=rt(n))):i=rt(o)):i=rt(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 at(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ot(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Xe(n),i=1<<r;t|=e[r],n&=~i}return t}function st(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 ct(){var e=nt;return nt<<=1,!(nt&62914560)&&(nt=4194304),e}function lt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ut(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dt(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-Xe(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&&ft(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ft(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Xe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function pt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Xe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function mt(e,t){var n=t&-t;return n=n&42?1:ht(n),(n&(e.suspendedLanes|t))===0?n:0}function ht(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 gt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function _t(){var e=z.p;return e===0?(e=window.event,e===void 0?32:Eh(e.type)):e}function vt(e,t){var n=z.p;try{return z.p=e,t()}finally{z.p=n}}var yt=Math.random().toString(36).slice(2),bt=`__reactFiber$`+yt,xt=`__reactProps$`+yt,St=`__reactContainer$`+yt,Ct=`__reactEvents$`+yt,wt=`__reactListeners$`+yt,Tt=`__reactHandles$`+yt,Et=`__reactResources$`+yt,Dt=`__reactMarker$`+yt,Ot=`__reactLoad$`+yt;function kt(e){delete e[bt],delete e[xt],delete e[wt],delete e[Tt]}function At(e){var t;if(t=e[bt])return t;for(var n=e.parentNode;n;){if(t=n[St]||n[bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hm(e);e!==null;){if(n=e[bt])return n;e=hm(e)}return t}e=n,n=e.parentNode}return null}function jt(e){if(e=e[bt]||e[St]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Mt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Nt(e){var t=e[Et];return t||=e[Et]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Pt(e){e[Dt]=!0}function Ft(e){e[Ot]=void 0}var It=new Set,Lt={};function Rt(e,t){zt(e,t),zt(e+`Capture`,t)}function zt(e,t){for(Lt[e]=t,e=0;e<t.length;e++)It.add(t[e])}var Bt=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]*$`),Vt={},Ht={};function Ut(e){return Ne.call(Ht,e)?!0:Ne.call(Vt,e)?!1:Bt.test(e)?Ht[e]=!0:(Vt[e]=!0,!1)}var V=!1;function Wt(){var e=V;return V=!1,e}function Gt(e,t,n){if(Ut(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 Kt(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 qt(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 Jt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Yt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Xt(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 Zt(e){if(!e._valueTracker){var t=Yt(e)?`checked`:`value`;e._valueTracker=Xt(e,t,``+e[t])}}function Qt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Yt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var $t=/[\n"\\]/g;function en(e){return e.replace($t,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function tn(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=``+Jt(t)):e.value!==``+Jt(t)&&(e.value=``+Jt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):rn(e,Jt(n)):o===`number`&&e.value==t?rn(e,Jt(e.value)):rn(e,Jt(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=``+Jt(s):e.removeAttribute(`name`)}function nn(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)){Zt(e);return}n=n==null?``:``+Jt(n),t=t==null?n:``+Jt(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),Zt(e)}function rn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function an(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=``+Jt(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 on(e,t,n){t!=null&&(t=``+Jt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Jt(n)}function sn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(fe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Jt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Zt(e)}function cn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ln=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 un(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||ln.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function dn(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]=``,V=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(un(e,a,r),V=!0)}else for(var o in t)t.hasOwnProperty(o)&&un(e,o,t[o])}function fn(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 pn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),mn=/^[\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 hn(e){return mn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function gn(){}var _n=null;function vn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yn=null,bn=null;function xn(e){var t=jt(e);if(t&&(e=t.stateNode)){var n=e[xt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(tn(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="`+en(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[xt]||null;if(!a)throw Error(i(90));tn(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&&Qt(r)}break a;case`textarea`:on(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&an(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,(yn!==null||bn!==null)&&(Hd(),yn&&(t=yn,e=bn,bn=yn=null,xn(t),e)))for(t=0;t<e.length;t++)xn(e[t])}}function wn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[xt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Tn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,En=!1;if(Tn)try{var Dn={};Object.defineProperty(Dn,"passive",{get:function(){En=!0}}),window.addEventListener(`test`,Dn,Dn),window.removeEventListener(`test`,Dn,Dn)}catch{En=!1}var On=null,kn=null,An=null;function jn(){if(An)return An;var e,t=kn,n=t.length,r,i=`value`in On?On.value:On.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 An=i.slice(e,1<r?1-r:void 0)}function Mn(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 Nn(){return!0}function Pn(){return!1}function Fn(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)?Nn:Pn,this.isPropagationStopped=Pn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Nn)},persist:function(){},isPersistent:Nn}),t}var In={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ln=Fn(In),Rn=D({},In,{view:0,detail:0}),zn=Fn(Rn),Bn,Vn,Hn,Un=D({},Rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:er,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!==Hn&&(Hn&&e.type===`mousemove`?(Bn=e.screenX-Hn.screenX,Vn=e.screenY-Hn.screenY):Vn=Bn=0,Hn=e),Bn)},movementY:function(e){return`movementY`in e?e.movementY:Vn}}),Wn=Fn(Un),Gn=Fn(D({},Un,{dataTransfer:0})),Kn=Fn(D({},Rn,{relatedTarget:0})),qn=Fn(D({},In,{animationName:0,elapsedTime:0,pseudoElement:0})),Jn=Fn(D({},In,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Yn=Fn(D({},In,{data:0})),Xn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Zn={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`},Qn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function $n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qn[e])?!!t[e]:!1}function er(){return $n}var tr=Fn(D({},Rn,{key:function(e){if(e.key){var t=Xn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Mn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Zn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:er,charCode:function(e){return e.type===`keypress`?Mn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Mn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),nr=Fn(D({},Un,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),rr=Fn(D({},In,{submitter:0})),ir=Fn(D({},Rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:er})),ar=Fn(D({},In,{propertyName:0,elapsedTime:0,pseudoElement:0})),or=Fn(D({},Un,{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})),sr=Fn(D({},In,{newState:0,oldState:0,source:0})),cr=[9,13,27,32],lr=Tn&&`CompositionEvent`in window,ur=null;Tn&&`documentMode`in document&&(ur=document.documentMode);var dr=Tn&&`TextEvent`in window&&!ur,fr=Tn&&(!lr||ur&&8<ur&&11>=ur),pr=` `,mr=!1;function hr(e,t){switch(e){case`keyup`:return cr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function gr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var _r=!1;function vr(e,t){switch(e){case`compositionend`:return gr(t);case`keypress`:return t.which===32?(mr=!0,pr):null;case`textInput`:return e=t.data,e===pr&&mr?null:e;default:return null}}function yr(e,t){if(_r)return e===`compositionend`||!lr&&hr(e,t)?(e=jn(),An=kn=On=null,_r=!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 fr&&t.locale!==`ko`?null:t.data;default:return null}}var br={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 xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!br[e.type]:t===`textarea`}function Sr(e,t,n,r){yn?bn?bn.push(r):bn=[r]:yn=r,t=Zf(t,`onChange`),0<t.length&&(n=new Ln(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Cr=null,wr=null;function Tr(e){Gf(e,0)}function Er(e){if(Qt(Mt(e)))return e}function Dr(e,t){if(e===`change`)return t}var Or=!1;if(Tn){var kr;if(Tn){var Ar=`oninput`in document;if(!Ar){var jr=document.createElement(`div`);jr.setAttribute(`oninput`,`return;`),Ar=typeof jr.oninput==`function`}kr=Ar}else kr=!1;Or=kr&&(!document.documentMode||9<document.documentMode)}function Mr(){Cr&&(Cr.detachEvent(`onpropertychange`,Nr),wr=Cr=null)}function Nr(e){if(e.propertyName===`value`&&Er(wr)){var t=[];Sr(t,wr,e,vn(e)),Cn(Tr,t)}}function Pr(e,t,n){e===`focusin`?(Mr(),Cr=t,wr=n,Cr.attachEvent(`onpropertychange`,Nr)):e===`focusout`&&Mr()}function Fr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Er(wr)}function Ir(e,t){if(e===`click`)return Er(t)}function Lr(e,t){if(e===`input`||e===`change`)return Er(t)}function Rr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var zr=typeof Object.is==`function`?Object.is:Rr;function Br(e,t){if(zr(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(!Ne.call(t,i)||!zr(e[i],t[i]))return!1}return!0}function Vr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ur(e,t){var n=Hr(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=Hr(n)}}function Wr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vr(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=Vr(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 qr=Tn&&`documentMode`in document&&11>=document.documentMode,Jr=null,Yr=null,Xr=null,Zr=!1;function Qr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zr||Jr==null||Jr!==Vr(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}),Xr&&Br(Xr,r)||(Xr=r,r=Zf(Yr,`onSelect`),0<r.length&&(t=new Ln(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Jr)))}function $r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ei={animationend:$r(`Animation`,`AnimationEnd`),animationiteration:$r(`Animation`,`AnimationIteration`),animationstart:$r(`Animation`,`AnimationStart`),transitionrun:$r(`Transition`,`TransitionRun`),transitionstart:$r(`Transition`,`TransitionStart`),transitioncancel:$r(`Transition`,`TransitionCancel`),transitionend:$r(`Transition`,`TransitionEnd`)},ti={},ni={};Tn&&(ni=document.createElement(`div`).style,`AnimationEvent`in window||(delete ei.animationend.animation,delete ei.animationiteration.animation,delete ei.animationstart.animation),`TransitionEvent`in window||delete ei.transitionend.transition);function ri(e){if(ti[e])return ti[e];if(!ei[e])return e;var t=ei[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ni)return ti[e]=t[n];return e}var ii=ri(`animationend`),ai=ri(`animationiteration`),oi=ri(`animationstart`),si=ri(`transitionrun`),ci=ri(`transitionstart`),li=ri(`transitioncancel`),ui=ri(`transitionend`),di=new Map,fi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);fi.push(`scrollEnd`);function pi(e,t){di.set(e,t),Rt(t,[e])}var mi=0;function hi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Cd.identifierPrefix;var n=mi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function gi(e){if(e==null||typeof e==`string`)return e;var t=null,n=jd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function _i(e,t){return e=gi(e),t=gi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var vi=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)},yi=[],bi=0,xi=0;function Si(){for(var e=bi,t=xi=bi=0;t<e;){var n=yi[t];yi[t++]=null;var r=yi[t];yi[t++]=null;var i=yi[t];yi[t++]=null;var a=yi[t];if(yi[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&&Ei(n,i,a)}}function Ci(e,t,n,r){yi[bi++]=e,yi[bi++]=t,yi[bi++]=n,yi[bi++]=r,xi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function wi(e,t,n,r){return Ci(e,t,n,r),Di(e)}function Ti(e,t){return Ci(e,null,null,t),Di(e)}function Ei(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-Xe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Di(e){if(50<Md)throw Md=0,Nd=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 ki(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 Ai(e,t,n,r){return new ki(e,t,n,r)}function ji(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mi(e,t){var n=e.alternate;return n===null?(n=Ai(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ni(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Pi(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)ji(r)&&(s=1);else if(typeof r==`string`)s=Xm(e,n,ve.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ie:return e=Ai(31,n,t,a),e.elementType=ie,e.lanes=o,e;case j:return Fi(n.children,a,o,t);case M:s=8,a|=24;break;case ee:return e=Ai(12,n,t,a|2),e.elementType=ee,e.lanes=o,e;case te:return e=Ai(13,n,t,a),e.elementType=te,e.lanes=o,e;case I:return e=Ai(19,n,t,a),e.elementType=I,e.lanes=o,e;case ae:case se:return e=a|32,e=Ai(30,n,t,e),e.elementType=se,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case P:s=10;break a;case N:s=9;break a;case F:s=11;break a;case ne:s=14;break a;case re:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ai(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Fi(e,t,n,r){return e=Ai(7,e,r,t),e.lanes=n,e}function Ii(e,t,n){return e=Ai(6,e,null,t),e.lanes=n,e}function Li(e){var t=Ai(18,null,null,0);return t.stateNode=e,t}function Ri(e,t,n){return t=Ai(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zi=new WeakMap;function Bi(e,t){if(typeof e==`object`&&e){var n=zi.get(e);return n===void 0?(t={value:e,source:t,stack:Me(t)},zi.set(e,t),t):n}return{value:e,source:t,stack:Me(t)}}var Vi=[],Hi=0,Ui=null,Wi=0,Gi=[],Ki=0,qi=null,Ji=1,Yi=``;function Xi(e,t){Vi[Hi++]=Wi,Vi[Hi++]=Ui,Ui=e,Wi=t}function Zi(e,t,n){Gi[Ki++]=Ji,Gi[Ki++]=Yi,Gi[Ki++]=qi,qi=e;var r=Ji;e=Yi;var i=32-Xe(r)-1;r&=~(1<<i),n+=1;var a=32-Xe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ji=1<<32-Xe(t)+i|n<<i|r,Yi=a+e}else Ji=1<<a|n<<i|r,Yi=e}function Qi(e){e.return!==null&&(Xi(e,1),Zi(e,1,0))}function $i(e){for(;e===Ui;)Ui=Vi[--Hi],Vi[Hi]=null,Wi=Vi[--Hi],Vi[Hi]=null;for(;e===qi;)qi=Gi[--Ki],Gi[Ki]=null,Yi=Gi[--Ki],Gi[Ki]=null,Ji=Gi[--Ki],Gi[Ki]=null}function ea(e,t){Gi[Ki++]=Ji,Gi[Ki++]=Yi,Gi[Ki++]=qi,Ji=t.id,Yi=t.overflow,qi=e}var ta=null,na=null,H=!1,ra=null,ia=!1,aa=Error(i(519));function oa(e){throw fa(Bi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),aa}function sa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[bt]=e,t[xt]=r,n){case`dialog`:J(`cancel`,t),J(`close`,t);break;case`iframe`:case`object`:case`embed`:J(`load`,t);break;case`video`:case`audio`:for(n=0;n<Uf.length;n++)J(Uf[n],t);break;case`source`:J(`error`,t);break;case`img`:case`image`:case`link`:J(`error`,t),J(`load`,t);break;case`details`:J(`toggle`,t);break;case`input`:J(`invalid`,t),nn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:J(`invalid`,t);break;case`textarea`:J(`invalid`,t),sn(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||rp(t.textContent,n)?(r.popover!=null&&(J(`beforetoggle`,t),J(`toggle`,t)),r.onScroll!=null&&J(`scroll`,t),r.onScrollEnd!=null&&J(`scrollend`,t),r.onClick!=null&&(t.onclick=gn),t=!0):t=!1,t||oa(e,!0)}function ca(e){for(ta=e.return;ta;)switch(ta.tag){case 5:case 31:case 13:ia=!1;return;case 27:case 3:ia=!0;return;default:ta=ta.return}}function la(e){if(e!==ta)return!1;if(!H)return ca(e),H=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||gp(e.type,e.memoizedProps)),n=!n),n&&na&&oa(e),ca(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));na=mm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));na=mm(e)}else t===27?(t=na,Tp(e.type)?(e=pm,pm=null,na=e):na=t):na=ta?fm(e.stateNode.nextSibling):null;return!0}function ua(){na=ta=null,H=!1}function da(){var e=ra;return e!==null&&(hd===null?hd=e:hd.push.apply(hd,e),ra=null),e}function fa(e){ra===null?ra=[e]:ra.push(e)}var pa=ge(null),ma=null,ha=null;function ga(e,t,n){B(pa,t._currentValue),t._currentValue=n}function _a(e){e._currentValue=pa.current,_e(pa)}function va(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 ya(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),va(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),va(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),va(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function U(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;zr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===xe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[uh]:e.push(uh))}a=a.return}return e!==null&&ya(t,e,n,r),t.flags|=262144,e!==null}function ba(e){for(e=e.firstContext;e!==null;){if(!zr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function xa(e){ma=e,ha=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Sa(e){return wa(ma,e)}function Ca(e,t){return ma===null&&xa(e),wa(e,t)}function wa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ha===null){if(e===null)throw Error(i(308));ha=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ha=ha.next=t;return n}var Ta=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ea=t.unstable_scheduleCallback,Da=t.unstable_NormalPriority,Oa={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ka(){return{controller:new Ta,data:new Map,refCount:0}}function Aa(e){e.refCount--,e.refCount===0&&Ea(Da,function(){e.controller.abort()})}function ja(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Ma=null;function Na(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Pa=null,Fa=0,Ia=0,La=null;function Ra(e,t){if(Pa===null){var n=Pa=[];Fa=0,Ia=Rf(),La={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Fa++,t.then(za,za),t}function za(){if(--Fa===0&&(Ma=null,Pa!==null)){La!==null&&(La.status=`fulfilled`);var e=Pa;Pa=null,Ia=0,La=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ba(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 Va=R.S;R.S=function(e,t){if(vd=Re(),typeof t==`object`&&t&&typeof t.then==`function`&&Ra(e,t),Ma!==null)for(var n=wf;n!==null;)ja(n,Ma),n=n.next;if(n=e.types,n!==null){for(var r=wf;r!==null;)ja(r,n),r=r.next;if(Ia!==0){r=Ma,r===null&&(r=Ma=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Va!==null&&Va(e,t)};var Ha=ge(null);function Ua(){var e=Ha.current;return e===null?td.pooledCache:e}function Wa(e,t){t===null?B(Ha,Ha.current):B(Ha,t.pool)}function Ga(){var e=Ua();return e===null?null:{parent:Oa._currentValue,pool:e}}var Ka=Error(i(460)),qa=Error(i(474)),Ja=Error(i(542)),Ya={then:function(){}};function Xa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Za(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(gn,gn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,to(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(gn,gn);else{if(e=td,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,to(e),e}throw $a=t,Ka}}function Qa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?($a=e,Ka):e}}var $a=null;function eo(){if($a===null)throw Error(i(459));var e=$a;return $a=null,e}function to(e){if(e===Ka||e===Ja)throw Error(i(483))}var no=null,ro=0;function io(e){var t=ro;return ro+=1,no===null&&(no=[]),Za(no,e,t)}function ao(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function oo(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function so(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=Mi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Ii(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===j?(e=d(e,t,n.props.children,r,n.key),ao(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===re&&Qa(i)===t.type)?(t=a(t,n.props),ao(t,n),t.return=e,t):(t=Pi(n.type,n.key,n.props,null,e.mode,r),ao(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=Ri(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=Fi(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=Ii(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Pi(t.type,t.key,t.props,null,e.mode,n),ao(n,t),n.return=e,n;case A:return t=Ri(t,e.mode,n),t.return=e,t;case re:return t=Qa(t),f(e,t,n)}if(fe(t)||le(t))return t=Fi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,io(t),n);if(t.$$typeof===P)return f(e,Ca(e,t),n);oo(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case k:return n.key===i?l(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case re:return n=Qa(n),p(e,t,n,r)}if(fe(n)||le(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,io(n),r);if(n.$$typeof===P)return p(e,t,Ca(e,n),r);oo(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case A:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case re:return r=Qa(r),m(e,t,n,r,i)}if(fe(r)||le(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,io(r),i);if(r.$$typeof===P)return m(e,t,n,Ca(t,r),i);oo(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),H&&Xi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return H&&Xi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),H&&Xi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),H&&Xi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return H&&Xi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),H&&Xi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===j&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===j){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),ao(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===re&&Qa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ao(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===j?(c=Fi(o.props.children,e.mode,c,o.key),ao(c,o),c.return=e,e=c):(c=Pi(o.type,o.key,o.props,null,e.mode,c),ao(c,o),c.return=e,e=c)}return s(e);case A:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Ri(o,e.mode,c),c.return=e,e=c}return s(e);case re:return o=Qa(o),_(e,r,o,c)}if(fe(o))return h(e,r,o,c);if(le(o)){if(l=le(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,io(o),c);if(o.$$typeof===P)return _(e,r,Ca(e,o),c);oo(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=Ii(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ro=0;var i=_(e,t,n,r);return no=null,i}catch(t){if(t===Ka||t===Ja)throw t;var a=Ai(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var co=so(!0),lo=so(!1),uo=!1;function fo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function po(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 mo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ho(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ed&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Di(e),Ei(e,null,n),t}return Ci(e,r,t,n),Di(e)}function go(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,pt(e,n)}}function _o(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}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var vo=!1;function yo(){if(vo){var e=La;if(e!==null)throw e}}function bo(e,t,n,r){vo=!1;var i=e.updateQueue;uo=!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===Ia&&(vo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:uo=!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),ld|=o,e.lanes=o,e.memoizedState=d}}function W(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function xo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)W(n[e],t)}var So=ge(null),Co=ge(0);function wo(e,t){e=sd,B(Co,e),B(So,t),sd=e|t.baseLanes}function To(){B(Co,sd),B(So,So.current)}function Eo(){sd=Co.current,_e(So),_e(Co)}var Do=ge(null),Oo=null;function ko(e){var t=e.alternate;B(Po,Po.current&1),B(Do,e),Oo===null&&(t===null||So.current!==null||t.memoizedState!==null)&&(Oo=e)}function Ao(e){B(Po,Po.current),B(Do,e),Oo===null&&(Oo=e)}function jo(e){e.tag===22?(B(Po,Po.current),B(Do,e),Oo===null&&(Oo=e)):Mo()}function Mo(){B(Po,Po.current),B(Do,Do.current)}function No(e){_e(Do),Oo===e&&(Oo=null),_e(Po)}var Po=ge(0);function Fo(e,t){B(Do,Do.current),B(Po,t)}function Io(e){_e(Po),_e(Do),Oo===e&&(Oo=null)}function Lo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||lm(n)||um(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ro=0,G=null,zo=null,Bo=null,Vo=!1,Ho=!1,Uo=!1,Wo=0,Go=0,Ko=null,qo=0;function Jo(){throw Error(i(321))}function Yo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zr(e[n],t[n]))return!1;return!0}function Xo(e,t,n,r,i,a){return Ro=a,G=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?pc:mc,Uo=!1,a=n(r,i),Uo=!1,Ho&&(a=Qo(t,n,r,i)),Zo(e),a}function Zo(e){R.H=fc;var t=zo!==null&&zo.next!==null;if(Ro=0,Bo=zo=G=null,Vo=!1,Go=0,Ko=null,t)throw Error(i(300));e===null||jc||(e=e.dependencies,e!==null&&ba(e)&&(jc=!0))}function Qo(e,t,n,r){G=e;var a=0;do{if(Ho&&(Ko=null),Go=0,Ho=!1,25<=a)throw Error(i(301));if(a+=1,Bo=zo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}R.H=hc,o=t(n,r)}while(Ho);return o}function $o(){var e=R.H,t=e.useState()[0];return t=typeof t.then==`function`?os(t):t,e=e.useState()[0],(zo===null?null:zo.memoizedState)!==e&&(G.flags|=1024),t}function es(){var e=Wo!==0;return Wo=0,e}function ts(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ns(e){if(Vo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vo=!1}Ro=0,Bo=zo=G=null,Ho=!1,Go=Wo=0,Ko=null}function rs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bo===null?G.memoizedState=Bo=e:Bo=Bo.next=e,Bo}function is(){if(zo===null){var e=G.alternate;e=e===null?null:e.memoizedState}else e=zo.next;var t=Bo===null?G.memoizedState:Bo.next;if(t!==null)Bo=t,zo=e;else{if(e===null)throw G.alternate===null?Error(i(467)):Error(i(310));zo=e,e={memoizedState:zo.memoizedState,baseState:zo.baseState,baseQueue:zo.baseQueue,queue:zo.queue,next:null},Bo===null?G.memoizedState=Bo=e:Bo=Bo.next=e}return Bo}function as(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=Go;return Go+=1,Ko===null&&(Ko=[]),e=Za(Ko,e,t),t=G,(Bo===null?t.memoizedState:Bo.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?pc:mc),e}function ss(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return os(e);if(e.$$typeof===L)return;if(e.$$typeof===P)return Sa(e)}throw Error(i(438,String(e)))}function cs(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=as(),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]=oe;return t.index++,n}function ls(e,t){return typeof t==`function`?t(e):t}function us(e){return ds(is(),zo,e)}function ds(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Ro&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===Ia&&(d=!0);else if((Ro&p)===p){u=u.next,p===Ia&&(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,ld|=p;f=u.action,Uo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,G.lanes|=f,ld|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!zr(o,e.memoizedState)&&(jc=!0,d&&(n=La,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function fs(e){var t=is(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);zr(o,t.memoizedState)||(jc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ps(e,t,n){var r=G,a=is(),o=H;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!zr((zo||a).memoizedState,n);if(s&&(a.memoizedState=n,jc=!0),a=a.queue,Rs(gs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Bo!==null&&!!(Bo.memoizedState.tag&1),Ns(e?9:8,{destroy:void 0},hs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,td===null)throw Error(i(349));o||Ro&127||ms(r,t,n)}return n}function ms(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=G.updateQueue,t===null?(t=as(),G.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hs(e,t,n,r){t.value=n,t.getSnapshot=r,_s(t)&&vs(e)}function gs(e,t,n){return n(function(){_s(t)&&vs(e)})}function _s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zr(e,n)}catch{return!0}}function vs(e){var t=Ti(e,2);t!==null&&Ld(t,e,2)}function ys(e){var t=rs();if(typeof e==`function`){var n=e;if(e=n(),Uo){Ye(!0);try{n()}finally{Ye(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:e},t}function bs(e,t,n,r){return e.baseState=n,ds(e,zo,typeof r==`function`?r:ls)}function xs(e,t,n,r,a){if(lc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};R.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ss(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ss(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=R.T,o={};o.types=a===null?null:a.types,R.T=o;try{var s=n(i,r),c=R.S;c!==null&&c(o,s),Cs(e,t,s)}catch(n){Ts(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),R.T=a}}else try{a=n(i,r),Cs(e,t,a)}catch(n){Ts(e,t,n)}}function Cs(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ws(e,t,n)},function(n){return Ts(e,t,n)}):ws(e,t,n)}function ws(e,t,n){t.status=`fulfilled`,t.value=n,Es(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ss(e,n)))}function Ts(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Es(t),t=t.next;while(t!==r)}e.action=null}function Es(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ds(e,t){return t}function Os(e,t){if(H){var n=td.formState;if(n!==null){a:{var r=G;if(H){if(na){b:{for(var i=na,a=ia;i.nodeType!==8;)if(!a||(i=fm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){na=fm(i.nextSibling),r=i.data===`F!`;break a}}oa(r)}r=!1}r&&(t=n[0])}}return n=rs(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ds,lastRenderedState:t},n.queue=r,n=oc.bind(null,G,r),r.dispatch=n,r=ys(!1),a=cc.bind(null,G,!1,r.queue),r=rs(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=xs.bind(null,G,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ks(e){return As(is(),zo,e)}function As(e,t,n){if(t=ds(e,t,Ds)[0],e=us(ls)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=os(t)}catch(e){throw e===Ka?Ja:e}else r=t;t=is();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(G.flags|=2048,Ns(9,{destroy:void 0},js.bind(null,i,n),null)),[r,a,e]}function js(e,t){e.action=t}function Ms(e){var t=is(),n=zo;if(n!==null)return As(t,n,e);is(),t=t.memoizedState,n=is();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ns(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=G.updateQueue,t===null&&(t=as(),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 Ps(){return is().memoizedState}function Fs(e,t,n,r){var i=rs();G.flags|=e,i.memoizedState=Ns(1|t,{destroy:void 0},n,r===void 0?null:r)}function Is(e,t,n,r){var i=is();r=r===void 0?null:r;var a=i.memoizedState.inst;zo!==null&&r!==null&&Yo(r,zo.memoizedState.deps)?i.memoizedState=Ns(t,a,n,r):(G.flags|=e,i.memoizedState=Ns(1|t,a,n,r))}function Ls(e,t){Fs(8390656,8,e,t)}function Rs(e,t){Is(2048,8,e,t)}function zs(e){G.flags|=4;var t=G.updateQueue;if(t===null)t=as(),G.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Bs(e){var t=is().memoizedState;return zs({ref:t,nextImpl:e}),function(){if(ed&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Vs(e,t){return Is(4,2,e,t)}function Hs(e,t){return Is(4,4,e,t)}function Us(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ws(e,t,n){n=n==null?null:n.concat([e]),Is(4,4,Us.bind(null,t,e),n)}function Gs(){}function Ks(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Yo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qs(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Yo(t,r[1]))return r[0];if(r=e(),Uo){Ye(!0);try{e()}finally{Ye(!1)}}return n.memoizedState=[r,t],r}function Js(e,t,n){return n===void 0||Ro&1073741824&&!(q&261930)?e.memoizedState=t:(e.memoizedState=n,e=Fd(),G.lanes|=e,ld|=e,n)}function Ys(e,t,n,r){return zr(n,t)?n:So.current===null?!(Ro&106)||Ro&1073741824&&!(q&261930)?(jc=!0,e.memoizedState=n):(e=Fd(),G.lanes|=e,ld|=e,t):(e=Js(e,n,r),zr(e,t)||(jc=!0),e)}function Xs(e,t,n,r,i){var a=z.p;z.p=a!==0&&8>a?a:8;var o=R.T,s={};s.types=o===null?null:o.types,R.T=s,cc(e,!1,t,n);try{var c=i(),l=R.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?sc(e,t,Ba(c,r),Pd(e)):sc(e,t,r,Pd(e))}catch(n){sc(e,t,{then:function(){},status:`rejected`,reason:n},Pd())}finally{z.p=a,o!==null&&s.types!==null&&(o.types=s.types),R.T=o}}function Zs(){}function Qs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=$s(e).queue;Xs(e,a,t,pe,n===null?Zs:function(){return ec(e),n(r)})}function $s(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:pe,baseState:pe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:pe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ec(e){var t=$s(e);t.next===null&&(t=e.alternate.memoizedState),sc(e,t.next.queue,{},Pd())}function tc(){return Sa(uh)}function nc(){return is().memoizedState}function rc(){return is().memoizedState}function ic(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Pd();e=mo(n);var r=ho(t,e,n);r!==null&&(Ld(r,t,n),go(r,t,n)),t={cache:ka()},e.payload=t;return}t=t.return}}function ac(e,t,n){var r=Pd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},lc(e)?uc(t,n):(n=wi(e,t,n,r),n!==null&&(Ld(n,e,r),dc(n,t,r)))}function oc(e,t,n){sc(e,t,n,Pd())}function sc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(lc(e))uc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,zr(s,o))return Ci(e,t,i,0),td===null&&Si(),!1}catch{}if(n=wi(e,t,i,r),n!==null)return Ld(n,e,r),dc(n,t,r),!0}return!1}function cc(e,t,n,r){if(r={lane:2,revertLane:Rf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},lc(e)){if(t)throw Error(i(479))}else t=wi(e,n,r,2),t!==null&&Ld(t,e,2)}function lc(e){var t=e.alternate;return e===G||t!==null&&t===G}function uc(e,t){Ho=Vo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pt(e,n)}}var fc={readContext:Sa,use:ss,useCallback:Jo,useContext:Jo,useEffect:Jo,useImperativeHandle:Jo,useLayoutEffect:Jo,useInsertionEffect:Jo,useMemo:Jo,useReducer:Jo,useRef:Jo,useState:Jo,useDebugValue:Jo,useDeferredValue:Jo,useTransition:Jo,useSyncExternalStore:Jo,useId:Jo,useHostTransitionStatus:Jo,useFormState:Jo,useActionState:Jo,useOptimistic:Jo,useMemoCache:Jo,useCacheRefresh:Jo,useEffectEvent:Jo},pc={readContext:Sa,use:ss,useCallback:function(e,t){return rs().memoizedState=[e,t===void 0?null:t],e},useContext:Sa,useEffect:Ls,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Fs(4194308,4,Us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fs(4194308,4,e,t)},useInsertionEffect:function(e,t){Fs(4,2,e,t)},useMemo:function(e,t){var n=rs();t=t===void 0?null:t;var r=e();if(Uo){Ye(!0);try{e()}finally{Ye(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=rs();if(n!==void 0){var i=n(t);if(Uo){Ye(!0);try{n(t)}finally{Ye(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ac.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=rs();return e={current:e},t.memoizedState=e},useState:function(e){e=ys(e);var t=e.queue,n=oc.bind(null,G,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gs,useDeferredValue:function(e,t){return Js(rs(),e,t)},useTransition:function(){var e=ys(!1);return e=Xs.bind(null,G,e.queue,!0,!1),rs().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=G,a=rs();if(H){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),td===null)throw Error(i(349));q&127||ms(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ls(gs.bind(null,r,o,e),[e]),r.flags|=2048,Ns(9,{destroy:void 0},hs.bind(null,r,o,n,t),null),n},useId:function(){var e=rs(),t=td.identifierPrefix;if(H){var n=Yi,r=Ji;n=(r&~(1<<32-Xe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Wo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=qo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:tc,useFormState:Os,useActionState:Os,useOptimistic:function(e){var t=rs();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=cc.bind(null,G,!0,n),n.dispatch=t,[e,t]},useMemoCache:cs,useCacheRefresh:function(){return rs().memoizedState=ic.bind(null,G)},useEffectEvent:function(e){var t=rs(),n={impl:e};return t.memoizedState=n,function(){if(ed&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},mc={readContext:Sa,use:ss,useCallback:Ks,useContext:Sa,useEffect:Rs,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:us,useRef:Ps,useState:function(){return us(ls)},useDebugValue:Gs,useDeferredValue:function(e,t){return Ys(is(),zo.memoizedState,e,t)},useTransition:function(){var e=us(ls)[0],t=is().memoizedState;return[typeof e==`boolean`?e:os(e),t]},useSyncExternalStore:ps,useId:nc,useHostTransitionStatus:tc,useFormState:ks,useActionState:ks,useOptimistic:function(e,t){return bs(is(),zo,e,t)},useMemoCache:cs,useCacheRefresh:rc,useEffectEvent:Bs},hc={readContext:Sa,use:ss,useCallback:Ks,useContext:Sa,useEffect:Rs,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:fs,useRef:Ps,useState:function(){return fs(ls)},useDebugValue:Gs,useDeferredValue:function(e,t){var n=is();return zo===null?Js(n,e,t):Ys(n,zo.memoizedState,e,t)},useTransition:function(){var e=fs(ls)[0],t=is().memoizedState;return[typeof e==`boolean`?e:os(e),t]},useSyncExternalStore:ps,useId:nc,useHostTransitionStatus:tc,useFormState:Ms,useActionState:Ms,useOptimistic:function(e,t){var n=is();return zo===null?(n.baseState=e,[e,n.queue.dispatch]):bs(n,zo,e,t)},useMemoCache:cs,useCacheRefresh:rc,useEffectEvent:Bs};function gc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _c={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pd(),i=mo(r);i.payload=t,n!=null&&(i.callback=n),t=ho(e,i,r),t!==null&&(Ld(t,e,r),go(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pd(),i=mo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ho(e,i,r),t!==null&&(Ld(t,e,r),go(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pd(),r=mo(n);r.tag=2,t!=null&&(r.callback=t),t=ho(e,r,n),t!==null&&(Ld(t,e,n),go(t,e,n))}};function vc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Br(n,r)||!Br(i,a):!0}function yc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&_c.enqueueReplaceState(t,t.state,null)}function bc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function xc(e){vi(e)}function Sc(e){console.error(e)}function Cc(e){vi(e)}function wc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Tc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ec(e,t,n){return n=mo(n),n.tag=3,n.payload={element:null},n.callback=function(){wc(e,t)},n}function Dc(e){return e=mo(e),e.tag=3,e}function Oc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Tc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Tc(t,n,r),typeof i!=`function`&&(xd===null?xd=new Set([this]):xd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function kc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&U(t,n,a,!0),n=Do.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Oo===null?Yd():n.alternate===null&&cd===0&&(cd=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ya?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),vf(e,r,a)),!1;case 22:return n.flags|=65536,r===Ya?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),vf(e,r,a)),!1}throw Error(i(435,n.tag))}return vf(e,r,a),Yd(),!1}if(H)return t=Do.current,t===null?(r!==aa&&(t=Error(i(423),{cause:r}),fa(Bi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Bi(r,n),a=Ec(e.stateNode,r,a),_o(e,a),cd!==4&&(cd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==aa&&(e=Error(i(422),{cause:r}),fa(Bi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Bi(o,n),md===null?md=[o]:md.push(o),cd!==4&&(cd=2),t===null)return!0;r=Bi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ec(n.stateNode,r,e),_o(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`&&(xd===null||!xd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Dc(a),Oc(a,e,n,r),_o(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Ac=Error(i(461)),jc=!1;function Mc(e,t,n,r){t.child=e===null?lo(t,null,n,r):co(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 xa(t),r=Xo(e,t,n,o,a,i),s=es(),e!==null&&!jc?(ts(e,t,i),sl(e,t,i)):(H&&s&&Qi(t),t.flags|=1,Mc(e,t,r,i),t.child)}function Pc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ji(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Fc(e,t,a,r,i)):(e=Pi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!cl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Br:n,n(o,r)&&e.ref===t.ref)return sl(e,t,i)}return t.flags|=1,e=Mi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Fc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Br(a,r)&&e.ref===t.ref){if(jc=!1,t.pendingProps=r=a,cl(e,i))e.flags&131072&&(jc=!0);else return t.lanes=e.lanes,sl(e,t,i)}}return Uc(e,t,n,r,i)}function Ic(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Rc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Wa(t,a===null?null:a.cachePool),a===null?To():wo(t,a),jo(t);else return r=t.lanes=536870912,Rc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Wa(t,null),To(),Mo()):(Wa(t,a.cachePool),wo(t,a),Mo(),t.memoizedState=null);return Mc(e,t,i,n),t.child}function Lc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Rc(e,t,n,r,i){var a=Ua();return a=a===null?null:{parent:Oa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Wa(t,null),To(),jo(t),e!==null&&U(e,t,r,!0),t.childLanes=i,null}function zc(e,t){return t=Qc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bc(e,t,n){return co(t,e.child,null,n),e=zc(t,t.pendingProps),e.flags|=2,No(t),t.memoizedState=null,e}function Vc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(H){if(r.mode===`hidden`)return e=zc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Lc(null,e);if(Ao(t),(e=na)?(e=cm(e,ia),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:qi===null?null:{id:Ji,overflow:Yi},retryLane:536870912,hydrationErrors:null},n=Li(e),n.return=t,t.child=n,ta=t,na=null)):e=null,e===null)throw oa(t);return t.lanes=536870912,null}return zc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Ao(t),a){if(t.flags&256)t.flags&=-257,t=Bc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(jc||U(e,t,n,!1),a=(n&e.childLanes)!==0,jc||a){if(So.current===null){if(r=td,r!==null&&(s=mt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Ti(e,s),Ld(r,e,s),Ac;Yd()}t=Bc(e,t,n)}else e=o.treeContext,na=fm(s.nextSibling),ta=t,H=!0,ra=null,ia=!1,e!==null&&ea(t,e),t=zc(t,r),t.flags|=134221824;return t}return e=Mi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Hc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Uc(e,t,n,r,i){return xa(t),n=Xo(e,t,n,r,void 0,i),r=es(),e!==null&&!jc?(ts(e,t,i),sl(e,t,i)):(H&&r&&Qi(t),t.flags|=1,Mc(e,t,n,i),t.child)}function Wc(e,t,n,r,i,a){return xa(t),t.updateQueue=null,n=Qo(t,r,n,i),Zo(e),r=es(),e!==null&&!jc?(ts(e,t,a),sl(e,t,a)):(H&&r&&Qi(t),t.flags|=1,Mc(e,t,n,a),t.child)}function Gc(e,t,n,r,i){if(xa(t),t.stateNode===null){var a=Oi,o=n.contextType;typeof o==`object`&&o&&(a=Sa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=_c,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},fo(t),o=n.contextType,a.context=typeof o==`object`&&o?Sa(o):Oi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(gc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&_c.enqueueReplaceState(a,a.state,null),bo(t,r,a,i),yo(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=bc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Oi,typeof u==`object`&&u&&(o=Sa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&yc(t,a,r,o),uo=!1;var f=t.memoizedState;a.state=f,bo(t,r,a,i),yo(),l=t.memoizedState,s||f!==l||uo?(typeof d==`function`&&(gc(t,n,d,r),l=t.memoizedState),(c=uo||vc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,po(e,t),o=t.memoizedProps,u=bc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Oi,typeof l==`object`&&l&&(c=Sa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&yc(t,a,r,c),uo=!1,f=t.memoizedState,a.state=f,bo(t,r,a,i),yo();var p=t.memoizedState;o!==d||f!==p||uo||e!==null&&e.dependencies!==null&&ba(e.dependencies)?(typeof s==`function`&&(gc(t,n,s,r),p=t.memoizedState),(u=uo||vc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ba(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Hc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=co(t,e.child,null,i),t.child=co(t,null,n,i)):Mc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=sl(e,t,i),e}function Kc(e,t,n,r){return ua(),t.flags|=256,Mc(e,t,n,r),t.child}var qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jc(e){return{baseLanes:e,cachePool:Ga()}}function Yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=fd),e}function Xc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Po.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(H){if(i?ko(t):Mo(),(e=na)?(e=cm(e,ia),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:qi===null?null:{id:Ji,overflow:Yi},retryLane:536870912,hydrationErrors:null},n=Li(e),n.return=t,t.child=n,ta=t,na=null)):e=null,e===null)throw oa(t);return t.lanes=um(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Mo(),i=t.mode,a=Qc({mode:`hidden`,children:a},i),r=Fi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Jc(n),r.childLanes=Yc(e,o,n),t.memoizedState=qc,Lc(null,r)):(ko(t),Zc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return el(e,t,a,o,r,c,s,n)}return i?(Mo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Mi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Fi(i,a,n,null),i.flags|=2):i=Mi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Lc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Jc(n):(a=i.cachePool,a===null?a=Ga():(s=Oa._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Yc(e,o,n),t.memoizedState=qc,Lc(e.child,r)):(ko(t),n=e.child,e=n.sibling,n=Mi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Zc(e,t){return t=Qc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Qc(e,t){return e=Ai(22,e,null,t),e.lanes=0,e}function $c(e,t,n){return co(t,e.child,null,n),e=Zc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function el(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(ko(t),t.flags&=-257,$c(e,t,c)):t.memoizedState===null?(Mo(),o=a.fallback,s=t.mode,a=Qc({mode:`visible`,children:a.children},s),o=Fi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,co(t,e.child,null,c),a=t.child,a.memoizedState=Jc(c),a.childLanes=Yc(e,r,c),t.memoizedState=qc,Lc(null,a)):(Mo(),t.child=e.child,t.flags|=128,null);if(ko(t),um(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,fa({value:a,source:null,stack:null})),$c(e,t,c)}if(jc||U(e,t,c,!1),r=(c&e.childLanes)!==0,jc||r){if(So.current!==null)return $c(e,t,c);if(r=td,r!==null&&(a=mt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ti(e,a),Ld(r,e,a),Ac;return lm(o)||Yd(),$c(e,t,c)}return lm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,na=fm(o.nextSibling),ta=t,H=!0,ra=null,ia=!1,e!==null&&ea(t,e),t=Zc(t,a.children),t.flags|=134221824,t)}function tl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),va(e.return,t,n)}function nl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Lo(n)===null&&(t=e),e=e.sibling}return t}function rl(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function il(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function al(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Po.current;if(t.flags&128)return Fo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Fo(t,o),i===`backwards`&&e!==null?(il(e),Mc(e,t,r,n),il(e)):Mc(e,t,r,n),r=H?Wi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tl(e,n,t);else if(e.tag===19)tl(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=nl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,il(t)),rl(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Lo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}rl(t,!0,n,null,a,r);break;case`together`:rl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=nl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),rl(t,!1,i,n,a,r)}return t.child}function ol(e,t,n){var r=t.pendingProps;return ga(t,t.type,r.value),Mc(e,t,r.children,n),t.child}function sl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ld|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(U(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=Mi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ba(e)))}function ll(e,t,n){switch(t.tag){case 3:Se(t,t.stateNode.containerInfo),ga(t,Oa,e.memoizedState.cache),ua();break;case 27:case 5:we(t);break;case 4:Se(t,t.stateNode.containerInfo);break;case 10:ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ao(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return ko(t),t.flags|=128,null;r=U(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Xc(e,t,n):(ko(t),e=sl(e,t,n),e===null?null:e.sibling)}ko(t);break;case 19:if(t.flags&128)return al(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(U(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return al(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Fo(t,Po.current),r)break;return null;case 22:return t.lanes=0,Ic(e,t,n,t.pendingProps);case 24:ga(t,Oa,e.memoizedState.cache)}return sl(e,t,n)}function ul(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)jc=!0;else{if(!cl(e,n)&&!(t.flags&128))return jc=!1,ll(e,t,n);jc=!!(e.flags&131072)}}else jc=!1,H&&t.flags&1048576&&Zi(t,Wi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Qa(t.elementType),t.type=e,typeof e==`function`)ji(e)?(r=bc(e,r),t.tag=1,t=Gc(null,t,e,r,n)):(t.tag=0,t=Uc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===F){t.tag=11,t=Nc(null,t,e,r,n);break a}if(a===ne){t.tag=14,t=Pc(null,t,e,r,n);break a}if(a===P){t.tag=10,t.type=e,t=ol(null,t,n);break a}}throw t=de(e)||e,Error(i(306,t,``))}}return t;case 0:return Uc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=bc(r,t.pendingProps),Gc(e,t,r,a,n);case 3:a:{if(Se(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,po(e,t),bo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ga(t,Oa,r),r!==o.cache&&ya(t,[Oa],n,!0),yo(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Kc(e,t,r,n);break a}if(r!==a){a=Bi(Error(i(424)),t),fa(a),t=Kc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(na=fm(e.firstChild),ta=t,H=!0,ra=null,ia=!0,n=lo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ua(),r===a){t=sl(e,t,n);break a}Mc(e,t,r,n)}t=t.child}return t;case 26:return Hc(e,t),e===null?(n=Im(t.type,null,t.pendingProps,null))?t.memoizedState=n:H||(t.stateNode=hp(t.type,t.pendingProps,be.current,t)):t.memoizedState=Im(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return we(t),e===null&&H&&(r=t.stateNode=vm(t.type,t.pendingProps,be.current),ta=t,ia=!0,a=na,Tp(t.type)?(pm=a,na=fm(r.firstChild)):na=a),Mc(e,t,t.pendingProps.children,n),Hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&H&&((a=r=na)&&(r=om(r,t.type,t.pendingProps,ia),r===null?a=!1:(t.stateNode=r,ta=t,na=fm(r.firstChild),ia=!1,a=!0)),a||oa(t)),we(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,gp(a,o)?r=null:s!==null&&gp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Xo(e,t,$o,null,null,n),uh._currentValue=a),Hc(e,t),Mc(e,t,r,n),t.child;case 6:return e===null&&H&&((e=n=na)&&(n=sm(n,t.pendingProps,ia),n===null?e=!1:(t.stateNode=n,ta=t,na=null,e=!0)),e||oa(t)),null;case 13:return Xc(e,t,n);case 4:return Se(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=co(t,null,r,n):Mc(e,t,r,n),t.child;case 11:return Nc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Hc(e,t),Mc(e,t,r,n),t.child;case 8:return Mc(e,t,t.pendingProps.children,n),t.child;case 12:return Mc(e,t,t.pendingProps.children,n),t.child;case 10:return ol(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,xa(t),a=Sa(a),r=r(a),t.flags|=1,Mc(e,t,r,n),t.child;case 14:return Pc(e,t,t.type,t.pendingProps,n);case 15:return Fc(e,t,t.type,t.pendingProps,n);case 19:return al(e,t,n);case 31:return Vc(e,t,n);case 22:return Ic(e,t,n,t.pendingProps);case 24:return xa(t),r=Sa(Oa),e===null?(a=Ua(),a===null&&(a=td,o=ka(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},fo(t),ga(t,Oa,a)):((e.lanes&n)!==0&&(po(e,t),bo(t,null,null,n),yo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ga(t,Oa,r),r!==a.cache&&ya(t,[Oa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ga(t,Oa,r))),Mc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:H&&Qi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Hc(e,t),Mc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function dl(e){e.flags|=4}function fl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Zm(t,r):Zm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Kd())e.flags|=8192;else throw $a=Ya,qa}}else e.flags&=-16777217}function pl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Qm(t)){if(Kd())e.flags|=8192;else throw $a=Ya,qa}}function ml(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:ct(),e.lanes|=t,pd|=t)}function hl(e,t){if(!H)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function gl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _l(e,t,n){var r=t.pendingProps;switch($i(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gl(t),null;case 1:return gl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_a(Oa),Ce(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(la(t)?dl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,da())),gl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(dl(t),o===null?(gl(t),fl(t,a,null,r,n)):(gl(t),pl(t,o))):o?o===e.memoizedState?(gl(t),t.flags&=-16777217):(dl(t),gl(t),pl(t,o)):(e=e.memoizedProps,e!==r&&dl(t),gl(t),fl(t,a,e,r,n)),null;case 27:if(Te(t),n=be.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return gl(t),t.subtreeFlags&=-33554433,null}e=ve.current,la(t)?sa(t,e):(e=vm(a,r,n),t.stateNode=e,dl(t))}return gl(t),t.subtreeFlags&=-33554433,null;case 5:if(Te(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return gl(t),t.subtreeFlags&=-33554433,null}if(o=ve.current,la(t))sa(t,o);else{var s=fp(be.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[bt]=t,o[xt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(ap(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&dl(t)}}return gl(t),t.subtreeFlags&=-33554433,fl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=be.current,la(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ta,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[bt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||rp(e.nodeValue,n)),e||oa(t,!0)}else e=fp(e).createTextNode(r),e[bt]=t,t.stateNode=e}return gl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=la(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[bt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gl(t),e=!1}else n=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(No(t),t):(No(t),null);if(t.flags&128)throw Error(i(558))}return gl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=la(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[bt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gl(t),a=!1}else a=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(No(t),t):(No(t),null)}return No(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ml(t,t.updateQueue),gl(t),null);case 4:return Ce(),e===null&&qf(t.stateNode.containerInfo),t.flags|=67108864,gl(t),null;case 10:return _a(t.type),gl(t),null;case 19:if(Io(t),r=t.memoizedState,r===null)return gl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)hl(r,!1);else{if(cd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Lo(e),o!==null){for(t.flags|=128,hl(r,!1),e=o.updateQueue,t.updateQueue=e,ml(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ni(n,e),n=n.sibling;return Fo(t,Po.current&1|2),H&&Xi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Re()>yd&&(t.flags|=128,a=!0,hl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Lo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ml(t,e),hl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!H)return gl(t),null}else 2*Re()-r.renderingStartTime>yd&&n!==536870912&&(t.flags|=128,a=!0,hl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Re(),e.sibling=null,o=Po.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||H?Fo(t,o):(n=o,B(Do,t),B(Po,n),Oo===null&&(Oo=t)),H&&Xi(t,r.treeForkCount),e}return gl(t),null;case 22:case 23:return No(t),Eo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(gl(t),t.subtreeFlags&6&&(t.flags|=8192)):gl(t),n=t.updateQueue,n!==null&&ml(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&_e(Ha),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_a(Oa),gl(t),null;case 25:return null;case 30:return t.flags|=33554432,gl(t),null}throw Error(i(156,t.tag))}function vl(e,t){switch($i(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _a(Oa),Ce(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Te(t),null;case 31:if(t.memoizedState!==null){if(No(t),t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(No(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Io(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Ce(),null;case 10:return _a(t.type),null;case 22:case 23:return No(t),Eo(),e!==null&&_e(Ha),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _a(Oa),null;case 25:return null;default:return null}}function yl(e,t){switch($i(t),t.tag){case 3:_a(Oa),Ce();break;case 26:case 27:case 5:Te(t);break;case 4:Ce();break;case 31:t.memoizedState!==null&&No(t);break;case 13:No(t);break;case 19:Io(t);break;case 10:_a(t.type);break;case 22:case 23:No(t),Eo(),e!==null&&_e(Ha);break;case 24:_a(Oa)}}function bl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){_f(t,t.return,e)}}function xl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){_f(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){_f(t,t.return,e)}}function Sl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{xo(t,n)}catch(t){_f(e,e.return,t)}}}function Cl(e,t,n){n.props=bc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){_f(e,t,n)}}function wl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=hi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Lp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Rp(e);f(e.child,!1,tm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){_f(e,t,n)}}function Tl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){_f(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){_f(e,t,n)}else n.current=null}}function El(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)rm(e.stateNode,t[n])}function Dl(e){for(var t=e.return;t!==null&&(Al(t)&&rm(e.stateNode,t.stateNode),!kl(t));)t=t.return}function Ol(e){for(var t=e.return;t!==null&&(Al(t)&&im(e.stateNode,t.stateNode),!kl(t));)t=t.return}function kl(e){return e.tag===5||e.tag===3||e.tag===27}function Al(e){return e&&e.tag===7&&e.stateNode!==null}function jl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){_f(e,e.return,t)}}function Ml(e,t,n){try{var r=e.stateNode;sp(r,e.type,n,t),r[xt]=t}catch(t){_f(e,e.return,t)}}function Nl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tp(e.type)||e.tag===4}function Pl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Nl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Tp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gn)),El(e,r),V=!0;else if(i!==4&&(i===27&&(El(e,r),r=null,Tp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Fl(e,t,n,r),e=e.sibling;e!==null;)Fl(e,t,n,r),e=e.sibling}function Il(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),El(e,r),V=!0;else if(i!==4&&(i===27&&(El(e,r),r=null,Tp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Il(e,t,n,r),e=e.sibling;e!==null;)Il(e,t,n,r),e=e.sibling}function Ll(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ap(t,r,n),t[bt]=e,t[xt]=n}catch(t){_f(e,e.return,t)}}var Rl=!1,zl=null;function Bl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Rl=!0)}var Vl=null;function Hl(){var e=Vl;return Vl=null,e}var Ul=0;function Wl(e,t,n,r,i){return Ul=0,Gl(e.child,t,n,r,i)}function Gl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=jp(o);r.push(s),s.view&&(a=!0)}else a||jp(o).view&&(a=!0);Rl=!0,Op(o,Ul===0?t:t+`_`+Ul,n),Ul++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Gl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Kl(e,t){for(;e!==null;)e.tag===5?kp(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Kl(e.child,t)),e=e.sibling}function ql(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(ql(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=_i(t.default,t.share),t!==`none`&&(Wl(e,n,t,null,!1)||Kl(e.child,!1))}e=e.sibling}}function Jl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=hi(r,n),a=_i(r.default,n.paired?r.share:r.enter);a===`none`?ql(e):Wl(e,i,a,null,!1)?(ql(e),n.paired||t||Id(e,r.onEnter)):Kl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Jl(e,t),e=e.sibling;else ql(e)}function Yl(e){if(zl!==null&&zl.size!==0){var t=zl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=_i(n.default,n.share);if(a!==`none`&&(Wl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Id(e,n.onShare)):Kl(e.child,!1)),t.delete(r),t.size===0)break}}}Yl(e)}e=e.sibling}}}function Xl(e){if(e.tag===30){var t=e.memoizedProps,n=hi(t,e.stateNode),r=zl===null?void 0:zl.get(n),i=_i(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Wl(e,n,i,null,!1)?r===void 0?Id(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,zl.delete(n),Id(e,t.onShare)):Kl(e.child,!1)),zl!==null&&Yl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e),e=e.sibling;else zl!==null&&Yl(e)}function Zl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=hi(t,e.stateNode);t=_i(t.default,t.update),e.flags&=-5,t!==`none`&&Wl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Zl(e);e=e.sibling}}function Ql(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Kl(e.child,!1))}Ql(e)}e=e.sibling}}function $l(e){if(e.tag===30)e.stateNode.paired=null,Kl(e.child,!1),Ql(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)$l(e),e=e.sibling;else Ql(e)}function eu(e){for(e=e.child;e!==null;)e.tag===30?Kl(e.child,!1):e.subtreeFlags&33554432&&eu(e),e=e.sibling}function tu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Ul<a.length){var l=a[Ul],u=jp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Op(c,Ul===0?n:n+`_`+Ul,i),s&&e.flags&4||(Vl===null&&(Vl=[]),Vl.push(c,Ul===0?r:r+`_`+Ul,t.memoizedProps)),Ul++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:tu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function nu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=hi(n,r),a=_i(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Mp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Ul=0,i=tu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Id(e,n.onUpdate))}else e.subtreeFlags&33554432&&nu(e,t);e=e.sibling}}var ru=!1,iu=!1,au=!1,ou=!1,su=typeof WeakSet==`function`?WeakSet:Set,cu=null,lu=!1,uu=!1,du=!1,fu=!1;function pu(e,t,n){if(e=e.containerInfo,up=yh,e=Gr(e),Kr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(dp={focusedElem:e,selectionRange:r},yh=!1,n=(n&335544064)===n,cu=t,t=n?9270:1024;cu!==null;){if(e=cu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Xl(r[a]);if(e.alternate===null&&e.flags&2)n&&Bl(e),mu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Xl(r),mu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Bl(e),mu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,cu=r):(n&&Zl(e),mu(n))}}zl=null}function mu(e){for(;cu!==null;){var t=cu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=bc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){_f(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)am(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:am(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=hi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=_i(a.default,a.update),a!==`none`&&Wl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,cu=r;break}cu=t.return}}function hu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Fu(e,n),r&4&&bl(5,n);break;case 1:if(Fu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){_f(n,n.return,e)}else{var i=bc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){_f(n,n.return,e)}}}r&64&&Sl(n),r&512&&wl(n,n.return);break;case 3:if(Fu(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{xo(e,t)}catch(e){_f(n,n.return,e)}}break;case 27:t===null&&r&4&&Ll(n);case 26:case 5:Fu(e,n),t===null&&r&4&&jl(n),r&512&&wl(n,n.return);break;case 12:Fu(e,n);break;case 31:Fu(e,n),r&4&&wu(e,n);break;case 13:Fu(e,n),r&4&&Tu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=xf.bind(null,n),dm(e,n))));break;case 22:if(r=n.memoizedState!==null||ru,!r){var a=t!==null&&t.memoizedState!==null||iu;t=ru,i=iu,ru=r,(iu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Lu(e,n,r)):Fu(e,n),ru=t,iu=i}break;case 30:Fu(e,n),r&512&&wl(n,n.return);break;case 7:r&512&&wl(n,n.return);default:Fu(e,n)}}function gu(e,t){for(e=e.child;e!==null;)_u(e,t),e=e.sibling}function _u(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){_f(e,e.return,t)}vu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,V=!0}catch(t){_f(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Dp(s,!0):Dp(e.stateNode,!1)}catch(t){_f(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&gu(e,t);break;default:gu(e,t)}}function vu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:_u(n,r);break a;case 22:n.memoizedState===null&&vu(n,r);break a;default:vu(n,r)}}e=e.sibling}}function yu(e){var t=e.alternate;t!==null&&(e.alternate=null,yu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&kt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var bu=null,xu=!1;function Su(e,t,n){for(n=n.child;n!==null;)Cu(e,t,n),n=n.sibling}function Cu(e,t,n){if(Je&&typeof Je.onCommitFiberUnmount==`function`)try{Je.onCommitFiberUnmount(qe,n)}catch{}switch(n.tag){case 26:iu||Tl(n,t),Su(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!iu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:iu||Tl(n,t),Ol(n);var r=bu,i=xu;Tp(n.type)&&(bu=n.stateNode,xu=!1),Su(e,t,n),ym(n.stateNode,n.type,n.memoizedProps),bu=r,xu=i;break;case 5:iu||Tl(n,t),Ol(n);case 6:if(n.tag===6&&Ol(n),r=bu,i=xu,bu=null,Su(e,t,n),bu=r,xu=i,bu!==null){if(xu)try{(bu.nodeType===9?bu.body:bu.nodeName===`HTML`?bu.ownerDocument.body:bu).removeChild(n.stateNode),V=!0}catch(e){_f(n,t,e)}else try{bu.removeChild(n.stateNode),V=!0}catch(e){_f(n,t,e)}}break;case 18:bu!==null&&(xu?(e=bu,Ep(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Gh(e)):Ep(bu,n.stateNode));break;case 4:r=bu,i=xu,bu=n.stateNode.containerInfo,xu=!0,Su(e,t,n),bu=r,xu=i;break;case 0:case 11:case 14:case 15:xl(2,n,t),iu||xl(4,n,t),Su(e,t,n);break;case 1:iu||(Tl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Cl(n,t,r)),Su(e,t,n);break;case 21:Su(e,t,n);break;case 22:iu=(r=iu)||n.memoizedState!==null,Su(e,t,n),iu=r;break;case 30:Tl(n,t),Su(e,t,n);break;case 7:iu||Tl(n,t),Su(e,t,n);break;default:Su(e,t,n)}}function wu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Gh(e)}catch(e){_f(t,t.return,e)}}}function Tu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gh(e)}catch(e){_f(t,t.return,e)}}function Eu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new su),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new su),t;default:throw Error(i(435,e.tag))}}function Du(e,t){var n=Eu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Sf.bind(null,e,t);t.then(r,r)}})}function Ou(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Tp(l.type)){bu=l.stateNode,xu=!1;break a}break;case 5:bu=l.stateNode,xu=!1;break a;case 3:case 4:bu=l.stateNode.containerInfo,xu=!0;break a}l=l.return}if(bu===null)throw Error(i(160));Cu(s,c,o),bu=null,xu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Au(t,e,n),t=t.sibling}var ku=null;function Au(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Ou(t,e,n),ju(e),a&4&&(xl(3,e,e.return),bl(3,e),xl(5,e,e.return));break;case 1:Ou(t,e,n),ju(e),a&512&&(iu||r===null||Tl(r,r.return)),a&64&&ru&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=ku,Ou(t,e,n),ju(e),a&512&&(iu||r===null||Tl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(ru)e.stateNode=hp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Dt]||r[bt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),ap(r,t,n),r[bt]=e,Pt(r),t=r;break a;case`link`:if(o=Jm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),ap(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Jm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),ap(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[bt]=e,Pt(r),t=r}e.stateNode=t}}else ru||Ym(o,e.type,e.stateNode)}else e.stateNode=Um(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Ml(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||iu||t.parentNode.removeChild(t)):a.count--,n===null?ru||Ym(o,e.type,e.stateNode):Um(o,n,e.memoizedProps))}break;case 27:Ou(t,e,n),ju(e),a&512&&(iu||r===null||Tl(r,r.return)),r!==null&&a&4&&Ml(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=au,au=!1,Ou(t,e,n),au=o,ju(e),a&512&&(iu||r===null||Tl(r,r.return)),e.flags&32){t=e.stateNode;try{cn(t,``),V=!0}catch(t){_f(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Ml(e,t,r===null?t:r.memoizedProps)),a&1024&&(ou=!0);break;case 6:if(Ou(t,e,n),ju(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,V=!0}catch(t){_f(e,e.return,t)}}break;case 3:if(V=!1,qm=null,o=ku,ku=Cm(t.containerInfo),Ou(t,e,n),ku=o,ju(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Gh(t.containerInfo)}catch(t){_f(e,e.return,t)}ou&&(ou=!1,Mu(e)),V=!1;break;case 4:a=au,au=ru,r=Wt(),o=ku,ku=Cm(e.stateNode.containerInfo),Ou(t,e,n),ju(e),ku=o,V&&uu&&(du=!0),V=r,au=a;break;case 12:Ou(t,e,n),ju(e);break;case 31:Ou(t,e,n),ju(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Du(e,t)));break;case 13:Ou(t,e,n),ju(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(_d=Re()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Du(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=ru,l=iu,u=au;ru=c||o,au=u||o,iu=l||s,Ou(t,e,n),iu=l,au=u,ru=c,ju(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||ru||iu||(t=s||iu,n=ru,r=iu,ru=o||ru,iu=t,Iu(e,2),ru=n,iu=r),!o&&au||gu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Du(e,n))));break;case 19:Ou(t,e,n),ju(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Du(e,t)));break;case 30:a&512&&(iu||r===null||Tl(r,r.return)),a=Wt(),o=uu,s=(n&335544064)===n,c=e.memoizedProps,uu=s&&_i(c.default,c.update)!==`none`,Ou(t,e,n),ju(e),s&&r!==null&&V&&(e.flags|=4),uu=o,V=a;break;case 21:break;case 7:a&512&&(iu||r===null||Tl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Ou(t,e,n),ju(e)}}function ju(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Nl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Al(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(kl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Il(e,Pl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(cn(l,``),n.flags&=-33),Il(e,Pl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Fl(e,Pl(e),u,s);break;default:throw Error(i(161))}}catch(t){_f(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Mu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Mu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,yh=!0,t.reset(),yh=!1),e=e.sibling}}function Nu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Pu(t,e),t=t.sibling;else nu(t,!1)}function Pu(e,t){var n=e.alternate;if(n===null)Jl(e,!1);else switch(e.tag){case 3:if(fu=lu=!1,Hl(),Nu(t,e),!lu&&!du){if(e=Vl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];kp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),fu=!0}Vl=null;break;case 5:Nu(t,e);break;case 4:r=lu,lu=!1,Nu(t,e),lu&&(du=!0),lu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Nu(t,e):Jl(e,!1));break;case 30:r=lu,i=Hl(),lu=!1,Nu(t,e),lu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=hi(a,o),o=hi(n.memoizedProps,o);var s=_i(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Ul=0,t=tu(e,n,t,o,s,a,!0),Ul!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Id(e,e.memoizedProps.onUpdate),Vl=i):i!==null&&(i.push.apply(i,Vl),Vl=i),lu=e.flags&32?!0:r;break;default:Nu(t,e)}}function Fu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hu(e,t.alternate,t),t=t.sibling}function Iu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:xl(4,n,n.return),Iu(n,r);break;case 1:Tl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Cl(n,n.return,i),Iu(n,r);break;case 27:r&2&&ym(n.stateNode,n.type,n.memoizedProps);case 5:Tl(n,n.return),n.tag!==5&&n.tag!==27||Ol(n),Iu(n,r);break;case 6:Ol(n);break;case 26:Tl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||iu||i.parentNode.removeChild(i),Iu(n,r);break;case 22:n.memoizedState===null&&Iu(n,r);break;case 30:Tl(n,n.return),Iu(n,r);break;case 7:Tl(n,n.return);default:Iu(n,r)}e=e.sibling}}function Lu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Lu(i,a,n),bl(4,a);break;case 1:if(Lu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){_f(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)W(l[i],c)}catch(e){_f(r,r.return,e)}}s&&o&64&&Sl(a),wl(a,a.return);break;case 27:n&2&&Ll(a);case 5:a.tag!==5&&a.tag!==27||Dl(a),Lu(i,a,n),s&&r===null&&o&4&&jl(a),wl(a,a.return);break;case 6:Dl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||ru||Ym(Cm(c.ownerDocument),a.type,c),Lu(i,a,n),s&&r===null&&o&4&&jl(a),wl(a,a.return);break;case 12:Lu(i,a,n);break;case 31:Lu(i,a,n),s&&o&4&&wu(i,a);break;case 13:Lu(i,a,n),s&&o&4&&Tu(i,a);break;case 22:a.memoizedState===null&&Lu(i,a,n),wl(a,a.return);break;case 30:Lu(i,a,n),wl(a,a.return);break;case 7:wl(a,a.return);default:Lu(i,a,n)}t=t.sibling}}function Ru(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&&Aa(n))}function zu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Aa(e))}function Bu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Vu(e,t,n,r),t=t.sibling;else i&&eu(t)}function Vu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&$l(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Bu(e,t,n,r),a&2048&&bl(9,t);break;case 1:Bu(e,t,n,r);break;case 3:Bu(e,t,n,r),i&&fu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Aa(a)));break;case 12:if(a&2048){Bu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){_f(t,t.return,e)}}else Bu(e,t,n,r);break;case 31:Bu(e,t,n,r);break;case 13:Bu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&$l(t),o._visibility&2?Bu(e,t,n,r):(o._visibility|=2,Hu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&$l(s),o._visibility&2?Bu(e,t,n,r):Uu(e,t)),a&2048&&Ru(s,t);break;case 24:Bu(e,t,n,r),a&2048&&zu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Kl(a.child,!0),Kl(t.child,!0))),Bu(e,t,n,r);break;default:Bu(e,t,n,r)}}function Hu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Hu(a,o,s,c,i),bl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Hu(a,o,s,c,i)):u._visibility&2?Hu(a,o,s,c,i):Uu(a,o),i&&l&2048&&Ru(o.alternate,o);break;case 24:Hu(a,o,s,c,i),i&&l&2048&&zu(o.alternate,o);break;default:Hu(a,o,s,c,i)}t=t.sibling}}function Uu(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:Uu(n,r),i&2048&&Ru(r.alternate,r);break;case 24:Uu(n,r),i&2048&&zu(r.alternate,r);break;default:Uu(n,r)}t=t.sibling}}var Wu=8192;function Gu(e,t,n){if(e.subtreeFlags&Wu)for(e=e.child;e!==null;)Ku(e,t,n),e=e.sibling}function Ku(e,t,n){switch(e.tag){case 26:Gu(e,t,n),e.flags&Wu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&eh(n,e)):th(n,ku,e.memoizedState,e.memoizedProps));break;case 5:Gu(e,t,n),e.flags&Wu&&(e=e.stateNode,(t&335544128)===t&&eh(n,e));break;case 3:case 4:var r=ku;ku=Cm(e.stateNode.containerInfo),Gu(e,t,n),ku=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Wu,Wu=16777216,Gu(e,t,n),Wu=r):Gu(e,t,n));break;case 30:if((e.flags&Wu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,zl===null&&(zl=new Map),zl.set(r,i)}Gu(e,t,n);break;default:Gu(e,t,n)}}function qu(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 Ju(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];cu=r,Zu(r,e)}qu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yu(e),e=e.sibling}function Yu(e){switch(e.tag){case 0:case 11:case 15:Ju(e),e.flags&2048&&xl(9,e,e.return);break;case 3:Ju(e);break;case 12:Ju(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xu(e)):Ju(e);break;default:Ju(e)}}function Xu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];cu=r,Zu(r,e)}qu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xl(8,t,t.return),Xu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Xu(t));break;default:Xu(t)}e=e.sibling}}function Zu(e,t){for(;cu!==null;){var n=cu;switch(n.tag){case 0:case 11:case 15:xl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Aa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,cu=r;else a:for(n=e;cu!==null;){r=cu;var i=r.sibling,a=r.return;if(yu(r),r===n){cu=null;break a}if(i!==null){i.return=a,cu=i;break a}cu=a}}}var Qu={getCacheForType:function(e){var t=Sa(Oa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Sa(Oa).controller.signal}},$u=typeof WeakMap==`function`?WeakMap:Map,ed=0,td=null,K=null,q=0,nd=0,rd=null,id=!1,ad=!1,od=!1,sd=0,cd=0,ld=0,ud=0,dd=0,fd=0,pd=0,md=null,hd=null,gd=!1,_d=0,vd=0,yd=1/0,bd=null,xd=null,Sd=0,Cd=null,wd=null,Td=0,Ed=0,Dd=null,Od=null,kd=null,Ad=null,jd=null,Md=0,Nd=null;function Pd(){return ed&2&&q!==0?q&-q:R.T===null?_t():Rf()}function Fd(){if(fd===0){if(!(q&536870912)||H){var e=tt;tt<<=1,!(tt&3932160)&&(tt=262144),fd=e}else fd=536870912}return e=Do.current,e!==null&&(e.flags|=32),fd}function Id(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Lp(hi(e.memoizedProps,n))),Ad===null&&(Ad=[]),Ad.push(t.bind(null,r))}}function Ld(e,t,n){(e===td&&(nd===2||nd===9)||e.cancelPendingCommit!==null)&&(Wd(e,0),Vd(e,q,fd,!1)),ut(e,n),(!(ed&2)||e!==td)&&(e===td&&(!(ed&2)&&(ud|=n),cd===4&&Vd(e,q,fd,!1)),Af(e))}function Rd(e,t,n){if(ed&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||at(e,t),a=r?Qd(e,t):Xd(e,t,!0),o=r;do{if(a===0){ad&&!r&&Vd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Bd(n))a=Xd(e,t,!1),o=!1;else{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=md;var l=c.current.memoizedState.isDehydrated;if(l&&(Wd(c,s).flags|=256),s=Xd(c,s,!1),s!==2&&s!==6){if(od&&!l){c.errorRecoveryDisabledLanes|=o,ud|=o,a=4;break a}o=hd,hd=a,o!==null&&(hd===null?hd=o:hd.push.apply(hd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Wd(e,0),Vd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Vd(r,t,fd,!id);break a;case 2:hd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=_d+300-Re(),10<a)){if(Vd(r,t,fd,!id),it(r,0,!0)!==0)break a;Td=t,r.timeoutHandle=yp(zd.bind(null,r,n,hd,bd,gd,t,fd,ud,pd,id,o,`Throttled`,-0,0),a);break a}zd(r,n,hd,bd,gd,t,fd,ud,pd,id,o,null,-0,0)}break}}while(1);Af(e)}function zd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:gn},zl=null,Ku(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=ah.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?_d-Re():(a&4194048)===a?vd-Re():0,m=rh(d,m),m!==null)?(Td=a,e.cancelPendingCommit=m(of.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Vd(e,a,o,!l)):of(e,t,a,n,r,i,o,s,c,l,u,d)}function Bd(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(!zr(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 Vd(e,t,n,r){t=ot(e,t),t&=~dd,t&=~ud,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Xe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ft(e,n,t)}function Hd(){return ed&6?!0:(jf(0,!1),!1)}function Ud(){if(K!==null){if(nd===0)var e=K.return;else e=K,ha=ma=null,ns(e),no=null,ro=0,e=K;for(;e!==null;)yl(e.alternate,e),e=e.return;K=null}}function Wd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,bp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Td=0,Ud(),td=e,K=n=Mi(e.current,null),q=t,nd=0,rd=null,id=!1,ad=at(e,t),od=!1,pd=fd=dd=ud=ld=cd=0,hd=md=null,gd=!1,sd=ot(e,t),Si(),n}function Gd(e,t){G=null,R.H=fc,t===Ka||t===Ja?(t=eo(),nd=3):t===qa?(t=eo(),nd=4):nd=t===Ac?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,rd=t,K===null&&(cd=1,wc(e,Bi(t,e.current)))}function Kd(){var e=Do.current;return e===null?!0:(q&4194048)===q?Oo===null:(q&62914560)===q||q&536870912?e===Oo:!1}function qd(){var e=R.H;return R.H=fc,e===null?fc:e}function Jd(){var e=R.A;return R.A=Qu,e}function Yd(){cd=4,id||(q&4194048)!==q&&Do.current!==null||(ad=!0),!(ld&134217727)&&!(ud&134217727)||td===null||Vd(td,q,fd,!1)}function Xd(e,t,n){var r=ed;ed|=2;var i=qd(),a=Jd();(td!==e||q!==t)&&(bd=null,Wd(e,t)),t=!1;var o=cd;a:do try{if(nd!==0&&K!==null){var s=K,c=rd;switch(nd){case 8:Ud(),o=6;break a;case 3:case 2:case 9:case 6:Do.current===null&&(t=!0);var l=nd;if(nd=0,rd=null,nf(e,s,c,l),n&&ad){o=0;break a}break;default:l=nd,nd=0,rd=null,nf(e,s,c,l)}}Zd(),o=cd;break}catch(t){Gd(e,t)}while(1);return t&&e.shellSuspendCounter++,ha=ma=null,ed=r,R.H=i,R.A=a,K===null&&(td=null,q=0,Si()),o}function Zd(){for(;K!==null;)ef(K)}function Qd(e,t){var n=ed;ed|=2;var r=qd(),a=Jd();td!==e||q!==t?(bd=null,yd=Re()+500,Wd(e,t)):ad=at(e,t);a:do try{if(nd!==0&&K!==null){t=K;var o=rd;b:switch(nd){case 1:nd=0,rd=null,nf(e,t,o,1);break;case 2:case 9:if(Xa(o)){nd=0,rd=null,tf(t);break}t=function(){nd!==2&&nd!==9||td!==e||(nd=7),Af(e)},o.then(t,t);break a;case 3:nd=7;break a;case 4:nd=5;break a;case 7:Xa(o)?(nd=0,rd=null,tf(t)):(nd=0,rd=null,nf(e,t,o,7));break;case 5:var s=null;switch(K.tag){case 26:s=K.memoizedState;case 5:case 27:var c=K;if(s?Qm(s):c.stateNode.complete){nd=0,rd=null;var l=c.sibling;if(l!==null)K=l;else{var u=c.return;u===null?K=null:(K=u,rf(u))}break b}}nd=0,rd=null,nf(e,t,o,5);break;case 6:nd=0,rd=null,nf(e,t,o,6);break;case 8:Ud(),cd=6;break a;default:throw Error(i(462))}}$d();break}catch(t){Gd(e,t)}while(1);return ha=ma=null,R.H=r,R.A=a,ed=n,K===null?(td=null,q=0,Si(),cd):0}function $d(){for(;K!==null&&!Ie();)ef(K)}function ef(e){var t=ul(e.alternate,e,sd);e.memoizedProps=e.pendingProps,t===null?rf(e):K=t}function tf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Wc(n,t,t.pendingProps,t.type,void 0,q);break;case 11:t=Wc(n,t,t.pendingProps,t.type.render,t.ref,q);break;case 5:ns(t);var r=t;r===ta&&(H?(ca(r),r.tag===5&&r.stateNode!=null&&(na=r.stateNode)):(ca(r),H=!0));default:yl(n,t),t=K=Ni(t,sd),t=ul(n,t,sd)}e.memoizedProps=e.pendingProps,t===null?rf(e):K=t}function nf(e,t,n,r){ha=ma=null,ns(t),no=null,ro=0;var i=t.return;try{if(kc(e,i,t,n,q)){cd=1,wc(e,Bi(n,e.current)),K=null;return}}catch(t){if(i!==null)throw K=i,t;cd=1,wc(e,Bi(n,e.current)),K=null;return}t.flags&32768?(H||r===1?e=!0:ad||q&536870912?e=!1:(id=e=!0,(r===2||r===9||r===3||r===6)&&(r=Do.current,r!==null&&r.tag===13&&(r.flags|=16384))),af(t,e)):rf(t)}function rf(e){var t=e;do{if(t.flags&32768){af(t,id);return}e=t.return;var n=_l(t.alternate,t,sd);if(n!==null){K=n;return}if(t=t.sibling,t!==null){K=t;return}K=t=e}while(t!==null);cd===0&&(cd=5)}function af(e,t){do{var n=vl(e.alternate,e);if(n!==null){n.flags&=32767,K=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){K=e;return}K=e=n}while(e!==null);cd=6,K=null}function of(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do mf();while(Sd!==0);if(ed&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===td&&(K=td=null,q=0),wd=t,Cd=e,Td=n,Dd=a,Od=r,sf(e,t,n,s,c,l,f)}}function sf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Ed=s,s|=xi,dt(e,n,s,r,i,a),Ad=null,(n&335544064)===n?(jd=Na(e),r=10262):(jd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Cf(He,function(){return hf(),null})):(e.callbackNode=null,e.callbackPriority=0),Rl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=R.T,R.T=null,i=z.p,z.p=2,a=ed,ed|=4;try{pu(e,t,n)}finally{ed=a,z.p=i,R.T=r}}Sd=1,Rl?kd=Fp(o,e.containerInfo,jd,uf,df,lf,ff,hf,cf,null,null):(uf(),df(),ff())}function cf(e){if(Sd!==0){var t=Cd.onRecoverableError;t(e,{componentStack:null})}}function lf(){Sd===3&&(Sd=0,Pu(wd,Cd),Sd=4)}function uf(){if(Sd===1){Sd=0;var e=Cd,t=wd,n=Td,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=R.T,R.T=null;var i=z.p;z.p=2;var a=ed;ed|=4;try{uu=du=!1,Au(t,e,n),n=dp;var o=Gr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Wr(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 _=Ur(s,h),v=Ur(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}}yh=!!up,dp=up=null}finally{ed=a,z.p=i,R.T=r}}e.current=t,Sd=2}}function df(){if(Sd===2){Sd=0;var e=Cd,t=wd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=R.T,R.T=null;var r=z.p;z.p=2;var i=ed;ed|=4;try{hu(e,t.alternate,t)}finally{ed=i,z.p=r,R.T=n}}Sd=3}}function ff(){if(Sd===4||Sd===3){Sd=0;var e=kd;kd=null,Le();var t=Cd,n=wd,r=Td,i=Od,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Sd=5:(Sd=0,wd=Cd=null,pf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(xd=null),gt(r),n=n.stateNode,Je&&typeof Je.onCommitFiberRoot==`function`)try{Je.onCommitFiberRoot(qe,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=R.T,a=z.p,z.p=2,R.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{R.T=n,z.p=a}}if(i=Ad,o=jd,jd=null,i!==null&&(Ad=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Td&3&&mf(),Af(t),a=t.pendingLanes,r&261930&&a&42?t===Nd?Md++:(Md=0,Nd=t):(Md=0,Nd=null),jf(0,!1)}}function pf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Aa(t)))}function mf(){return kd!==null&&(kd.skipTransition(),kd=null),uf(),df(),ff(),hf()}function hf(){if(Sd!==5)return!1;var e=Cd,t=Ed;Ed=0;var n=gt(Td),r=R.T,a=z.p;try{z.p=32>n?32:n,R.T=null,n=Dd,Dd=null;var o=Cd,s=Td;if(Sd=0,wd=Cd=null,Td=0,ed&6)throw Error(i(331));var c=ed;if(ed|=4,Yu(o.current),Vu(o,o.current,s,n),ed=c,jf(0,!1),Je&&typeof Je.onPostCommitFiberRoot==`function`)try{Je.onPostCommitFiberRoot(qe,o)}catch{}return!0}finally{z.p=a,R.T=r,pf(e,t)}}function gf(e,t,n){t=Bi(n,t),t=Ec(e.stateNode,t,2),e=ho(e,t,2),e!==null&&(ut(e,2),Af(e))}function _f(e,t,n){if(e.tag===3)gf(e,e,n);else for(;t!==null;){if(t.tag===3){gf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(xd===null||!xd.has(r))){e=Bi(n,e),n=Dc(2),r=ho(t,n,2),r!==null&&(Oc(n,r,t,e),ut(r,2),Af(r));break}}t=t.return}}function vf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $u;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)||(od=!0,i.add(n),e=yf.bind(null,e,t,n),t.then(e,e))}function yf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,td===e&&(q&n)===n&&(cd===4||cd===3&&(q&62914560)===q&&300>Re()-_d?ed&2?dd|=n:Wd(e,0):dd|=n,pd===q&&(pd=0)),Af(e)}function bf(e,t){t===0&&(t=ct()),e=Ti(e,t),e!==null&&(ut(e,t),Af(e))}function xf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bf(e,n)}function Sf(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),bf(e,n)}function Cf(e,t){return Pe(e,t)}var wf=null,Tf=null,Ef=!1,Df=!1,Of=!1,kf=0;function Af(e){e!==Tf&&e.next===null&&(Tf===null?wf=Tf=e:Tf=Tf.next=e),Df=!0,Ef||(Ef=!0,Lf())}function jf(e,t){if(!Of&&Df){Of=!0;do for(var n=!1,r=wf;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-Xe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,If(r,a))}else a=q,a=it(r,r===td?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||at(r,a)||(n=!0,If(r,a))}r=r.next}while(n);Of=!1}}function Mf(){Nf()}function Nf(){Df=Ef=!1;var e=0;kf!==0&&vp()&&(e=kf);for(var t=Re(),n=null,r=wf;r!==null;){var i=r.next,a=Pf(r,t);a===0?(r.next=null,n===null?wf=i:n.next=i,i===null&&(Tf=n)):(n=r,(e!==0||a&3)&&(Df=!0)),r=i}Sd!==0&&Sd!==5||jf(e,!1),kf!==0&&(kf=0)}function Pf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Xe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=st(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=td,n=q,n=it(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(nd===2||nd===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Fe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||at(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Fe(r),gt(n)){case 2:case 8:n=Ve;break;case 32:n=He;break;case 268435456:n=We;break;default:n=He}return r=Ff.bind(null,e),n=Pe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Fe(r),e.callbackPriority=2,e.callbackNode=null,2}function Ff(e,t){if(Sd!==0&&Sd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(mf()&&e.callbackNode!==n)return null;var r=q;return r=it(e,e===td?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Rd(e,r,t),Pf(e,Re()),e.callbackNode!=null&&e.callbackNode===n?Ff.bind(null,e):null)}function If(e,t){if(mf())return null;Rd(e,t,!0)}function Lf(){Cp(function(){ed&6?Pe(Be,Mf):Nf()})}function Rf(){if(kf===0){var e=Ia;e===0&&(e=et,et<<=1,!(et&261888)&&(et=256)),kf=e}return kf}function zf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:hn(e)}function Bf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=zf((i[xt]||null).action),o=r.submitter;o&&(t=(t=o[xt]||null)?zf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Ln(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(kf!==0){var e=new FormData(i,o);Qs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Qs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Vf=0;Vf<fi.length;Vf++){var Hf=fi[Vf];pi(Hf.toLowerCase(),`on`+(Hf[0].toUpperCase()+Hf.slice(1)))}pi(ii,`onAnimationEnd`),pi(ai,`onAnimationIteration`),pi(oi,`onAnimationStart`),pi(`dblclick`,`onDoubleClick`),pi(`focusin`,`onFocus`),pi(`focusout`,`onBlur`),pi(si,`onTransitionRun`),pi(ci,`onTransitionStart`),pi(li,`onTransitionCancel`),pi(ui,`onTransitionEnd`),zt(`onMouseEnter`,[`mouseout`,`mouseover`]),zt(`onMouseLeave`,[`mouseout`,`mouseover`]),zt(`onPointerEnter`,[`pointerout`,`pointerover`]),zt(`onPointerLeave`,[`pointerout`,`pointerover`]),Rt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Rt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Rt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Rt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Rt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Rt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Uf=`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(` `),Wf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Uf));function Gf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){vi(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){vi(e)}i.currentTarget=null,a=c}}}}function J(e,t){var n=t[Ct];n===void 0&&(n=t[Ct]=new Set);var r=e+`__bubble`;n.has(r)||(Jf(t,e,2,!1),n.add(r))}function Y(e,t,n){var r=0;t&&(r|=4),Jf(n,e,r,t)}var Kf=`_reactListening`+Math.random().toString(36).slice(2);function qf(e){if(!e[Kf]){e[Kf]=!0,It.forEach(function(t){t!==`selectionchange`&&(Wf.has(t)||Y(t,!1,e),Y(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kf]||(t[Kf]=!0,Y(`selectionchange`,!1,t))}}function Jf(e,t,n,r){switch(Eh(t)){case 2:var i=bh;break;case 8:i=xh;break;default:i=Sh}n=i.bind(null,t,n,e),i=void 0,!En||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 Yf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=At(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Cn(function(){var r=a,i=vn(n),s=[];a:{var c=di.get(e);if(c!==void 0){var l=Ln,u=e;switch(e){case`keypress`:if(Mn(n)===0)break a;case`keydown`:case`keyup`:l=tr;break;case`focusin`:u=`focus`,l=Kn;break;case`focusout`:u=`blur`,l=Kn;break;case`beforeblur`:case`afterblur`:l=Kn;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=Wn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Gn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=ir;break;case ii:case ai:case oi:l=qn;break;case ui:l=ar;break;case`scroll`:case`scrollend`:l=zn;break;case`wheel`:l=or;break;case`copy`:case`cut`:case`paste`:l=Jn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=nr;break;case`submit`:l=rr;break;case`toggle`:case`beforetoggle`:l=sr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=wn(m,p),g!=null&&d.push(Xf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==_n&&(u=n.relatedTarget||n.fromElement)&&(At(u)||u[St]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?At(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Wn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=nr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Mt(c),h=l==null?u:Mt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,At(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,Qf):null,c!==null&&$f(s,u,c,d,!1),l!==null&&f!==null&&$f(s,f,l,d,!0)))}a:{if(c=r?Mt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Dr;else if(xr(c)){if(Or)_=Lr;else{_=Fr;var v=Pr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&fn(r.elementType)&&(_=Dr):_=Ir;if(_&&=_(e,r)){Sr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Mt(r):window,e){case`focusin`:(xr(v)||v.contentEditable===`true`)&&(Jr=v,Yr=r,Xr=null);break;case`focusout`:Xr=Yr=Jr=null;break;case`mousedown`:Zr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Zr=!1,Qr(s,n,i);break;case`selectionchange`:if(qr)break;case`keydown`:case`keyup`:Qr(s,n,i)}var y;if(lr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else _r?hr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(fr&&n.locale!==`ko`&&(_r||b!==`onCompositionStart`?b===`onCompositionEnd`&&_r&&(y=jn()):(On=i,kn=`value`in On?On.value:On.textContent,_r=!0)),v=Zf(r,b),0<v.length&&(b=new Yn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=gr(n),y!==null&&(b.data=y)))),(y=dr?vr(e,n):yr(e,n))&&(b=Zf(r,`onBeforeInput`),0<b.length&&(v=new Yn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Bf(s,e,r,n,i)}Gf(s,t)})}function Xf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zf(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=wn(e,n),i!=null&&r.unshift(Xf(e,i,a)),i=wn(e,t),i!=null&&r.push(Xf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Qf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $f(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=wn(n,a),l!=null&&o.unshift(Xf(n,l,c))):i||(l=wn(n,a),l!=null&&o.push(Xf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var ep=/\r\n?/g,tp=/\u0000|\uFFFD/g;function np(e){return(typeof e==`string`?e:``+e).replace(ep,`
|
|
9
9
|
`).replace(tp,``)}function rp(e,t){return t=np(t),np(e)===t}function X(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||cn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&cn(e,``+r);else return;break;case`className`:Kt(e,`class`,r);break;case`tabIndex`:Kt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Kt(e,n,r);break;case`style`:dn(e,r,o);return;case`data`:if(t!==`object`){Kt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=hn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&X(e,t,`name`,a.name,a,null),X(e,t,`formEncType`,a.formEncType,a,null),X(e,t,`formMethod`,a.formMethod,a,null),X(e,t,`formTarget`,a.formTarget,a,null)):(X(e,t,`encType`,a.encType,a,null),X(e,t,`method`,a.method,a,null),X(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=hn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=gn);return;case`onScroll`:r!=null&&J(`scroll`,e);return;case`onScrollEnd`:r!=null&&J(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=hn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:J(`beforetoggle`,e),J(`toggle`,e),Gt(e,`popover`,r);break;case`xlinkActuate`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Gt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=pn.get(n)||n,Gt(e,n,r);else return}V=!0}function ip(e,t,n,r,a,o){switch(n){case`style`:dn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)cn(e,r);else if(typeof r==`number`||typeof r==`bigint`)cn(e,``+r);else return;break;case`onScroll`:r!=null&&J(`scroll`,e);return;case`onScrollEnd`:r!=null&&J(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=gn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Lt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[xt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}V=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Gt(e,n,r)}return}V=!0}function ap(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:J(`error`,e),J(`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:X(e,t,o,s,n,null)}}a&&X(e,t,`srcSet`,n.srcSet,n,null),r&&X(e,t,`src`,n.src,n,null);return;case`input`:J(`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:X(e,t,r,d,n,null)}}nn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in J(`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:X(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&an(e,!!r,n,!0):an(e,!!r,t,!1);return;case`textarea`:for(s in J(`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:X(e,t,s,c,n,null)}sn(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:X(e,t,l,r,n,null)}return;case`dialog`:J(`beforetoggle`,e),J(`toggle`,e),J(`cancel`,e),J(`close`,e);break;case`iframe`:case`object`:J(`load`,e);break;case`video`:case`audio`:for(r=0;r<Uf.length;r++)J(Uf[r],e);break;case`image`:J(`error`,e),J(`load`,e);break;case`details`:J(`toggle`,e);break;case`embed`:case`source`:case`link`:J(`error`,e),J(`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:X(e,t,u,r,n,null)}return;default:if(fn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&ip(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&X(e,t,c,r,n,null))}var op={};function sp(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)||X(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(V=!0),o=m;break;case`name`:m!==f&&(V=!0),a=m;break;case`checked`:m!==f&&(V=!0),u=m;break;case`defaultChecked`:m!==f&&(V=!0),d=m;break;case`value`:m!==f&&(V=!0),s=m;break;case`defaultValue`:m!==f&&(V=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&X(e,t,p,m,r,f)}}tn(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)||X(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(V=!0),p=o;break;case`defaultValue`:o!==l&&(V=!0),c=o;break;case`multiple`:o!==l&&(V=!0),s=o;default:o!==l&&X(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?an(e,!!n,n?[]:``,!1):an(e,!!n,t,!0)):an(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:X(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(V=!0),p=a;break;case`defaultValue`:a!==o&&(V=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&X(e,t,s,a,r,o)}on(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:X(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(V=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:X(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)&&X(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:X(e,t,u,p,r,m)}return;default:if(fn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&ip(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||ip(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&X(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||X(e,t,f,p,r,m)}function cp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function lp(){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&&cp(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&&cp(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 up=null,dp=null;function fp(e){return e.nodeType===9?e:e.ownerDocument}function pp(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 mp(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 hp(e,t,n,r){return n=fp(n).createElement(e),n[bt]=r,n[xt]=t,ap(n,e,t),Pt(n),n}function gp(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 _p=null;function vp(){var e=window.event;return e&&e.type===`popstate`?e!==_p&&(_p=e,!0):(_p=null,!1)}var yp=typeof setTimeout==`function`?setTimeout:void 0,bp=typeof clearTimeout==`function`?clearTimeout:void 0,xp=typeof Promise==`function`?Promise:void 0,Sp=typeof requestAnimationFrame==`function`?requestAnimationFrame:yp,Cp=typeof queueMicrotask==`function`?queueMicrotask:xp===void 0?yp:function(e){return xp.resolve(null).then(e).catch(wp)};function wp(e){setTimeout(function(){throw e})}function Tp(e){return e===`head`}function Ep(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),Gh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)bm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,bm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Dt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&bm(e.ownerDocument.body)}n=i}while(n);Gh(t)}function Dp(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 Op(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function kp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Ap(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function jp(e){return Ap(e.getBoundingClientRect(),getComputedStyle(e),e)}function Mp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Ap(t,n,e)}function Np(e){return e.documentElement.clientHeight}function Pp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Fp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Np(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=$m(f),u>nh){s.length=o;break}f=new Promise(Pp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Ip(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Ip.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Ip.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Ip.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Lp(e){return{name:e,group:new Ip(`group`,e),imagePair:new Ip(`image-pair`,e),old:new Ip(`old`,e),new:new Ip(`new`,e)}}function Rp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Rp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Up(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Vp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),f(this._fragmentFiber.child,!1,zp,e,s,r)}this._eventListeners=a}};function zp(e,t,n,r){return y(e).addEventListener(t,n,r),!1}Rp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Up(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Vp(i.optionsOrUseCapture),f(this._fragmentFiber.child,!1,Bp,e,n,i),r.splice(t,1),a!==null&&a()}};function Bp(e,t,n,r){return y(e).removeEventListener(t,n,r),!1}function Vp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Hp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Up(e,t,n,r){if(e.length===0)return-1;r=Hp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Hp(a.optionsOrUseCapture)===r)return i}return-1}Rp.prototype.dispatchEvent=function(e){var t=p(this._fragmentFiber);if(t===null)return!0;t=y(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Vp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Vp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Rp.prototype.focus=function(e){f(this._fragmentFiber.child,!0,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag!==6&&(e=y(e),gm(e,t))}Rp.prototype.focusLast=function(e){var t=[];f(this._fragmentFiber.child,!0,Gp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Wp(t[n],e);n--);};function Gp(e,t){return t.push(e),!1}Rp.prototype.blur=function(){var e=p(this._fragmentFiber);e!==null&&(e=y(e),e=fp(e).activeElement,e!==null&&f(this._fragmentFiber.child,!1,Kp,e,void 0,void 0))};function Kp(e,t){return e.tag!==6&&(e=y(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Rp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),f(this._fragmentFiber.child,!1,qp,e,void 0,void 0)};function qp(e,t){return e.tag===6||(e=y(e),t.observe(e)),!1}Rp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),f(this._fragmentFiber.child,!1,Jp,e,void 0,void 0);for(var n=t=0;n<Yp.length;n++){var r=Yp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Yp[t++]=r}Yp.length=t}};function Jp(e,t){return e.tag===6||(e=y(e),t.unobserve(e)),!1}var Yp=[],Xp=!1;function Zp(e,t,n){Yp.push({fragmentInstance:e,observer:t,instance:n}),Xp||(Xp=!0,_m(function(){Xp=!1;var e=Yp;Yp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Rp.prototype.getClientRects=function(){var e=[];return f(this._fragmentFiber.child,!1,Qp,e,void 0,void 0),e};function Qp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=y(e),t.push.apply(t,e.getClientRects());return!1}Rp.prototype.getRootNode=function(e){var t=p(this._fragmentFiber);return t===null?this:y(t).getRootNode(e)},Rp.prototype.compareDocumentPosition=function(e){var t=p(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];f(this._fragmentFiber.child,!1,Gp,n,void 0,void 0);var r=y(t);if(n.length===0){if(n=r,m(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=h(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=y(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=y(n[0]),i=y(n[n.length-1]);var a=m(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||$p(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function $p(e,t,n,r,i){var a=At(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=p(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(f(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(f(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function em(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Rp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];f(this._fragmentFiber.child,!1,Gp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=h(this._fragmentFiber);if(r=n?r[1]||r[0]||p(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=y(r),em(e,n);return}if(r=y(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=y(a),em(a,n)):y(a).scrollIntoView(e),r+=n?-1:1}};function tm(e,t){return e=y(e),nm(e,t),!1}function nm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function rm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Vp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Yp.length;i++){var a=Yp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Yp[r++]=a)}Yp.length=r,n.observe(e)}),nm(e,t))}function im(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Vp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Zp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function am(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`:am(n),kt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function om(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Dt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=fm(e.nextSibling),e===null)break}return null}function sm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=fm(e.nextSibling),e===null))return null;return e}function cm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=fm(e.nextSibling),e===null))return null;return e}function lm(e){return e.data===`$?`||e.data===`$~`}function um(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function dm(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 fm(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 pm=null;function mm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return fm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function hm(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 gm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function _m(e){Sp(function(){Sp(function(t){return e(t)})})}function vm(e,t,n){switch(t=fp(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 ym(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&X(e,t,r,null,op,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===gn&&(e.onclick=null),kt(e)}function bm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);kt(e)}var xm=new Map,Sm=new Set;function Cm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var wm=z.d;z.d={f:Tm,r:Em,D:km,C:Am,L:jm,m:Mm,X:Pm,S:Nm,M:Fm};function Tm(){var e=wm.f(),t=Hd();return e||t}function Em(e){var t=jt(e);t!==null&&t.tag===5&&t.type===`form`?ec(t):wm.r(e)}var Dm=typeof document>`u`?null:document;function Om(e,t,n){var r=Dm;if(r&&typeof t==`string`&&t){var i=en(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Sm.has(i)||(Sm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),ap(t,`link`,e),Pt(t),r.head.appendChild(t)))}}function km(e){wm.D(e),Om(`dns-prefetch`,e,null)}function Am(e,t){wm.C(e,t),Om(`preconnect`,e,t)}function jm(e,t,n){wm.L(e,t,n);var r=Dm;if(r&&e&&t){var i=`link[rel="preload"][as="`+en(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+en(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+en(n.imageSizes)+`"]`)):i+=`[href="`+en(e)+`"]`;var a=i;switch(t){case`style`:a=Lm(e);break;case`script`:a=Vm(e)}if(!(xm.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),xm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Rm(a))||t===`script`&&r.querySelector(Hm(a))))){var o=r.createElement(`link`);ap(o,`link`,e),t===`style`&&(o[Ot]=!0,o.onload=o.onerror=function(){Ft(o)}),Pt(o),r.head.appendChild(o)}}}function Mm(e,t){wm.m(e,t);var n=Dm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+en(r)+`"][href="`+en(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Vm(e)}if(!xm.has(a)&&(e=D({rel:`modulepreload`,href:e},t),xm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Hm(a)))return}r=n.createElement(`link`),ap(r,`link`,e),Pt(r),n.head.appendChild(r)}}}function Nm(e,t,n){wm.S(e,t,n);var r=Dm;if(r&&e){var i=Nt(r).hoistableStyles,a=Lm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Rm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=xm.get(a))&&Gm(e,n);var c=o=r.createElement(`link`);Pt(c),ap(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,Wm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Pm(e,t){wm.X(e,t);var n=Dm;if(n&&e){var r=Nt(n).hoistableScripts,i=Vm(e),a=r.get(i);a||(a=n.querySelector(Hm(i)),a||(e=D({src:e,async:!0},t),(t=xm.get(i))&&Km(e,t),a=n.createElement(`script`),Pt(a),ap(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Fm(e,t){wm.M(e,t);var n=Dm;if(n&&e){var r=Nt(n).hoistableScripts,i=Vm(e),a=r.get(i);a||(a=n.querySelector(Hm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=xm.get(i))&&Km(e,t),a=n.createElement(`script`),Pt(a),ap(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Im(e,t,n,r){var a=(a=be.current)?Cm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Lm(n.href),t=Nt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Lm(n.href);var o=Nt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Rm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=xm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},xm.set(e,o)),Bm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Vm(n),t=Nt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Lm(e){return`href="`+en(e)+`"`}function Rm(e){return`link[rel="stylesheet"][`+e+`]`}function zm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Bm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Ot]){r.loading=1;return}}else t=e.createElement(`link`),t[Ot]=!0,t.onload=t.onerror=Ft.bind(null,t),ap(t,`link`,n),Pt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Vm(e){return`[src="`+en(e)+`"]`}function Hm(e){return`script[async]`+e}function Um(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+en(n.href)+`"]`);if(r)return t.instance=r,Pt(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Pt(r),ap(r,`style`,a),Wm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Lm(n.href);var o=e.querySelector(Rm(a));if(o)return t.state.loading|=4,t.instance=o,Pt(o),o;r=zm(n),(a=xm.get(a))&&Gm(r,a),o=(e.ownerDocument||e).createElement(`link`),Pt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),ap(o,`link`,r),t.state.loading|=4,Wm(o,n.precedence,e),t.instance=o;case`script`:return o=Vm(n.src),(a=e.querySelector(Hm(o)))?(t.instance=a,Pt(a),a):(r=n,(a=xm.get(o))&&(r=D({},n),Km(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Pt(a),ap(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,Wm(r,n.precedence,e));return t.instance}function Wm(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 Gm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Km(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var qm=null;function Jm(e,t,n){if(qm===null){var r=new Map,i=qm=new Map;i.set(n,r)}else i=qm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Dt]||a[bt]||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 Ym(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Xm(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 Zm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Qm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function $m(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function eh(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=$m(t),e.suspenseyImages.push(t)),e=oh.bind(e),t.decode().then(e,e))}function th(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=Lm(r.href),a=t.querySelector(Rm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ah.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Pt(a);return}a=t.ownerDocument||t,r=zm(r),(i=xm.get(i))&&Gm(r,i),a=a.createElement(`link`),Pt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),ap(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=ah.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var nh=0;function rh(e,t){return e.stylesheets&&e.count===0&&ch(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ch(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&nh===0&&(nh=62500*lp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ch(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>nh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ih(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ch(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ah(){this.count--,ih(this)}function oh(){this.imgCount--,ih(this)}var sh=null;function ch(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,sh=new Map,t.forEach(lh,e),sh=null,ah.call(e))}function lh(e,t){if(!(t.state.loading&4)){var n=sh.get(e);if(n)var r=n.get(null);else{n=new Map,sh.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=ah.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 uh={$$typeof:P,Provider:null,Consumer:null,_currentValue:pe,_currentValue2:pe,_threadCount:0};function dh(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=lt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lt(0),this.hiddenUpdates=lt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function fh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new dh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ai(3,null,null,t),e.current=a,a.stateNode=e,t=ka(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},fo(a),e}function ph(e){return e?(e=Oi,e):Oi}function mh(e,t,n,r,i,a){i=ph(i),r.context===null?r.context=i:r.pendingContext=i,r=mo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=ho(e,r,t),n!==null&&(Ld(n,e,t),go(n,e,t))}function hh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gh(e,t){hh(e,t),(e=e.alternate)&&hh(e,t)}function _h(e){if(e.tag===13||e.tag===31){var t=Ti(e,67108864);t!==null&&Ld(t,e,67108864),gh(e,67108864)}}function vh(e){if(e.tag===13||e.tag===31){var t=Pd();t=ht(t);var n=Ti(e,t);n!==null&&Ld(n,e,t),gh(e,t)}}var yh=!0;function bh(e,t,n,r){var i=R.T;R.T=null;var a=z.p;try{z.p=2,Sh(e,t,n,r)}finally{z.p=a,R.T=i}}function xh(e,t,n,r){var i=R.T;R.T=null;var a=z.p;try{z.p=8,Sh(e,t,n,r)}finally{z.p=a,R.T=i}}function Sh(e,t,n,r){if(yh){var i=Ch(r);if(i===null)Yf(e,t,r,wh,n),Fh(e,r);else if(Lh(i,e,t,n,r))r.stopPropagation();else if(Fh(e,r),t&4&&-1<Ph.indexOf(e)){for(;i!==null;){var a=jt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=rt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Xe(o);s.entanglements[1]|=c,o&=~c}Af(a),!(ed&6)&&(yd=Re()+500,jf(0,!1))}}break;case 31:case 13:s=Ti(a,2),s!==null&&Ld(s,a,2),Hd(),gh(a,2)}if(a=Ch(r),a===null&&Yf(e,t,r,wh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Yf(e,t,r,null,n)}}function Ch(e){return e=vn(e),Th(e)}var wh=null;function Th(e){if(wh=null,e=At(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wh=e,null}function Eh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(ze()){case Be:return 2;case Ve:return 8;case He:case Ue:return 32;case We:return 268435456;default:return 32}default:return 32}}var Dh=!1,Oh=null,kh=null,Ah=null,jh=new Map,Mh=new Map,Nh=[],Ph=`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 Fh(e,t){switch(e){case`focusin`:case`focusout`:Oh=null;break;case`dragenter`:case`dragleave`:kh=null;break;case`mouseover`:case`mouseout`:Ah=null;break;case`pointerover`:case`pointerout`:jh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Mh.delete(t.pointerId)}}function Ih(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=jt(t),t!==null&&_h(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Lh(e,t,n,r,i){switch(t){case`focusin`:return Oh=Ih(Oh,e,t,n,r,i),!0;case`dragenter`:return kh=Ih(kh,e,t,n,r,i),!0;case`mouseover`:return Ah=Ih(Ah,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return jh.set(a,Ih(jh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Mh.set(a,Ih(Mh.get(a)||null,e,t,n,r,i)),!0}return!1}function Rh(e){var t=At(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,vt(e.priority,function(){vh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,vt(e.priority,function(){vh(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 zh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ch(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);_n=r,n.target.dispatchEvent(r),_n=null}else return t=jt(n),t!==null&&_h(t),e.blockedOn=n,!1;t.shift()}return!0}function Bh(e,t,n){zh(e)&&n.delete(t)}function Vh(){Dh=!1,Oh!==null&&zh(Oh)&&(Oh=null),kh!==null&&zh(kh)&&(kh=null),Ah!==null&&zh(Ah)&&(Ah=null),jh.forEach(Bh),Mh.forEach(Bh)}function Hh(e,n){e.blockedOn===n&&(e.blockedOn=null,Dh||(Dh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Vh)))}var Uh=null;function Wh(e){Uh!==e&&(Uh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Uh===e&&(Uh=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(Th(r||n)===null)continue;break}var a=jt(n);a!==null&&(e.splice(t,3),t-=3,Qs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Gh(e){function t(t){return Hh(t,e)}Oh!==null&&Hh(Oh,e),kh!==null&&Hh(kh,e),Ah!==null&&Hh(Ah,e),jh.forEach(t),Mh.forEach(t);for(var n=0;n<Nh.length;n++){var r=Nh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Nh.length&&(n=Nh[0],n.blockedOn===null);)Rh(n),n.blockedOn===null&&Nh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[xt]||null;if(typeof a==`function`)o||Wh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[xt]||null)s=o.formAction;else if(Th(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Wh(n)}}}function Kh(){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 qh(e){this._internalRoot=e}Jh.prototype.render=qh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;mh(n,Pd(),e,t,null,null)},Jh.prototype.unmount=qh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mh(e.current,2,null,e,null,null),Hd(),t[St]=null}};function Jh(e){this._internalRoot=e}Jh.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nh.length&&t!==0&&t<Nh[n].priority;n++);Nh.splice(n,0,e),n===0&&Rh(e)}};var Yh=n.version;if(Yh!==`19.3.0`)throw Error(i(527,Yh,`19.3.0`));z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Xh={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:R,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Zh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zh.isDisabled&&Zh.supportsFiber)try{qe=Zh.inject(Xh),Je=Zh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=xc,s=Sc,c=Cc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=fh(e,1,!1,null,null,n,r,null,o,s,c,Kh),e[St]=t.current,qf(e),new qh(t)}})),S=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=x()})),C=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),w=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),T=e=>{let t=w(e);return t.charAt(0).toUpperCase()+t.slice(1)},E=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),D=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},O={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`},k=c(g()),A=(0,k.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,k.createElement)(`svg`,{ref:c,...O,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:E(`lucide`,i),...!a&&!D(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,k.createElement)(e,t)),...Array.isArray(a)?a:[a]])),j=(e,t)=>{let n=(0,k.forwardRef)(({className:n,...r},i)=>(0,k.createElement)(A,{ref:i,iconNode:t,className:E(`lucide-${C(T(e))}`,`lucide-${e}`,n),...r}));return n.displayName=T(e),n},M=j(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),ee=j(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),N=j(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),P=j(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),F=j(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),te=j(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),I=j(`clapperboard`,[[`path`,{d:`M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z`,key:`1tn4o7`}],[`path`,{d:`m6.2 5.3 3.1 3.9`,key:`iuk76l`}],[`path`,{d:`m12.4 3.4 3.1 4`,key:`6hsd6n`}],[`path`,{d:`M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z`,key:`ltgou9`}]]),ne=j(`folder-kanban`,[[`path`,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,key:`1fr9dc`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M12 10v2`,key:`hh53o1`}],[`path`,{d:`M16 10v6`,key:`1d6xys`}]]),re=j(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),ie=j(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),ae=j(`mountain`,[[`path`,{d:`m8 3 4 8 5-5 5 15H2L8 3z`,key:`otkl63`}]]),oe=j(`octagon-x`,[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),se=j(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),L=j(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),ce=j(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),le=j(`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`}]]),ue=j(`shirt`,[[`path`,{d:`M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z`,key:`1wgbhj`}]]),de=j(`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`}]]),fe=j(`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`}]]),R=j(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),z=m(),pe=S(),me=(e,t,n,r,i,a,o,s)=>{let c=document.documentElement,l=[`light`,`dark`];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n=e===`class`,r=n&&a?i.map(e=>a[e]||e):i;n?(c.classList.remove(...r),c.classList.add(a&&a[t]?a[t]:t)):c.setAttribute(e,t)}),d(t)}function d(e){s&&l.includes(e)&&(c.style.colorScheme=e)}function f(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}if(r)u(r);else try{let e=localStorage.getItem(t)||n;u(o&&e===`system`?f():e)}catch{}},he=k.createContext(void 0),ge={setTheme:e=>{},themes:[]},_e=()=>k.useContext(he)??ge;k.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,themes:s,nonce:c,scriptProps:l})=>{let u=JSON.stringify([n,t,a,e,s,o,r,i]).slice(1,-1);return k.createElement(`script`,{...l,suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(${me.toString()})(${u})`}})});var B=c(b(),1);function ve(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var ye=e=>{switch(e){case`success`:return Se;case`info`:return we;case`warning`:return Ce;case`error`:return Te;default:return null}},be=Array(12).fill(0),xe=({visible:e,className:t})=>k.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},k.createElement(`div`,{className:`sonner-spinner`},be.map((e,t)=>k.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),Se=k.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},k.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),Ce=k.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},k.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),we=k.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},k.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),Te=k.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},k.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),Ee=k.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`},k.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),k.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),De=()=>{let[e,t]=k.useState(document.hidden);return k.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),e},Oe=1,ke=100,Ae=e=>typeof e?.id==`number`||e?.id?.length>0?e.id:Oe++,je=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),this.getActiveToasts().forEach(t=>e(t)),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-ke;e<=0||(this.toasts=this.toasts.filter(t=>e>0&&this.dismissedToasts.has(t.id)?(this.dismissedToasts.delete(t.id),e--,!1):!0))},this.create=e=>{let{message:t,...n}=e,r=Ae(e),i=this.pendingDismissals.get(r);i!==void 0&&(cancelAnimationFrame(i),this.pendingDismissals.delete(r),this.dismissedToasts.delete(r));let a=this.dismissedToasts.has(r),o=e.dismissible===void 0||e.dismissible;return a&&(this.dismissedToasts.delete(r),this.toasts=this.toasts.filter(e=>e.id!==r)),!a&&this.toasts.find(e=>e.id===r)?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:o,title:t}):n):this.addToast({title:t,...n,dismissible:o,id:r}),r},this.dismiss=e=>{if(e==null)return this.getActiveToasts().forEach(e=>{this.dismissedToasts.add(e.id),this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);return t!==void 0&&cancelAnimationFrame(t),this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach(t=>t({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],k.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(Ne(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!k.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!k.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!k.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!k.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=Ae(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}},Me=(e,t)=>je.message(e,t),Ne=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,Pe=Object.assign(Me,{success:je.success,info:je.info,warning:je.warning,error:je.error,custom:je.custom,message:je.message,promise:je.promise,dismiss:je.dismiss,loading:je.loading},{getHistory:()=>je.toasts,getToasts:()=>je.getActiveToasts()});ve(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function Fe(e){return e.label!==void 0}var Ie=3,Le=`24px`,Re=`16px`,ze=4e3,Be=356,Ve=14,He=45,Ue=200;function We(...e){return e.filter(Boolean).join(` `)}function Ge(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var Ke=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:T=`Close toast`}=e,[E,D]=k.useState(null),[O,A]=k.useState(null),[j,M]=k.useState(!1),[ee,N]=k.useState(!1),[P,F]=k.useState(!1),[te,I]=k.useState(!1),[ne,re]=k.useState(!1),[ie,ae]=k.useState(0),[oe,se]=k.useState(0),L=k.useRef(n.duration||y||ze),ce=k.useRef(null),le=k.useRef(null),ue=c===0,de=c+1<=o,fe=n.type,R=fe??`default`,z=n.dismissible!==!1,pe=n.className||``,me=n.descriptionClassName||``,he=k.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),ge=k.useMemo(()=>n.closeButton??p,[n.closeButton,p]),_e=k.useMemo(()=>n.duration||y||ze,[n.duration,y]),B=k.useRef(0),ve=k.useRef(0),be=k.useRef(0),Se=k.useRef(null),[Ce,we]=b.split(`-`),Te=k.useMemo(()=>s.reduce((e,t,n)=>n>=he?e:e+t.height,0),[s,he]),Oe=De(),ke=k.useMemo(()=>e.swipeDirections??Ge(b),[e.swipeDirections,b]),Ae=n.invert||t,je=fe===`loading`;ve.current=k.useMemo(()=>he*x+Te,[he,Te]),k.useEffect(()=>{L.current=_e},[_e]),k.useEffect(()=>{M(!0)},[]),k.useEffect(()=>{let e=le.current;if(e){let t=e.getBoundingClientRect().height;return se(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),k.useLayoutEffect(()=>{if(!j)return;let e=le.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,se(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[j,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Me=k.useCallback(()=>{N(!0),ae(ve.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},Ue)},[n,d,a,ve]);k.useEffect(()=>{if(n.promise&&fe===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||Oe?(()=>{if(be.current<B.current){let e=new Date().getTime()-B.current;L.current-=e}be.current=new Date().getTime()})():L.current!==1/0&&(B.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Me()},L.current)),()=>clearTimeout(e)},[u,i,n,fe,Oe,Me]),k.useEffect(()=>{n.delete&&(Me(),n.onDismiss==null||n.onDismiss.call(n,n))},[Me,n.delete]);function Ne(){return w?.loading?k.createElement(`div`,{className:We(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":fe===`loading`},w.loading):k.createElement(xe,{className:We(C?.loader,n?.classNames?.loader),visible:fe===`loading`})}let Pe=n.icon||w?.[fe]||ye(fe);return k.createElement(`li`,{tabIndex:0,ref:le,className:We(_,pe,C?.toast,n?.classNames?.toast,C?.[R],n?.classNames?.[R]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":j,"data-promise":!!n.promise,"data-swiped":ne,"data-removed":ee,"data-visible":de,"data-y-position":Ce,"data-x-position":we,"data-index":c,"data-front":ue,"data-swiping":P,"data-dismissible":z,"data-type":fe,"data-invert":Ae,"data-swipe-out":te,"data-swipe-direction":O,"data-expanded":!!(u||S&&j),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${ee?ie:ve.current}px`,"--initial-height":S?`auto`:`${oe}px`,...m,...n.style},onDragEnd:()=>{F(!1),D(null),Se.current=null},onPointerDown:e=>{e.button!==2&&!je&&z&&(ce.current=new Date,ae(ve.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(F(!0),Se.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{if(te||!z)return;Se.current=null;let e=Number(le.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(le.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-ce.current?.getTime(),i=E===`x`?e:t,a=Math.abs(i)/r;if((E===`x`?ke.includes(e>0?`right`:`left`):ke.includes(t>0?`bottom`:`top`))&&(Math.abs(i)>=He||a>.11))ae(ve.current),n.onDismiss==null||n.onDismiss.call(n,n),A(E===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Me(),I(!0);else{var o,s;(o=le.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=le.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`),re(!1),F(!1),D(null)}},onPointerMove:e=>{var t,n;if(!Se.current||!z||window.getSelection()?.toString().length>0)return;let r=e.clientY-Se.current.y,i=e.clientX-Se.current.x;!E&&(Math.abs(i)>1||Math.abs(r)>1)&&D(Math.abs(i)>Math.abs(r)?`x`:`y`);let a={x:0,y:0},o=e=>1/(1.5+Math.abs(e)/20);if(E===`y`){if(ke.includes(`top`)||ke.includes(`bottom`)){if(ke.includes(`top`)&&r<0||ke.includes(`bottom`)&&r>0)a.y=r;else{let e=r*o(r);a.y=Math.abs(e)<Math.abs(r)?e:r}}}else if(E===`x`&&(ke.includes(`left`)||ke.includes(`right`))){if(ke.includes(`left`)&&i<0||ke.includes(`right`)&&i>0)a.x=i;else{let e=i*o(i);a.x=Math.abs(e)<Math.abs(i)?e:i}}(Math.abs(a.x)>0||Math.abs(a.y)>0)&&re(!0),(t=le.current)==null||t.style.setProperty(`--swipe-amount-x`,`${a.x}px`),(n=le.current)==null||n.style.setProperty(`--swipe-amount-y`,`${a.y}px`)}},ge&&!n.jsx&&fe!==`loading`?k.createElement(`button`,{"aria-label":T,"data-disabled":je,"data-close-button":!0,onClick:je||!z?()=>{}:()=>{Me(),n.onDismiss==null||n.onDismiss.call(n,n)},className:We(C?.closeButton,n?.classNames?.closeButton)},w?.close??Ee):null,(fe||n.icon||n.promise)&&n.icon!==null&&(w?.[fe]!==null||n.icon)?k.createElement(`div`,{"data-icon":``,className:We(C?.icon,n?.classNames?.icon)},fe===`loading`?n.icon||Ne():n.promise?Ne():null,fe===`loading`?null:Pe):null,k.createElement(`div`,{"data-content":``,className:We(C?.content,n?.classNames?.content)},k.createElement(`div`,{"data-title":``,className:We(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?k.createElement(`div`,{"data-description":``,className:We(v,me,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),k.isValidElement(n.cancel)?n.cancel:n.cancel&&Fe(n.cancel)?k.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{Fe(n.cancel)&&z&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Me())},className:We(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,k.isValidElement(n.action)?n.action:n.action&&Fe(n.action)?k.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{Fe(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Me())},className:We(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function qe(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function Je(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Re:Le;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var Ye=k.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=Ie,toastOptions:g,dir:_=qe(),gap:v=Ve,icons:y,customAriaLabel:b,containerAriaLabel:x=`Notifications`}=e,[S,C]=k.useState([]),w=k.useMemo(()=>n?S.filter(e=>e.toasterId===n):S.filter(e=>!e.toasterId),[S,n]),T=k.useMemo(()=>Array.from(new Set([i].concat(w.filter(e=>e.position).map(e=>e.position)))),[w,i]),[E,D]=k.useState([]),[O,A]=k.useState(!1),[j,M]=k.useState(!1),[ee,N]=k.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),P=k.useRef(null),F=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),te=k.useRef(null),I=k.useRef(!1),ne=k.useCallback(e=>{C(t=>(t.find(t=>t.id===e.id)?.delete||je.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return k.useEffect(()=>je.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{C(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))}):setTimeout(()=>{B.flushSync(()=>{C(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[]),k.useEffect(()=>{if(d!==`system`){N(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?N(`dark`):N(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{N(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{N(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),k.useEffect(()=>{S.length<=1&&A(!1)},[S]),k.useEffect(()=>{let e=e=>{if(a.length>0&&a.every(t=>e[t]||e.code===t)){var t;A(!0),(t=P.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===P.current||P.current?.contains(document.activeElement))&&A(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),k.useEffect(()=>{if(P.current)return()=>{te.current&&(te.current.focus({preventScroll:!0}),te.current=null,I.current=!1)}},[P.current]),k.createElement(`section`,{ref:t,"aria-label":b??`${x} ${F}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},T.map((t,n)=>{let[i,a]=t.split(`-`);return w.length?k.createElement(`ol`,{key:t,dir:_===`auto`?qe():_,tabIndex:-1,ref:P,className:c,"data-sonner-toaster":!0,"data-sonner-theme":ee,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${E[0]?.height||0}px`,"--width":`${Be}px`,"--gap":`${v}px`,...m,...Je(l,u)},onBlur:e=>{I.current&&!e.currentTarget.contains(e.relatedTarget)&&(I.current=!1,te.current&&=(te.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||I.current||(I.current=!0,te.current=e.relatedTarget)},onMouseEnter:()=>A(!0),onMouseMove:()=>A(!0),onMouseLeave:()=>{j||A(!1)},onDragEnd:()=>A(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||M(!0)},onPointerUp:()=>M(!1)},w.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>k.createElement(Ke,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:j,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:ne,toasts:w.filter(e=>e.position==n.position),heights:E.filter(e=>e.position==n.position),setHeights:D,expandByDefault:o,gap:v,expanded:O,swipeDirections:e.swipeDirections}))):null}))}),Xe=({...e})=>{let{theme:t=`system`}=_e();return(0,z.jsx)(Ye,{theme:t,className:`toaster group`,icons:{success:(0,z.jsx)(te,{className:`size-4`}),info:(0,z.jsx)(re,{className:`size-4`}),warning:(0,z.jsx)(de,{className:`size-4`}),error:(0,z.jsx)(oe,{className:`size-4`}),loading:(0,z.jsx)(ie,{className:`size-4 animate-spin`})},style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`},...e})},Ze=`modulepreload`,Qe=function(e){return`/`+e},$e={},et=function(e){return e.pathname.endsWith(`.css`)},tt=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},nt=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Qe(t,n);let r=s(t),i=et(r);return tt($e,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:Ze,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},rt=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,it=/^[\\/]{2}/;function at(e,t){return t+e.replace(/\\/g,`/`)}var ot=`popstate`;function st(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function ct(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return pt(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:mt(t)}return gt(t,n,null,e)}function lt(e,t){if(e===!1||e==null)throw Error(t)}function ut(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function dt(){return Math.random().toString(36).substring(2,10)}function ft(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function pt(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?ht(t):t,state:n,key:t&&t.key||r||dt(),mask:i}}function mt({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function ht(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function gt(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=st(e)?e:pt(h.location,e,t);n&&n(r,e),l=u()+1;let d=ft(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=st(e)?e:pt(h.location,e,t);n&&n(r,e),l=u();let i=ft(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return _t(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(ot,d),c=e,()=>{i.removeEventListener(ot,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function _t(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),lt(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:mt(t);return i=i.replace(/ $/,`%20`),!n&&it.test(i)&&(i=r+i),new URL(i,r)}function vt(e,t,n=`/`){return yt(e,t,n,!1)}function yt(e,t,n,r,i){let a=Rt((typeof t==`string`?ht(t):t).pathname||`/`,n);if(a==null)return null;let o=i??bt(e),s=null,c=Lt(a);for(let e=0;s==null&&e<o.length;++e)s=Nt(o[e],c,r);return s}function bt(e){let t=xt(e);return Ct(t),t}function xt(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;lt(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Gt([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(lt(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),xt(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:jt(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=It(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of St(e.path))a(e,t,!0,n)}),t}function St(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=St(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function Ct(e){e.sort((e,t)=>e.score===t.score?Mt(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var wt=/^:[\w-]+$/,Tt=3,Et=2,Dt=1,Ot=10,kt=-2,At=e=>e===`*`;function jt(e,t){let n=e.split(`/`),r=n.length;return n.some(At)&&(r+=kt),t&&(r+=Et),n.filter(e=>!At(e)).reduce((e,t)=>e+(wt.test(t)?Tt:t===``?Dt:Ot),r)}function Mt(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Nt(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Ft(u,l,s.matcher,s.compiledParams):Pt(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Pt({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Gt([a,d.pathname]),pathnameBase:qt(Gt([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Gt([a,d.pathnameBase]))}return o}function Pt(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=It(e.path,e.caseSensitive,e.end);return Ft(e,t,n,r)}function Ft(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Kt(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Kt(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function It(e,t=!1,n=!0){ut(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Lt(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return ut(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Rt(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function zt(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?ht(e):e,a;return n?(n=Wt(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Bt(n.substring(1),`/`):Bt(n,t)):a=t,{pathname:a,search:Jt(r),hash:Yt(i)}}function Bt(e,t){let n=Kt(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Vt(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ht(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Ut(e){let t=Ht(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function V(e,t,n,r=!1){let i;typeof e==`string`?i=ht(e):(i={...e},lt(!i.pathname||!i.pathname.includes(`?`),Vt(`?`,`pathname`,`search`,i)),lt(!i.pathname||!i.pathname.includes(`#`),Vt(`#`,`pathname`,`hash`,i)),lt(!i.search||!i.search.includes(`#`),Vt(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=zt(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Wt=e=>e.replace(/[\\/]{2,}/g,`/`),Gt=e=>Wt(e.join(`/`));function Kt(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var qt=e=>Kt(e).replace(/^\/*/,`/`),Jt=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Yt=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Xt=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Zt(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Qt(e){return Gt(e.map(e=>e.route.path).filter(Boolean))||`/`}var $t=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function en(e,t){let n=e;if(typeof n!=`string`||!rt.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if($t)try{let e=new URL(window.location.href),r=it.test(n)?new URL(at(n,e.protocol)):new URL(n),a=Rt(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{ut(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var tn=new URL(`http://localhost`);function nn(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),tn)}catch{return tn}}function rn(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function an(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function on(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!rn(i,n),s=!rn(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!an(e,i)||!rn(i,a)))throw Error(`External navigation is not allowed`)}var sn=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(sn);var cn=[`GET`,...sn];new Set(cn);var ln=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function un(e){try{return ln.includes(new URL(e).protocol)}catch{return!1}}var dn=k.createContext(null);dn.displayName=`DataRouter`;var fn=k.createContext(null);fn.displayName=`DataRouterState`;var pn=k.createContext(!1);function mn(){return k.useContext(pn)}var hn=k.createContext({isTransitioning:!1});hn.displayName=`ViewTransition`;var gn=k.createContext(new Map);gn.displayName=`Fetchers`;var _n=k.createContext(null);_n.displayName=`Await`;var vn=k.createContext(null);vn.displayName=`Navigation`;var yn=k.createContext(null);yn.displayName=`Location`;var bn=k.createContext({outlet:null,matches:[],isDataRoute:!1});bn.displayName=`Route`;var xn=k.createContext(null);xn.displayName=`RouteError`;var Sn=`REACT_ROUTER_ERROR`,Cn=`REDIRECT`,wn=`ROUTE_ERROR_RESPONSE`;function Tn(e){if(e.startsWith(`${Sn}:${Cn}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function En(e){if(e.startsWith(`${Sn}:${wn}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Xt(t.status,t.statusText,t.data)}catch{}}function Dn(e,{relative:t}={}){lt(On(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=k.useContext(vn),{hash:i,pathname:a,search:o}=Ln(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Gt([n,a])),r.createHref({pathname:s,search:o,hash:i})}function On(){return k.useContext(yn)!=null}function kn(){return lt(On(),`useLocation() may be used only in the context of a <Router> component.`),k.useContext(yn).location}var An=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function jn(e){k.useContext(vn).static||k.useLayoutEffect(e)}function Mn(){let{isDataRoute:e}=k.useContext(bn);return e?er():Nn()}function Nn(){lt(On(),`useNavigate() may be used only in the context of a <Router> component.`);let e=k.useContext(dn),{basename:t,navigator:n}=k.useContext(vn),{matches:r}=k.useContext(bn),{pathname:i}=kn(),a=JSON.stringify(Ut(r)),o=k.useRef(!1);return jn(()=>{o.current=!0}),k.useCallback((r,s={})=>{if(ut(o.current,An),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=V(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Gt([t,c.pathname])),on(typeof r==`string`?r:mt(r),n.createHref(c),nn(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var Pn=k.createContext(null);function Fn(e){let t=k.useContext(bn).outlet;return k.useMemo(()=>t&&k.createElement(Pn.Provider,{value:e},t),[t,e])}function In(){let{matches:e}=k.useContext(bn);return e[e.length-1]?.params??{}}function Ln(e,{relative:t}={}){let{matches:n}=k.useContext(bn),{pathname:r}=kn(),i=JSON.stringify(Ut(n));return k.useMemo(()=>V(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Rn(e,t){return zn(e,t)}function zn(e,t,n){lt(On(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=k.useContext(vn),{matches:i}=k.useContext(bn),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;nr(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
10
10
|
|
|
11
|
-
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=kn(),d;if(t){let e=typeof t==`string`?ht(t):t;lt(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):vt(e,{pathname:p});ut(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),ut(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Kn(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Gt([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Gt([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?k.createElement(yn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Bn(){let e=$n(),t=Zt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=k.createElement(k.Fragment,null,k.createElement(`p`,null,`💿 Hey developer 👋`),k.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,k.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,k.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),k.createElement(k.Fragment,null,k.createElement(`h2`,null,`Unexpected Application Error!`),k.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?k.createElement(`pre`,{style:i},n):null,o)}var Vn=k.createElement(Bn,null),Hn=class extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=En(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:k.createElement(bn.Provider,{value:this.props.routeContext},k.createElement(xn.Provider,{value:e,children:this.props.component}));return this.context?k.createElement(Wn,{error:e},t):t}};Hn.contextType=pn;var Un=new WeakMap;function Wn({children:e,error:t}){let{basename:n,navigator:r}=k.useContext(vn);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Tn(t.digest);if(e){let i=Un.get(t);if(i)throw i;let a=en(e.location,n),o=a.absoluteURL||a.to;if(on(e.location,o,nn(r),`allow-explicit`),un(o))throw Error(`Invalid redirect location`);if($t&&!Un.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Un.set(t,n),n}}return k.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Gn({routeContext:e,match:t,children:n}){let r=k.useContext(dn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement(bn.Provider,{value:e},n)}function Kn(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);lt(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Qt(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Vn,o&&(s<0&&c===0?(nr(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?k.createElement(n.route.Component,null):n.route.element?n.route.element:e,k.createElement(Gn,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?k.createElement(Hn,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function qn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jn(e){let t=k.useContext(dn);return lt(t,qn(e)),t}function Yn(e){let t=k.useContext(fn);return lt(t,qn(e)),t}function Xn(e){let t=k.useContext(bn);return lt(t,qn(e)),t}function Zn(e){let t=Xn(e),n=t.matches[t.matches.length-1];return lt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Qn(){return Zn(`useRouteId`)}function $n(){let e=k.useContext(xn),t=Yn(`useRouteError`),n=Zn(`useRouteError`);return e===void 0?t.errors?.[n]:e}function er(){let{router:e}=Jn(`useNavigate`),t=Zn(`useNavigate`),n=k.useRef(!1);return jn(()=>{n.current=!0}),k.useCallback(async(r,i={})=>{ut(n.current,An),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var tr={};function nr(e,t,n){!t&&!tr[e]&&(tr[e]=!0,ut(!1,n))}k.memo(rr);function rr({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return zn(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function ir({to:e,replace:t,state:n,relative:r}){lt(On(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=k.useContext(vn);ut(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=k.useContext(bn),{pathname:s}=kn(),c=Mn(),l=V(e,Ut(o),s,r===`path`);on(typeof e==`string`?e:mt(e),a.createHref(l),nn(a),`reject`);let u=JSON.stringify(l);return k.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function ar(e){return Fn(e.context)}function or(e){lt(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function sr({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){lt(!On(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=k.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=ht(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=k.useMemo(()=>{let e=Rt(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return ut(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:k.createElement(vn.Provider,{value:c},k.createElement(yn.Provider,{children:t,value:h}))}function cr({children:e,location:t}){return Rn(lr(e),t)}k.Component;function lr(e,t=[]){let n=[];return k.Children.forEach(e,(e,r)=>{if(!k.isValidElement(e))return;let i=[...t,r];if(e.type===k.Fragment){n.push.apply(n,lr(e.props.children,i));return}lt(e.type===or,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),lt(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=lr(e.props.children,i)),n.push(a)}),n}var ur=`get`,dr=`application/x-www-form-urlencoded`;function fr(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function pr(e){return fr(e)&&e.tagName.toLowerCase()===`button`}function mr(e){return fr(e)&&e.tagName.toLowerCase()===`form`}function hr(e){return fr(e)&&e.tagName.toLowerCase()===`input`}function gr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _r(e,t){return e.button===0&&(!t||t===`_self`)&&!gr(e)}var vr=null;function yr(){if(vr===null)try{new FormData(document.createElement(`form`),0),vr=!1}catch{vr=!0}return vr}var br=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function xr(e){return e!=null&&!br.has(e)?(ut(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${dr}"`),null):e}function Sr(e,t){let n,r,i,a,o;if(mr(e)){let o=e.getAttribute(`action`);r=o?Rt(o,t):null,n=e.getAttribute(`method`)||ur,i=xr(e.getAttribute(`enctype`))||dr,a=new FormData(e)}else if(pr(e)||hr(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Rt(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||ur,i=xr(e.getAttribute(`formenctype`))||xr(o.getAttribute(`enctype`))||dr,a=new FormData(o,e),!yr()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(fr(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=ur,r=null,i=dr,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function Cr(e,t){if(e===!1||e==null)throw Error(t)}function wr(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&Rt(i.pathname,t)===`/`?`${Kt(t)}/_root.${r}`:`${Kt(i.pathname)}.${r}`,i}async function Tr(e,t){if(e.id in t)return t[e.id];try{let n=await nt(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Er(e){return e!=null&&typeof e.page==`string`}function Dr(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Or(e,t,n){return Nr((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Tr(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Dr).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function kr(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Ar(e,t,{includeHydrateFallback:n}={}){return jr(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function jr(e){return[...new Set(e)]}function Mr(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Nr(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Er(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Mr(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Pr(){let e=k.useContext(dn);return Cr(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Fr(){let e=k.useContext(fn);return Cr(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Ir=k.createContext(void 0);Ir.displayName=`FrameworkContext`;function Lr(){let e=k.useContext(Ir);return Cr(e,`You must render this element inside a <HydratedRouter> element`),e}function Rr(e,t){let n=k.useContext(Ir),[r,i]=k.useState(!1),[a,o]=k.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=k.useRef(null);k.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),k.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:zr(s,p),onBlur:zr(c,m),onMouseEnter:zr(l,p),onMouseLeave:zr(u,m),onTouchStart:zr(d,p)}]:[a,f,{}]:[!1,f,{}]}function zr(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Br({page:e,...t}){let n=mn(),{nonce:r}=Lr(),{router:i}=Pr(),a=k.useMemo(()=>vt(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?k.createElement(Hr,{page:e,matches:a,...t}):k.createElement(Ur,{page:e,matches:a,...t})):null}function Vr(e){let{manifest:t,routeModules:n}=Lr(),[r,i]=k.useState([]);return k.useEffect(()=>{let r=!1;return Or(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Hr({page:e,matches:t,...n}){let r=kn(),{future:i}=Lr(),{basename:a}=Pr(),o=k.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=wr(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return k.createElement(k.Fragment,null,o.map(e=>k.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Ur({page:e,matches:t,...n}){let r=kn(),{future:i,manifest:a,routeModules:o}=Lr(),{basename:s}=Pr(),{loaderData:c,matches:l}=Fr(),u=k.useMemo(()=>kr(e,t,l,a,r,`data`),[e,t,l,a,r]),d=k.useMemo(()=>kr(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=k.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=wr(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=k.useMemo(()=>Ar(d,a),[d,a]),m=Vr(d);return k.createElement(k.Fragment,null,f.map(e=>k.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>k.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>k.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Wr(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}k.Component;var Gr=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Gr&&(window.__reactRouterVersion=`7.18.4`)}catch{}function Kr({basename:e,children:t,useTransitions:n,window:r}){let i=k.useRef();i.current??=ct({window:r,v5Compat:!0});let a=i.current,[o,s]=k.useState({action:a.action,location:a.location}),c=k.useCallback(e=>{n===!1?s(e):k.startTransition(()=>s(e))},[n]);return k.useLayoutEffect(()=>a.listen(c),[a,c]),k.createElement(sr,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var qr=k.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=k.useContext(vn),v=typeof l==`string`&&rt.test(l),y=en(l,h);l=y.to;let b=Dn(l,{relative:r}),x=kn(),S=null;if(o){let e=V(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Gt([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=Rr(n,p),E=Qr(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function D(t){e&&e(t),t.defaultPrevented||E(t)}let O=!(y.isExternal||i),A=k.createElement(`a`,{...p,...T,href:(O?S:void 0)||y.absoluteURL||b,onClick:O?D:e,ref:Wr(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?k.createElement(k.Fragment,null,A,k.createElement(Br,{page:b})):A});qr.displayName=`Link`;var Jr=k.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Ln(a,{relative:c.relative}),d=kn(),f=k.useContext(fn),{navigator:p,basename:m}=k.useContext(vn),h=f!=null&&ri(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Rt(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return k.createElement(qr,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});Jr.displayName=`NavLink`;var Yr=k.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=ur,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=k.useContext(vn),g=ti(),_=ni(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&rt.test(s);return k.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?k.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Yr.displayName=`Form`;function Xr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zr(e){let t=k.useContext(dn);return lt(t,Xr(e)),t}function Qr(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Mn(),d=kn(),f=Ln(e,{relative:o});return k.useCallback(p=>{if(_r(p,t)){p.preventDefault();let t=n===void 0?mt(d)===mt(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?k.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var $r=0,ei=()=>`__${String(++$r)}__`;function ti(){let{router:e}=Zr(`useSubmit`),{basename:t}=k.useContext(vn),n=Qn(),r=e.fetch,i=e.navigate;return k.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Sr(e,t);if(a.navigate===!1){let e=a.fetcherKey||ei();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function ni(e,{relative:t}={}){let{basename:n}=k.useContext(vn),r=k.useContext(bn);lt(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Ln(e||`.`,{relative:t})},o=kn();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Gt([n,a.pathname])),mt(a)}function ri(e,{relative:t}={}){let n=k.useContext(hn);lt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Zr(`useViewTransitionState`),i=Ln(e,{relative:t});if(!n.isTransitioning)return!1;let a=Rt(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Rt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Pt(i.pathname,o)!=null||Pt(i.pathname,a)!=null}function ii(e){let[t,n]=(0,k.useState)(null),[r,i]=(0,k.useState)(null),[a,o]=(0,k.useState)(!0),[s,c]=(0,k.useState)(0);return(0,k.useEffect)(()=>{let t=!0;return o(!0),i(null),e().then(e=>{t&&n(e)}).catch(()=>{t&&i(`request-failed`)}).finally(()=>{t&&o(!1)}),()=>{t=!1}},[e,s]),{data:t,error:r,loading:a,reload:(0,k.useCallback)(()=>c(e=>e+1),[])}}var ai=[{id:`p-001`,cover:`covers/p-001.jpg`,name:`长安十二时辰 · 重制`,logline:`上元节前夕,死囚张小敬受命拯救长安城,十二个时辰内揪出隐藏的阴谋。`,genre:`古装悬疑`,status:`shooting`,progress:62,members:[`沈青`,`陆离`,`顾云舟`],updatedAt:`2026-10-12T09:00:00.000Z`},{id:`p-002`,cover:`covers/p-002.jpg`,name:`星际摆渡人`,logline:`末日地球最后一位星际摆渡人,驾驶旧飞船护送三千沉睡者前往新家园。`,genre:`科幻`,status:`post`,progress:84,members:[`白鹿`,`程一苇`],updatedAt:`2026-10-11T14:30:00.000Z`},{id:`p-006`,name:`春潮`,logline:`小镇游泳队的天才少女与固执教练,向全国冠军发起最后一次冲击。`,genre:`运动励志`,status:`writing`,progress:21,members:[`江野`,`顾云舟`],updatedAt:`2026-10-10T16:20:00.000Z`},{id:`p-003`,cover:`covers/p-003.jpg`,name:`弄堂风云`,logline:`九十年代上海弄堂里,两家理发店三代人的恩怨与和解。`,genre:`年代剧`,status:`writing`,progress:37,members:[`苏晚晴`,`陈默`],updatedAt:`2026-10-08T10:15:00.000Z`},{id:`p-004`,name:`山海食肆`,logline:`一家深夜开张的小饭馆,每位客人都会带来一段山精海怪的故事。`,genre:`奇幻单元剧`,status:`planning`,progress:12,members:[`林小满`],updatedAt:`2026-10-05T20:45:00.000Z`},{id:`p-005`,cover:`covers/p-005.jpg`,name:`无声证词`,logline:`一位失聪法医通过微表情与物证破译凶案真相,却卷入旧日悬案。`,genre:`刑侦`,status:`released`,progress:100,members:[`段飞白`,`许知意`,`沈青`],updatedAt:`2026-09-28T08:00:00.000Z`}],oi=[{id:`a-001`,avatar:`avatars/a-001.jpg`,name:`沈青`,persona:`眉眼冷峻的刑侦专家,惯用低沉嗓音压住全场;长于审讯对手戏`,tags:[`悬疑`,`正剧`],projectCount:2,accent:`indigo`,createdAt:`2026-08-14T09:00:00.000Z`},{id:`a-002`,avatar:`avatars/a-002.jpg`,name:`白鹿`,persona:`清冷少女感,台词干净利落;在失重与奔跑戏里肢体控制力惊人`,tags:[`科幻`,`青春`],projectCount:1,accent:`cyan`,createdAt:`2026-09-02T09:00:00.000Z`},{id:`a-003`,name:`陆离`,persona:`古装贵公子气质,一柄长剑耍得行云流水,眼神戏尤其出彩`,tags:[`古装`,`武侠`],projectCount:3,accent:`amber`,createdAt:`2026-07-21T09:00:00.000Z`},{id:`a-004`,name:`苏晚晴`,persona:`江南梅雨养出来的温婉声线,一句沪语问候就能立住角色`,tags:[`年代`,`家庭`],projectCount:2,accent:`rose`,createdAt:`2026-06-30T09:00:00.000Z`},{id:`a-005`,avatar:`avatars/a-005.jpg`,name:`段飞白`,persona:`满脸风霜的硬汉,不用台词也能演完整场内心戏`,tags:[`刑侦`,`硬汉`],projectCount:4,accent:`emerald`,createdAt:`2026-05-18T09:00:00.000Z`},{id:`a-006`,name:`林小满`,persona:`自带笑点的元气少女音色,接梗速度比谁都快`,tags:[`奇幻`,`喜剧`],projectCount:1,accent:`violet`,createdAt:`2026-09-26T09:00:00.000Z`}],si=[{id:`s-001`,name:`长安西市 · 夜市`,description:`灯火通明的唐代夜市,人声鼎沸,摊位沿街铺开,远处鼓楼隐约可见。`,timeOfDay:`夜`,tags:[`外景`,`群像`],projectName:`长安十二时辰 · 重制`,createdAt:`2026-09-30T09:00:00.000Z`},{id:`s-002`,name:`飞船休眠舱`,description:`冷白色调的休眠舱阵列,指示灯规律明灭,舱窗外是缓慢旋转的星河。`,timeOfDay:`无自然光`,tags:[`内景`,`特效`],projectName:`星际摆渡人`,createdAt:`2026-10-06T09:00:00.000Z`},{id:`s-003`,name:`弄堂理发店 · 内`,description:`九十年代老式理发店,转灯、藤椅、大镜台,午后阳光斜切进店堂。`,timeOfDay:`日`,tags:[`内景`,`实景改造`],projectName:`弄堂风云`,createdAt:`2026-09-12T09:00:00.000Z`},{id:`s-004`,name:`深夜食肆 · 后厨`,description:`狭窄温热的后厨,灶火映红墙面,蒸汽从锅中腾起,挂满手写菜单。`,timeOfDay:`夜`,tags:[`内景`,`棚拍`],projectName:`山海食肆`,createdAt:`2026-10-01T09:00:00.000Z`}],ci=[{id:`c-001`,name:`唐代圆领袍 · 官差制式`,description:`深青色圆领袍配革带,袖口收窄便于动作,做旧处理体现风尘感。`,era:`唐`,tags:[`男装`,`动作戏`],createdAt:`2026-09-15T09:00:00.000Z`},{id:`c-002`,name:`星际制服 · 摆渡人款`,description:`哑光灰蓝连体服,反光条与旧化补丁,胸前磁吸式身份徽章。`,era:`近未来`,tags:[`科幻`,`系列化`],createdAt:`2026-10-09T09:00:00.000Z`},{id:`c-003`,name:`九十年代女装套装`,description:`碎花衬衫配高腰西裤,一副细框眼镜,还原九十年代都市女性日常。`,era:`九十年代`,tags:[`女装`,`年代`],createdAt:`2026-08-25T09:00:00.000Z`},{id:`c-004`,name:`山海食肆 · 围裙组合`,description:`粗麻围裙与绑袖,边缘烧毛处理,口袋插满调羹与试味签。`,era:`当代`,tags:[`餐饮`,`耐脏`],createdAt:`2026-10-02T09:00:00.000Z`}],li={draft:`草稿`,keyframe:`关键帧已定`,generating:`生成中`,ready:`成片就绪`},ui=[`固定`,`缓推`,`缓拉`,`左摇`,`右摇`,`跟移`,`手持`,`环绕`,`升格`,`航拍`];function di(e){return e.shots.reduce((e,t)=>e+t.duration,0)}function fi(e){let t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,`0`)}:${String(n).padStart(2,`0`)}`}var pi=[{id:`ep-001`,number:1,title:`起航`,logline:`末世最后一个清晨,摆渡人唤醒自己,也唤醒三千个沉睡的希望。`,shots:[{id:`sh-001`,code:`S01-01`,duration:5,description:`休眠舱阵列全景,三千个舱体在幽蓝冷光中规律呼吸,尘埃在光柱里缓慢漂浮。`,camera:`缓推`,line:`旁白:地球时间,清晨六点十一分。`,keyframe:{description:`冷蓝调休眠舱阵列,中央主光柱,极端对称构图`},status:`ready`},{id:`sh-002`,code:`S01-02`,duration:6,description:`主舱盖开启,白霜剥落。主角睁眼,瞳孔里映出舱内警报的红光。`,camera:`特写`,line:`主角(低声):……比预定,早了三年。`,keyframe:{description:`面部大特写,右半脸覆霜,左半脸映红色警报光`},status:`ready`},{id:`sh-003`,code:`S01-03`,duration:4,description:`主角漂浮穿过过渡舱走廊,失重状态下货物与私人物件缓缓散开。`,camera:`跟移`,keyframe:{description:`零重力走廊,漂浮的旧照片与工具,逆光剪影`},status:`generating`},{id:`sh-004`,code:`S01-04`,duration:7,description:`操纵舱全景。主角落座船长席,手指划过星图投影,定格在『新家园』坐标。`,camera:`环绕`,line:`主角:三千个人,一个目的地。够了。`,keyframe:{description:`环形操纵舱,星图投影铺满穹顶,人物居中偏左`},status:`keyframe`},{id:`sh-005`,code:`S01-05`,duration:4,description:`特写:枯瘦的手指按下点火键,指示灯由红转绿。`,camera:`特写`,keyframe:{description:`点火键特写,红绿光交界,金属磨损质感`},status:`draft`},{id:`sh-006`,code:`S01-06`,duration:8,description:`大远景。旧飞船挣脱空间站泊架,姿态引擎喷出淡蓝尾焰,缓缓转向深空。`,camera:`航拍`,line:`旁白:摆渡人出发。此去,不再回航。`,keyframe:{description:`深空大远景,飞船微小剪影,尾焰是唯一光源`},status:`draft`}]},{id:`ep-002`,number:2,title:`信号`,logline:`一段不该存在的求救信号,让三千个梦第一次动摇。`,shots:[{id:`sh-101`,code:`S02-01`,duration:6,description:`通讯台特写,绿色波形突然跃出杂讯,主角瞳孔收缩。`,camera:`固定`,keyframe:{description:`CRT 通讯台特写,绿色波形跃动`},status:`keyframe`},{id:`sh-102`,code:`S02-02`,duration:5,description:`主角贴着耳机侧耳,眉头从紧锁到松开——那是人类的语言。`,camera:`特写`,keyframe:{description:`侧耳特写,耳机轮廓压出浅痕`},status:`draft`},{id:`sh-103`,code:`S02-03`,duration:7,description:`驾驶员席与主角对望,两人之间悬着半明半暗的对峙光。`,camera:`过肩`,line:`驾驶员:航线是死的。可信号,是活的。`,keyframe:{description:`过肩对峙,明暗分割打光`},status:`draft`}]}],mi=`0.1.0`,hi={planning:`筹备中`,writing:`剧本创作`,shooting:`拍摄中`,post:`后期制作`,released:`已发布`};async function gi(e,t){try{return await xi(e)}catch{return t}}async function _i(e,t,n){try{let n=await fetch(e,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok)throw Error(String(n.status));return await n.json()}catch{return n()}}var vi=100;function yi(e){return vi+=1,`${e}-${vi}`}function bi(){return new Date().toISOString()}async function xi(e){let t=await fetch(e);if(!t.ok)throw Error(`请求失败 ${t.status}: ${e}`);return await t.json()}var Si={projects:()=>gi(`/api/projects`,ai),actors:()=>gi(`/api/actors`,oi),scenes:()=>gi(`/api/scenes`,si),costumes:()=>gi(`/api/costumes`,ci),createProject:e=>_i(`/api/projects`,e,()=>({id:yi(`p`),cover:e.cover,name:e.name,logline:e.logline??``,genre:e.genre??`未分类`,status:e.status??`planning`,progress:0,members:e.members??[],updatedAt:bi()})),createActor:e=>_i(`/api/actors`,e,()=>({id:yi(`a`),avatar:e.avatar,name:e.name,persona:e.persona??``,accent:`indigo`,tags:e.tags??[],projectCount:0,createdAt:bi()})),createScene:e=>_i(`/api/scenes`,e,()=>({id:yi(`s`),name:e.name,description:e.description??``,timeOfDay:e.timeOfDay??`日`,tags:e.tags??[],projectName:e.projectName??`未关联`,createdAt:bi()})),createCostume:e=>_i(`/api/costumes`,e,()=>({id:yi(`c`),name:e.name,description:e.description??``,era:e.era??`当代`,tags:e.tags??[],createdAt:bi()}))};function Ci(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=Ci(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function wi(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ci(e))&&(r&&(r+=` `),r+=t);return r}var Ti=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Ei=wi,Di=(e,t)=>n=>{if(t?.variants==null)return Ei(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=Ti(t)||Ti(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 Ei(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)},Oi=48,ki=(e,t=0)=>{let n=new Int32Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r)-Oi-t;return n},Ai=e=>{let t=new Int32Array(e.length+1);for(let n=0;n<e.length;n++)t[n+1]=t[n]+e[n];return t},ji=e=>{let t=new Int32Array(e.length),n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r)-Oi;n+=i>>>1^-(i&1),t[r]=n}return t},Mi=384,Ni=[],Pi=Ai(ki(`E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010`)),Fi=Ai(ki(`:11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3`)),Ii=`@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom`,Li=(()=>{let e=Pi.length-1,t=new Int32Array(e);for(let n=e-1;n>=0;n--){let e=1,r=n+1;for(let i=Pi[n];i<Pi[n+1];i++)e+=t[r],r+=t[r];t[n]=e}let n=new Int32Array(Pi[e]),r=0;for(let i=0;i<e;i++){let e=i+1;for(let a=Pi[i];a<Pi[i+1];a++)n[r++]=e,e+=t[e]}return n})(),Ri=ki(`02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000
ŏ0000000ŏ00000000000000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000`,1),zi=Ai(ki(`123333359346463635126536711576`)),Bi=ki(`93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0328432553;D>E?3257D>032585:0325B:;0328B:032`),Vi=ki(`012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EEJ4444::EE4444441691;644444114244444:;K6666555555555555555999666664444444444444444444444226?6:66644L9M?D:111::::6DE199`),Hi=ji(`020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200`),Ui=(()=>{let e=new Int32Array(319).fill(-1),t=ji(`02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222`),n=ji(`02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222`);for(let r=0;r<t.length;r++)e[t[r]]=n[r];return e})(),Wi=`container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover| gradient-to-b gradient-to-bl gradient-to-br gradient-to-l gradient-to-r gradient-to-t gradient-to-tl gradient-to-tr none|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform`.split(`|`).map(e=>{let t=e.split(` `),n=t.shift();for(let e=0;e<t.length;e++)t[e]=n+t[e];return t}),Gi=ji(`0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422`),Ki=ji(`ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>ʶ22ʷʺʷ2ʸʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622`),qi=ji(`02222222222222222222222222222222222222222222222222222222222222222202022222222222EH2200IL021042222Y\\222IL0cf2e10j2222U00X202[^2y0000120|{~22
:22|22222222222G000qOVI00000}2>40000B00000I¨©000¬00000000000000021M®00°000000000000000000000222HGHa1º222¿2À2222ÉÌ000°2±`),Ji=new Int32Array(995),Yi=new Int32Array(995),Xi=new Int32Array(995),Zi=``,Qi=new Int32Array(1038);{let e=new Map,t=0,n=0;for(let r=0;r<Gi.length;r++)for(let i of Wi[qi[r]]){let a=e.get(i);a===void 0&&(a=t++,e.set(i,a),Qi[a*2]=Zi.length,Qi[a*2+1]=i.length,Zi+=i),Ji[n]=Gi[r],Yi[n]=Ki[r],Xi[n]=a,n++}}var $i=ji(`0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p`),ea=Ai(ki(`1::24444432:442:44:44>222222:44:4421322511111311111114`)),ta=ji(`24A;33N=C@H4A;33N=C@<27;83:;8393NQ:3NQʰ222ˉºŴŽ2R2=18cƴÅŇ=cĞÛC1ƈǝȈ:ħ25=11D3A@4=<1;1DEr25;11B3?<6;:371BCn9@7=<8192>2E121@9@EHE@9>2T25511<398454131<=V25511<398454131<=ƧNž2Đå242L222290000f22500ɛ000ǘ222`),na=ki(`ij`),H=ki(``),ra=ki(`1`),ia={GROUP_COUNT:Mi,customValidatorNames:Ni,edgeStart:Pi,labelStart:Fi,labelText:Ii,edgeTarget:Li,nodeGroup:Ri,nodeVlist:Ui,vlistPat:zi,vlistOps:Bi,vlistRef:Vi,vlistGroup:Hi,litAnchor:Ji,litGroup:Yi,litPool:Xi,poolOffsets:Qi,poolText:Zi,adjGid:$i,adjStart:ea,adjTgt:ta,patGid:na,patTgt:H,postfixLookupGroups:ra,orderSensitiveModifiers:`* ** after backdrop before details-content file first-letter first-line marker placeholder selection`},aa=`line`in Error(),oa=-1,sa=-1,ca=(e,t,n)=>{let r=2166136261;for(let i=t;i<n;i++)r=Math.imul(r^e.charCodeAt(i),16777619);return r},la=(e,t,n)=>{let r=n-t,i=Math.imul(r,2654435761)^e.charCodeAt(t);if(r>3){let a=r>>2,o=r>>1;i=Math.imul(i^e.charCodeAt(t+1)<<8^e.charCodeAt(t+2)<<16^e.charCodeAt(t+a),2246822507),i=Math.imul(i^e.charCodeAt(t+o)<<8^e.charCodeAt(t+o+a)<<16^e.charCodeAt(n-3),3266489909),i^=e.charCodeAt(n-2)<<8^e.charCodeAt(n-1)<<16;for(let r=t+3,a=n-4;r<t+8&&r<a;r++,a--)i=Math.imul(i^e.charCodeAt(r)^e.charCodeAt(a)<<8,16777619)}return i^i>>>15},ua=(e,t,n={})=>{let{GROUP_COUNT:r,edgeStart:i,labelStart:a,labelText:o,edgeTarget:s,nodeGroup:c,nodeVlist:l,vlistPat:u,vlistOps:d,vlistRef:f,vlistGroup:p,litAnchor:m,litGroup:h,litPool:g,poolOffsets:_,poolText:v,adjGid:y,adjStart:b,adjTgt:x,patGid:S,patTgt:C,postfixLookupGroups:w,customValidatorNames:T,orderSensitiveModifiers:E}=e,D=new Int32Array(r).fill(-1);for(let e=0;e<y.length;e++)D[y[e]]=e;let O=0;for(let e=0;e+1<b.length;e++){let t=b[e+1]-b[e];t>O&&(O=t)}let k=32;for(;k<2*(1+O+S.length);)k<<=1;let A=new Int32Array(f.length+1);for(let e=0;e<f.length;e++)A[e+1]=A[e]+u[f[e]+1]-u[f[e]];let j=new Uint8Array(r);for(let e=0;e<w.length;e++)j[w[e]]=1;let M=i.length-1,ee=new Uint8Array(M),N=0,P=!0;for(let e=0;e<m.length;e++){ee[m[e]]=1;let t=_[g[e]*2+1];t>N&&(N=t);let n=v.charCodeAt(_[g[e]*2]);(n===91||n===40)&&(P=!1)}let F=1;for(;F<m.length*2;)F<<=1;let te=new Int32Array(F).fill(-1);for(let e=0;e<m.length;e++){let t=_[g[e]*2],n=(ca(v,t,t+_[g[e]*2+1])^Math.imul(m[e],2654435761)|0)&F-1;for(;te[n]!==-1;)n=n+1&F-1;te[n]=e}let I=(e,t,n,r)=>{let i=(ca(t,n,r)^Math.imul(e,2654435761)|0)&F-1,a=r-n;for(;;){let r=te[i];if(r===-1)return-1;if(m[r]===e&&_[g[r]*2+1]===a){let e=_[g[r]*2],i=!0;for(let r=0;r<a;r++)if(v.charCodeAt(e+r)!==t.charCodeAt(n+r)){i=!1;break}if(i)return h[r]}i=i+1&F-1}},ne=n.cacheSize??8192,re=n.prefix??e.prefix??``,ie=re===``?``:re+`:`,ae=ie.length,oe=(T??[]).map(e=>{let n=t&&t[e];if(!n)throw Error(`cn: missing validator `+e);return n}),se=/\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$/,L=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ce=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,le=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ue=0,de=-1,fe=-1,R=-1,z=-1,pe=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||e===95,me=e=>/\s/.test(String.fromCharCode(e)),he=(e,t,n)=>{if(ue=0,de=-1,n-t<3)return;let r=e.charCodeAt(t),i=e.charCodeAt(n-1);if(r===91&&i===93)ue=1;else if(r===40&&i===41)ue=2;else return;R=t+1,z=n-1;let a=t+1;if(pe(e.charCodeAt(a))){for(a++;a<n-1;){let t=e.charCodeAt(a);if(!pe(t)&&t!==45)break;a++}a<n-2&&e.charCodeAt(a)===58&&(de=t+1,fe=a,R=a+1)}},ge=(e,t,n,r)=>{if(n-t!==r.length)return!1;for(let n=0;n<r.length;n++)if(e.charCodeAt(t+n)!==r.charCodeAt(n))return!1;return!0},_e=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,B=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ve=e=>!!e&&!Number.isNaN(Number(e)),ye=(e,t,n)=>{if(n-t<11||!ge(e,t,t+10,`@container`))return!1;if(e.charCodeAt(t+10)===47)return n-t>=12;let r=e.charCodeAt(t+11);return r===115&&n-t>=17&&ge(e,t+10,t+16,`-size/`)||r===110&&n-t>=19&&ge(e,t+10,t+18,`-normal/`)},be=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],xe=`length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight`.split(`|`).map(e=>e.split(` `)),Se=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],Ce=(e,t,n,r)=>{if(e>=10){if(e>=25)return oe[e-25](t.slice(n,r));let i=e-10;if(ue!==be[i])return!1;if(de>=0){for(let e of xe[i])if(ge(t,de,fe,e))return!0;return!1}switch(Se[i]){case 0:return!1;case 1:return!0;case 2:{let e=t.slice(R,z);return se.test(e)&&!L.test(e)}case 3:return ve(t.slice(R,z));case 4:return le.test(t.slice(R,z));default:return ce.test(t.slice(R,z))}}switch(e){case 0:return!0;case 1:return ue===0;case 2:return ue===1;case 3:return ue===2;case 4:return _e.test(t.slice(n,r));case 5:return ve(t.slice(n,r));case 6:{let e=t.slice(n,r);return!!e&&Number.isInteger(Number(e))}case 7:return r>n&&t.charCodeAt(r-1)===37&&ve(t.slice(n,r-1));case 8:return B.test(t.slice(n,r));default:return ye(t,n,r)}},we=new Set(typeof E==`string`?E.split(` `):E),Te=(e,t,n,r,i,a)=>{let o=ca(t,n,r)^(i?2654435769:0),s=e.get(o);if(s!==void 0)outer:for(let e=0;e<s.length;e++){let a=s[e];if(a.imp===i&&a.k.length===r-n){for(let e=0;e<a.k.length;e++)if(a.k.charCodeAt(e)!==t.charCodeAt(n+e))continue outer;return a.id}}else e.set(o,s=[]);let c=t.slice(n,r),l=a(c);return s.push({k:c,imp:i,id:l}),l},Ee=new Map,De=new Map,Oe=2,ke=4096,Ae=(e,t)=>{let n=[],r=0,i=0,a=0;for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);r===0&&i===0&&o===58?(n.push(e.slice(a,t)),a=t+1):o===91?r++:o===93?r--:o===40?i++:o===41&&i--}n.push(e.slice(a));let o=n[0];if(n.length>1){let e=[],t=[];for(let r of n)r.charCodeAt(0)===91||we.has(r)?(t.length&&(e.push(...t.sort()),t=[]),e.push(r)):t.push(r);t.length&&e.push(...t.sort()),o=e.join(`:`)}let s=t?o+` !`:o,c=De.get(s);return c===void 0&&De.set(s,c=Oe++),c},je=new Map,Me=r,Ne=r+4096,Pe=()=>Me++,Fe=2097152,Ie=8192,Le=new Int32Array(Ie),Re=Array(Ie).fill(null),ze=new Int32Array(Ie),Be=new Int32Array(Ie),Ve=new Uint8Array(Ie),He=0,Ue=(e,t,n,r,i,a,o,s)=>{let c=e;if(Re[e]!==null){if(Re[e|1]===null)c=e|1;else if(!(He++&3))c=e|He>>2&1;else return}Re[c]=t.slice(n,r),Le[c]=i,ze[c]=a,Be[c]=o,Ve[c]=s},We=()=>Re.fill(null),Ge=256,Ke=[new Int32Array(Ge),new Int32Array(Ge),new Int32Array(Ge),new Int32Array(Ge)],[qe,Je,Ye,Xe]=Ke,Ze=new Uint8Array(Ge),Qe=new Uint8Array(Ge),$e=()=>{Ge*=2,Ke=Ke.map(e=>{let t=new Int32Array(Ge);return t.set(e),t}),[qe,Je,Ye,Xe]=Ke;let e=new Uint8Array(Ge);e.set(Ze),Ze=e,Qe=new Uint8Array(Ge)},et=64,tt=new Int32Array(et),nt=new Int32Array(et),rt=new Int32Array(r),it=2048,at=21,ot=new Float64Array(it),st=new Int32Array(it),ct=0,lt=(e,t)=>{if(e===0&&t<r)return rt[t]===ct?1:(rt[t]=ct,0);let n=e*2097152+t+1,i=Math.imul(n,2654435761)>>>at;for(;st[i]===ct;){if(ot[i]===n)return 1;i=i+1&it-1}return ot[i]=n,st[i]=ct,0},ut=(e,t,n,r,i)=>{if(n-t>=2&&e.charCodeAt(t)===91&&e.charCodeAt(n-1)===93){let r=-1;for(let i=t+1;i<n-1;i++)if(e.charCodeAt(i)===58){r=i;break}return r===-1||r===t+1?oa:Te(je,e,t+1,r,0,Pe)}if(r>=0&&c[r]>=0)return c[r];for(let t=i-1;t>=0;t--){let r=nt[t];if(r>n)continue;let i=tt[t],a=n-r;if(ee[i]===1&&a>0&&a<=N){let t=e.charCodeAt(r);if(P===!1||t!==91&&t!==40){let t=I(i,e,r,n);if(t>=0)return t}}let o=l[i];if(o<0)continue;let s=f[o],c=u[s],m=u[s+1];if(c===m)continue;he(e,r,n);let h=A[o]-c;for(let t=c;t<m;t++)if(Ce(d[t],e,r,n))return p[h+t]}return oa},dt=e=>{let t=e.length,n=0,c=0,u=!1;(Oe>ke||Ee.size>ke)&&(Ee=new Map,De=new Map,Oe=2,We()),Me>Ne&&(je=new Map,Me=r,We());let d=0;for(;d<t;){let f=e.charCodeAt(d);if(f===32||f>=9&&f<=13||f>=160&&me(f)){f!==32&&(u=!0),d++;continue}let p=d,m=0;for(;d<t;){if(f=e.charCodeAt(d),f<=32){if(f===32)break;if(f>=9&&f<=13){u=!0;break}}else if(f>=160&&me(f)){u=!0;break}m=Math.imul(m^f,16777619),d++}let h=d,g=h-p;n===Ge&&$e();let _=n++;qe[_]=p,Je[_]=h,c+=g,m^=Math.imul(g,2654435761);let v=m^m>>>15,y=v&8190;{let t=-1;if(Le[y]===v&&Re[y]!==null&&Re[y].length===g?t=y:Le[y|1]===v&&Re[y|1]!==null&&Re[y|1].length===g&&(t=y|1),t>=0){let n=Re[t],r=!0;for(let t=0;t<g;t++)if(n.charCodeAt(t)!==e.charCodeAt(p+t)){r=!1;break}if(r){Ye[_]=ze[t],Xe[_]=Be[t],Ze[_]=Ve[t];continue}}}let b=p;if(ae!==0){if(h-p<=ae||!e.startsWith(ie,p)){Ye[_]=oa,Ue(y,e,p,h,v,oa,0,0);continue}b=p+ae}let x=0,S=0,C=-1,w=-1;for(let t=b;t<h;t++){let n=e.charCodeAt(t);if(x===0&&S===0){if(n===58){C=t;continue}if(n===47){w=t;continue}}n===91?x++:n===93?x--:n===40?S++:n===41&&S--}let T=C>=b?C+1:b,E=T,D=h,O=!1,k=0;D>E&&e.charCodeAt(D-1)===33?(O=!0,D--):D>E&&e.charCodeAt(E)===33&&(O=!0,E++,k=1);let A=-1;w>T&&(A=w+k,A>=D&&(A=-1));let M=E;D-E>1&&e.charCodeAt(E)===45&&(M=E+1);let N=0,P=0,F=0,te=-1,I=0;(l[0]>=0||ee[0]===1)&&(tt[0]=0,nt[0]=M,I=1);let ne=sa,re=0;for(let t=M;t<D;t++)if(t===A&&(ne=P<F?sa:N,re=I),N!==sa){let n=e.charCodeAt(t),r=-1;if(P<F)o.charCodeAt(P)===n?(P++,P===F&&(r=N=te)):N=sa;else{let e=i[N],t=i[N+1],c=sa;for(let i=e;i<t;i++){let e=a[i];if(o.charCodeAt(e)===n){a[i+1]-e===1?r=c=s[i]:(P=e+1,F=a[i+1],te=s[i],c=N);break}}N=c}if(r>=0&&(l[r]>=0||ee[r]===1)&&t+1<D&&e.charCodeAt(t+1)===45){if(I===et){et*=2;let e=new Int32Array(et);e.set(tt),tt=e;let t=new Int32Array(et);t.set(nt),nt=t}tt[I]=r,nt[I]=t+2,I++}}A===D&&(ne=P<F?sa:N,re=I);let oe=P<F?sa:N,se,L=!1;if(A>=0){if(L=!0,se=ut(e,E,A,ne,re),se!==oa&&se<r&&j[se]){let t=ut(e,E,D,oe,I);t!==oa&&t!==se&&(se=t,L=!1)}else se===oa&&(se=ut(e,E,D,oe,I),L=!1)}else se=ut(e,E,D,oe,I);let ce=0,le=0;se===oa?Ye[_]=oa:(le=+!!L,ce=b>=C?+!!O:Te(Ee,e,b,C,+!!O,e=>Ae(e,O)),Ye[_]=se,Ze[_]=le,Xe[_]=ce),Ue(y,e,p,h,v,se,ce,le)}if(n===0)return``;if(n===1)return qe[0]===0&&Je[0]===t?e:e.slice(qe[0],Je[0]);if(n*k>it){for(;n*k>it;)it<<=1,at--;ot=new Float64Array(it),st=new Int32Array(it)}if(Oe>=Fe||Me>=Fe)throw Error(`cn: too many distinct classes in one merge`);ct=ct+1|0,ct===0&&(rt.fill(0),st.fill(0),ct=1);let f=!1;for(let e=n-1;e>=0;e--){let t=Ye[e];if(t===oa){Qe[e]=1;continue}let n=Xe[e];if(lt(n,t)===1)Qe[e]=0,f=!0;else if(Qe[e]=1,t<r){let r=D[t];if(r>=0)for(let e=b[r];e<b[r+1];e++)lt(n,x[e]);if(Ze[e]&1)for(let e=0;e<S.length;e++)S[e]===t&<(n,C[e])}}if(!f&&!u&&t===c+n-1)return e;let p=``,m=0;for(;m<n;){if(!Qe[m]){m++;continue}let t=qe[m],r=Je[m],i=m+1;for(;i<n&&Qe[i]&&qe[i]===r+1&&e.charCodeAt(r)===32;)r=Je[i],i++;p.length>0&&(p+=` `),p+=e.slice(t,r),m=i}return p},ft=16384,pt=new Int32Array(ft*2),mt=0,ht=1,gt=Object.create(null),_t=Object.create(null),vt=new Map,yt=new Map,bt=0,xt=0,St=()=>{mt^=ft,ht=ht+1|0,xt=0},Ct=e=>{let t=gt[e];if(t!==void 0)return t;let n=la(e,0,e.length),r=(n&16383)+mt,i=pt[r]===(n^ht)||pt[r^ft]===(n^ht-1);return i&&(t=_t[e],t!==void 0)?(gt[e]=t,t):(t=dt(e),i?(gt[e]=t,++bt>ne&&(bt=0,_t=gt,gt=Object.create(null),St())):(pt[r]=n^ht,++xt>ft&&St()),t)},wt=e=>{let t=vt.get(e);if(t!==void 0)return t;let n=la(e,0,e.length),r=(n&16383)+mt,i=pt[r]===(n^ht)||pt[r^ft]===(n^ht-1);return i&&(t=yt.get(e),t!==void 0)?(vt.set(e,t),t):(t=dt(e),i?(vt.set(e,t),++bt>ne&&(bt=0,yt=vt,vt=new Map,St())):(pt[r]=n^ht,++xt>ft&&St()),t)},Tt=e=>{let t=la(e,0,e.length),n=(t&16383)+mt;return pt[n]===(t^ht)||pt[n^ft]===(t^ht-1)||(pt[n]=t^ht,++xt>ft&&St(),!1)},Et=ne===0?dt:aa?e=>{let t=vt.get(e);return t===void 0?wt(e):t}:Ct;return{merge:function(){return arguments.length===1&&typeof arguments[0]==`string`?Et(arguments[0]):Et(pa.apply(null,arguments))},mergeString:Et,seenBefore:ne===0?()=>!1:Tt,mergeUncached:dt}},da=(e,t)=>{if(!e)return``;if(typeof e==`string`)return e;let n=``;if(typeof e.length==`number`&&(!t||Array.isArray(e))){let r=e;for(let e=0;e<r.length;e++){let i=r[e];if(!i)continue;let a=typeof i==`string`?i:da(i,t);a&&(n&&(n+=` `),n+=a)}return n}if(t){if(typeof e==`number`)return``+e;if(typeof e==`object`)for(let t in e)e[t]&&(n&&(n+=` `),n+=t)}return n},fa=(e,t)=>{let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(!i)continue;let a=typeof i==`string`?i:da(i,t);a&&(n&&(n+=` `),n+=a)}return n},pa=function(){return fa(arguments,!1)},ma=256,ha=16,ga=1024,_a=4096,va=(e,t)=>{let n=t===void 0?()=>!0:t.seenBefore,r=t===void 0?e:t.mergeUncached,i=new Map,a=new Map,o=0,s=null,c=null,l=[],u=[],d=0,f=(t,n,r)=>{c===null&&(c=Array(_a).fill(``),l=Array(_a).fill(``),u=Array(_a).fill(``));let i=la(t,0,t.length)&4094;if(c[i]===t&&l[i]===n)return u[i];if(c[i|1]===t&&l[i|1]===n)return u[i|1];let a=e(r?n+` `+t:t),o=c[i]===``?i:i|(c[i|1]===``?1:d++&1);return c[o]=t,l[o]=n,u[o]=a,a},p=(e,t,n,r)=>{let i=0;if(t){if(t!==e.a0)return!1;i=1}if(n){if(n!==(i===0?e.a0:e.a1))return!1;i++}if(r){if(r!==(i===0?e.a0:i===1?e.a1:e.a2))return!1;i++}return i===e.t},m=(e,t)=>{let n=e.a,r=0;for(let e=0;e<t.length;e++){let i=t[e];if(i){if(i!==n[r])return!1;r++}}return r===e.t},h=(t,c)=>{let l=t.length,u=s===null?null:s.n;if(!c){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let d=``,p=-1,h=0,g=!1;for(let e=0;e<l;e++){let n=t[e];if(n){if(typeof n!=`string`){if(n=t[e]=da(n,!0),!n)continue;g=!0}p<0&&(d=n,p=e),h++}}if(h===0)return``;if(h===1)return e(d);if(g){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let _=i.get(d);_===void 0&&(_=a.get(d),_!==void 0&&i.set(d,_));let v=null;if(_!==void 0){if(_.skip>0){_.skip--,s=null;let e=d;for(let n=p+1;n<l;n++){let r=t[n];r&&(e+=` `+r)}return f(e,``,!1)}let e=_.e;outer:for(let n=0;n<e.length;n++){let r=e[n];if(r.t!==h)continue;let i=r.a,a=1;for(let e=p+1;e<l;e++){let n=t[e];if(n&&n!==i[a++])continue outer}v=r;break}v!==null&&(_.miss=0)}if(v===null){let s=d,c=[d];for(let e=p+1;e<l;e++){let n=t[e];n&&(s+=` `+n,c.push(n))}if(!n(s))return r(s);v={r:e(s),t:c.length,a0:c[0],a1:c[1],a2:c[2]??``,a:c,n:null},_===void 0?i.set(d,_={e:[],miss:0,skip:0,at:0}):++_.miss>ha&&(_.miss=ha,_.skip=ga,_.e.length=0,_.at=0);let u=_.e;u.length<ma?u.push(v):(u[_.at]=v,_.at=_.at+1&255),++o>1e3&&(o=0,a=i,i=new Map)}return s!==null&&s!==v&&(s.n=v),s=v,v.r},g=t=>Array.isArray(t)?h(t.slice(),!1):e(da(t,!0));return function(t,n,r){let a=arguments.length;if((a|1)==3){let e=s;if(e!==null){let i=e.n;if(i!==null&&p(i,t,n,r))return s=i,i.r;if(e!==i&&p(e,t,n,r))return e.r}if(a===2&&typeof n==`string`&&n!==``){let e=i.get(t);if(e!==void 0&&e.skip>0)return e.skip--,s=null,f(n,t,!0)}return h([t,n,r],!0)}if(a===1)return typeof t==`string`?e(t):g(t);let o=s;if(o!==null){let e=o.n;if(e!==null){let t=e.a,n=0,r=!0;for(let e=0;e<a;e++){let i=arguments[e];if(i){if(i!==t[n]){r=!1;break}n++}}if(r&&n===e.t)return s=e,e.r}if(o!==e){let e=o.a,t=0,n=!0;for(let r=0;r<a;r++){let i=arguments[r];if(i){if(i!==e[t]){n=!1;break}t++}}if(n&&t===o.t)return o.r}}let c=[];for(let e=0;e<a;e++)c.push(arguments[e]);return h(c,!0)}},ya=ua(ia),U=va(ya.mergeString,ya);ya.merge;var ba=Object.defineProperty,xa=(e,t)=>ba(e,`name`,{value:t,configurable:!0});function Sa(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}xa(Sa,`setRef`);function Ca(...e){return t=>{let n=!1,r=e.map(e=>{let r=Sa(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():Sa(e[t],null)}}}}xa(Ca,`composeRefs`);function wa(...e){return k.useCallback(Ca(...e),e)}xa(wa,`useComposedRefs`);var Ta=Object.defineProperty,Ea=(e,t)=>Ta(e,`name`,{value:t,configurable:!0});function Da(e){let t=k.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=Ra(r),k.Children.forEach(r,e=>{if(Pa(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;Ia(n)&&typeof Ha==`function`;)n=Ha(n._payload);a=ja(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=k.cloneElement(a,void 0,s):!o&&k.Children.count(r)===1&&k.isValidElement(r)&&(a=r);let c=a?Na(a):void 0,l=wa(n,c);if(!a){if(r||r===0)throw Error(o?Va(e):Ba(e));return r}let u=Ma(i,a.props??{});return a.type!==k.Fragment&&(u.ref=n?l:c),k.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Ea(Da,`createSlot`);var Oa=Da(`Slot`),ka=Symbol.for(`radix.slottable`);function Aa(e){let t=Ea(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=ka,t}Ea(Aa,`createSlottable`);var ja=Ea((e,t)=>`child`in e.props?k.isValidElement(t)?k.cloneElement(t,void 0,e.props.children(t.props.children)):null:k.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function Ma(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(` `):r===`aria-describedby`&&(n[r]=za(a,i))}return{...e,...n}}Ea(Ma,`mergeProps`);function Na(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Ea(Na,`getElementRef`);function Pa(e){return k.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===ka}Ea(Pa,`isSlottable`);var Fa=Symbol.for(`react.lazy`);function Ia(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Fa&&`_payload`in e&&La(e._payload)}Ea(Ia,`isLazyComponent`);function La(e){return typeof e==`object`&&!!e&&`then`in e}Ea(La,`isPromiseLike`);function Ra(e){let t=e;for(;Ia(t)&&typeof Ha==`function`;)t=Ha(t._payload);return t}Ea(Ra,`useUnwrappedLazy`);function za(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Ea(za,`concatAriaDescribedby`);var Ba=Ea(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Va=Ea(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Ha=k.use,Ua=Object.defineProperty,Wa=(e,t)=>Ua(e,`name`,{value:t,configurable:!0}),Ga=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Da(`Primitive.${t}`),r=k.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,z.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ka(e,t){e&&B.flushSync(()=>e.dispatchEvent(t))}Wa(Ka,`dispatchDiscreteCustomEvent`);var qa=Object.defineProperty,Ja=(e,t)=>qa(e,`name`,{value:t,configurable:!0}),Ya=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Xa=k.forwardRef(Ja(function(e,t){return(0,z.jsx)(Ga.span,{...e,ref:t,style:{...Ya,...e.style}})},`VisuallyHidden`)),Za=Object.defineProperty,Qa=(e,t)=>Za(e,`name`,{value:t,configurable:!0});function $a(e,t){let n=k.createContext(t);n.displayName=e+`Context`;let r=Qa(e=>{let{children:t,...r}=e,i=k.useMemo(()=>r,Object.values(r));return(0,z.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=k.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Qa(i,`useContext`),[r,i]}Qa($a,`createContext`);function eo(e,t=[]){let n=[];function r(t,r){let i=k.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Qa(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=k.useMemo(()=>o,Object.values(o));return(0,z.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=k.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Qa(s,`useContext`),[o,s]}Qa(r,`createContext`);let i=Qa(()=>{let t=n.map(e=>k.createContext(e));return Qa(function(n){let r=n?.[e]||t;return k.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,to(i,...t)]}Qa(eo,`createContextScope`);function to(...e){let t=e[0];if(e.length===1)return t;let n=Qa(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Qa(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Qa(to,`composeContextScopes`);var no=globalThis?.document?k.useLayoutEffect:()=>{},ro=Object.defineProperty,io=(e,t)=>ro(e,`name`,{value:t,configurable:!0});function ao(e){let t=e+`CollectionProvider`,[n,r]=eo(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=io(e=>{let{scope:t,children:n}=e,r=k.useRef(null),a=k.useRef(new Map).current;return(0,z.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=Da(s),l=k.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=wa(t,a(s,n).collectionRef);return(0,z.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Da(u),p=k.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=k.useRef(null),s=wa(t,o),c=a(u,n);return k.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,z.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return k.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 io(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}io(ao,`createCollection`);var oo=new WeakMap,so=class e extends Map{static{io(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],oo.set(this,!0)}set(e,t){return oo.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=uo(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=co(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=co(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return co(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function co(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=lo(e,t);return n===-1?void 0:e[n]}io(co,`at`);function lo(e,t){let n=e.length,r=uo(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}io(lo,`toSafeIndex`);function uo(e){return e!==e||e===0?0:Math.trunc(e)}io(uo,`toSafeInteger`);function fo(e){let t=e+`CollectionProvider`,[n,r]=eo(t),[i,a]=n(t);i.displayName=e+`CollectionStableContextProvider`;let[o,s]=n(t);o.displayName=e+`CollectionStatefulContextProvider`;let c=io(({state:e,...t})=>e?(0,z.jsx)(u,{...t,state:e}):(0,z.jsx)(l,{...t}),`CollectionProvider`);c.displayName=t;let l=io(e=>{let t=_();return(0,z.jsx)(u,{...e,state:t})},`CollectionInit`);l.displayName=e+`CollectionInit`;let u=io(e=>{let{scope:t,children:n,state:r}=e,a=k.useRef(null),[s,c]=k.useState(null),l=wa(a,c),[u,d]=r,f=k.useRef(new so),p=k.useCallback(()=>{let e=f.current;return ho(e)||e.sort(go),e},[]);return k.useEffect(()=>{if(!s)return;let e=_o(()=>{d(e=>{let t=e.toSorted(go);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s,d]),(0,z.jsx)(i,{scope:t,collectionElementRef:l,collectionElementRefObject:a,getCollection:p,setCollection:d,registryRef:f,children:(0,z.jsx)(o,{scope:t,collectionElement:s,collection:u,children:n})})},`CollectionProviderImpl`);u.displayName=e+`CollectionProviderImpl`;let d=e+`CollectionSlot`,f=Da(d),p=k.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=wa(t,a(d,n).collectionElementRef);return(0,z.jsx)(f,{ref:i,children:r})});p.displayName=d;let m=e+`CollectionItemSlot`,h=Da(m),g=k.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=k.useRef(null),{setCollection:s,registryRef:c}=a(m,n),l=k.useRef(i);po(l.current,i)||(l.current=i);let u=l.current,d=wa(t,k.useCallback(e=>{let t=c.current;e?t.set(e,{...l.current,element:e}):o.current&&t.delete(o.current)},[c]),o);no(()=>{let e=o.current,t=c.current;e&&t.has(e)&&t.set(e,{...u,element:e})},[u,c]);let f=k.useRef(null);return k.useEffect(()=>{let e=o.current,t=f.current;((t?.element??null)!==e||e&&t?.itemData!==u)&&(f.current=e?{element:e,itemData:u}:null,s(n=>{let r=new so(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...u,element:e}),r.sort(go)}))}),k.useEffect(()=>()=>{let e=f.current;f.current=null,e&&s(t=>{if(!t.has(e.element))return t;let n=new so(t);return n.delete(e.element),n})},[s]),(0,z.jsx)(h,{"data-radix-collection-item":``,ref:d,children:r})});g.displayName=m;function _(){return k.useState(new so)}io(_,`useInitCollection`);function v(t){let{collection:n}=s(e+`CollectionConsumer`,t);return n}io(v,`useCollection`);function y(t){let{getCollection:n}=a(e+`CollectionConsumer`,t);return n}return io(y,`useGetCollection`),[{Provider:c,Slot:p,ItemSlot:g},{createCollectionScope:r,useCollection:v,useGetCollection:y,useInitCollection:_}]}io(fo,`createCollection`);function po(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}io(po,`shallowEqual`);function mo(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}io(mo,`isElementPreceding`);function ho(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}io(ho,`isInDocumentOrder`);function go(e,t){return!e[1].element||!t[1].element?0:mo(e[1].element,t[1].element)?-1:1}io(go,`sortByDocumentPosition`);function _o(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}io(_o,`getChildListObserver`);var vo=Object.defineProperty,yo=(e,t)=>vo(e,`name`,{value:t,configurable:!0}),bo=!!(typeof window<`u`&&window.document&&window.document.createElement);function W(e,t,{checkForDefaultPrevented:n=!0}={}){return yo(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}yo(W,`composeEventHandlers`);function xo(e){if(!bo)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}yo(xo,`getOwnerWindow`);function So(e){if(!bo)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}yo(So,`getOwnerDocument`);function Co(e,t=!1){let{activeElement:n}=So(e);if(!n?.nodeName)return null;if(wo(n)&&n.contentDocument)return Co(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=So(n).getElementById(e);if(t)return t}}return n}yo(Co,`getActiveElement`);function wo(e){return e.tagName===`IFRAME`}yo(wo,`isFrame`);var To=Object.defineProperty,Eo=(e,t)=>To(e,`name`,{value:t,configurable:!0}),Do=k.useEffectEvent,Oo=k.useInsertionEffect;function ko(e){if(typeof Do==`function`)return Do(e);let t=k.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Oo==`function`?Oo(()=>{t.current=e}):no(()=>{t.current=e}),k.useMemo(()=>((...e)=>t.current?.(...e)),[])}Eo(ko,`useEffectEvent`);var Ao=Object.defineProperty,jo=(e,t)=>Ao(e,`name`,{value:t,configurable:!0}),Mo=k.useInsertionEffect||no;function No({prop:e,defaultProp:t,onChange:n=jo(()=>{},`onChange`),caller:r}){let[i,a,o]=Po({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,k.useCallback(t=>{if(s){let n=Fo(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}jo(No,`useControllableState`);function Po({defaultProp:e,onChange:t}){let[n,r]=k.useState(e),i=k.useRef(n),a=k.useRef(t);return Mo(()=>{a.current=t},[t]),k.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}jo(Po,`useUncontrolledState`);function Fo(e){return typeof e==`function`}jo(Fo,`isFunction`);var Io=Symbol(`RADIX:SYNC_STATE`);function Lo(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=ko(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=k.useReducer((t,n)=>{if(n.type===Io)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=k.useRef(p);k.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=k.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return k.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:Io,state:i})},[i,d.state,c]),[h,f]}jo(Lo,`useControllableStateReducer`);var Ro=Object.defineProperty,G=(e,t)=>Ro(e,`name`,{value:t,configurable:!0});function zo(e,t){return k.useReducer((e,n)=>t[e][n]??e,e)}G(zo,`useStateMachine`);var Bo=G(e=>{let{present:t,children:n}=e,r=Vo(t),i=typeof n==`function`?n({present:r.isPresent}):k.Children.only(n),a=Uo(r.ref,Go(i));return typeof n==`function`||r.isPresent?k.cloneElement(i,{ref:a}):null},`Presence`);function Vo(e){let[t,n]=k.useState(),r=k.useRef(null),i=k.useRef(e),a=k.useRef(`none`),o=k.useRef(void 0),[s,c]=zo(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return k.useEffect(()=>{s===`mounted`?(a.current=o.current??Wo(r.current),o.current=void 0):a.current=`none`},[s]),no(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Wo(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),no(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=G(a=>{let o=Wo(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=G(e=>{e.target===t&&(a.current=Wo(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:k.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Wo(t)}else r.current=null;n(e)},[])}}G(Vo,`usePresence`);function Ho(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}G(Ho,`setRef`);function Uo(...e){let t=k.useRef(e);return t.current=e,k.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Ho(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():Ho(n[e],null)}}},[])}G(Uo,`useStableComposedRefs`);function Wo(e){return e?.animationName||`none`}G(Wo,`getAnimationName`);function Go(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)}G(Go,`getElementRef`);var Ko=Object.defineProperty,qo=(e,t)=>Ko(e,`name`,{value:t,configurable:!0}),Jo=k.useId||(()=>void 0),Yo=0;function Xo(e){let[t,n]=k.useState(Jo());return no(()=>{e||n(e=>e??String(Yo++))},[e]),e||(t?`radix-${t}`:``)}qo(Xo,`useId`);var Zo=Object.defineProperty,Qo=(e,t)=>Zo(e,`name`,{value:t,configurable:!0}),$o={LTR:`ltr`,RTL:`rtl`},es=k.createContext(void 0);function ts(e){let t=k.useContext(es);return e||t||$o.LTR}Qo(ts,`useDirection`);var ns=Object.defineProperty,rs=(e,t)=>ns(e,`name`,{value:t,configurable:!0}),is=k.useInsertionEffect;function as(e){let t=k.useRef(e);return typeof is==`function`?is(()=>{t.current=e}):no(()=>{t.current=e}),k.useMemo(()=>((...e)=>t.current?.(...e)),[])}rs(as,`useCallbackRef`);var os=Object.defineProperty,ss=(e,t)=>os(e,`name`,{value:t,configurable:!0}),cs=`dismissableLayer.update`,ls=`dismissableLayer.pointerDownOutside`,us=`dismissableLayer.focusOutside`,ds,fs=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ps=k.forwardRef(ss(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=k.useContext(fs),[d,f]=k.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=k.useState({}),h=wa(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=k.useRef(!1),C=gs(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:k.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=_s(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),T=d?y===g.length-1:!1,E=as(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return k.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T,E]),k.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ds=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),vs(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=ds))}},[d,p,n,u]),k.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),vs())},[d,u]),k.useEffect(()=>{let e=ss(()=>m({}),`handleUpdate`);return document.addEventListener(cs,e),()=>document.removeEventListener(cs,e)},[]),(0,z.jsx)(Ga.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)})},`DismissableLayer`));function ms(){let e=k.useContext(fs),[t,n]=k.useState(null);return k.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}ss(ms,`useDismissableLayerSurface`);var hs=ss(()=>!0,`IS_TRUE`);function gs(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=hs}=t,s=as(e),c=k.useRef(!1),l=k.useRef(!1),u=k.useRef(new Map),d=k.useRef(()=>{});return k.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}ss(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}ss(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}ss(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}ss(p,`handleInteractionBubble`);let m=ss(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||ys(ls,s,p,{discrete:!0})};if(ss(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:ss(()=>c.current=!0,`onPointerDownCapture`)}}ss(gs,`usePointerDownOutside`);function _s(e,t=globalThis?.document){let n=as(e),r=k.useRef(!1);return k.useEffect(()=>{let e=ss(e=>{e.target&&!r.current&&ys(us,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:ss(()=>r.current=!0,`onFocusCapture`),onBlurCapture:ss(()=>r.current=!1,`onBlurCapture`)}}ss(_s,`useFocusOutside`);function vs(){let e=new CustomEvent(cs);document.dispatchEvent(e)}ss(vs,`dispatchUpdate`);function ys(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?Ka(i,a):i.dispatchEvent(a)}ss(ys,`handleAndDispatchCustomEvent`);var bs=Object.defineProperty,xs=(e,t)=>bs(e,`name`,{value:t,configurable:!0}),Ss=`focusScope.autoFocusOnMount`,Cs=`focusScope.autoFocusOnUnmount`,ws={bubbles:!1,cancelable:!0},Ts=k.forwardRef(xs(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=k.useState(null),u=as(a),d=as(o),f=k.useRef(null),p=wa(t,l),m=k.useRef(i);k.useEffect(()=>{m.current=i});let h=k.useCallback(e=>e?c?.contains(e)?!0:!!m.current?.some(t=>t.contains(e)):!1,[c]),g=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(r){let e=function(e){if(g.paused||!c)return;let t=e.target;h(t)?f.current=t:Is(f.current,{select:!0})},t=function(e){if(g.paused||!c)return;let t=e.relatedTarget;t!==null&&(h(t)||Is(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Is(c)};xs(e,`handleFocusIn`),xs(t,`handleFocusOut`),xs(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,g.paused,h]),k.useEffect(()=>{if(c){Ls.add(g);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(Ss,ws);c.addEventListener(Ss,u),c.dispatchEvent(t),t.defaultPrevented||(As(Bs(Ms(c)),{select:!0}),document.activeElement===e&&Is(c))}return()=>{c.removeEventListener(Ss,u);let t=c.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(Cs,ws);c.addEventListener(Cs,d),c.dispatchEvent(r),r.defaultPrevented||Is(e??t.body,{select:!0}),c.removeEventListener(Cs,d),Ls.remove(g)},0)}}},[c,u,d,g]);let _=k.useCallback(e=>{if(!n&&!r||g.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]=js(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Is(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Is(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,z.jsx)(Ga.div,{tabIndex:-1,...s,ref:p,onKeyDown:_})},`FocusScope`)),Es=k.createContext(null);function Ds({registry:e,children:t}){return e?(0,z.jsx)(Es.Provider,{value:e,children:t}):t}xs(Ds,`FocusScopeBranchProvider`);function Os(){let[e,t]=k.useState([]);return{nodes:e,registry:k.useMemo(()=>({add:xs(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:xs(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}xs(Os,`useFocusScopeBranchRegistry`);function ks(e){let t=k.useContext(Es);k.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}xs(ks,`useFocusScopeBranch`);function As(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Is(r,{select:t}),document.activeElement!==n)return}xs(As,`focusFirst`);function js(e){let t=Ms(e);return[Ns(t,e),Ns(t.reverse(),e)]}xs(js,`getTabbableEdges`);function Ms(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:xs(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}xs(Ms,`getTabbableCandidates`);function Ns(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Ps(r,{upTo:t})))return r}xs(Ns,`findVisible`);function Ps(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}xs(Ps,`isHidden`);function Fs(e){return e.tagName===`INPUT`&&typeof e.select==`function`}xs(Fs,`isSelectableInput`);function Is(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&Fs(e)&&t&&e.select()}}xs(Is,`focus`);var Ls=Rs();function Rs(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=zs(e,t),e.unshift(t)},remove(t){e=zs(e,t),e[0]?.resume()}}}xs(Rs,`createFocusScopesStack`);function zs(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}xs(zs,`arrayRemove`);function Bs(e){return e.filter(e=>e.tagName!==`A`)}xs(Bs,`removeLinks`);var Vs=Object.defineProperty,Hs=k.forwardRef(((e,t)=>Vs(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=k.useState(!1);no(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?B.createPortal((0,z.jsx)(Ga.div,{...r,ref:t}),o):null},`Portal`)),Us=Object.defineProperty,Ws=(e,t)=>Us(e,`name`,{value:t,configurable:!0}),Gs=0,Ks=null;function qs(e){return Js(),e.children}Ws(qs,`FocusGuards`);function Js(){k.useEffect(()=>{Ks||={start:Ys(),end:Ys()};let{start:e,end:t}=Ks;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Gs++,()=>{Gs===1&&(Ks?.start.remove(),Ks?.end.remove(),Ks=null),Gs=Math.max(0,Gs-1)}},[])}Ws(Js,`useFocusGuards`);function Ys(){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}Ws(Ys,`createFocusGuard`);var Xs=function(){return Xs=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},Xs.apply(this,arguments)};function Zs(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 Qs(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 $s=`right-scroll-bar-position`,ec=`width-before-scroll-bar`,tc=`with-scroll-bars-hidden`,nc=`--removed-body-scroll-bar-size`;function rc(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function ic(e,t){var n=(0,k.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 ac=typeof window<`u`?k.useLayoutEffect:k.useEffect,oc=new WeakMap;function sc(e,t){var n=ic(t||null,function(t){return e.forEach(function(e){return rc(e,t)})});return ac(function(){var t=oc.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||rc(e,null)}),i.forEach(function(e){r.has(e)||rc(e,a)})}oc.set(n,e)},[e]),n}function cc(e){return e}function lc(e,t){t===void 0&&(t=cc);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 uc(e){e===void 0&&(e={});var t=lc(null);return t.options=Xs({async:!0,ssr:!1},e),t}var dc=function(e){var t=e.sideCar,n=Zs(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 k.createElement(r,Xs({},n))};dc.isSideCarExport=!0;function fc(e,t){return e.useMedium(t),dc}var pc=uc(),mc=function(){},hc=k.forwardRef(function(e,t){var n=k.useRef(null),r=k.useState({onScrollCapture:mc,onWheelCapture:mc,onTouchMoveCapture:mc}),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=Zs(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=sc([n,t]),C=Xs(Xs({},b),i);return k.createElement(k.Fragment,null,u&&k.createElement(x,{sideCar:pc,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?k.cloneElement(k.Children.only(s),Xs(Xs({},C),{ref:S})):k.createElement(v,Xs({},C,{className:c,ref:S}),s))});hc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},hc.classNames={fullWidth:ec,zeroRight:$s};var gc=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function _c(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=gc();return t&&e.setAttribute(`nonce`,t),e}function vc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yc(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var bc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_c())&&(vc(t,n),yc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},xc=function(){var e=bc();return function(t,n){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Sc=function(){var e=xc();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Cc={left:0,top:0,right:0,gap:0},wc=function(e){return parseInt(e||``,10)||0},Tc=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[wc(n),wc(r),wc(i)]},Ec=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Cc;var t=Tc(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])}},Dc=Sc(),Oc=`data-scroll-locked`,kc=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
11
|
+
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=kn(),d;if(t){let e=typeof t==`string`?ht(t):t;lt(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):vt(e,{pathname:p});ut(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),ut(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Kn(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Gt([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Gt([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?k.createElement(yn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Bn(){let e=$n(),t=Zt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=k.createElement(k.Fragment,null,k.createElement(`p`,null,`💿 Hey developer 👋`),k.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,k.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,k.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),k.createElement(k.Fragment,null,k.createElement(`h2`,null,`Unexpected Application Error!`),k.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?k.createElement(`pre`,{style:i},n):null,o)}var Vn=k.createElement(Bn,null),Hn=class extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=En(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:k.createElement(bn.Provider,{value:this.props.routeContext},k.createElement(xn.Provider,{value:e,children:this.props.component}));return this.context?k.createElement(Wn,{error:e},t):t}};Hn.contextType=pn;var Un=new WeakMap;function Wn({children:e,error:t}){let{basename:n,navigator:r}=k.useContext(vn);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Tn(t.digest);if(e){let i=Un.get(t);if(i)throw i;let a=en(e.location,n),o=a.absoluteURL||a.to;if(on(e.location,o,nn(r),`allow-explicit`),un(o))throw Error(`Invalid redirect location`);if($t&&!Un.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Un.set(t,n),n}}return k.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Gn({routeContext:e,match:t,children:n}){let r=k.useContext(dn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement(bn.Provider,{value:e},n)}function Kn(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);lt(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Qt(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Vn,o&&(s<0&&c===0?(nr(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?k.createElement(n.route.Component,null):n.route.element?n.route.element:e,k.createElement(Gn,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?k.createElement(Hn,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function qn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jn(e){let t=k.useContext(dn);return lt(t,qn(e)),t}function Yn(e){let t=k.useContext(fn);return lt(t,qn(e)),t}function Xn(e){let t=k.useContext(bn);return lt(t,qn(e)),t}function Zn(e){let t=Xn(e),n=t.matches[t.matches.length-1];return lt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Qn(){return Zn(`useRouteId`)}function $n(){let e=k.useContext(xn),t=Yn(`useRouteError`),n=Zn(`useRouteError`);return e===void 0?t.errors?.[n]:e}function er(){let{router:e}=Jn(`useNavigate`),t=Zn(`useNavigate`),n=k.useRef(!1);return jn(()=>{n.current=!0}),k.useCallback(async(r,i={})=>{ut(n.current,An),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var tr={};function nr(e,t,n){!t&&!tr[e]&&(tr[e]=!0,ut(!1,n))}k.memo(rr);function rr({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return zn(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function ir({to:e,replace:t,state:n,relative:r}){lt(On(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=k.useContext(vn);ut(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=k.useContext(bn),{pathname:s}=kn(),c=Mn(),l=V(e,Ut(o),s,r===`path`);on(typeof e==`string`?e:mt(e),a.createHref(l),nn(a),`reject`);let u=JSON.stringify(l);return k.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function ar(e){return Fn(e.context)}function or(e){lt(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function sr({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){lt(!On(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=k.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=ht(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=k.useMemo(()=>{let e=Rt(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return ut(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:k.createElement(vn.Provider,{value:c},k.createElement(yn.Provider,{children:t,value:h}))}function cr({children:e,location:t}){return Rn(lr(e),t)}k.Component;function lr(e,t=[]){let n=[];return k.Children.forEach(e,(e,r)=>{if(!k.isValidElement(e))return;let i=[...t,r];if(e.type===k.Fragment){n.push.apply(n,lr(e.props.children,i));return}lt(e.type===or,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),lt(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=lr(e.props.children,i)),n.push(a)}),n}var ur=`get`,dr=`application/x-www-form-urlencoded`;function fr(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function pr(e){return fr(e)&&e.tagName.toLowerCase()===`button`}function mr(e){return fr(e)&&e.tagName.toLowerCase()===`form`}function hr(e){return fr(e)&&e.tagName.toLowerCase()===`input`}function gr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _r(e,t){return e.button===0&&(!t||t===`_self`)&&!gr(e)}var vr=null;function yr(){if(vr===null)try{new FormData(document.createElement(`form`),0),vr=!1}catch{vr=!0}return vr}var br=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function xr(e){return e!=null&&!br.has(e)?(ut(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${dr}"`),null):e}function Sr(e,t){let n,r,i,a,o;if(mr(e)){let o=e.getAttribute(`action`);r=o?Rt(o,t):null,n=e.getAttribute(`method`)||ur,i=xr(e.getAttribute(`enctype`))||dr,a=new FormData(e)}else if(pr(e)||hr(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Rt(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||ur,i=xr(e.getAttribute(`formenctype`))||xr(o.getAttribute(`enctype`))||dr,a=new FormData(o,e),!yr()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(fr(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=ur,r=null,i=dr,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function Cr(e,t){if(e===!1||e==null)throw Error(t)}function wr(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&Rt(i.pathname,t)===`/`?`${Kt(t)}/_root.${r}`:`${Kt(i.pathname)}.${r}`,i}async function Tr(e,t){if(e.id in t)return t[e.id];try{let n=await nt(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Er(e){return e!=null&&typeof e.page==`string`}function Dr(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Or(e,t,n){return Nr((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Tr(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Dr).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function kr(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Ar(e,t,{includeHydrateFallback:n}={}){return jr(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function jr(e){return[...new Set(e)]}function Mr(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Nr(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Er(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Mr(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Pr(){let e=k.useContext(dn);return Cr(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Fr(){let e=k.useContext(fn);return Cr(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Ir=k.createContext(void 0);Ir.displayName=`FrameworkContext`;function Lr(){let e=k.useContext(Ir);return Cr(e,`You must render this element inside a <HydratedRouter> element`),e}function Rr(e,t){let n=k.useContext(Ir),[r,i]=k.useState(!1),[a,o]=k.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=k.useRef(null);k.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),k.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:zr(s,p),onBlur:zr(c,m),onMouseEnter:zr(l,p),onMouseLeave:zr(u,m),onTouchStart:zr(d,p)}]:[a,f,{}]:[!1,f,{}]}function zr(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Br({page:e,...t}){let n=mn(),{nonce:r}=Lr(),{router:i}=Pr(),a=k.useMemo(()=>vt(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?k.createElement(Hr,{page:e,matches:a,...t}):k.createElement(Ur,{page:e,matches:a,...t})):null}function Vr(e){let{manifest:t,routeModules:n}=Lr(),[r,i]=k.useState([]);return k.useEffect(()=>{let r=!1;return Or(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Hr({page:e,matches:t,...n}){let r=kn(),{future:i}=Lr(),{basename:a}=Pr(),o=k.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=wr(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return k.createElement(k.Fragment,null,o.map(e=>k.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Ur({page:e,matches:t,...n}){let r=kn(),{future:i,manifest:a,routeModules:o}=Lr(),{basename:s}=Pr(),{loaderData:c,matches:l}=Fr(),u=k.useMemo(()=>kr(e,t,l,a,r,`data`),[e,t,l,a,r]),d=k.useMemo(()=>kr(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=k.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=wr(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=k.useMemo(()=>Ar(d,a),[d,a]),m=Vr(d);return k.createElement(k.Fragment,null,f.map(e=>k.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>k.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>k.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Wr(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}k.Component;var Gr=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Gr&&(window.__reactRouterVersion=`7.18.4`)}catch{}function Kr({basename:e,children:t,useTransitions:n,window:r}){let i=k.useRef();i.current??=ct({window:r,v5Compat:!0});let a=i.current,[o,s]=k.useState({action:a.action,location:a.location}),c=k.useCallback(e=>{n===!1?s(e):k.startTransition(()=>s(e))},[n]);return k.useLayoutEffect(()=>a.listen(c),[a,c]),k.createElement(sr,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var qr=k.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=k.useContext(vn),v=typeof l==`string`&&rt.test(l),y=en(l,h);l=y.to;let b=Dn(l,{relative:r}),x=kn(),S=null;if(o){let e=V(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Gt([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=Rr(n,p),E=Qr(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function D(t){e&&e(t),t.defaultPrevented||E(t)}let O=!(y.isExternal||i),A=k.createElement(`a`,{...p,...T,href:(O?S:void 0)||y.absoluteURL||b,onClick:O?D:e,ref:Wr(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?k.createElement(k.Fragment,null,A,k.createElement(Br,{page:b})):A});qr.displayName=`Link`;var Jr=k.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Ln(a,{relative:c.relative}),d=kn(),f=k.useContext(fn),{navigator:p,basename:m}=k.useContext(vn),h=f!=null&&ri(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Rt(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return k.createElement(qr,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});Jr.displayName=`NavLink`;var Yr=k.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=ur,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=k.useContext(vn),g=ti(),_=ni(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&rt.test(s);return k.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?k.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Yr.displayName=`Form`;function Xr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zr(e){let t=k.useContext(dn);return lt(t,Xr(e)),t}function Qr(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Mn(),d=kn(),f=Ln(e,{relative:o});return k.useCallback(p=>{if(_r(p,t)){p.preventDefault();let t=n===void 0?mt(d)===mt(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?k.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var $r=0,ei=()=>`__${String(++$r)}__`;function ti(){let{router:e}=Zr(`useSubmit`),{basename:t}=k.useContext(vn),n=Qn(),r=e.fetch,i=e.navigate;return k.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Sr(e,t);if(a.navigate===!1){let e=a.fetcherKey||ei();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function ni(e,{relative:t}={}){let{basename:n}=k.useContext(vn),r=k.useContext(bn);lt(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Ln(e||`.`,{relative:t})},o=kn();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Gt([n,a.pathname])),mt(a)}function ri(e,{relative:t}={}){let n=k.useContext(hn);lt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Zr(`useViewTransitionState`),i=Ln(e,{relative:t});if(!n.isTransitioning)return!1;let a=Rt(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Rt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Pt(i.pathname,o)!=null||Pt(i.pathname,a)!=null}function ii(e){let[t,n]=(0,k.useState)(null),[r,i]=(0,k.useState)(null),[a,o]=(0,k.useState)(!0),[s,c]=(0,k.useState)(0);return(0,k.useEffect)(()=>{let t=!0;return o(!0),i(null),e().then(e=>{t&&n(e)}).catch(()=>{t&&i(`request-failed`)}).finally(()=>{t&&o(!1)}),()=>{t=!1}},[e,s]),{data:t,error:r,loading:a,reload:(0,k.useCallback)(()=>c(e=>e+1),[])}}var ai=[{id:`p-001`,cover:`covers/p-001.jpg`,name:`长安十二时辰 · 重制`,logline:`上元节前夕,死囚张小敬受命拯救长安城,十二个时辰内揪出隐藏的阴谋。`,genre:`古装悬疑`,status:`shooting`,progress:62,members:[`沈青`,`陆离`,`顾云舟`],updatedAt:`2026-10-12T09:00:00.000Z`},{id:`p-002`,cover:`covers/p-002.jpg`,name:`星际摆渡人`,logline:`末日地球最后一位星际摆渡人,驾驶旧飞船护送三千沉睡者前往新家园。`,genre:`科幻`,status:`post`,progress:84,members:[`白鹿`,`程一苇`],updatedAt:`2026-10-11T14:30:00.000Z`},{id:`p-006`,name:`春潮`,logline:`小镇游泳队的天才少女与固执教练,向全国冠军发起最后一次冲击。`,genre:`运动励志`,status:`writing`,progress:21,members:[`江野`,`顾云舟`],updatedAt:`2026-10-10T16:20:00.000Z`},{id:`p-003`,cover:`covers/p-003.jpg`,name:`弄堂风云`,logline:`九十年代上海弄堂里,两家理发店三代人的恩怨与和解。`,genre:`年代剧`,status:`writing`,progress:37,members:[`苏晚晴`,`陈默`],updatedAt:`2026-10-08T10:15:00.000Z`},{id:`p-004`,name:`山海食肆`,logline:`一家深夜开张的小饭馆,每位客人都会带来一段山精海怪的故事。`,genre:`奇幻单元剧`,status:`planning`,progress:12,members:[`林小满`],updatedAt:`2026-10-05T20:45:00.000Z`},{id:`p-005`,cover:`covers/p-005.jpg`,name:`无声证词`,logline:`一位失聪法医通过微表情与物证破译凶案真相,却卷入旧日悬案。`,genre:`刑侦`,status:`released`,progress:100,members:[`段飞白`,`许知意`,`沈青`],updatedAt:`2026-09-28T08:00:00.000Z`}],oi=[{id:`a-001`,avatar:`avatars/a-001.jpg`,name:`沈青`,persona:`眉眼冷峻的刑侦专家,惯用低沉嗓音压住全场;长于审讯对手戏`,tags:[`悬疑`,`正剧`],projectCount:2,accent:`indigo`,createdAt:`2026-08-14T09:00:00.000Z`},{id:`a-002`,avatar:`avatars/a-002.jpg`,name:`白鹿`,persona:`清冷少女感,台词干净利落;在失重与奔跑戏里肢体控制力惊人`,tags:[`科幻`,`青春`],projectCount:1,accent:`cyan`,createdAt:`2026-09-02T09:00:00.000Z`},{id:`a-003`,name:`陆离`,persona:`古装贵公子气质,一柄长剑耍得行云流水,眼神戏尤其出彩`,tags:[`古装`,`武侠`],projectCount:3,accent:`amber`,createdAt:`2026-07-21T09:00:00.000Z`},{id:`a-004`,name:`苏晚晴`,persona:`江南梅雨养出来的温婉声线,一句沪语问候就能立住角色`,tags:[`年代`,`家庭`],projectCount:2,accent:`rose`,createdAt:`2026-06-30T09:00:00.000Z`},{id:`a-005`,avatar:`avatars/a-005.jpg`,name:`段飞白`,persona:`满脸风霜的硬汉,不用台词也能演完整场内心戏`,tags:[`刑侦`,`硬汉`],projectCount:4,accent:`emerald`,createdAt:`2026-05-18T09:00:00.000Z`},{id:`a-006`,name:`林小满`,persona:`自带笑点的元气少女音色,接梗速度比谁都快`,tags:[`奇幻`,`喜剧`],projectCount:1,accent:`violet`,createdAt:`2026-09-26T09:00:00.000Z`}],si=[{id:`s-001`,name:`长安西市 · 夜市`,description:`灯火通明的唐代夜市,人声鼎沸,摊位沿街铺开,远处鼓楼隐约可见。`,timeOfDay:`夜`,tags:[`外景`,`群像`],projectName:`长安十二时辰 · 重制`,createdAt:`2026-09-30T09:00:00.000Z`},{id:`s-002`,name:`飞船休眠舱`,description:`冷白色调的休眠舱阵列,指示灯规律明灭,舱窗外是缓慢旋转的星河。`,timeOfDay:`无自然光`,tags:[`内景`,`特效`],projectName:`星际摆渡人`,createdAt:`2026-10-06T09:00:00.000Z`},{id:`s-003`,name:`弄堂理发店 · 内`,description:`九十年代老式理发店,转灯、藤椅、大镜台,午后阳光斜切进店堂。`,timeOfDay:`日`,tags:[`内景`,`实景改造`],projectName:`弄堂风云`,createdAt:`2026-09-12T09:00:00.000Z`},{id:`s-004`,name:`深夜食肆 · 后厨`,description:`狭窄温热的后厨,灶火映红墙面,蒸汽从锅中腾起,挂满手写菜单。`,timeOfDay:`夜`,tags:[`内景`,`棚拍`],projectName:`山海食肆`,createdAt:`2026-10-01T09:00:00.000Z`}],ci=[{id:`c-001`,name:`唐代圆领袍 · 官差制式`,description:`深青色圆领袍配革带,袖口收窄便于动作,做旧处理体现风尘感。`,era:`唐`,tags:[`男装`,`动作戏`],createdAt:`2026-09-15T09:00:00.000Z`},{id:`c-002`,name:`星际制服 · 摆渡人款`,description:`哑光灰蓝连体服,反光条与旧化补丁,胸前磁吸式身份徽章。`,era:`近未来`,tags:[`科幻`,`系列化`],createdAt:`2026-10-09T09:00:00.000Z`},{id:`c-003`,name:`九十年代女装套装`,description:`碎花衬衫配高腰西裤,一副细框眼镜,还原九十年代都市女性日常。`,era:`九十年代`,tags:[`女装`,`年代`],createdAt:`2026-08-25T09:00:00.000Z`},{id:`c-004`,name:`山海食肆 · 围裙组合`,description:`粗麻围裙与绑袖,边缘烧毛处理,口袋插满调羹与试味签。`,era:`当代`,tags:[`餐饮`,`耐脏`],createdAt:`2026-10-02T09:00:00.000Z`}],li={draft:`草稿`,keyframe:`关键帧已定`,generating:`生成中`,ready:`成片就绪`,failed:`生成失败`},ui=[`固定`,`缓推`,`缓拉`,`左摇`,`右摇`,`跟移`,`手持`,`环绕`,`升格`,`航拍`];function di(e){return e.shots.reduce((e,t)=>e+t.duration,0)}function fi(e){let t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,`0`)}:${String(n).padStart(2,`0`)}`}var pi=[{id:`ep-001`,number:1,title:`起航`,logline:`末世最后一个清晨,摆渡人唤醒自己,也唤醒三千个沉睡的希望。`,synopsis:`飞船『渡轮七号』在深空航行第三年。摆渡人程野从提前三年的休眠中被警报唤醒,发现全船仍在沉睡、航线偏移。他与副驾老周确认:一段来自未知坐标的信号改变了航向。程野决定先按下点火键,把船开起来——答案在路上找。`,beatSheet:{hook:`提前三年苏醒——不是故障,是有人在深夜改了航线。`,development:`程野逐一排查:燃料充足、航线被覆盖、信号源来自船头方向。`,turn:`老周承认:三个月前他收到了信号,选择沉默。`,endingHook:`点火。不是去查信号,而是带着三千人一起赴约。`},scriptScenes:[{id:`sc-001`,sceneNumber:`S01`,heading:`内景 · 休眠舱大厅 · 无自然光`,blocks:[{id:`sb-001`,type:`action`,text:`蓝光呼吸般明灭。舱盖依次开启,白霜剥落。程野赤脚落地,呵出白气。`},{id:`sb-002`,type:`dialogue`,character:`程野`,text:`比预定……早了三年。`}],shotIds:[`sh-001`,`sh-002`]},{id:`sc-002`,sceneNumber:`S02`,heading:`内景 · 操纵舱 · 无自然光`,blocks:[{id:`sb-003`,type:`action`,text:`星图投影铺满穹顶。程野划过坐标,指尖停住。`},{id:`sb-004`,type:`dialogue`,character:`程野`,text:`三千个人,一个目的地。够了。`}],shotIds:[`sh-004`,`sh-005`]}],targetDurationSeconds:240,shots:[{id:`sh-001`,code:`S01-01`,sceneId:`sc-001`,duration:5,description:`休眠舱阵列全景,三千个舱体在幽蓝冷光中规律呼吸,尘埃在光柱里缓慢漂浮。`,camera:`缓推`,shotSize:`WS`,lighting:{timeOfDay:`无自然光`,colorTemp:`8000K`,quality:`hard`},line:`旁白:地球时间,清晨六点十一分。`,keyframe:{description:`冷蓝调休眠舱阵列,中央主光柱,极端对称构图`},status:`ready`},{id:`sh-002`,code:`S01-02`,sceneId:`sc-001`,duration:6,description:`主舱盖开启,白霜剥落。主角睁眼,瞳孔里映出舱内警报的红光。`,camera:`特写`,shotSize:`CU`,lighting:{timeOfDay:`无自然光`,lightDirection:`侧光`,colorTemp:`3200K`,quality:`hard`},line:`主角(低声):……比预定,早了三年。`,keyframe:{description:`面部大特写,右半脸覆霜,左半脸映红色警报光`},status:`ready`},{id:`sh-003`,code:`S01-03`,sceneId:`sc-001`,duration:4,description:`主角漂浮穿过过渡舱走廊,失重状态下货物与私人物件缓缓散开。`,camera:`跟移`,shotSize:`MS`,keyframe:{description:`零重力走廊,漂浮的旧照片与工具,逆光剪影`},status:`generating`},{id:`sh-004`,code:`S01-04`,sceneId:`sc-002`,duration:7,description:`操纵舱全景。主角落座船长席,手指划过星图投影,定格在『新家园』坐标。`,camera:`环绕`,shotSize:`WS`,line:`主角:三千个人,一个目的地。够了。`,keyframe:{description:`环形操纵舱,星图投影铺满穹顶,人物居中偏左`},status:`keyframe`},{id:`sh-005`,code:`S01-05`,sceneId:`sc-002`,duration:4,description:`特写:枯瘦的手指按下点火键,指示灯由红转绿。`,camera:`特写`,shotSize:`ECU`,keyframe:{description:`点火键特写,红绿光交界,金属磨损质感`},status:`failed`,failureReason:`生成超时(配额队列拥堵),可重试`},{id:`sh-006`,code:`S01-06`,duration:8,description:`大远景。旧飞船挣脱空间站泊架,姿态引擎喷出淡蓝尾焰,缓缓转向深空。`,camera:`航拍`,shotSize:`EWS`,line:`旁白:摆渡人出发。此去,不再回航。`,keyframe:{description:`深空大远景,飞船微小剪影,尾焰是唯一光源`},status:`draft`}]},{id:`ep-002`,number:2,title:`信号`,logline:`一段不该存在的求救信号,让三千个梦第一次动摇。`,synopsis:`深夜,通讯台捕捉到一段重复的求救信号。程野与老周就是否转向爆发争执——航线是三千人的性命,信号可能是三年的欺骗。最终程野选择相信信号:因为发出信号的声音,和他女儿一模一样。`,scriptScenes:[{id:`sc-101`,sceneNumber:`S01`,heading:`内景 · 通讯台 · 无自然光`,blocks:[{id:`sb-101`,type:`action`,text:`绿色波形在杂讯里突然立起。程野猛地抬头。`},{id:`sb-102`,type:`dialogue`,character:`老周`,text:`这个频段……二十年前就禁用了。`}],shotIds:[`sh-101`,`sh-102`,`sh-103`]}],shots:[{id:`sh-101`,code:`S02-01`,sceneId:`sc-101`,duration:6,description:`通讯台特写,绿色波形突然跃出杂讯,主角瞳孔收缩。`,camera:`固定`,shotSize:`ECU`,keyframe:{description:`CRT 通讯台特写,绿色波形跃动`},status:`keyframe`,scriptSyncStatus:`stale`},{id:`sh-102`,code:`S02-02`,sceneId:`sc-101`,duration:5,description:`主角贴着耳机侧耳,眉头从紧锁到松开——那是人类的语言。`,camera:`特写`,shotSize:`CU`,keyframe:{description:`贴耳特写,侧光勾勒耳机轮廓`},status:`failed`,failureReason:`提示词触发内容安全拦截,建议修改关键帧描述后重试`},{id:`sh-103`,code:`S02-03`,sceneId:`sc-101`,duration:7,description:`驾驶员席与主角对望,两人之间悬着半明半暗的对峙光。`,camera:`过肩`,shotSize:`MS`,line:`驾驶员:航线是死的。可信号,是活的。`,keyframe:{description:`过肩对峙,明暗分割打光`},status:`draft`}]}],mi=`0.1.0`,hi={planning:`筹备中`,writing:`剧本创作`,shooting:`拍摄中`,post:`后期制作`,released:`已发布`};async function gi(e,t){try{return await xi(e)}catch{return t}}async function _i(e,t,n){try{let n=await fetch(e,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok)throw Error(String(n.status));return await n.json()}catch{return n()}}var vi=100;function yi(e){return vi+=1,`${e}-${vi}`}function bi(){return new Date().toISOString()}async function xi(e){let t=await fetch(e);if(!t.ok)throw Error(`请求失败 ${t.status}: ${e}`);return await t.json()}var Si={projects:()=>gi(`/api/projects`,ai),actors:()=>gi(`/api/actors`,oi),scenes:()=>gi(`/api/scenes`,si),costumes:()=>gi(`/api/costumes`,ci),createProject:e=>_i(`/api/projects`,e,()=>({id:yi(`p`),cover:e.cover,name:e.name,logline:e.logline??``,genre:e.genre??`未分类`,status:e.status??`planning`,progress:0,members:e.members??[],updatedAt:bi()})),createActor:e=>_i(`/api/actors`,e,()=>({id:yi(`a`),avatar:e.avatar,name:e.name,persona:e.persona??``,accent:`indigo`,tags:e.tags??[],projectCount:0,createdAt:bi()})),createScene:e=>_i(`/api/scenes`,e,()=>({id:yi(`s`),name:e.name,description:e.description??``,timeOfDay:e.timeOfDay??`日`,tags:e.tags??[],projectName:e.projectName??`未关联`,createdAt:bi()})),createCostume:e=>_i(`/api/costumes`,e,()=>({id:yi(`c`),name:e.name,description:e.description??``,era:e.era??`当代`,tags:e.tags??[],createdAt:bi()}))};function Ci(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=Ci(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function wi(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ci(e))&&(r&&(r+=` `),r+=t);return r}var Ti=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Ei=wi,Di=(e,t)=>n=>{if(t?.variants==null)return Ei(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=Ti(t)||Ti(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 Ei(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)},Oi=48,ki=(e,t=0)=>{let n=new Int32Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r)-Oi-t;return n},Ai=e=>{let t=new Int32Array(e.length+1);for(let n=0;n<e.length;n++)t[n+1]=t[n]+e[n];return t},ji=e=>{let t=new Int32Array(e.length),n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r)-Oi;n+=i>>>1^-(i&1),t[r]=n}return t},Mi=384,Ni=[],Pi=Ai(ki(`E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010`)),Fi=Ai(ki(`:11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3`)),Ii=`@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom`,Li=(()=>{let e=Pi.length-1,t=new Int32Array(e);for(let n=e-1;n>=0;n--){let e=1,r=n+1;for(let i=Pi[n];i<Pi[n+1];i++)e+=t[r],r+=t[r];t[n]=e}let n=new Int32Array(Pi[e]),r=0;for(let i=0;i<e;i++){let e=i+1;for(let a=Pi[i];a<Pi[i+1];a++)n[r++]=e,e+=t[e]}return n})(),Ri=ki(`02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000
ŏ0000000ŏ00000000000000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000`,1),zi=Ai(ki(`123333359346463635126536711576`)),Bi=ki(`93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0328432553;D>E?3257D>032585:0325B:;0328B:032`),Vi=ki(`012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EEJ4444::EE4444441691;644444114244444:;K6666555555555555555999666664444444444444444444444226?6:66644L9M?D:111::::6DE199`),Hi=ji(`020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200`),Ui=(()=>{let e=new Int32Array(319).fill(-1),t=ji(`02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222`),n=ji(`02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222`);for(let r=0;r<t.length;r++)e[t[r]]=n[r];return e})(),Wi=`container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover| gradient-to-b gradient-to-bl gradient-to-br gradient-to-l gradient-to-r gradient-to-t gradient-to-tl gradient-to-tr none|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform`.split(`|`).map(e=>{let t=e.split(` `),n=t.shift();for(let e=0;e<t.length;e++)t[e]=n+t[e];return t}),Gi=ji(`0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422`),Ki=ji(`ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>ʶ22ʷʺʷ2ʸʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622`),qi=ji(`02222222222222222222222222222222222222222222222222222222222222222202022222222222EH2200IL021042222Y\\222IL0cf2e10j2222U00X202[^2y0000120|{~22
:22|22222222222G000qOVI00000}2>40000B00000I¨©000¬00000000000000021M®00°000000000000000000000222HGHa1º222¿2À2222ÉÌ000°2±`),Ji=new Int32Array(995),Yi=new Int32Array(995),Xi=new Int32Array(995),Zi=``,Qi=new Int32Array(1038);{let e=new Map,t=0,n=0;for(let r=0;r<Gi.length;r++)for(let i of Wi[qi[r]]){let a=e.get(i);a===void 0&&(a=t++,e.set(i,a),Qi[a*2]=Zi.length,Qi[a*2+1]=i.length,Zi+=i),Ji[n]=Gi[r],Yi[n]=Ki[r],Xi[n]=a,n++}}var $i=ji(`0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p`),ea=Ai(ki(`1::24444432:442:44:44>222222:44:4421322511111311111114`)),ta=ji(`24A;33N=C@H4A;33N=C@<27;83:;8393NQ:3NQʰ222ˉºŴŽ2R2=18cƴÅŇ=cĞÛC1ƈǝȈ:ħ25=11D3A@4=<1;1DEr25;11B3?<6;:371BCn9@7=<8192>2E121@9@EHE@9>2T25511<398454131<=V25511<398454131<=ƧNž2Đå242L222290000f22500ɛ000ǘ222`),na=ki(`ij`),H=ki(``),ra=ki(`1`),ia={GROUP_COUNT:Mi,customValidatorNames:Ni,edgeStart:Pi,labelStart:Fi,labelText:Ii,edgeTarget:Li,nodeGroup:Ri,nodeVlist:Ui,vlistPat:zi,vlistOps:Bi,vlistRef:Vi,vlistGroup:Hi,litAnchor:Ji,litGroup:Yi,litPool:Xi,poolOffsets:Qi,poolText:Zi,adjGid:$i,adjStart:ea,adjTgt:ta,patGid:na,patTgt:H,postfixLookupGroups:ra,orderSensitiveModifiers:`* ** after backdrop before details-content file first-letter first-line marker placeholder selection`},aa=`line`in Error(),oa=-1,sa=-1,ca=(e,t,n)=>{let r=2166136261;for(let i=t;i<n;i++)r=Math.imul(r^e.charCodeAt(i),16777619);return r},la=(e,t,n)=>{let r=n-t,i=Math.imul(r,2654435761)^e.charCodeAt(t);if(r>3){let a=r>>2,o=r>>1;i=Math.imul(i^e.charCodeAt(t+1)<<8^e.charCodeAt(t+2)<<16^e.charCodeAt(t+a),2246822507),i=Math.imul(i^e.charCodeAt(t+o)<<8^e.charCodeAt(t+o+a)<<16^e.charCodeAt(n-3),3266489909),i^=e.charCodeAt(n-2)<<8^e.charCodeAt(n-1)<<16;for(let r=t+3,a=n-4;r<t+8&&r<a;r++,a--)i=Math.imul(i^e.charCodeAt(r)^e.charCodeAt(a)<<8,16777619)}return i^i>>>15},ua=(e,t,n={})=>{let{GROUP_COUNT:r,edgeStart:i,labelStart:a,labelText:o,edgeTarget:s,nodeGroup:c,nodeVlist:l,vlistPat:u,vlistOps:d,vlistRef:f,vlistGroup:p,litAnchor:m,litGroup:h,litPool:g,poolOffsets:_,poolText:v,adjGid:y,adjStart:b,adjTgt:x,patGid:S,patTgt:C,postfixLookupGroups:w,customValidatorNames:T,orderSensitiveModifiers:E}=e,D=new Int32Array(r).fill(-1);for(let e=0;e<y.length;e++)D[y[e]]=e;let O=0;for(let e=0;e+1<b.length;e++){let t=b[e+1]-b[e];t>O&&(O=t)}let k=32;for(;k<2*(1+O+S.length);)k<<=1;let A=new Int32Array(f.length+1);for(let e=0;e<f.length;e++)A[e+1]=A[e]+u[f[e]+1]-u[f[e]];let j=new Uint8Array(r);for(let e=0;e<w.length;e++)j[w[e]]=1;let M=i.length-1,ee=new Uint8Array(M),N=0,P=!0;for(let e=0;e<m.length;e++){ee[m[e]]=1;let t=_[g[e]*2+1];t>N&&(N=t);let n=v.charCodeAt(_[g[e]*2]);(n===91||n===40)&&(P=!1)}let F=1;for(;F<m.length*2;)F<<=1;let te=new Int32Array(F).fill(-1);for(let e=0;e<m.length;e++){let t=_[g[e]*2],n=(ca(v,t,t+_[g[e]*2+1])^Math.imul(m[e],2654435761)|0)&F-1;for(;te[n]!==-1;)n=n+1&F-1;te[n]=e}let I=(e,t,n,r)=>{let i=(ca(t,n,r)^Math.imul(e,2654435761)|0)&F-1,a=r-n;for(;;){let r=te[i];if(r===-1)return-1;if(m[r]===e&&_[g[r]*2+1]===a){let e=_[g[r]*2],i=!0;for(let r=0;r<a;r++)if(v.charCodeAt(e+r)!==t.charCodeAt(n+r)){i=!1;break}if(i)return h[r]}i=i+1&F-1}},ne=n.cacheSize??8192,re=n.prefix??e.prefix??``,ie=re===``?``:re+`:`,ae=ie.length,oe=(T??[]).map(e=>{let n=t&&t[e];if(!n)throw Error(`cn: missing validator `+e);return n}),se=/\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$/,L=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ce=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,le=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ue=0,de=-1,fe=-1,R=-1,z=-1,pe=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||e===95,me=e=>/\s/.test(String.fromCharCode(e)),he=(e,t,n)=>{if(ue=0,de=-1,n-t<3)return;let r=e.charCodeAt(t),i=e.charCodeAt(n-1);if(r===91&&i===93)ue=1;else if(r===40&&i===41)ue=2;else return;R=t+1,z=n-1;let a=t+1;if(pe(e.charCodeAt(a))){for(a++;a<n-1;){let t=e.charCodeAt(a);if(!pe(t)&&t!==45)break;a++}a<n-2&&e.charCodeAt(a)===58&&(de=t+1,fe=a,R=a+1)}},ge=(e,t,n,r)=>{if(n-t!==r.length)return!1;for(let n=0;n<r.length;n++)if(e.charCodeAt(t+n)!==r.charCodeAt(n))return!1;return!0},_e=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,B=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ve=e=>!!e&&!Number.isNaN(Number(e)),ye=(e,t,n)=>{if(n-t<11||!ge(e,t,t+10,`@container`))return!1;if(e.charCodeAt(t+10)===47)return n-t>=12;let r=e.charCodeAt(t+11);return r===115&&n-t>=17&&ge(e,t+10,t+16,`-size/`)||r===110&&n-t>=19&&ge(e,t+10,t+18,`-normal/`)},be=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],xe=`length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight`.split(`|`).map(e=>e.split(` `)),Se=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],Ce=(e,t,n,r)=>{if(e>=10){if(e>=25)return oe[e-25](t.slice(n,r));let i=e-10;if(ue!==be[i])return!1;if(de>=0){for(let e of xe[i])if(ge(t,de,fe,e))return!0;return!1}switch(Se[i]){case 0:return!1;case 1:return!0;case 2:{let e=t.slice(R,z);return se.test(e)&&!L.test(e)}case 3:return ve(t.slice(R,z));case 4:return le.test(t.slice(R,z));default:return ce.test(t.slice(R,z))}}switch(e){case 0:return!0;case 1:return ue===0;case 2:return ue===1;case 3:return ue===2;case 4:return _e.test(t.slice(n,r));case 5:return ve(t.slice(n,r));case 6:{let e=t.slice(n,r);return!!e&&Number.isInteger(Number(e))}case 7:return r>n&&t.charCodeAt(r-1)===37&&ve(t.slice(n,r-1));case 8:return B.test(t.slice(n,r));default:return ye(t,n,r)}},we=new Set(typeof E==`string`?E.split(` `):E),Te=(e,t,n,r,i,a)=>{let o=ca(t,n,r)^(i?2654435769:0),s=e.get(o);if(s!==void 0)outer:for(let e=0;e<s.length;e++){let a=s[e];if(a.imp===i&&a.k.length===r-n){for(let e=0;e<a.k.length;e++)if(a.k.charCodeAt(e)!==t.charCodeAt(n+e))continue outer;return a.id}}else e.set(o,s=[]);let c=t.slice(n,r),l=a(c);return s.push({k:c,imp:i,id:l}),l},Ee=new Map,De=new Map,Oe=2,ke=4096,Ae=(e,t)=>{let n=[],r=0,i=0,a=0;for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);r===0&&i===0&&o===58?(n.push(e.slice(a,t)),a=t+1):o===91?r++:o===93?r--:o===40?i++:o===41&&i--}n.push(e.slice(a));let o=n[0];if(n.length>1){let e=[],t=[];for(let r of n)r.charCodeAt(0)===91||we.has(r)?(t.length&&(e.push(...t.sort()),t=[]),e.push(r)):t.push(r);t.length&&e.push(...t.sort()),o=e.join(`:`)}let s=t?o+` !`:o,c=De.get(s);return c===void 0&&De.set(s,c=Oe++),c},je=new Map,Me=r,Ne=r+4096,Pe=()=>Me++,Fe=2097152,Ie=8192,Le=new Int32Array(Ie),Re=Array(Ie).fill(null),ze=new Int32Array(Ie),Be=new Int32Array(Ie),Ve=new Uint8Array(Ie),He=0,Ue=(e,t,n,r,i,a,o,s)=>{let c=e;if(Re[e]!==null){if(Re[e|1]===null)c=e|1;else if(!(He++&3))c=e|He>>2&1;else return}Re[c]=t.slice(n,r),Le[c]=i,ze[c]=a,Be[c]=o,Ve[c]=s},We=()=>Re.fill(null),Ge=256,Ke=[new Int32Array(Ge),new Int32Array(Ge),new Int32Array(Ge),new Int32Array(Ge)],[qe,Je,Ye,Xe]=Ke,Ze=new Uint8Array(Ge),Qe=new Uint8Array(Ge),$e=()=>{Ge*=2,Ke=Ke.map(e=>{let t=new Int32Array(Ge);return t.set(e),t}),[qe,Je,Ye,Xe]=Ke;let e=new Uint8Array(Ge);e.set(Ze),Ze=e,Qe=new Uint8Array(Ge)},et=64,tt=new Int32Array(et),nt=new Int32Array(et),rt=new Int32Array(r),it=2048,at=21,ot=new Float64Array(it),st=new Int32Array(it),ct=0,lt=(e,t)=>{if(e===0&&t<r)return rt[t]===ct?1:(rt[t]=ct,0);let n=e*2097152+t+1,i=Math.imul(n,2654435761)>>>at;for(;st[i]===ct;){if(ot[i]===n)return 1;i=i+1&it-1}return ot[i]=n,st[i]=ct,0},ut=(e,t,n,r,i)=>{if(n-t>=2&&e.charCodeAt(t)===91&&e.charCodeAt(n-1)===93){let r=-1;for(let i=t+1;i<n-1;i++)if(e.charCodeAt(i)===58){r=i;break}return r===-1||r===t+1?oa:Te(je,e,t+1,r,0,Pe)}if(r>=0&&c[r]>=0)return c[r];for(let t=i-1;t>=0;t--){let r=nt[t];if(r>n)continue;let i=tt[t],a=n-r;if(ee[i]===1&&a>0&&a<=N){let t=e.charCodeAt(r);if(P===!1||t!==91&&t!==40){let t=I(i,e,r,n);if(t>=0)return t}}let o=l[i];if(o<0)continue;let s=f[o],c=u[s],m=u[s+1];if(c===m)continue;he(e,r,n);let h=A[o]-c;for(let t=c;t<m;t++)if(Ce(d[t],e,r,n))return p[h+t]}return oa},dt=e=>{let t=e.length,n=0,c=0,u=!1;(Oe>ke||Ee.size>ke)&&(Ee=new Map,De=new Map,Oe=2,We()),Me>Ne&&(je=new Map,Me=r,We());let d=0;for(;d<t;){let f=e.charCodeAt(d);if(f===32||f>=9&&f<=13||f>=160&&me(f)){f!==32&&(u=!0),d++;continue}let p=d,m=0;for(;d<t;){if(f=e.charCodeAt(d),f<=32){if(f===32)break;if(f>=9&&f<=13){u=!0;break}}else if(f>=160&&me(f)){u=!0;break}m=Math.imul(m^f,16777619),d++}let h=d,g=h-p;n===Ge&&$e();let _=n++;qe[_]=p,Je[_]=h,c+=g,m^=Math.imul(g,2654435761);let v=m^m>>>15,y=v&8190;{let t=-1;if(Le[y]===v&&Re[y]!==null&&Re[y].length===g?t=y:Le[y|1]===v&&Re[y|1]!==null&&Re[y|1].length===g&&(t=y|1),t>=0){let n=Re[t],r=!0;for(let t=0;t<g;t++)if(n.charCodeAt(t)!==e.charCodeAt(p+t)){r=!1;break}if(r){Ye[_]=ze[t],Xe[_]=Be[t],Ze[_]=Ve[t];continue}}}let b=p;if(ae!==0){if(h-p<=ae||!e.startsWith(ie,p)){Ye[_]=oa,Ue(y,e,p,h,v,oa,0,0);continue}b=p+ae}let x=0,S=0,C=-1,w=-1;for(let t=b;t<h;t++){let n=e.charCodeAt(t);if(x===0&&S===0){if(n===58){C=t;continue}if(n===47){w=t;continue}}n===91?x++:n===93?x--:n===40?S++:n===41&&S--}let T=C>=b?C+1:b,E=T,D=h,O=!1,k=0;D>E&&e.charCodeAt(D-1)===33?(O=!0,D--):D>E&&e.charCodeAt(E)===33&&(O=!0,E++,k=1);let A=-1;w>T&&(A=w+k,A>=D&&(A=-1));let M=E;D-E>1&&e.charCodeAt(E)===45&&(M=E+1);let N=0,P=0,F=0,te=-1,I=0;(l[0]>=0||ee[0]===1)&&(tt[0]=0,nt[0]=M,I=1);let ne=sa,re=0;for(let t=M;t<D;t++)if(t===A&&(ne=P<F?sa:N,re=I),N!==sa){let n=e.charCodeAt(t),r=-1;if(P<F)o.charCodeAt(P)===n?(P++,P===F&&(r=N=te)):N=sa;else{let e=i[N],t=i[N+1],c=sa;for(let i=e;i<t;i++){let e=a[i];if(o.charCodeAt(e)===n){a[i+1]-e===1?r=c=s[i]:(P=e+1,F=a[i+1],te=s[i],c=N);break}}N=c}if(r>=0&&(l[r]>=0||ee[r]===1)&&t+1<D&&e.charCodeAt(t+1)===45){if(I===et){et*=2;let e=new Int32Array(et);e.set(tt),tt=e;let t=new Int32Array(et);t.set(nt),nt=t}tt[I]=r,nt[I]=t+2,I++}}A===D&&(ne=P<F?sa:N,re=I);let oe=P<F?sa:N,se,L=!1;if(A>=0){if(L=!0,se=ut(e,E,A,ne,re),se!==oa&&se<r&&j[se]){let t=ut(e,E,D,oe,I);t!==oa&&t!==se&&(se=t,L=!1)}else se===oa&&(se=ut(e,E,D,oe,I),L=!1)}else se=ut(e,E,D,oe,I);let ce=0,le=0;se===oa?Ye[_]=oa:(le=+!!L,ce=b>=C?+!!O:Te(Ee,e,b,C,+!!O,e=>Ae(e,O)),Ye[_]=se,Ze[_]=le,Xe[_]=ce),Ue(y,e,p,h,v,se,ce,le)}if(n===0)return``;if(n===1)return qe[0]===0&&Je[0]===t?e:e.slice(qe[0],Je[0]);if(n*k>it){for(;n*k>it;)it<<=1,at--;ot=new Float64Array(it),st=new Int32Array(it)}if(Oe>=Fe||Me>=Fe)throw Error(`cn: too many distinct classes in one merge`);ct=ct+1|0,ct===0&&(rt.fill(0),st.fill(0),ct=1);let f=!1;for(let e=n-1;e>=0;e--){let t=Ye[e];if(t===oa){Qe[e]=1;continue}let n=Xe[e];if(lt(n,t)===1)Qe[e]=0,f=!0;else if(Qe[e]=1,t<r){let r=D[t];if(r>=0)for(let e=b[r];e<b[r+1];e++)lt(n,x[e]);if(Ze[e]&1)for(let e=0;e<S.length;e++)S[e]===t&<(n,C[e])}}if(!f&&!u&&t===c+n-1)return e;let p=``,m=0;for(;m<n;){if(!Qe[m]){m++;continue}let t=qe[m],r=Je[m],i=m+1;for(;i<n&&Qe[i]&&qe[i]===r+1&&e.charCodeAt(r)===32;)r=Je[i],i++;p.length>0&&(p+=` `),p+=e.slice(t,r),m=i}return p},ft=16384,pt=new Int32Array(ft*2),mt=0,ht=1,gt=Object.create(null),_t=Object.create(null),vt=new Map,yt=new Map,bt=0,xt=0,St=()=>{mt^=ft,ht=ht+1|0,xt=0},Ct=e=>{let t=gt[e];if(t!==void 0)return t;let n=la(e,0,e.length),r=(n&16383)+mt,i=pt[r]===(n^ht)||pt[r^ft]===(n^ht-1);return i&&(t=_t[e],t!==void 0)?(gt[e]=t,t):(t=dt(e),i?(gt[e]=t,++bt>ne&&(bt=0,_t=gt,gt=Object.create(null),St())):(pt[r]=n^ht,++xt>ft&&St()),t)},wt=e=>{let t=vt.get(e);if(t!==void 0)return t;let n=la(e,0,e.length),r=(n&16383)+mt,i=pt[r]===(n^ht)||pt[r^ft]===(n^ht-1);return i&&(t=yt.get(e),t!==void 0)?(vt.set(e,t),t):(t=dt(e),i?(vt.set(e,t),++bt>ne&&(bt=0,yt=vt,vt=new Map,St())):(pt[r]=n^ht,++xt>ft&&St()),t)},Tt=e=>{let t=la(e,0,e.length),n=(t&16383)+mt;return pt[n]===(t^ht)||pt[n^ft]===(t^ht-1)||(pt[n]=t^ht,++xt>ft&&St(),!1)},Et=ne===0?dt:aa?e=>{let t=vt.get(e);return t===void 0?wt(e):t}:Ct;return{merge:function(){return arguments.length===1&&typeof arguments[0]==`string`?Et(arguments[0]):Et(pa.apply(null,arguments))},mergeString:Et,seenBefore:ne===0?()=>!1:Tt,mergeUncached:dt}},da=(e,t)=>{if(!e)return``;if(typeof e==`string`)return e;let n=``;if(typeof e.length==`number`&&(!t||Array.isArray(e))){let r=e;for(let e=0;e<r.length;e++){let i=r[e];if(!i)continue;let a=typeof i==`string`?i:da(i,t);a&&(n&&(n+=` `),n+=a)}return n}if(t){if(typeof e==`number`)return``+e;if(typeof e==`object`)for(let t in e)e[t]&&(n&&(n+=` `),n+=t)}return n},fa=(e,t)=>{let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(!i)continue;let a=typeof i==`string`?i:da(i,t);a&&(n&&(n+=` `),n+=a)}return n},pa=function(){return fa(arguments,!1)},ma=256,ha=16,ga=1024,_a=4096,va=(e,t)=>{let n=t===void 0?()=>!0:t.seenBefore,r=t===void 0?e:t.mergeUncached,i=new Map,a=new Map,o=0,s=null,c=null,l=[],u=[],d=0,f=(t,n,r)=>{c===null&&(c=Array(_a).fill(``),l=Array(_a).fill(``),u=Array(_a).fill(``));let i=la(t,0,t.length)&4094;if(c[i]===t&&l[i]===n)return u[i];if(c[i|1]===t&&l[i|1]===n)return u[i|1];let a=e(r?n+` `+t:t),o=c[i]===``?i:i|(c[i|1]===``?1:d++&1);return c[o]=t,l[o]=n,u[o]=a,a},p=(e,t,n,r)=>{let i=0;if(t){if(t!==e.a0)return!1;i=1}if(n){if(n!==(i===0?e.a0:e.a1))return!1;i++}if(r){if(r!==(i===0?e.a0:i===1?e.a1:e.a2))return!1;i++}return i===e.t},m=(e,t)=>{let n=e.a,r=0;for(let e=0;e<t.length;e++){let i=t[e];if(i){if(i!==n[r])return!1;r++}}return r===e.t},h=(t,c)=>{let l=t.length,u=s===null?null:s.n;if(!c){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let d=``,p=-1,h=0,g=!1;for(let e=0;e<l;e++){let n=t[e];if(n){if(typeof n!=`string`){if(n=t[e]=da(n,!0),!n)continue;g=!0}p<0&&(d=n,p=e),h++}}if(h===0)return``;if(h===1)return e(d);if(g){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let _=i.get(d);_===void 0&&(_=a.get(d),_!==void 0&&i.set(d,_));let v=null;if(_!==void 0){if(_.skip>0){_.skip--,s=null;let e=d;for(let n=p+1;n<l;n++){let r=t[n];r&&(e+=` `+r)}return f(e,``,!1)}let e=_.e;outer:for(let n=0;n<e.length;n++){let r=e[n];if(r.t!==h)continue;let i=r.a,a=1;for(let e=p+1;e<l;e++){let n=t[e];if(n&&n!==i[a++])continue outer}v=r;break}v!==null&&(_.miss=0)}if(v===null){let s=d,c=[d];for(let e=p+1;e<l;e++){let n=t[e];n&&(s+=` `+n,c.push(n))}if(!n(s))return r(s);v={r:e(s),t:c.length,a0:c[0],a1:c[1],a2:c[2]??``,a:c,n:null},_===void 0?i.set(d,_={e:[],miss:0,skip:0,at:0}):++_.miss>ha&&(_.miss=ha,_.skip=ga,_.e.length=0,_.at=0);let u=_.e;u.length<ma?u.push(v):(u[_.at]=v,_.at=_.at+1&255),++o>1e3&&(o=0,a=i,i=new Map)}return s!==null&&s!==v&&(s.n=v),s=v,v.r},g=t=>Array.isArray(t)?h(t.slice(),!1):e(da(t,!0));return function(t,n,r){let a=arguments.length;if((a|1)==3){let e=s;if(e!==null){let i=e.n;if(i!==null&&p(i,t,n,r))return s=i,i.r;if(e!==i&&p(e,t,n,r))return e.r}if(a===2&&typeof n==`string`&&n!==``){let e=i.get(t);if(e!==void 0&&e.skip>0)return e.skip--,s=null,f(n,t,!0)}return h([t,n,r],!0)}if(a===1)return typeof t==`string`?e(t):g(t);let o=s;if(o!==null){let e=o.n;if(e!==null){let t=e.a,n=0,r=!0;for(let e=0;e<a;e++){let i=arguments[e];if(i){if(i!==t[n]){r=!1;break}n++}}if(r&&n===e.t)return s=e,e.r}if(o!==e){let e=o.a,t=0,n=!0;for(let r=0;r<a;r++){let i=arguments[r];if(i){if(i!==e[t]){n=!1;break}t++}}if(n&&t===o.t)return o.r}}let c=[];for(let e=0;e<a;e++)c.push(arguments[e]);return h(c,!0)}},ya=ua(ia),U=va(ya.mergeString,ya);ya.merge;var ba=Object.defineProperty,xa=(e,t)=>ba(e,`name`,{value:t,configurable:!0});function Sa(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}xa(Sa,`setRef`);function Ca(...e){return t=>{let n=!1,r=e.map(e=>{let r=Sa(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():Sa(e[t],null)}}}}xa(Ca,`composeRefs`);function wa(...e){return k.useCallback(Ca(...e),e)}xa(wa,`useComposedRefs`);var Ta=Object.defineProperty,Ea=(e,t)=>Ta(e,`name`,{value:t,configurable:!0});function Da(e){let t=k.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=Ra(r),k.Children.forEach(r,e=>{if(Pa(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;Ia(n)&&typeof Ha==`function`;)n=Ha(n._payload);a=ja(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=k.cloneElement(a,void 0,s):!o&&k.Children.count(r)===1&&k.isValidElement(r)&&(a=r);let c=a?Na(a):void 0,l=wa(n,c);if(!a){if(r||r===0)throw Error(o?Va(e):Ba(e));return r}let u=Ma(i,a.props??{});return a.type!==k.Fragment&&(u.ref=n?l:c),k.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Ea(Da,`createSlot`);var Oa=Da(`Slot`),ka=Symbol.for(`radix.slottable`);function Aa(e){let t=Ea(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=ka,t}Ea(Aa,`createSlottable`);var ja=Ea((e,t)=>`child`in e.props?k.isValidElement(t)?k.cloneElement(t,void 0,e.props.children(t.props.children)):null:k.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function Ma(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(` `):r===`aria-describedby`&&(n[r]=za(a,i))}return{...e,...n}}Ea(Ma,`mergeProps`);function Na(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Ea(Na,`getElementRef`);function Pa(e){return k.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===ka}Ea(Pa,`isSlottable`);var Fa=Symbol.for(`react.lazy`);function Ia(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Fa&&`_payload`in e&&La(e._payload)}Ea(Ia,`isLazyComponent`);function La(e){return typeof e==`object`&&!!e&&`then`in e}Ea(La,`isPromiseLike`);function Ra(e){let t=e;for(;Ia(t)&&typeof Ha==`function`;)t=Ha(t._payload);return t}Ea(Ra,`useUnwrappedLazy`);function za(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Ea(za,`concatAriaDescribedby`);var Ba=Ea(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Va=Ea(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Ha=k.use,Ua=Object.defineProperty,Wa=(e,t)=>Ua(e,`name`,{value:t,configurable:!0}),Ga=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Da(`Primitive.${t}`),r=k.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,z.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ka(e,t){e&&B.flushSync(()=>e.dispatchEvent(t))}Wa(Ka,`dispatchDiscreteCustomEvent`);var qa=Object.defineProperty,Ja=(e,t)=>qa(e,`name`,{value:t,configurable:!0}),Ya=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Xa=k.forwardRef(Ja(function(e,t){return(0,z.jsx)(Ga.span,{...e,ref:t,style:{...Ya,...e.style}})},`VisuallyHidden`)),Za=Object.defineProperty,Qa=(e,t)=>Za(e,`name`,{value:t,configurable:!0});function $a(e,t){let n=k.createContext(t);n.displayName=e+`Context`;let r=Qa(e=>{let{children:t,...r}=e,i=k.useMemo(()=>r,Object.values(r));return(0,z.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=k.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Qa(i,`useContext`),[r,i]}Qa($a,`createContext`);function eo(e,t=[]){let n=[];function r(t,r){let i=k.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Qa(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=k.useMemo(()=>o,Object.values(o));return(0,z.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=k.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Qa(s,`useContext`),[o,s]}Qa(r,`createContext`);let i=Qa(()=>{let t=n.map(e=>k.createContext(e));return Qa(function(n){let r=n?.[e]||t;return k.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,to(i,...t)]}Qa(eo,`createContextScope`);function to(...e){let t=e[0];if(e.length===1)return t;let n=Qa(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Qa(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Qa(to,`composeContextScopes`);var no=globalThis?.document?k.useLayoutEffect:()=>{},ro=Object.defineProperty,io=(e,t)=>ro(e,`name`,{value:t,configurable:!0});function ao(e){let t=e+`CollectionProvider`,[n,r]=eo(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=io(e=>{let{scope:t,children:n}=e,r=k.useRef(null),a=k.useRef(new Map).current;return(0,z.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=Da(s),l=k.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=wa(t,a(s,n).collectionRef);return(0,z.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Da(u),p=k.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=k.useRef(null),s=wa(t,o),c=a(u,n);return k.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,z.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return k.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 io(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}io(ao,`createCollection`);var oo=new WeakMap,so=class e extends Map{static{io(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],oo.set(this,!0)}set(e,t){return oo.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=uo(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=co(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=co(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return co(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function co(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=lo(e,t);return n===-1?void 0:e[n]}io(co,`at`);function lo(e,t){let n=e.length,r=uo(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}io(lo,`toSafeIndex`);function uo(e){return e!==e||e===0?0:Math.trunc(e)}io(uo,`toSafeInteger`);function fo(e){let t=e+`CollectionProvider`,[n,r]=eo(t),[i,a]=n(t);i.displayName=e+`CollectionStableContextProvider`;let[o,s]=n(t);o.displayName=e+`CollectionStatefulContextProvider`;let c=io(({state:e,...t})=>e?(0,z.jsx)(u,{...t,state:e}):(0,z.jsx)(l,{...t}),`CollectionProvider`);c.displayName=t;let l=io(e=>{let t=_();return(0,z.jsx)(u,{...e,state:t})},`CollectionInit`);l.displayName=e+`CollectionInit`;let u=io(e=>{let{scope:t,children:n,state:r}=e,a=k.useRef(null),[s,c]=k.useState(null),l=wa(a,c),[u,d]=r,f=k.useRef(new so),p=k.useCallback(()=>{let e=f.current;return ho(e)||e.sort(go),e},[]);return k.useEffect(()=>{if(!s)return;let e=_o(()=>{d(e=>{let t=e.toSorted(go);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s,d]),(0,z.jsx)(i,{scope:t,collectionElementRef:l,collectionElementRefObject:a,getCollection:p,setCollection:d,registryRef:f,children:(0,z.jsx)(o,{scope:t,collectionElement:s,collection:u,children:n})})},`CollectionProviderImpl`);u.displayName=e+`CollectionProviderImpl`;let d=e+`CollectionSlot`,f=Da(d),p=k.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=wa(t,a(d,n).collectionElementRef);return(0,z.jsx)(f,{ref:i,children:r})});p.displayName=d;let m=e+`CollectionItemSlot`,h=Da(m),g=k.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=k.useRef(null),{setCollection:s,registryRef:c}=a(m,n),l=k.useRef(i);po(l.current,i)||(l.current=i);let u=l.current,d=wa(t,k.useCallback(e=>{let t=c.current;e?t.set(e,{...l.current,element:e}):o.current&&t.delete(o.current)},[c]),o);no(()=>{let e=o.current,t=c.current;e&&t.has(e)&&t.set(e,{...u,element:e})},[u,c]);let f=k.useRef(null);return k.useEffect(()=>{let e=o.current,t=f.current;((t?.element??null)!==e||e&&t?.itemData!==u)&&(f.current=e?{element:e,itemData:u}:null,s(n=>{let r=new so(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...u,element:e}),r.sort(go)}))}),k.useEffect(()=>()=>{let e=f.current;f.current=null,e&&s(t=>{if(!t.has(e.element))return t;let n=new so(t);return n.delete(e.element),n})},[s]),(0,z.jsx)(h,{"data-radix-collection-item":``,ref:d,children:r})});g.displayName=m;function _(){return k.useState(new so)}io(_,`useInitCollection`);function v(t){let{collection:n}=s(e+`CollectionConsumer`,t);return n}io(v,`useCollection`);function y(t){let{getCollection:n}=a(e+`CollectionConsumer`,t);return n}return io(y,`useGetCollection`),[{Provider:c,Slot:p,ItemSlot:g},{createCollectionScope:r,useCollection:v,useGetCollection:y,useInitCollection:_}]}io(fo,`createCollection`);function po(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}io(po,`shallowEqual`);function mo(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}io(mo,`isElementPreceding`);function ho(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}io(ho,`isInDocumentOrder`);function go(e,t){return!e[1].element||!t[1].element?0:mo(e[1].element,t[1].element)?-1:1}io(go,`sortByDocumentPosition`);function _o(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}io(_o,`getChildListObserver`);var vo=Object.defineProperty,yo=(e,t)=>vo(e,`name`,{value:t,configurable:!0}),bo=!!(typeof window<`u`&&window.document&&window.document.createElement);function W(e,t,{checkForDefaultPrevented:n=!0}={}){return yo(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}yo(W,`composeEventHandlers`);function xo(e){if(!bo)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}yo(xo,`getOwnerWindow`);function So(e){if(!bo)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}yo(So,`getOwnerDocument`);function Co(e,t=!1){let{activeElement:n}=So(e);if(!n?.nodeName)return null;if(wo(n)&&n.contentDocument)return Co(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=So(n).getElementById(e);if(t)return t}}return n}yo(Co,`getActiveElement`);function wo(e){return e.tagName===`IFRAME`}yo(wo,`isFrame`);var To=Object.defineProperty,Eo=(e,t)=>To(e,`name`,{value:t,configurable:!0}),Do=k.useEffectEvent,Oo=k.useInsertionEffect;function ko(e){if(typeof Do==`function`)return Do(e);let t=k.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Oo==`function`?Oo(()=>{t.current=e}):no(()=>{t.current=e}),k.useMemo(()=>((...e)=>t.current?.(...e)),[])}Eo(ko,`useEffectEvent`);var Ao=Object.defineProperty,jo=(e,t)=>Ao(e,`name`,{value:t,configurable:!0}),Mo=k.useInsertionEffect||no;function No({prop:e,defaultProp:t,onChange:n=jo(()=>{},`onChange`),caller:r}){let[i,a,o]=Po({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,k.useCallback(t=>{if(s){let n=Fo(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}jo(No,`useControllableState`);function Po({defaultProp:e,onChange:t}){let[n,r]=k.useState(e),i=k.useRef(n),a=k.useRef(t);return Mo(()=>{a.current=t},[t]),k.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}jo(Po,`useUncontrolledState`);function Fo(e){return typeof e==`function`}jo(Fo,`isFunction`);var Io=Symbol(`RADIX:SYNC_STATE`);function Lo(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=ko(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=k.useReducer((t,n)=>{if(n.type===Io)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=k.useRef(p);k.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=k.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return k.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:Io,state:i})},[i,d.state,c]),[h,f]}jo(Lo,`useControllableStateReducer`);var Ro=Object.defineProperty,G=(e,t)=>Ro(e,`name`,{value:t,configurable:!0});function zo(e,t){return k.useReducer((e,n)=>t[e][n]??e,e)}G(zo,`useStateMachine`);var Bo=G(e=>{let{present:t,children:n}=e,r=Vo(t),i=typeof n==`function`?n({present:r.isPresent}):k.Children.only(n),a=Uo(r.ref,Go(i));return typeof n==`function`||r.isPresent?k.cloneElement(i,{ref:a}):null},`Presence`);function Vo(e){let[t,n]=k.useState(),r=k.useRef(null),i=k.useRef(e),a=k.useRef(`none`),o=k.useRef(void 0),[s,c]=zo(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return k.useEffect(()=>{s===`mounted`?(a.current=o.current??Wo(r.current),o.current=void 0):a.current=`none`},[s]),no(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Wo(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),no(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=G(a=>{let o=Wo(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=G(e=>{e.target===t&&(a.current=Wo(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:k.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Wo(t)}else r.current=null;n(e)},[])}}G(Vo,`usePresence`);function Ho(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}G(Ho,`setRef`);function Uo(...e){let t=k.useRef(e);return t.current=e,k.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Ho(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():Ho(n[e],null)}}},[])}G(Uo,`useStableComposedRefs`);function Wo(e){return e?.animationName||`none`}G(Wo,`getAnimationName`);function Go(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)}G(Go,`getElementRef`);var Ko=Object.defineProperty,qo=(e,t)=>Ko(e,`name`,{value:t,configurable:!0}),Jo=k.useId||(()=>void 0),Yo=0;function Xo(e){let[t,n]=k.useState(Jo());return no(()=>{e||n(e=>e??String(Yo++))},[e]),e||(t?`radix-${t}`:``)}qo(Xo,`useId`);var Zo=Object.defineProperty,Qo=(e,t)=>Zo(e,`name`,{value:t,configurable:!0}),$o={LTR:`ltr`,RTL:`rtl`},es=k.createContext(void 0);function ts(e){let t=k.useContext(es);return e||t||$o.LTR}Qo(ts,`useDirection`);var ns=Object.defineProperty,rs=(e,t)=>ns(e,`name`,{value:t,configurable:!0}),is=k.useInsertionEffect;function as(e){let t=k.useRef(e);return typeof is==`function`?is(()=>{t.current=e}):no(()=>{t.current=e}),k.useMemo(()=>((...e)=>t.current?.(...e)),[])}rs(as,`useCallbackRef`);var os=Object.defineProperty,ss=(e,t)=>os(e,`name`,{value:t,configurable:!0}),cs=`dismissableLayer.update`,ls=`dismissableLayer.pointerDownOutside`,us=`dismissableLayer.focusOutside`,ds,fs=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ps=k.forwardRef(ss(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=k.useContext(fs),[d,f]=k.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=k.useState({}),h=wa(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=k.useRef(!1),C=gs(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:k.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=_s(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),T=d?y===g.length-1:!1,E=as(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return k.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T,E]),k.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ds=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),vs(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=ds))}},[d,p,n,u]),k.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),vs())},[d,u]),k.useEffect(()=>{let e=ss(()=>m({}),`handleUpdate`);return document.addEventListener(cs,e),()=>document.removeEventListener(cs,e)},[]),(0,z.jsx)(Ga.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)})},`DismissableLayer`));function ms(){let e=k.useContext(fs),[t,n]=k.useState(null);return k.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}ss(ms,`useDismissableLayerSurface`);var hs=ss(()=>!0,`IS_TRUE`);function gs(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=hs}=t,s=as(e),c=k.useRef(!1),l=k.useRef(!1),u=k.useRef(new Map),d=k.useRef(()=>{});return k.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}ss(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}ss(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}ss(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}ss(p,`handleInteractionBubble`);let m=ss(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||ys(ls,s,p,{discrete:!0})};if(ss(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:ss(()=>c.current=!0,`onPointerDownCapture`)}}ss(gs,`usePointerDownOutside`);function _s(e,t=globalThis?.document){let n=as(e),r=k.useRef(!1);return k.useEffect(()=>{let e=ss(e=>{e.target&&!r.current&&ys(us,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:ss(()=>r.current=!0,`onFocusCapture`),onBlurCapture:ss(()=>r.current=!1,`onBlurCapture`)}}ss(_s,`useFocusOutside`);function vs(){let e=new CustomEvent(cs);document.dispatchEvent(e)}ss(vs,`dispatchUpdate`);function ys(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?Ka(i,a):i.dispatchEvent(a)}ss(ys,`handleAndDispatchCustomEvent`);var bs=Object.defineProperty,xs=(e,t)=>bs(e,`name`,{value:t,configurable:!0}),Ss=`focusScope.autoFocusOnMount`,Cs=`focusScope.autoFocusOnUnmount`,ws={bubbles:!1,cancelable:!0},Ts=k.forwardRef(xs(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=k.useState(null),u=as(a),d=as(o),f=k.useRef(null),p=wa(t,l),m=k.useRef(i);k.useEffect(()=>{m.current=i});let h=k.useCallback(e=>e?c?.contains(e)?!0:!!m.current?.some(t=>t.contains(e)):!1,[c]),g=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(r){let e=function(e){if(g.paused||!c)return;let t=e.target;h(t)?f.current=t:Is(f.current,{select:!0})},t=function(e){if(g.paused||!c)return;let t=e.relatedTarget;t!==null&&(h(t)||Is(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Is(c)};xs(e,`handleFocusIn`),xs(t,`handleFocusOut`),xs(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,g.paused,h]),k.useEffect(()=>{if(c){Ls.add(g);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(Ss,ws);c.addEventListener(Ss,u),c.dispatchEvent(t),t.defaultPrevented||(As(Bs(Ms(c)),{select:!0}),document.activeElement===e&&Is(c))}return()=>{c.removeEventListener(Ss,u);let t=c.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(Cs,ws);c.addEventListener(Cs,d),c.dispatchEvent(r),r.defaultPrevented||Is(e??t.body,{select:!0}),c.removeEventListener(Cs,d),Ls.remove(g)},0)}}},[c,u,d,g]);let _=k.useCallback(e=>{if(!n&&!r||g.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]=js(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Is(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Is(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,z.jsx)(Ga.div,{tabIndex:-1,...s,ref:p,onKeyDown:_})},`FocusScope`)),Es=k.createContext(null);function Ds({registry:e,children:t}){return e?(0,z.jsx)(Es.Provider,{value:e,children:t}):t}xs(Ds,`FocusScopeBranchProvider`);function Os(){let[e,t]=k.useState([]);return{nodes:e,registry:k.useMemo(()=>({add:xs(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:xs(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}xs(Os,`useFocusScopeBranchRegistry`);function ks(e){let t=k.useContext(Es);k.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}xs(ks,`useFocusScopeBranch`);function As(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Is(r,{select:t}),document.activeElement!==n)return}xs(As,`focusFirst`);function js(e){let t=Ms(e);return[Ns(t,e),Ns(t.reverse(),e)]}xs(js,`getTabbableEdges`);function Ms(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:xs(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}xs(Ms,`getTabbableCandidates`);function Ns(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Ps(r,{upTo:t})))return r}xs(Ns,`findVisible`);function Ps(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}xs(Ps,`isHidden`);function Fs(e){return e.tagName===`INPUT`&&typeof e.select==`function`}xs(Fs,`isSelectableInput`);function Is(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&Fs(e)&&t&&e.select()}}xs(Is,`focus`);var Ls=Rs();function Rs(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=zs(e,t),e.unshift(t)},remove(t){e=zs(e,t),e[0]?.resume()}}}xs(Rs,`createFocusScopesStack`);function zs(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}xs(zs,`arrayRemove`);function Bs(e){return e.filter(e=>e.tagName!==`A`)}xs(Bs,`removeLinks`);var Vs=Object.defineProperty,Hs=k.forwardRef(((e,t)=>Vs(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=k.useState(!1);no(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?B.createPortal((0,z.jsx)(Ga.div,{...r,ref:t}),o):null},`Portal`)),Us=Object.defineProperty,Ws=(e,t)=>Us(e,`name`,{value:t,configurable:!0}),Gs=0,Ks=null;function qs(e){return Js(),e.children}Ws(qs,`FocusGuards`);function Js(){k.useEffect(()=>{Ks||={start:Ys(),end:Ys()};let{start:e,end:t}=Ks;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Gs++,()=>{Gs===1&&(Ks?.start.remove(),Ks?.end.remove(),Ks=null),Gs=Math.max(0,Gs-1)}},[])}Ws(Js,`useFocusGuards`);function Ys(){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}Ws(Ys,`createFocusGuard`);var Xs=function(){return Xs=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},Xs.apply(this,arguments)};function Zs(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 Qs(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 $s=`right-scroll-bar-position`,ec=`width-before-scroll-bar`,tc=`with-scroll-bars-hidden`,nc=`--removed-body-scroll-bar-size`;function rc(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function ic(e,t){var n=(0,k.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 ac=typeof window<`u`?k.useLayoutEffect:k.useEffect,oc=new WeakMap;function sc(e,t){var n=ic(t||null,function(t){return e.forEach(function(e){return rc(e,t)})});return ac(function(){var t=oc.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||rc(e,null)}),i.forEach(function(e){r.has(e)||rc(e,a)})}oc.set(n,e)},[e]),n}function cc(e){return e}function lc(e,t){t===void 0&&(t=cc);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 uc(e){e===void 0&&(e={});var t=lc(null);return t.options=Xs({async:!0,ssr:!1},e),t}var dc=function(e){var t=e.sideCar,n=Zs(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 k.createElement(r,Xs({},n))};dc.isSideCarExport=!0;function fc(e,t){return e.useMedium(t),dc}var pc=uc(),mc=function(){},hc=k.forwardRef(function(e,t){var n=k.useRef(null),r=k.useState({onScrollCapture:mc,onWheelCapture:mc,onTouchMoveCapture:mc}),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=Zs(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=sc([n,t]),C=Xs(Xs({},b),i);return k.createElement(k.Fragment,null,u&&k.createElement(x,{sideCar:pc,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?k.cloneElement(k.Children.only(s),Xs(Xs({},C),{ref:S})):k.createElement(v,Xs({},C,{className:c,ref:S}),s))});hc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},hc.classNames={fullWidth:ec,zeroRight:$s};var gc=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function _c(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=gc();return t&&e.setAttribute(`nonce`,t),e}function vc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yc(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var bc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_c())&&(vc(t,n),yc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},xc=function(){var e=bc();return function(t,n){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Sc=function(){var e=xc();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Cc={left:0,top:0,right:0,gap:0},wc=function(e){return parseInt(e||``,10)||0},Tc=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[wc(n),wc(r),wc(i)]},Ec=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Cc;var t=Tc(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])}},Dc=Sc(),Oc=`data-scroll-locked`,kc=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
12
12
|
.${tc} {
|
|
13
13
|
overflow: hidden ${r};
|
|
14
14
|
padding-right: ${s}px ${r};
|
|
@@ -53,4 +53,4 @@ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}
|
|
|
53
53
|
- less than the value passed to \`max\` (or ${jf} if no \`max\` prop is set)
|
|
54
54
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
55
55
|
|
|
56
|
-
Defaulting to \`null\`.`}kf(Gf,`getInvalidValueError`);var J=Object.defineProperty,Y=(e,t)=>J(e,`name`,{value:t,configurable:!0}),Kf={ItemAligned:`item-aligned`,Popper:`popper`},qf={LTR:`ltr`,RTL:`rtl`},Jf=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Yf=[` `,`Enter`],Xf=`Select`,[Zf,Qf,$f]=ao(Xf),[ep,tp]=eo(Xf,[$f,sf]),np=sf(),[rp,X]=ep(Xf),[ip,ap]=ep(Xf);function op(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=np(t),[_,v]=k.useState(null),[y,b]=k.useState(null),[x,S]=k.useState(!1),C=ts(l),[w,T]=No({prop:r,defaultProp:i??!1,onChange:a,caller:Xf}),[E,D]=No({prop:o,defaultProp:s,onChange:c,caller:Xf}),O=k.useRef(null),A=k.useRef(!1),[j,M]=k.useState(null),ee=Y(e=>{M({value:e,hasConsumerStoppedPropagation:A.current}),D(e)},`handleUserSelect`),N=k.useRef(E);k.useEffect(()=>{let e=m?_?.ownerDocument.getElementById(m):_?.form;if(e instanceof HTMLFormElement){let t=Y(()=>D(N.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,_,D]);let P=!_||!!m||!!_.closest(`form`),[F,te]=k.useState(new Set),I=Xo(),ne=Array.from(F).map(e=>e.props.value).join(`;`),re=k.useCallback(e=>{te(t=>new Set(t).add(e))},[]),ie=k.useCallback(e=>{te(t=>{let n=new Set(t);return n.delete(e),n})},[]),ae={required:p,trigger:_,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:x,onValueNodeHasChildrenChange:S,contentId:I,value:E,onValueChange:D,hasConsumerStoppedPropagationRef:A,userSelection:j,onUserSelect:ee,open:w,onOpenChange:T,dir:C,triggerPointerDownPosRef:O,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:F,nativeSelectKey:ne,isFormControl:P};return(0,z.jsx)(uf,{...g,children:(0,z.jsx)(rp,{scope:t,...ae,children:(0,z.jsx)(Zf.Provider,{scope:t,children:(0,z.jsx)(ip,{scope:t,onNativeOptionAdd:re,onNativeOptionRemove:ie,children:qp(h)?h(ae):n})})})})}Y(op,`SelectProvider`);var sp=Y(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,z.jsx)(op,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,z.jsxs)(z.Fragment,{children:[n,e?(0,z.jsx)(Kp,{__scopeSelect:t}):null]})})},`Select`),cp=`SelectTrigger`,lp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=np(n),o=X(cp,n),s=o.disabled||r,c=wa(t,o.onTriggerChange),l=Qf(n),u=k.useRef(`touch`),[d,f,p]=Yp(e=>{let t=l().filter(e=>!e.disabled),n=Xp(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onUserSelect(n.value)}),m=Y(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,z.jsx)(ff,{asChild:!0,...a,children:(0,z.jsx)(Ga.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":Jp(o.value)?``:void 0,...i,ref:c,onClick:W(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:W(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:W(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&(o.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),f(e.key)),!(t&&e.key===` `)&&Jf.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),up=`SelectValue`,dp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=X(up,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=wa(t,c.onValueNodeChange);no(()=>{l(u)},[l,u]);let f=Jp(c.value);return(0,z.jsx)(Ga.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,z.jsx)(k.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),fp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,z.jsx)(Ga.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[pp,mp]=ep(`SelectPortal`,{forceMount:void 0}),hp=Y(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,z.jsx)(pp,{scope:e.__scopeSelect,forceMount:n,children:(0,z.jsx)(Hs,{asChild:!0,...r})})},`SelectPortal`),gp=`SelectContent`,_p=k.forwardRef(Y(function(e,t){let n=mp(gp,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=X(gp,e.__scopeSelect),[o,s]=k.useState();return no(()=>{s(new DocumentFragment)},[]),(0,z.jsx)(Bo,{present:r||a.open,children:({present:e})=>e?(0,z.jsx)(Cp,{...i,ref:t}):(0,z.jsx)(vp,{...i,fragment:o})})},`SelectContent`)),vp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?B.createPortal((0,z.jsx)(bp,{scope:n,children:(0,z.jsx)(Zf.Slot,{scope:n,children:(0,z.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),yp=10,[bp,xp]=ep(gp),Sp=Da(`SelectContent.RemoveScroll`),Cp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n}=e,{position:r=Kf.ItemAligned,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,v=X(gp,n),[y,b]=k.useState(null),[x,S]=k.useState(null),C=wa(t,b),[w,T]=k.useState(null),[E,D]=k.useState(null),O=Qf(n),[A,j]=k.useState(!1),M=k.useRef(!1),ee=k.useRef(!1),N=k.useRef(!1);k.useEffect(()=>{if(y)return fl(y)},[y]),Js();let P=k.useCallback(e=>{let[t,...n]=O().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),n?.focus(),document.activeElement!==i))return},[O,x]),F=k.useCallback(()=>P([w,y]),[P,w,y]);k.useEffect(()=>{A&&F()},[A,F]);let{onOpenChange:te,triggerPointerDownPosRef:I}=v;k.useEffect(()=>{if(y){let e={x:0,y:0},t=Y(t=>{e={x:Math.abs(Math.round(t.pageX)-(I.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(I.current?.y??0))}},`handlePointerMove`),n=Y(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(y)||te(!1),document.removeEventListener(`pointermove`,t),I.current=null},`handlePointerUp`);return I.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[y,te,I]),k.useEffect(()=>{let e=Y(()=>te(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[te]);let[ne,re]=Yp(e=>{let t=O().filter(e=>!e.disabled),n=Xp(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),ie=k.useCallback((e,t,n)=>{let r=!ee.current;r&&(ee.current=!0);let i=!M.current&&!n;v.value!==void 0&&v.value===t||i?(T(e),i&&(M.current=!0)):r&&T(e)},[v.value]),ae=k.useCallback(()=>y?.focus(),[y]),oe=k.useCallback((e,t,n)=>{if(!e)return;let r=!N.current;r&&(N.current=!0);let i=!M.current&&!n;(v.value!==void 0&&v.value===t||i||r)&&D(e)},[v.value]),se=r===Kf.Popper?Tp:wp,L=se===Tp?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,z.jsx)(bp,{scope:n,content:y,viewport:x,onViewportChange:S,itemRefCallback:ie,selectedItem:w,onItemLeave:ae,itemTextRefCallback:oe,focusSelectedItem:F,selectedItemText:E,position:r,isPositioned:A,searchRef:ne,children:(0,z.jsx)(rl,{as:Sp,allowPinchZoom:!0,children:(0,z.jsx)(Ts,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:W(i,e=>{v.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,z.jsx)(ps,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,z.jsx)(se,{role:`listbox`,id:v.contentId,"data-state":v.open?`open`:`closed`,dir:v.dir,onContextMenu:e=>e.preventDefault(),..._,...L,onPlaced:()=>j(!0),ref:C,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:W(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&re(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>P(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),wp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=X(gp,n),o=xp(gp,n),[s,c]=k.useState(null),[l,u]=k.useState(null),d=wa(t,u),f=Qf(n),p=k.useRef(!1),m=k.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:v}=o,y=k.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==qf.RTL){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-yp,d=Df(a,[yp,Math.max(yp,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-yp,d=Df(a,[yp,Math.max(yp,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-yp*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-yp,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+v+k,j=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${yp}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);no(()=>y(),[y]);let[b,x]=k.useState();no(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]);let S=k.useCallback(e=>{e&&m.current===!0&&(y(),v?.(),m.current=!1)},[y,v]);return(0,z.jsx)(Ep,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:S,children:(0,z.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:b},children:(0,z.jsx)(Ga.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),Tp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=yp,...a}=e,o=np(n);return(0,z.jsx)(gf,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[Ep,Dp]=ep(gp,{}),Op=`SelectViewport`,kp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=xp(Op,n),o=Dp(Op,n),s=wa(t,a.onViewportChange),c=k.useRef(0);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,z.jsx)(Zf.Slot,{scope:n,children:(0,z.jsx)(Ga.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:W(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-yp*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[Ap,jp]=ep(`SelectGroup`),Mp=`SelectItem`,[Np,Pp]=ep(Mp),Fp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=X(Mp,n),c=xp(Mp,n),l=s.value===r,[u,d]=k.useState(a??``),[f,p]=k.useState(!1),m=wa(t,as(e=>c.itemRefCallback?.(e,r,i))),h=Xo(),g=k.useRef(`touch`);function _(e){s.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),s.onUserSelect(r),s.onOpenChange(!1)}return Y(_,`handleSelect`),(0,z.jsx)(Np,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:k.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,z.jsx)(Zf.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,z.jsx)(Ga.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:W(o.onFocus,()=>p(!0)),onBlur:W(o.onBlur,()=>p(!1)),onClick:W(o.onClick,e=>{i||g.current!==`mouse`&&_(e)}),onPointerUp:W(o.onPointerUp,e=>{i||g.current===`mouse`&&_(e)}),onPointerDown:W(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:W(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:W(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:W(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(Yf.includes(e.key)&&_(e),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),Ip=`SelectItemText`,Lp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=X(Ip,n),s=xp(Ip,n),c=Pp(Ip,n),l=ap(Ip,n),[u,d]=k.useState(null),f=as(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=wa(t,d,c.onItemTextChange,f),m=u?.textContent,h=k.useMemo(()=>(0,z.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:_}=l;return no(()=>(g(h),()=>_(h)),[g,_,h]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Ga.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!Jp(o.value)?B.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),Rp=`SelectItemIndicator`,zp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,...r}=e;return Pp(Rp,n).isSelected?(0,z.jsx)(Ga.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),Bp=`SelectScrollUpButton`,Vp=k.forwardRef(Y(function(e,t){let n=xp(Bp,e.__scopeSelect),r=Dp(Bp,e.__scopeSelect),[i,a]=k.useState(!1),o=wa(t,r.onScrollButtonChange);return no(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};Y(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,z.jsx)(Wp,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),Hp=`SelectScrollDownButton`,Up=k.forwardRef(Y(function(e,t){let n=xp(Hp,e.__scopeSelect),r=Dp(Hp,e.__scopeSelect),[i,a]=k.useState(!1),o=wa(t,r.onScrollButtonChange);return no(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};Y(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,z.jsx)(Wp,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),Wp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=xp(`SelectScrollButton`,n),o=k.useRef(null),s=Qf(n),c=k.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return k.useEffect(()=>()=>c(),[c]),no(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,z.jsx)(Ga.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:W(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:W(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:W(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),Gp=`SelectBubbleInput`,Kp=k.forwardRef(Y(function({__scopeSelect:e,...t},n){let r=X(Gp,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u,userSelection:d}=r,{nativeOptions:f,nativeSelectKey:p}=r,m=k.useRef(null),h=wa(n,m),g=i??``,_=k.useRef(g),v=k.useRef(d),y=k.useRef(!1),b=Array.from(f).some(e=>(e.props.value??``)===``);return k.useEffect(()=>{let e=m.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set,r=d!==null&&d!==v.current;v.current=d;let i=_.current!==g;_.current=g;let a=r&&i;if(r&&!i&&d.value!==g&&!d.hasConsumerStoppedPropagation&&n){y.current=!0;try{n.call(e,d.value),e.dispatchEvent(new Event(`change`,{bubbles:!0}))}finally{y.current=!1,n.call(e,g)}return}let o=a&&!d.hasConsumerStoppedPropagation;if(i&&n){let t=new Event(`change`,{bubbles:o});n.call(e,g),e.dispatchEvent(t)}},[g,d]),(0,z.jsxs)(Ga.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>{y.current||a(e.target.value)},...t,style:{...Ya,...t.style},ref:h,defaultValue:g,children:[Jp(i)&&!b?(0,z.jsx)(`option`,{value:``}):null,Array.from(f)]},p)},`SelectBubbleInput`));function qp(e){return typeof e==`function`}Y(qp,`isFunction`);function Jp(e){return e===``||e===void 0}Y(Jp,`shouldShowPlaceholder`);function Yp(e){let t=as(e),n=k.useRef(``),r=k.useRef(0),i=k.useCallback(e=>{let i=n.current+e;t(i);function a(e){n.current=e,window.clearTimeout(r.current),e!==``&&(r.current=window.setTimeout(()=>a(``),1e3))}Y(a,`updateSearch`),a(i)},[t]),a=k.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return k.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}Y(Yp,`useTypeaheadSearch`);function Xp(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=Zp(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}Y(Xp,`findNextItem`);function Zp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Y(Zp,`wrapArray`);var Qp=Object.defineProperty,$p=(e,t)=>Qp(e,`name`,{value:t,configurable:!0}),em={Horizontal:`horizontal`,Vertical:`vertical`},tm=em.Horizontal,nm=Object.values(em),rm=k.forwardRef($p(function(e,t){let{decorative:n,orientation:r=tm,...i}=e,a=im(r)?r:tm,o=a===em.Vertical?a:void 0,s=n?{role:`none`}:{"aria-orientation":o,role:`separator`};return(0,z.jsx)(Ga.div,{"data-orientation":a,...s,...i,ref:t})},`Separator`));function im(e){return nm.includes(e)}$p(im,`isValidOrientation`);var am=Object.defineProperty,om=(e,t)=>am(e,`name`,{value:t,configurable:!0}),[sm,cm]=eo(`Tooltip`,[sf]),lm=sf(),um=`TooltipProvider`,dm=700,fm=`tooltip.open`,[pm,mm]=sm(um),hm=om(e=>{let{__scopeTooltip:t,delayDuration:n=dm,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=k.useRef(!0),s=k.useRef(!1),c=k.useRef(0);return k.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,z.jsx)(pm,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:k.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:k.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:k.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),gm=`Tooltip`,[_m,vm]=sm(gm),ym=om(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=mm(gm,e.__scopeTooltip),l=lm(t),[u,d]=k.useState(null),[f,p]=k.useState(void 0),m=Xo(),h=k.useRef(0),g=o??c.disableHoverableContent,_=s??c.delayDuration,v=k.useRef(!1),[y,b]=No({prop:r,defaultProp:i??!1,onChange:om(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(fm))):c.onClose(),a?.(e)},`onChange`),caller:gm}),x=k.useMemo(()=>y?v.current?`delayed-open`:`instant-open`:`closed`,[y]),S=k.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,b(!0)},[b]),C=k.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),w=k.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,b(!0),h.current=0},_)},[_,b]);k.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let T=f??m;return(0,z.jsx)(uf,{...l,children:(0,z.jsx)(_m,{scope:t,contentId:T,setContentId:p,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:k.useCallback(()=>{c.isOpenDelayedRef.current?w():S()},[c.isOpenDelayedRef,w,S]),onTriggerLeave:k.useCallback(()=>{g?C():(window.clearTimeout(h.current),h.current=0)},[C,g]),onOpen:S,onClose:C,disableHoverableContent:g,children:n})})},`Tooltip`),bm=`TooltipTrigger`,xm=k.forwardRef(om(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,a=vm(bm,n),o=mm(bm,n),s=lm(n),c=wa(t,k.useRef(null),a.onTriggerChange),l=k.useRef(!1),u=k.useRef(!1),d=k.useCallback(()=>l.current=!1,[]);return k.useEffect(()=>()=>document.removeEventListener(`pointerup`,d),[d]),(0,z.jsx)(ff,{asChild:!0,...s,children:(0,z.jsx)(Ga.button,{"aria-describedby":a.open?Rm(r,a.contentId):r,"data-state":a.stateAttribute,...i,ref:c,onPointerMove:W(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:W(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:W(e.onPointerDown,()=>{a.open&&a.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:W(e.onFocus,()=>{l.current||a.onOpen()}),onBlur:W(e.onBlur,a.onClose),onClick:W(e.onClick,a.onClose)})})},`TooltipTrigger`)),Sm=`TooltipPortal`,[Cm,wm]=sm(Sm,{forceMount:void 0}),Tm=om(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=vm(Sm,t);return(0,z.jsx)(Cm,{scope:t,forceMount:n,children:(0,z.jsx)(Bo,{present:n||a.open,children:(0,z.jsx)(Hs,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),Em=`TooltipContent`,Dm=k.forwardRef(om(function(e,t){let n=wm(Em,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=vm(Em,e.__scopeTooltip);return(0,z.jsx)(Bo,{present:r||o.open,children:o.disableHoverableContent?(0,z.jsx)(Am,{side:i,...a,ref:t}):(0,z.jsx)(Om,{side:i,...a,ref:t})})},`TooltipContent`)),Om=k.forwardRef(om(function(e,t){let n=vm(Em,e.__scopeTooltip),r=mm(Em,e.__scopeTooltip),i=k.useRef(null),a=wa(t,i),[o,s]=k.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=k.useCallback(()=>{s(null),d(!1)},[d]),p=k.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Nm(r,Mm(r,n.getBoundingClientRect())),a=Pm(t.getBoundingClientRect()),o=Im([...i,...a]);s(o),d(!0)},[d]);return k.useEffect(()=>()=>f(),[f]),k.useEffect(()=>{if(c&&u){let e=om(e=>p(e,u),`handleTriggerLeave`),t=om(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),k.useEffect(()=>{if(o){let e=om(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Fm(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,z.jsx)(Am,{...e,ref:a})},`TooltipContentHoverable`)),km=Aa(`TooltipContent`),Am=k.forwardRef(om(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=vm(Em,n),u=lm(n),{onClose:d}=l,[f,p]=k.useState(null),m=wa(t,p);ks(f),k.useEffect(()=>(document.addEventListener(fm,d),()=>document.removeEventListener(fm,d)),[d]),k.useEffect(()=>{if(l.trigger){let e=om(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:h}=l;return no(()=>(h(a),()=>{h(void 0)}),[a,h]),(0,z.jsx)(ps,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,z.jsxs)(gf,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:m,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,z.jsx)(km,{children:r}),i?(0,z.jsx)(Xa,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`)),jm=k.forwardRef(om(function(e,t){let{__scopeTooltip:n,...r}=e,i=lm(n);return(0,z.jsx)(yf,{...i,...r,ref:t})},`TooltipArrow`));function Mm(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}om(Mm,`getExitSideFromRect`);function Nm(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}om(Nm,`getPaddedExitPoints`);function Pm(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}om(Pm,`getPointsFromRect`);function Fm(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}om(Fm,`isPointInPolygon`);function Im(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),Lm(t)}om(Im,`getHull`);function Lm(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}om(Lm,`getHullPresorted`);function Rm(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}om(Rm,`concatAriaDescribedby`);var zm=768;function Bm(){let[e,t]=k.useState(void 0);return k.useEffect(()=>{let e=window.matchMedia(`(max-width: 767px)`),n=()=>{t(window.innerWidth<zm)};return e.addEventListener(`change`,n),t(window.innerWidth<zm),()=>e.removeEventListener(`change`,n)},[]),!!e}var Vm=Di(`inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,xs:`h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`,"icon-xs":`size-6 rounded-md [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function Hm({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let a=r?Oa:`button`;return(0,z.jsx)(a,{"data-slot":`button`,"data-variant":t,"data-size":n,className:U(Vm({variant:t,size:n,className:e})),...i})}function Um({className:e,type:t,...n}){return(0,z.jsx)(`input`,{type:t,"data-slot":`input`,className:U(`h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30`,`focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50`,`aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40`,e),...n})}function Wm({className:e,orientation:t=`horizontal`,decorative:n=!0,...r}){return(0,z.jsx)(rm,{"data-slot":`separator`,decorative:n,orientation:t,className:U(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px`,e),...r})}function Gm({...e}){return(0,z.jsx)(bl,{"data-slot":`sheet`,...e})}function Km({...e}){return(0,z.jsx)(wl,{"data-slot":`sheet-portal`,...e})}function qm({className:e,...t}){return(0,z.jsx)(El,{"data-slot":`sheet-overlay`,className:U(`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 Jm({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,z.jsxs)(Km,{children:[(0,z.jsx)(qm,{}),(0,z.jsxs)(Al,{"data-slot":`sheet-content`,className:U(`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 border-l 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 border-r 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,z.jsxs)(Ll,{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,z.jsx)(R,{className:`size-4`}),(0,z.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function Ym({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`sheet-header`,className:U(`flex flex-col gap-1.5 p-4`,e),...t})}function Xm({className:e,...t}){return(0,z.jsx)(Pl,{"data-slot":`sheet-title`,className:U(`font-semibold text-foreground`,e),...t})}function Zm({className:e,...t}){return(0,z.jsx)(Fl,{"data-slot":`sheet-description`,className:U(`text-sm text-muted-foreground`,e),...t})}function Qm({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`skeleton`,className:U(`animate-pulse rounded-md bg-accent`,e),...t})}function $m({delayDuration:e=0,...t}){return(0,z.jsx)(hm,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function eh({...e}){return(0,z.jsx)(ym,{"data-slot":`tooltip`,...e})}function th({...e}){return(0,z.jsx)(xm,{"data-slot":`tooltip-trigger`,...e})}function nh({className:e,sideOffset:t=0,children:n,...r}){return(0,z.jsx)(Tm,{children:(0,z.jsxs)(Dm,{"data-slot":`tooltip-content`,sideOffset:t,className:U(`z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95`,e),...r,children:[n,(0,z.jsx)(jm,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`})]})})}var rh=`sidebar_state`,ih=604800,ah=`16rem`,oh=`18rem`,sh=`3rem`,ch=`b`,lh=k.createContext(null);function uh(){let e=k.useContext(lh);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function dh({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o}){let s=Bm(),[c,l]=k.useState(!1),[u,d]=k.useState(e),f=t??u,p=k.useCallback(e=>{let t=typeof e==`function`?e(f):e;n?n(t):d(t),document.cookie=`${rh}=${t}; path=/; max-age=${ih}`},[n,f]),m=k.useCallback(()=>s?l(e=>!e):p(e=>!e),[s,p,l]);k.useEffect(()=>{let e=e=>{e.key===ch&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),m())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[m]);let h=f?`expanded`:`collapsed`,g=k.useMemo(()=>({state:h,open:f,setOpen:p,isMobile:s,openMobile:c,setOpenMobile:l,toggleSidebar:m}),[h,f,p,s,c,l,m]);return(0,z.jsx)(lh.Provider,{value:g,children:(0,z.jsx)($m,{delayDuration:0,children:(0,z.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":ah,"--sidebar-width-icon":sh,...i},className:U(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),...o,children:a})})})}function fh({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:c,setOpenMobile:l}=uh();return n===`none`?(0,z.jsx)(`div`,{"data-slot":`sidebar`,className:U(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),...a,children:i}):o?(0,z.jsx)(Gm,{open:c,onOpenChange:l,...a,children:(0,z.jsxs)(Jm,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,style:{"--sidebar-width":oh},side:e,children:[(0,z.jsxs)(Ym,{className:`sr-only`,children:[(0,z.jsx)(Xm,{children:`Sidebar`}),(0,z.jsx)(Zm,{children:`Displays the mobile sidebar.`})]}),(0,z.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,z.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-state":s,"data-collapsible":s===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,z.jsx)(`div`,{"data-slot":`sidebar-gap`,className:U(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,z.jsx)(`div`,{"data-slot":`sidebar-container`,className:U(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,e===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...a,children:(0,z.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm`,children:i})})]})}function ph({className:e,onClick:t,...n}){let{toggleSidebar:r}=uh();return(0,z.jsxs)(Hm,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:U(`size-7`,e),onClick:e=>{t?.(e),r()},...n,children:[(0,z.jsx)(se,{}),(0,z.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function mh({className:e,...t}){let{toggleSidebar:n}=uh();return(0,z.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:U(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})}function hh({className:e,...t}){return(0,z.jsx)(`main`,{"data-slot":`sidebar-inset`,className:U(`relative flex w-full flex-1 flex-col bg-background`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2`,e),...t})}function gh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:U(`flex flex-col gap-2 p-2`,e),...t})}function _h({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:U(`flex flex-col gap-2 p-2`,e),...t})}function vh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:U(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function yh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:U(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function bh({className:e,asChild:t=!1,...n}){let r=t?Oa:`div`;return(0,z.jsx)(r,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:U(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0`,e),...n})}function xh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:U(`w-full text-sm`,e),...t})}function Sh({className:e,...t}){return(0,z.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:U(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function Ch({className:e,...t}){return(0,z.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:U(`group/menu-item relative`,e),...t})}var wh=Di(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[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:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function Th({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o}){let s=e?Oa:`button`,{isMobile:c,state:l}=uh(),u=(0,z.jsx)(s,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:U(wh({variant:n,size:r}),a),...o});return i?(typeof i==`string`&&(i={children:i}),(0,z.jsxs)(eh,{children:[(0,z.jsx)(th,{asChild:!0,children:u}),(0,z.jsx)(nh,{side:`right`,align:`center`,hidden:l!==`collapsed`||c,...i})]})):u}function Eh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:U(`pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none`,`peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function Dh(){let e=ii(Si.projects),t=ii(Si.actors),n=ii(Si.scenes),r=ii(Si.costumes);return[{title:`项目`,to:`/projects`,icon:ne,count:e.data?.length},{title:`演员`,to:`/actors`,icon:fe,count:t.data?.length},{title:`场景`,to:`/scenes`,icon:ae,count:n.data?.length},{title:`服饰`,to:`/costumes`,icon:ue,count:r.data?.length}]}function Oh({item:e,active:t}){return(0,z.jsxs)(Ch,{className:`relative`,children:[(0,z.jsx)(Th,{asChild:!0,isActive:t,tooltip:e.title,className:`relative data-[active=true]:bg-foreground/18 data-[active=true]:text-foreground data-[active=true]:before:absolute data-[active=true]:before:top-1/2 data-[active=true]:before:left-0 data-[active=true]:before:h-5 data-[active=true]:before:w-1 data-[active=true]:before:-translate-y-1/2 data-[active=true]:before:rounded-full data-[active=true]:before:bg-foreground data-[active=true]:before:content-['']`,children:(0,z.jsxs)(Jr,{to:e.to,children:[(0,z.jsx)(e.icon,{}),(0,z.jsx)(`span`,{children:e.title})]})}),e.count===void 0?null:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Eh,{className:`tabular-nums`,children:e.count}),(0,z.jsx)(`span`,{className:`pointer-events-none absolute top-1/2 right-2 hidden size-1 -translate-y-1/2 rounded-full bg-foreground/45 group-data-[collapsible=icon]:block`})]})]})}function kh(){let e=Dh(),{pathname:t}=kn();return(0,z.jsxs)(fh,{collapsible:`icon`,children:[(0,z.jsx)(gh,{children:(0,z.jsxs)(`div`,{className:`flex h-12 items-center justify-between gap-1 px-2 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0`,children:[(0,z.jsxs)(Th,{size:`lg`,className:`pointer-events-none group-data-[collapsible=icon]:hidden`,tooltip:`APA`,children:[(0,z.jsx)(`div`,{className:`flex aspect-square size-8 shrink-0 items-center justify-center rounded-md bg-foreground text-background`,children:(0,z.jsx)(I,{className:`size-4`})}),(0,z.jsx)(`span`,{className:`text-[15px] font-semibold tracking-tight`,children:`APA`})]}),(0,z.jsx)(ph,{className:`size-7 shrink-0 text-sidebar-foreground/60`})]})}),(0,z.jsx)(vh,{children:(0,z.jsxs)(yh,{children:[(0,z.jsx)(bh,{children:`创作`}),(0,z.jsx)(xh,{children:(0,z.jsx)(Sh,{children:e.map(e=>(0,z.jsx)(Oh,{item:e,active:t===e.to},e.to))})})]})}),(0,z.jsx)(_h,{children:(0,z.jsx)(Sh,{children:(0,z.jsx)(Ch,{children:(0,z.jsx)(Th,{asChild:!0,isActive:t===`/settings`,tooltip:`系统设置`,className:`relative data-[active=true]:bg-foreground/18 data-[active=true]:text-foreground data-[active=true]:before:absolute data-[active=true]:before:top-1/2 data-[active=true]:before:left-0 data-[active=true]:before:h-5 data-[active=true]:before:w-1 data-[active=true]:before:-translate-y-1/2 data-[active=true]:before:rounded-full data-[active=true]:before:bg-foreground data-[active=true]:before:content-['']`,children:(0,z.jsxs)(Jr,{to:`/settings`,children:[(0,z.jsx)(le,{}),(0,z.jsx)(`span`,{children:`系统设置`})]})})})})}),(0,z.jsx)(mh,{})]})}var Ah=[{to:`/projects`,label:`项目`,icon:ne},{to:`/actors`,label:`演员`,icon:fe},{to:`/scenes`,label:`场景`,icon:ae},{to:`/costumes`,label:`服饰`,icon:ue},{to:`/settings`,label:`设置`,icon:le}];function jh(){return(0,z.jsx)(`nav`,{className:`fixed inset-x-0 bottom-0 z-40 flex h-14 items-stretch border-t bg-background/90 pb-[env(safe-area-inset-bottom)] backdrop-blur md:hidden`,children:Ah.map(e=>(0,z.jsx)(Jr,{to:e.to,className:({isActive:e})=>`relative flex flex-1 flex-col items-center justify-center gap-0.5 text-[10px] ${e?`text-foreground`:`text-muted-foreground`}`,children:({isActive:t})=>(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{className:`absolute top-0 h-0.5 w-8 rounded-full bg-foreground transition-opacity ${t?`opacity-100`:`opacity-0`}`}),(0,z.jsx)(e.icon,{className:`size-5`}),(0,z.jsx)(`span`,{className:t?`font-medium`:void 0,children:e.label})]})},e.to))})}function Mh(){return(0,z.jsxs)(dh,{children:[(0,z.jsx)(kh,{}),(0,z.jsxs)(hh,{children:[(0,z.jsxs)(`header`,{className:`flex h-12 shrink-0 items-center gap-4 border-b px-4 md:hidden`,children:[(0,z.jsx)(ph,{}),(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(`div`,{className:`flex size-6 items-center justify-center rounded bg-foreground text-background`,children:(0,z.jsx)(I,{className:`size-3.5`})}),(0,z.jsx)(`span`,{className:`text-[14px] font-semibold tracking-tight`,children:`APA`})]})]}),(0,z.jsx)(`div`,{className:`pb-14 md:pb-0`,children:(0,z.jsx)(ar,{})}),(0,z.jsx)(jh,{})]})]})}function Nh({title:e,description:t,actions:n,flush:r=!1}){return(0,z.jsxs)(`header`,{className:r?`flex items-center justify-between gap-3 pt-5 pb-4 sm:flex-row sm:items-start sm:justify-between sm:gap-4 sm:pt-7`:`flex items-center justify-between gap-3 px-4 pt-5 pb-4 sm:flex-row sm:items-start sm:justify-between sm:gap-4 sm:px-8 sm:pt-7`,children:[(0,z.jsxs)(`div`,{className:`min-w-0`,children:[(0,z.jsx)(`h1`,{className:`text-lg font-semibold tracking-tight sm:text-xl`,children:e}),t?(0,z.jsx)(`p`,{className:`mt-1 hidden text-[13px] text-muted-foreground sm:block`,children:t}):null]}),n?(0,z.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:n}):null]})}function Ph({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card`,className:U(`flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm`,e),...t})}function Fh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card-header`,className:U(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,e),...t})}function Ih({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card-content`,className:U(`px-6`,e),...t})}function Lh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card-footer`,className:U(`flex items-center px-6 [.border-t]:pt-6`,e),...t})}var Rh=(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},zh=(e,t)=>({classGroupId:e,validator:t}),Bh=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Vh=`-`,Hh=[],Uh=`arbitrary..`,Wh=e=>{let t=qh(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Kh(e);let n=e.split(Vh);return Gh(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Rh(i,t):t:i||Hh}return n[e]||Hh}}},Gh=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Gh(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Vh):e.slice(t).join(Vh),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Kh=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?Uh+r:void 0})(),qh=e=>{let{theme:t,classGroups:n}=e;return Jh(n,t)},Jh=(e,t)=>{let n=Bh();for(let r in e){let i=e[r];Yh(i,n,r,t)}return n},Yh=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Xh(i,t,n,r)}},Xh=(e,t,n,r)=>{typeof e==`string`?Zh(e,t,n):typeof e==`function`?Qh(e,t,n,r):$h(e,t,n,r)},Zh=(e,t,n)=>{let r=e===``?t:eg(t,e);r.classGroupId=n},Qh=(e,t,n,r)=>{tg(e)?Yh(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(zh(n,e)))},$h=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Yh(o,eg(t,a),n,r)}},eg=(e,t)=>{let n=e,r=t.split(Vh),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Bh(),n.nextPart.set(t,i)),n=i}return n},tg=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ng=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)}}},rg=`!`,ig=`:`,ag=[],og=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),sg=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===ig){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(rg)?(c=s.slice(0,-1),l=!0):s.startsWith(rg)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return og(t,l,c,u)};if(t){let e=t+ig,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):og(ag,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},cg=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}},lg=e=>({cache:ng(e.cacheSize),parseClassName:sg(e),sortModifiers:cg(e),postfixLookupClassGroupIds:ug(e),...Wh(e)}),ug=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},dg=/\s+/,fg=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(dg),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||(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?_+rg:_,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},pg=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=mg(n))&&(i&&(i+=` `),i+=r);return i},mg=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=mg(e[r]))&&(n&&(n+=` `),n+=t);return n},hg=(e,...t)=>{let n,r,i,a,o=o=>(n=lg(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=fg(e,n);return i(e,a),a};return a=o,(...e)=>a(pg(...e))},gg=[],_g=e=>{let t=t=>t[e]||gg;return t.isThemeGetter=!0,t.themeKey=e,t},vg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,yg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,bg=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,xg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Sg=/\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$/,Cg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,wg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Eg=e=>bg.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),Dg=e=>!!e&&Number.isInteger(Number(e)),Og=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),kg=e=>xg.test(e),Ag=()=>!0,jg=e=>Sg.test(e)&&!Cg.test(e),Mg=()=>!1,Ng=e=>wg.test(e),Pg=e=>Tg.test(e),Fg=e=>!Q(e)&&!$(e),Ig=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)),Lg=e=>Qg(e,n_,Mg),Q=e=>vg.test(e),Rg=e=>Qg(e,r_,jg),zg=e=>Qg(e,i_,Z),Bg=e=>Qg(e,o_,Ag),Vg=e=>Qg(e,a_,Mg),Hg=e=>Qg(e,e_,Mg),Ug=e=>Qg(e,t_,Pg),Wg=e=>Qg(e,s_,Ng),$=e=>yg.test(e),Gg=e=>$g(e,r_),Kg=e=>$g(e,a_),qg=e=>$g(e,e_),Jg=e=>$g(e,n_),Yg=e=>$g(e,t_),Xg=e=>$g(e,s_,!0),Zg=e=>$g(e,o_,!0),Qg=(e,t,n)=>{let r=vg.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$g=(e,t,n=!1)=>{let r=yg.exec(e);return r?r[1]?t(r[1]):n:!1},e_=e=>e===`position`||e===`percentage`,t_=e=>e===`image`||e===`url`,n_=e=>e===`length`||e===`size`||e===`bg-size`,r_=e=>e===`length`,i_=e=>e===`number`,a_=e=>e===`family-name`,o_=e=>e===`number`||e===`weight`,s_=e=>e===`shadow`,c_=hg(()=>{let e=_g(`color`),t=_g(`font`),n=_g(`text`),r=_g(`font-weight`),i=_g(`tracking`),a=_g(`leading`),o=_g(`breakpoint`),s=_g(`container`),c=_g(`spacing`),l=_g(`radius`),u=_g(`shadow`),d=_g(`inset-shadow`),f=_g(`text-shadow`),p=_g(`drop-shadow`),m=_g(`blur`),h=_g(`perspective`),g=_g(`aspect`),_=_g(`ease`),v=_g(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],T=()=>[Eg,`full`,`auto`,...w()],E=()=>[Dg,`none`,`subgrid`,$,Q],D=()=>[`auto`,{span:[`full`,Dg,$,Q]},Dg,$,Q],O=()=>[Dg,`auto`,$,Q],k=()=>[`auto`,`min`,`max`,`fr`,$,Q],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],ee=()=>[Eg,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],N=()=>[s,Eg,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],P=()=>[Eg,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,$,Q],te=()=>[...b(),qg,Hg,{position:[$,Q]}],I=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ne=()=>[`auto`,`cover`,`contain`,Jg,Lg,{size:[$,Q]}],re=()=>[Og,Gg,Rg],ie=()=>[``,`none`,`full`,l,$,Q],ae=()=>[``,Z,Gg,Rg],oe=()=>[`solid`,`dashed`,`dotted`,`double`],se=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],L=()=>[Z,Og,qg,Hg],ce=()=>[``,`none`,m,$,Q],le=()=>[`none`,Z,$,Q],ue=()=>[`none`,Z,$,Q],de=()=>[Z,$,Q],fe=()=>[Eg,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[kg],breakpoint:[kg],color:[Ag],container:[kg],"drop-shadow":[kg],ease:[`in`,`out`,`in-out`],font:[Fg],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[kg],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[kg],shadow:[kg],spacing:[`px`,Z],text:[kg],"text-shadow":[kg],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Eg,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[Ig],columns:[{columns:[Z,`auto`,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Dg,`auto`,$,Q]}],basis:[{basis:[Eg,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,Eg,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[Dg,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ee()}],"inline-size":[{inline:[`auto`,...N()]}],"min-inline-size":[{"min-inline":[`auto`,...N()]}],"max-inline-size":[{"max-inline":[`none`,...N()]}],"block-size":[{block:[`auto`,...P()]}],"min-block-size":[{"min-block":[`auto`,...P()]}],"max-block-size":[{"max-block":[`none`,...P()]}],w:[{w:[s,`screen`,...ee()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ee()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ee()]}],h:[{h:[`screen`,`lh`,...ee()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ee()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...ee()]}],"font-size":[{text:[`base`,n,Gg,Rg]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Zg,Bg]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Og,Q]}],"font-family":[{font:[Kg,Vg,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,zg]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...oe(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,Rg]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"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:[Dg,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Dg,$,Q],radial:[``,$,Q],conic:[``,Dg,$,Q]},Yg,Ug]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...oe(),`hidden`,`none`]}],"divide-style":[{divide:[...oe(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...oe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,Gg,Rg]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`inner`,`none`,u,Xg,Wg]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,Xg,Wg]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:ae()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Z,Rg]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,Xg,Wg]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...se(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":se()}],"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":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:ce()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Xg,Wg]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":[`scale-3d`],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":[`translate-none`],zoom:[{zoom:[Dg,$,Q]}],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,$,Q]}],"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":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[Z,Gg,Rg,zg]}],stroke:[{stroke:[`none`,...F()]}],"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":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`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-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`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-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`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-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`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-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`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 l_(...e){return c_(wi(e))}var u_=`[background-image:linear-gradient(to_right,var(--grid-line)_1px,transparent_1px),linear-gradient(to_bottom,var(--grid-line)_1px,transparent_1px)] [background-size:24px_24px]`,d_={backgroundImage:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E")`,backgroundSize:`120px 120px`};function f_(e){let t=Math.round(e*137.508%360);return t>20&&t<75&&(t=(t+45)%360),t}function p_(e,t=0){return((e.includes(`夜`)?250:e.includes(`无自然光`)?185:e.includes(`黄昏`)||e.includes(`晨`)?30:100)+(t%3-1)*8+360)%360}function m_(e){return`/${e}`}function h_({placeholder:e,unit:t,count:n,countHidden:r=!1,query:i,onQueryChange:a,children:o}){return(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 px-4 pb-5 sm:px-8`,children:[(0,z.jsxs)(`div`,{className:`relative w-full sm:w-72`,children:[(0,z.jsx)(ce,{className:`absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground sm:left-2.5 sm:size-3.5`}),(0,z.jsx)(Um,{value:i,onChange:e=>a(e.target.value),placeholder:e,disabled:r,className:`h-11 rounded-md bg-card pl-10 pr-4 text-[15px] sm:h-8 sm:pl-8 sm:pr-8 sm:text-[13px]`}),r?null:(0,z.jsx)(`kbd`,{className:`pointer-events-none absolute top-1/2 right-2 hidden -translate-y-1/2 rounded border bg-muted px-1 font-sans text-[10px] text-muted-foreground sm:block`,children:`⌘K`})]}),o?(0,z.jsx)(`div`,{className:`min-w-0 flex-1 sm:ml-auto sm:flex-none`,children:o}):null,r?null:n===null?n!==void 0&&!o?(0,z.jsx)(Qm,{className:`ml-auto hidden h-3.5 w-16 sm:block`}):null:(0,z.jsxs)(`span`,{className:`ml-auto hidden text-[12px] tabular-nums text-muted-foreground sm:inline`,children:[n,` `,t]})]})}function g_({variant:e}){return(0,z.jsxs)(Ph,{className:`gap-0 overflow-hidden py-0`,children:[(0,z.jsx)(`div`,{className:`relative h-16 border-b bg-foreground/[0.06] sm:h-24`,children:e===`project`?(0,z.jsx)(Qm,{className:`absolute top-3 left-4 h-5 w-16 rounded-md`}):e===`actor`?null:(0,z.jsx)(Qm,{className:`absolute top-2.5 left-3 h-5 w-12 rounded`})}),(0,z.jsxs)(Ih,{className:`space-y-2.5 p-4`,children:[(0,z.jsx)(Qm,{className:`h-4 w-2/5`}),(0,z.jsx)(Qm,{className:`h-3 w-full`}),(0,z.jsx)(Qm,{className:`h-3 w-3/5`}),e===`actor`?(0,z.jsx)(`div`,{className:`flex gap-1 pt-0.5`,children:(0,z.jsx)(Qm,{className:`h-3 w-14`})}):null]}),(0,z.jsxs)(`div`,{className:`flex items-center gap-2.5 border-t px-4 py-3`,children:[e===`project`?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Qm,{className:`h-1.5 min-w-0 flex-1`}),(0,z.jsx)(Qm,{className:`h-3 w-7`})]}):(0,z.jsx)(Qm,{className:`h-3 w-24`}),(0,z.jsx)(Qm,{className:`ml-auto h-3 w-12`})]})]})}function __({variant:e,count:t=6,cols:n=`md:grid-cols-2 xl:grid-cols-3`}){return(0,z.jsx)(`div`,{className:l_(`grid gap-4`,n),children:Array.from({length:t},(t,n)=>(0,z.jsx)(g_,{variant:e},n))})}function v_({onRetry:e}){return(0,z.jsx)(`div`,{className:`flex flex-1 items-center justify-center py-4`,children:(0,z.jsxs)(`div`,{className:`relative flex w-full max-w-xl flex-col items-center justify-center gap-3 overflow-hidden rounded-lg border bg-card py-14 text-center shadow-xs`,children:[(0,z.jsx)(`div`,{className:`absolute inset-0 opacity-60 ${u_}`}),(0,z.jsx)(`div`,{className:`relative flex size-9 items-center justify-center rounded-full bg-destructive/20`,children:(0,z.jsx)(de,{className:`size-4 text-red-500`})}),(0,z.jsxs)(`div`,{className:`relative`,children:[(0,z.jsx)(`p`,{className:`text-[14px] font-medium`,children:`无法连接服务`}),(0,z.jsx)(`p`,{className:`mt-1 text-[12.5px] text-foreground/70`,children:`网络连接异常,请检查后重试`})]}),e?(0,z.jsx)(Hm,{size:`sm`,className:`relative mt-1`,onClick:e,children:`重试`}):null]})})}function y_({children:e}){return(0,z.jsx)(`div`,{className:`flex flex-1 flex-col px-4 pb-8 sm:px-8`,children:e})}function b_({...e}){return(0,z.jsx)(bl,{"data-slot":`dialog`,...e})}function x_({...e}){return(0,z.jsx)(wl,{"data-slot":`dialog-portal`,...e})}function S_({className:e,...t}){return(0,z.jsx)(El,{"data-slot":`dialog-overlay`,className:U(`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 C_({className:e,children:t,showCloseButton:n=!0,...r}){return(0,z.jsxs)(x_,{"data-slot":`dialog-portal`,children:[(0,z.jsx)(S_,{}),(0,z.jsxs)(Al,{"data-slot":`dialog-content`,className:U(`fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-xl duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg`,e),...r,children:[t,n&&(0,z.jsxs)(Ll,{"data-slot":`dialog-close`,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-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,children:[(0,z.jsx)(R,{}),(0,z.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function w_({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`dialog-header`,className:U(`flex flex-col gap-2 text-left`,e),...t})}function T_({className:e,showCloseButton:t=!1,children:n,...r}){return(0,z.jsxs)(`div`,{"data-slot":`dialog-footer`,className:U(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,z.jsx)(Ll,{asChild:!0,children:(0,z.jsx)(Hm,{variant:`outline`,children:`Close`})})]})}function E_({className:e,...t}){return(0,z.jsx)(Pl,{"data-slot":`dialog-title`,className:U(`text-lg leading-none font-semibold`,e),...t})}function D_({className:e,...t}){return(0,z.jsx)(Fl,{"data-slot":`dialog-description`,className:U(`text-sm text-muted-foreground`,e),...t})}function O_({className:e,...t}){return(0,z.jsx)(wf,{"data-slot":`label`,className:U(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}function k_({...e}){return(0,z.jsx)(sp,{"data-slot":`select`,...e})}function A_({...e}){return(0,z.jsx)(dp,{"data-slot":`select-value`,...e})}function j_({className:e,size:t=`default`,children:n,...r}){return(0,z.jsxs)(lp,{"data-slot":`select-trigger`,"data-size":t,className:U(`flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground`,e),...r,children:[n,(0,z.jsx)(fp,{asChild:!0,children:(0,z.jsx)(N,{className:`size-4 opacity-50`})})]})}function M_({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,z.jsx)(hp,{children:(0,z.jsxs)(_p,{"data-slot":`select-content`,className:U(`relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,align:r,...i,children:[(0,z.jsx)(P_,{}),(0,z.jsx)(kp,{className:U(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,z.jsx)(F_,{})]})})}function N_({className:e,children:t,...n}){return(0,z.jsxs)(Fp,{"data-slot":`select-item`,className:U(`relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,z.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,z.jsx)(zp,{children:(0,z.jsx)(ee,{className:`size-4`})})}),(0,z.jsx)(Lp,{children:t})]})}function P_({className:e,...t}){return(0,z.jsx)(Vp,{"data-slot":`select-scroll-up-button`,className:U(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,z.jsx)(F,{className:`size-4`})})}function F_({className:e,...t}){return(0,z.jsx)(Up,{"data-slot":`select-scroll-down-button`,className:U(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,z.jsx)(N,{className:`size-4`})})}function I_({className:e,...t}){return(0,z.jsx)(`textarea`,{"data-slot":`textarea`,className:U(`flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40`,e),...t})}function L_({value:e,onChange:t,placeholder:n,max:r=8,className:i}){let[a,o]=(0,k.useState)(``);function s(n){let i=n.trim().replace(/[,,]$/,``);!i||e.includes(i)||e.length>=r||t([...e,i])}function c(n){n.key===`Enter`||n.key===`,`?(n.preventDefault(),s(a),o(``)):n.key===`Backspace`&&!a&&e.length>0&&t(e.slice(0,-1))}return(0,z.jsxs)(`div`,{className:l_(`flex min-h-9 w-full flex-wrap items-center gap-1.5 rounded-md border bg-transparent px-2.5 py-1.5 text-sm focus-within:ring-3 focus-within:ring-ring/50`,i),children:[e.map(n=>(0,z.jsxs)(`span`,{className:`flex items-center gap-0.5 rounded border bg-muted px-1.5 py-0.5 text-[11px] text-foreground`,children:[n,(0,z.jsx)(`button`,{type:`button`,"aria-label":`移除 ${n}`,className:`text-muted-foreground transition-colors hover:text-foreground`,onClick:()=>t(e.filter(e=>e!==n)),children:(0,z.jsx)(R,{className:`size-3`})})]},n)),(0,z.jsx)(Um,{value:a,onChange:e=>o(e.target.value),onKeyDown:c,onBlur:()=>{s(a),o(``)},placeholder:e.length?``:n,className:`h-6 min-w-16 flex-1 border-0 bg-transparent px-0 text-[13px] shadow-none focus-visible:ring-0`})]})}function R_(e){let t={};for(let n of e)t[n.name]=n.kind===`tags`?[]:n.kind===`select`?n.options[0]?.value??``:``;return t}function z_({open:e,onOpenChange:t,title:n,description:r,fields:i,submitLabel:a,submitting:o=!1,onSubmit:s}){let[c,l]=(0,k.useState)(()=>R_(i)),[u,d]=(0,k.useState)(null);(0,k.useEffect)(()=>{e&&(l(R_(i)),d(null))},[e]);function f(e,t){l(n=>({...n,[e]:t}))}async function p(){let e=i.find(e=>e.kind===`text`&&`required`in e&&e.required&&!String(c[e.name]??``).trim());if(e)d(`请填写「${e.label}」`);else try{await s(c),t(!1)}catch{d(`提交失败,请稍后重试`)}}return(0,z.jsx)(b_,{open:e,onOpenChange:t,children:(0,z.jsxs)(C_,{className:`max-h-[85vh] overflow-y-auto text-left sm:max-w-lg sm:text-left`,onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&e.key===`Enter`&&(e.preventDefault(),p())},children:[(0,z.jsxs)(w_,{children:[(0,z.jsx)(E_,{children:n}),r?(0,z.jsx)(D_,{children:r}):null]}),(0,z.jsx)(`div`,{className:`grid gap-4 py-1`,children:i.map(e=>(0,z.jsxs)(`div`,{className:`grid gap-2`,children:[(0,z.jsxs)(O_,{htmlFor:`ff-${e.name}`,children:[e.label,e.kind===`text`&&`required`in e&&e.required?(0,z.jsx)(`span`,{className:`-ml-1 text-destructive`,children:`*`}):null]}),e.kind===`text`?(0,z.jsxs)(`div`,{className:`relative`,children:[(0,z.jsx)(Um,{id:`ff-${e.name}`,value:String(c[e.name]??``),onChange:t=>f(e.name,t.target.value),placeholder:`placeholder`in e?e.placeholder:void 0,className:`h-9 pr-8`,list:`suggestions`in e&&e.suggestions?`ff-sug-${e.name}`:void 0}),`suggestions`in e&&e.suggestions?(0,z.jsx)(N,{className:`pointer-events-none absolute top-1/2 right-2.5 size-3.5 -translate-y-1/2 text-muted-foreground`}):null,`suggestions`in e&&e.suggestions?(0,z.jsx)(`datalist`,{id:`ff-sug-${e.name}`,children:e.suggestions.map(e=>(0,z.jsx)(`option`,{value:e},e))}):null]}):e.kind===`textarea`?(0,z.jsx)(I_,{id:`ff-${e.name}`,value:String(c[e.name]??``),onChange:t=>f(e.name,t.target.value),placeholder:`placeholder`in e?e.placeholder:void 0,rows:`rows`in e?e.rows:3,className:`resize-none`}):e.kind===`select`?(0,z.jsxs)(k_,{value:String(c[e.name]??``),onValueChange:t=>f(e.name,t===`__empty`?``:t),children:[(0,z.jsx)(j_,{id:`ff-${e.name}`,className:`w-full`,children:(0,z.jsx)(A_,{})}),(0,z.jsxs)(M_,{children:[`emptyLabel`in e&&e.emptyLabel?(0,z.jsx)(N_,{value:`__empty`,children:e.emptyLabel}):null,e.options.map(e=>(0,z.jsx)(N_,{value:e.value,children:e.label},e.value))]})]}):(0,z.jsx)(L_,{value:c[e.name]??[],onChange:t=>f(e.name,t),placeholder:`placeholder`in e?e.placeholder:void 0})]},e.name))}),u?(0,z.jsx)(`p`,{className:`text-[12px] text-destructive`,children:u}):null,(0,z.jsxs)(T_,{className:`gap-2 sm:items-center`,children:[(0,z.jsxs)(`span`,{className:`mr-auto hidden text-[11px] text-muted-foreground sm:inline`,children:[(0,z.jsx)(`kbd`,{className:`rounded border bg-muted px-1 font-sans`,children:`⌘ ↵`}),` 提交 ·`,` `,(0,z.jsx)(`kbd`,{className:`rounded border bg-muted px-1 font-sans`,children:`ESC`}),` 关闭`]}),(0,z.jsx)(Hm,{variant:`outline`,onClick:()=>t(!1),disabled:o,children:`取消`}),(0,z.jsx)(Hm,{onClick:p,disabled:o,children:o?`提交中…`:a})]})]})})}function B_(e,t){return String(e[t]??``).trim()}function V_(e,t){return e[t]??[]}function H_({actor:e}){let t=f_(e.name.codePointAt(0)??0);return(0,z.jsxs)(Ph,{className:`gap-3 py-4 transition-colors hover:border-foreground/25`,children:[(0,z.jsxs)(Ih,{className:`p-4`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-3`,children:[e.avatar?(0,z.jsx)(`img`,{src:m_(e.avatar),alt:e.name,loading:`lazy`,className:`size-14 shrink-0 rounded-full object-cover ring-1 ring-foreground/10`}):(0,z.jsx)(`div`,{className:`relative flex size-14 shrink-0 items-center justify-center overflow-hidden rounded-full ring-1 ring-white/20`,style:{backgroundColor:`oklch(0.55 0.1 ${t})`,backgroundImage:`radial-gradient(42px 32px at 68% 28%, oklch(0.75 0.1 ${t}), transparent 74%)`},children:(0,z.jsx)(`span`,{className:`text-lg font-medium text-white/90`,children:e.name.slice(0,1)})}),(0,z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,z.jsx)(`h3`,{className:`truncate text-[15px] font-medium tracking-tight`,children:e.name}),(0,z.jsxs)(`p`,{className:`mt-0.5 text-[11px] tabular-nums text-muted-foreground`,children:[`参演 `,e.projectCount,` 个项目`]})]})]}),(0,z.jsx)(`p`,{className:`mt-3 line-clamp-2 min-h-10 text-[12px] leading-5 text-muted-foreground [text-wrap:pretty]`,children:e.persona})]}),(0,z.jsxs)(Lh,{className:`items-center justify-between gap-2 border-t px-4 py-2.5 text-xs text-muted-foreground tabular-nums sm:text-[11px]`,children:[(0,z.jsx)(`span`,{className:`truncate`,children:e.tags.join(` · `)}),(0,z.jsx)(`span`,{className:`shrink-0 text-muted-foreground/70`,title:`创建于 ${new Date(e.createdAt).toLocaleDateString(`zh-CN`)}`,children:new Date(e.createdAt).toLocaleDateString(`zh-CN`,{month:`short`,day:`numeric`})})]})]})}function U_(){let{data:e,error:t,loading:n,reload:r}=ii(Si.actors),[i,a]=(0,k.useState)(``),[o,s]=(0,k.useState)(!1),[c,l]=(0,k.useState)(!1),u=[{kind:`text`,name:`name`,label:`演员名称`,placeholder:`角色名或演员名`,required:!0},{kind:`textarea`,name:`persona`,label:`形象描述`,placeholder:`外形、气质、声线、代表作…`},{kind:`tags`,name:`tags`,label:`戏路标签`,placeholder:`输入标签后回车`}];async function d(e){l(!0);try{await Si.createActor({name:B_(e,`name`),persona:B_(e,`persona`),tags:V_(e,`tags`)}),Pe.success(`演员已创建`),r()}finally{l(!1)}}let f=(0,k.useMemo)(()=>{let t=i.trim();return e?t?e.filter(e=>(e.name+e.persona+e.tags.join()).includes(t)):e:null},[e,i]);return(0,z.jsxs)(`div`,{className:`flex min-h-svh flex-col`,children:[(0,z.jsx)(Nh,{title:`演员`,description:`AI 生成的演员形象库,可在各项目中复用`,actions:(0,z.jsxs)(Hm,{size:`sm`,className:`gap-1.5`,onClick:()=>s(!0),children:[(0,z.jsx)(L,{className:`size-3.5`}),`新建演员`]})}),(0,z.jsx)(z_,{open:o,onOpenChange:s,title:`新建演员`,description:`创建演员档案,形象可稍后用 AI 生成`,submitLabel:`创建演员`,submitting:c,fields:u,onSubmit:d}),!t&&(0,z.jsx)(h_,{placeholder:`搜索演员…`,unit:`位演员`,count:t||n?null:f?.length??0,countHidden:!!t,query:i,onQueryChange:a}),(0,z.jsx)(y_,{children:n?(0,z.jsx)(__,{variant:`actor`,count:8,cols:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`}):t?(0,z.jsx)(v_,{onRetry:r}):(0,z.jsx)(`div`,{className:`grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`,children:f?.map(e=>(0,z.jsx)(H_,{actor:e},e.id))})})]})}function W_({costume:e,index:t}){return(0,z.jsxs)(Ph,{className:`group gap-0 overflow-hidden py-0 transition-colors hover:border-foreground/25`,children:[(0,z.jsxs)(Fh,{className:`relative h-14 overflow-hidden border-b p-3 sm:h-20`,children:[(0,z.jsx)(`div`,{className:`absolute inset-0`,style:{backgroundColor:`oklch(0.9 0.03 ${Math.round(t*137.508%360)})`}}),(0,z.jsx)(`div`,{className:`absolute inset-0 hidden dark:block`,style:{backgroundColor:`oklch(0.16 0.03 ${Math.round(t*137.508%360)})`,backgroundImage:`radial-gradient(160px 90px at 75% 110%, oklch(0.45 0.08 ${Math.round(t*137.508%360)}), transparent 75%)`}}),(0,z.jsx)(`div`,{className:`absolute inset-0 ${u_}`}),(0,z.jsx)(`div`,{className:`absolute inset-0 opacity-[0.12] mix-blend-overlay`,style:d_}),(0,z.jsx)(`span`,{className:`absolute -bottom-1 right-3 text-[36px] sm:text-[48px] leading-none font-semibold tracking-tight select-none [mask-image:linear-gradient(to_bottom,black_45%,transparent_95%)]`,style:{color:`var(--cover-word)`},children:e.era.startsWith(e.name.slice(0,1))?e.name.replace(/\s/g,``).slice(1,2):e.name.slice(0,1)}),(0,z.jsx)(`span`,{className:`absolute top-2.5 left-3 rounded border bg-muted px-1.5 py-0.5 text-[11px] text-muted-foreground backdrop-blur-sm`,children:e.era})]}),(0,z.jsxs)(Ih,{className:`space-y-1.5 p-4`,children:[(0,z.jsx)(`h3`,{className:`truncate text-[15px] font-medium tracking-tight`,children:e.name}),(0,z.jsx)(`p`,{className:`line-clamp-2 min-h-10 text-[12px] leading-5 text-muted-foreground [text-wrap:pretty]`,children:e.description})]}),(0,z.jsxs)(Lh,{className:`items-center justify-between border-t px-4 py-2.5 text-xs text-muted-foreground sm:text-[11px]`,children:[(0,z.jsx)(`span`,{className:`truncate`,children:e.tags.join(` · `)}),(0,z.jsx)(`span`,{className:`shrink-0 text-muted-foreground/70 tabular-nums`,children:new Date(e.createdAt).toLocaleDateString(`zh-CN`,{month:`short`,day:`numeric`})})]})]})}function G_(){let{data:e,error:t,loading:n,reload:r}=ii(Si.costumes),[i,a]=(0,k.useState)(``),[o,s]=(0,k.useState)(!1),[c,l]=(0,k.useState)(!1),u=[{kind:`text`,name:`name`,label:`服饰名称`,placeholder:`如:唐代圆领袍 · 官差制式`,required:!0},{kind:`textarea`,name:`description`,label:`造型描述`,placeholder:`形制、面料、做旧处理…`},{kind:`text`,name:`era`,label:`时代`,placeholder:`如:唐 / 近未来`,suggestions:[`唐`,`宋`,`明`,`清`,`民国`,`九十年代`,`当代`,`近未来`]},{kind:`tags`,name:`tags`,label:`标签`,placeholder:`输入标签后回车,如:男装 · 动作戏`}];async function d(e){l(!0);try{await Si.createCostume({name:B_(e,`name`),description:B_(e,`description`),era:B_(e,`era`),tags:V_(e,`tags`)}),Pe.success(`服饰已创建`),r()}finally{l(!1)}}let f=(0,k.useMemo)(()=>{let t=i.trim();return e?t?e.filter(e=>(e.name+e.description+e.tags.join()).includes(t)):e:null},[e,i]);return(0,z.jsxs)(`div`,{className:`flex min-h-svh flex-col`,children:[(0,z.jsx)(Nh,{title:`服饰`,description:`角色服饰与造型设定库`,actions:(0,z.jsxs)(Hm,{size:`sm`,className:`gap-1.5`,onClick:()=>s(!0),children:[(0,z.jsx)(L,{className:`size-3.5`}),`新建服饰`]})}),(0,z.jsx)(z_,{open:o,onOpenChange:s,title:`新建服饰`,description:`沉淀一套服饰与造型设定`,submitLabel:`创建服饰`,submitting:c,fields:u,onSubmit:d}),!t&&(0,z.jsx)(h_,{placeholder:`搜索服饰…`,unit:`套服饰`,count:t||n?null:f?.length??0,countHidden:!!t,query:i,onQueryChange:a}),(0,z.jsx)(y_,{children:n?(0,z.jsx)(__,{variant:`costume`,count:4,cols:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`}):t?(0,z.jsx)(v_,{onRetry:r}):(0,z.jsx)(`div`,{className:`grid gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`,children:f?.map((e,t)=>(0,z.jsx)(W_,{costume:e,index:t},e.id))})})]})}function K_(){return(0,z.jsxs)(`div`,{className:`relative flex min-h-svh flex-col items-center justify-center gap-3 overflow-hidden`,children:[(0,z.jsx)(`div`,{className:`absolute inset-0 opacity-50 ${u_}`}),(0,z.jsx)(`span`,{className:`absolute -bottom-10 right-0 text-[120px] sm:-bottom-14 sm:text-[240px] leading-none font-semibold tracking-tight select-none [mask-image:linear-gradient(to_top,black_30%,transparent_72%)]`,style:{color:`var(--cover-word)`},"aria-hidden":!0,children:`404`}),(0,z.jsx)(`p`,{className:`text-2xl font-semibold tracking-tight`,children:`页面不存在`}),(0,z.jsx)(`p`,{className:`text-[13px] text-muted-foreground`,children:`你要找的页面可能已被移动或删除`}),(0,z.jsx)(Hm,{asChild:!0,size:`sm`,className:`mt-1.5`,children:(0,z.jsx)(qr,{to:`/projects`,children:`返回项目列表`})})]})}var q_=Di(`inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3`,{variants:{variant:{default:`bg-primary text-primary-foreground [a&]:hover:bg-primary/90`,secondary:`bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90`,destructive:`bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90`,outline:`border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground`,ghost:`[a&]:hover:bg-accent [a&]:hover:text-accent-foreground`,link:`text-primary underline-offset-4 [a&]:hover:underline`}},defaultVariants:{variant:`default`}});function J_({className:e,variant:t=`default`,asChild:n=!1,...r}){let i=n?Oa:`span`;return(0,z.jsx)(i,{"data-slot":`badge`,"data-variant":t,className:U(q_({variant:t}),e),...r})}function Y_({className:e,value:t,...n}){return(0,z.jsx)(If,{"data-slot":`progress`,className:U(`relative h-2 w-full overflow-hidden rounded-full bg-primary/20`,e),...n,children:(0,z.jsx)(Rf,{"data-slot":`progress-indicator`,className:`h-full w-full flex-1 bg-primary transition-all`,style:{transform:`translateX(-${100-(t||0)}%)`}})})}var X_={planning:`bg-zinc-400 dark:bg-zinc-500`,writing:`bg-amber-500`,shooting:`bg-[#0070f3]`,post:`bg-violet-500`,released:`bg-emerald-500`};function Z_({project:e}){let t=new Date(e.updatedAt).toLocaleDateString(`zh-CN`,{month:`long`,day:`numeric`});return(0,z.jsxs)(Ph,{className:`group cursor-pointer gap-0 overflow-hidden py-0 transition-colors hover:border-foreground/25`,children:[(0,z.jsxs)(Fh,{className:`relative h-16 overflow-hidden border-b p-4 sm:h-24`,children:[e.cover?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`img`,{src:m_(e.cover),alt:``,loading:`lazy`,className:`absolute inset-0 h-full w-full object-cover`}),(0,z.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-black/50 via-black/15 to-transparent`})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:`absolute inset-0 ${u_}`}),(0,z.jsx)(`span`,{className:`absolute -bottom-3 right-4 text-[64px] leading-none font-semibold tracking-tight select-none [mask-image:linear-gradient(to_bottom,black_45%,transparent_96%)]`,style:{color:`var(--cover-word)`},children:e.name.slice(0,1)})]}),(0,z.jsxs)(J_,{variant:`secondary`,className:`relative w-fit gap-1.5 border bg-background/75 text-[11px] font-medium backdrop-blur-sm`,children:[(0,z.jsx)(`span`,{className:`size-1.5 rounded-full ${X_[e.status]}`}),hi[e.status]]}),(0,z.jsx)(M,{className:`absolute top-3 right-3 z-10 size-4 text-white/90 opacity-0 transition-opacity group-hover:opacity-100`})]}),(0,z.jsxs)(Ih,{className:`space-y-2 p-4`,children:[(0,z.jsx)(`h3`,{className:`truncate text-[15px] font-medium tracking-tight`,children:e.name}),(0,z.jsx)(`p`,{className:`line-clamp-2 min-h-10 text-[13px] leading-5 text-muted-foreground [text-wrap:pretty]`,children:e.logline})]}),(0,z.jsxs)(Lh,{className:`mt-auto items-center gap-3 border-t px-4 py-3`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2.5`,children:[(0,z.jsx)(Y_,{value:e.progress,className:l_(`h-1 w-full`,$_[e.status])}),(0,z.jsxs)(`span`,{className:`w-9 shrink-0 text-right text-xs tabular-nums text-muted-foreground sm:text-[11px]`,children:[e.progress,`%`]})]}),(0,z.jsxs)(`span`,{className:`max-w-24 shrink-0 truncate text-xs text-muted-foreground sm:text-[11px]`,title:e.members.join(`、`),children:[e.members[0],e.members.length>1?` 等 ${e.members.length} 人`:``]}),(0,z.jsx)(`span`,{className:`shrink-0 text-xs tabular-nums text-muted-foreground sm:text-[11px]`,children:t})]})]})}var Q_=[{kind:`text`,name:`name`,label:`项目名称`,placeholder:`如:长安十二时辰 · 重制`,required:!0},{kind:`textarea`,name:`logline`,label:`一句话故事`,placeholder:`用一句话概括这个故事`},{kind:`text`,name:`genre`,label:`题材`,placeholder:`如:古装悬疑`,suggestions:[`古装悬疑`,`都市情感`,`科幻`,`悬疑刑侦`,`奇幻`,`年代`,`喜剧`,`运动`]},{kind:`select`,name:`status`,label:`当前状态`,options:Object.keys(hi).map(e=>({value:e,label:hi[e]}))},{kind:`tags`,name:`members`,label:`主创成员`,placeholder:`输入姓名后回车,最多 8 人`}],$_={planning:`[&>div]:bg-zinc-500 [&>div]:bg-[repeating-linear-gradient(45deg,transparent_0px,transparent_2px,rgba(0,0,0,0.35)_2px,rgba(0,0,0,0.35)_4px)] dark:[&>div]:bg-zinc-600 dark:[&>div]:bg-[repeating-linear-gradient(45deg,transparent_0px,transparent_2px,rgba(255,255,255,0.5)_2px,rgba(255,255,255,0.5)_4px)]`,writing:`[&>div]:bg-amber-500`,shooting:`[&>div]:bg-[#0070f3]`,post:`[&>div]:bg-violet-500`,released:`[&>div]:bg-emerald-500`},ev=[{key:`all`,label:`全部`},...Object.keys(hi).map(e=>({key:e,label:hi[e]}))];function tv(){let{data:e,error:t,loading:n,reload:r}=ii(Si.projects),[i,a]=(0,k.useState)(``),[o,s]=(0,k.useState)(`all`),[c,l]=(0,k.useState)(!1),[u,d]=(0,k.useState)(!1),f=(0,k.useMemo)(()=>{if(!e)return null;let t=e;o!==`all`&&(t=t.filter(e=>e.status===o));let n=i.trim();return n&&(t=t.filter(e=>(e.name+e.logline+e.genre).includes(n))),t},[e,i,o]);async function p(e){d(!0);try{await Si.createProject({name:B_(e,`name`),logline:B_(e,`logline`),genre:B_(e,`genre`),status:e.status??void 0,members:V_(e,`members`)}),Pe.success(`项目已创建`),r()}finally{d(!1)}}return(0,z.jsxs)(`div`,{className:`flex min-h-svh flex-col`,children:[(0,z.jsx)(Nh,{title:`项目`,description:`管理你的影视项目,从剧本到成片`,actions:(0,z.jsxs)(Hm,{size:`sm`,className:`gap-1.5`,onClick:()=>l(!0),children:[(0,z.jsx)(L,{className:`size-3.5`}),`新建项目`]})}),(0,z.jsx)(z_,{open:c,onOpenChange:l,title:`新建项目`,description:`创建一个影视项目,封面可稍后在项目详情中补充`,submitLabel:`创建项目`,submitting:u,fields:Q_,onSubmit:p}),(0,z.jsx)(h_,{placeholder:`搜索项目…`,unit:`个项目`,count:t||n?null:f?.length??0,countHidden:!!t,query:i,onQueryChange:a,children:(0,z.jsx)(`div`,{className:`flex flex-1 items-center gap-1.5 overflow-x-auto [scrollbar-width:none] [mask-image:linear-gradient(to_right,black_88%,transparent_100%)] [&::-webkit-scrollbar]:hidden`,children:ev.map(e=>(0,z.jsx)(`button`,{type:`button`,onClick:()=>s(e.key),className:l_(`h-10 shrink-0 whitespace-nowrap rounded-full border px-3.5 text-[13px] transition-colors sm:h-9 sm:text-[12px]`,o===e.key?`border-foreground/45 bg-foreground/8 font-medium text-foreground`:`text-muted-foreground hover:border-foreground/30 hover:text-foreground`),children:e.label},e.key))})}),(0,z.jsx)(y_,{children:n?(0,z.jsx)(__,{variant:`project`,count:8,cols:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`}):t?(0,z.jsx)(v_,{onRetry:r}):(0,z.jsx)(`div`,{className:`grid gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`,children:f?.map(e=>(0,z.jsx)(Z_,{project:e},e.id))})})]})}function nv({scene:e,index:t}){return(0,z.jsxs)(Ph,{className:`group gap-0 overflow-hidden py-0 transition-colors hover:border-foreground/25`,children:[(0,z.jsxs)(Fh,{className:`relative h-14 overflow-hidden border-b p-3 sm:h-20`,children:[(0,z.jsx)(`div`,{className:`absolute inset-0`,style:{backgroundColor:`oklch(0.9 0.04 ${p_(e.timeOfDay,t)})`}}),(0,z.jsx)(`div`,{className:`absolute inset-0 hidden dark:block`,style:{backgroundColor:`oklch(0.16 0.035 ${p_(e.timeOfDay,t)})`,backgroundImage:`radial-gradient(160px 90px at 75% 110%, oklch(0.45 0.09 ${p_(e.timeOfDay,t)}), transparent 75%)`}}),(0,z.jsx)(`div`,{className:`absolute inset-0 ${u_}`}),(0,z.jsx)(`div`,{className:`absolute inset-0 opacity-[0.12] mix-blend-overlay`,style:d_}),(0,z.jsx)(`span`,{className:`absolute -bottom-1 right-3 text-[36px] sm:text-[48px] leading-none font-semibold tracking-tight select-none [mask-image:linear-gradient(to_bottom,black_45%,transparent_95%)]`,style:{color:`var(--cover-word)`},children:e.name.slice(0,1)}),(0,z.jsx)(`span`,{className:`absolute top-2.5 left-3 rounded border bg-muted px-1.5 py-0.5 text-[11px] text-muted-foreground backdrop-blur-sm`,children:e.timeOfDay})]}),(0,z.jsxs)(Ih,{className:`space-y-1.5 p-4`,children:[(0,z.jsx)(`h3`,{className:`truncate text-[15px] font-medium tracking-tight`,children:e.name}),(0,z.jsx)(`p`,{className:`line-clamp-2 min-h-10 text-[12px] leading-5 text-muted-foreground [text-wrap:pretty]`,children:e.description})]}),(0,z.jsxs)(Lh,{className:`items-center justify-between gap-2 border-t px-4 py-2.5 text-xs text-muted-foreground sm:text-[11px]`,children:[(0,z.jsx)(`span`,{className:`truncate`,children:e.projectName}),(0,z.jsx)(`span`,{className:`shrink-0`,children:e.tags.join(` · `)})]})]})}function rv(){let{data:e,error:t,loading:n,reload:r}=ii(Si.scenes),i=ii(Si.projects),[a,o]=(0,k.useState)(``),[s,c]=(0,k.useState)(!1),[l,u]=(0,k.useState)(!1),d=[{kind:`text`,name:`name`,label:`场景名称`,placeholder:`如:长安西市 · 夜市`,required:!0},{kind:`textarea`,name:`description`,label:`场景描述`,placeholder:`空间、光线、氛围…`},{kind:`select`,name:`timeOfDay`,label:`时段`,options:[{value:`日`,label:`日`},{value:`黄昏`,label:`黄昏`},{value:`夜`,label:`夜`},{value:`无自然光`,label:`无自然光`}]},{kind:`tags`,name:`tags`,label:`标签`,placeholder:`输入标签后回车,如:内景 · 棚拍`},{kind:`select`,name:`projectName`,label:`关联项目`,emptyLabel:`不关联项目`,options:(i.data??[]).map(e=>({value:e.name,label:e.name}))}];async function f(e){u(!0);try{await Si.createScene({name:B_(e,`name`),description:B_(e,`description`),timeOfDay:B_(e,`timeOfDay`),tags:V_(e,`tags`),projectName:B_(e,`projectName`)}),Pe.success(`场景已创建`),r()}finally{u(!1)}}let p=(0,k.useMemo)(()=>{let t=a.trim();return e?t?e.filter(e=>(e.name+e.description+e.tags.join()).includes(t)):e:null},[e,a]);return(0,z.jsxs)(`div`,{className:`flex min-h-svh flex-col`,children:[(0,z.jsx)(Nh,{title:`场景`,description:`项目共用的场景素材库`,actions:(0,z.jsxs)(Hm,{size:`sm`,className:`gap-1.5`,onClick:()=>c(!0),children:[(0,z.jsx)(L,{className:`size-3.5`}),`新建场景`]})}),(0,z.jsx)(z_,{open:s,onOpenChange:c,title:`新建场景`,description:`沉淀一个可复用的场景资产`,submitLabel:`创建场景`,submitting:l,fields:d,onSubmit:f}),!t&&(0,z.jsx)(h_,{placeholder:`搜索场景…`,unit:`个场景`,count:t||n?null:p?.length??0,countHidden:!!t,query:a,onQueryChange:o}),(0,z.jsx)(y_,{children:n?(0,z.jsx)(__,{variant:`scene`,count:4,cols:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`}):t?(0,z.jsx)(v_,{onRetry:r}):(0,z.jsx)(`div`,{className:`grid gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`,children:p?.map((e,t)=>(0,z.jsx)(nv,{scene:e,index:t},e.id))})})]})}function iv({title:e,description:t,children:n}){return(0,z.jsxs)(`section`,{className:`mx-auto w-full max-w-3xl`,children:[(0,z.jsx)(`h2`,{className:`text-[13px] font-medium tracking-tight`,children:e}),t?(0,z.jsx)(`p`,{className:`mt-0.5 text-[12px] text-muted-foreground`,children:t}):null,(0,z.jsx)(`div`,{className:`mt-3 rounded-lg border bg-card`,children:n})]})}function av({label:e,hint:t,control:n}){return(0,z.jsxs)(`div`,{className:`flex flex-col gap-2 border-b px-4 py-3 last:border-b-0 sm:flex-row sm:items-center sm:justify-between sm:gap-4`,children:[(0,z.jsxs)(`div`,{className:`min-w-0`,children:[(0,z.jsx)(`p`,{className:`text-[13px]`,children:e}),t?(0,z.jsx)(`p`,{className:`mt-0.5 text-[12px] text-muted-foreground`,children:t}):null]}),n]})}function ov({value:e,tone:t=`idle`}){return(0,z.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1.5 text-[12px] text-muted-foreground`,children:[(0,z.jsx)(`span`,{className:`size-1.5 rounded-full ${t===`off`?`bg-zinc-400/70 dark:bg-zinc-500/70`:`bg-amber-400 dark:bg-amber-500/80`}`}),e,(0,z.jsx)(P,{className:`size-3.5`})]})}var sv=[{key:`light`,label:`浅色`},{key:`dark`,label:`深色`},{key:`system`,label:`跟随系统`}];function cv(){let[e,t]=(0,k.useState)(u);function n(e){f(e),t(e)}return(0,z.jsx)(`div`,{className:`flex min-h-svh flex-col`,children:(0,z.jsxs)(`div`,{className:`mx-auto w-full max-w-3xl flex-1 px-4 pb-10 sm:px-8`,children:[(0,z.jsx)(Nh,{flush:!0,title:`系统设置`,description:`平台外观与基础配置`}),(0,z.jsxs)(`div`,{className:`space-y-8`,children:[(0,z.jsx)(iv,{title:`外观`,description:`界面主题与显示偏好`,children:(0,z.jsx)(av,{label:`主题`,hint:`深色、浅色或跟随系统自动切换`,control:(0,z.jsx)(`div`,{className:`flex w-full shrink-0 items-center gap-0.5 rounded-md border bg-foreground/5 p-0.5 sm:w-auto`,children:sv.map(t=>(0,z.jsx)(`button`,{type:`button`,onClick:()=>n(t.key),className:l_(`h-9 flex-1 rounded-sm px-2.5 text-[13px] transition-colors sm:h-6.5 sm:flex-none sm:text-[12px]`,e===t.key?`bg-foreground text-background`:`text-muted-foreground hover:text-foreground`),children:t.label},t.key))})})}),(0,z.jsxs)(iv,{title:`AI 服务`,description:`配置模型与生成服务接入`,children:[(0,z.jsx)(av,{label:`生成模型`,hint:`用于剧本、形象与场景生成`,control:(0,z.jsx)(ov,{value:`未接入`,tone:`off`})}),(0,z.jsx)(av,{label:`API Key`,hint:`访问密钥,仅保存在本机`,control:(0,z.jsx)(ov,{value:`未设置`,tone:`off`})})]}),(0,z.jsxs)(iv,{title:`关于`,children:[(0,z.jsx)(av,{label:`版本`,control:(0,z.jsx)(`span`,{className:`shrink-0 text-[12px] tabular-nums text-muted-foreground`,children:mi})}),(0,z.jsx)(av,{label:`数据存储`,control:(0,z.jsx)(ov,{value:`本机存储`,tone:`off`})})]})]})]})})}var lv=(0,k.lazy)(()=>nt(()=>import(`./project-studio-BT6W-EiS.js`),[]));function uv(){return(0,z.jsxs)(Kr,{basename:`/`,children:[(0,z.jsx)(cr,{children:(0,z.jsxs)(or,{element:(0,z.jsx)(Mh,{}),children:[(0,z.jsx)(or,{path:`/`,element:(0,z.jsx)(ir,{to:`/projects`,replace:!0})}),(0,z.jsx)(or,{path:`/projects`,element:(0,z.jsx)(tv,{})}),(0,z.jsx)(or,{path:`/actors`,element:(0,z.jsx)(U_,{})}),(0,z.jsx)(or,{path:`/scenes`,element:(0,z.jsx)(rv,{})}),(0,z.jsx)(or,{path:`/costumes`,element:(0,z.jsx)(G_,{})}),(0,z.jsx)(or,{path:`/projects/:id/studio`,element:(0,z.jsx)(k.Suspense,{fallback:null,children:(0,z.jsx)(lv,{})})}),(0,z.jsx)(or,{path:`/settings`,element:(0,z.jsx)(cv,{})}),(0,z.jsx)(or,{path:`*`,element:(0,z.jsx)(K_,{})})]})}),(0,z.jsx)(Xe,{position:`top-center`,richColors:!0})]})}d(u()),window.matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,()=>d(u())),(0,pe.createRoot)(document.getElementById(`root`)).render((0,z.jsx)(k.StrictMode,{children:(0,z.jsx)(uv,{})}));export{g as $,Bo as A,U as B,Ds as C,as as D,ps as E,eo as F,pi as G,li as H,Ga as I,L as J,qr as K,Ka as L,W as M,ao as N,ts as O,no as P,j as Q,Da as R,Ts as S,Os as T,di as U,ui as V,fi as W,I as X,ie as Y,N as Z,sf as _,N_ as a,Js as b,O_ as c,Wm as d,m as et,Um as f,gf as g,ff as h,M_ as i,No as j,Xo as k,l_ as l,uf as m,I_ as n,j_ as o,Hm as p,In as q,k_ as r,A_ as s,J_ as t,c as tt,$m as u,fl as v,ks as w,Hs as x,rl as y,wa as z};
|
|
56
|
+
Defaulting to \`null\`.`}kf(Gf,`getInvalidValueError`);var J=Object.defineProperty,Y=(e,t)=>J(e,`name`,{value:t,configurable:!0}),Kf={ItemAligned:`item-aligned`,Popper:`popper`},qf={LTR:`ltr`,RTL:`rtl`},Jf=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Yf=[` `,`Enter`],Xf=`Select`,[Zf,Qf,$f]=ao(Xf),[ep,tp]=eo(Xf,[$f,sf]),np=sf(),[rp,X]=ep(Xf),[ip,ap]=ep(Xf);function op(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=np(t),[_,v]=k.useState(null),[y,b]=k.useState(null),[x,S]=k.useState(!1),C=ts(l),[w,T]=No({prop:r,defaultProp:i??!1,onChange:a,caller:Xf}),[E,D]=No({prop:o,defaultProp:s,onChange:c,caller:Xf}),O=k.useRef(null),A=k.useRef(!1),[j,M]=k.useState(null),ee=Y(e=>{M({value:e,hasConsumerStoppedPropagation:A.current}),D(e)},`handleUserSelect`),N=k.useRef(E);k.useEffect(()=>{let e=m?_?.ownerDocument.getElementById(m):_?.form;if(e instanceof HTMLFormElement){let t=Y(()=>D(N.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,_,D]);let P=!_||!!m||!!_.closest(`form`),[F,te]=k.useState(new Set),I=Xo(),ne=Array.from(F).map(e=>e.props.value).join(`;`),re=k.useCallback(e=>{te(t=>new Set(t).add(e))},[]),ie=k.useCallback(e=>{te(t=>{let n=new Set(t);return n.delete(e),n})},[]),ae={required:p,trigger:_,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:x,onValueNodeHasChildrenChange:S,contentId:I,value:E,onValueChange:D,hasConsumerStoppedPropagationRef:A,userSelection:j,onUserSelect:ee,open:w,onOpenChange:T,dir:C,triggerPointerDownPosRef:O,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:F,nativeSelectKey:ne,isFormControl:P};return(0,z.jsx)(uf,{...g,children:(0,z.jsx)(rp,{scope:t,...ae,children:(0,z.jsx)(Zf.Provider,{scope:t,children:(0,z.jsx)(ip,{scope:t,onNativeOptionAdd:re,onNativeOptionRemove:ie,children:qp(h)?h(ae):n})})})})}Y(op,`SelectProvider`);var sp=Y(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,z.jsx)(op,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,z.jsxs)(z.Fragment,{children:[n,e?(0,z.jsx)(Kp,{__scopeSelect:t}):null]})})},`Select`),cp=`SelectTrigger`,lp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=np(n),o=X(cp,n),s=o.disabled||r,c=wa(t,o.onTriggerChange),l=Qf(n),u=k.useRef(`touch`),[d,f,p]=Yp(e=>{let t=l().filter(e=>!e.disabled),n=Xp(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onUserSelect(n.value)}),m=Y(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,z.jsx)(ff,{asChild:!0,...a,children:(0,z.jsx)(Ga.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":Jp(o.value)?``:void 0,...i,ref:c,onClick:W(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:W(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:W(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&(o.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),f(e.key)),!(t&&e.key===` `)&&Jf.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),up=`SelectValue`,dp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=X(up,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=wa(t,c.onValueNodeChange);no(()=>{l(u)},[l,u]);let f=Jp(c.value);return(0,z.jsx)(Ga.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,z.jsx)(k.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),fp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,z.jsx)(Ga.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[pp,mp]=ep(`SelectPortal`,{forceMount:void 0}),hp=Y(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,z.jsx)(pp,{scope:e.__scopeSelect,forceMount:n,children:(0,z.jsx)(Hs,{asChild:!0,...r})})},`SelectPortal`),gp=`SelectContent`,_p=k.forwardRef(Y(function(e,t){let n=mp(gp,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=X(gp,e.__scopeSelect),[o,s]=k.useState();return no(()=>{s(new DocumentFragment)},[]),(0,z.jsx)(Bo,{present:r||a.open,children:({present:e})=>e?(0,z.jsx)(Cp,{...i,ref:t}):(0,z.jsx)(vp,{...i,fragment:o})})},`SelectContent`)),vp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?B.createPortal((0,z.jsx)(bp,{scope:n,children:(0,z.jsx)(Zf.Slot,{scope:n,children:(0,z.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),yp=10,[bp,xp]=ep(gp),Sp=Da(`SelectContent.RemoveScroll`),Cp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n}=e,{position:r=Kf.ItemAligned,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,v=X(gp,n),[y,b]=k.useState(null),[x,S]=k.useState(null),C=wa(t,b),[w,T]=k.useState(null),[E,D]=k.useState(null),O=Qf(n),[A,j]=k.useState(!1),M=k.useRef(!1),ee=k.useRef(!1),N=k.useRef(!1);k.useEffect(()=>{if(y)return fl(y)},[y]),Js();let P=k.useCallback(e=>{let[t,...n]=O().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),n?.focus(),document.activeElement!==i))return},[O,x]),F=k.useCallback(()=>P([w,y]),[P,w,y]);k.useEffect(()=>{A&&F()},[A,F]);let{onOpenChange:te,triggerPointerDownPosRef:I}=v;k.useEffect(()=>{if(y){let e={x:0,y:0},t=Y(t=>{e={x:Math.abs(Math.round(t.pageX)-(I.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(I.current?.y??0))}},`handlePointerMove`),n=Y(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(y)||te(!1),document.removeEventListener(`pointermove`,t),I.current=null},`handlePointerUp`);return I.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[y,te,I]),k.useEffect(()=>{let e=Y(()=>te(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[te]);let[ne,re]=Yp(e=>{let t=O().filter(e=>!e.disabled),n=Xp(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),ie=k.useCallback((e,t,n)=>{let r=!ee.current;r&&(ee.current=!0);let i=!M.current&&!n;v.value!==void 0&&v.value===t||i?(T(e),i&&(M.current=!0)):r&&T(e)},[v.value]),ae=k.useCallback(()=>y?.focus(),[y]),oe=k.useCallback((e,t,n)=>{if(!e)return;let r=!N.current;r&&(N.current=!0);let i=!M.current&&!n;(v.value!==void 0&&v.value===t||i||r)&&D(e)},[v.value]),se=r===Kf.Popper?Tp:wp,L=se===Tp?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,z.jsx)(bp,{scope:n,content:y,viewport:x,onViewportChange:S,itemRefCallback:ie,selectedItem:w,onItemLeave:ae,itemTextRefCallback:oe,focusSelectedItem:F,selectedItemText:E,position:r,isPositioned:A,searchRef:ne,children:(0,z.jsx)(rl,{as:Sp,allowPinchZoom:!0,children:(0,z.jsx)(Ts,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:W(i,e=>{v.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,z.jsx)(ps,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,z.jsx)(se,{role:`listbox`,id:v.contentId,"data-state":v.open?`open`:`closed`,dir:v.dir,onContextMenu:e=>e.preventDefault(),..._,...L,onPlaced:()=>j(!0),ref:C,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:W(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&re(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>P(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),wp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=X(gp,n),o=xp(gp,n),[s,c]=k.useState(null),[l,u]=k.useState(null),d=wa(t,u),f=Qf(n),p=k.useRef(!1),m=k.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:v}=o,y=k.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==qf.RTL){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-yp,d=Df(a,[yp,Math.max(yp,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-yp,d=Df(a,[yp,Math.max(yp,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-yp*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-yp,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+v+k,j=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${yp}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);no(()=>y(),[y]);let[b,x]=k.useState();no(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]);let S=k.useCallback(e=>{e&&m.current===!0&&(y(),v?.(),m.current=!1)},[y,v]);return(0,z.jsx)(Ep,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:S,children:(0,z.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:b},children:(0,z.jsx)(Ga.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),Tp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=yp,...a}=e,o=np(n);return(0,z.jsx)(gf,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[Ep,Dp]=ep(gp,{}),Op=`SelectViewport`,kp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=xp(Op,n),o=Dp(Op,n),s=wa(t,a.onViewportChange),c=k.useRef(0);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,z.jsx)(Zf.Slot,{scope:n,children:(0,z.jsx)(Ga.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:W(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-yp*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[Ap,jp]=ep(`SelectGroup`),Mp=`SelectItem`,[Np,Pp]=ep(Mp),Fp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=X(Mp,n),c=xp(Mp,n),l=s.value===r,[u,d]=k.useState(a??``),[f,p]=k.useState(!1),m=wa(t,as(e=>c.itemRefCallback?.(e,r,i))),h=Xo(),g=k.useRef(`touch`);function _(e){s.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),s.onUserSelect(r),s.onOpenChange(!1)}return Y(_,`handleSelect`),(0,z.jsx)(Np,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:k.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,z.jsx)(Zf.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,z.jsx)(Ga.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:W(o.onFocus,()=>p(!0)),onBlur:W(o.onBlur,()=>p(!1)),onClick:W(o.onClick,e=>{i||g.current!==`mouse`&&_(e)}),onPointerUp:W(o.onPointerUp,e=>{i||g.current===`mouse`&&_(e)}),onPointerDown:W(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:W(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:W(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:W(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(Yf.includes(e.key)&&_(e),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),Ip=`SelectItemText`,Lp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=X(Ip,n),s=xp(Ip,n),c=Pp(Ip,n),l=ap(Ip,n),[u,d]=k.useState(null),f=as(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=wa(t,d,c.onItemTextChange,f),m=u?.textContent,h=k.useMemo(()=>(0,z.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:_}=l;return no(()=>(g(h),()=>_(h)),[g,_,h]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Ga.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!Jp(o.value)?B.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),Rp=`SelectItemIndicator`,zp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,...r}=e;return Pp(Rp,n).isSelected?(0,z.jsx)(Ga.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),Bp=`SelectScrollUpButton`,Vp=k.forwardRef(Y(function(e,t){let n=xp(Bp,e.__scopeSelect),r=Dp(Bp,e.__scopeSelect),[i,a]=k.useState(!1),o=wa(t,r.onScrollButtonChange);return no(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};Y(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,z.jsx)(Wp,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),Hp=`SelectScrollDownButton`,Up=k.forwardRef(Y(function(e,t){let n=xp(Hp,e.__scopeSelect),r=Dp(Hp,e.__scopeSelect),[i,a]=k.useState(!1),o=wa(t,r.onScrollButtonChange);return no(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};Y(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,z.jsx)(Wp,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),Wp=k.forwardRef(Y(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=xp(`SelectScrollButton`,n),o=k.useRef(null),s=Qf(n),c=k.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return k.useEffect(()=>()=>c(),[c]),no(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,z.jsx)(Ga.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:W(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:W(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:W(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),Gp=`SelectBubbleInput`,Kp=k.forwardRef(Y(function({__scopeSelect:e,...t},n){let r=X(Gp,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u,userSelection:d}=r,{nativeOptions:f,nativeSelectKey:p}=r,m=k.useRef(null),h=wa(n,m),g=i??``,_=k.useRef(g),v=k.useRef(d),y=k.useRef(!1),b=Array.from(f).some(e=>(e.props.value??``)===``);return k.useEffect(()=>{let e=m.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set,r=d!==null&&d!==v.current;v.current=d;let i=_.current!==g;_.current=g;let a=r&&i;if(r&&!i&&d.value!==g&&!d.hasConsumerStoppedPropagation&&n){y.current=!0;try{n.call(e,d.value),e.dispatchEvent(new Event(`change`,{bubbles:!0}))}finally{y.current=!1,n.call(e,g)}return}let o=a&&!d.hasConsumerStoppedPropagation;if(i&&n){let t=new Event(`change`,{bubbles:o});n.call(e,g),e.dispatchEvent(t)}},[g,d]),(0,z.jsxs)(Ga.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>{y.current||a(e.target.value)},...t,style:{...Ya,...t.style},ref:h,defaultValue:g,children:[Jp(i)&&!b?(0,z.jsx)(`option`,{value:``}):null,Array.from(f)]},p)},`SelectBubbleInput`));function qp(e){return typeof e==`function`}Y(qp,`isFunction`);function Jp(e){return e===``||e===void 0}Y(Jp,`shouldShowPlaceholder`);function Yp(e){let t=as(e),n=k.useRef(``),r=k.useRef(0),i=k.useCallback(e=>{let i=n.current+e;t(i);function a(e){n.current=e,window.clearTimeout(r.current),e!==``&&(r.current=window.setTimeout(()=>a(``),1e3))}Y(a,`updateSearch`),a(i)},[t]),a=k.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return k.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}Y(Yp,`useTypeaheadSearch`);function Xp(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=Zp(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}Y(Xp,`findNextItem`);function Zp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Y(Zp,`wrapArray`);var Qp=Object.defineProperty,$p=(e,t)=>Qp(e,`name`,{value:t,configurable:!0}),em={Horizontal:`horizontal`,Vertical:`vertical`},tm=em.Horizontal,nm=Object.values(em),rm=k.forwardRef($p(function(e,t){let{decorative:n,orientation:r=tm,...i}=e,a=im(r)?r:tm,o=a===em.Vertical?a:void 0,s=n?{role:`none`}:{"aria-orientation":o,role:`separator`};return(0,z.jsx)(Ga.div,{"data-orientation":a,...s,...i,ref:t})},`Separator`));function im(e){return nm.includes(e)}$p(im,`isValidOrientation`);var am=Object.defineProperty,om=(e,t)=>am(e,`name`,{value:t,configurable:!0}),[sm,cm]=eo(`Tooltip`,[sf]),lm=sf(),um=`TooltipProvider`,dm=700,fm=`tooltip.open`,[pm,mm]=sm(um),hm=om(e=>{let{__scopeTooltip:t,delayDuration:n=dm,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=k.useRef(!0),s=k.useRef(!1),c=k.useRef(0);return k.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,z.jsx)(pm,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:k.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:k.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:k.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),gm=`Tooltip`,[_m,vm]=sm(gm),ym=om(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=mm(gm,e.__scopeTooltip),l=lm(t),[u,d]=k.useState(null),[f,p]=k.useState(void 0),m=Xo(),h=k.useRef(0),g=o??c.disableHoverableContent,_=s??c.delayDuration,v=k.useRef(!1),[y,b]=No({prop:r,defaultProp:i??!1,onChange:om(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(fm))):c.onClose(),a?.(e)},`onChange`),caller:gm}),x=k.useMemo(()=>y?v.current?`delayed-open`:`instant-open`:`closed`,[y]),S=k.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,b(!0)},[b]),C=k.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),w=k.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,b(!0),h.current=0},_)},[_,b]);k.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let T=f??m;return(0,z.jsx)(uf,{...l,children:(0,z.jsx)(_m,{scope:t,contentId:T,setContentId:p,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:k.useCallback(()=>{c.isOpenDelayedRef.current?w():S()},[c.isOpenDelayedRef,w,S]),onTriggerLeave:k.useCallback(()=>{g?C():(window.clearTimeout(h.current),h.current=0)},[C,g]),onOpen:S,onClose:C,disableHoverableContent:g,children:n})})},`Tooltip`),bm=`TooltipTrigger`,xm=k.forwardRef(om(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,a=vm(bm,n),o=mm(bm,n),s=lm(n),c=wa(t,k.useRef(null),a.onTriggerChange),l=k.useRef(!1),u=k.useRef(!1),d=k.useCallback(()=>l.current=!1,[]);return k.useEffect(()=>()=>document.removeEventListener(`pointerup`,d),[d]),(0,z.jsx)(ff,{asChild:!0,...s,children:(0,z.jsx)(Ga.button,{"aria-describedby":a.open?Rm(r,a.contentId):r,"data-state":a.stateAttribute,...i,ref:c,onPointerMove:W(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:W(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:W(e.onPointerDown,()=>{a.open&&a.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:W(e.onFocus,()=>{l.current||a.onOpen()}),onBlur:W(e.onBlur,a.onClose),onClick:W(e.onClick,a.onClose)})})},`TooltipTrigger`)),Sm=`TooltipPortal`,[Cm,wm]=sm(Sm,{forceMount:void 0}),Tm=om(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=vm(Sm,t);return(0,z.jsx)(Cm,{scope:t,forceMount:n,children:(0,z.jsx)(Bo,{present:n||a.open,children:(0,z.jsx)(Hs,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),Em=`TooltipContent`,Dm=k.forwardRef(om(function(e,t){let n=wm(Em,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=vm(Em,e.__scopeTooltip);return(0,z.jsx)(Bo,{present:r||o.open,children:o.disableHoverableContent?(0,z.jsx)(Am,{side:i,...a,ref:t}):(0,z.jsx)(Om,{side:i,...a,ref:t})})},`TooltipContent`)),Om=k.forwardRef(om(function(e,t){let n=vm(Em,e.__scopeTooltip),r=mm(Em,e.__scopeTooltip),i=k.useRef(null),a=wa(t,i),[o,s]=k.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=k.useCallback(()=>{s(null),d(!1)},[d]),p=k.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Nm(r,Mm(r,n.getBoundingClientRect())),a=Pm(t.getBoundingClientRect()),o=Im([...i,...a]);s(o),d(!0)},[d]);return k.useEffect(()=>()=>f(),[f]),k.useEffect(()=>{if(c&&u){let e=om(e=>p(e,u),`handleTriggerLeave`),t=om(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),k.useEffect(()=>{if(o){let e=om(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Fm(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,z.jsx)(Am,{...e,ref:a})},`TooltipContentHoverable`)),km=Aa(`TooltipContent`),Am=k.forwardRef(om(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=vm(Em,n),u=lm(n),{onClose:d}=l,[f,p]=k.useState(null),m=wa(t,p);ks(f),k.useEffect(()=>(document.addEventListener(fm,d),()=>document.removeEventListener(fm,d)),[d]),k.useEffect(()=>{if(l.trigger){let e=om(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:h}=l;return no(()=>(h(a),()=>{h(void 0)}),[a,h]),(0,z.jsx)(ps,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,z.jsxs)(gf,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:m,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,z.jsx)(km,{children:r}),i?(0,z.jsx)(Xa,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`)),jm=k.forwardRef(om(function(e,t){let{__scopeTooltip:n,...r}=e,i=lm(n);return(0,z.jsx)(yf,{...i,...r,ref:t})},`TooltipArrow`));function Mm(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}om(Mm,`getExitSideFromRect`);function Nm(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}om(Nm,`getPaddedExitPoints`);function Pm(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}om(Pm,`getPointsFromRect`);function Fm(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}om(Fm,`isPointInPolygon`);function Im(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),Lm(t)}om(Im,`getHull`);function Lm(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}om(Lm,`getHullPresorted`);function Rm(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}om(Rm,`concatAriaDescribedby`);var zm=768;function Bm(){let[e,t]=k.useState(void 0);return k.useEffect(()=>{let e=window.matchMedia(`(max-width: 767px)`),n=()=>{t(window.innerWidth<zm)};return e.addEventListener(`change`,n),t(window.innerWidth<zm),()=>e.removeEventListener(`change`,n)},[]),!!e}var Vm=Di(`inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,xs:`h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`,"icon-xs":`size-6 rounded-md [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function Hm({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let a=r?Oa:`button`;return(0,z.jsx)(a,{"data-slot":`button`,"data-variant":t,"data-size":n,className:U(Vm({variant:t,size:n,className:e})),...i})}function Um({className:e,type:t,...n}){return(0,z.jsx)(`input`,{type:t,"data-slot":`input`,className:U(`h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30`,`focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50`,`aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40`,e),...n})}function Wm({className:e,orientation:t=`horizontal`,decorative:n=!0,...r}){return(0,z.jsx)(rm,{"data-slot":`separator`,decorative:n,orientation:t,className:U(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px`,e),...r})}function Gm({...e}){return(0,z.jsx)(bl,{"data-slot":`sheet`,...e})}function Km({...e}){return(0,z.jsx)(wl,{"data-slot":`sheet-portal`,...e})}function qm({className:e,...t}){return(0,z.jsx)(El,{"data-slot":`sheet-overlay`,className:U(`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 Jm({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,z.jsxs)(Km,{children:[(0,z.jsx)(qm,{}),(0,z.jsxs)(Al,{"data-slot":`sheet-content`,className:U(`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 border-l 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 border-r 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,z.jsxs)(Ll,{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,z.jsx)(R,{className:`size-4`}),(0,z.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function Ym({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`sheet-header`,className:U(`flex flex-col gap-1.5 p-4`,e),...t})}function Xm({className:e,...t}){return(0,z.jsx)(Pl,{"data-slot":`sheet-title`,className:U(`font-semibold text-foreground`,e),...t})}function Zm({className:e,...t}){return(0,z.jsx)(Fl,{"data-slot":`sheet-description`,className:U(`text-sm text-muted-foreground`,e),...t})}function Qm({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`skeleton`,className:U(`animate-pulse rounded-md bg-accent`,e),...t})}function $m({delayDuration:e=0,...t}){return(0,z.jsx)(hm,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function eh({...e}){return(0,z.jsx)(ym,{"data-slot":`tooltip`,...e})}function th({...e}){return(0,z.jsx)(xm,{"data-slot":`tooltip-trigger`,...e})}function nh({className:e,sideOffset:t=0,children:n,...r}){return(0,z.jsx)(Tm,{children:(0,z.jsxs)(Dm,{"data-slot":`tooltip-content`,sideOffset:t,className:U(`z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95`,e),...r,children:[n,(0,z.jsx)(jm,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`})]})})}var rh=`sidebar_state`,ih=604800,ah=`16rem`,oh=`18rem`,sh=`3rem`,ch=`b`,lh=k.createContext(null);function uh(){let e=k.useContext(lh);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function dh({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o}){let s=Bm(),[c,l]=k.useState(!1),[u,d]=k.useState(e),f=t??u,p=k.useCallback(e=>{let t=typeof e==`function`?e(f):e;n?n(t):d(t),document.cookie=`${rh}=${t}; path=/; max-age=${ih}`},[n,f]),m=k.useCallback(()=>s?l(e=>!e):p(e=>!e),[s,p,l]);k.useEffect(()=>{let e=e=>{e.key===ch&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),m())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[m]);let h=f?`expanded`:`collapsed`,g=k.useMemo(()=>({state:h,open:f,setOpen:p,isMobile:s,openMobile:c,setOpenMobile:l,toggleSidebar:m}),[h,f,p,s,c,l,m]);return(0,z.jsx)(lh.Provider,{value:g,children:(0,z.jsx)($m,{delayDuration:0,children:(0,z.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":ah,"--sidebar-width-icon":sh,...i},className:U(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),...o,children:a})})})}function fh({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:c,setOpenMobile:l}=uh();return n===`none`?(0,z.jsx)(`div`,{"data-slot":`sidebar`,className:U(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),...a,children:i}):o?(0,z.jsx)(Gm,{open:c,onOpenChange:l,...a,children:(0,z.jsxs)(Jm,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,style:{"--sidebar-width":oh},side:e,children:[(0,z.jsxs)(Ym,{className:`sr-only`,children:[(0,z.jsx)(Xm,{children:`Sidebar`}),(0,z.jsx)(Zm,{children:`Displays the mobile sidebar.`})]}),(0,z.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,z.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-state":s,"data-collapsible":s===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,z.jsx)(`div`,{"data-slot":`sidebar-gap`,className:U(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,z.jsx)(`div`,{"data-slot":`sidebar-container`,className:U(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,e===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...a,children:(0,z.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm`,children:i})})]})}function ph({className:e,onClick:t,...n}){let{toggleSidebar:r}=uh();return(0,z.jsxs)(Hm,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:U(`size-7`,e),onClick:e=>{t?.(e),r()},...n,children:[(0,z.jsx)(se,{}),(0,z.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function mh({className:e,...t}){let{toggleSidebar:n}=uh();return(0,z.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:U(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})}function hh({className:e,...t}){return(0,z.jsx)(`main`,{"data-slot":`sidebar-inset`,className:U(`relative flex w-full flex-1 flex-col bg-background`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2`,e),...t})}function gh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:U(`flex flex-col gap-2 p-2`,e),...t})}function _h({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:U(`flex flex-col gap-2 p-2`,e),...t})}function vh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:U(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function yh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:U(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function bh({className:e,asChild:t=!1,...n}){let r=t?Oa:`div`;return(0,z.jsx)(r,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:U(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0`,e),...n})}function xh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:U(`w-full text-sm`,e),...t})}function Sh({className:e,...t}){return(0,z.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:U(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function Ch({className:e,...t}){return(0,z.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:U(`group/menu-item relative`,e),...t})}var wh=Di(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[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:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function Th({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o}){let s=e?Oa:`button`,{isMobile:c,state:l}=uh(),u=(0,z.jsx)(s,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:U(wh({variant:n,size:r}),a),...o});return i?(typeof i==`string`&&(i={children:i}),(0,z.jsxs)(eh,{children:[(0,z.jsx)(th,{asChild:!0,children:u}),(0,z.jsx)(nh,{side:`right`,align:`center`,hidden:l!==`collapsed`||c,...i})]})):u}function Eh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:U(`pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none`,`peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function Dh(){let e=ii(Si.projects),t=ii(Si.actors),n=ii(Si.scenes),r=ii(Si.costumes);return[{title:`项目`,to:`/projects`,icon:ne,count:e.data?.length},{title:`演员`,to:`/actors`,icon:fe,count:t.data?.length},{title:`场景`,to:`/scenes`,icon:ae,count:n.data?.length},{title:`服饰`,to:`/costumes`,icon:ue,count:r.data?.length}]}function Oh({item:e,active:t}){return(0,z.jsxs)(Ch,{className:`relative`,children:[(0,z.jsx)(Th,{asChild:!0,isActive:t,tooltip:e.title,className:`relative data-[active=true]:bg-foreground/18 data-[active=true]:text-foreground data-[active=true]:before:absolute data-[active=true]:before:top-1/2 data-[active=true]:before:left-0 data-[active=true]:before:h-5 data-[active=true]:before:w-1 data-[active=true]:before:-translate-y-1/2 data-[active=true]:before:rounded-full data-[active=true]:before:bg-foreground data-[active=true]:before:content-['']`,children:(0,z.jsxs)(Jr,{to:e.to,children:[(0,z.jsx)(e.icon,{}),(0,z.jsx)(`span`,{children:e.title})]})}),e.count===void 0?null:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Eh,{className:`tabular-nums`,children:e.count}),(0,z.jsx)(`span`,{className:`pointer-events-none absolute top-1/2 right-2 hidden size-1 -translate-y-1/2 rounded-full bg-foreground/45 group-data-[collapsible=icon]:block`})]})]})}function kh(){let e=Dh(),{pathname:t}=kn();return(0,z.jsxs)(fh,{collapsible:`icon`,children:[(0,z.jsx)(gh,{children:(0,z.jsxs)(`div`,{className:`flex h-12 items-center justify-between gap-1 px-2 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0`,children:[(0,z.jsxs)(Th,{size:`lg`,className:`pointer-events-none group-data-[collapsible=icon]:hidden`,tooltip:`APA`,children:[(0,z.jsx)(`div`,{className:`flex aspect-square size-8 shrink-0 items-center justify-center rounded-md bg-foreground text-background`,children:(0,z.jsx)(I,{className:`size-4`})}),(0,z.jsx)(`span`,{className:`text-[15px] font-semibold tracking-tight`,children:`APA`})]}),(0,z.jsx)(ph,{className:`size-7 shrink-0 text-sidebar-foreground/60`})]})}),(0,z.jsx)(vh,{children:(0,z.jsxs)(yh,{children:[(0,z.jsx)(bh,{children:`创作`}),(0,z.jsx)(xh,{children:(0,z.jsx)(Sh,{children:e.map(e=>(0,z.jsx)(Oh,{item:e,active:t===e.to},e.to))})})]})}),(0,z.jsx)(_h,{children:(0,z.jsx)(Sh,{children:(0,z.jsx)(Ch,{children:(0,z.jsx)(Th,{asChild:!0,isActive:t===`/settings`,tooltip:`系统设置`,className:`relative data-[active=true]:bg-foreground/18 data-[active=true]:text-foreground data-[active=true]:before:absolute data-[active=true]:before:top-1/2 data-[active=true]:before:left-0 data-[active=true]:before:h-5 data-[active=true]:before:w-1 data-[active=true]:before:-translate-y-1/2 data-[active=true]:before:rounded-full data-[active=true]:before:bg-foreground data-[active=true]:before:content-['']`,children:(0,z.jsxs)(Jr,{to:`/settings`,children:[(0,z.jsx)(le,{}),(0,z.jsx)(`span`,{children:`系统设置`})]})})})})}),(0,z.jsx)(mh,{})]})}var Ah=[{to:`/projects`,label:`项目`,icon:ne},{to:`/actors`,label:`演员`,icon:fe},{to:`/scenes`,label:`场景`,icon:ae},{to:`/costumes`,label:`服饰`,icon:ue},{to:`/settings`,label:`设置`,icon:le}];function jh(){return(0,z.jsx)(`nav`,{className:`fixed inset-x-0 bottom-0 z-40 flex h-14 items-stretch border-t bg-background/90 pb-[env(safe-area-inset-bottom)] backdrop-blur md:hidden`,children:Ah.map(e=>(0,z.jsx)(Jr,{to:e.to,className:({isActive:e})=>`relative flex flex-1 flex-col items-center justify-center gap-0.5 text-[10px] ${e?`text-foreground`:`text-muted-foreground`}`,children:({isActive:t})=>(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{className:`absolute top-0 h-0.5 w-8 rounded-full bg-foreground transition-opacity ${t?`opacity-100`:`opacity-0`}`}),(0,z.jsx)(e.icon,{className:`size-5`}),(0,z.jsx)(`span`,{className:t?`font-medium`:void 0,children:e.label})]})},e.to))})}function Mh(){return(0,z.jsxs)(dh,{children:[(0,z.jsx)(kh,{}),(0,z.jsxs)(hh,{children:[(0,z.jsxs)(`header`,{className:`flex h-12 shrink-0 items-center gap-4 border-b px-4 md:hidden`,children:[(0,z.jsx)(ph,{}),(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(`div`,{className:`flex size-6 items-center justify-center rounded bg-foreground text-background`,children:(0,z.jsx)(I,{className:`size-3.5`})}),(0,z.jsx)(`span`,{className:`text-[14px] font-semibold tracking-tight`,children:`APA`})]})]}),(0,z.jsx)(`div`,{className:`pb-14 md:pb-0`,children:(0,z.jsx)(ar,{})}),(0,z.jsx)(jh,{})]})]})}function Nh({title:e,description:t,actions:n,flush:r=!1}){return(0,z.jsxs)(`header`,{className:r?`flex items-center justify-between gap-3 pt-5 pb-4 sm:flex-row sm:items-start sm:justify-between sm:gap-4 sm:pt-7`:`flex items-center justify-between gap-3 px-4 pt-5 pb-4 sm:flex-row sm:items-start sm:justify-between sm:gap-4 sm:px-8 sm:pt-7`,children:[(0,z.jsxs)(`div`,{className:`min-w-0`,children:[(0,z.jsx)(`h1`,{className:`text-lg font-semibold tracking-tight sm:text-xl`,children:e}),t?(0,z.jsx)(`p`,{className:`mt-1 hidden text-[13px] text-muted-foreground sm:block`,children:t}):null]}),n?(0,z.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:n}):null]})}function Ph({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card`,className:U(`flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm`,e),...t})}function Fh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card-header`,className:U(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,e),...t})}function Ih({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card-content`,className:U(`px-6`,e),...t})}function Lh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card-footer`,className:U(`flex items-center px-6 [.border-t]:pt-6`,e),...t})}var Rh=(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},zh=(e,t)=>({classGroupId:e,validator:t}),Bh=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Vh=`-`,Hh=[],Uh=`arbitrary..`,Wh=e=>{let t=qh(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Kh(e);let n=e.split(Vh);return Gh(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Rh(i,t):t:i||Hh}return n[e]||Hh}}},Gh=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Gh(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Vh):e.slice(t).join(Vh),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Kh=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?Uh+r:void 0})(),qh=e=>{let{theme:t,classGroups:n}=e;return Jh(n,t)},Jh=(e,t)=>{let n=Bh();for(let r in e){let i=e[r];Yh(i,n,r,t)}return n},Yh=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Xh(i,t,n,r)}},Xh=(e,t,n,r)=>{typeof e==`string`?Zh(e,t,n):typeof e==`function`?Qh(e,t,n,r):$h(e,t,n,r)},Zh=(e,t,n)=>{let r=e===``?t:eg(t,e);r.classGroupId=n},Qh=(e,t,n,r)=>{tg(e)?Yh(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(zh(n,e)))},$h=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Yh(o,eg(t,a),n,r)}},eg=(e,t)=>{let n=e,r=t.split(Vh),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Bh(),n.nextPart.set(t,i)),n=i}return n},tg=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ng=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)}}},rg=`!`,ig=`:`,ag=[],og=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),sg=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===ig){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(rg)?(c=s.slice(0,-1),l=!0):s.startsWith(rg)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return og(t,l,c,u)};if(t){let e=t+ig,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):og(ag,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},cg=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}},lg=e=>({cache:ng(e.cacheSize),parseClassName:sg(e),sortModifiers:cg(e),postfixLookupClassGroupIds:ug(e),...Wh(e)}),ug=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},dg=/\s+/,fg=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(dg),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||(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?_+rg:_,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},pg=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=mg(n))&&(i&&(i+=` `),i+=r);return i},mg=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=mg(e[r]))&&(n&&(n+=` `),n+=t);return n},hg=(e,...t)=>{let n,r,i,a,o=o=>(n=lg(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=fg(e,n);return i(e,a),a};return a=o,(...e)=>a(pg(...e))},gg=[],_g=e=>{let t=t=>t[e]||gg;return t.isThemeGetter=!0,t.themeKey=e,t},vg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,yg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,bg=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,xg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Sg=/\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$/,Cg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,wg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Eg=e=>bg.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),Dg=e=>!!e&&Number.isInteger(Number(e)),Og=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),kg=e=>xg.test(e),Ag=()=>!0,jg=e=>Sg.test(e)&&!Cg.test(e),Mg=()=>!1,Ng=e=>wg.test(e),Pg=e=>Tg.test(e),Fg=e=>!Q(e)&&!$(e),Ig=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)),Lg=e=>Qg(e,n_,Mg),Q=e=>vg.test(e),Rg=e=>Qg(e,r_,jg),zg=e=>Qg(e,i_,Z),Bg=e=>Qg(e,o_,Ag),Vg=e=>Qg(e,a_,Mg),Hg=e=>Qg(e,e_,Mg),Ug=e=>Qg(e,t_,Pg),Wg=e=>Qg(e,s_,Ng),$=e=>yg.test(e),Gg=e=>$g(e,r_),Kg=e=>$g(e,a_),qg=e=>$g(e,e_),Jg=e=>$g(e,n_),Yg=e=>$g(e,t_),Xg=e=>$g(e,s_,!0),Zg=e=>$g(e,o_,!0),Qg=(e,t,n)=>{let r=vg.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$g=(e,t,n=!1)=>{let r=yg.exec(e);return r?r[1]?t(r[1]):n:!1},e_=e=>e===`position`||e===`percentage`,t_=e=>e===`image`||e===`url`,n_=e=>e===`length`||e===`size`||e===`bg-size`,r_=e=>e===`length`,i_=e=>e===`number`,a_=e=>e===`family-name`,o_=e=>e===`number`||e===`weight`,s_=e=>e===`shadow`,c_=hg(()=>{let e=_g(`color`),t=_g(`font`),n=_g(`text`),r=_g(`font-weight`),i=_g(`tracking`),a=_g(`leading`),o=_g(`breakpoint`),s=_g(`container`),c=_g(`spacing`),l=_g(`radius`),u=_g(`shadow`),d=_g(`inset-shadow`),f=_g(`text-shadow`),p=_g(`drop-shadow`),m=_g(`blur`),h=_g(`perspective`),g=_g(`aspect`),_=_g(`ease`),v=_g(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],T=()=>[Eg,`full`,`auto`,...w()],E=()=>[Dg,`none`,`subgrid`,$,Q],D=()=>[`auto`,{span:[`full`,Dg,$,Q]},Dg,$,Q],O=()=>[Dg,`auto`,$,Q],k=()=>[`auto`,`min`,`max`,`fr`,$,Q],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],ee=()=>[Eg,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],N=()=>[s,Eg,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],P=()=>[Eg,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,$,Q],te=()=>[...b(),qg,Hg,{position:[$,Q]}],I=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ne=()=>[`auto`,`cover`,`contain`,Jg,Lg,{size:[$,Q]}],re=()=>[Og,Gg,Rg],ie=()=>[``,`none`,`full`,l,$,Q],ae=()=>[``,Z,Gg,Rg],oe=()=>[`solid`,`dashed`,`dotted`,`double`],se=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],L=()=>[Z,Og,qg,Hg],ce=()=>[``,`none`,m,$,Q],le=()=>[`none`,Z,$,Q],ue=()=>[`none`,Z,$,Q],de=()=>[Z,$,Q],fe=()=>[Eg,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[kg],breakpoint:[kg],color:[Ag],container:[kg],"drop-shadow":[kg],ease:[`in`,`out`,`in-out`],font:[Fg],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[kg],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[kg],shadow:[kg],spacing:[`px`,Z],text:[kg],"text-shadow":[kg],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Eg,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[Ig],columns:[{columns:[Z,`auto`,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Dg,`auto`,$,Q]}],basis:[{basis:[Eg,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,Eg,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[Dg,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ee()}],"inline-size":[{inline:[`auto`,...N()]}],"min-inline-size":[{"min-inline":[`auto`,...N()]}],"max-inline-size":[{"max-inline":[`none`,...N()]}],"block-size":[{block:[`auto`,...P()]}],"min-block-size":[{"min-block":[`auto`,...P()]}],"max-block-size":[{"max-block":[`none`,...P()]}],w:[{w:[s,`screen`,...ee()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ee()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ee()]}],h:[{h:[`screen`,`lh`,...ee()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ee()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...ee()]}],"font-size":[{text:[`base`,n,Gg,Rg]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Zg,Bg]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Og,Q]}],"font-family":[{font:[Kg,Vg,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,zg]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...oe(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,Rg]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"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:[Dg,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Dg,$,Q],radial:[``,$,Q],conic:[``,Dg,$,Q]},Yg,Ug]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...oe(),`hidden`,`none`]}],"divide-style":[{divide:[...oe(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...oe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,Gg,Rg]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`inner`,`none`,u,Xg,Wg]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,Xg,Wg]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:ae()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Z,Rg]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,Xg,Wg]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...se(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":se()}],"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":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:ce()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Xg,Wg]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":[`scale-3d`],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":[`translate-none`],zoom:[{zoom:[Dg,$,Q]}],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,$,Q]}],"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":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[Z,Gg,Rg,zg]}],stroke:[{stroke:[`none`,...F()]}],"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":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`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-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`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-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`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-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`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-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`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 l_(...e){return c_(wi(e))}var u_=`[background-image:linear-gradient(to_right,var(--grid-line)_1px,transparent_1px),linear-gradient(to_bottom,var(--grid-line)_1px,transparent_1px)] [background-size:24px_24px]`,d_={backgroundImage:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E")`,backgroundSize:`120px 120px`};function f_(e){let t=Math.round(e*137.508%360);return t>20&&t<75&&(t=(t+45)%360),t}function p_(e,t=0){return((e.includes(`夜`)?250:e.includes(`无自然光`)?185:e.includes(`黄昏`)||e.includes(`晨`)?30:100)+(t%3-1)*8+360)%360}function m_(e){return`/${e}`}function h_({placeholder:e,unit:t,count:n,countHidden:r=!1,query:i,onQueryChange:a,children:o}){return(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 px-4 pb-5 sm:px-8`,children:[(0,z.jsxs)(`div`,{className:`relative w-full sm:w-72`,children:[(0,z.jsx)(ce,{className:`absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground sm:left-2.5 sm:size-3.5`}),(0,z.jsx)(Um,{value:i,onChange:e=>a(e.target.value),placeholder:e,disabled:r,className:`h-11 rounded-md bg-card pl-10 pr-4 text-[15px] sm:h-8 sm:pl-8 sm:pr-8 sm:text-[13px]`}),r?null:(0,z.jsx)(`kbd`,{className:`pointer-events-none absolute top-1/2 right-2 hidden -translate-y-1/2 rounded border bg-muted px-1 font-sans text-[10px] text-muted-foreground sm:block`,children:`⌘K`})]}),o?(0,z.jsx)(`div`,{className:`min-w-0 flex-1 sm:ml-auto sm:flex-none`,children:o}):null,r?null:n===null?n!==void 0&&!o?(0,z.jsx)(Qm,{className:`ml-auto hidden h-3.5 w-16 sm:block`}):null:(0,z.jsxs)(`span`,{className:`ml-auto hidden text-[12px] tabular-nums text-muted-foreground sm:inline`,children:[n,` `,t]})]})}function g_({variant:e}){return(0,z.jsxs)(Ph,{className:`gap-0 overflow-hidden py-0`,children:[(0,z.jsx)(`div`,{className:`relative h-16 border-b bg-foreground/[0.06] sm:h-24`,children:e===`project`?(0,z.jsx)(Qm,{className:`absolute top-3 left-4 h-5 w-16 rounded-md`}):e===`actor`?null:(0,z.jsx)(Qm,{className:`absolute top-2.5 left-3 h-5 w-12 rounded`})}),(0,z.jsxs)(Ih,{className:`space-y-2.5 p-4`,children:[(0,z.jsx)(Qm,{className:`h-4 w-2/5`}),(0,z.jsx)(Qm,{className:`h-3 w-full`}),(0,z.jsx)(Qm,{className:`h-3 w-3/5`}),e===`actor`?(0,z.jsx)(`div`,{className:`flex gap-1 pt-0.5`,children:(0,z.jsx)(Qm,{className:`h-3 w-14`})}):null]}),(0,z.jsxs)(`div`,{className:`flex items-center gap-2.5 border-t px-4 py-3`,children:[e===`project`?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Qm,{className:`h-1.5 min-w-0 flex-1`}),(0,z.jsx)(Qm,{className:`h-3 w-7`})]}):(0,z.jsx)(Qm,{className:`h-3 w-24`}),(0,z.jsx)(Qm,{className:`ml-auto h-3 w-12`})]})]})}function __({variant:e,count:t=6,cols:n=`md:grid-cols-2 xl:grid-cols-3`}){return(0,z.jsx)(`div`,{className:l_(`grid gap-4`,n),children:Array.from({length:t},(t,n)=>(0,z.jsx)(g_,{variant:e},n))})}function v_({onRetry:e}){return(0,z.jsx)(`div`,{className:`flex flex-1 items-center justify-center py-4`,children:(0,z.jsxs)(`div`,{className:`relative flex w-full max-w-xl flex-col items-center justify-center gap-3 overflow-hidden rounded-lg border bg-card py-14 text-center shadow-xs`,children:[(0,z.jsx)(`div`,{className:`absolute inset-0 opacity-60 ${u_}`}),(0,z.jsx)(`div`,{className:`relative flex size-9 items-center justify-center rounded-full bg-destructive/20`,children:(0,z.jsx)(de,{className:`size-4 text-red-500`})}),(0,z.jsxs)(`div`,{className:`relative`,children:[(0,z.jsx)(`p`,{className:`text-[14px] font-medium`,children:`无法连接服务`}),(0,z.jsx)(`p`,{className:`mt-1 text-[12.5px] text-foreground/70`,children:`网络连接异常,请检查后重试`})]}),e?(0,z.jsx)(Hm,{size:`sm`,className:`relative mt-1`,onClick:e,children:`重试`}):null]})})}function y_({children:e}){return(0,z.jsx)(`div`,{className:`flex flex-1 flex-col px-4 pb-8 sm:px-8`,children:e})}function b_({...e}){return(0,z.jsx)(bl,{"data-slot":`dialog`,...e})}function x_({...e}){return(0,z.jsx)(wl,{"data-slot":`dialog-portal`,...e})}function S_({className:e,...t}){return(0,z.jsx)(El,{"data-slot":`dialog-overlay`,className:U(`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 C_({className:e,children:t,showCloseButton:n=!0,...r}){return(0,z.jsxs)(x_,{"data-slot":`dialog-portal`,children:[(0,z.jsx)(S_,{}),(0,z.jsxs)(Al,{"data-slot":`dialog-content`,className:U(`fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-xl duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg`,e),...r,children:[t,n&&(0,z.jsxs)(Ll,{"data-slot":`dialog-close`,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-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,children:[(0,z.jsx)(R,{}),(0,z.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function w_({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`dialog-header`,className:U(`flex flex-col gap-2 text-left`,e),...t})}function T_({className:e,showCloseButton:t=!1,children:n,...r}){return(0,z.jsxs)(`div`,{"data-slot":`dialog-footer`,className:U(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,z.jsx)(Ll,{asChild:!0,children:(0,z.jsx)(Hm,{variant:`outline`,children:`Close`})})]})}function E_({className:e,...t}){return(0,z.jsx)(Pl,{"data-slot":`dialog-title`,className:U(`text-lg leading-none font-semibold`,e),...t})}function D_({className:e,...t}){return(0,z.jsx)(Fl,{"data-slot":`dialog-description`,className:U(`text-sm text-muted-foreground`,e),...t})}function O_({className:e,...t}){return(0,z.jsx)(wf,{"data-slot":`label`,className:U(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}function k_({...e}){return(0,z.jsx)(sp,{"data-slot":`select`,...e})}function A_({...e}){return(0,z.jsx)(dp,{"data-slot":`select-value`,...e})}function j_({className:e,size:t=`default`,children:n,...r}){return(0,z.jsxs)(lp,{"data-slot":`select-trigger`,"data-size":t,className:U(`flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground`,e),...r,children:[n,(0,z.jsx)(fp,{asChild:!0,children:(0,z.jsx)(N,{className:`size-4 opacity-50`})})]})}function M_({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,z.jsx)(hp,{children:(0,z.jsxs)(_p,{"data-slot":`select-content`,className:U(`relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,align:r,...i,children:[(0,z.jsx)(P_,{}),(0,z.jsx)(kp,{className:U(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,z.jsx)(F_,{})]})})}function N_({className:e,children:t,...n}){return(0,z.jsxs)(Fp,{"data-slot":`select-item`,className:U(`relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,z.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,z.jsx)(zp,{children:(0,z.jsx)(ee,{className:`size-4`})})}),(0,z.jsx)(Lp,{children:t})]})}function P_({className:e,...t}){return(0,z.jsx)(Vp,{"data-slot":`select-scroll-up-button`,className:U(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,z.jsx)(F,{className:`size-4`})})}function F_({className:e,...t}){return(0,z.jsx)(Up,{"data-slot":`select-scroll-down-button`,className:U(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,z.jsx)(N,{className:`size-4`})})}function I_({className:e,...t}){return(0,z.jsx)(`textarea`,{"data-slot":`textarea`,className:U(`flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40`,e),...t})}function L_({value:e,onChange:t,placeholder:n,max:r=8,className:i}){let[a,o]=(0,k.useState)(``);function s(n){let i=n.trim().replace(/[,,]$/,``);!i||e.includes(i)||e.length>=r||t([...e,i])}function c(n){n.key===`Enter`||n.key===`,`?(n.preventDefault(),s(a),o(``)):n.key===`Backspace`&&!a&&e.length>0&&t(e.slice(0,-1))}return(0,z.jsxs)(`div`,{className:l_(`flex min-h-9 w-full flex-wrap items-center gap-1.5 rounded-md border bg-transparent px-2.5 py-1.5 text-sm focus-within:ring-3 focus-within:ring-ring/50`,i),children:[e.map(n=>(0,z.jsxs)(`span`,{className:`flex items-center gap-0.5 rounded border bg-muted px-1.5 py-0.5 text-[11px] text-foreground`,children:[n,(0,z.jsx)(`button`,{type:`button`,"aria-label":`移除 ${n}`,className:`text-muted-foreground transition-colors hover:text-foreground`,onClick:()=>t(e.filter(e=>e!==n)),children:(0,z.jsx)(R,{className:`size-3`})})]},n)),(0,z.jsx)(Um,{value:a,onChange:e=>o(e.target.value),onKeyDown:c,onBlur:()=>{s(a),o(``)},placeholder:e.length?``:n,className:`h-6 min-w-16 flex-1 border-0 bg-transparent px-0 text-[13px] shadow-none focus-visible:ring-0`})]})}function R_(e){let t={};for(let n of e)t[n.name]=n.kind===`tags`?[]:n.kind===`select`?n.options[0]?.value??``:``;return t}function z_({open:e,onOpenChange:t,title:n,description:r,fields:i,submitLabel:a,submitting:o=!1,onSubmit:s}){let[c,l]=(0,k.useState)(()=>R_(i)),[u,d]=(0,k.useState)(null);(0,k.useEffect)(()=>{e&&(l(R_(i)),d(null))},[e]);function f(e,t){l(n=>({...n,[e]:t}))}async function p(){let e=i.find(e=>e.kind===`text`&&`required`in e&&e.required&&!String(c[e.name]??``).trim());if(e)d(`请填写「${e.label}」`);else try{await s(c),t(!1)}catch{d(`提交失败,请稍后重试`)}}return(0,z.jsx)(b_,{open:e,onOpenChange:t,children:(0,z.jsxs)(C_,{className:`max-h-[85vh] overflow-y-auto text-left sm:max-w-lg sm:text-left`,onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&e.key===`Enter`&&(e.preventDefault(),p())},children:[(0,z.jsxs)(w_,{children:[(0,z.jsx)(E_,{children:n}),r?(0,z.jsx)(D_,{children:r}):null]}),(0,z.jsx)(`div`,{className:`grid gap-4 py-1`,children:i.map(e=>(0,z.jsxs)(`div`,{className:`grid gap-2`,children:[(0,z.jsxs)(O_,{htmlFor:`ff-${e.name}`,children:[e.label,e.kind===`text`&&`required`in e&&e.required?(0,z.jsx)(`span`,{className:`-ml-1 text-destructive`,children:`*`}):null]}),e.kind===`text`?(0,z.jsxs)(`div`,{className:`relative`,children:[(0,z.jsx)(Um,{id:`ff-${e.name}`,value:String(c[e.name]??``),onChange:t=>f(e.name,t.target.value),placeholder:`placeholder`in e?e.placeholder:void 0,className:`h-9 pr-8`,list:`suggestions`in e&&e.suggestions?`ff-sug-${e.name}`:void 0}),`suggestions`in e&&e.suggestions?(0,z.jsx)(N,{className:`pointer-events-none absolute top-1/2 right-2.5 size-3.5 -translate-y-1/2 text-muted-foreground`}):null,`suggestions`in e&&e.suggestions?(0,z.jsx)(`datalist`,{id:`ff-sug-${e.name}`,children:e.suggestions.map(e=>(0,z.jsx)(`option`,{value:e},e))}):null]}):e.kind===`textarea`?(0,z.jsx)(I_,{id:`ff-${e.name}`,value:String(c[e.name]??``),onChange:t=>f(e.name,t.target.value),placeholder:`placeholder`in e?e.placeholder:void 0,rows:`rows`in e?e.rows:3,className:`resize-none`}):e.kind===`select`?(0,z.jsxs)(k_,{value:String(c[e.name]??``),onValueChange:t=>f(e.name,t===`__empty`?``:t),children:[(0,z.jsx)(j_,{id:`ff-${e.name}`,className:`w-full`,children:(0,z.jsx)(A_,{})}),(0,z.jsxs)(M_,{children:[`emptyLabel`in e&&e.emptyLabel?(0,z.jsx)(N_,{value:`__empty`,children:e.emptyLabel}):null,e.options.map(e=>(0,z.jsx)(N_,{value:e.value,children:e.label},e.value))]})]}):(0,z.jsx)(L_,{value:c[e.name]??[],onChange:t=>f(e.name,t),placeholder:`placeholder`in e?e.placeholder:void 0})]},e.name))}),u?(0,z.jsx)(`p`,{className:`text-[12px] text-destructive`,children:u}):null,(0,z.jsxs)(T_,{className:`gap-2 sm:items-center`,children:[(0,z.jsxs)(`span`,{className:`mr-auto hidden text-[11px] text-muted-foreground sm:inline`,children:[(0,z.jsx)(`kbd`,{className:`rounded border bg-muted px-1 font-sans`,children:`⌘ ↵`}),` 提交 ·`,` `,(0,z.jsx)(`kbd`,{className:`rounded border bg-muted px-1 font-sans`,children:`ESC`}),` 关闭`]}),(0,z.jsx)(Hm,{variant:`outline`,onClick:()=>t(!1),disabled:o,children:`取消`}),(0,z.jsx)(Hm,{onClick:p,disabled:o,children:o?`提交中…`:a})]})]})})}function B_(e,t){return String(e[t]??``).trim()}function V_(e,t){return e[t]??[]}function H_({actor:e}){let t=f_(e.name.codePointAt(0)??0);return(0,z.jsxs)(Ph,{className:`gap-3 py-4 transition-colors hover:border-foreground/25`,children:[(0,z.jsxs)(Ih,{className:`p-4`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-3`,children:[e.avatar?(0,z.jsx)(`img`,{src:m_(e.avatar),alt:e.name,loading:`lazy`,className:`size-14 shrink-0 rounded-full object-cover ring-1 ring-foreground/10`}):(0,z.jsx)(`div`,{className:`relative flex size-14 shrink-0 items-center justify-center overflow-hidden rounded-full ring-1 ring-white/20`,style:{backgroundColor:`oklch(0.55 0.1 ${t})`,backgroundImage:`radial-gradient(42px 32px at 68% 28%, oklch(0.75 0.1 ${t}), transparent 74%)`},children:(0,z.jsx)(`span`,{className:`text-lg font-medium text-white/90`,children:e.name.slice(0,1)})}),(0,z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,z.jsx)(`h3`,{className:`truncate text-[15px] font-medium tracking-tight`,children:e.name}),(0,z.jsxs)(`p`,{className:`mt-0.5 text-[11px] tabular-nums text-muted-foreground`,children:[`参演 `,e.projectCount,` 个项目`]})]})]}),(0,z.jsx)(`p`,{className:`mt-3 line-clamp-2 min-h-10 text-[12px] leading-5 text-muted-foreground [text-wrap:pretty]`,children:e.persona})]}),(0,z.jsxs)(Lh,{className:`items-center justify-between gap-2 border-t px-4 py-2.5 text-xs text-muted-foreground tabular-nums sm:text-[11px]`,children:[(0,z.jsx)(`span`,{className:`truncate`,children:e.tags.join(` · `)}),(0,z.jsx)(`span`,{className:`shrink-0 text-muted-foreground/70`,title:`创建于 ${new Date(e.createdAt).toLocaleDateString(`zh-CN`)}`,children:new Date(e.createdAt).toLocaleDateString(`zh-CN`,{month:`short`,day:`numeric`})})]})]})}function U_(){let{data:e,error:t,loading:n,reload:r}=ii(Si.actors),[i,a]=(0,k.useState)(``),[o,s]=(0,k.useState)(!1),[c,l]=(0,k.useState)(!1),u=[{kind:`text`,name:`name`,label:`演员名称`,placeholder:`角色名或演员名`,required:!0},{kind:`textarea`,name:`persona`,label:`形象描述`,placeholder:`外形、气质、声线、代表作…`},{kind:`tags`,name:`tags`,label:`戏路标签`,placeholder:`输入标签后回车`}];async function d(e){l(!0);try{await Si.createActor({name:B_(e,`name`),persona:B_(e,`persona`),tags:V_(e,`tags`)}),Pe.success(`演员已创建`),r()}finally{l(!1)}}let f=(0,k.useMemo)(()=>{let t=i.trim();return e?t?e.filter(e=>(e.name+e.persona+e.tags.join()).includes(t)):e:null},[e,i]);return(0,z.jsxs)(`div`,{className:`flex min-h-svh flex-col`,children:[(0,z.jsx)(Nh,{title:`演员`,description:`AI 生成的演员形象库,可在各项目中复用`,actions:(0,z.jsxs)(Hm,{size:`sm`,className:`gap-1.5`,onClick:()=>s(!0),children:[(0,z.jsx)(L,{className:`size-3.5`}),`新建演员`]})}),(0,z.jsx)(z_,{open:o,onOpenChange:s,title:`新建演员`,description:`创建演员档案,形象可稍后用 AI 生成`,submitLabel:`创建演员`,submitting:c,fields:u,onSubmit:d}),!t&&(0,z.jsx)(h_,{placeholder:`搜索演员…`,unit:`位演员`,count:t||n?null:f?.length??0,countHidden:!!t,query:i,onQueryChange:a}),(0,z.jsx)(y_,{children:n?(0,z.jsx)(__,{variant:`actor`,count:8,cols:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`}):t?(0,z.jsx)(v_,{onRetry:r}):(0,z.jsx)(`div`,{className:`grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`,children:f?.map(e=>(0,z.jsx)(H_,{actor:e},e.id))})})]})}function W_({costume:e,index:t}){return(0,z.jsxs)(Ph,{className:`group gap-0 overflow-hidden py-0 transition-colors hover:border-foreground/25`,children:[(0,z.jsxs)(Fh,{className:`relative h-14 overflow-hidden border-b p-3 sm:h-20`,children:[(0,z.jsx)(`div`,{className:`absolute inset-0`,style:{backgroundColor:`oklch(0.9 0.03 ${Math.round(t*137.508%360)})`}}),(0,z.jsx)(`div`,{className:`absolute inset-0 hidden dark:block`,style:{backgroundColor:`oklch(0.16 0.03 ${Math.round(t*137.508%360)})`,backgroundImage:`radial-gradient(160px 90px at 75% 110%, oklch(0.45 0.08 ${Math.round(t*137.508%360)}), transparent 75%)`}}),(0,z.jsx)(`div`,{className:`absolute inset-0 ${u_}`}),(0,z.jsx)(`div`,{className:`absolute inset-0 opacity-[0.12] mix-blend-overlay`,style:d_}),(0,z.jsx)(`span`,{className:`absolute -bottom-1 right-3 text-[36px] sm:text-[48px] leading-none font-semibold tracking-tight select-none [mask-image:linear-gradient(to_bottom,black_45%,transparent_95%)]`,style:{color:`var(--cover-word)`},children:e.era.startsWith(e.name.slice(0,1))?e.name.replace(/\s/g,``).slice(1,2):e.name.slice(0,1)}),(0,z.jsx)(`span`,{className:`absolute top-2.5 left-3 rounded border bg-muted px-1.5 py-0.5 text-[11px] text-muted-foreground backdrop-blur-sm`,children:e.era})]}),(0,z.jsxs)(Ih,{className:`space-y-1.5 p-4`,children:[(0,z.jsx)(`h3`,{className:`truncate text-[15px] font-medium tracking-tight`,children:e.name}),(0,z.jsx)(`p`,{className:`line-clamp-2 min-h-10 text-[12px] leading-5 text-muted-foreground [text-wrap:pretty]`,children:e.description})]}),(0,z.jsxs)(Lh,{className:`items-center justify-between border-t px-4 py-2.5 text-xs text-muted-foreground sm:text-[11px]`,children:[(0,z.jsx)(`span`,{className:`truncate`,children:e.tags.join(` · `)}),(0,z.jsx)(`span`,{className:`shrink-0 text-muted-foreground/70 tabular-nums`,children:new Date(e.createdAt).toLocaleDateString(`zh-CN`,{month:`short`,day:`numeric`})})]})]})}function G_(){let{data:e,error:t,loading:n,reload:r}=ii(Si.costumes),[i,a]=(0,k.useState)(``),[o,s]=(0,k.useState)(!1),[c,l]=(0,k.useState)(!1),u=[{kind:`text`,name:`name`,label:`服饰名称`,placeholder:`如:唐代圆领袍 · 官差制式`,required:!0},{kind:`textarea`,name:`description`,label:`造型描述`,placeholder:`形制、面料、做旧处理…`},{kind:`text`,name:`era`,label:`时代`,placeholder:`如:唐 / 近未来`,suggestions:[`唐`,`宋`,`明`,`清`,`民国`,`九十年代`,`当代`,`近未来`]},{kind:`tags`,name:`tags`,label:`标签`,placeholder:`输入标签后回车,如:男装 · 动作戏`}];async function d(e){l(!0);try{await Si.createCostume({name:B_(e,`name`),description:B_(e,`description`),era:B_(e,`era`),tags:V_(e,`tags`)}),Pe.success(`服饰已创建`),r()}finally{l(!1)}}let f=(0,k.useMemo)(()=>{let t=i.trim();return e?t?e.filter(e=>(e.name+e.description+e.tags.join()).includes(t)):e:null},[e,i]);return(0,z.jsxs)(`div`,{className:`flex min-h-svh flex-col`,children:[(0,z.jsx)(Nh,{title:`服饰`,description:`角色服饰与造型设定库`,actions:(0,z.jsxs)(Hm,{size:`sm`,className:`gap-1.5`,onClick:()=>s(!0),children:[(0,z.jsx)(L,{className:`size-3.5`}),`新建服饰`]})}),(0,z.jsx)(z_,{open:o,onOpenChange:s,title:`新建服饰`,description:`沉淀一套服饰与造型设定`,submitLabel:`创建服饰`,submitting:c,fields:u,onSubmit:d}),!t&&(0,z.jsx)(h_,{placeholder:`搜索服饰…`,unit:`套服饰`,count:t||n?null:f?.length??0,countHidden:!!t,query:i,onQueryChange:a}),(0,z.jsx)(y_,{children:n?(0,z.jsx)(__,{variant:`costume`,count:4,cols:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`}):t?(0,z.jsx)(v_,{onRetry:r}):(0,z.jsx)(`div`,{className:`grid gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`,children:f?.map((e,t)=>(0,z.jsx)(W_,{costume:e,index:t},e.id))})})]})}function K_(){return(0,z.jsxs)(`div`,{className:`relative flex min-h-svh flex-col items-center justify-center gap-3 overflow-hidden`,children:[(0,z.jsx)(`div`,{className:`absolute inset-0 opacity-50 ${u_}`}),(0,z.jsx)(`span`,{className:`absolute -bottom-10 right-0 text-[120px] sm:-bottom-14 sm:text-[240px] leading-none font-semibold tracking-tight select-none [mask-image:linear-gradient(to_top,black_30%,transparent_72%)]`,style:{color:`var(--cover-word)`},"aria-hidden":!0,children:`404`}),(0,z.jsx)(`p`,{className:`text-2xl font-semibold tracking-tight`,children:`页面不存在`}),(0,z.jsx)(`p`,{className:`text-[13px] text-muted-foreground`,children:`你要找的页面可能已被移动或删除`}),(0,z.jsx)(Hm,{asChild:!0,size:`sm`,className:`mt-1.5`,children:(0,z.jsx)(qr,{to:`/projects`,children:`返回项目列表`})})]})}var q_=Di(`inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3`,{variants:{variant:{default:`bg-primary text-primary-foreground [a&]:hover:bg-primary/90`,secondary:`bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90`,destructive:`bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90`,outline:`border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground`,ghost:`[a&]:hover:bg-accent [a&]:hover:text-accent-foreground`,link:`text-primary underline-offset-4 [a&]:hover:underline`}},defaultVariants:{variant:`default`}});function J_({className:e,variant:t=`default`,asChild:n=!1,...r}){let i=n?Oa:`span`;return(0,z.jsx)(i,{"data-slot":`badge`,"data-variant":t,className:U(q_({variant:t}),e),...r})}function Y_({className:e,value:t,...n}){return(0,z.jsx)(If,{"data-slot":`progress`,className:U(`relative h-2 w-full overflow-hidden rounded-full bg-primary/20`,e),...n,children:(0,z.jsx)(Rf,{"data-slot":`progress-indicator`,className:`h-full w-full flex-1 bg-primary transition-all`,style:{transform:`translateX(-${100-(t||0)}%)`}})})}var X_={planning:`bg-zinc-400 dark:bg-zinc-500`,writing:`bg-amber-500`,shooting:`bg-[#0070f3]`,post:`bg-violet-500`,released:`bg-emerald-500`};function Z_({project:e}){let t=new Date(e.updatedAt).toLocaleDateString(`zh-CN`,{month:`long`,day:`numeric`});return(0,z.jsxs)(Ph,{className:`group cursor-pointer gap-0 overflow-hidden py-0 transition-colors hover:border-foreground/25`,children:[(0,z.jsxs)(Fh,{className:`relative h-16 overflow-hidden border-b p-4 sm:h-24`,children:[e.cover?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`img`,{src:m_(e.cover),alt:``,loading:`lazy`,className:`absolute inset-0 h-full w-full object-cover`}),(0,z.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-black/50 via-black/15 to-transparent`})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:`absolute inset-0 ${u_}`}),(0,z.jsx)(`span`,{className:`absolute -bottom-3 right-4 text-[64px] leading-none font-semibold tracking-tight select-none [mask-image:linear-gradient(to_bottom,black_45%,transparent_96%)]`,style:{color:`var(--cover-word)`},children:e.name.slice(0,1)})]}),(0,z.jsxs)(J_,{variant:`secondary`,className:`relative w-fit gap-1.5 border bg-background/75 text-[11px] font-medium backdrop-blur-sm`,children:[(0,z.jsx)(`span`,{className:`size-1.5 rounded-full ${X_[e.status]}`}),hi[e.status]]}),(0,z.jsx)(M,{className:`absolute top-3 right-3 z-10 size-4 text-white/90 opacity-0 transition-opacity group-hover:opacity-100`})]}),(0,z.jsxs)(Ih,{className:`space-y-2 p-4`,children:[(0,z.jsx)(`h3`,{className:`truncate text-[15px] font-medium tracking-tight`,children:e.name}),(0,z.jsx)(`p`,{className:`line-clamp-2 min-h-10 text-[13px] leading-5 text-muted-foreground [text-wrap:pretty]`,children:e.logline})]}),(0,z.jsxs)(Lh,{className:`mt-auto items-center gap-3 border-t px-4 py-3`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2.5`,children:[(0,z.jsx)(Y_,{value:e.progress,className:l_(`h-1 w-full`,$_[e.status])}),(0,z.jsxs)(`span`,{className:`w-9 shrink-0 text-right text-xs tabular-nums text-muted-foreground sm:text-[11px]`,children:[e.progress,`%`]})]}),(0,z.jsxs)(`span`,{className:`max-w-24 shrink-0 truncate text-xs text-muted-foreground sm:text-[11px]`,title:e.members.join(`、`),children:[e.members[0],e.members.length>1?` 等 ${e.members.length} 人`:``]}),(0,z.jsx)(`span`,{className:`shrink-0 text-xs tabular-nums text-muted-foreground sm:text-[11px]`,children:t})]})]})}var Q_=[{kind:`text`,name:`name`,label:`项目名称`,placeholder:`如:长安十二时辰 · 重制`,required:!0},{kind:`textarea`,name:`logline`,label:`一句话故事`,placeholder:`用一句话概括这个故事`},{kind:`text`,name:`genre`,label:`题材`,placeholder:`如:古装悬疑`,suggestions:[`古装悬疑`,`都市情感`,`科幻`,`悬疑刑侦`,`奇幻`,`年代`,`喜剧`,`运动`]},{kind:`select`,name:`status`,label:`当前状态`,options:Object.keys(hi).map(e=>({value:e,label:hi[e]}))},{kind:`tags`,name:`members`,label:`主创成员`,placeholder:`输入姓名后回车,最多 8 人`}],$_={planning:`[&>div]:bg-zinc-500 [&>div]:bg-[repeating-linear-gradient(45deg,transparent_0px,transparent_2px,rgba(0,0,0,0.35)_2px,rgba(0,0,0,0.35)_4px)] dark:[&>div]:bg-zinc-600 dark:[&>div]:bg-[repeating-linear-gradient(45deg,transparent_0px,transparent_2px,rgba(255,255,255,0.5)_2px,rgba(255,255,255,0.5)_4px)]`,writing:`[&>div]:bg-amber-500`,shooting:`[&>div]:bg-[#0070f3]`,post:`[&>div]:bg-violet-500`,released:`[&>div]:bg-emerald-500`},ev=[{key:`all`,label:`全部`},...Object.keys(hi).map(e=>({key:e,label:hi[e]}))];function tv(){let{data:e,error:t,loading:n,reload:r}=ii(Si.projects),[i,a]=(0,k.useState)(``),[o,s]=(0,k.useState)(`all`),[c,l]=(0,k.useState)(!1),[u,d]=(0,k.useState)(!1),f=(0,k.useMemo)(()=>{if(!e)return null;let t=e;o!==`all`&&(t=t.filter(e=>e.status===o));let n=i.trim();return n&&(t=t.filter(e=>(e.name+e.logline+e.genre).includes(n))),t},[e,i,o]);async function p(e){d(!0);try{await Si.createProject({name:B_(e,`name`),logline:B_(e,`logline`),genre:B_(e,`genre`),status:e.status??void 0,members:V_(e,`members`)}),Pe.success(`项目已创建`),r()}finally{d(!1)}}return(0,z.jsxs)(`div`,{className:`flex min-h-svh flex-col`,children:[(0,z.jsx)(Nh,{title:`项目`,description:`管理你的影视项目,从剧本到成片`,actions:(0,z.jsxs)(Hm,{size:`sm`,className:`gap-1.5`,onClick:()=>l(!0),children:[(0,z.jsx)(L,{className:`size-3.5`}),`新建项目`]})}),(0,z.jsx)(z_,{open:c,onOpenChange:l,title:`新建项目`,description:`创建一个影视项目,封面可稍后在项目详情中补充`,submitLabel:`创建项目`,submitting:u,fields:Q_,onSubmit:p}),(0,z.jsx)(h_,{placeholder:`搜索项目…`,unit:`个项目`,count:t||n?null:f?.length??0,countHidden:!!t,query:i,onQueryChange:a,children:(0,z.jsx)(`div`,{className:`flex flex-1 items-center gap-1.5 overflow-x-auto [scrollbar-width:none] [mask-image:linear-gradient(to_right,black_88%,transparent_100%)] [&::-webkit-scrollbar]:hidden`,children:ev.map(e=>(0,z.jsx)(`button`,{type:`button`,onClick:()=>s(e.key),className:l_(`h-10 shrink-0 whitespace-nowrap rounded-full border px-3.5 text-[13px] transition-colors sm:h-9 sm:text-[12px]`,o===e.key?`border-foreground/45 bg-foreground/8 font-medium text-foreground`:`text-muted-foreground hover:border-foreground/30 hover:text-foreground`),children:e.label},e.key))})}),(0,z.jsx)(y_,{children:n?(0,z.jsx)(__,{variant:`project`,count:8,cols:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`}):t?(0,z.jsx)(v_,{onRetry:r}):(0,z.jsx)(`div`,{className:`grid gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`,children:f?.map(e=>(0,z.jsx)(Z_,{project:e},e.id))})})]})}function nv({scene:e,index:t}){return(0,z.jsxs)(Ph,{className:`group gap-0 overflow-hidden py-0 transition-colors hover:border-foreground/25`,children:[(0,z.jsxs)(Fh,{className:`relative h-14 overflow-hidden border-b p-3 sm:h-20`,children:[(0,z.jsx)(`div`,{className:`absolute inset-0`,style:{backgroundColor:`oklch(0.9 0.04 ${p_(e.timeOfDay,t)})`}}),(0,z.jsx)(`div`,{className:`absolute inset-0 hidden dark:block`,style:{backgroundColor:`oklch(0.16 0.035 ${p_(e.timeOfDay,t)})`,backgroundImage:`radial-gradient(160px 90px at 75% 110%, oklch(0.45 0.09 ${p_(e.timeOfDay,t)}), transparent 75%)`}}),(0,z.jsx)(`div`,{className:`absolute inset-0 ${u_}`}),(0,z.jsx)(`div`,{className:`absolute inset-0 opacity-[0.12] mix-blend-overlay`,style:d_}),(0,z.jsx)(`span`,{className:`absolute -bottom-1 right-3 text-[36px] sm:text-[48px] leading-none font-semibold tracking-tight select-none [mask-image:linear-gradient(to_bottom,black_45%,transparent_95%)]`,style:{color:`var(--cover-word)`},children:e.name.slice(0,1)}),(0,z.jsx)(`span`,{className:`absolute top-2.5 left-3 rounded border bg-muted px-1.5 py-0.5 text-[11px] text-muted-foreground backdrop-blur-sm`,children:e.timeOfDay})]}),(0,z.jsxs)(Ih,{className:`space-y-1.5 p-4`,children:[(0,z.jsx)(`h3`,{className:`truncate text-[15px] font-medium tracking-tight`,children:e.name}),(0,z.jsx)(`p`,{className:`line-clamp-2 min-h-10 text-[12px] leading-5 text-muted-foreground [text-wrap:pretty]`,children:e.description})]}),(0,z.jsxs)(Lh,{className:`items-center justify-between gap-2 border-t px-4 py-2.5 text-xs text-muted-foreground sm:text-[11px]`,children:[(0,z.jsx)(`span`,{className:`truncate`,children:e.projectName}),(0,z.jsx)(`span`,{className:`shrink-0`,children:e.tags.join(` · `)})]})]})}function rv(){let{data:e,error:t,loading:n,reload:r}=ii(Si.scenes),i=ii(Si.projects),[a,o]=(0,k.useState)(``),[s,c]=(0,k.useState)(!1),[l,u]=(0,k.useState)(!1),d=[{kind:`text`,name:`name`,label:`场景名称`,placeholder:`如:长安西市 · 夜市`,required:!0},{kind:`textarea`,name:`description`,label:`场景描述`,placeholder:`空间、光线、氛围…`},{kind:`select`,name:`timeOfDay`,label:`时段`,options:[{value:`日`,label:`日`},{value:`黄昏`,label:`黄昏`},{value:`夜`,label:`夜`},{value:`无自然光`,label:`无自然光`}]},{kind:`tags`,name:`tags`,label:`标签`,placeholder:`输入标签后回车,如:内景 · 棚拍`},{kind:`select`,name:`projectName`,label:`关联项目`,emptyLabel:`不关联项目`,options:(i.data??[]).map(e=>({value:e.name,label:e.name}))}];async function f(e){u(!0);try{await Si.createScene({name:B_(e,`name`),description:B_(e,`description`),timeOfDay:B_(e,`timeOfDay`),tags:V_(e,`tags`),projectName:B_(e,`projectName`)}),Pe.success(`场景已创建`),r()}finally{u(!1)}}let p=(0,k.useMemo)(()=>{let t=a.trim();return e?t?e.filter(e=>(e.name+e.description+e.tags.join()).includes(t)):e:null},[e,a]);return(0,z.jsxs)(`div`,{className:`flex min-h-svh flex-col`,children:[(0,z.jsx)(Nh,{title:`场景`,description:`项目共用的场景素材库`,actions:(0,z.jsxs)(Hm,{size:`sm`,className:`gap-1.5`,onClick:()=>c(!0),children:[(0,z.jsx)(L,{className:`size-3.5`}),`新建场景`]})}),(0,z.jsx)(z_,{open:s,onOpenChange:c,title:`新建场景`,description:`沉淀一个可复用的场景资产`,submitLabel:`创建场景`,submitting:l,fields:d,onSubmit:f}),!t&&(0,z.jsx)(h_,{placeholder:`搜索场景…`,unit:`个场景`,count:t||n?null:p?.length??0,countHidden:!!t,query:a,onQueryChange:o}),(0,z.jsx)(y_,{children:n?(0,z.jsx)(__,{variant:`scene`,count:4,cols:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`}):t?(0,z.jsx)(v_,{onRetry:r}):(0,z.jsx)(`div`,{className:`grid gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`,children:p?.map((e,t)=>(0,z.jsx)(nv,{scene:e,index:t},e.id))})})]})}function iv({title:e,description:t,children:n}){return(0,z.jsxs)(`section`,{className:`mx-auto w-full max-w-3xl`,children:[(0,z.jsx)(`h2`,{className:`text-[13px] font-medium tracking-tight`,children:e}),t?(0,z.jsx)(`p`,{className:`mt-0.5 text-[12px] text-muted-foreground`,children:t}):null,(0,z.jsx)(`div`,{className:`mt-3 rounded-lg border bg-card`,children:n})]})}function av({label:e,hint:t,control:n}){return(0,z.jsxs)(`div`,{className:`flex flex-col gap-2 border-b px-4 py-3 last:border-b-0 sm:flex-row sm:items-center sm:justify-between sm:gap-4`,children:[(0,z.jsxs)(`div`,{className:`min-w-0`,children:[(0,z.jsx)(`p`,{className:`text-[13px]`,children:e}),t?(0,z.jsx)(`p`,{className:`mt-0.5 text-[12px] text-muted-foreground`,children:t}):null]}),n]})}function ov({value:e,tone:t=`idle`}){return(0,z.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1.5 text-[12px] text-muted-foreground`,children:[(0,z.jsx)(`span`,{className:`size-1.5 rounded-full ${t===`off`?`bg-zinc-400/70 dark:bg-zinc-500/70`:`bg-amber-400 dark:bg-amber-500/80`}`}),e,(0,z.jsx)(P,{className:`size-3.5`})]})}var sv=[{key:`light`,label:`浅色`},{key:`dark`,label:`深色`},{key:`system`,label:`跟随系统`}];function cv(){let[e,t]=(0,k.useState)(u);function n(e){f(e),t(e)}return(0,z.jsx)(`div`,{className:`flex min-h-svh flex-col`,children:(0,z.jsxs)(`div`,{className:`mx-auto w-full max-w-3xl flex-1 px-4 pb-10 sm:px-8`,children:[(0,z.jsx)(Nh,{flush:!0,title:`系统设置`,description:`平台外观与基础配置`}),(0,z.jsxs)(`div`,{className:`space-y-8`,children:[(0,z.jsx)(iv,{title:`外观`,description:`界面主题与显示偏好`,children:(0,z.jsx)(av,{label:`主题`,hint:`深色、浅色或跟随系统自动切换`,control:(0,z.jsx)(`div`,{className:`flex w-full shrink-0 items-center gap-0.5 rounded-md border bg-foreground/5 p-0.5 sm:w-auto`,children:sv.map(t=>(0,z.jsx)(`button`,{type:`button`,onClick:()=>n(t.key),className:l_(`h-9 flex-1 rounded-sm px-2.5 text-[13px] transition-colors sm:h-6.5 sm:flex-none sm:text-[12px]`,e===t.key?`bg-foreground text-background`:`text-muted-foreground hover:text-foreground`),children:t.label},t.key))})})}),(0,z.jsxs)(iv,{title:`AI 服务`,description:`配置模型与生成服务接入`,children:[(0,z.jsx)(av,{label:`生成模型`,hint:`用于剧本、形象与场景生成`,control:(0,z.jsx)(ov,{value:`未接入`,tone:`off`})}),(0,z.jsx)(av,{label:`API Key`,hint:`访问密钥,仅保存在本机`,control:(0,z.jsx)(ov,{value:`未设置`,tone:`off`})})]}),(0,z.jsxs)(iv,{title:`关于`,children:[(0,z.jsx)(av,{label:`版本`,control:(0,z.jsx)(`span`,{className:`shrink-0 text-[12px] tabular-nums text-muted-foreground`,children:mi})}),(0,z.jsx)(av,{label:`数据存储`,control:(0,z.jsx)(ov,{value:`本机存储`,tone:`off`})})]})]})]})})}var lv=(0,k.lazy)(()=>nt(()=>import(`./project-studio-Dl7BkPQN.js`),[]));function uv(){return(0,z.jsxs)(Kr,{basename:`/`,children:[(0,z.jsx)(cr,{children:(0,z.jsxs)(or,{element:(0,z.jsx)(Mh,{}),children:[(0,z.jsx)(or,{path:`/`,element:(0,z.jsx)(ir,{to:`/projects`,replace:!0})}),(0,z.jsx)(or,{path:`/projects`,element:(0,z.jsx)(tv,{})}),(0,z.jsx)(or,{path:`/actors`,element:(0,z.jsx)(U_,{})}),(0,z.jsx)(or,{path:`/scenes`,element:(0,z.jsx)(rv,{})}),(0,z.jsx)(or,{path:`/costumes`,element:(0,z.jsx)(G_,{})}),(0,z.jsx)(or,{path:`/projects/:id/studio`,element:(0,z.jsx)(k.Suspense,{fallback:null,children:(0,z.jsx)(lv,{})})}),(0,z.jsx)(or,{path:`/settings`,element:(0,z.jsx)(cv,{})}),(0,z.jsx)(or,{path:`*`,element:(0,z.jsx)(K_,{})})]})}),(0,z.jsx)(Xe,{position:`top-center`,richColors:!0})]})}d(u()),window.matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,()=>d(u())),(0,pe.createRoot)(document.getElementById(`root`)).render((0,z.jsx)(k.StrictMode,{children:(0,z.jsx)(uv,{})}));export{g as $,Bo as A,U as B,Ds as C,as as D,ps as E,eo as F,pi as G,li as H,Ga as I,L as J,qr as K,Ka as L,W as M,ao as N,ts as O,no as P,j as Q,Da as R,Ts as S,Os as T,di as U,ui as V,fi as W,I as X,ie as Y,N as Z,sf as _,N_ as a,Js as b,O_ as c,Wm as d,m as et,Um as f,gf as g,ff as h,M_ as i,No as j,Xo as k,l_ as l,uf as m,I_ as n,j_ as o,Hm as p,In as q,k_ as r,A_ as s,J_ as t,c as tt,$m as u,fl as v,ks as w,Hs as x,rl as y,wa as z};
|