x-F&&(r+=z-x+F)),(j>s||oM-I&&(f+=o-M+I)),i.scrollTo({left:r,top:f})}function ye(i,e,t){const l=t==="left"?"offsetLeft":"offsetTop";let n=0;for(;e.offsetParent&&(n+=e[l],e.offsetParent!==i);){if(e.offsetParent.contains(i)){n-=i[l];break}e=e.offsetParent}return n}function ve(i,e){if(i&&document.contains(i)){let r=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(r).overflow==="hidden")&&!Re()){var t;let{left:a,top:b}=i.getBoundingClientRect();i==null||(t=i.scrollIntoView)===null||t===void 0||t.call(i,{block:"nearest"});let{left:k,top:g}=i.getBoundingClientRect();if(Math.abs(a-k)>1||Math.abs(b-g)>1){var l,n,c;e==null||(n=e.containingElement)===null||n===void 0||(l=n.scrollIntoView)===null||l===void 0||l.call(n,{block:"center",inline:"center"}),(c=i.scrollIntoView)===null||c===void 0||c.call(i,{block:"nearest"})}}else{let a=je(i);for(let b of a)Te(b,i)}}}const Ye="react-aria-clear-focus",Ve="react-aria-focus",Xe=500;function Ze(i){let{isDisabled:e,onLongPressStart:t,onLongPressEnd:l,onLongPress:n,threshold:c=Xe,accessibilityDescription:r}=i;const f=h.useRef(void 0);let{addGlobalListener:a,removeGlobalListener:b}=Be(),{pressProps:k}=Fe({isDisabled:e,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(t&&t({...p,type:"longpressstart"}),f.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Se(p.target).activeElement!==p.target&&ue(p.target),n&&n({...p,type:"longpress"}),f.current=void 0},c),p.pointerType==="touch")){let S=$=>{$.preventDefault()};a(p.target,"contextmenu",S,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{b(p.target,"contextmenu",S)},30)},{once:!0})}},onPressEnd(p){f.current&&clearTimeout(f.current),l&&(p.pointerType==="mouse"||p.pointerType==="touch")&&l({...p,type:"longpressend"})}}),g=qe(n&&!e?r:void 0);return{longPressProps:X(k,g)}}function De(i){let e=Qe(Se(i));e!==i&&(e&&Je(e,i),i&&ke(i,e))}function Je(i,e){i.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function ke(i,e){i.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),i.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Qe(i){let e=xe(i),t=e==null?void 0:e.getAttribute("aria-activedescendant");return t&&i.getElementById(t)||e}function fe(i){return Le()?i.altKey:i.ctrlKey}function ne(i,e){var t,l;let n=`[data-key="${CSS.escape(String(e))}"]`,c=(t=i.current)===null||t===void 0?void 0:t.dataset.collection;return c&&(n=`[data-collection="${CSS.escape(c)}"]${n}`),(l=i.current)===null||l===void 0?void 0:l.querySelector(n)}const Ie=new WeakMap;function Ne(i){let e=Pe();return Ie.set(i,e),e}function _e(i){return Ie.get(i)}const et=1e3;function tt(i){let{keyboardDelegate:e,selectionManager:t,onTypeSelect:l}=i,n=h.useRef({search:"",timeout:void 0}).current,c=r=>{let f=lt(r.key);if(!(!f||r.ctrlKey||r.metaKey||!r.currentTarget.contains(r.target)||n.search.length===0&&f===" ")){if(f===" "&&n.search.trim().length>0&&(r.preventDefault(),"continuePropagation"in r||r.stopPropagation()),n.search+=f,e.getKeyForSearch!=null){let a=e.getKeyForSearch(n.search,t.focusedKey);a==null&&(a=e.getKeyForSearch(n.search)),a!=null&&(t.setFocusedKey(a),l&&l(a))}clearTimeout(n.timeout),n.timeout=setTimeout(()=>{n.search=""},et)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?c:void 0}}}function lt(i){return i.length===1||!/^[A-Z]/i.test(i)?i:""}function dt(i){let{selectionManager:e,keyboardDelegate:t,ref:l,autoFocus:n=!1,shouldFocusWrap:c=!1,disallowEmptySelection:r=!1,disallowSelectAll:f=!1,escapeKeyBehavior:a="clearSelection",selectOnFocus:b=e.selectionBehavior==="replace",disallowTypeAhead:k=!1,shouldUseVirtualFocus:g,allowsTabNavigation:p=!1,isVirtualized:S,scrollRef:$=l,linkBehavior:A="action"}=i,{direction:y}=Oe(),w=we(),v=o=>{var d;if(o.altKey&&o.key==="Tab"&&o.preventDefault(),!(!((d=l.current)===null||d===void 0)&&d.contains(o.target)))return;const K=(u,G)=>{if(u!=null){if(e.isLink(u)&&A==="selection"&&b&&!fe(o)){Ae.flushSync(()=>{e.setFocusedKey(u,G)});let q=ne(l,u),de=e.getItemProps(u);q&&w.open(q,o,de.href,de.routerOptions);return}if(e.setFocusedKey(u,G),e.isLink(u)&&A==="override")return;o.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):b&&!fe(o)&&e.replaceSelection(u)}};switch(o.key){case"ArrowDown":if(t.getKeyBelow){var s,P,E;let u=e.focusedKey!=null?(s=t.getKeyBelow)===null||s===void 0?void 0:s.call(t,e.focusedKey):(P=t.getFirstKey)===null||P===void 0?void 0:P.call(t);u==null&&c&&(u=(E=t.getFirstKey)===null||E===void 0?void 0:E.call(t,e.focusedKey)),u!=null&&(o.preventDefault(),K(u))}break;case"ArrowUp":if(t.getKeyAbove){var O,W,J;let u=e.focusedKey!=null?(O=t.getKeyAbove)===null||O===void 0?void 0:O.call(t,e.focusedKey):(W=t.getLastKey)===null||W===void 0?void 0:W.call(t);u==null&&c&&(u=(J=t.getLastKey)===null||J===void 0?void 0:J.call(t,e.focusedKey)),u!=null&&(o.preventDefault(),K(u))}break;case"ArrowLeft":if(t.getKeyLeftOf){var Q,N,_;let u=e.focusedKey!=null?(Q=t.getKeyLeftOf)===null||Q===void 0?void 0:Q.call(t,e.focusedKey):null;u==null&&c&&(u=y==="rtl"?(N=t.getFirstKey)===null||N===void 0?void 0:N.call(t,e.focusedKey):(_=t.getLastKey)===null||_===void 0?void 0:_.call(t,e.focusedKey)),u!=null&&(o.preventDefault(),K(u,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(t.getKeyRightOf){var ee,te,le;let u=e.focusedKey!=null?(ee=t.getKeyRightOf)===null||ee===void 0?void 0:ee.call(t,e.focusedKey):null;u==null&&c&&(u=y==="rtl"?(te=t.getLastKey)===null||te===void 0?void 0:te.call(t,e.focusedKey):(le=t.getFirstKey)===null||le===void 0?void 0:le.call(t,e.focusedKey)),u!=null&&(o.preventDefault(),K(u,y==="rtl"?"last":"first"))}break;case"Home":if(t.getFirstKey){if(e.focusedKey===null&&o.shiftKey)return;o.preventDefault();let u=t.getFirstKey(e.focusedKey,V(o));e.setFocusedKey(u),u!=null&&(V(o)&&o.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):b&&e.replaceSelection(u))}break;case"End":if(t.getLastKey){if(e.focusedKey===null&&o.shiftKey)return;o.preventDefault();let u=t.getLastKey(e.focusedKey,V(o));e.setFocusedKey(u),u!=null&&(V(o)&&o.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):b&&e.replaceSelection(u))}break;case"PageDown":if(t.getKeyPageBelow&&e.focusedKey!=null){let u=t.getKeyPageBelow(e.focusedKey);u!=null&&(o.preventDefault(),K(u))}break;case"PageUp":if(t.getKeyPageAbove&&e.focusedKey!=null){let u=t.getKeyPageAbove(e.focusedKey);u!=null&&(o.preventDefault(),K(u))}break;case"a":V(o)&&e.selectionMode==="multiple"&&f!==!0&&(o.preventDefault(),e.selectAll());break;case"Escape":a==="clearSelection"&&!r&&e.selectedKeys.size!==0&&(o.stopPropagation(),o.preventDefault(),e.clearSelection());break;case"Tab":if(!p){if(o.shiftKey)l.current.focus();else{let u=Ue(l.current,{tabbable:!0}),G,q;do q=u.lastChild(),q&&(G=q);while(q);G&&!G.contains(document.activeElement)&&ue(G)}break}}},m=h.useRef({top:0,left:0});Z($,"scroll",S?void 0:()=>{var o,d,K,s;m.current={top:(K=(o=$.current)===null||o===void 0?void 0:o.scrollTop)!==null&&K!==void 0?K:0,left:(s=(d=$.current)===null||d===void 0?void 0:d.scrollLeft)!==null&&s!==void 0?s:0}});let x=o=>{if(e.isFocused){o.currentTarget.contains(o.target)||e.setFocused(!1);return}if(o.currentTarget.contains(o.target)){if(e.setFocused(!0),e.focusedKey==null){var d,K;let E=W=>{W!=null&&(e.setFocusedKey(W),b&&!e.isSelected(W)&&e.replaceSelection(W))},O=o.relatedTarget;var s,P;O&&o.currentTarget.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_FOLLOWING?E((s=e.lastSelectedKey)!==null&&s!==void 0?s:(d=t.getLastKey)===null||d===void 0?void 0:d.call(t)):E((P=e.firstSelectedKey)!==null&&P!==void 0?P:(K=t.getFirstKey)===null||K===void 0?void 0:K.call(t))}else!S&&$.current&&($.current.scrollTop=m.current.top,$.current.scrollLeft=m.current.left);if(e.focusedKey!=null&&$.current){let E=ne(l,e.focusedKey);E instanceof HTMLElement&&(!E.contains(document.activeElement)&&!g&&ue(E),he()==="keyboard"&&ve(E,{containingElement:l.current}))}}},M=o=>{o.currentTarget.contains(o.relatedTarget)||e.setFocused(!1)},D=h.useRef(!1);Z(l,Ve,g?o=>{let{detail:d}=o;o.stopPropagation(),e.setFocused(!0),(d==null?void 0:d.focusStrategy)==="first"&&(D.current=!0)}:void 0);let I=ce(()=>{var o,d;let K=(d=(o=t.getFirstKey)===null||o===void 0?void 0:o.call(t))!==null&&d!==void 0?d:null;if(K==null){let s=xe();De(l.current),ke(s,null),e.collection.size>0&&(D.current=!1)}else e.setFocusedKey(K),D.current=!1});pe(()=>{D.current&&I()},[e.collection,I]);let F=ce(()=>{e.collection.size>0&&(D.current=!1)});pe(()=>{F()},[e.focusedKey,F]),Z(l,Ye,g?o=>{var d;o.stopPropagation(),e.setFocused(!1),!((d=o.detail)===null||d===void 0)&&d.clearFocusKey&&e.setFocusedKey(null)}:void 0);const L=h.useRef(n),U=h.useRef(!1);h.useEffect(()=>{if(L.current){var o,d;let P=null;var K;n==="first"&&(P=(K=(o=t.getFirstKey)===null||o===void 0?void 0:o.call(t))!==null&&K!==void 0?K:null);var s;n==="last"&&(P=(s=(d=t.getLastKey)===null||d===void 0?void 0:d.call(t))!==null&&s!==void 0?s:null);let E=e.selectedKeys;if(E.size){for(let O of E)if(e.canSelectItem(O)){P=O;break}}e.setFocused(!0),e.setFocusedKey(P),P==null&&!g&&l.current&&ae(l.current),e.collection.size>0&&(L.current=!1,U.current=!0)}});let R=h.useRef(e.focusedKey),C=h.useRef(null);h.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==R.current||U.current)&&$.current&&l.current){let o=he(),d=ne(l,e.focusedKey);if(!(d instanceof HTMLElement))return;(o==="keyboard"||U.current)&&(C.current&&cancelAnimationFrame(C.current),C.current=requestAnimationFrame(()=>{$.current&&(Te($.current,d),o!=="virtual"&&ve(d,{containingElement:l.current}))}))}!g&&e.isFocused&&e.focusedKey==null&&R.current!=null&&l.current&&ae(l.current),R.current=e.focusedKey,U.current=!1}),h.useEffect(()=>()=>{C.current&&cancelAnimationFrame(C.current)},[]),Z(l,"react-aria-focus-scope-restore",o=>{o.preventDefault(),e.setFocused(!0)});let T={onKeyDown:v,onFocus:x,onBlur:M,onMouseDown(o){$.current===o.target&&o.preventDefault()}},{typeSelectProps:H}=tt({keyboardDelegate:t,selectionManager:e});k||(T=X(H,T));let z;g||(z=e.focusedKey==null?0:-1);let j=Ne(e.collection);return{collectionProps:X(T,{tabIndex:z,"data-collection":j})}}function ht(i){let{id:e,selectionManager:t,key:l,ref:n,shouldSelectOnPressUp:c,shouldUseVirtualFocus:r,focus:f,isDisabled:a,onAction:b,allowsDifferentPressOrigin:k,linkBehavior:g="action"}=i,p=we();e=Pe(e);let S=s=>{if(s.pointerType==="keyboard"&&fe(s))t.toggleSelection(l);else{if(t.selectionMode==="none")return;if(t.isLink(l)){if(g==="selection"&&n.current){let P=t.getItemProps(l);p.open(n.current,s,P.href,P.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(g==="override"||g==="none")return}t.selectionMode==="single"?t.isSelected(l)&&!t.disallowEmptySelection?t.toggleSelection(l):t.replaceSelection(l):s&&s.shiftKey?t.extendSelection(l):t.selectionBehavior==="toggle"||s&&(V(s)||s.pointerType==="touch"||s.pointerType==="virtual")?t.toggleSelection(l):t.replaceSelection(l)}};h.useEffect(()=>{l===t.focusedKey&&t.isFocused&&(r?De(n.current):f?f():document.activeElement!==n.current&&n.current&&ae(n.current))},[n,l,t.focusedKey,t.childFocusStrategy,t.isFocused,r]),a=a||t.isDisabled(l);let $={};!r&&!a?$={tabIndex:l===t.focusedKey?0:-1,onFocus(s){s.target===n.current&&t.setFocusedKey(l)}}:a&&($.onMouseDown=s=>{s.preventDefault()});let A=t.isLink(l)&&g==="override",y=b&&i.UNSTABLE_itemBehavior==="action",w=t.isLink(l)&&g!=="selection"&&g!=="none",v=!a&&t.canSelectItem(l)&&!A&&!y,m=(b||w)&&!a,x=m&&(t.selectionBehavior==="replace"?!v:!v||t.isEmpty),M=m&&v&&t.selectionBehavior==="replace",D=x||M,I=h.useRef(null),F=D&&v,L=h.useRef(!1),U=h.useRef(!1),R=t.getItemProps(l),C=s=>{if(b){var P;b(),(P=n.current)===null||P===void 0||P.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}w&&n.current&&p.open(n.current,s,R.href,R.routerOptions)},T={ref:n};if(c?(T.onPressStart=s=>{I.current=s.pointerType,L.current=F,s.pointerType==="keyboard"&&(!D||$e())&&S(s)},k?(T.onPressUp=x?void 0:s=>{s.pointerType==="mouse"&&v&&S(s)},T.onPress=x?C:s=>{s.pointerType!=="keyboard"&&s.pointerType!=="mouse"&&v&&S(s)}):T.onPress=s=>{if(x||M&&s.pointerType!=="mouse"){if(s.pointerType==="keyboard"&&!be())return;C(s)}else s.pointerType!=="keyboard"&&v&&S(s)}):(T.onPressStart=s=>{I.current=s.pointerType,L.current=F,U.current=x,v&&(s.pointerType==="mouse"&&!x||s.pointerType==="keyboard"&&(!m||$e()))&&S(s)},T.onPress=s=>{(s.pointerType==="touch"||s.pointerType==="pen"||s.pointerType==="virtual"||s.pointerType==="keyboard"&&D&&be()||s.pointerType==="mouse"&&U.current)&&(D?C(s):v&&S(s))}),$["data-collection"]=_e(t.collection),$["data-key"]=l,T.preventFocusOnPress=r,r&&(T=X(T,{onPressStart(s){s.pointerType!=="touch"&&(t.setFocused(!0),t.setFocusedKey(l))},onPress(s){s.pointerType==="touch"&&(t.setFocused(!0),t.setFocusedKey(l))}})),R)for(let s of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])R[s]&&(T[s]=ze(T[s],R[s]));let{pressProps:H,isPressed:z}=Fe(T),j=M?s=>{I.current==="mouse"&&(s.stopPropagation(),s.preventDefault(),C(s))}:void 0,{longPressProps:o}=Ze({isDisabled:!F,onLongPress(s){s.pointerType==="touch"&&(S(s),t.setSelectionBehavior("toggle"))}}),d=s=>{I.current==="touch"&&L.current&&s.preventDefault()},K=g!=="none"&&t.isLink(l)?s=>{We.isOpening||s.preventDefault()}:void 0;return{itemProps:X($,v||x||r&&!a?H:{},F?o:{},{onDoubleClick:j,onDragStartCapture:d,onClick:K,id:e},r?{onMouseDown:s=>s.preventDefault()}:void 0),isPressed:z,isSelected:t.isSelected(l),isFocused:t.isFocused&&t.focusedKey===l,isDisabled:a,allowsSelection:v,hasAction:D}}function be(){let i=window.event;return(i==null?void 0:i.key)==="Enter"}function $e(){let i=window.event;return(i==null?void 0:i.key)===" "||(i==null?void 0:i.code)==="Space"}class B extends Set{constructor(e,t,l){super(e),e instanceof B?(this.anchorKey=t??e.anchorKey,this.currentKey=l??e.currentKey):(this.anchorKey=t??null,this.currentKey=l??null)}}function it(i,e){if(i.size!==e.size)return!1;for(let t of i)if(!e.has(t))return!1;return!0}function pt(i){let{selectionMode:e="none",disallowEmptySelection:t=!1,allowDuplicateSelectionEvents:l,selectionBehavior:n="toggle",disabledBehavior:c="all"}=i,r=h.useRef(!1),[,f]=h.useState(!1),a=h.useRef(null),b=h.useRef(null),[,k]=h.useState(null),g=h.useMemo(()=>ge(i.selectedKeys),[i.selectedKeys]),p=h.useMemo(()=>ge(i.defaultSelectedKeys,new B),[i.defaultSelectedKeys]),[S,$]=He(g,p,i.onSelectionChange),A=h.useMemo(()=>i.disabledKeys?new Set(i.disabledKeys):new Set,[i.disabledKeys]),[y,w]=h.useState(n);n==="replace"&&y==="toggle"&&typeof S=="object"&&S.size===0&&w("replace");let v=h.useRef(n);return h.useEffect(()=>{n!==v.current&&(w(n),v.current=n)},[n]),{selectionMode:e,disallowEmptySelection:t,selectionBehavior:y,setSelectionBehavior:w,get isFocused(){return r.current},setFocused(m){r.current=m,f(m)},get focusedKey(){return a.current},get childFocusStrategy(){return b.current},setFocusedKey(m,x="first"){a.current=m,b.current=x,k(m)},selectedKeys:S,setSelectedKeys(m){(l||!it(m,S))&&$(m)},disabledKeys:A,disabledBehavior:c}}function ge(i,e){return i?i==="all"?"all":new B(i):e}class nt{build(e,t){return this.context=t,me(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:l}=e;if(Y.isValidElement(t)&&t.type===Y.Fragment)yield*this.iterateCollection({children:t.props.children,items:l});else if(typeof t=="function"){if(!l)throw new Error("props.children was a function but props.items is missing");let n=0;for(let c of l)yield*this.getFullNode({value:c,index:n},{renderer:t}),n++}else{let n=[];Y.Children.forEach(t,r=>{r&&n.push(r)});let c=0;for(let r of n){let f=this.getFullNode({element:r,index:c},{});for(let a of f)c++,yield a}}}getKey(e,t,l,n){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${n}${t.key}`;let c=t.value;if(c!=null){var r;let f=(r=c.key)!==null&&r!==void 0?r:c.id;if(f==null)throw new Error("No key found for item");return f}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,l,n){if(Y.isValidElement(e.element)&&e.element.type===Y.Fragment){let y=[];Y.Children.forEach(e.element.props.children,v=>{y.push(v)});var c;let w=(c=e.index)!==null&&c!==void 0?c:0;for(const v of y)yield*this.getFullNode({element:v,index:w++},t,l,n);return}let r=e.element;if(!r&&e.value&&t&&t.renderer){let y=this.cache.get(e.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=e.index,y.parentKey=n?n.key:null,yield y;return}r=t.renderer(e.value)}if(Y.isValidElement(r)){let y=r.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let x=r.type;throw new Error(`Unknown element <${x}> in collection.`)}let w=y.getCollectionNode(r.props,this.context);var f;let v=(f=e.index)!==null&&f!==void 0?f:0,m=w.next();for(;!m.done&&m.value;){let x=m.value;e.index=v;var a;let M=(a=x.key)!==null&&a!==void 0?a:null;M==null&&(M=x.element?null:this.getKey(r,e,t,l));let I=[...this.getFullNode({...x,key:M,index:v,wrapper:st(e.wrapper,x.wrapper)},this.getChildState(t,x),l?`${l}${r.key}`:r.key,n)];for(let F of I){var b,k;F.value=(k=(b=x.value)!==null&&b!==void 0?b:e.value)!==null&&k!==void 0?k:null,F.value&&this.cache.set(F.value,F);var g;if(e.type&&F.type!==e.type)throw new Error(`Unsupported type <${se(F.type)}> in <${se((g=n==null?void 0:n.type)!==null&&g!==void 0?g:"unknown parent type")}>. Only <${se(e.type)}> is supported.`);v++,yield F}m=w.next(I)}return}if(e.key==null||e.type==null)return;let p=this;var S,$;let A={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(S=e.value)!==null&&S!==void 0?S:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:($=e.textValue)!==null&&$!==void 0?$:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:me(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let w of e.childNodes()){w.key!=null&&(w.key=`${A.key}${w.key}`);let v=p.getFullNode({...w,index:y},p.getChildState(t,w),A.key,A);for(let m of v)y++,yield m}})};yield A}constructor(){this.cache=new WeakMap}}function me(i){let e=[],t=null;return{*[Symbol.iterator](){for(let l of e)yield l;t||(t=i());for(let l of t)e.push(l),yield l}}}function st(i,e){if(i&&e)return t=>i(e(t));if(i)return i;if(e)return e}function se(i){return i[0].toUpperCase()+i.slice(1)}function yt(i,e,t){let l=h.useMemo(()=>new nt,[]),{children:n,items:c,collection:r}=i;return h.useMemo(()=>{if(r)return r;let a=l.build({children:n,items:c},t);return e(a)},[l,n,c,r,t,e])}function rt(i,e){return typeof e.getChildren=="function"?e.getChildren(i.key):i.childNodes}function ot(i){return ct(i,0)}function ct(i,e){if(e<0)return;let t=0;for(let l of i){if(t===e)return l;t++}}function vt(i){let e;for(let t of i)e=t;return e}function re(i,e,t){if(e.parentKey===t.parentKey)return e.index-t.index;let l=[...Ke(i,e),e],n=[...Ke(i,t),t],c=l.slice(0,n.length).findIndex((r,f)=>r!==n[f]);return c!==-1?(e=l[c],t=n[c],e.index-t.index):l.findIndex(r=>r===t)>=0?1:(n.findIndex(r=>r===e)>=0,-1)}function Ke(i,e){let t=[],l=e;for(;(l==null?void 0:l.parentKey)!=null;)l=i.getItem(l.parentKey),l&&t.unshift(l);return t}class Ee{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(l=>t.has(l)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let l of this.state.selectedKeys){let n=this.collection.getItem(l);(!e||n&&re(this.collection,n,e)<0)&&(e=n)}var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}get lastSelectedKey(){let e=null;for(let l of this.state.selectedKeys){let n=this.collection.getItem(l);(!e||n&&re(this.collection,n,e)>0)&&(e=n)}var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let l;if(this.state.selectedKeys==="all")l=new B([t],t,t);else{let r=this.state.selectedKeys;var n;let f=(n=r.anchorKey)!==null&&n!==void 0?n:t;l=new B(r,f,t);var c;for(let a of this.getKeyRange(f,(c=r.currentKey)!==null&&c!==void 0?c:t))l.delete(a);for(let a of this.getKeyRange(t,f))this.canSelectItem(a)&&l.add(a)}this.state.setSelectedKeys(l)}getKeyRange(e,t){let l=this.collection.getItem(e),n=this.collection.getItem(t);return l&&n?re(this.collection,l,n)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var l;if(!((l=this.layoutDelegate)===null||l===void 0)&&l.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let n=[],c=e;for(;c!=null;){let r=this.collection.getItem(c);if(r&&(r.type==="item"||r.type==="cell"&&this.allowsCellSelection)&&n.push(c),c===t)return n;c=this.collection.getKeyAfter(c)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type==="cell"&&this.allowsCellSelection)return e;for(;t&&t.type!=="item"&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!=="item"?null:t.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let l=new B(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);l.has(t)?l.delete(t):this.canSelectItem(t)&&(l.add(t),l.anchorKey=t,l.currentKey=t),!(this.disallowEmptySelection&&l.size===0)&&this.state.setSelectedKeys(l)}replaceSelection(e){if(this.selectionMode==="none")return;let t=this.getKey(e);if(t==null)return;let l=this.canSelectItem(t)?new B([t],t,t):new B;this.state.setSelectedKeys(l)}setSelectedKeys(e){if(this.selectionMode==="none")return;let t=new B;for(let l of e){let n=this.getKey(l);if(n!=null&&(t.add(n),this.selectionMode==="single"))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=l=>{for(;l!=null;){if(this.canSelectItem(l)){var n;let r=this.collection.getItem(l);(r==null?void 0:r.type)==="item"&&e.push(l);var c;r!=null&&r.hasChildNodes&&(this.allowsCellSelection||r.type!=="item")&&t((c=(n=ot(rt(r,this.collection)))===null||n===void 0?void 0:n.key)!==null&&c!==void 0?c:null)}l=this.collection.getKeyAfter(l)}};return t(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new B)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||t&&(t.pointerType==="touch"||t.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let l of e)if(!t.has(l))return!1;for(let l of t)if(!e.has(l))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let l=this.collection.getItem(e);return!(!l||!(l==null||(t=l.props)===null||t===void 0)&&t.isDisabled||l.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var t,l;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((l=this.collection.getItem(e))===null||l===void 0||(t=l.props)===null||t===void 0)&&t.isDisabled))}isLink(e){var t,l;return!!(!((l=this.collection.getItem(e))===null||l===void 0||(t=l.props)===null||t===void 0)&&t.href)}getItemProps(e){var t;return(t=this.collection.getItem(e))===null||t===void 0?void 0:t.props}withCollection(e){return new Ee(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,l){this.collection=e,this.state=t;var n;this.allowsCellSelection=(n=l==null?void 0:l.allowsCellSelection)!==null&&n!==void 0?n:!1,this._isSelectAll=null,this.layoutDelegate=(l==null?void 0:l.layoutDelegate)||null}}export{rt as $,vt as a,ot as b,ct as c,qe as d,dt as e,ht as f,ve as g,pt as h,Ee as i,yt as j,Ze as k,ne as l};
diff --git a/release-tools/webui-static/assets/about-hJDPu37V.js b/release-tools/webui-static/assets/about-hJDPu37V.js
new file mode 100644
index 0000000..766bd02
--- /dev/null
+++ b/release-tools/webui-static/assets/about-hJDPu37V.js
@@ -0,0 +1 @@
+import{j as e}from"./react-vendor-jWT2yUdV.js";import{a as l,c as r}from"./chunk-5PILOUBS-KHYNqMZE.js";import{c}from"./chunk-D5XJWRAV-DVN21qSw.js";import{c as o}from"./chunk-NAV3ZXLI-ChbUTMf0.js";import{d as x}from"./chunk-IHO36JMK-DJPUeGG0.js";import{i as p}from"./chunk-MLPFQTYO-DSnBqIsb.js";import{l as h}from"./chunk-OPTZHMJX-CY9g90YL.js";import{s as f,W as j}from"./index-DiaaLdUu.js";import{t as u,a as m}from"./chunk-ML27DD5T-ZFWrMOn-.js";import{u as g}from"./useRequest-B1BwPztr.js";import{a as N,b,c as w,d as y,e as v,f as S}from"./index-DPx4wqle.js";import{i as C,j as T,k as P}from"./index-FvTxWQTZ.js";import{a as L,b as k}from"./index-BBhZPeTB.js";import{l as Q}from"./logo-kBMoCJob.js";import"./qface-BZLvZXJ8.js";import"./chunk-M3MASYO7-B4fjH-eW.js";import"./chunk-RJKRL3AU-CjtrMR1U.js";import"./chunk-AXSF7SRE-Cr4elNVq.js";import"./index-BsnVex0g.js";import"./react-hot-toast-cGcFZPSt.js";import"./react-router-dom-C6k78GT4.js";import"./index-BV9-YCKp.js";import"./chunk-UX7UMZL5-CMHjUaC_.js";import"./SelectionManager-Dl9uHsLK.js";import"./usePress-BrNwsdVw.js";import"./layout-Buao20KT.js";import"./gestures-BHfQC-M8.js";import"./features-animation-BkV7kg8P.js";import"./Item-D8Sud-UP.js";import"./iconBase-B7bT1FlI.js";function _(){const{data:a,loading:n,error:i}=g(j.GetSnowCatVersion);return e.jsx("div",{className:"flex items-center gap-2",children:i?e.jsx(o,{color:"danger",variant:"flat",size:"sm",children:i.message}):n?e.jsx(f,{size:"sm",color:"default"}):e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(o,{size:"sm",color:"default",variant:"flat",className:"text-default-500",children:"WebUI Next"}),e.jsxs(o,{size:"sm",color:"primary",variant:"flat",children:["Core ",a==null?void 0:a.version]})]})})}function ne(){const a=[{icon:e.jsx(L,{size:20}),title:"接入方式全",desc:"WS 正反连、HTTP 上报、HTTP SSE、MCP 四种接入方式,按需取用。",className:"bg-primary-50 text-primary"},{icon:e.jsx(k,{size:20}),title:"社区自持主干",desc:"上游 Ending 后由社区接力维护,Fork 是遗愿,我们续写。",className:"bg-success-50 text-success"},{icon:e.jsx(N,{size:20}),title:"OneBot 11 全量",desc:"181 上游动作 + SnowLuma 采石场 29+ 动作,持续扩充。",className:"bg-warning-50 text-warning"},{icon:e.jsx(T,{size:20}),title:"稳定线内建",desc:"掉线指数退避重连、真人节奏抖动、小时预算、连发熔断。",className:"bg-secondary-50 text-secondary"},{icon:e.jsx(b,{size:20}),title:"全平台零硬改",desc:"自动发现已装 QQ、自动读实况版本、一键注入;亦有便携制作器。",className:"bg-default-50 text-default-600"},{icon:e.jsx(w,{size:20}),title:"本地运行时",desc:"一切动作都在本地执行,代码全开源白盒可查,无任何外发。",className:"bg-danger-50 text-danger"}],n=[{icon:e.jsx(y,{}),name:"GitHub · DandanLLab/SnowCatQQ",href:"https://github.com/DandanLLab/SnowCatQQ"},{icon:e.jsx(P,{}),name:"文档 · README 与接入指南",href:"https://github.com/DandanLLab/SnowCatQQ#readme"},{icon:e.jsx(v,{}),name:"API 文档 · OneBot v11 动作全表",href:"https://github.com/DandanLLab/SnowCatQQ/tree/main/docs/api"},{icon:e.jsx(S,{}),name:"MCP 接入 · Network 配置 mcpServers",href:"https://github.com/DandanLLab/SnowCatQQ#mcp"}],i=[{name:"NapCat(NapNeko/NapCatQQ)",role:"底座 · 上游已官宣 Ending,Fork 接力"},{name:"SnowLuma(继任 TomyJan/SnowLuma)",role:"能力采石场 · qzone 全家桶/群相册/闪照等"}],t="bg-white/55 dark:bg-white/[0.04] backdrop-blur-xl border border-white/60 dark:border-white/10 shadow-sm rounded-2xl";return e.jsxs("div",{className:"sc-page flex flex-col gap-5",children:[e.jsx("title",{children:"关于 - SnowCat WebUI · 雪猫控制台"}),e.jsxs("div",{className:"rounded-2xl px-5 py-6 bg-gradient-to-r from-primary-100/70 via-primary-50/40 to-transparent dark:from-primary-900/30 dark:via-primary-900/10 dark:to-transparent border border-primary-100/60 dark:border-primary-900/30 relative overflow-hidden",children:[e.jsx("div",{className:"absolute -right-10 -top-10 w-40 h-40 rounded-full bg-primary-300/30 blur-3xl pointer-events-none"}),e.jsxs("div",{className:"flex items-center gap-4 flex-wrap relative",children:[e.jsx(p,{src:Q,alt:"SnowCat Logo(雪猫)",width:44,height:44,className:"rounded-xl"}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-default-900 dark:text-white tracking-tight",children:"SnowCat · 雪猫"}),e.jsx("p",{className:"text-small text-default-500 mt-0.5",children:"社区自持的 QQ 融合客户端 · 本地运行时 · 白盒可查"})]}),e.jsx("div",{className:"ml-auto flex items-center gap-3",children:e.jsx(_,{})})]})]}),e.jsx(x,{className:"opacity-50"}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5 flex-grow",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-5",children:[e.jsxs(l,{shadow:"sm",className:t,children:[e.jsx(c,{className:"pb-0 pt-4 px-4 flex-col items-start",children:e.jsx("h2",{className:"text-lg font-bold",children:"为什么有雪猫"})}),e.jsxs(r,{className:"py-4 text-default-600 leading-relaxed space-y-2",children:[e.jsx("p",{children:"2026-11 上游 NapCat 官宣 Ending,SnowLuma 原库消失。Fork 是遗愿, 接力棒掉在地上我们捡——雪猫由此而生。"}),e.jsx("p",{children:"我们不与官方对着干:官方走工作流,雪猫走个人开发者的娱乐与陪伴路线, 两赛道互不干涉,社区共享。运行时全部在本地,所有动作本地执行、代码白盒可查。"})]})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:a.map((s,d)=>e.jsx(l,{shadow:"sm",className:t,children:e.jsxs(r,{className:"flex flex-row items-start gap-4 p-4",children:[e.jsx("div",{className:`p-3 rounded-lg ${s.className}`,children:s.icon}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-default-900",children:s.title}),e.jsx("p",{className:"text-small text-default-500 mt-1",children:s.desc})]})]})},d))}),e.jsxs(l,{shadow:"sm",className:t,children:[e.jsx(c,{className:"pb-0 pt-4 px-4",children:e.jsx("h2",{className:"text-lg font-bold",children:"接入方式"})}),e.jsx(r,{className:"py-4",children:e.jsxs(u,{"aria-label":"接入方式",size:"sm",classNames:{tabList:"bg-default-100/50"},children:[e.jsx(m,{title:"WebSocket",children:e.jsxs("div",{className:"text-small text-default-600 space-y-2 pt-2",children:[e.jsx("p",{children:"正向 WS:雪猫开服务端口,客户端连进来(网络配置 → WS服务器)。"}),e.jsx("p",{children:"反向 WS:雪猫作为客户端主动连你的服务(网络配置 → WS客户端,dsh 生态即此模式)。"}),e.jsx("p",{className:"text-tiny text-default-400",children:"协议:OneBot v11,事件上报 + 动作调用双通道。"})]})},"ws"),e.jsx(m,{title:"HTTP",children:e.jsxs("div",{className:"text-small text-default-600 space-y-2 pt-2",children:[e.jsx("p",{children:"HTTP 服务器:本地开端口收动作调用(网络配置 → HTTP服务器)。"}),e.jsx("p",{children:"HTTP 客户端:事件主动 POST 上报到你的回调地址。"}),e.jsx("p",{children:"HTTP SSE:服务器推送事件流,适合浏览器内直连。"})]})},"http"),e.jsx(m,{title:"MCP",children:e.jsxs("div",{className:"text-small text-default-600 space-y-2 pt-2",children:[e.jsx("p",{children:"Model Context Protocol:把雪猫的全部动作以 MCP 工具形式暴露。"}),e.jsx("p",{children:"在网络配置 → MCP 服务器中添加条目,AI 宿主(Claude / dsh 等)即可直连调用。"}),e.jsx("p",{className:"text-tiny text-default-400",children:"传输:Streamable HTTP,兼容 MCP 2025-03-26 规范。"})]})},"mcp")]})})]})]}),e.jsxs("div",{className:"space-y-5",children:[e.jsxs(l,{shadow:"sm",className:t,children:[e.jsx(c,{className:"pb-0 pt-4 px-4",children:e.jsx("h2",{className:"text-lg font-bold",children:"开源与文档"})}),e.jsx(r,{className:"py-4 space-y-2",children:e.jsx("div",{className:"flex flex-col gap-1",children:n.map((s,d)=>e.jsxs(h,{isExternal:!0,href:s.href,className:"flex items-center justify-between p-2.5 rounded-xl hover:bg-default-100/50 transition-colors text-default-600 text-small",children:[e.jsxs("span",{className:"flex items-center gap-3 min-w-0",children:[s.icon,e.jsx("span",{className:"truncate",children:s.name})]}),e.jsx("span",{className:"text-tiny text-default-400 flex-shrink-0",children:"→"})]},d))})})]}),e.jsxs(l,{shadow:"sm",className:t,children:[e.jsx(c,{className:"pb-0 pt-4 px-4",children:e.jsxs("h2",{className:"text-lg font-bold flex items-center gap-2",children:[e.jsx(C,{className:"text-danger"})," 上游致谢"]})}),e.jsxs(r,{className:"py-4 space-y-3",children:[i.map(s=>e.jsxs("div",{children:[e.jsx("p",{className:"text-small font-medium text-default-700",children:s.name}),e.jsx("p",{className:"text-tiny text-default-400 mt-0.5",children:s.role})]},s.name)),e.jsx(x,{className:"opacity-40"}),e.jsxs("p",{className:"text-tiny text-default-400",children:["MIT License © ",new Date().getFullYear()," SnowCat Team · Made with ❤️ by the community"]})]})]})]})]})]})}export{ne as default};
diff --git a/release-tools/webui-static/assets/chunk-2QAN2V2R-B2qCPZrG.js b/release-tools/webui-static/assets/chunk-2QAN2V2R-B2qCPZrG.js
new file mode 100644
index 0000000..eccd1b4
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-2QAN2V2R-B2qCPZrG.js
@@ -0,0 +1 @@
+import{t as na,f as sa,_ as oa,a3 as U,ao as Ie,as as we,a8 as Se,a_ as da,ah as ua,a7 as ca,an as pa,v as fa,x as ba,y as Z,b4 as va,aR as ma,X as I,aJ as ha,z as Me,av as Ce,l as ga,B as xa,D as f,n as ee,al as ya,Y as $a,E as Wa}from"./index-DiaaLdUu.js";import{r as o,j as $}from"./react-vendor-jWT2yUdV.js";import{$ as Pa,u as wa,b as Ma}from"./chunk-SLABUSGS-Cmz8sGrU.js";import{$ as Ca}from"./useFocusable-DA5Croun.js";import{C as _a}from"./chunk-M3MASYO7-B4fjH-eW.js";var _e=na({slots:{base:"group flex flex-col data-[hidden=true]:hidden",label:["absolute","z-10","pointer-events-none","origin-top-left","flex-shrink-0","rtl:origin-top-right","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5","file:cursor-pointer file:bg-transparent file:border-0","autofill:bg-transparent bg-clip-text"],clearButton:["p-2","-m-2","z-10","absolute","end-3","start-auto","pointer-events-none","appearance-none","outline-none","select-none","opacity-0","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...sa],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 focus-within:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-8 min-h-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-10 min-h-10 rounded-medium",input:"text-small",clearButton:"text-large"},lg:{label:"text-medium",inputWrapper:"h-12 min-h-12 rounded-large",input:"text-medium",clearButton:"text-large"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pe-2 ps-2 pointer-events-auto"},inside:{label:"cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"},false:{}},isClearable:{true:{input:"peer pe-6 input-search-cancel-button-none",clearButton:["peer-data-[filled=true]:pointer-events-auto","peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block","peer-data-[filled=true]:scale-100"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide",clearButton:"absolute top-2 right-2 rtl:right-auto rtl:left-2 z-10"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity]"],clearButton:["scale-90","ease-out","duration-150","transition-[opacity,transform]","motion-reduce:transition-none","motion-reduce:scale-100"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,labelPlacement:"inside",isDisabled:!1,isMultiline:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-100","data-[hover=true]:bg-primary-50","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-100","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-100","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-100","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...oa]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["!bg-danger-50","data-[hover=true]:!bg-danger-100","group-data-[focus=true]:!bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:!border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:!bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:"outside",isMultiline:!1,class:{base:"relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:start-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["start-3","end-auto","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["start-3","end-auto","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}},{isClearable:!0,isMultiline:!0,class:{clearButton:["group-data-[has-value=true]:opacity-70 group-data-[has-value=true]:block","group-data-[has-value=true]:scale-100","group-data-[has-value=true]:pointer-events-auto"]}}]}),Ja=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3),Ea=(...e)=>{let a=" ";for(const t of e)if(typeof t=="string"&&t.length>0){a=t;break}return a};function Va(e,a,t){let l=U(()=>{t&&t(a)});o.useEffect(()=>{var i;let s=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return s==null||s.addEventListener("reset",l),()=>{s==null||s.removeEventListener("reset",l)}},[e,l])}class Ia{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(a,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=a}}function Sa(e){let a=o.useRef({isFocused:!1,observer:null});Ie(()=>{const l=a.current;return()=>{l.observer&&(l.observer.disconnect(),l.observer=null)}},[]);let t=U(l=>{e==null||e(l)});return o.useCallback(l=>{if(l.target instanceof HTMLButtonElement||l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement||l.target instanceof HTMLSelectElement){a.current.isFocused=!0;let i=l.target,s=p=>{a.current.isFocused=!1,i.disabled&&t(new Ia("blur",p)),a.current.observer&&(a.current.observer.disconnect(),a.current.observer=null)};i.addEventListener("focusout",s,{once:!0}),a.current.observer=new MutationObserver(()=>{if(a.current.isFocused&&i.disabled){var p;(p=a.current.observer)===null||p===void 0||p.disconnect();let u=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),a.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[t])}function za(e){let{isDisabled:a,onBlurWithin:t,onFocusWithin:l,onFocusWithinChange:i}=e,s=o.useRef({isFocusWithin:!1}),p=o.useCallback(c=>{s.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(s.current.isFocusWithin=!1,t&&t(c),i&&i(!1))},[t,i,s]),u=Sa(p),v=o.useCallback(c=>{!s.current.isFocusWithin&&document.activeElement===c.target&&(l&&l(c),i&&i(!0),s.current.isFocusWithin=!0,u(c))},[l,i,u]);return a?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:v,onBlur:p}}}function Ba(e){let{description:a,errorMessage:t,isInvalid:l,validationState:i}=e,{labelProps:s,fieldProps:p}=Pa(e),u=we([!!a,!!t,l,i]),v=we([!!a,!!t,l,i]);return p=Se(p,{"aria-describedby":[u,v,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:p,descriptionProps:{id:u},errorMessageProps:{id:v}}}function Da(e,a,t){let{validationBehavior:l,focus:i}=e;Ie(()=>{if(l==="native"&&(t!=null&&t.current)&&!t.current.disabled){let c=a.realtimeValidation.isInvalid?a.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";t.current.setCustomValidity(c),t.current.hasAttribute("title")||(t.current.title=""),a.realtimeValidation.isInvalid||a.updateValidation(ka(t.current))}});let s=o.useRef(!1),p=U(()=>{s.current||a.resetValidation()}),u=U(c=>{var d;a.displayValidation.isInvalid||a.commitValidation();let m=t==null||(d=t.current)===null||d===void 0?void 0:d.form;if(!c.defaultPrevented&&t&&m&&La(m)===t.current){var h;i?i():(h=t.current)===null||h===void 0||h.focus(),da("keyboard")}c.preventDefault()}),v=U(()=>{a.commitValidation()});o.useEffect(()=>{let c=t==null?void 0:t.current;if(!c)return;let d=c.form,m=d==null?void 0:d.reset;return d&&(d.reset=()=>{s.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,m==null||m.call(d),s.current=!1}),c.addEventListener("invalid",u),c.addEventListener("change",v),d==null||d.addEventListener("reset",p),()=>{c.removeEventListener("invalid",u),c.removeEventListener("change",v),d==null||d.removeEventListener("reset",p),d&&(d.reset=m)}},[t,u,v,p,l])}function Fa(e){let a=e.validity;return{badInput:a.badInput,customError:a.customError,patternMismatch:a.patternMismatch,rangeOverflow:a.rangeOverflow,rangeUnderflow:a.rangeUnderflow,stepMismatch:a.stepMismatch,tooLong:a.tooLong,tooShort:a.tooShort,typeMismatch:a.typeMismatch,valueMissing:a.valueMissing,valid:a.valid}}function ka(e){return{isInvalid:!e.validity.valid,validationDetails:Fa(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function La(e){for(let a=0;a{if(!p||i==null)return null;let b=ja(p,i);return Ve(b)},[p,i]);s!=null&&s.validationDetails.valid&&(s=void 0);let d=o.useContext(Ra),m=o.useMemo(()=>l?Array.isArray(l)?l.flatMap(b=>oe(d[b])):oe(d[l]):[],[d,l]),[h,E]=o.useState(d),[S,P]=o.useState(!1);d!==h&&(E(d),P(!1));let C=o.useMemo(()=>Ve(S?[]:m),[S,m]),r=o.useRef(q),[w,M]=o.useState(q),W=o.useRef(q),x=()=>{if(!z)return;B(!1);let b=c||s||r.current;se(b,W.current)||(W.current=b,M(b))},[z,B]=o.useState(!1);return o.useEffect(x),{realtimeValidation:v||C||c||s||q,displayValidation:u==="native"?v||C||w:v||C||c||s||w,updateValidation(b){u==="aria"&&!se(w,b)?M(b):r.current=b},resetValidation(){let b=q;se(b,W.current)||(W.current=b,M(b)),u==="native"&&B(!1),P(!0)},commitValidation(){u==="native"&&B(!0),P(!0)}}}function oe(e){return e?Array.isArray(e)?e:[e]:[]}function ja(e,a){if(typeof e=="function"){let t=e(a);if(t&&typeof t!="boolean")return oe(t)}return[]}function Ve(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Be}:null}function se(e,a){return e===a?!0:!!e&&!!a&&e.isInvalid===a.isInvalid&&e.validationErrors.length===a.validationErrors.length&&e.validationErrors.every((t,l)=>t===a.validationErrors[l])&&Object.entries(e.validationDetails).every(([t,l])=>a.validationDetails[t]===l)}function Aa(e,a){let{inputElementType:t="input",isDisabled:l=!1,isRequired:i=!1,isReadOnly:s=!1,type:p="text",validationBehavior:u="aria"}=e,[v,c]=ua(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=Ca(e,a),m=Ta({...e,value:v}),{isInvalid:h,validationErrors:E,validationDetails:S}=m.displayValidation,{labelProps:P,fieldProps:C,descriptionProps:r,errorMessageProps:w}=Ba({...e,isInvalid:h,errorMessage:e.errorMessage||E}),M=ca(e,{labelable:!0});const W={type:p,pattern:e.pattern};return Va(a,v,c),Da(e,m,a),o.useEffect(()=>{if(a.current instanceof pa(a.current).HTMLTextAreaElement){let x=a.current;Object.defineProperty(x,"defaultValue",{get:()=>x.value,set:()=>{},configurable:!0})}},[a]),{labelProps:P,inputProps:Se(M,t==="input"?W:void 0,{disabled:l,readOnly:s,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":h||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:v,onChange:x=>c(x.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...C}),descriptionProps:r,errorMessageProps:w,isInvalid:h,validationErrors:E,validationDetails:S}}function Na(e){var a,t,l,i;const s=fa(),{validationBehavior:p}=wa(Ma)||{},[u,v]=ba(e,_e.variantKeys),{ref:c,as:d,type:m,label:h,baseRef:E,wrapperRef:S,description:P,className:C,classNames:r,autoFocus:w,startContent:M,endContent:W,onClear:x,onChange:z,validationState:B,validationBehavior:F=(a=p??(s==null?void 0:s.validationBehavior))!=null?a:"native",innerWrapperRef:A,onValueChange:b=()=>{},...L}=u,ae=o.useCallback(n=>{b(n??"")},[b]),[R,de]=o.useState(!1),Fe=d||"div",ue=(l=(t=e.disableAnimation)!=null?t:s==null?void 0:s.disableAnimation)!=null?l:!1,y=Z(c),ke=Z(E),Le=Z(S),Re=Z(A),[T,Q]=va(u.value,(i=u.defaultValue)!=null?i:"",ae),Te=["date","time","month","week","range"].includes(m),D=!ma(T)||Te,Y=D||R,ce=m==="hidden",pe=e.isMultiline,te=m==="file",fe=I(r==null?void 0:r.base,C,D?"is-filled":""),Oe=o.useCallback(()=>{var n;Q(""),x==null||x(),(n=y.current)==null||n.focus()},[Q,x]);ha(()=>{y.current&&Q(y.current.value)},[y.current]);const{labelProps:be,inputProps:O,isInvalid:je,validationErrors:re,validationDetails:Ae,descriptionProps:Ne,errorMessageProps:ve}=Aa({...e,validationBehavior:F,autoCapitalize:e.autoCapitalize,value:T,"aria-label":Ea(e["aria-label"],e.label,e.placeholder),inputElementType:pe?"textarea":"input",onChange:Q},y);te&&(delete O.value,delete O.onChange);const{isFocusVisible:J,isFocused:K,focusProps:me}=Me({autoFocus:w,isTextInput:!0}),{isHovered:X,hoverProps:He}=Ce({isDisabled:!!(e!=null&&e.isDisabled)}),{isHovered:N,hoverProps:qe}=Ce({isDisabled:!!(e!=null&&e.isDisabled)}),{focusProps:he,isFocusVisible:ge}=Me(),{focusWithinProps:xe}=za({onFocusWithinChange:de}),{pressProps:ye}=ga({isDisabled:!!(e!=null&&e.isDisabled)||!!(e!=null&&e.isReadOnly),onPress:Oe}),j=B==="invalid"||je,_=o.useMemo(()=>{var n;return(!e.labelPlacement||e.labelPlacement==="inside")&&!h?"outside":(n=e.labelPlacement)!=null?n:"inside"},[e.labelPlacement,h]),le=typeof u.errorMessage=="function"?u.errorMessage({isInvalid:j,validationErrors:re,validationDetails:Ae}):u.errorMessage||(re==null?void 0:re.join(" ")),ie=!!x||e.isClearable,$e=!!h||!!P||!!le,k=!!u.placeholder,We=!!h,ne=!!P||!!le,Pe=_==="outside"||_==="outside-left",Ue=_==="inside",G=y.current?(!y.current.value||y.current.value===""||!T||T==="")&&k:!1,Qe=_==="outside-left",V=!!M,Ye=Pe?_==="outside-left"||k||_==="outside"&&V:!1,Je=_==="outside"&&!k&&!V,g=o.useMemo(()=>_e({...v,isInvalid:j,labelPlacement:_,isClearable:ie,disableAnimation:ue}),[xa(v),j,_,ie,V,ue]),Ke=o.useCallback((n={})=>({ref:ke,className:g.base({class:fe}),"data-slot":"base","data-filled":f(D||k||V||G||te),"data-filled-within":f(Y||k||V||G||te),"data-focus-within":f(R),"data-focus-visible":f(J),"data-readonly":f(e.isReadOnly),"data-focus":f(K),"data-hover":f(X||N),"data-required":f(e.isRequired),"data-invalid":f(j),"data-disabled":f(e.isDisabled),"data-has-elements":f($e),"data-has-helper":f(ne),"data-has-label":f(We),"data-has-value":f(!G),"data-hidden":f(ce),...xe,...n}),[g,fe,D,K,X,N,j,ne,We,$e,G,V,R,J,Y,k,xe,ce,e.isReadOnly,e.isRequired,e.isDisabled]),Xe=o.useCallback((n={})=>({"data-slot":"label",className:g.label({class:r==null?void 0:r.label}),...ee(be,qe,n)}),[g,N,be,r==null?void 0:r.label]),Ge=o.useCallback((n={})=>({"data-slot":"input","data-filled":f(D),"data-filled-within":f(Y),"data-has-start-content":f(V),"data-has-end-content":f(!!W),className:g.input({class:I(r==null?void 0:r.input,D?"is-filled":"",pe?"pe-0":"")}),...ee(me,O,$a(L,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(O))}),n),"aria-readonly":f(e.isReadOnly),onChange:ya(O.onChange,z),ref:y}),[g,T,me,O,L,D,Y,V,W,r==null?void 0:r.input,e.isReadOnly,e.isRequired,z]),Ze=o.useCallback((n={})=>({ref:Le,"data-slot":"input-wrapper","data-hover":f(X||N),"data-focus-visible":f(J),"data-focus":f(K),className:g.inputWrapper({class:I(r==null?void 0:r.inputWrapper,D?"is-filled":"")}),...ee(n,He),onClick:H=>{y.current&&H.currentTarget===H.target&&y.current.focus()},style:{cursor:"text",...n.style}}),[g,X,N,J,K,T,r==null?void 0:r.inputWrapper]),ea=o.useCallback((n={})=>({...n,ref:Re,"data-slot":"inner-wrapper",onClick:H=>{y.current&&H.currentTarget===H.target&&y.current.focus()},className:g.innerWrapper({class:I(r==null?void 0:r.innerWrapper,n==null?void 0:n.className)})}),[g,r==null?void 0:r.innerWrapper]),aa=o.useCallback((n={})=>({...n,"data-slot":"main-wrapper",className:g.mainWrapper({class:I(r==null?void 0:r.mainWrapper,n==null?void 0:n.className)})}),[g,r==null?void 0:r.mainWrapper]),ta=o.useCallback((n={})=>({...n,"data-slot":"helper-wrapper",className:g.helperWrapper({class:I(r==null?void 0:r.helperWrapper,n==null?void 0:n.className)})}),[g,r==null?void 0:r.helperWrapper]),ra=o.useCallback((n={})=>({...n,...Ne,"data-slot":"description",className:g.description({class:I(r==null?void 0:r.description,n==null?void 0:n.className)})}),[g,r==null?void 0:r.description]),la=o.useCallback((n={})=>({...n,...ve,"data-slot":"error-message",className:g.errorMessage({class:I(r==null?void 0:r.errorMessage,n==null?void 0:n.className)})}),[g,ve,r==null?void 0:r.errorMessage]),ia=o.useCallback((n={})=>({...n,type:"button",tabIndex:-1,disabled:e.isDisabled,"aria-label":"clear input","data-slot":"clear-button","data-focus-visible":f(ge),className:g.clearButton({class:I(r==null?void 0:r.clearButton,n==null?void 0:n.className)}),...ee(ye,he)}),[g,ge,ye,he,r==null?void 0:r.clearButton]);return{Component:Fe,classNames:r,domRef:y,label:h,description:P,startContent:M,endContent:W,labelPlacement:_,isClearable:ie,hasHelper:ne,hasStartContent:V,isLabelOutside:Ye,isOutsideLeft:Qe,isLabelOutsideAsPlaceholder:Je,shouldLabelBeOutside:Pe,shouldLabelBeInside:Ue,hasPlaceholder:k,isInvalid:j,errorMessage:le,getBaseProps:Ke,getLabelProps:Xe,getInputProps:Ge,getMainWrapperProps:aa,getInputWrapperProps:Ze,getInnerWrapperProps:ea,getHelperWrapperProps:ta,getDescriptionProps:ra,getErrorMessageProps:la,getClearButtonProps:ia}}var De=Wa((e,a)=>{const{Component:t,label:l,description:i,isClearable:s,startContent:p,endContent:u,labelPlacement:v,hasHelper:c,isOutsideLeft:d,shouldLabelBeOutside:m,errorMessage:h,isInvalid:E,getBaseProps:S,getLabelProps:P,getInputProps:C,getInnerWrapperProps:r,getInputWrapperProps:w,getMainWrapperProps:M,getHelperWrapperProps:W,getDescriptionProps:x,getErrorMessageProps:z,getClearButtonProps:B}=Na({...e,ref:a}),F=l?$.jsx("label",{...P(),children:l}):null,A=o.useMemo(()=>s?$.jsx("button",{...B(),children:u||$.jsx(_a,{})}):u,[s,B]),b=o.useMemo(()=>{const R=E&&h;return!c||!(R||i)?null:$.jsx("div",{...W(),children:R?$.jsx("div",{...z(),children:h}):$.jsx("div",{...x(),children:i})})},[c,E,h,i,W,z,x]),L=o.useMemo(()=>$.jsxs("div",{...r(),children:[p,$.jsx("input",{...C()}),A]}),[p,A,C,r]),ae=o.useMemo(()=>m?$.jsxs("div",{...M(),children:[$.jsxs("div",{...w(),children:[d?null:F,L]}),b]}):$.jsxs($.Fragment,{children:[$.jsxs("div",{...w(),children:[F,L]}),b]}),[v,b,m,F,L,h,i,M,w,z,x]);return $.jsxs(t,{...S(),children:[d?F:null,ae]})});De.displayName="HeroUI.Input";var Ka=De;export{Ta as $,Da as a,Ee as b,q as c,Ra as d,Va as e,Ka as i,Ja as s,Na as u};
diff --git a/release-tools/webui-static/assets/chunk-2QQAR2RD-YG5LNmAk.js b/release-tools/webui-static/assets/chunk-2QQAR2RD-YG5LNmAk.js
new file mode 100644
index 0000000..de370f4
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-2QQAR2RD-YG5LNmAk.js
@@ -0,0 +1,2 @@
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Crbd1Tvi.js","assets/features-animation-BkV7kg8P.js","assets/gestures-BHfQC-M8.js","assets/react-vendor-jWT2yUdV.js","assets/qface-BZLvZXJ8.js","assets/index-DiaaLdUu.js","assets/react-hot-toast-cGcFZPSt.js","assets/react-router-dom-C6k78GT4.js","assets/index-CBRelCj8.css"])))=>i.map(i=>d[i]);
+import{ar as B,aA as S,aB as h,aC as j,aD as U,aE as C,aF as b,n as _,aG as w,b as F,E as L,A as V,aH as z}from"./index-DiaaLdUu.js";import{r as n,j as e}from"./react-vendor-jWT2yUdV.js";import{g as G}from"./chunk-WQVQ7P2I-BJd1EiqP.js";import{p as q}from"./chunk-FGM523TA-CgSvUh2a.js";import{j as J}from"./chunk-KVDW62ZT-CGYYmJoP.js";var[K,A]=B({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),y=()=>U(()=>import("./index-Crbd1Tvi.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(s=>s.default),$=s=>{const{as:i,children:a,className:p,...o}=s,{Component:l,placement:r,backdrop:t,motionProps:m,disableAnimation:c,getPopoverProps:f,getDialogProps:d,getBackdropProps:v,getContentProps:u,isNonModal:N,onClose:x}=A(),g=n.useRef(null),{dialogProps:T,titleProps:D}=S({},g),E=d({ref:g,...T,...o}),M=i||l||"div",P=e.jsxs(e.Fragment,{children:[!N&&e.jsx(h,{onDismiss:x}),e.jsx(M,{...E,children:e.jsx("div",{...u({className:p}),children:typeof a=="function"?a(D):a})}),e.jsx(h,{onDismiss:x})]}),O=n.useMemo(()=>t==="transparent"?null:c?e.jsx("div",{...v()}):e.jsx(j,{features:y,children:e.jsx(C.div,{animate:"enter",exit:"exit",initial:"exit",variants:b.fade,...v()})}),[t,c,v]),H=r?G(r==="center"?"top":r):void 0,k=e.jsx(e.Fragment,{children:c?P:e.jsx(j,{features:y,children:e.jsx(C.div,{animate:"enter",exit:"exit",initial:"initial",style:H,variants:b.scaleSpringOpacity,...m,children:P})})});return e.jsxs("div",{...f(),children:[O,k]})};$.displayName="HeroUI.PopoverContent";var ee=$,R=s=>{var i;const{triggerRef:a,getTriggerProps:p}=A(),{children:o,...l}=s,r=n.useMemo(()=>typeof o=="string"?e.jsx("p",{children:o}):n.Children.only(o),[o]),t=(i=r.props.ref)!=null?i:r.ref,{onPress:m,isDisabled:c,...f}=n.useMemo(()=>p(_(l,r.props),t),[p,r.props,l,t]),[,d]=q(o,F),{buttonProps:v}=w({onPress:m,isDisabled:c},a),u=n.useMemo(()=>(d==null?void 0:d[0])!==void 0,[d]);return n.cloneElement(r,_(f,u?{onPress:m,isDisabled:c}:v))};R.displayName="HeroUI.PopoverTrigger";var oe=R,I=L((s,i)=>{const{children:a,...p}=s,o=J({...p,ref:i}),[l,r]=n.Children.toArray(a),t=e.jsx(z,{portalContainer:o.portalContainer,children:r});return e.jsxs(K,{value:o,children:[l,o.disableAnimation&&o.isOpen?t:e.jsx(V,{children:o.isOpen?t:null})]})});I.displayName="HeroUI.Popover";var re=I;export{oe as a,ee as b,re as p};
diff --git a/release-tools/webui-static/assets/chunk-5PILOUBS-KHYNqMZE.js b/release-tools/webui-static/assets/chunk-5PILOUBS-KHYNqMZE.js
new file mode 100644
index 0000000..f7d5123
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-5PILOUBS-KHYNqMZE.js
@@ -0,0 +1 @@
+import{t as J,f as L,ar as Q,E as W,y as O,X as S,v as Z,x as ee,b7 as se,aG as ae,al as te,av as re,z as oe,B as le,n as de,D as f,Y as M,b8 as ne}from"./index-DiaaLdUu.js";import{j as x,r as p}from"./react-vendor-jWT2yUdV.js";var V=J({slots:{base:["flex","flex-col","relative","overflow-hidden","h-auto","outline-none","text-foreground","box-border","bg-content1",...L],header:["flex","p-3","z-10","w-full","justify-start","items-center","shrink-0","overflow-inherit","color-inherit","subpixel-antialiased"],body:["relative","flex","flex-1","w-full","p-3","flex-auto","flex-col","place-content-inherit","align-items-inherit","h-auto","break-words","text-left","overflow-y-auto","subpixel-antialiased"],footer:["p-3","h-auto","flex","w-full","items-center","overflow-hidden","color-inherit","subpixel-antialiased"]},variants:{shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},radius:{none:{base:"rounded-none",header:"rounded-none",footer:"rounded-none"},sm:{base:"rounded-small",header:"rounded-t-small",footer:"rounded-b-small"},md:{base:"rounded-medium",header:"rounded-t-medium",footer:"rounded-b-medium"},lg:{base:"rounded-large",header:"rounded-t-large",footer:"rounded-b-large"}},fullWidth:{true:{base:"w-full"}},isHoverable:{true:{base:"data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"}},isPressable:{true:{base:"cursor-pointer"}},isBlurred:{true:{base:["bg-background/80","dark:bg-background/20","backdrop-blur-md","backdrop-saturate-150"]}},isFooterBlurred:{true:{footer:["bg-background/10","backdrop-blur","backdrop-saturate-150"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:"",false:{base:"transition-transform-background motion-reduce:transition-none"}}},compoundVariants:[{isPressable:!0,class:"data-[pressed=true]:scale-[0.97] tap-highlight-transparent"}],defaultVariants:{radius:"lg",shadow:"md",fullWidth:!1,isHoverable:!1,isPressable:!1,isDisabled:!1,isFooterBlurred:!1}}),[ie,ue]=Q({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within "}),E=W((e,o)=>{var a;const{as:l,className:d,children:s,...u}=e,n=l||"div",b=O(o),{slots:t,classNames:m}=ue(),C=S(m==null?void 0:m.body,d);return x.jsx(n,{ref:b,className:(a=t.body)==null?void 0:a.call(t,{class:C}),...u,children:s})});E.displayName="HeroUI.CardBody";var pe=E;function be(e){var o,a,l,d;const s=Z(),[u,n]=ee(e,V.variantKeys),{ref:b,as:t,children:m,onClick:C,onPress:T,autoFocus:z,className:U,classNames:c,allowTextSelectionOnPress:G=!0,...h}=u,i=O(b),P=t||(e.isPressable?"button":"div"),$=typeof P=="string",r=(a=(o=e.disableAnimation)!=null?o:s==null?void 0:s.disableAnimation)!=null?a:!1,w=(d=(l=e.disableRipple)!=null?l:s==null?void 0:s.disableRipple)!=null?d:!1,H=S(c==null?void 0:c.base,U),{onClear:B,onPress:F,ripples:g}=se(),_=p.useCallback(R=>{w||r||i.current&&F(R)},[w,r,i,F]),{buttonProps:j,isPressed:y}=ae({onPress:te(T,_),elementType:t,isDisabled:!e.isPressable,onClick:C,allowTextSelectionOnPress:G,...h},i),{hoverProps:N,isHovered:k}=re({isDisabled:!e.isHoverable,...h}),{isFocusVisible:D,isFocused:K,focusProps:A}=oe({autoFocus:z}),v=p.useMemo(()=>V({...n,disableAnimation:r}),[le(n),r]),X=p.useMemo(()=>({slots:v,classNames:c,disableAnimation:r,isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,fullWidth:e.fullWidth}),[v,c,e.isDisabled,e.isFooterBlurred,r,e.fullWidth]),Y=p.useCallback((R={})=>({ref:i,className:v.base({class:H}),tabIndex:e.isPressable?0:-1,"data-hover":f(k),"data-pressed":f(y),"data-focus":f(K),"data-focus-visible":f(D),"data-disabled":f(e.isDisabled),...de(e.isPressable?{...j,...A,role:"button"}:{},e.isHoverable?N:{},M(h,{enabled:$}),M(R))}),[i,v,H,$,e.isPressable,e.isHoverable,e.isDisabled,k,y,D,j,A,N,h]),q=p.useCallback(()=>({ripples:g,onClear:B}),[g,B]);return{context:X,domRef:i,Component:P,classNames:c,children:m,isHovered:k,isPressed:y,disableAnimation:r,isPressable:e.isPressable,isHoverable:e.isHoverable,disableRipple:w,handlePress:_,isFocusVisible:D,getCardProps:Y,getRippleProps:q}}var I=W((e,o)=>{const{children:a,context:l,Component:d,isPressable:s,disableAnimation:u,disableRipple:n,getCardProps:b,getRippleProps:t}=be({...e,ref:o});return x.jsxs(d,{...b(),children:[x.jsx(ie,{value:l,children:a}),s&&!u&&!n&&x.jsx(ne,{...t()})]})});I.displayName="HeroUI.Card";var me=I;export{me as a,pe as c,ue as u};
diff --git a/release-tools/webui-static/assets/chunk-6LIX6LVT-B246pOuK.js b/release-tools/webui-static/assets/chunk-6LIX6LVT-B246pOuK.js
new file mode 100644
index 0000000..9d7d47f
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-6LIX6LVT-B246pOuK.js
@@ -0,0 +1,2 @@
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Crbd1Tvi.js","assets/features-animation-BkV7kg8P.js","assets/gestures-BHfQC-M8.js","assets/react-vendor-jWT2yUdV.js","assets/qface-BZLvZXJ8.js","assets/index-DiaaLdUu.js","assets/react-hot-toast-cGcFZPSt.js","assets/react-router-dom-C6k78GT4.js","assets/index-CBRelCj8.css"])))=>i.map(i=>d[i]);
+import{a7 as $e,a8 as Z,a6 as ve,b1 as he,ac as Te,v as xe,x as ge,b2 as Pe,n as _,aJ as ye,aT as Oe,B as Ce,D,X as we,E as De,w as Ee,aC as Re,aD as Ae,aE as _e,aF as je,A as Ie,b3 as Y}from"./index-DiaaLdUu.js";import{r as l,j as d}from"./react-vendor-jWT2yUdV.js";import{d as Ne,p as q,a as He,c as G,t as Le,g as Se}from"./chunk-WQVQ7P2I-BJd1EiqP.js";import{$ as ee}from"./useHover-DC1o5-bm.js";import{$ as ke}from"./useFocusable-DA5Croun.js";import{m as Fe}from"./chunk-UX7UMZL5-CMHjUaC_.js";const Ve=1500,Q=500;let P={},Me=0,A=!1,x=null,y=null;function ze(e={}){let{delay:o=Ve,closeDelay:n=Q}=e,{isOpen:a,open:u,close:f}=Ne(e),r=l.useMemo(()=>`${++Me}`,[]),t=l.useRef(null),b=l.useRef(f),m=()=>{P[r]=p},h=()=>{for(let i in P)i!==r&&(P[i](!0),delete P[i])},T=()=>{t.current&&clearTimeout(t.current),t.current=null,h(),m(),A=!0,u(),x&&(clearTimeout(x),x=null),y&&(clearTimeout(y),y=null)},p=i=>{i||n<=0?(t.current&&clearTimeout(t.current),t.current=null,b.current()):t.current||(t.current=setTimeout(()=>{t.current=null,b.current()},n)),x&&(clearTimeout(x),x=null),A&&(y&&clearTimeout(y),y=setTimeout(()=>{delete P[r],y=null,A=!1},Math.max(Q,n)))},s=()=>{h(),m(),!a&&!x&&!A?x=setTimeout(()=>{x=null,A=!0,T()},o):a||T()};return l.useEffect(()=>{b.current=f},[f]),l.useEffect(()=>()=>{t.current&&clearTimeout(t.current),P[r]&&delete P[r]},[r]),{isOpen:a,open:i=>{!i&&o>0&&!t.current?s():T()},close:p}}function Be(e,o){let n=$e(e,{labelable:!0}),{hoverProps:a}=ee({onHoverStart:()=>o==null?void 0:o.open(!0),onHoverEnd:()=>o==null?void 0:o.close()});return{tooltipProps:Z(n,a,{role:"tooltip"})}}function Ke(e,o,n){let{isDisabled:a,trigger:u}=e,f=ve(),r=l.useRef(!1),t=l.useRef(!1),b=()=>{(r.current||t.current)&&o.open(t.current)},m=c=>{!r.current&&!t.current&&o.close(c)};l.useEffect(()=>{let c=w=>{n&&n.current&&w.key==="Escape"&&(w.stopPropagation(),o.close(!0))};if(o.isOpen)return document.addEventListener("keydown",c,!0),()=>{document.removeEventListener("keydown",c,!0)}},[n,o]);let h=()=>{u!=="focus"&&(he()==="pointer"?r.current=!0:r.current=!1,b())},T=()=>{u!=="focus"&&(t.current=!1,r.current=!1,m())},p=()=>{t.current=!1,r.current=!1,m(!0)},s=()=>{Te()&&(t.current=!0,b())},i=()=>{t.current=!1,r.current=!1,m(!0)},{hoverProps:O}=ee({isDisabled:a,onHoverStart:h,onHoverEnd:T}),{focusableProps:C}=ke({isDisabled:a,onFocus:s,onBlur:i},n);return{triggerProps:{"aria-describedby":o.isOpen?f:void 0,...Z(C,O,{onPointerDown:p,onKeyDown:p})},tooltipProps:{id:f}}}function Ue(e){var o,n;const a=xe(),[u,f]=ge(e,q.variantKeys),{ref:r,as:t,isOpen:b,content:m,children:h,defaultOpen:T,onOpenChange:p,isDisabled:s,trigger:i,shouldFlip:O=!0,containerPadding:C=12,placement:c="top",delay:w=0,closeDelay:k=500,showArrow:$=!1,offset:M=7,crossOffset:oe=0,isDismissable:re,shouldCloseOnBlur:le=!0,portalContainer:se,isKeyboardDismissDisabled:ne=!1,updatePositionDeps:z=[],shouldCloseOnInteractOutside:ae,className:ie,onClose:B,motionProps:ce,classNames:E,...F}=u,de=t||"div",V=(n=(o=e==null?void 0:e.disableAnimation)!=null?o:a==null?void 0:a.disableAnimation)!=null?n:!1,R=ze({delay:w,closeDelay:k,isDisabled:s,defaultOpen:T,isOpen:b,onOpenChange:g=>{p==null||p(g),g||B==null||B()}}),j=l.useRef(null),I=l.useRef(null),N=l.useId(),v=R.isOpen&&!s;l.useImperativeHandle(r,()=>Pe(I));const{triggerProps:K,tooltipProps:ue}=Ke({isDisabled:s,trigger:i},R,j),{tooltipProps:U}=Be({isOpen:v,..._(u,ue)},R),{overlayProps:W,placement:H,updatePosition:fe}=He({isOpen:v,targetRef:j,placement:Le(c),overlayRef:I,offset:$?M+3:M,crossOffset:oe,shouldFlip:O,containerPadding:C});ye(()=>{z.length&&fe()},z);const{overlayProps:J}=Oe({isOpen:v,onClose:R.close,isDismissable:re,shouldCloseOnBlur:le,isKeyboardDismissDisabled:ne,shouldCloseOnInteractOutside:ae},I),L=l.useMemo(()=>{var g,S,X;return q({...f,disableAnimation:V,radius:(g=e==null?void 0:e.radius)!=null?g:"md",size:(S=e==null?void 0:e.size)!=null?S:"md",shadow:(X=e==null?void 0:e.shadow)!=null?X:"sm"})},[Ce(f),V,e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),pe=l.useCallback((g={},S=null)=>({..._(K,g),ref:Fe(S,j),"aria-describedby":v?N:void 0}),[K,v,N,R]),be=l.useCallback(()=>({ref:I,"data-slot":"base","data-open":D(v),"data-arrow":D($),"data-disabled":D(s),"data-placement":G(H||"top",c),..._(U,J,F),style:_(W.style,F.style,u.style),className:L.base({class:E==null?void 0:E.base}),id:N}),[L,v,$,s,H,c,U,J,F,W,u,N]),me=l.useCallback(()=>({"data-slot":"content","data-open":D(v),"data-arrow":D($),"data-disabled":D(s),"data-placement":G(H||"top",c),className:L.content({class:we(E==null?void 0:E.content,ie)})}),[L,v,$,s,H,c,E]);return{Component:de,content:m,children:h,isOpen:v,triggerRef:j,showArrow:$,portalContainer:se,placement:c,disableAnimation:V,isDisabled:s,motionProps:ce,getTooltipContentProps:me,getTriggerProps:pe,getTooltipProps:be}}var We=()=>Ae(()=>import("./index-Crbd1Tvi.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(e=>e.default),te=De((e,o)=>{const{Component:n,children:a,content:u,isOpen:f,portalContainer:r,placement:t,disableAnimation:b,motionProps:m,getTriggerProps:h,getTooltipProps:T,getTooltipContentProps:p}=Ue({...e,ref:o});let s;try{if(l.Children.count(a)!==1)throw new Error;if(!l.isValidElement(a))s=d.jsx("p",{...h(),children:a});else{const $=a;s=l.cloneElement($,h($.props,$.ref))}}catch{s=d.jsx("span",{}),Ee("Tooltip must have only one child node. Please, check your code.")}const{ref:i,id:O,style:C,...c}=T(),w=d.jsx("div",{ref:i,id:O,style:C,children:d.jsx(Re,{features:We,children:d.jsx(_e.div,{animate:"enter",exit:"exit",initial:"exit",variants:je.scaleSpring,..._(m,c),style:{...Se(t)},children:d.jsx(n,{...p(),children:u})})})});return d.jsxs(d.Fragment,{children:[s,b&&f?d.jsx(Y,{portalContainer:r,children:d.jsx("div",{ref:i,id:O,style:C,...c,children:d.jsx(n,{...p(),children:u})})}):d.jsx(Ie,{children:f?d.jsx(Y,{portalContainer:r,children:w}):null})]})});te.displayName="HeroUI.Tooltip";var Ze=te;export{Ze as t};
diff --git a/release-tools/webui-static/assets/chunk-APIAPHLK-nGgOe_Nr.js b/release-tools/webui-static/assets/chunk-APIAPHLK-nGgOe_Nr.js
new file mode 100644
index 0000000..6707499
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-APIAPHLK-nGgOe_Nr.js
@@ -0,0 +1 @@
+import{t as ye,V as k,f as Pe,ac as Ce,a$ as Ie,au as Ne,aP as Ae,E as q,ai as Re,ak as $e,a5 as ce,v as Se,x as ke}from"./index-DiaaLdUu.js";import{r as l,j as p}from"./react-vendor-jWT2yUdV.js";import{f as je}from"./chunk-RJKRL3AU-CjtrMR1U.js";import{$ as Ee}from"./useHover-DC1o5-bm.js";import{$ as Te}from"./usePress-BrNwsdVw.js";import{t as Fe}from"./index-BV9-YCKp.js";var te=ye({slots:{base:["p-2.5","-m-2.5","overflow-x-scroll","scrollbar-hide"],wrapper:["flex","flex-nowrap","h-fit","max-w-fit","relative","gap-1","items-center","overflow-visible"],item:["tap-highlight-transparent","select-none","touch-none"],prev:"",next:"",cursor:["absolute","flex","overflow-visible","items-center","justify-center","origin-center","left-0","select-none","touch-none","pointer-events-none","z-20"],forwardIcon:["hidden","group-hover:block","group-data-[focus-visible=true]:block","data-[before=true]:rotate-180"],ellipsis:"group-hover:hidden group-data-[focus-visible=true]:hidden",chevronNext:"rotate-180"},variants:{variant:{bordered:{item:["border-medium","border-default","bg-transparent","data-[hover=true]:bg-default-100"]},light:{item:"bg-transparent"},flat:{},faded:{item:["border-medium","border-default"]}},color:{default:{cursor:k.solid.default},primary:{cursor:k.solid.primary},secondary:{cursor:k.solid.secondary},success:{cursor:k.solid.success},warning:{cursor:k.solid.warning},danger:{cursor:k.solid.danger}},size:{sm:{},md:{},lg:{}},radius:{none:{},sm:{},md:{},lg:{},full:{}},isCompact:{true:{wrapper:"gap-0 shadow-sm",item:["shadow-none","first-of-type:rounded-e-none","last-of-type:rounded-s-none","[&:not(:first-of-type):not(:last-of-type)]:rounded-none"],prev:"!rounded-e-none",next:"!rounded-s-none"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},showShadow:{true:{}},disableCursorAnimation:{true:{cursor:"hidden"}},disableAnimation:{true:{item:"transition-none",cursor:"transition-none"},false:{item:["data-[pressed=true]:scale-[0.97]","transition-transform-background"],cursor:["data-[moving=true]:transition-transform","!data-[moving=true]:duration-300","opacity-0","data-[moving]:opacity-100"]}}},defaultVariants:{variant:"flat",color:"primary",size:"md",radius:"md",isCompact:!1,isDisabled:!1,showShadow:!1,disableCursorAnimation:!1},compoundVariants:[{showShadow:!0,color:"default",class:{cursor:[k.shadow.default,"shadow-md"]}},{showShadow:!0,color:"primary",class:{cursor:[k.shadow.primary,"shadow-md"]}},{showShadow:!0,color:"secondary",class:{cursor:[k.shadow.secondary,"shadow-md"]}},{showShadow:!0,color:"success",class:{cursor:[k.shadow.success,"shadow-md"]}},{showShadow:!0,color:"warning",class:{cursor:[k.shadow.warning,"shadow-md"]}},{showShadow:!0,color:"danger",class:{cursor:[k.shadow.danger,"shadow-md"]}},{isCompact:!0,variant:"bordered",class:{item:"[&:not(:first-of-type)]:ms-[calc(theme(borderWidth.2)*-1)]"}},{disableCursorAnimation:!0,color:"default",class:{item:["data-[active=true]:bg-default-400","data-[active=true]:border-default-400","data-[active=true]:text-default-foreground"]}},{disableCursorAnimation:!0,color:"primary",class:{item:["data-[active=true]:bg-primary","data-[active=true]:border-primary","data-[active=true]:text-primary-foreground"]}},{disableCursorAnimation:!0,color:"secondary",class:{item:["data-[active=true]:bg-secondary","data-[active=true]:border-secondary","data-[active=true]:text-secondary-foreground"]}},{disableCursorAnimation:!0,color:"success",class:{item:["data-[active=true]:bg-success","data-[active=true]:border-success","data-[active=true]:text-success-foreground"]}},{disableCursorAnimation:!0,color:"warning",class:{item:["data-[active=true]:bg-warning","data-[active=true]:border-warning","data-[active=true]:text-warning-foreground"]}},{disableCursorAnimation:!0,color:"danger",class:{item:["data-[active=true]:bg-danger","data-[active=true]:border-danger","data-[active=true]:text-danger-foreground"]}},{disableCursorAnimation:!0,showShadow:!0,color:"default",class:{item:["data-[active=true]:shadow-md","data-[active=true]:shadow-default/50"]}},{disableCursorAnimation:!0,showShadow:!0,color:"primary",class:{item:["data-[active=true]:shadow-md","data-[active=true]:shadow-primary/40"]}},{disableCursorAnimation:!0,showShadow:!0,color:"secondary",class:{item:["data-[active=true]:shadow-md","data-[active=true]:shadow-secondary/40"]}},{disableCursorAnimation:!0,showShadow:!0,color:"success",class:{item:["data-[active=true]:shadow-md","data-[active=true]:shadow-success/40"]}},{disableCursorAnimation:!0,showShadow:!0,color:"warning",class:{item:["data-[active=true]:shadow-md","data-[active=true]:shadow-warning/40"]}},{disableCursorAnimation:!0,showShadow:!0,color:"danger",class:{item:["data-[active=true]:shadow-md","data-[active=true]:shadow-danger/40"]}}],compoundSlots:[{slots:["item","prev","next"],class:["flex","flex-wrap","truncate","box-border","outline-none","items-center","justify-center","text-default-foreground",...Pe,"data-[disabled=true]:text-default-300","data-[disabled=true]:pointer-events-none"]},{slots:["item","prev","next"],variant:["flat","bordered","faded"],class:["shadow-sm"]},{slots:["item","prev","next"],variant:"flat",class:["bg-default-100","[&[data-hover=true]:not([data-active=true])]:bg-default-200","active:bg-default-300"]},{slots:["item","prev","next"],variant:"faded",class:["bg-default-50","[&[data-hover=true]:not([data-active=true])]:bg-default-100","active:bg-default-200"]},{slots:["item","prev","next"],variant:"light",class:["[&[data-hover=true]:not([data-active=true])]:bg-default-100","active:bg-default-200"]},{slots:["item","cursor","prev","next"],size:"sm",class:"min-w-8 w-8 h-8 text-tiny"},{slots:["item","cursor","prev","next"],size:"md",class:"min-w-9 w-9 h-9 text-small"},{slots:["item","cursor","prev","next"],size:"lg",class:"min-w-10 w-10 h-10 text-medium"},{slots:["wrapper","item","cursor","prev","next"],radius:"none",class:"rounded-none"},{slots:["wrapper","item","cursor","prev","next"],radius:"sm",class:"rounded-small"},{slots:["wrapper","item","cursor","prev","next"],radius:"md",class:"rounded-medium"},{slots:["wrapper","item","cursor","prev","next"],radius:"lg",class:"rounded-large"},{slots:["wrapper","item","cursor","prev","next"],radius:"full",class:"rounded-full"}]});function Le(e={}){let{autoFocus:r=!1,isTextInput:s,within:a}=e,t=l.useRef({isFocused:!1,isFocusVisible:r||Ce()}),[o,i]=l.useState(!1),[y,f]=l.useState(()=>t.current.isFocused&&t.current.isFocusVisible),c=l.useCallback(()=>f(t.current.isFocused&&t.current.isFocusVisible),[]),m=l.useCallback(d=>{t.current.isFocused=d,i(d),c()},[c]);Ie(d=>{t.current.isFocusVisible=d,c()},[],{isTextInput:s});let{focusProps:I}=Ne({isDisabled:a,onFocusChange:m}),{focusWithinProps:g}=Ae({isDisabled:!a,onFocusWithinChange:m});return{isFocused:o,isFocusVisible:y,focusProps:a?g:I}}function G(e){const r=l.useRef(null);return l.useImperativeHandle(e,()=>r.current),r}function st(e){return typeof e=="function"}var j=e=>e?"true":void 0;function le(e){var r,s,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e))for(r=0;r{let r=" ";for(const s of e)if(typeof s=="string"&&s.length>0){r=s;break}return r};function Ve(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function _(e,r){const s=r-e+1;return Array.from({length:s},(a,t)=>t+e)}function ue(...e){return(...r)=>{for(let s of e)typeof s=="function"&&s(...r)}}var re=new Map;function De(e,r){if(e===r)return e;let s=re.get(e);if(s)return s.forEach(t=>t.current=r),r;let a=re.get(r);return a?(a.forEach(t=>t.current=e),e):r}function Me(...e){let r={...e[0]};for(let s=1;s=65&&t.charCodeAt(2)<=90?r[t]=ue(o,i):(t==="className"||t==="UNSAFE_className")&&typeof o=="string"&&typeof i=="string"?r[t]=D(o,i):t==="id"&&o&&i?r.id=De(o,i):r[t]=i!==void 0?i:o}}return r}function ot(...e){return e.length===1&&e[0]?e[0]:r=>{let s=!1;const a=e.map(t=>{const o=se(t,r);return s||(s=typeof o=="function"),o});if(s)return()=>{a.forEach((t,o)=>{typeof t=="function"?t==null||t():se(e[o],null)})}}}function se(e,r){if(typeof e=="function")return()=>e(r);e!=null&&"current"in e&&(e.current=r)}var de=q((e,r)=>{const{as:s,activePage:a,...t}=e,o=s||"span",i=G(r);return p.jsx(o,{ref:i,"aria-hidden":!0,...t,children:a})});de.displayName="HeroUI.PaginationCursor";var Oe=de;function _e(e){const{as:r,ref:s,value:a,children:t,isActive:o,isDisabled:i,onPress:y,onClick:f,getAriaLabel:c,className:m,...I}=e,g=!!(e!=null&&e.href),d=r||g?"a":"li",P=typeof d=="string",w=G(s),b=Re(),L=l.useMemo(()=>o?`${c==null?void 0:c(a)} active`:c==null?void 0:c(a),[a,o]),{isPressed:N,pressProps:A}=Te({isDisabled:i,onPress:y}),{focusProps:v,isFocused:E,isFocusVisible:V}=Le({}),{isHovered:C,hoverProps:T}=Ee({isDisabled:i});return{Component:d,children:t,ariaLabel:L,isFocused:E,isFocusVisible:V,getItemProps:(x={})=>({ref:w,role:"button",tabIndex:i?-1:0,"aria-label":L,"aria-current":j(o),"aria-disabled":j(i),"data-disabled":j(i),"data-active":j(o),"data-focus":j(E),"data-hover":j(C),"data-pressed":j(N),"data-focus-visible":j(V),...Me(x,A,v,T,je(I,{enabled:P})),className:D(m,x.className),onClick:M=>{ue(A==null?void 0:A.onClick,f)(M),$e(M,b,x.href,x.routerOptions)}})}}var fe=q((e,r)=>{const{Component:s,children:a,getItemProps:t}=_e({...e,ref:r});return p.jsx(s,{...t(),children:a})});fe.displayName="HeroUI.PaginationItem";var H=fe,h=(e=>(e.DOTS="dots",e.PREV="prev",e.NEXT="next",e))(h||{});function Xe(e){const{page:r,total:s,siblings:a=1,boundaries:t=1,initialPage:o=1,showControls:i=!1,onChange:y}=e,[f,c]=l.useState(r||o),{direction:m}=ce(),I=m==="rtl",g=v=>{c(v),y&&y(v)};l.useEffect(()=>{r&&r!==f&&c(r)},[r]);const d=l.useCallback(v=>{v<=0?g(1):v>s?g(s):g(v)},[s,f,g]),P=()=>d(f+1),w=()=>d(f-1),b=()=>d(1),L=()=>d(s),N=l.useCallback(v=>i?["prev",...v,"next"]:v,[I,i]);return{range:l.useMemo(()=>{if(a*2+3+t*2>=s)return N(_(1,s));const E=Math.max(f-a,t),V=Math.min(f+a,s-t),C=E>t+2,T=V({isIntersecting:o,entry:void 0})),g=l.useRef();g.current=i;const d=((y=m.entry)==null?void 0:y.isIntersecting)&&t;l.useEffect(()=>{if(!a||!f||!("IntersectionObserver"in window)||d)return;const b=new IntersectionObserver(L=>{const N=Array.isArray(b.thresholds)?b.thresholds:[b.thresholds];L.forEach(A=>{const v=A.isIntersecting&&N.some(E=>A.intersectionRatio>=E);I({isIntersecting:v,entry:A}),g.current&&g.current(v,A)})},{threshold:e,root:r,rootMargin:s});return b.observe(f),()=>{b.disconnect()}},[f,a,JSON.stringify(e),r,s,d,t]);const P=l.useRef(null);l.useEffect(()=>{var b;!f&&((b=m.entry)!=null&&b.target)&&!t&&!d&&P.current!==m.entry.target&&(P.current=m.entry.target,I({isIntersecting:o,entry:void 0}))},[f,m.entry,t,d,o]);const w=[c,!!m.isIntersecting,m.entry];return w.ref=w[0],w.isIntersecting=w[1],w.entry=w[2],w}var ae=300;function Ue(e){var r,s,a,t;const o=Se(),[i,y]=ke(e,te.variantKeys),{as:f,ref:c,classNames:m,dotsJump:I=5,loop:g=!1,showControls:d=!1,total:P=1,initialPage:w=1,page:b,siblings:L,boundaries:N,onChange:A,className:v,renderItem:E,getItemAriaLabel:V,...C}=i,T=f||"nav",R=G(c),x=l.useRef(null),M=l.useRef(),n=l.useRef(),F=(s=(r=e==null?void 0:e.disableAnimation)!=null?r:o==null?void 0:o.disableAnimation)!=null?s:!1,S=(t=(a=e==null?void 0:e.disableCursorAnimation)!=null?a:F)!=null?t:!1;function O(){return M.current||(M.current=new Map),M.current}function U(u,X){const z=O();u?z.set(X,u):z.delete(X)}function J(u,X){const B=O().get(u);if(!B||!x.current)return;n.current&&clearTimeout(n.current),Fe(B,{scrollMode:"always",behavior:"smooth",block:"start",inline:"start",boundary:R.current});const{offsetLeft:K}=B;if(X){x.current.setAttribute("data-moving","false"),x.current.style.transform=`translateX(${K}px) scale(1)`;return}x.current.setAttribute("data-moving","true"),x.current.style.transform=`translateX(${K}px) scale(1.1)`,n.current=setTimeout(()=>{x.current&&(x.current.style.transform=`translateX(${K}px) scale(1)`),n.current=setTimeout(()=>{var ee;(ee=x.current)==null||ee.setAttribute("data-moving","false"),n.current&&clearTimeout(n.current)},ae)},ae)}const{range:pe,activePage:$,setPage:Q,previous:be,next:ge,first:he,last:ve}=Xe({page:b,total:P,initialPage:w,siblings:L,boundaries:N,showControls:d,onChange:A}),[we,Y]=We();l.useEffect(()=>{R.current&&we(R.current)},[R.current]);const Z=l.useRef($);l.useEffect(()=>{$&&!F&&Y&&J($,$===Z.current),Z.current=$},[b,$,F,S,Y,e.dotsJump,e.isCompact,e.showControls]);const W=l.useMemo(()=>te({...y,disableAnimation:F,disableCursorAnimation:S}),[Ve(y),S,F]),xe=D(m==null?void 0:m.base,v);return{Component:T,showControls:d,dotsJump:I,slots:W,classNames:m,loop:g,total:P,range:pe,activePage:$,getItemRef:U,disableAnimation:F,disableCursorAnimation:S,setPage:Q,onPrevious:()=>g&&$===1?ve():be(),onNext:()=>g&&$===P?he():ge(),renderItem:E,getBaseProps:(u={})=>({...u,ref:R,role:"navigation","aria-label":u["aria-label"]||"pagination navigation","data-slot":"base","data-controls":j(d),"data-loop":j(g),"data-dots-jump":I,"data-total":P,"data-active-page":$,className:W.base({class:D(xe,u==null?void 0:u.className)}),...C}),getWrapperProps:(u={})=>({...u,"data-slot":"wrapper",className:W.wrapper({class:D(m==null?void 0:m.wrapper,u==null?void 0:u.className)})}),getItemProps:(u={})=>({...u,ref:X=>U(X,u.value),"data-slot":"item",isActive:u.value===$,className:W.item({class:D(m==null?void 0:m.item,u==null?void 0:u.className)}),onPress:()=>{u.value!==$&&Q(u.value)}}),getCursorProps:(u={})=>({...u,ref:x,activePage:$,"data-slot":"cursor",className:W.cursor({class:D(m==null?void 0:m.cursor,u==null?void 0:u.className)})}),getItemAriaLabel:u=>{if(u){if(V)return V(u);switch(u){case h.DOTS:return"dots element";case h.PREV:return"previous page button";case h.NEXT:return"next page button";case"first":return"first page button";case"last":return"last page button";default:return`pagination item ${u}`}}}}}var oe=e=>p.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"1em",shapeRendering:"geometricPrecision",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...e,children:[p.jsx("circle",{cx:"12",cy:"12",fill:"currentColor",r:"1"}),p.jsx("circle",{cx:"19",cy:"12",fill:"currentColor",r:"1"}),p.jsx("circle",{cx:"5",cy:"12",fill:"currentColor",r:"1"})]}),ne=e=>p.jsxs("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...e,children:[p.jsx("path",{d:"M13 17l5-5-5-5"}),p.jsx("path",{d:"M6 17l5-5-5-5"})]}),ie=e=>p.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:p.jsx("path",{d:"M15.5 19l-7-7 7-7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})}),me=q((e,r)=>{const{Component:s,dotsJump:a,slots:t,classNames:o,total:i,range:y,loop:f,activePage:c,disableCursorAnimation:m,disableAnimation:I,renderItem:g,onNext:d,onPrevious:P,setPage:w,getItemAriaLabel:b,getItemRef:L,getBaseProps:N,getWrapperProps:A,getItemProps:v,getCursorProps:E}=Ue({...e,ref:r}),{direction:V}=ce(),C=V==="rtl",T=l.useCallback(n=>n===h.PREV&&!C||n===h.NEXT&&C?p.jsx(ie,{}):p.jsx(ie,{className:t.chevronNext({class:o==null?void 0:o.chevronNext})}),[t,C]),R=l.useCallback(n=>p.jsx(H,{className:t.prev({class:o==null?void 0:o.prev}),"data-slot":"prev",getAriaLabel:b,isDisabled:!f&&c===1,value:n,onPress:P,children:T(h.PREV)},h.PREV),[t,o,f,c,C,i,b,P]),x=l.useCallback(n=>p.jsx(H,{className:t.next({class:D(o==null?void 0:o.next)}),"data-slot":"next",getAriaLabel:b,isDisabled:!f&&c===i,value:n,onPress:d,children:T(h.NEXT)},h.NEXT),[t,o,f,c,C,i,b,d]),M=l.useCallback((n,F)=>{const S=F=1?c-a:1:c+a<=i?c+a:i);const U={[h.PREV]:T(h.PREV),[h.NEXT]:T(h.NEXT),[h.DOTS]:p.jsxs(p.Fragment,{children:[p.jsx(oe,{className:t==null?void 0:t.ellipsis({class:o==null?void 0:o.ellipsis})}),p.jsx(ne,{className:t==null?void 0:t.forwardIcon({class:o==null?void 0:o.forwardIcon}),"data-before":j(S)})]})};return g({value:n,index:F,key:`${n}-${F}`,page:O,total:i,children:typeof n=="number"?n:U[n],activePage:c,dotsJump:a,isBefore:S,isActive:n===c,isPrevious:n===c-1,isNext:n===c+1,isFirst:n===1,isLast:n===i,onNext:d,onPrevious:P,setPage:w,onPress:()=>w(O),ref:typeof n=="number"?J=>L(J,n):void 0,className:t.item({class:o==null?void 0:o.item}),getAriaLabel:b})}return n===h.PREV?R(n):n===h.NEXT?x(n):n===h.DOTS?p.jsxs(H,{className:t.item({class:D(o==null?void 0:o.item,"group")}),"data-slot":"item",getAriaLabel:b,value:n,onPress:()=>w(S?c-a>=1?c-a:1:c+a<=i?c+a:i),children:[p.jsx(oe,{className:t==null?void 0:t.ellipsis({class:o==null?void 0:o.ellipsis})}),p.jsx(ne,{className:t==null?void 0:t.forwardIcon({class:o==null?void 0:o.forwardIcon}),"data-before":j(C?!S:S)})]},h.DOTS+S):l.createElement(H,{...v({value:n}),key:n,getAriaLabel:b},n)},[C,c,a,v,f,y,g,t,o,i,b,d,P,w,R,x]);return p.jsx(s,{...N(),children:p.jsxs("ul",{...A(),children:[!m&&!I&&p.jsx(Oe,{...E()}),y.map(M)]})})});me.displayName="HeroUI.Pagination";var nt=me;export{Le as $,Me as a,D as b,ue as c,j as d,st as i,ot as m,Ve as o,nt as p,at as s,G as u};
diff --git a/release-tools/webui-static/assets/chunk-AXSF7SRE-Cr4elNVq.js b/release-tools/webui-static/assets/chunk-AXSF7SRE-Cr4elNVq.js
new file mode 100644
index 0000000..ab582e8
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-AXSF7SRE-Cr4elNVq.js
@@ -0,0 +1 @@
+import{t as i}from"./index-DiaaLdUu.js";var a=i({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}});export{a as d};
diff --git a/release-tools/webui-static/assets/chunk-B75B6XQK-aFCr8AK6.js b/release-tools/webui-static/assets/chunk-B75B6XQK-aFCr8AK6.js
new file mode 100644
index 0000000..a4ce570
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-B75B6XQK-aFCr8AK6.js
@@ -0,0 +1 @@
+import{t as A,V as N,f as Le,a7 as H,a8 as M,ai as ze,aj as Fe,ak as Re,a2 as Me,x as L,y as K,z as Te,B as z,X as O,D as S,n as U,Y as W,E as F,v as Ve,al as _e,w as He}from"./index-DiaaLdUu.js";import{$ as Ke}from"./usePress-BrNwsdVw.js";import{$ as Oe}from"./useFocusable-DA5Croun.js";import{j as p,r as D}from"./react-vendor-jWT2yUdV.js";import{p as Ue}from"./chunk-FGM523TA-CgSvUh2a.js";var T=A({base:["px-2","py-1","h-fit","font-mono","font-normal","inline-block","whitespace-nowrap"],variants:{color:{default:N.flat.default,primary:N.flat.primary,secondary:N.flat.secondary,success:N.flat.success,warning:N.flat.warning,danger:N.flat.danger},size:{sm:"text-small",md:"text-medium",lg:"text-large"},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"}},defaultVariants:{color:"default",size:"sm",radius:"sm"}}),V=A({slots:{base:"flex items-center",item:["flex gap-1 items-center","cursor-pointer","whitespace-nowrap","line-clamp-1","outline-none","tap-highlight-transparent",...Le],separator:"text-default-400 px-1 rtl:rotate-180"},variants:{color:{foreground:{item:"text-foreground/50",separator:"text-foreground/50"},primary:{item:"text-primary/80",separator:"text-primary/80"},secondary:{item:"text-secondary/80",separator:"text-secondary/80"},success:{item:"text-success/80",separator:"text-success/80"},warning:{item:"text-warning/80",separator:"text-warning/80"},danger:{item:"text-danger/80",separator:"text-danger/80"}},size:{sm:{item:"text-tiny"},md:{item:"text-small"},lg:{item:"text-medium"}},underline:{none:{item:"no-underline"},hover:{item:"hover:underline"},always:{item:"underline"},active:{item:"active:underline"},focus:{item:"focus:underline"}},isCurrent:{true:{item:"cursor-default"},false:{item:["hover:opacity-80","active:opacity-disabled"]}},isDisabled:{true:{item:"opacity-disabled pointer-events-none",separator:"opacity-disabled"}},disableAnimation:{false:{item:"transition-opacity"},true:{item:"transition-none"}}},defaultVariants:{size:"md",color:"foreground",underline:"hover",isDisabled:!1},compoundVariants:[{isCurrent:!0,color:"foreground",class:{item:"text-foreground"}},{isCurrent:!0,color:"primary",class:{item:"text-primary"}},{isCurrent:!0,color:"secondary",class:{item:"text-secondary"}},{isCurrent:!0,color:"success",class:{item:"text-success"}},{isCurrent:!0,color:"warning",class:{item:"text-warning"}},{isCurrent:!0,color:"danger",class:{item:"text-danger"}},{isCurrent:!1,underline:"none",class:{item:"no-underline"}},{underline:["hover","always","active","focus"],class:"underline-offset-4"}]}),_=A({slots:{base:"",list:"flex flex-wrap list-none",ellipsis:"text-medium",separator:"text-default-400 px-1"},variants:{size:{sm:{},md:{},lg:{}},radius:{none:{list:"rounded-none"},sm:{list:"rounded-small"},md:{list:"rounded-medium"},lg:{list:"rounded-large"},full:{list:"rounded-full"}},variant:{solid:{list:"bg-default-100"},bordered:{list:"border-medium border-default-200 shadow-sm"},light:{}}},defaultVariants:{size:"md",radius:"sm",variant:"light"},compoundVariants:[{variant:["solid","bordered"],class:{list:"max-w-fit"}},{variant:["solid","bordered"],size:"sm",class:{list:"px-2 py-1"}},{variant:["solid","bordered"],size:"md",class:{list:"px-2.5 py-1.5"}},{variant:["solid","bordered"],size:"lg",class:{list:"px-3 py-2"}}]}),We=e=>p.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"1em",shapeRendering:"geometricPrecision",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...e,children:[p.jsx("circle",{cx:"12",cy:"12",fill:"currentColor",r:"1"}),p.jsx("circle",{cx:"19",cy:"12",fill:"currentColor",r:"1"}),p.jsx("circle",{cx:"5",cy:"12",fill:"currentColor",r:"1"})]}),Ge=e=>p.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...e,children:p.jsx("path",{d:"m9 18 6-6-6-6"})});function Ye(e,t){let{elementType:r="a",onPress:s,onPressStart:o,onPressEnd:n,onClick:u,isDisabled:c,...i}=e,a={};r!=="a"&&(a={role:"link",tabIndex:c?void 0:0});let{focusableProps:x}=Oe(e,t),{pressProps:l,isPressed:C}=Ke({onPress:s,onPressStart:o,onPressEnd:n,onClick:u,isDisabled:c,ref:t}),P=H(i,{labelable:!0}),y=M(x,l),b=ze(),h=Fe(e);return{isPressed:C,linkProps:M(P,h,{...y,...a,"aria-disabled":c||void 0,"aria-current":e["aria-current"],onClick:$=>{var d;(d=l.onClick)===null||d===void 0||d.call(l,$),Re($,b,e.href,e.routerOptions)}})}}function Je(e,t){let{isCurrent:r,isDisabled:s,"aria-current":o,elementType:n="a",...u}=e,{linkProps:c}=Ye({isDisabled:s||r,elementType:n,...u},t),i=/^h[1-6]$/.test(n),a={};return i||(a=c),r&&(a["aria-current"]=o||"page",a.tabIndex=e.autoFocus?-1:void 0),{itemProps:{"aria-disabled":s,...a}}}var G={};G={breadcrumbs:"عناصر الواجهة"};var Y={};Y={breadcrumbs:"Трохи хляб"};var J={};J={breadcrumbs:"Popis cesty"};var X={};X={breadcrumbs:"Brødkrummer"};var Z={};Z={breadcrumbs:"Breadcrumbs"};var q={};q={breadcrumbs:"Πλοηγήσεις breadcrumb"};var Q={};Q={breadcrumbs:"Breadcrumbs"};var ee={};ee={breadcrumbs:"Migas de pan"};var re={};re={breadcrumbs:"Lingiread"};var se={};se={breadcrumbs:"Navigointilinkit"};var ae={};ae={breadcrumbs:"Chemin de navigation"};var te={};te={breadcrumbs:"שבילי ניווט"};var oe={};oe={breadcrumbs:"Navigacijski putovi"};var ne={};ne={breadcrumbs:"Morzsamenü"};var ie={};ie={breadcrumbs:"Breadcrumb"};var de={};de={breadcrumbs:"パンくずリスト"};var le={};le={breadcrumbs:"탐색 표시"};var ue={};ue={breadcrumbs:"Naršymo kelias"};var ce={};ce={breadcrumbs:"Atpakaļceļi"};var pe={};pe={breadcrumbs:"Navigasjonsstier"};var me={};me={breadcrumbs:"Broodkruimels"};var be={};be={breadcrumbs:"Struktura nawigacyjna"};var fe={};fe={breadcrumbs:"Caminho detalhado"};var ve={};ve={breadcrumbs:"Categorias"};var xe={};xe={breadcrumbs:"Miez de pâine"};var $e={};$e={breadcrumbs:"Навигация"};var Ce={};Ce={breadcrumbs:"Navigačné prvky Breadcrumbs"};var he={};he={breadcrumbs:"Drobtine"};var ge={};ge={breadcrumbs:"Putanje navigacije"};var Pe={};Pe={breadcrumbs:"Sökvägar"};var ye={};ye={breadcrumbs:"İçerik haritaları"};var De={};De={breadcrumbs:"Навігаційна стежка"};var Be={};Be={breadcrumbs:"导航栏"};var ke={};ke={breadcrumbs:"導覽列"};var je={};je={"ar-AE":G,"bg-BG":Y,"cs-CZ":J,"da-DK":X,"de-DE":Z,"el-GR":q,"en-US":Q,"es-ES":ee,"et-EE":re,"fi-FI":se,"fr-FR":ae,"he-IL":te,"hr-HR":oe,"hu-HU":ne,"it-IT":ie,"ja-JP":de,"ko-KR":le,"lt-LT":ue,"lv-LV":ce,"nb-NO":pe,"nl-NL":me,"pl-PL":be,"pt-BR":fe,"pt-PT":ve,"ro-RO":xe,"ru-RU":$e,"sk-SK":Ce,"sl-SI":he,"sr-SP":ge,"sv-SE":Pe,"tr-TR":ye,"uk-UA":De,"zh-CN":Be,"zh-TW":ke};function Xe(e){return e&&e.__esModule?e.default:e}function Ze(e){let{"aria-label":t,...r}=e,s=Me(Xe(je),"@react-aria/breadcrumbs");return{navProps:{...H(r,{labelable:!0}),"aria-label":t||s.format("breadcrumbs")}}}function qe(e){const[t,r]=L(e,V.variantKeys),{ref:s,as:o,className:n,children:u,isLast:c,separator:i,startContent:a,endContent:x,classNames:l,hideSeparator:C=!1,...P}=t,y=o||"li",b=!!(e!=null&&e.isCurrent),h=e==null?void 0:e.isDisabled,$=e!=null&&e.href&&!b?"a":"span",d=typeof $=="string",v=K(s),{itemProps:m}=Je({...e,isCurrent:b,elementType:$},v),{isFocusVisible:B,isFocused:w,focusProps:f}=Te(),g=D.useMemo(()=>V({...r,isCurrent:b,underline:(e==null?void 0:e.underline)!==void 0&&!b?e==null?void 0:e.underline:"none",className:n}),[z(r),b,n]),k=O(l==null?void 0:l.base,n);return{Component:$,WrapperComponent:y,children:u,separator:i,startContent:a,endContent:x,isDisabled:h,isCurrent:b,isLast:c,hideSeparator:C,getBaseProps:()=>({ref:v,"data-slot":"base",className:g.base({class:k}),...W(P,{enabled:d})}),getItemProps:()=>({href:b||e==null?void 0:e.href,"data-slot":"item","data-focus":S(w),"data-focus-visible":S(B),"data-disabled":e==null?void 0:e.isDisabled,"data-current":e==null?void 0:e.isCurrent,className:g.item({class:l==null?void 0:l.item}),...U(m,h?{}:f)}),getSeparatorProps:()=>({"data-slot":"separator","aria-hidden":S(!0),className:g.separator({class:l==null?void 0:l.separator})})}}var Ee=F((e,t)=>{const{Component:r,WrapperComponent:s,children:o,isLast:n,separator:u,startContent:c,endContent:i,hideSeparator:a,getBaseProps:x,getItemProps:l,getSeparatorProps:C}=qe({...e,ref:t});return p.jsxs(s,{...x(),children:[p.jsxs(r,{...l(),children:[c,o,i]}),!n&&!a&&p.jsx("span",{...C(),children:u})]})});Ee.displayName="HeroUI.Breadcrumbs";var Qe=Ee;function er(e){var t,r;const s=Ve(),o=(r=(t=e==null?void 0:e.disableAnimation)!=null?t:s==null?void 0:s.disableAnimation)!=null?r:!1,[n,u]=L(e,_.variantKeys),{ref:c,as:i,color:a,underline:x,isDisabled:l,separator:C,children:P,itemsBeforeCollapse:y=1,itemsAfterCollapse:b=2,maxItems:h=8,hideSeparator:$,renderEllipsis:d,className:v,classNames:m,itemClasses:B,onAction:w,...f}=n,g=i||"nav",k=typeof g=="string",{navProps:j}=Ze(e),[,E]=Ue(P,Qe),R=D.Children.count(E),Ie=K(c),I=D.useMemo(()=>_({...u,className:v}),[z(u),v]),Se=O(m==null?void 0:m.base,v),Ae={color:a,underline:x,disableAnimation:o,hideSeparator:$,size:e==null?void 0:e.size,classNames:B};return{Component:g,children:E,slots:I,separator:C,childCount:R,itemsAfterCollapse:b,itemsBeforeCollapse:y,maxItems:h,classNames:m,isDisabled:l,itemProps:Ae,renderEllipsis:d,getBaseProps:()=>({ref:Ie,"data-slot":"base",className:I.base({class:Se}),...U(j,W(f,{enabled:k}))}),getListProps:()=>({"data-slot":"list",className:I.list({class:m==null?void 0:m.list})}),getEllipsisProps:()=>({"data-slot":"ellipsis",className:I.ellipsis({class:m==null?void 0:m.ellipsis})}),getSeparatorProps:()=>({"data-slot":"separator","aria-hidden":S(!0),className:I.separator({class:m==null?void 0:m.separator})}),onAction:w}}var Ne=F((e,t)=>{const{Component:r,children:s,childCount:o,itemProps:n,separator:u=p.jsx(Ge,{}),maxItems:c,itemsBeforeCollapse:i,itemsAfterCollapse:a,isDisabled:x,renderEllipsis:l,getBaseProps:C,getListProps:P,getEllipsisProps:y,getSeparatorProps:b,onAction:h}=er({...e,ref:t}),$=D.useMemo(()=>{let d=s==null?void 0:s.map((f,g)=>{var k;const j=g===o-1,E=(f==null?void 0:f.key)||g;return D.cloneElement(f,{...n,isLast:j,separator:u,isDisabled:x&&!j,isCurrent:j||f.props.isCurrent,...f.props,key:E,onPress:_e((k=f.props)==null?void 0:k.onPress,()=>h==null?void 0:h(E))})});if(!d)return null;if(o=o)return He(`You have provided an invalid combination of props to the Breadcrumbs. itemsAfterCollapse={${a}} + itemsBeforeCollapse={${i}} >= itemsCount={${o}}`,"Breadcrumbs"),d;const v=d.slice(i,d.length-a);if(v.length<1)return d;const m=p.jsx(We,{...y()}),B=D.cloneElement(v[0],{...v[0].props,key:"ellipsis",children:m}),w=typeof l=="function"?l({collapsedItem:B,items:v.map(f=>f.props),maxItems:c,ellipsisIcon:m,itemsBeforeCollapse:i,itemsAfterCollapse:a,separator:p.jsx("span",{...b(),children:u})}):B;return[...d.slice(0,i),w,...d.slice(d.length-a,d.length)]},[s,o,u,n,i,a,x]);return p.jsx(r,{...C(),children:p.jsx("ol",{...P(),children:$})})});Ne.displayName="HeroUI.Breadcrumbs";var cr=Ne;function rr(e){const[t,r]=L(e,T.variantKeys),{as:s,children:o,className:n,...u}=t,c=s||"code",i=D.useMemo(()=>T({...r,className:n}),[z(r),n]);return{Component:c,children:o,getCodeProps:()=>({className:i,...u})}}var we=F((e,t)=>{const{Component:r,children:s,getCodeProps:o}=rr({...e});return p.jsx(r,{ref:t,...o(),children:s})});we.displayName="HeroUI.Code";var pr=we;export{Qe as a,cr as b,pr as c};
diff --git a/release-tools/webui-static/assets/chunk-D5XJWRAV-DVN21qSw.js b/release-tools/webui-static/assets/chunk-D5XJWRAV-DVN21qSw.js
new file mode 100644
index 0000000..a744a66
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-D5XJWRAV-DVN21qSw.js
@@ -0,0 +1 @@
+import{u as p}from"./chunk-5PILOUBS-KHYNqMZE.js";import{E as u,y as h,X as v}from"./index-DiaaLdUu.js";import{j as x}from"./react-vendor-jWT2yUdV.js";var r=u((o,t)=>{var a;const{as:d,className:l,children:c,...m}=o,n=d||"div",f=h(t),{slots:e,classNames:s}=p(),i=v(s==null?void 0:s.header,l);return x.jsx(n,{ref:f,className:(a=e.header)==null?void 0:a.call(e,{class:i}),...m,children:c})});r.displayName="HeroUI.CardHeader";var j=r;export{j as c};
diff --git a/release-tools/webui-static/assets/chunk-EN4B57RQ-Ief8qCCd.js b/release-tools/webui-static/assets/chunk-EN4B57RQ-Ief8qCCd.js
new file mode 100644
index 0000000..56a0544
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-EN4B57RQ-Ief8qCCd.js
@@ -0,0 +1 @@
+import{r as l}from"./react-vendor-jWT2yUdV.js";import{t as se,Z as le,_ as ne,ah as re,v as oe,x as de,aJ as ie,z as ue,av as ce,B as pe,X as n,n as P,al as be,D as p}from"./index-DiaaLdUu.js";import{m as me}from"./chunk-UX7UMZL5-CMHjUaC_.js";import{$ as fe}from"./useToggle-B3ZYBe5S.js";var L=se({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent select-none",wrapper:["px-1","relative","inline-flex","items-center","justify-start","flex-shrink-0","overflow-hidden","bg-default-200","rounded-full",...ne],thumb:["z-10","flex","items-center","justify-center","bg-white","shadow-small","rounded-full","origin-right","pointer-events-none"],hiddenInput:le,startContent:"z-0 absolute start-1.5 text-current",endContent:"z-0 absolute end-1.5 text-default-600",thumbIcon:"text-black",label:"relative text-foreground select-none ms-2"},variants:{color:{default:{wrapper:["group-data-[selected=true]:bg-default-400","group-data-[selected=true]:text-default-foreground"]},primary:{wrapper:["group-data-[selected=true]:bg-primary","group-data-[selected=true]:text-primary-foreground"]},secondary:{wrapper:["group-data-[selected=true]:bg-secondary","group-data-[selected=true]:text-secondary-foreground"]},success:{wrapper:["group-data-[selected=true]:bg-success","group-data-[selected=true]:text-success-foreground"]},warning:{wrapper:["group-data-[selected=true]:bg-warning","group-data-[selected=true]:text-warning-foreground"]},danger:{wrapper:["group-data-[selected=true]:bg-danger","data-[selected=true]:text-danger-foreground"]}},size:{sm:{wrapper:"w-10 h-6",thumb:["w-4 h-4 text-tiny","group-data-[selected=true]:ms-4"],endContent:"text-tiny",startContent:"text-tiny",label:"text-small"},md:{wrapper:"w-12 h-7",thumb:["w-5 h-5 text-small","group-data-[selected=true]:ms-5"],endContent:"text-small",startContent:"text-small",label:"text-medium"},lg:{wrapper:"w-14 h-8",thumb:["w-6 h-6 text-medium","group-data-[selected=true]:ms-6"],endContent:"text-medium",startContent:"text-medium",label:"text-large"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{wrapper:"transition-none",thumb:"transition-none"},false:{wrapper:"transition-background",thumb:"transition-all",startContent:["opacity-0","scale-50","transition-transform-opacity","group-data-[selected=true]:scale-100","group-data-[selected=true]:opacity-100"],endContent:["opacity-100","transition-transform-opacity","group-data-[selected=true]:translate-x-3","group-data-[selected=true]:opacity-0"]}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1},compoundVariants:[{disableAnimation:!1,size:"sm",class:{thumb:["group-data-[pressed=true]:w-5","group-data-[selected]:group-data-[pressed]:ml-3"]}},{disableAnimation:!1,size:"md",class:{thumb:["group-data-[pressed=true]:w-6","group-data-[selected]:group-data-[pressed]:ml-4"]}},{disableAnimation:!1,size:"lg",class:{thumb:["group-data-[pressed=true]:w-7","group-data-[selected]:group-data-[pressed]:ml-5"]}}]});function ge(s,r,o){let{labelProps:d,inputProps:b,isSelected:i,isPressed:m,isDisabled:v,isReadOnly:x}=fe(s,r,o);return{labelProps:d,inputProps:{...b,role:"switch",checked:i},isSelected:i,isPressed:m,isDisabled:v,isReadOnly:x}}function he(s={}){let{isReadOnly:r}=s,[o,d]=re(s.isSelected,s.defaultSelected||!1,s.onChange);function b(m){r||d(m)}function i(){r||d(!o)}return{isSelected:o,setSelected:b,toggle:i}}function Pe(s={}){var r,o;const d=oe(),[b,i]=de(s,L.variantKeys),{ref:m,as:v,name:x,value:$="",isReadOnly:S=!1,autoFocus:D=!1,startContent:T,endContent:_,defaultSelected:I,isSelected:N,children:f,thumbIcon:B,className:M,classNames:t,onChange:H,onValueChange:R,...g}=b,J=v||"label",k=l.useRef(null),h=l.useRef(null),z=(o=(r=s.disableAnimation)!=null?r:d==null?void 0:d.disableAnimation)!=null?o:!1,C=l.useId(),w=l.useMemo(()=>{const e=g["aria-label"]||typeof f=="string"?f:void 0;return{name:x,value:$,children:f,autoFocus:D,defaultSelected:I,isSelected:N,isDisabled:!!s.isDisabled,isReadOnly:S,"aria-label":e,"aria-labelledby":g["aria-labelledby"]||C,onChange:R}},[$,x,C,f,D,S,N,I,s.isDisabled,g["aria-label"],g["aria-labelledby"],R]),O=he(w);ie(()=>{if(!h.current)return;const e=!!h.current.checked;O.setSelected(e)},[h.current]);const{inputProps:u,isPressed:K,isReadOnly:A}=ge(w,O,h),{focusProps:W,isFocused:F,isFocusVisible:V}=ue({autoFocus:u.autoFocus}),{hoverProps:X,isHovered:j}=ce({isDisabled:u.disabled}),E=w.isDisabled||A?!1:K,c=u.checked,y=u.disabled,a=l.useMemo(()=>L({...i,disableAnimation:z}),[pe(i),z]),Z=n(t==null?void 0:t.base,M),q=e=>({...P(X,g,e),ref:k,className:a.base({class:n(Z,e==null?void 0:e.className)}),"data-disabled":p(y),"data-selected":p(c),"data-readonly":p(A),"data-focus":p(F),"data-focus-visible":p(V),"data-hover":p(j),"data-pressed":p(E)}),G=l.useCallback((e={})=>({...e,"aria-hidden":!0,className:n(a.wrapper({class:n(t==null?void 0:t.wrapper,e==null?void 0:e.className)}))}),[a,t==null?void 0:t.wrapper]),Q=(e={})=>({...P(u,W,e),ref:me(h,m),id:u.id,className:a.hiddenInput({class:t==null?void 0:t.hiddenInput}),onChange:be(H,u.onChange)}),U=l.useCallback((e={})=>({...e,className:a.thumb({class:n(t==null?void 0:t.thumb,e==null?void 0:e.className)})}),[a,t==null?void 0:t.thumb]),Y=l.useCallback((e={})=>({...e,id:C,className:a.label({class:n(t==null?void 0:t.label,e==null?void 0:e.className)})}),[a,t==null?void 0:t.label,y,c]),ee=l.useCallback((e={includeStateProps:!1})=>P({width:"1em",height:"1em",className:a.thumbIcon({class:n(t==null?void 0:t.thumbIcon)})},e.includeStateProps?{isSelected:c}:{}),[a,t==null?void 0:t.thumbIcon,c]),te=l.useCallback((e={})=>({width:"1em",height:"1em",...e,className:a.startContent({class:n(t==null?void 0:t.startContent,e==null?void 0:e.className)})}),[a,t==null?void 0:t.startContent,c]),ae=l.useCallback((e={})=>({width:"1em",height:"1em",...e,className:a.endContent({class:n(t==null?void 0:t.endContent,e==null?void 0:e.className)})}),[a,t==null?void 0:t.endContent,c]);return{Component:J,slots:a,classNames:t,domRef:k,children:f,thumbIcon:B,startContent:T,endContent:_,isHovered:j,isSelected:c,isPressed:E,isFocused:F,isFocusVisible:V,isDisabled:y,getBaseProps:q,getWrapperProps:G,getInputProps:Q,getLabelProps:Y,getThumbProps:U,getThumbIconProps:ee,getStartContentProps:te,getEndContentProps:ae}}export{Pe as u};
diff --git a/release-tools/webui-static/assets/chunk-FGM523TA-CgSvUh2a.js b/release-tools/webui-static/assets/chunk-FGM523TA-CgSvUh2a.js
new file mode 100644
index 0000000..eca4f73
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-FGM523TA-CgSvUh2a.js
@@ -0,0 +1 @@
+import{r as n}from"./react-vendor-jWT2yUdV.js";var u=(l,a)=>{var e;let t=[];const o=(e=n.Children.map(l,r=>n.isValidElement(r)&&r.type===a?(t.push(r),null):r))==null?void 0:e.filter(Boolean),i=t.length>=0?t:void 0;return[o,i]};export{u as p};
diff --git a/release-tools/webui-static/assets/chunk-IHO36JMK-DJPUeGG0.js b/release-tools/webui-static/assets/chunk-IHO36JMK-DJPUeGG0.js
new file mode 100644
index 0000000..23b3fd8
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-IHO36JMK-DJPUeGG0.js
@@ -0,0 +1 @@
+import{f as m}from"./chunk-RJKRL3AU-CjtrMR1U.js";import{d as c}from"./chunk-AXSF7SRE-Cr4elNVq.js";import{r as i,j as u}from"./react-vendor-jWT2yUdV.js";function v(r){let o=m(r,{enabled:typeof r.elementType=="string"}),t;return r.orientation==="vertical"&&(t="vertical"),r.elementType!=="hr"?{separatorProps:{...o,role:"separator","aria-orientation":t}}:{separatorProps:o}}function P(r){const{as:o,className:t,orientation:e,...s}=r;let a=o||"hr";a==="hr"&&e==="vertical"&&(a="div");const{separatorProps:n}=v({elementType:typeof a=="string"?a:"hr",orientation:e}),p=i.useMemo(()=>c({orientation:e,className:t}),[e,t]),d=i.useCallback((f={})=>({className:p,role:"separator","data-orientation":e,...n,...s,...f}),[p,e,n,s]);return{Component:a,getDividerProps:d}}function y(r){return i.forwardRef(r)}var l=y((r,o)=>{const{Component:t,getDividerProps:e}=P({...r});return u.jsx(t,{ref:o,...e()})});l.displayName="HeroUI.Divider";var g=l;export{g as d};
diff --git a/release-tools/webui-static/assets/chunk-J6JGI6RM-Djlxjgjl.js b/release-tools/webui-static/assets/chunk-J6JGI6RM-Djlxjgjl.js
new file mode 100644
index 0000000..907cb04
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-J6JGI6RM-Djlxjgjl.js
@@ -0,0 +1 @@
+import{u as C}from"./chunk-EN4B57RQ-Ief8qCCd.js";import{r,j as e}from"./react-vendor-jWT2yUdV.js";import{E as S}from"./index-DiaaLdUu.js";var c=S((a,l)=>{const{Component:i,children:s,startContent:n,endContent:o,thumbIcon:t,getBaseProps:m,getInputProps:d,getWrapperProps:u,getThumbProps:h,getThumbIconProps:p,getLabelProps:x,getStartContentProps:P,getEndContentProps:f}=C({...a,ref:l}),g=typeof t=="function"?t(p({includeStateProps:!0})):t&&r.cloneElement(t,p()),E=n&&r.cloneElement(n,P()),j=o&&r.cloneElement(o,f());return e.jsxs(i,{...m(),children:[e.jsx("input",{...d()}),e.jsxs("span",{...u(),children:[n&&E,e.jsx("span",{...h(),children:t&&g}),o&&j]}),s&&e.jsx("span",{...x(),children:s})]})});c.displayName="HeroUI.Switch";var T=c;export{T as s};
diff --git a/release-tools/webui-static/assets/chunk-KQ5CH2X7-DgF-_fDD.js b/release-tools/webui-static/assets/chunk-KQ5CH2X7-DgF-_fDD.js
new file mode 100644
index 0000000..e5a5973
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-KQ5CH2X7-DgF-_fDD.js
@@ -0,0 +1 @@
+import{$ as Ze}from"./Item-D8Sud-UP.js";import{b as et,a as tt,p as rt}from"./chunk-2QQAR2RD-YG5LNmAk.js";import{t as ce,f as ot,X as te,an as at,ao as U,ap as O,aq as nt,ar as st,a7 as _e,a8 as De,ai as lt,as as ye,ac as it,at as dt,au as ct,aj as ut,a6 as ft,v as Ee,x as pt,z as vt,w as bt,av as ht,B as gt,aw as mt,D as W,n as J,Y as Ie,E as Pe,ah as yt,y as $t}from"./index-DiaaLdUu.js";import{r as m,R as oe,j as g}from"./react-vendor-jWT2yUdV.js";import{$ as xt,b as wt,m as Te,u as Et,c as Pt,d as Nt,e as St,f as Ct,g as Tt,h as Mt,i as kt}from"./chunk-KVDW62ZT-CGYYmJoP.js";import{$ as Kt}from"./useHover-DC1o5-bm.js";import{$ as _t}from"./usePress-BrNwsdVw.js";import{f as Dt,h as It,j as Ft,i as At}from"./SelectionManager-Dl9uHsLK.js";import{m as Rt}from"./chunk-UX7UMZL5-CMHjUaC_.js";var Lt=ce({base:["w-full","p-1","min-w-[200px]"]});ce({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","outline-none","cursor-pointer","tap-highlight-transparent","data-[pressed=true]:opacity-70",...ot,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal truncate",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","flex-shrink-0"],shortcut:["px-1","py-0.5","rounded","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:"border-small border-transparent hover:border-default data-[hover=true]:bg-default-100"},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{}}},defaultVariants:{variant:"solid",color:"default"},compoundVariants:[{variant:"solid",color:"default",class:{base:"data-[hover=true]:bg-default data-[hover=true]:text-default-foreground"}},{variant:"solid",color:"primary",class:{base:"data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"}},{variant:"solid",color:"secondary",class:{base:"data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"}},{variant:"solid",color:"success",class:{base:"data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"}},{variant:"solid",color:"warning",class:{base:"data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"}},{variant:"solid",color:"danger",class:{base:"data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"}},{variant:"shadow",color:"default",class:{base:"data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground"}},{variant:"shadow",color:"primary",class:{base:"data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"}},{variant:"shadow",color:"secondary",class:{base:"data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"}},{variant:"shadow",color:"success",class:{base:"data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"}},{variant:"shadow",color:"warning",class:{base:"data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"}},{variant:"shadow",color:"danger",class:{base:"data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"}},{variant:"bordered",color:"default",class:{base:"data-[hover=true]:border-default"}},{variant:"bordered",color:"primary",class:{base:"data-[hover=true]:border-primary data-[hover=true]:text-primary"}},{variant:"bordered",color:"secondary",class:{base:"data-[hover=true]:border-secondary data-[hover=true]:text-secondary"}},{variant:"bordered",color:"success",class:{base:"data-[hover=true]:border-success data-[hover=true]:text-success"}},{variant:"bordered",color:"warning",class:{base:"data-[hover=true]:border-warning data-[hover=true]:text-warning"}},{variant:"bordered",color:"danger",class:{base:"data-[hover=true]:border-danger data-[hover=true]:text-danger"}},{variant:"flat",color:"default",class:{base:"data-[hover=true]:bg-default/40 data-[hover=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{base:"data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary"}},{variant:"flat",color:"secondary",class:{base:"data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary"}},{variant:"flat",color:"success",class:{base:"data-[hover=true]:bg-success/20 data-[hover=true]:text-success "}},{variant:"flat",color:"warning",class:{base:"data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning"}},{variant:"flat",color:"danger",class:{base:"data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger"}},{variant:"faded",color:"default",class:{base:"data-[hover=true]:text-default-foreground"}},{variant:"faded",color:"primary",class:{base:"data-[hover=true]:text-primary"}},{variant:"faded",color:"secondary",class:{base:"data-[hover=true]:text-secondary"}},{variant:"faded",color:"success",class:{base:"data-[hover=true]:text-success"}},{variant:"faded",color:"warning",class:{base:"data-[hover=true]:text-warning"}},{variant:"faded",color:"danger",class:{base:"data-[hover=true]:text-danger"}},{variant:"light",color:"default",class:{base:"data-[hover=true]:text-default-500"}},{variant:"light",color:"primary",class:{base:"data-[hover=true]:text-primary"}},{variant:"light",color:"secondary",class:{base:"data-[hover=true]:text-secondary"}},{variant:"light",color:"success",class:{base:"data-[hover=true]:text-success"}},{variant:"light",color:"warning",class:{base:"data-[hover=true]:text-warning"}},{variant:"light",color:"danger",class:{base:"data-[hover=true]:text-danger"}}]});ce({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}});ce({base:"w-full flex flex-col gap-0.5 p-1"});var jt=(e,t)=>{if(!e&&!t)return{};const r=new Set([...Object.keys(e||{}),...Object.keys(t||{})]);return Array.from(r).reduce((a,o)=>({...a,[o]:te(e==null?void 0:e[o],t==null?void 0:t[o])}),{})};function Ot(e){const t=at(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:a}=e.style,o=r!=="none"&&a!=="hidden"&&a!=="collapse";if(o){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:i,visibility:n}=s(e);o=i!=="none"&&n!=="hidden"&&n!=="collapse"}return o}function Ht(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Fe(e,t){return e.nodeName!=="#comment"&&Ot(e)&&Ht(e,t)&&(!e.parentElement||Fe(e.parentElement,e))}const Me=oe.createContext(null),$e="react-aria-focus-scope-restore";let $=null;function Bt(e){let{children:t,contain:r,restoreFocus:a,autoFocus:o}=e,s=m.useRef(null),i=m.useRef(null),n=m.useRef([]),{parentNode:c}=m.useContext(Me)||{},l=m.useMemo(()=>new we({scopeRef:n}),[n]);U(()=>{let f=c||C.root;if(C.getTreeNode(f.scopeRef)&&$&&!de($,f.scopeRef)){let p=C.getTreeNode($);p&&(f=p)}f.addChild(l),C.addNode(l)},[l,c]),U(()=>{let f=C.getTreeNode(n);f&&(f.contain=!!r)},[r]),U(()=>{var f;let p=(f=s.current)===null||f===void 0?void 0:f.nextSibling,v=[],N=b=>b.stopPropagation();for(;p&&p!==i.current;)v.push(p),p.addEventListener($e,N),p=p.nextSibling;return n.current=v,()=>{for(let b of v)b.removeEventListener($e,N)}},[t]),Yt(n,a,r),Wt(n,r),Gt(n,a,r),qt(n,o),m.useEffect(()=>{const f=O(n.current?n.current[0]:void 0).activeElement;let p=null;if(L(f,n.current)){for(let v of C.traverse())v.scopeRef&&L(f,v.scopeRef.current)&&(p=v);p===C.getTreeNode(n)&&($=p.scopeRef)}},[n]),U(()=>()=>{var f,p,v;let N=(v=(p=C.getTreeNode(n))===null||p===void 0||(f=p.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&v!==void 0?v:null;(n===$||de(n,$))&&(!N||C.getTreeNode(N))&&($=N),C.removeTreeNode(n)},[n]);let d=m.useMemo(()=>Ut(n),[]),u=m.useMemo(()=>({focusManager:d,parentNode:l}),[l,d]);return oe.createElement(Me.Provider,{value:u},oe.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,oe.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function Ut(e){return{focusNext(t={}){let r=e.current,{from:a,tabbable:o,wrap:s,accept:i}=t,n=a||O(r[0]).activeElement,c=r[0].previousElementSibling,l=Z(r),d=X(l,{tabbable:o,accept:i},r);d.currentNode=L(n,r)?n:c;let u=d.nextNode();return!u&&s&&(d.currentNode=c,u=d.nextNode()),u&&q(u,!0),u},focusPrevious(t={}){let r=e.current,{from:a,tabbable:o,wrap:s,accept:i}=t,n=a||O(r[0]).activeElement,c=r[r.length-1].nextElementSibling,l=Z(r),d=X(l,{tabbable:o,accept:i},r);d.currentNode=L(n,r)?n:c;let u=d.previousNode();return!u&&s&&(d.currentNode=c,u=d.previousNode()),u&&q(u,!0),u},focusFirst(t={}){let r=e.current,{tabbable:a,accept:o}=t,s=Z(r),i=X(s,{tabbable:a,accept:o},r);i.currentNode=r[0].previousElementSibling;let n=i.nextNode();return n&&q(n,!0),n},focusLast(t={}){let r=e.current,{tabbable:a,accept:o}=t,s=Z(r),i=X(s,{tabbable:a,accept:o},r);i.currentNode=r[r.length-1].nextElementSibling;let n=i.previousNode();return n&&q(n,!0),n}}}const Ne=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Vt=Ne.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ne.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const zt=Ne.join(':not([hidden]):not([tabindex="-1"]),');function Z(e){return e[0].parentElement}function le(e){let t=C.getTreeNode($);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Wt(e,t){let r=m.useRef(void 0),a=m.useRef(void 0);U(()=>{let o=e.current;if(!t){a.current&&(cancelAnimationFrame(a.current),a.current=void 0);return}const s=O(o?o[0]:void 0);let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!le(e)||l.isComposing)return;let d=s.activeElement,u=e.current;if(!u||!L(d,u))return;let f=Z(u),p=X(f,{tabbable:!0},u);if(!d)return;p.currentNode=d;let v=l.shiftKey?p.previousNode():p.nextNode();v||(p.currentNode=l.shiftKey?u[u.length-1].nextElementSibling:u[0].previousElementSibling,v=l.shiftKey?p.previousNode():p.nextNode()),l.preventDefault(),v&&q(v,!0)},n=l=>{(!$||de($,e))&&L(l.target,e.current)?($=e,r.current=l.target):le(e)&&!ee(l.target,e)?r.current?r.current.focus():$&&$.current&&xe($.current):le(e)&&(r.current=l.target)},c=l=>{a.current&&cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{if(s.activeElement&&le(e)&&!ee(s.activeElement,e))if($=e,s.body.contains(l.target)){var d;r.current=l.target,(d=r.current)===null||d===void 0||d.focus()}else $.current&&xe($.current)})};return s.addEventListener("keydown",i,!1),s.addEventListener("focusin",n,!1),o==null||o.forEach(l=>l.addEventListener("focusin",n,!1)),o==null||o.forEach(l=>l.addEventListener("focusout",c,!1)),()=>{s.removeEventListener("keydown",i,!1),s.removeEventListener("focusin",n,!1),o==null||o.forEach(l=>l.removeEventListener("focusin",n,!1)),o==null||o.forEach(l=>l.removeEventListener("focusout",c,!1))}},[e,t]),U(()=>()=>{a.current&&cancelAnimationFrame(a.current)},[a])}function Ae(e){return ee(e)}function L(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function ee(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of C.traverse(C.getTreeNode(t)))if(r&&L(e,r.current))return!0;return!1}function de(e,t){var r;let a=(r=C.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;a;){if(a.scopeRef===e)return!0;a=a.parent}return!1}function q(e,t=!1){if(e!=null&&!t)try{nt(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Re(e,t=!0){let r=e[0].previousElementSibling,a=Z(e),o=X(a,{tabbable:t},e);o.currentNode=r;let s=o.nextNode();return t&&!s&&(a=Z(e),o=X(a,{tabbable:!1},e),o.currentNode=r,s=o.nextNode()),s}function xe(e,t=!0){q(Re(e,t))}function qt(e,t){const r=oe.useRef(t);m.useEffect(()=>{if(r.current){$=e;const a=O(e.current?e.current[0]:void 0);!L(a.activeElement,$.current)&&e.current&&xe(e.current)}r.current=!1},[e])}function Yt(e,t,r){U(()=>{if(t||r)return;let a=e.current;const o=O(a?a[0]:void 0);let s=i=>{let n=i.target;L(n,e.current)?$=e:Ae(n)||($=null)};return o.addEventListener("focusin",s,!1),a==null||a.forEach(i=>i.addEventListener("focusin",s,!1)),()=>{o.removeEventListener("focusin",s,!1),a==null||a.forEach(i=>i.removeEventListener("focusin",s,!1))}},[e,t,r])}function ke(e){let t=C.getTreeNode($);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Gt(e,t,r){const a=m.useRef(typeof document<"u"?O(e.current?e.current[0]:void 0).activeElement:null);U(()=>{let o=e.current;const s=O(o?o[0]:void 0);if(!t||r)return;let i=()=>{(!$||de($,e))&&L(s.activeElement,e.current)&&($=e)};return s.addEventListener("focusin",i,!1),o==null||o.forEach(n=>n.addEventListener("focusin",i,!1)),()=>{s.removeEventListener("focusin",i,!1),o==null||o.forEach(n=>n.removeEventListener("focusin",i,!1))}},[e,r]),U(()=>{const o=O(e.current?e.current[0]:void 0);if(!t)return;let s=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!le(e)||i.isComposing)return;let n=o.activeElement;if(!ee(n,e)||!ke(e))return;let c=C.getTreeNode(e);if(!c)return;let l=c.nodeToRestore,d=X(o.body,{tabbable:!0});d.currentNode=n;let u=i.shiftKey?d.previousNode():d.nextNode();if((!l||!o.body.contains(l)||l===o.body)&&(l=void 0,c.nodeToRestore=void 0),(!u||!ee(u,e))&&l){d.currentNode=l;do u=i.shiftKey?d.previousNode():d.nextNode();while(ee(u,e));i.preventDefault(),i.stopPropagation(),u?q(u,!0):Ae(l)?q(l,!0):n.blur()}};return r||o.addEventListener("keydown",s,!0),()=>{r||o.removeEventListener("keydown",s,!0)}},[e,t,r]),U(()=>{const o=O(e.current?e.current[0]:void 0);if(!t)return;let s=C.getTreeNode(e);if(s){var i;return s.nodeToRestore=(i=a.current)!==null&&i!==void 0?i:void 0,()=>{let n=C.getTreeNode(e);if(!n)return;let c=n.nodeToRestore;if(t&&c&&(o.activeElement&&ee(o.activeElement,e)||o.activeElement===o.body&&ke(e))){let l=C.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=l.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){Ke(d.nodeToRestore);return}d=d.parent}for(d=l.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&C.getTreeNode(d.scopeRef)){let u=Re(d.scopeRef.current,!0);Ke(u);return}d=d.parent}}})}}}},[e,t])}function Ke(e){e.dispatchEvent(new CustomEvent($e,{bubbles:!0,cancelable:!0}))&&q(e)}function X(e,t,r){let a=t!=null&&t.tabbable?zt:Vt,o=O(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(s){var i;return!(t==null||(i=t.from)===null||i===void 0)&&i.contains(s)?NodeFilter.FILTER_REJECT:s.matches(a)&&Fe(s)&&(!r||L(s,r))&&(!(t!=null&&t.accept)||t.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class Se{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,a){let o=this.fastMap.get(r??null);if(!o)return;let s=new we({scopeRef:t});o.addChild(s),s.parent=o,this.fastMap.set(t,s),a&&(s.nodeToRestore=a)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let a=r.parent;for(let s of this.traverse())s!==r&&r.nodeToRestore&&s.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&L(s.nodeToRestore,r.scopeRef.current)&&(s.nodeToRestore=r.nodeToRestore);let o=r.children;a&&(a.removeChild(r),o.size>0&&o.forEach(s=>a&&a.addChild(s))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new Se;var a;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(a=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&a!==void 0?a:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new we({scopeRef:null}),this.fastMap.set(null,this.root)}}class we{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let C=new Se;var[Jt,Le]=st({name:"DropdownContext",errorMessage:"useDropdownContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"});function Xt(e){const{isSelected:t,disableAnimation:r,...a}=e;return g.jsx("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...a,children:g.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:r?{}:{transition:"stroke-dashoffset 200ms ease"}})})}const je=new WeakMap;function Qt(e,t,r){let{shouldFocusWrap:a=!0,onKeyDown:o,onKeyUp:s,...i}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let n=_e(e,{labelable:!0}),{listProps:c}=xt({...i,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:a,linkBehavior:"override"});return je.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:De(n,{onKeyDown:o,onKeyUp:s},{role:"menu",...c,onKeyDown:l=>{var d;l.key!=="Escape"&&((d=c.onKeyDown)===null||d===void 0||d.call(c,l))}})}}function Zt(e,t,r){let{id:a,key:o,closeOnSelect:s,isVirtualized:i,"aria-haspopup":n,onPressStart:c,onPressUp:l,onPress:d,onPressChange:u,onPressEnd:f,onHoverStart:p,onHoverChange:v,onHoverEnd:N,onKeyDown:b,onKeyUp:D,onFocus:k,onFocusChange:w,onBlur:T,selectionManager:h=t.selectionManager}=e,y=!!n,j=y&&e["aria-expanded"]==="true";var E;let I=(E=e.isDisabled)!==null&&E!==void 0?E:h.isDisabled(o);var A;let F=(A=e.isSelected)!==null&&A!==void 0?A:h.isSelected(o),H=je.get(t),x=t.collection.getItem(o),R=e.onClose||H.onClose,B=lt(),P=S=>{var se;if(!y){if(!(x==null||(se=x.props)===null||se===void 0)&&se.onAction?x.props.onAction():e.onAction&&e.onAction(o),H.onAction){let ge=H.onAction;ge(o)}S.target instanceof HTMLAnchorElement&&x&&B.open(S.target,S,x.props.href,x.props.routerOptions)}},K="menuitem";y||(h.selectionMode==="single"?K="menuitemradio":h.selectionMode==="multiple"&&(K="menuitemcheckbox"));let M=ye(),V=ye(),re=ye(),Y={id:a,"aria-disabled":I||void 0,role:K,"aria-label":e["aria-label"],"aria-labelledby":M,"aria-describedby":[V,re].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":n,"aria-expanded":e["aria-expanded"]};h.selectionMode!=="none"&&!y&&(Y["aria-checked"]=F),i&&(Y["aria-posinset"]=x==null?void 0:x.index,Y["aria-setsize"]=wt(t.collection));let ae=S=>{S.pointerType==="keyboard"&&P(S),c==null||c(S)},ue=S=>{S.pointerType!=="keyboard"&&(P(S),!y&&R&&(s??(h.selectionMode!=="multiple"||h.isLink(o)))&&R()),l==null||l(S)},{itemProps:G,isFocused:fe}=Dt({selectionManager:h,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:pe,isPressed:ve}=_t({onPressStart:ae,onPress:d,onPressUp:ue,onPressChange:u,onPressEnd:f,isDisabled:I}),{hoverProps:be}=Kt({isDisabled:I,onHoverStart(S){!it()&&!(j&&n==="dialog")&&(h.setFocused(!0),h.setFocusedKey(o)),p==null||p(S)},onHoverChange:v,onHoverEnd:N}),{keyboardProps:ie}=dt({onKeyDown:S=>{if(S.repeat){S.continuePropagation();return}switch(S.key){case" ":!I&&h.selectionMode==="none"&&!y&&s!==!1&&R&&R();break;case"Enter":!I&&s!==!1&&!y&&R&&R();break;default:y||S.continuePropagation(),b==null||b(S);break}},onKeyUp:D}),{focusProps:he}=ct({onBlur:T,onFocus:k,onFocusChange:w}),ne=_e(x==null?void 0:x.props);delete ne.id;let z=ut(x==null?void 0:x.props);return{menuItemProps:{...Y,...De(ne,z,y?{onFocus:G.onFocus,"data-key":G["data-key"]}:G,pe,be,ie,he),tabIndex:G.tabIndex!=null&&j?-1:G.tabIndex},labelProps:{id:M},descriptionProps:{id:V},keyboardShortcutProps:{id:re},isFocused:fe,isSelected:F,isPressed:ve,isDisabled:I}}function er(e){let{heading:t,"aria-label":r}=e,a=ft();return{itemProps:{role:"presentation"},headingProps:t?{id:a,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?a:void 0}}}function tr(e){var t,r;const a=Ee(),[o,s]=pt(e,Te.variantKeys),{as:i,item:n,state:c,shortcut:l,description:d,startContent:u,endContent:f,isVirtualized:p,selectedIcon:v,className:N,classNames:b,onAction:D,autoFocus:k,onPress:w,onPressStart:T,onPressUp:h,onPressEnd:y,onPressChange:j,onHoverStart:E,onHoverChange:I,onHoverEnd:A,hideSelectedIcon:F=!1,isReadOnly:H=!1,closeOnSelect:x,onClose:R,onClick:B,...P}=o,K=(r=(t=e.disableAnimation)!=null?t:a==null?void 0:a.disableAnimation)!=null?r:!1,M=m.useRef(null),V=i||(P!=null&&P.href?"a":"li"),re=typeof V=="string",{rendered:Y,key:ae}=n,ue=c.disabledKeys.has(ae)||e.isDisabled,G=c.selectionManager.selectionMode!=="none",fe=Et(),{isFocusVisible:pe,focusProps:ve}=vt({autoFocus:k});B&&typeof B=="function"&&bt("onClick is deprecated, please use onPress instead. See: https://github.com/heroui-inc/heroui/issues/4292","MenuItem");const be=m.useCallback(_=>{B==null||B(_),w==null||w(_)},[B,w]),{isPressed:ie,isFocused:he,isSelected:ne,isDisabled:z,menuItemProps:S,labelProps:se,descriptionProps:ge,keyboardShortcutProps:ze}=Zt({key:ae,onClose:R,isDisabled:ue,onPress:be,onPressStart:T,onPressUp:h,onPressEnd:y,onPressChange:j,"aria-label":o["aria-label"],closeOnSelect:x,isVirtualized:p,onAction:D},c,M);let{hoverProps:We,isHovered:Ce}=ht({isDisabled:z,onHoverStart(_){Pt()||(c.selectionManager.setFocused(!0),c.selectionManager.setFocusedKey(ae)),E==null||E(_)},onHoverChange:I,onHoverEnd:A}),me=S;const Q=m.useMemo(()=>Te({...s,isDisabled:z,disableAnimation:K,hasTitleTextChild:typeof Y=="string",hasDescriptionTextChild:typeof d=="string"}),[gt(s),z,K,Y,d]),qe=te(b==null?void 0:b.base,N);H&&(me=mt(me));const Ye=(_={})=>({ref:M,...J(H?{}:ve,Ie(P,{enabled:re}),me,We,_),"data-focus":W(he),"data-selectable":W(G),"data-hover":W(fe?Ce||ie:Ce),"data-disabled":W(z),"data-selected":W(ne),"data-pressed":W(ie),"data-focus-visible":W(pe),className:Q.base({class:te(qe,_.className)})}),Ge=(_={})=>({...J(se,_),className:Q.title({class:b==null?void 0:b.title})}),Je=(_={})=>({...J(ge,_),className:Q.description({class:b==null?void 0:b.description})}),Xe=(_={})=>({...J(ze,_),className:Q.shortcut({class:b==null?void 0:b.shortcut})}),Qe=m.useCallback((_={})=>({"aria-hidden":W(!0),"data-disabled":W(z),className:Q.selectedIcon({class:b==null?void 0:b.selectedIcon}),..._}),[z,Q,b]);return{Component:V,domRef:M,slots:Q,classNames:b,isSelectable:G,isSelected:ne,isDisabled:z,rendered:Y,shortcut:l,description:d,startContent:u,endContent:f,selectedIcon:v,disableAnimation:K,getItemProps:Ye,getLabelProps:Ge,hideSelectedIcon:F,getDescriptionProps:Je,getKeyboardShortcutProps:Xe,getSelectedIconProps:Qe}}var Oe=e=>{const{Component:t,slots:r,classNames:a,rendered:o,shortcut:s,description:i,isSelectable:n,isSelected:c,isDisabled:l,selectedIcon:d,startContent:u,endContent:f,disableAnimation:p,hideSelectedIcon:v,getItemProps:N,getLabelProps:b,getDescriptionProps:D,getKeyboardShortcutProps:k,getSelectedIconProps:w}=tr(e),T=m.useMemo(()=>{const h=g.jsx(Xt,{disableAnimation:p,isSelected:c});return typeof d=="function"?d({icon:h,isSelected:c,isDisabled:l}):d||h},[d,c,l,p]);return g.jsxs(t,{...N(),children:[u,i?g.jsxs("div",{className:r.wrapper({class:a==null?void 0:a.wrapper}),children:[g.jsx("span",{...b(),children:o}),g.jsx("span",{...D(),children:i})]}):g.jsx("span",{...b(),children:o}),s&&g.jsx("kbd",{...k(),children:s}),n&&!v&&g.jsx("span",{...w(),children:T}),f]})};Oe.displayName="HeroUI.MenuItem";var He=Oe,Be=Pe(({item:e,state:t,as:r,variant:a,color:o,disableAnimation:s,onAction:i,closeOnSelect:n,className:c,classNames:l,showDivider:d=!1,hideSelectedIcon:u,dividerProps:f={},itemClasses:p,title:v,...N},b)=>{const D=r||"li",k=m.useMemo(()=>Nt(),[]),w=te(l==null?void 0:l.base,c),T=te(l==null?void 0:l.divider,f==null?void 0:f.className),{itemProps:h,headingProps:y,groupProps:j}=er({heading:e.rendered,"aria-label":e["aria-label"]});return g.jsxs(D,{"data-slot":"base",...J(h,N),className:k.base({class:w}),children:[e.rendered&&g.jsx("span",{...y,className:k.heading({class:l==null?void 0:l.heading}),"data-slot":"heading",children:e.rendered}),g.jsxs("ul",{...j,className:k.group({class:l==null?void 0:l.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(E=>{const{key:I,props:A}=E;let F=g.jsx(He,{classNames:p,closeOnSelect:n,color:o,disableAnimation:s,hideSelectedIcon:u,item:E,state:t,variant:a,onAction:i,...A},I);return E.wrapper&&(F=E.wrapper(F)),F}),d&&g.jsx(St,{as:"li",className:k.divider({class:T}),...f})]})]})});Be.displayName="HeroUI.MenuSection";var rr=Be;class or{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var a;return r&&(a=r.prevKey)!==null&&a!==void 0?a:null}getKeyAfter(t){let r=this.keyMap.get(t);var a;return r&&(a=r.nextKey)!==null&&a!==void 0?a:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}constructor(t,{expandedKeys:r}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,r=r||new Set;let a=n=>{if(this.keyMap.set(n.key,n),n.childNodes&&(n.type==="section"||r.has(n.key)))for(let c of n.childNodes)a(c)};for(let n of t)a(n);let o=null,s=0;for(let[n,c]of this.keyMap)o?(o.nextKey=n,c.prevKey=o.key):(this.firstKey=n,c.prevKey=void 0),c.type==="item"&&(c.index=s++),o=c,o.nextKey=void 0;var i;this.lastKey=(i=o==null?void 0:o.key)!==null&&i!==void 0?i:null}}function ar(e){let{onExpandedChange:t}=e,[r,a]=yt(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=It(e),s=m.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=Ft(e,m.useCallback(c=>new or(c,{expandedKeys:r}),[r]),null);return m.useEffect(()=>{o.focusedKey!=null&&!i.getItem(o.focusedKey)&&o.setFocusedKey(null)},[i,o.focusedKey]),{collection:i,expandedKeys:r,disabledKeys:s,toggleKey:c=>{a(nr(r,c))},setExpandedKeys:a,selectionManager:new At(i,o)}}function nr(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}function sr(e){var t;const r=Ee(),{as:a,ref:o,variant:s,color:i,children:n,disableAnimation:c=(t=r==null?void 0:r.disableAnimation)!=null?t:!1,onAction:l,closeOnSelect:d,itemClasses:u,className:f,state:p,topContent:v,bottomContent:N,hideEmptyContent:b=!1,hideSelectedIcon:D=!1,emptyContent:k="No items.",menuProps:w,onClose:T,classNames:h,...y}=e,j=a||"ul",E=$t(o),I=typeof j=="string",A=ar({...y,...w,children:n}),F=p||A,{menuProps:H}=Qt({...y,...w,onAction:l},F,E),x=m.useMemo(()=>Ct({className:f}),[f]),R=te(h==null?void 0:h.base,f);return{Component:j,state:F,variant:s,color:i,disableAnimation:c,onClose:T,topContent:v,bottomContent:N,closeOnSelect:d,className:f,itemClasses:u,getBaseProps:(M={})=>({ref:E,"data-slot":"base",className:x.base({class:R}),...Ie(y,{enabled:I}),...M}),getListProps:(M={})=>({"data-slot":"list",className:x.list({class:h==null?void 0:h.list}),...H,...M}),hideEmptyContent:b,hideSelectedIcon:D,getEmptyContentProps:(M={})=>({children:k,className:x.emptyContent({class:h==null?void 0:h.emptyContent}),...M})}}var lr=Pe(function(t,r){const{Component:a,state:o,closeOnSelect:s,color:i,disableAnimation:n,hideSelectedIcon:c,hideEmptyContent:l,variant:d,onClose:u,topContent:f,bottomContent:p,itemClasses:v,getBaseProps:N,getListProps:b,getEmptyContentProps:D}=sr({...t,ref:r}),k=g.jsxs(a,{...b(),children:[!o.collection.size&&!l&&g.jsx("li",{children:g.jsx("div",{...D()})}),[...o.collection].map(w=>{const T={closeOnSelect:s,color:i,disableAnimation:n,item:w,state:o,variant:d,onClose:u,hideSelectedIcon:c,...w.props},h=jt(v,T==null?void 0:T.classNames);if(w.type==="section")return g.jsx(rr,{...T,itemClasses:h},w.key);let y=g.jsx(He,{...T,classNames:h},w.key);return w.wrapper&&(y=w.wrapper(y)),y})]});return g.jsxs("div",{...N(),children:[f,k,p]})}),ir=lr,dr=Ze,Er=dr,cr=Pe(function(t,r){const{getMenuProps:a}=Le();return g.jsx(et,{children:g.jsx(Bt,{contain:!0,restoreFocus:!0,children:g.jsx(ir,{...a(t,r)})})})}),Pr=cr,Ue=e=>{const{getMenuTriggerProps:t}=Le(),{children:r,...a}=e;return g.jsx(tt,{...t(a),children:r})};Ue.displayName="HeroUI.DropdownTrigger";var Nr=Ue,ur=(e,t)=>{if(e){const r=Array.isArray(e.children)?e.children:[...(e==null?void 0:e.items)||[]];if(r&&r.length)return r.find(o=>{if(o&&o.key===t)return o})||{}}return null},fr=(e,t,r)=>{const a=r||ur(e,t);return a&&a.props&&"closeOnSelect"in a.props?a.props.closeOnSelect:e==null?void 0:e.closeOnSelect};function pr(e){var t;const r=Ee(),{as:a,triggerRef:o,isOpen:s,defaultOpen:i,onOpenChange:n,isDisabled:c,type:l="menu",trigger:d="press",placement:u="bottom",closeOnSelect:f=!0,shouldBlockScroll:p=!0,classNames:v,disableAnimation:N=(t=r==null?void 0:r.disableAnimation)!=null?t:!1,onClose:b,className:D,...k}=e,w=a||"div",T=m.useRef(null),h=o||T,y=m.useRef(null),j=m.useRef(null),E=Tt({trigger:d,isOpen:s,defaultOpen:i,onOpenChange:P=>{n==null||n(P),P||b==null||b()}}),{menuTriggerProps:I,menuProps:A}=Mt({type:l,trigger:d,isDisabled:c},E,h),F=m.useMemo(()=>Lt({className:D}),[D]),H=P=>{P!==void 0&&!P||f&&E.close()},x=(P={})=>{const K=J(k,P);return{state:E,placement:u,ref:j,disableAnimation:N,shouldBlockScroll:p,scrollRef:y,triggerRef:h,...K,classNames:{...v,...P.classNames,content:te(F,v==null?void 0:v.content,P.className)},shouldCloseOnInteractOutside:K!=null&&K.shouldCloseOnInteractOutside?K.shouldCloseOnInteractOutside:M=>kt(M,T,E)}},R=(P={})=>{const{onPress:K,onPressStart:M,...V}=I;return J(V,{isDisabled:c},P)},B=(P,K=null)=>({ref:Rt(K,y),menuProps:A,closeOnSelect:f,...J(P,{onAction:(M,V)=>{const re=fr(P,M,V);H(re)},onClose:E.close})});return{Component:w,menuRef:y,menuProps:A,classNames:F,closeOnSelect:f,onClose:E.close,autoFocus:E.focusStrategy||!0,disableAnimation:N,getPopoverProps:x,getMenuProps:B,getMenuTriggerProps:R}}var Ve=e=>{const{children:t,...r}=e,a=pr(r),[o,s]=oe.Children.toArray(t);return g.jsx(Jt,{value:a,children:g.jsxs(rt,{...a.getPopoverProps(),children:[o,s]})})};Ve.displayName="HeroUI.Dropdown";var Sr=Ve;export{Nr as a,Pr as b,Sr as d,Er as m};
diff --git a/release-tools/webui-static/assets/chunk-KVDW62ZT-CGYYmJoP.js b/release-tools/webui-static/assets/chunk-KVDW62ZT-CGYYmJoP.js
new file mode 100644
index 0000000..375c034
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-KVDW62ZT-CGYYmJoP.js
@@ -0,0 +1,5 @@
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Crbd1Tvi.js","assets/features-animation-BkV7kg8P.js","assets/gestures-BHfQC-M8.js","assets/react-vendor-jWT2yUdV.js","assets/qface-BZLvZXJ8.js","assets/index-DiaaLdUu.js","assets/react-hot-toast-cGcFZPSt.js","assets/react-router-dom-C6k78GT4.js","assets/index-CBRelCj8.css"])))=>i.map(i=>d[i]);
+import{$ as la}from"./Item-D8Sud-UP.js";import{t as Ee,f as It,aK as oa,aL as na,a6 as ge,ap as et,an as Ze,aM as ia,aN as kt,aO as Re,a7 as zt,aP as At,a8 as Me,as as _e,aQ as ua,a9 as da,ac as bt,aj as ca,v as Le,y as $e,X as F,Y as we,x as Ke,w as fa,l as ha,av as Bt,z as tt,B as Ie,aw as ga,D as z,n as _,E as be,aR as pa,aS as Ot,aT as ba,aJ as Rt,aU as va,aV as ma,aW as ya,aX as xa,aA as $a,aC as _t,aD as wa,aE as Nt,aF as Ft,aH as Sa,aB as vt,a2 as Pa,aY as Ca,m as Da,aZ as Ma,al as Ea,aG as Ka,ao as Ia,a3 as Xe,a_ as ka,s as za,A as Aa}from"./index-DiaaLdUu.js";import{r as f,j as y,R as de,d as Ba}from"./react-vendor-jWT2yUdV.js";import{e as Oa,$ as Ra,f as _a,h as Na,j as Fa,i as La,k as Ta}from"./SelectionManager-Dl9uHsLK.js";import{$ as ja,a as Va,t as Wa,p as mt,b as Ha,c as yt,g as Ua,d as qa}from"./chunk-WQVQ7P2I-BJd1EiqP.js";import{$ as Xa,a as Ya,u as Ga,b as Ja}from"./chunk-SLABUSGS-Cmz8sGrU.js";import{$ as xt,a as Za}from"./DOMLayoutDelegate-DOgfSALU.js";import{$ as Qa}from"./useHover-DC1o5-bm.js";import{d as er}from"./chunk-AXSF7SRE-Cr4elNVq.js";var tr=["data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],sr=["data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],Ne=Ee({base:[],variants:{orientation:{vertical:["overflow-y-auto",...tr],horizontal:["overflow-x-auto",...sr]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}}),$t=Ee({slots:{base:["group inline-flex flex-col relative"],label:["block","absolute","z-10","origin-top-left","rtl:origin-top-right","subpixel-antialiased","text-small","text-foreground-500","pointer-events-none"],mainWrapper:"w-full flex flex-col",trigger:"relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",innerWrapper:"inline-flex h-full w-[calc(100%_-_theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",selectorIcon:"absolute end-3 w-4 h-4",spinner:"absolute end-3",value:["text-foreground-500","font-normal","w-full","text-start"],listboxWrapper:"scroll-py-6 w-full",listbox:"",popoverContent:"w-full p-1 overflow-hidden",helperWrapper:"p-1 flex relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{trigger:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-200"]},faded:{trigger:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 data-[focus=true]:border-default-400 data-[open=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{trigger:["border-medium","border-default-200","data-[hover=true]:border-default-400","data-[open=true]:border-default-foreground","data-[focus=true]:border-default-foreground"],value:"group-data-[has-value=true]:text-default-foreground"},underlined:{trigger:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","data-[open=true]:after:w-full","data-[focus=true]:after:w-full"],value:"group-data-[has-value=true]:text-default-foreground"}},color:{default:{},primary:{selectorIcon:"text-primary"},secondary:{selectorIcon:"text-secondary"},success:{selectorIcon:"text-success"},warning:{selectorIcon:"text-warning"},danger:{selectorIcon:"text-danger"}},size:{sm:{label:"text-tiny",trigger:"h-8 min-h-8 px-2 rounded-small",value:"text-small"},md:{trigger:"h-10 min-h-10 rounded-medium",value:"text-small"},lg:{trigger:"h-12 min-h-12 rounded-large",value:"text-medium"}},radius:{none:{trigger:"rounded-none"},sm:{trigger:"rounded-small"},md:{trigger:"rounded-medium"},lg:{trigger:"rounded-large"},full:{trigger:"rounded-full"}},labelPlacement:{outside:{base:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap items-start",label:"relative pe-2 text-foreground"},inside:{label:"text-tiny cursor-pointer",trigger:"flex-col items-start justify-center gap-0"}},fullWidth:{true:{base:"w-full"},false:{base:"min-w-40"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",trigger:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",value:"!text-danger",selectorIcon:"text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",trigger:"!h-auto"},false:{value:"truncate"}},disableAnimation:{true:{trigger:"after:transition-none",base:"transition-none",label:"transition-none",selectorIcon:"transition-none"},false:{base:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","origin-top-left","rtl:origin-top-right","!duration-200","!ease-out","transition-[transform,color,left,opacity]","motion-reduce:transition-none"],selectorIcon:"transition-transform duration-150 ease motion-reduce:transition-none"}},disableSelectorIconRotation:{true:{},false:{selectorIcon:"data-[open=true]:rotate-180"}}},defaultVariants:{variant:"flat",color:"default",size:"md",labelPlacement:"inside",fullWidth:!0,isDisabled:!1,isMultiline:!1,disableSelectorIconRotation:!1},compoundVariants:[{variant:"flat",color:"default",class:{value:"group-data-[has-value=true]:text-default-foreground",trigger:["bg-default-100","data-[hover=true]:bg-default-200"]}},{variant:"flat",color:"primary",class:{trigger:["bg-primary-100","text-primary","data-[hover=true]:bg-primary-50","group-data-[focus=true]:bg-primary-50"],value:"text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{trigger:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50"],value:"text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{trigger:["bg-success-100","text-success-600","dark:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],value:"text-success-600 dark:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{trigger:["bg-warning-100","text-warning-600","dark:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],value:"text-warning-600 dark:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{trigger:["bg-danger-100","text-danger","dark:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],value:"text-danger dark:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{trigger:"data-[hover=true]:border-primary data-[focus=true]:border-primary data-[open=true]:border-primary",label:"text-primary"}},{variant:"faded",color:"secondary",class:{trigger:"data-[hover=true]:border-secondary data-[focus=true]:border-secondary data-[open=true]:border-secondary",label:"text-secondary"}},{variant:"faded",color:"success",class:{trigger:"data-[hover=true]:border-success data-[focus=true]:border-success data-[open=true]:border-success",label:"text-success"}},{variant:"faded",color:"warning",class:{trigger:"data-[hover=true]:border-warning data-[focus=true]:border-warning data-[open=true]:border-warning",label:"text-warning"}},{variant:"faded",color:"danger",class:{trigger:"data-[hover=true]:border-danger data-[focus=true]:border-danger data-[open=true]:border-danger",label:"text-danger"}},{variant:"underlined",color:"default",class:{value:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{trigger:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{trigger:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{trigger:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{trigger:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{trigger:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{trigger:["data-[open=true]:border-primary","data-[focus=true]:border-primary"],label:"text-primary"}},{variant:"bordered",color:"secondary",class:{trigger:["data-[open=true]:border-secondary","data-[focus=true]:border-secondary"],label:"text-secondary"}},{variant:"bordered",color:"success",class:{trigger:["data-[open=true]:border-success","data-[focus=true]:border-success"],label:"text-success"}},{variant:"bordered",color:"warning",class:{trigger:["data-[open=true]:border-warning","data-[focus=true]:border-warning"],label:"text-warning"}},{variant:"bordered",color:"danger",class:{trigger:["data-[open=true]:border-danger","data-[focus=true]:border-danger"],label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled=true]:text-foreground"}},{radius:"full",size:["sm"],class:{trigger:"px-3"}},{radius:"full",size:"md",class:{trigger:"px-4"}},{radius:"full",size:"lg",class:{trigger:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{trigger:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{trigger:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{trigger:[...It]}},{isInvalid:!0,variant:"flat",class:{trigger:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{trigger:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{trigger:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{trigger:"h-12 min-h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{trigger:"h-14 min-h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-medium",trigger:"h-16 min-h-16 py-2.5 gap-0"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled=true]:start-0"]}},{labelPlacement:["inside"],class:{label:"group-data-[filled=true]:scale-85"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-5"}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"md",class:{label:["start-3","text-small","group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"lg",class:{label:["start-3","text-medium","group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}}]}),ar=Ee({slots:{base:"w-full relative flex flex-col gap-1 p-1 overflow-clip",list:"w-full flex flex-col gap-0.5 outline-none",emptyContent:["h-10","px-2","py-1.5","w-full","h-full","text-foreground-400","text-start"]}}),wt=Ee({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","subpixel-antialiased","outline-none","cursor-pointer","tap-highlight-transparent",...It,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","flex-shrink-0"],shortcut:["px-1","py-0.5","rounded","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:["border-small border-transparent hover:border-default data-[hover=true]:bg-default-100","data-[selectable=true]:focus:border-default data-[selectable=true]:focus:bg-default-100"]},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},showDivider:{true:{base:["mb-1.5","after:content-['']","after:absolute","after:-bottom-1","after:left-0","after:right-0","after:h-divider","after:bg-divider"]},false:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{base:"data-[hover=true]:transition-colors"}},hasTitleTextChild:{true:{title:"truncate"}},hasDescriptionTextChild:{true:{description:"truncate"}}},defaultVariants:{variant:"solid",color:"default",showDivider:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:["data-[hover=true]:bg-default","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"solid",color:"primary",class:{base:["data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"solid",color:"secondary",class:{base:["data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"solid",color:"success",class:{base:["data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"solid",color:"warning",class:{base:["data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"solid",color:"danger",class:{base:["data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"shadow",color:"default",class:{base:["data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:shadow-default/50 data-[selectable=true]:focus:bg-default data-[selectable=true]:focus:text-default-foreground"]}},{variant:"shadow",color:"primary",class:{base:["data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:shadow-primary/30 data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"shadow",color:"secondary",class:{base:["data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:shadow-secondary/30 data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"shadow",color:"success",class:{base:["data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:shadow-success/30 data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"shadow",color:"warning",class:{base:["data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:shadow-warning/30 data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"shadow",color:"danger",class:{base:["data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:shadow-danger/30 data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"bordered",color:"default",class:{base:["data-[hover=true]:border-default","data-[selectable=true]:focus:border-default"]}},{variant:"bordered",color:"primary",class:{base:["data-[hover=true]:border-primary data-[hover=true]:text-primary","data-[selectable=true]:focus:border-primary data-[selectable=true]:focus:text-primary"]}},{variant:"bordered",color:"secondary",class:{base:["data-[hover=true]:border-secondary data-[hover=true]:text-secondary","data-[selectable=true]:focus:border-secondary data-[selectable=true]:focus:text-secondary"]}},{variant:"bordered",color:"success",class:{base:["data-[hover=true]:border-success data-[hover=true]:text-success","data-[selectable=true]:focus:border-success data-[selectable=true]:focus:text-success"]}},{variant:"bordered",color:"warning",class:{base:["data-[hover=true]:border-warning data-[hover=true]:text-warning","data-[selectable=true]:focus:border-warning data-[selectable=true]:focus:text-warning"]}},{variant:"bordered",color:"danger",class:{base:["data-[hover=true]:border-danger data-[hover=true]:text-danger","data-[selectable=true]:focus:border-danger data-[selectable=true]:focus:text-danger"]}},{variant:"flat",color:"default",class:{base:["data-[hover=true]:bg-default/40","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default/40","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"flat",color:"primary",class:{base:["data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary","data-[selectable=true]:focus:bg-primary/20 data-[selectable=true]:focus:text-primary"]}},{variant:"flat",color:"secondary",class:{base:["data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary","data-[selectable=true]:focus:bg-secondary/20 data-[selectable=true]:focus:text-secondary"]}},{variant:"flat",color:"success",class:{base:["data-[hover=true]:bg-success/20 data-[hover=true]:text-success","data-[selectable=true]:focus:bg-success/20 data-[selectable=true]:focus:text-success"]}},{variant:"flat",color:"warning",class:{base:["data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning","data-[selectable=true]:focus:bg-warning/20 data-[selectable=true]:focus:text-warning"]}},{variant:"flat",color:"danger",class:{base:["data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger","data-[selectable=true]:focus:bg-danger/20 data-[selectable=true]:focus:text-danger"]}},{variant:"faded",color:"default",class:{base:["data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"faded",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"faded",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"faded",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"faded",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"faded",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}},{variant:"light",color:"default",class:{base:["data-[hover=true]:text-default-500","data-[selectable=true]:focus:text-default-500"]}},{variant:"light",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"light",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"light",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"light",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"light",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}}]}),rr=Ee({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}});let Ye=new Map;function lr(a){let{locale:t}=oa(),e=t+(a?Object.entries(a).sort((r,l)=>r[0]{t.current=a},[a]),f.useCallback((...e)=>{const s=t.current;return s==null?void 0:s(...e)},[])}function nr(a,t,e){let s=f.useRef(t),r=or(()=>{e&&e(s.current)});f.useEffect(()=>{var l;let o=a==null||(l=a.current)===null||l===void 0?void 0:l.form;return o==null||o.addEventListener("reset",r),()=>{o==null||o.removeEventListener("reset",r)}},[a,r])}function ir(a,t,e){let{type:s}=a,{isOpen:r}=t;f.useEffect(()=>{e&&e.current&&ja.set(e.current,t.close)});let l;s==="menu"?l=!0:s==="listbox"&&(l="listbox");let o=ge();return{triggerProps:{"aria-haspopup":l,"aria-expanded":r,"aria-controls":r?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}let Se=null,ur=new Set,De=new Map,pe=!1,Qe=!1;function Te(a,t){for(let e of ur)e(a,t)}function dr(a){return!(a.metaKey||!kt()&&a.altKey||a.ctrlKey||a.key==="Control"||a.key==="Shift"||a.key==="Meta")}function Fe(a){pe=!0,dr(a)&&(Se="keyboard",Te("keyboard",a))}function ae(a){Se="pointer",(a.type==="mousedown"||a.type==="pointerdown")&&(pe=!0,Te("pointer",a))}function Lt(a){ia(a)&&(pe=!0,Se="virtual")}function Tt(a){a.target===window||a.target===document||(!pe&&!Qe&&(Se="virtual",Te("virtual",a)),pe=!1,Qe=!1)}function jt(){pe=!1,Qe=!0}function St(a){if(typeof window>"u"||De.get(Ze(a)))return;const t=Ze(a),e=et(a);let s=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){pe=!0,s.apply(this,arguments)},e.addEventListener("keydown",Fe,!0),e.addEventListener("keyup",Fe,!0),e.addEventListener("click",Lt,!0),t.addEventListener("focus",Tt,!0),t.addEventListener("blur",jt,!1),typeof PointerEvent<"u"?(e.addEventListener("pointerdown",ae,!0),e.addEventListener("pointermove",ae,!0),e.addEventListener("pointerup",ae,!0)):(e.addEventListener("mousedown",ae,!0),e.addEventListener("mousemove",ae,!0),e.addEventListener("mouseup",ae,!0)),t.addEventListener("beforeunload",()=>{Vt(a)},{once:!0}),De.set(t,{focus:s})}const Vt=(a,t)=>{const e=Ze(a),s=et(a);t&&s.removeEventListener("DOMContentLoaded",t),De.has(e)&&(e.HTMLElement.prototype.focus=De.get(e).focus,s.removeEventListener("keydown",Fe,!0),s.removeEventListener("keyup",Fe,!0),s.removeEventListener("click",Lt,!0),e.removeEventListener("focus",Tt,!0),e.removeEventListener("blur",jt,!1),typeof PointerEvent<"u"?(s.removeEventListener("pointerdown",ae,!0),s.removeEventListener("pointermove",ae,!0),s.removeEventListener("pointerup",ae,!0)):(s.removeEventListener("mousedown",ae,!0),s.removeEventListener("mousemove",ae,!0),s.removeEventListener("mouseup",ae,!0)),De.delete(e))};function cr(a){const t=et(a);let e;return t.readyState!=="loading"?St(a):(e=()=>{St(a)},t.addEventListener("DOMContentLoaded",e)),()=>Vt(a,e)}typeof document<"u"&&cr();function Ul(){return Se!=="pointer"}function fr(a){Se=a,Te(a,null)}var hr=({strokeWidth:a=1.5,...t})=>y.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:a,viewBox:"0 0 24 24",width:"1em",...t,children:y.jsx("path",{d:"m6 9 6 6 6-6"})});const gr=new WeakMap;function pr(a,t,e){let{type:s}=a,{isOpen:r}=t;f.useEffect(()=>{e&&e.current&&gr.set(e.current,t.close)});let l;s==="menu"?l=!0:s==="listbox"&&(l="listbox");let o=ge();return{triggerProps:{"aria-haspopup":l,"aria-expanded":r,"aria-controls":r?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}var Ce=new WeakMap,se=[];function br(a,t=document.body){let e=new Set(a),s=new Set,r=u=>{for(let b of u.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))e.add(b);let i=b=>{if(e.has(b)||b.parentElement&&s.has(b.parentElement)&&b.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of e)if(b.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(u,NodeFilter.SHOW_ELEMENT,{acceptNode:i}),c=i(u);if(c===NodeFilter.FILTER_ACCEPT&&l(u),c!==NodeFilter.FILTER_REJECT){let b=d.nextNode();for(;b!=null;)l(b),b=d.nextNode()}},l=u=>{var i;let d=(i=Ce.get(u))!=null?i:0;u.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&u.setAttribute("aria-hidden","true"),s.add(u),Ce.set(u,d+1))};se.length&&se[se.length-1].disconnect(),r(t);let o=new MutationObserver(u=>{for(let i of u)if(!(i.type!=="childList"||i.addedNodes.length===0)&&![...e,...s].some(d=>d.contains(i.target))){for(let d of i.removedNodes)d instanceof Element&&(e.delete(d),s.delete(d));for(let d of i.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?e.add(d):d instanceof Element&&r(d)}});o.observe(t,{childList:!0,subtree:!0});let n={observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return se.push(n),()=>{o.disconnect();for(let u of s){let i=Ce.get(u);i!=null&&(i===1?(u.removeAttribute("aria-hidden"),Ce.delete(u)):Ce.set(u,i-1))}n===se[se.length-1]?(se.pop(),se.length&&se[se.length-1].observe()):se.splice(se.indexOf(n),1)}}var Wt=(a,t,e)=>{const s=t==null?void 0:t.current;if(!s||!s.contains(a)){const r=document.querySelectorAll("body > span[data-focus-scope-start]");let l=[];if(r.forEach(o=>{l.push(o.nextElementSibling)}),l.length===1)return e.close(),!1}return!s||!s.contains(a)};let vr=class{isDisabled(t){var e;return this.disabledBehavior==="all"&&(((e=t.props)===null||e===void 0?void 0:e.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,e){let s=t;for(;s!=null;){let r=this.collection.getItem(s);if((r==null?void 0:r.type)==="item"&&!this.isDisabled(r))return s;s=e(s)}return null}getNextKey(t){let e=t;return e=this.collection.getKeyAfter(e),this.findNextNonDisabled(e,s=>this.collection.getKeyAfter(s))}getPreviousKey(t){let e=t;return e=this.collection.getKeyBefore(e),this.findNextNonDisabled(e,s=>this.collection.getKeyBefore(s))}findKey(t,e,s){let r=t,l=this.layoutDelegate.getItemRect(r);if(!l||r==null)return null;let o=l;do{if(r=e(r),r==null)break;l=this.layoutDelegate.getItemRect(r)}while(l&&s(o,l)&&r!=null);return r}isSameRow(t,e){return t.y===e.y||t.x!==e.x}isSameColumn(t,e){return t.x===e.x||t.y!==e.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,e){return e?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let e=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[e]?(t=this.layoutDelegate[e](t),this.findNextNonDisabled(t,s=>this.layoutDelegate[e](s))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,s=>this.getNextColumn(s,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let e=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[e]?(t=this.layoutDelegate[e](t),this.findNextNonDisabled(t,s=>this.layoutDelegate[e](s))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,s=>this.getNextColumn(s,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(t){let e=this.ref.current,s=this.layoutDelegate.getItemRect(t);if(!s)return null;if(e&&!Re(e))return this.getFirstKey();let r=t;if(this.orientation==="horizontal"){let l=Math.max(0,s.x+s.width-this.layoutDelegate.getVisibleRect().width);for(;s&&s.x>l&&r!=null;)r=this.getKeyAbove(r),s=r==null?null:this.layoutDelegate.getItemRect(r)}else{let l=Math.max(0,s.y+s.height-this.layoutDelegate.getVisibleRect().height);for(;s&&s.y>l&&r!=null;)r=this.getKeyAbove(r),s=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getFirstKey()}getKeyPageBelow(t){let e=this.ref.current,s=this.layoutDelegate.getItemRect(t);if(!s)return null;if(e&&!Re(e))return this.getLastKey();let r=t;if(this.orientation==="horizontal"){let l=Math.min(this.layoutDelegate.getContentSize().width,s.y-s.width+this.layoutDelegate.getVisibleRect().width);for(;s&&s.xl||new vr({collection:e,disabledKeys:s,disabledBehavior:u,ref:r,collator:n,layoutDelegate:o}),[l,o,e,s,r,n,u]),{collectionProps:d}=Oa({...a,ref:r,selectionManager:t,keyboardDelegate:i});return{listProps:d}}const Pt=new WeakMap;function yr(a){let t=Pt.get(a);if(t!=null)return t;let e=0,s=r=>{for(let l of r)l.type==="section"?s(Ra(l,a)):l.type==="item"&&e++};return s(a),Pt.set(a,e),e}var xr=la,Xl=xr;const st=new WeakMap;function $r(a){return typeof a=="string"?a.replace(/\s*/g,""):""+a}function wr(a,t){let e=st.get(a);if(!e)throw new Error("Unknown list");return`${e.id}-option-${$r(t)}`}function Sr(a,t,e){let s=zt(a,{labelable:!0}),r=a.selectionBehavior||"toggle",l=a.linkBehavior||(r==="replace"?"action":"override");r==="toggle"&&l==="action"&&(l="override");let{listProps:o}=mr({...a,ref:e,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:l}),{focusWithinProps:n}=At({onFocusWithin:a.onFocus,onBlurWithin:a.onBlur,onFocusWithinChange:a.onFocusChange}),u=ge(a.id);st.set(t,{id:u,shouldUseVirtualFocus:a.shouldUseVirtualFocus,shouldSelectOnPressUp:a.shouldSelectOnPressUp,shouldFocusOnHover:a.shouldFocusOnHover,isVirtualized:a.isVirtualized,onAction:a.onAction,linkBehavior:l});let{labelProps:i,fieldProps:d}=Xa({...a,id:u,labelElementType:"span"});return{labelProps:i,listBoxProps:Me(s,n,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Me(d,o)})}}function Pr(a,t,e){var s,r;let{key:l}=a,o=st.get(t);var n;let u=(n=a.isDisabled)!==null&&n!==void 0?n:t.selectionManager.isDisabled(l);var i;let d=(i=a.isSelected)!==null&&i!==void 0?i:t.selectionManager.isSelected(l);var c;let b=(c=a.shouldSelectOnPressUp)!==null&&c!==void 0?c:o==null?void 0:o.shouldSelectOnPressUp;var h;let g=(h=a.shouldFocusOnHover)!==null&&h!==void 0?h:o==null?void 0:o.shouldFocusOnHover;var v;let m=(v=a.shouldUseVirtualFocus)!==null&&v!==void 0?v:o==null?void 0:o.shouldUseVirtualFocus;var p;let S=(p=a.isVirtualized)!==null&&p!==void 0?p:o==null?void 0:o.isVirtualized,C=_e(),D=_e(),w={role:"option","aria-disabled":u||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?d:void 0};kt()&&ua()||(w["aria-label"]=a["aria-label"],w["aria-labelledby"]=C,w["aria-describedby"]=D);let P=t.collection.getItem(l);if(S){let O=Number(P==null?void 0:P.index);w["aria-posinset"]=Number.isNaN(O)?void 0:O+1,w["aria-setsize"]=yr(t.collection)}let k=o!=null&&o.onAction?()=>{var O;return o==null||(O=o.onAction)===null||O===void 0?void 0:O.call(o,l)}:void 0,{itemProps:K,isPressed:E,isFocused:B,hasAction:L,allowsSelection:X}=_a({selectionManager:t.selectionManager,key:l,ref:e,shouldSelectOnPressUp:b,allowsDifferentPressOrigin:b&&g,isVirtualized:S,shouldUseVirtualFocus:m,isDisabled:u,onAction:k||!(P==null||(s=P.props)===null||s===void 0)&&s.onAction?da(P==null||(r=P.props)===null||r===void 0?void 0:r.onAction,k):void 0,linkBehavior:o==null?void 0:o.linkBehavior}),{hoverProps:I}=Qa({isDisabled:u||!g,onHoverStart(){bt()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(l))}}),Y=zt(P==null?void 0:P.props);delete Y.id;let N=ca(P==null?void 0:P.props);return{optionProps:{...w,...Me(Y,K,I,N),id:wr(t,l)},labelProps:{id:C},descriptionProps:{id:D},isFocused:B,isFocusVisible:B&&bt(),isSelected:d,isDisabled:u,isPressed:E,allowsSelection:X,hasAction:L}}function Cr(a){let{heading:t,"aria-label":e}=a,s=ge();return{itemProps:{role:"presentation"},headingProps:t?{id:s,role:"presentation"}:{},groupProps:{role:"group","aria-label":e,"aria-labelledby":t?s:void 0}}}class Ct{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let e=this.keyMap.get(t);var s;return e&&(s=e.prevKey)!==null&&s!==void 0?s:null}getKeyAfter(t){let e=this.keyMap.get(t);var s;return e&&(s=e.nextKey)!==null&&s!==void 0?s:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var e;return(e=this.keyMap.get(t))!==null&&e!==void 0?e:null}at(t){const e=[...this.getKeys()];return this.getItem(e[t])}getChildren(t){let e=this.keyMap.get(t);return(e==null?void 0:e.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let e=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let n of o.childNodes)e(n)};for(let o of t)e(o);let s=null,r=0;for(let[o,n]of this.keyMap)s?(s.nextKey=o,n.prevKey=s.key):(this.firstKey=o,n.prevKey=void 0),n.type==="item"&&(n.index=r++),s=n,s.nextKey=void 0;var l;this.lastKey=(l=s==null?void 0:s.key)!==null&&l!==void 0?l:null}}function Ht(a){let{filter:t,layoutDelegate:e}=a,s=Na(a),r=f.useMemo(()=>a.disabledKeys?new Set(a.disabledKeys):new Set,[a.disabledKeys]),l=f.useCallback(d=>t?new Ct(t(d)):new Ct(d),[t]),o=f.useMemo(()=>({suppressTextValueWarning:a.suppressTextValueWarning}),[a.suppressTextValueWarning]),n=Fa(a,l,o),u=f.useMemo(()=>new La(n,s,{layoutDelegate:e}),[n,s,e]);const i=f.useRef(null);return f.useEffect(()=>{if(s.focusedKey!=null&&!n.getItem(s.focusedKey)&&i.current){const p=i.current.getItem(s.focusedKey),S=[...i.current.getKeys()].map(K=>{const E=i.current.getItem(K);return(E==null?void 0:E.type)==="item"?E:null}).filter(K=>K!==null),C=[...n.getKeys()].map(K=>{const E=n.getItem(K);return(E==null?void 0:E.type)==="item"?E:null}).filter(K=>K!==null);var d,c;const D=((d=S==null?void 0:S.length)!==null&&d!==void 0?d:0)-((c=C==null?void 0:C.length)!==null&&c!==void 0?c:0);var b,h,g;let w=Math.min(D>1?Math.max(((b=p==null?void 0:p.index)!==null&&b!==void 0?b:0)-D+1,0):(h=p==null?void 0:p.index)!==null&&h!==void 0?h:0,((g=C==null?void 0:C.length)!==null&&g!==void 0?g:0)-1),P=null,k=!1;for(;w>=0;){if(!u.isDisabled(C[w].key)){P=C[w];break}if(w((v=p==null?void 0:p.index)!==null&&v!==void 0?v:0)&&(w=(m=p==null?void 0:p.index)!==null&&m!==void 0?m:0),w--}}s.setFocusedKey(P?P.key:null)}i.current=n},[n,u,s,s.focusedKey]),{collection:n,disabledKeys:r,selectionManager:u}}function Dr(a){var t;const e=Le(),{ref:s,as:r,state:l,variant:o,color:n,onAction:u,children:i,onSelectionChange:d,disableAnimation:c=(t=e==null?void 0:e.disableAnimation)!=null?t:!1,itemClasses:b,className:h,topContent:g,bottomContent:v,emptyContent:m="No items.",hideSelectedIcon:p=!1,hideEmptyContent:S=!1,shouldHighlightOnFocus:C=!1,classNames:D,...w}=a,P=r||"ul",k=typeof P=="string",K=$e(s),E=Ht({...a,children:i,onSelectionChange:d}),B=l||E,{listBoxProps:L}=Sr({...a,onAction:u},B,K),X=f.useMemo(()=>ar({className:h}),[h]),I=F(D==null?void 0:D.base,h);return{Component:P,state:B,variant:o,color:n,slots:X,classNames:D,topContent:g,bottomContent:v,emptyContent:m,hideEmptyContent:S,shouldHighlightOnFocus:C,hideSelectedIcon:p,disableAnimation:c,className:h,itemClasses:b,getBaseProps:(W={})=>({ref:K,"data-slot":"base",className:X.base({class:I}),...we(w,{enabled:k}),...W}),getListProps:(W={})=>({"data-slot":"list",className:X.list({class:D==null?void 0:D.list}),...L,...W}),getEmptyContentProps:(W={})=>({"data-slot":"empty-content",children:m,className:X.emptyContent({class:D==null?void 0:D.emptyContent}),...W})}}function Mr(a){const{isSelected:t,disableAnimation:e,...s}=a;return y.jsx("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...s,children:y.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:e?{}:{transition:"stroke-dashoffset 200ms ease"}})})}const at={prefix:String(Math.round(Math.random()*1e10)),current:0},Ut=de.createContext(at),Er=de.createContext(!1);let Kr=!!(typeof window<"u"&&window.document&&window.document.createElement),Ge=new WeakMap;function Ir(a=!1){let t=f.useContext(Ut),e=f.useRef(null);if(e.current===null&&!a){var s,r;let l=(r=de.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||r===void 0||(s=r.ReactCurrentOwner)===null||s===void 0?void 0:s.current;if(l){let o=Ge.get(l);o==null?Ge.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==o.state&&(t.current=o.id,Ge.delete(l))}e.current=++t.current}return e.current}function kr(a){let t=f.useContext(Ut);t===at&&!Kr&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let e=Ir(!!a),s=`react-aria${t.prefix}`;return a||`${s}-${e}`}function zr(a){let t=de.useId(),[e]=f.useState(qt()),s=e?"react-aria":`react-aria${at.prefix}`;return a||`${s}-${t}`}de.useId;function Ar(){return!1}function Br(){return!0}function Or(a){return()=>{}}function qt(){return typeof de.useSyncExternalStore=="function"?de.useSyncExternalStore(Or,Ar,Br):f.useContext(Er)}var Rr=700;function _r(){return qt()||typeof window>"u"?!1:window.screen.width<=Rr}function Nr(a){var t,e;const s=Le(),[r,l]=Ke(a,wt.variantKeys),{as:o,item:n,state:u,description:i,startContent:d,endContent:c,isVirtualized:b,selectedIcon:h,className:g,classNames:v,autoFocus:m,onPress:p,onClick:S,shouldHighlightOnFocus:C,hideSelectedIcon:D=!1,isReadOnly:w=!1,...P}=r,k=(e=(t=a.disableAnimation)!=null?t:s==null?void 0:s.disableAnimation)!=null?e:!1,K=f.useRef(null),E=o||(a.href?"a":"li"),B=typeof E=="string",{rendered:L,key:X}=n,I=u.disabledKeys.has(X)||a.isDisabled,Y=u.selectionManager.selectionMode!=="none",N=_r();S&&typeof S=="function"&&fa("onClick is deprecated, please use onPress instead. See: https://github.com/heroui-inc/heroui/issues/4292","ListboxItem");const{pressProps:O,isPressed:W}=ha({ref:K,isDisabled:I,onPress:p}),{isHovered:J,hoverProps:ne}=Bt({isDisabled:I}),{isFocusVisible:H,focusProps:ie}=tt({autoFocus:m}),{isFocused:re,isSelected:oe,optionProps:T,labelProps:le,descriptionProps:U}=Pr({key:X,isDisabled:I,"aria-label":r["aria-label"],isVirtualized:b},u,K);let $=T;const Q=f.useMemo(()=>wt({...l,isDisabled:I,disableAnimation:k,hasTitleTextChild:typeof L=="string",hasDescriptionTextChild:typeof i=="string"}),[Ie(l),I,k,L,i]),Pe=F(v==null?void 0:v.base,g);w&&($=ga($));const V=C&&re||(N?J||W:J||re&&!H),ce=(R={})=>({ref:K,..._({onClick:S},$,w?{}:_(ie,O),ne,we(P,{enabled:B}),R),"data-selectable":z(Y),"data-focus":z(re),"data-hover":z(V),"data-disabled":z(I),"data-selected":z(oe),"data-pressed":z(W),"data-focus-visible":z(H),className:Q.base({class:F(Pe,R.className)})}),Z=(R={})=>({..._(le,R),"data-label":z(!0),className:Q.title({class:v==null?void 0:v.title})}),G=(R={})=>({..._(U,R),className:Q.description({class:v==null?void 0:v.description})}),fe=(R={})=>({..._(R),className:Q.wrapper({class:v==null?void 0:v.wrapper})}),q=f.useCallback((R={})=>({"aria-hidden":z(!0),"data-disabled":z(I),className:Q.selectedIcon({class:v==null?void 0:v.selectedIcon}),...R}),[I,Q,v]);return{Component:E,domRef:K,slots:Q,classNames:v,isSelectable:Y,isSelected:oe,isDisabled:I,rendered:L,description:i,startContent:d,endContent:c,selectedIcon:h,hideSelectedIcon:D,disableAnimation:k,getItemProps:ce,getLabelProps:Z,getWrapperProps:fe,getDescriptionProps:G,getSelectedIconProps:q}}var Xt=a=>{const{Component:t,rendered:e,description:s,isSelectable:r,isSelected:l,isDisabled:o,selectedIcon:n,startContent:u,endContent:i,hideSelectedIcon:d,disableAnimation:c,getItemProps:b,getLabelProps:h,getWrapperProps:g,getDescriptionProps:v,getSelectedIconProps:m}=Nr(a),p=f.useMemo(()=>{const S=y.jsx(Mr,{disableAnimation:c,isSelected:l});return typeof n=="function"?n({icon:S,isSelected:l,isDisabled:o}):n||S},[n,l,o,c]);return y.jsxs(t,{...b(),children:[u,s?y.jsxs("div",{...g(),children:[y.jsx("span",{...h(),children:e}),y.jsx("span",{...v(),children:s})]}):y.jsx("span",{...h(),children:e}),r&&!d&&y.jsx("span",{...m(),children:p}),i]})};Xt.displayName="HeroUI.ListboxItem";var rt=Xt;function Fr(a){let t=we(a,{enabled:typeof a.elementType=="string"}),e;return a.orientation==="vertical"&&(e="vertical"),a.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":e}}:{separatorProps:t}}function Lr(a){const{as:t,className:e,orientation:s,...r}=a;let l=t||"hr";l==="hr"&&s==="vertical"&&(l="div");const{separatorProps:o}=Fr({elementType:typeof l=="string"?l:"hr",orientation:s}),n=f.useMemo(()=>er({orientation:s,className:e}),[s,e]),u=f.useCallback((i={})=>({className:n,role:"separator","data-orientation":s,...o,...r,...i}),[n,s,o,r]);return{Component:l,getDividerProps:u}}var Yt=be((a,t)=>{const{Component:e,getDividerProps:s}=Lr({...a});return y.jsx(e,{ref:t,...s()})});Yt.displayName="HeroUI.Divider";var Tr=Yt,Gt=be(({item:a,state:t,as:e,variant:s,color:r,disableAnimation:l,className:o,classNames:n,hideSelectedIcon:u,showDivider:i=!1,dividerProps:d={},itemClasses:c,title:b,items:h,...g},v)=>{const m=e||"li",p=f.useMemo(()=>rr(),[]),S=F(n==null?void 0:n.base,o),C=F(n==null?void 0:n.divider,d==null?void 0:d.className),{itemProps:D,headingProps:w,groupProps:P}=Cr({heading:a.rendered,"aria-label":a["aria-label"]});return y.jsxs(m,{"data-slot":"base",..._(D,g),className:p.base({class:S}),children:[a.rendered&&y.jsx("span",{...w,className:p.heading({class:n==null?void 0:n.heading}),"data-slot":"heading",children:a.rendered}),y.jsxs("ul",{...P,className:p.group({class:n==null?void 0:n.group}),"data-has-title":!!a.rendered,"data-slot":"group",children:[[...a.childNodes].map(k=>{const{key:K,props:E}=k;let B=y.jsx(rt,{classNames:c,color:r,disableAnimation:l,hideSelectedIcon:u,item:k,state:t,variant:s,...E},K);return k.wrapper&&(B=k.wrapper(B)),B}),i&&y.jsx(Tr,{as:"li",className:p.divider({class:C}),...d})]})]},a.key)});Gt.displayName="HeroUI.ListboxSection";var Jt=Gt;function xe(a,t,e){let s=e.initialDeps??[],r;return()=>{var l,o,n,u;let i;e.key&&((l=e.debug)!=null&&l.call(e))&&(i=Date.now());const d=a();if(!(d.length!==s.length||d.some((h,g)=>s[g]!==h)))return r;s=d;let b;if(e.key&&((o=e.debug)!=null&&o.call(e))&&(b=Date.now()),r=t(...d),e.key&&((n=e.debug)!=null&&n.call(e))){const h=Math.round((Date.now()-i)*100)/100,g=Math.round((Date.now()-b)*100)/100,v=g/16,m=(p,S)=>{for(p=String(p);p.lengthMath.abs(a-t)<1,Vr=(a,t,e)=>{let s;return function(...r){a.clearTimeout(s),s=a.setTimeout(()=>t.apply(this,r),e)}},Wr=a=>a,Hr=a=>{const t=Math.max(a.startIndex-a.overscan,0),e=Math.min(a.endIndex+a.overscan,a.count-1),s=[];for(let r=t;r<=e;r++)s.push(r);return s},Ur=(a,t)=>{const e=a.scrollElement;if(!e)return;const s=a.targetWindow;if(!s)return;const r=o=>{const{width:n,height:u}=o;t({width:Math.round(n),height:Math.round(u)})};if(r(e.getBoundingClientRect()),!s.ResizeObserver)return()=>{};const l=new s.ResizeObserver(o=>{const n=o[0];if(n!=null&&n.borderBoxSize){const u=n.borderBoxSize[0];if(u){r({width:u.inlineSize,height:u.blockSize});return}}r(e.getBoundingClientRect())});return l.observe(e,{box:"border-box"}),()=>{l.unobserve(e)}},Dt={passive:!0},qr=typeof window>"u"?!0:"onscrollend"in window,Xr=(a,t)=>{const e=a.scrollElement;if(!e)return;const s=a.targetWindow;if(!s)return;let r=0;const l=a.options.useScrollendEvent&&qr?()=>{}:Vr(s,()=>{t(r,!1)},a.options.isScrollingResetDelay),o=i=>()=>{const{horizontal:d,isRtl:c}=a.options;r=d?e.scrollLeft*(c&&-1||1):e.scrollTop,l(),t(r,i)},n=o(!0),u=o(!1);return u(),e.addEventListener("scroll",n,Dt),e.addEventListener("scrollend",u,Dt),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",u)}},Yr=(a,t,e)=>{if(t!=null&&t.borderBoxSize){const s=t.borderBoxSize[0];if(s)return Math.round(s[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(a.getBoundingClientRect()[e.options.horizontal?"width":"height"])},Gr=(a,{adjustments:t=0,behavior:e},s)=>{var r,l;const o=a+t;(l=(r=s.scrollElement)==null?void 0:r.scrollTo)==null||l.call(r,{[s.options.horizontal?"left":"top"]:o,behavior:e})};class Jr{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const s=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(r=>{r.forEach(l=>{this._measureElement(l.target,l)})}));return{disconnect:()=>{var r;(r=s())==null||r.disconnect(),e=null},observe:r=>{var l;return(l=s())==null?void 0:l.observe(r,{box:"border-box"})},unobserve:r=>{var l;return(l=s())==null?void 0:l.unobserve(r)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([s,r])=>{typeof r>"u"&&delete e[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Wr,rangeExtractor:Hr,onChange:()=>{},measureElement:Yr,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var s,r;(r=(s=this.options).onChange)==null||r.call(s,this,e)},this.maybeNotify=xe(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((e=this.scrollElement)==null?void 0:e.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,l)=>{this.scrollAdjustments=0,this.scrollDirection=l?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,s)=>{const r=new Map,l=new Map;for(let o=s-1;o>=0;o--){const n=e[o];if(r.has(n.lane))continue;const u=l.get(n.lane);if(u==null||n.end>u.end?l.set(n.lane,n):n.endo.end===n.end?o.index-n.index:o.end-n.end)[0]:void 0},this.getMeasurementOptions=xe(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,s,r,l,o)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:s,scrollMargin:r,getItemKey:l,enabled:o}),{key:!1}),this.getMeasurements=xe(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:s,scrollMargin:r,getItemKey:l,enabled:o},n)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(d=>{this.itemSizeCache.set(d.key,d.size)}));const u=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const i=this.measurementsCache.slice(0,u);for(let d=u;dthis.options.debug}),this.calculateRange=xe(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,s,r)=>this.range=e.length>0&&s>0?Zr({measurements:e,outerSize:s,scrollOffset:r}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=xe(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(e,s,r,l)=>s===null?[]:e({startIndex:s.startIndex,endIndex:s.endIndex,overscan:r,count:l}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const s=this.options.indexAttribute,r=e.getAttribute(s);return r?parseInt(r,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(e,s)=>{const r=this.indexFromElement(e),l=this.measurementsCache[r];if(!l)return;const o=l.key,n=this.elementsCache.get(o);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(o,e)),e.isConnected&&this.resizeItem(r,this.options.measureElement(e,s,this))},this.resizeItem=(e,s)=>{const r=this.measurementsCache[e];if(!r)return;const l=this.itemSizeCache.get(r.key)??r.size,o=s-l;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(r,o,this):r.start{if(!e){this.elementsCache.forEach((s,r)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(r))});return}this._measureElement(e,void 0)},this.getVirtualItems=xe(()=>[this.getIndexes(),this.getMeasurements()],(e,s)=>{const r=[];for(let l=0,o=e.length;lthis.options.debug}),this.getVirtualItemForOffset=e=>{const s=this.getMeasurements();if(s.length!==0)return Je(s[Zt(0,s.length-1,r=>Je(s[r]).start,e)])},this.getOffsetForAlignment=(e,s)=>{const r=this.getSize(),l=this.getScrollOffset();s==="auto"&&e>=l+r&&(s="end"),s==="end"&&(e-=r);const o=this.options.horizontal?"scrollWidth":"scrollHeight",u=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[o]:this.scrollElement[o]:0)-r;return Math.max(Math.min(u,e),0)},this.getOffsetForIndex=(e,s="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const r=this.measurementsCache[e];if(!r)return;const l=this.getSize(),o=this.getScrollOffset();if(s==="auto")if(r.end>=o+l-this.options.scrollPaddingEnd)s="end";else if(r.start<=o+this.options.scrollPaddingStart)s="start";else return[o,s];const n=r.start-this.options.scrollPaddingStart+(r.size-l)/2;switch(s){case"center":return[this.getOffsetForAlignment(n,s),s];case"end":return[this.getOffsetForAlignment(r.end+this.options.scrollPaddingEnd,s),s];default:return[this.getOffsetForAlignment(r.start-this.options.scrollPaddingStart,s),s]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:s="start",behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,s),{adjustments:void 0,behavior:r})},this.scrollToIndex=(e,{align:s="auto",behavior:r}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const l=this.getOffsetForIndex(e,s);if(!l)return;const[o,n]=l;this._scrollToOffset(o,{adjustments:void 0,behavior:r}),r!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){const[i]=Je(this.getOffsetForIndex(e,n));jr(i,this.getScrollOffset())||this.scrollToIndex(e,{align:n,behavior:r})}else this.scrollToIndex(e,{align:n,behavior:r})}))},this.scrollBy=(e,{behavior:s}={})=>{this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var e;const s=this.getMeasurements();let r;return s.length===0?r=this.options.paddingStart:r=this.options.lanes===1?((e=s[s.length-1])==null?void 0:e.end)??0:Math.max(...s.slice(-this.options.lanes).map(l=>l.end)),Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:s,behavior:r})=>{this.options.scrollToFn(e,{behavior:r,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const Zt=(a,t,e,s)=>{for(;a<=t;){const r=(a+t)/2|0,l=e(r);if(ls)t=r-1;else return r}return a>0?a-1:0};function Zr({measurements:a,outerSize:t,scrollOffset:e}){const s=a.length-1,l=Zt(0,s,n=>a[n].start,e);let o=l;for(;o({}),{})[1],e={...a,onChange:(r,l)=>{var o;l?Ba.flushSync(t):t(),(o=a.onChange)==null||o.call(a,r,l)}},[s]=f.useState(()=>new Jr(e));return s.setOptions(e),Mt(()=>s._didMount(),[]),Mt(()=>s._willUpdate()),s}function el(a){return Qr({observeElementRect:Ur,observeElementOffset:Xr,scrollToFn:Gr,...a})}function tl(a={}){const{domRef:t,isEnabled:e=!0,overflowCheck:s="vertical",visibility:r="auto",offset:l=0,onVisibilityChange:o,updateDeps:n=[]}=a,u=f.useRef(r);f.useEffect(()=>{const i=t==null?void 0:t.current;if(!i||!e)return;const d=(h,g,v,m,p)=>{if(r==="auto"){const S=`${m}${Ot(p)}Scroll`;g&&v?(i.dataset[S]="true",i.removeAttribute(`data-${m}-scroll`),i.removeAttribute(`data-${p}-scroll`)):(i.dataset[`${m}Scroll`]=g.toString(),i.dataset[`${p}Scroll`]=v.toString(),i.removeAttribute(`data-${m}-${p}-scroll`))}else{const S=g&&v?"both":g?m:v?p:"none";S!==u.current&&(o==null||o(S),u.current=S)}},c=()=>{const h=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}];for(const{type:g,prefix:v,suffix:m}of h)if(s===g||s==="both"){const p=g==="vertical"?i.scrollTop>l:i.scrollLeft>l,S=g==="vertical"?i.scrollTop+i.clientHeight+l{["top","bottom","top-bottom","left","right","left-right"].forEach(h=>{i.removeAttribute(`data-${h}-scroll`)})};return c(),i.addEventListener("scroll",c),r!=="auto"&&(b(),r==="both"?(i.dataset.topBottomScroll=String(s==="vertical"),i.dataset.leftRightScroll=String(s==="horizontal")):(i.dataset.topBottomScroll="false",i.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(h=>{i.dataset[`${h}Scroll`]=String(r===h)}))),()=>{i.removeEventListener("scroll",c),b()}},[...n,e,r,s,o,t])}function sl(a){var t;const[e,s]=Ke(a,Ne.variantKeys),{ref:r,as:l,children:o,className:n,style:u,size:i=40,offset:d=0,visibility:c="auto",isEnabled:b=!0,onVisibilityChange:h,...g}=e,v=l||"div",m=$e(r);tl({domRef:m,offset:d,visibility:c,isEnabled:b,onVisibilityChange:h,updateDeps:[o],overflowCheck:(t=a.orientation)!=null?t:"vertical"});const p=f.useMemo(()=>Ne({...s,className:n}),[Ie(s),n]);return{Component:v,styles:p,domRef:m,children:o,getBaseProps:(C={})=>{var D;return{ref:m,className:p,"data-orientation":(D=a.orientation)!=null?D:"vertical",style:{"--scroll-shadow-size":`${i}px`,...u,...C.style},...g,...C}}}}var al=(a,t)=>{const e=[];for(const s of a)s.type==="section"?e.push(([...s.childNodes].length+1)*t):e.push(t);return e},rl=a=>{if(!a||a.scrollTop===void 0||a.clientHeight===void 0||a.scrollHeight===void 0)return{isTop:!1,isBottom:!1,isMiddle:!1};const t=a.scrollTop===0,e=Math.ceil(a.scrollTop+a.clientHeight)>=a.scrollHeight;return{isTop:t,isBottom:e,isMiddle:!t&&!e}},ll=a=>{const{Component:t,state:e,color:s,variant:r,itemClasses:l,getBaseProps:o,topContent:n,bottomContent:u,hideEmptyContent:i,hideSelectedIcon:d,shouldHighlightOnFocus:c,disableAnimation:b,getEmptyContentProps:h,getListProps:g,scrollShadowProps:v}=a,{virtualization:m}=a;if(!m||!pa(m)&&!m.maxListboxHeight&&!m.itemHeight)throw new Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");const{maxListboxHeight:p,itemHeight:S}=m,C=Math.min(p,S*e.collection.size),D=f.useRef(null),w=f.useMemo(()=>al([...e.collection],S),[e.collection,S]),P=el({count:[...e.collection].length,getScrollElement:()=>D.current,estimateSize:I=>w[I]}),k=P.getVirtualItems(),{getBaseProps:K}=sl({...v}),E=I=>{var Y;const N=[...e.collection][I.index];if(!N)return null;const O={color:s,item:N,state:e,variant:r,disableAnimation:b,hideSelectedIcon:d,...N.props},W={position:"absolute",top:0,left:0,width:"100%",height:`${I.size}px`,transform:`translateY(${I.start}px)`};if(N.type==="section")return y.jsx(Jt,{...O,itemClasses:l,style:{...W,...O.style}},N.key);let J=y.jsx(rt,{...O,classNames:_(l,(Y=N.props)==null?void 0:Y.classNames),shouldHighlightOnFocus:c,style:{...W,...O.style}},N.key);return N.wrapper&&(J=N.wrapper(J)),J},[B,L]=f.useState({isTop:!1,isBottom:!0,isMiddle:!1}),X=y.jsxs(t,{...g(),children:[!e.collection.size&&!i&&y.jsx("li",{children:y.jsx("div",{...h()})}),y.jsx("div",{...we(K()),ref:D,"data-bottom-scroll":B.isTop,"data-top-bottom-scroll":B.isMiddle,"data-top-scroll":B.isBottom,style:{height:p,overflow:"auto"},onScroll:I=>{L(rl(I.target))},children:C>0&&S>0&&y.jsx("div",{style:{height:`${P.getTotalSize()}px`,width:"100%",position:"relative"},children:k.map(I=>E(I))})})]});return y.jsxs("div",{...o(),children:[n,X,u]})},ol=ll,nl=be(function(t,e){const{isVirtualized:s,...r}=t,l=Dr({...r,ref:e}),{Component:o,state:n,color:u,variant:i,itemClasses:d,getBaseProps:c,topContent:b,bottomContent:h,hideEmptyContent:g,hideSelectedIcon:v,shouldHighlightOnFocus:m,disableAnimation:p,getEmptyContentProps:S,getListProps:C}=l;if(s)return y.jsx(ol,{...t,...l});const D=y.jsxs(o,{...C(),children:[!n.collection.size&&!g&&y.jsx("li",{children:y.jsx("div",{...S()})}),[...n.collection].map(w=>{var P;const k={color:u,item:w,state:n,variant:i,disableAnimation:p,hideSelectedIcon:v,...w.props};if(w.type==="section")return y.jsx(Jt,{...k,itemClasses:d},w.key);let K=y.jsx(rt,{...k,classNames:_(d,(P=w.props)==null?void 0:P.classNames),shouldHighlightOnFocus:m},w.key);return w.wrapper&&(K=w.wrapper(K)),K})]});return y.jsxs("div",{...c(),children:[b,D,h]})}),il=nl;function ul(a,t){const{triggerRef:e,popoverRef:s,showArrow:r,offset:l=7,crossOffset:o=0,scrollRef:n,shouldFlip:u,boundaryElement:i,isDismissable:d=!0,shouldCloseOnBlur:c=!0,shouldCloseOnScroll:b=!0,placement:h="top",containerPadding:g,shouldCloseOnInteractOutside:v,isNonModal:m,isKeyboardDismissDisabled:p,updatePositionDeps:S=[],...C}=a,D=m??!0,{overlayProps:w,underlayProps:P}=ba({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:c,isDismissable:d,isKeyboardDismissDisabled:p,shouldCloseOnInteractOutside:v||(L=>Wt(L,e,t))},s),{overlayProps:k,arrowProps:K,placement:E,updatePosition:B}=Va({...C,shouldFlip:u,crossOffset:o,targetRef:e,overlayRef:s,isOpen:t.isOpen,scrollRef:n,boundaryElement:i,containerPadding:g,placement:Wa(h),offset:r?l+3:l,onClose:D&&b?t.close:()=>{}});return Rt(()=>{S.length&&B()},S),f.useEffect(()=>{if(t.isOpen&&!D&&s.current)return br([s.current])},[D,t.isOpen,s]),{popoverProps:_(w,k),arrowProps:K,underlayProps:P,placement:E}}var dl="top";function cl(a){var t,e,s;const r=Le(),[l,o]=Ke(a,mt.variantKeys),{as:n,ref:u,children:i,state:d,triggerRef:c,scrollRef:b,defaultOpen:h,onOpenChange:g,isOpen:v,isNonModal:m=!0,shouldFlip:p=!0,containerPadding:S=12,shouldBlockScroll:C=!1,isDismissable:D=!0,shouldCloseOnBlur:w,portalContainer:P,updatePositionDeps:k,dialogProps:K,placement:E=dl,triggerType:B="dialog",showArrow:L=!1,offset:X=7,crossOffset:I=0,boundaryElement:Y,isKeyboardDismissDisabled:N,shouldCloseOnInteractOutside:O,shouldCloseOnScroll:W,motionProps:J,className:ne,classNames:H,onClose:ie,...re}=l,oe=n||"div",T=$e(u),le=f.useRef(null),U=f.useRef(!1),$=c||le,Q=(e=(t=a.disableAnimation)!=null?t:r==null?void 0:r.disableAnimation)!=null?e:!1,Pe=va({isOpen:v,defaultOpen:h,onOpenChange:j=>{g==null||g(j),j||ie==null||ie()}}),V=d||Pe,{popoverProps:ce,underlayProps:Z,placement:G}=ul({triggerRef:$,isNonModal:m,popoverRef:T,placement:E,offset:X,scrollRef:b,isDismissable:D,shouldCloseOnBlur:w,boundaryElement:Y,crossOffset:I,shouldFlip:p,containerPadding:S,updatePositionDeps:k,isKeyboardDismissDisabled:N,shouldCloseOnScroll:W,shouldCloseOnInteractOutside:O},V),fe=f.useMemo(()=>G?Ha(G,E)?G:E:null,[G,E]),{triggerProps:q}=ir({type:B},V,$),{isFocusVisible:R,isFocused:ve,focusProps:me}=tt(),M=f.useMemo(()=>mt({...o}),[Ie(o)]),ke=F(H==null?void 0:H.base,ne);ma({isDisabled:!(C&&V.isOpen)});const je=(j={})=>({ref:T,..._(ce,re,j),style:_(ce.style,re.style,j.style)}),ze=(j={})=>({"data-slot":"base","data-open":z(V.isOpen),"data-focus":z(ve),"data-arrow":z(L),"data-focus-visible":z(R),"data-placement":G?yt(G,E):void 0,..._(me,K,j),className:M.base({class:F(ke)}),style:{outline:"none"}}),Ve=f.useCallback((j={})=>({"data-slot":"content","data-open":z(V.isOpen),"data-arrow":z(L),"data-placement":G?yt(G,E):void 0,className:M.content({class:F(H==null?void 0:H.content,j.className)})}),[M,V.isOpen,L,fe,E,H,G]),Ae=f.useCallback(j=>{var ue;let ee;return j.pointerType==="touch"&&((a==null?void 0:a.backdrop)==="blur"||(a==null?void 0:a.backdrop)==="opaque")?ee=setTimeout(()=>{U.current=!0},100):U.current=!0,(ue=q.onPress)==null||ue.call(q,j),()=>{clearTimeout(ee)}},[q==null?void 0:q.onPress]),Be=f.useCallback((j={},ue=null)=>{const{isDisabled:ee,...Oe}=j;return{"data-slot":"trigger",..._({"aria-haspopup":"dialog"},q,Oe),onPress:Ae,isDisabled:ee,className:M.trigger({class:F(H==null?void 0:H.trigger,j.className),isTriggerDisabled:ee}),ref:ya(ue,$)}},[V,q,Ae,$]),We=f.useCallback((j={})=>({"data-slot":"backdrop",className:M.backdrop({class:H==null?void 0:H.backdrop}),onClick:ue=>{if(!U.current){ue.preventDefault();return}V.close(),U.current=!1},...Z,...j}),[M,V.isOpen,H,Z]);return f.useEffect(()=>{if(V.isOpen&&(T!=null&&T.current))return xa([T==null?void 0:T.current])},[V.isOpen,T]),{state:V,Component:oe,children:i,classNames:H,showArrow:L,triggerRef:$,placement:fe,isNonModal:m,popoverRef:T,portalContainer:P,isOpen:V.isOpen,onClose:V.close,disableAnimation:Q,shouldBlockScroll:C,backdrop:(s=a.backdrop)!=null?s:"transparent",motionProps:J,getBackdropProps:We,getPopoverProps:je,getTriggerProps:Be,getDialogProps:ze,getContentProps:Ve}}var Qt=()=>wa(()=>import("./index-Crbd1Tvi.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(a=>a.default),es=be(({children:a,motionProps:t,placement:e,disableAnimation:s,style:r={},transformOrigin:l={},...o},n)=>{let u=r;return l.originX!==void 0||l.originY!==void 0?u={...u,transformOrigin:l}:e&&(u={...u,...Ua(e==="center"?"top":e)}),s?y.jsx("div",{...o,ref:n,children:a}):y.jsx(_t,{features:Qt,children:y.jsx(Nt.div,{ref:n,animate:"enter",exit:"exit",initial:"initial",style:u,variants:Ft.scaleSpringOpacity,..._(o,t),children:a})})});es.displayName="HeroUI.FreeSoloPopoverWrapper";var ts=be(({children:a,transformOrigin:t,disableDialogFocus:e=!1,...s},r)=>{const{Component:l,state:o,placement:n,backdrop:u,portalContainer:i,disableAnimation:d,motionProps:c,isNonModal:b,getPopoverProps:h,getBackdropProps:g,getDialogProps:v,getContentProps:m}=cl({...s,ref:r}),p=f.useRef(null),{dialogProps:S,titleProps:C}=$a({},p),D=v({...!e&&{ref:p},...S}),w=f.useMemo(()=>u==="transparent"?null:d?y.jsx("div",{...g()}):y.jsx(_t,{features:Qt,children:y.jsx(Nt.div,{animate:"enter",exit:"exit",initial:"exit",variants:Ft.fade,...g()})}),[u,d,g]);return y.jsxs(Sa,{portalContainer:i,children:[!b&&w,y.jsx(l,{...h(),children:y.jsxs(es,{disableAnimation:d,motionProps:c,placement:n,tabIndex:-1,transformOrigin:t,...D,children:[!b&&y.jsx(vt,{onDismiss:o.close}),y.jsx("div",{...m(),children:typeof a=="function"?a(C):a}),y.jsx(vt,{onDismiss:o.close})]})})]})});ts.displayName="HeroUI.FreeSoloPopover";var fl=ts,ss={};ss={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var as={};as={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var rs={};rs={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var ls={};ls={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var os={};os={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var ns={};ns={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var is={};is={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var us={};us={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var ds={};ds={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var cs={};cs={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var fs={};fs={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var hs={};hs={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var gs={};gs={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var ps={};ps={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var bs={};bs={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var vs={};vs={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var ms={};ms={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var ys={};ys={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var xs={};xs={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var $s={};$s={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var ws={};ws={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Ss={};Ss={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Ps={};Ps={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Cs={};Cs={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Ds={};Ds={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Ms={};Ms={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Es={};Es={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Ks={};Ks={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Is={};Is={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var ks={};ks={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var zs={};zs={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var As={};As={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Bs={};Bs={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Os={};Os={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Rs={};Rs={"ar-AE":ss,"bg-BG":as,"cs-CZ":rs,"da-DK":ls,"de-DE":os,"el-GR":ns,"en-US":is,"es-ES":us,"et-EE":ds,"fi-FI":cs,"fr-FR":fs,"he-IL":hs,"hr-HR":gs,"hu-HU":ps,"it-IT":bs,"ja-JP":vs,"ko-KR":ms,"lt-LT":ys,"lv-LV":xs,"nb-NO":$s,"nl-NL":ws,"pl-PL":Ss,"pt-BR":Ps,"pt-PT":Cs,"ro-RO":Ds,"ru-RU":Ms,"sk-SK":Es,"sl-SI":Ks,"sr-SP":Is,"sv-SE":ks,"tr-TR":zs,"uk-UA":As,"zh-CN":Bs,"zh-TW":Os};function hl(a){return a&&a.__esModule?a.default:a}function gl(a,t,e){let{type:s="menu",isDisabled:r,trigger:l="press"}=a,o=ge(),{triggerProps:n,overlayProps:u}=pr({type:s},t,e),i=h=>{if(!r&&!(l==="longPress"&&!h.altKey)&&e&&e.current)switch(h.key){case"Enter":case" ":if(l==="longPress")return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},d=Pa(hl(Rs),"@react-aria/menu"),{longPressProps:c}=Ta({isDisabled:r||l!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),b={onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!r&&t.open(h.pointerType==="virtual"?"first":null)},onPress(h){h.pointerType==="touch"&&!r&&t.toggle()}};return delete n.onPress,{menuTriggerProps:{...n,...l==="press"?b:c,id:o,onKeyDown:i},menuProps:{...u,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function pl(a){let t=qa(a),[e,s]=f.useState(null),[r,l]=f.useState([]),o=()=>{l([]),t.close()};return{focusStrategy:e,...t,open(i=null){s(i),t.open()},toggle(i=null){s(i),t.toggle()},close(){o()},expandedKeysStack:r,openSubmenu:(i,d)=>{l(c=>d>c.length?c:[...c.slice(0,d),i])},closeSubmenu:(i,d)=>{l(c=>c[d]===i?c.slice(0,d):c)}}}function bl(a){const{collection:t,disabledKeys:e,selectionManager:s,selectionManager:{setSelectedKeys:r,selectedKeys:l,selectionMode:o}}=Ht(a),n=f.useMemo(()=>!a.isLoading&&l.size!==0?Array.from(l).filter(Boolean).filter(i=>!t.getItem(i)):[],[l,t]),u=l.size!==0?Array.from(l).map(i=>t.getItem(i)).filter(Boolean):null;return n.length&&console.warn(`Select: Keys "${n.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:e,selectionManager:s,selectionMode:o,selectedKeys:l,setSelectedKeys:r.bind(s),selectedItems:u}}function vl({validate:a,validationBehavior:t,...e}){const[s,r]=f.useState(!1),[l,o]=f.useState(null),n=pl(e),u=bl({...e,onSelectionChange:c=>{e.onSelectionChange!=null&&(c==="all"?e.onSelectionChange(new Set(u.collection.getKeys())):e.onSelectionChange(c)),e.selectionMode==="single"&&n.close()}}),i=Ya({...e,validationBehavior:t,validate:c=>{if(!a)return;const b=Array.from(c);return a(e.selectionMode==="single"?b[0]:b)},value:u.selectedKeys}),d=u.collection.size===0&&e.hideEmptyContent;return{...i,...u,...n,focusStrategy:l,close(){n.close()},open(c=null){d||(o(c),n.open())},toggle(c=null){d||(o(c),n.toggle())},isFocused:s,setFocused:r}}function ml(a){let{id:t,label:e,"aria-labelledby":s,"aria-label":r,labelElementType:l="label"}=a;t=ge(t);let o=ge(),n={};e?(s=s?`${o} ${s}`:o,n={id:o,htmlFor:l==="label"?t:void 0}):!s&&!r&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let u=Ca({id:t,"aria-label":r,"aria-labelledby":s});return{labelProps:n,fieldProps:u}}function yl(a){let{description:t,errorMessage:e,isInvalid:s,validationState:r}=a,{labelProps:l,fieldProps:o}=ml(a),n=_e([!!t,!!e,s,r]),u=_e([!!t,!!e,s,r]);return o=Me(o,{"aria-describedby":[n,u,a["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:l,fieldProps:o,descriptionProps:{id:n},errorMessageProps:{id:u}}}const xl=1e3;function $l(a){let{keyboardDelegate:t,selectionManager:e,onTypeSelect:s}=a,r=f.useRef({search:"",timeout:void 0}).current,l=o=>{let n=wl(o.key);if(!(!n||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))){if(n===" "&&r.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),r.search+=n,t.getKeyForSearch!=null){let u=t.getKeyForSearch(r.search,e.focusedKey);u==null&&(u=t.getKeyForSearch(r.search)),u!=null&&(e.setFocusedKey(u),s&&s(u))}clearTimeout(r.timeout),r.timeout=setTimeout(()=>{r.search=""},xl)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?l:void 0}}}function wl(a){return a.length===1||!/^[A-Z]/i.test(a)?a:""}class Et{getItemRect(t){let e=this.ref.current;if(!e)return null;let s=t!=null?e.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!s)return null;let r=e.getBoundingClientRect(),l=s.getBoundingClientRect();return{x:l.left-r.left+e.scrollLeft,y:l.top-r.top+e.scrollTop,width:l.width,height:l.height}}getContentSize(){let t=this.ref.current;var e,s;return{width:(e=t==null?void 0:t.scrollWidth)!==null&&e!==void 0?e:0,height:(s=t==null?void 0:t.scrollHeight)!==null&&s!==void 0?s:0}}getVisibleRect(){let t=this.ref.current;var e,s,r,l;return{x:(e=t==null?void 0:t.scrollLeft)!==null&&e!==void 0?e:0,y:(s=t==null?void 0:t.scrollTop)!==null&&s!==void 0?s:0,width:(r=t==null?void 0:t.offsetWidth)!==null&&r!==void 0?r:0,height:(l=t==null?void 0:t.offsetHeight)!==null&&l!==void 0?l:0}}constructor(t){this.ref=t}}class Sl{isDisabled(t){var e;return this.disabledBehavior==="all"&&(((e=t.props)===null||e===void 0?void 0:e.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,e){let s=t;for(;s!=null;){let r=this.collection.getItem(s);if((r==null?void 0:r.type)==="item"&&!this.isDisabled(r))return s;s=e(s)}return null}getNextKey(t){let e=t;return e=this.collection.getKeyAfter(e),this.findNextNonDisabled(e,s=>this.collection.getKeyAfter(s))}getPreviousKey(t){let e=t;return e=this.collection.getKeyBefore(e),this.findNextNonDisabled(e,s=>this.collection.getKeyBefore(s))}findKey(t,e,s){let r=t,l=this.layoutDelegate.getItemRect(r);if(!l||r==null)return null;let o=l;do{if(r=e(r),r==null)break;l=this.layoutDelegate.getItemRect(r)}while(l&&s(o,l)&&r!=null);return r}isSameRow(t,e){return t.y===e.y||t.x!==e.x}isSameColumn(t,e){return t.x===e.x||t.y!==e.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,e){return e?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let e=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[e]?(t=this.layoutDelegate[e](t),this.findNextNonDisabled(t,s=>this.layoutDelegate[e](s))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,s=>this.getNextColumn(s,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let e=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[e]?(t=this.layoutDelegate[e](t),this.findNextNonDisabled(t,s=>this.layoutDelegate[e](s))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,s=>this.getNextColumn(s,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(t){let e=this.ref.current,s=this.layoutDelegate.getItemRect(t);if(!s)return null;if(e&&!Re(e))return this.getFirstKey();let r=t;if(this.orientation==="horizontal"){let l=Math.max(0,s.x+s.width-this.layoutDelegate.getVisibleRect().width);for(;s&&s.x>l&&r!=null;)r=this.getKeyAbove(r),s=r==null?null:this.layoutDelegate.getItemRect(r)}else{let l=Math.max(0,s.y+s.height-this.layoutDelegate.getVisibleRect().height);for(;s&&s.y>l&&r!=null;)r=this.getKeyAbove(r),s=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getFirstKey()}getKeyPageBelow(t){let e=this.ref.current,s=this.layoutDelegate.getItemRect(t);if(!s)return null;if(e&&!Re(e))return this.getLastKey();let r=t;if(this.orientation==="horizontal"){let l=Math.min(this.layoutDelegate.getContentSize().width,s.y-s.width+this.layoutDelegate.getVisibleRect().width);for(;s&&s.xnew Sl(t.collection,t.disabledKeys,null,l),[t.collection,t.disabledKeys,l]),{menuTriggerProps:n,menuProps:u}=gl({isDisabled:r,type:"listbox"},t,e),i=w=>{if(t.selectionMode==="single")switch(w.key){case"ArrowLeft":{w.preventDefault();const P=t.selectedKeys.size>0?o.getKeyAbove(t.selectedKeys.values().next().value):o.getFirstKey();P&&t.setSelectedKeys([P]);break}case"ArrowRight":{w.preventDefault();const P=t.selectedKeys.size>0?o.getKeyBelow(t.selectedKeys.values().next().value):o.getFirstKey();P&&t.setSelectedKeys([P]);break}}},{typeSelectProps:d}=$l({keyboardDelegate:o,selectionManager:t.selectionManager,onTypeSelect(w){t.setSelectedKeys([w])}}),{isInvalid:c,validationErrors:b,validationDetails:h}=t.displayValidation,{labelProps:g,fieldProps:v,descriptionProps:m,errorMessageProps:p}=yl({...a,labelElementType:"span",isInvalid:c,errorMessage:a.errorMessage||b});d.onKeyDown=d.onKeyDownCapture,delete d.onKeyDownCapture;const S=Da(a,{labelable:!0}),C=_(d,n,v),D=Ma();return{labelProps:{...g,onClick:()=>{var w;a.isDisabled||((w=e.current)==null||w.focus(),fr("keyboard"))}},triggerProps:_(S,{...C,onKeyDown:Ea(C.onKeyDown,i,a.onKeyDown),onKeyUp:a.onKeyUp,"aria-labelledby":[D,S["aria-label"]!==void 0?S["aria-labelledby"]!==void 0?S["aria-labelledby"]:C.id:C["aria-labelledby"]].join(" "),onFocus(w){t.isFocused||(a.onFocus&&a.onFocus(w),t.setFocused(!0))},onBlur(w){t.isOpen||(a.onBlur&&a.onBlur(w),t.setFocused(!1))}}),valueProps:{id:D},menuProps:{...u,disallowEmptySelection:s,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:w=>{w.currentTarget.contains(w.relatedTarget)||(a.onBlur&&a.onBlur(w),t.setFocused(!1))},onFocus:u==null?void 0:u.onFocus,"aria-labelledby":[v["aria-labelledby"],C["aria-label"]&&!v["aria-labelledby"]?C.id:null].filter(Boolean).join(" ")},descriptionProps:m,errorMessageProps:p,isInvalid:c,validationErrors:b,validationDetails:h}}var _s=new WeakMap;function Cl(a){var t,e,s,r,l,o;const n=Le(),{validationBehavior:u}=Ga(Ja)||{},[i,d]=Ke(a,$t.variantKeys),c=(e=(t=a.disableAnimation)!=null?t:n==null?void 0:n.disableAnimation)!=null?e:!1,{ref:b,as:h,label:g,name:v,isLoading:m,selectorIcon:p,isOpen:S,defaultOpen:C,onOpenChange:D,startContent:w,endContent:P,description:k,renderValue:K,onSelectionChange:E,placeholder:B,isVirtualized:L,itemHeight:X=36,maxListboxHeight:I=256,children:Y,disallowEmptySelection:N=!1,selectionMode:O="single",spinnerRef:W,scrollRef:J,popoverProps:ne={},scrollShadowProps:H={},listboxProps:ie={},spinnerProps:re={},validationState:oe,onChange:T,onClose:le,className:U,classNames:$,validationBehavior:Q=(s=u??(n==null?void 0:n.validationBehavior))!=null?s:"native",hideEmptyContent:Pe=!1,...V}=i,ce=$e(J),Z={popoverProps:_({placement:"bottom",triggerScaleOnOpen:!1,offset:5,disableAnimation:c},ne),scrollShadowProps:_({ref:ce,isEnabled:(r=a.showScrollIndicators)!=null?r:!0,hideScrollBar:!0,offset:15},H),listboxProps:_({disableAnimation:c},ie)},G=h||"button",fe=typeof G=="string",q=$e(b),R=f.useRef(null),ve=f.useRef(null),me=f.useRef(null);let M=vl({...i,isOpen:S,selectionMode:O,disallowEmptySelection:N,validationBehavior:Q,children:Y,isRequired:a.isRequired,isDisabled:a.isDisabled,isInvalid:a.isInvalid,defaultOpen:C,hideEmptyContent:Pe,onOpenChange:x=>{D==null||D(x),x||le==null||le()},onSelectionChange:x=>{E==null||E(x),T&&typeof T=="function"&&T({target:{...q.current&&{...q.current,name:q.current.name},value:Array.from(x).join(",")}}),M.commitValidation()}});M={...M,...a.isDisabled&&{disabledKeys:new Set([...M.collection.getKeys()])}},Rt(()=>{var x;(x=q.current)!=null&&x.value&&M.setSelectedKeys(new Set([...M.selectedKeys,q.current.value]))},[q.current]);const{labelProps:ke,triggerProps:je,valueProps:ze,menuProps:Ve,descriptionProps:Ae,errorMessageProps:Be,isInvalid:We,validationErrors:j,validationDetails:ue}=Pl({...i,disallowEmptySelection:N,isDisabled:a.isDisabled},M,R),ee=a.isInvalid||oe==="invalid"||We,{isPressed:Oe,buttonProps:lt}=Ka(je,R),{focusProps:ot,isFocused:nt,isFocusVisible:it}=tt(),{isHovered:ut,hoverProps:dt}=Bt({isDisabled:a.isDisabled}),he=f.useMemo(()=>{var x;return(!a.labelPlacement||a.labelPlacement==="inside")&&!g?"outside":(x=a.labelPlacement)!=null?x:"inside"},[a.labelPlacement,g]),He=!!B,Ls=he==="outside-left"||he==="outside"&&(!(He||k)||!!a.isMultiline),Ts=he==="inside",js=he==="outside-left",ct=M.isOpen||He||!!((l=M.selectedItems)!=null&&l.length)||!!w||!!P||!!a.isMultiline,ft=!!((o=M.selectedItems)!=null&&o.length),ht=!!g,gt=F($==null?void 0:$.base,U),A=f.useMemo(()=>$t({...d,isInvalid:ee,labelPlacement:he,disableAnimation:c,className:U}),[Ie(d),ee,he,c,U]);f.useEffect(()=>{if(M.isOpen&&me.current&&ve.current){let x=ve.current.querySelector("[aria-selected=true] [data-label=true]"),te=ce.current;if(x&&te&&x.parentElement){let ye=(te==null?void 0:te.getBoundingClientRect()).height;te.scrollTop=x.parentElement.offsetTop-ye/2+x.parentElement.clientHeight/2}}},[M.isOpen,c]);const pt=typeof i.errorMessage=="function"?i.errorMessage({isInvalid:ee,validationErrors:j,validationDetails:ue}):i.errorMessage||(j==null?void 0:j.join(" ")),Ue=!!k||!!pt;f.useEffect(()=>{if(M.isOpen&&me.current&&R.current){let x=R.current.getBoundingClientRect(),te=me.current;te.style.width=x.width+"px"}},[M.isOpen]);const Vs=f.useCallback((x={})=>({"data-slot":"base","data-filled":z(ct),"data-has-value":z(ft),"data-has-label":z(ht),"data-has-helper":z(Ue),"data-invalid":z(ee),className:A.base({class:F(gt,x.className)}),...x}),[A,Ue,ft,ht,ct,gt]),Ws=f.useCallback((x={})=>({ref:R,"data-slot":"trigger","data-open":z(M.isOpen),"data-disabled":z(a==null?void 0:a.isDisabled),"data-focus":z(nt),"data-pressed":z(Oe),"data-focus-visible":z(it),"data-hover":z(ut),className:A.trigger({class:$==null?void 0:$.trigger}),..._(lt,ot,dt,we(V,{enabled:fe}),we(x))}),[A,R,M.isOpen,$==null?void 0:$.trigger,a==null?void 0:a.isDisabled,nt,Oe,it,ut,lt,ot,dt,V,fe]),Hs=f.useCallback((x={})=>({state:M,triggerRef:R,selectRef:q,selectionMode:O,label:a==null?void 0:a.label,name:a==null?void 0:a.name,isRequired:a==null?void 0:a.isRequired,autoComplete:a==null?void 0:a.autoComplete,isDisabled:a==null?void 0:a.isDisabled,onChange:T,...x}),[M,O,a==null?void 0:a.label,a==null?void 0:a.autoComplete,a==null?void 0:a.name,a==null?void 0:a.isDisabled,R]),Us=f.useCallback((x={})=>({"data-slot":"label",className:A.label({class:F($==null?void 0:$.label,x.className)}),...ke,...x}),[A,$==null?void 0:$.label,ke]),qs=f.useCallback((x={})=>({"data-slot":"value",className:A.value({class:F($==null?void 0:$.value,x.className)}),...ze,...x}),[A,$==null?void 0:$.value,ze]),Xs=f.useCallback((x={})=>({"data-slot":"listboxWrapper",className:A.listboxWrapper({class:F($==null?void 0:$.listboxWrapper,x==null?void 0:x.className)}),style:{maxHeight:I??256,...x.style},..._(Z.scrollShadowProps,x)}),[A.listboxWrapper,$==null?void 0:$.listboxWrapper,Z.scrollShadowProps,I]),Ys=(x={})=>{const te=L??M.collection.size>50;return{state:M,ref:ve,isVirtualized:te,virtualization:te?{maxListboxHeight:I,itemHeight:X}:void 0,"data-slot":"listbox",className:A.listbox({class:F($==null?void 0:$.listbox,x==null?void 0:x.className)}),scrollShadowProps:Z.scrollShadowProps,..._(Z.listboxProps,x,Ve)}},Gs=f.useCallback((x={})=>{var te,qe;const ye=_(Z.popoverProps,x);return{state:M,triggerRef:R,ref:me,"data-slot":"popover",scrollRef:ve,triggerType:"listbox",classNames:{content:A.popoverContent({class:F($==null?void 0:$.popoverContent,x.className)})},...ye,offset:M.selectedItems&&M.selectedItems.length>0?M.selectedItems.length*1e-8+(((te=Z.popoverProps)==null?void 0:te.offset)||0):(qe=Z.popoverProps)==null?void 0:qe.offset,shouldCloseOnInteractOutside:ye!=null&&ye.shouldCloseOnInteractOutside?ye.shouldCloseOnInteractOutside:ra=>Wt(ra,q,M)}},[A,$==null?void 0:$.popoverContent,Z.popoverProps,R,M,M.selectedItems]),Js=f.useCallback(()=>({"data-slot":"selectorIcon","aria-hidden":z(!0),"data-open":z(M.isOpen),className:A.selectorIcon({class:$==null?void 0:$.selectorIcon})}),[A,$==null?void 0:$.selectorIcon,M.isOpen]),Zs=f.useCallback((x={})=>({...x,"data-slot":"innerWrapper",className:A.innerWrapper({class:F($==null?void 0:$.innerWrapper,x==null?void 0:x.className)})}),[A,$==null?void 0:$.innerWrapper]),Qs=f.useCallback((x={})=>({...x,"data-slot":"helperWrapper",className:A.helperWrapper({class:F($==null?void 0:$.helperWrapper,x==null?void 0:x.className)})}),[A,$==null?void 0:$.helperWrapper]),ea=f.useCallback((x={})=>({...x,...Ae,"data-slot":"description",className:A.description({class:F($==null?void 0:$.description,x==null?void 0:x.className)})}),[A,$==null?void 0:$.description]),ta=f.useCallback((x={})=>({...x,"data-slot":"mainWrapper",className:A.mainWrapper({class:F($==null?void 0:$.mainWrapper,x==null?void 0:x.className)})}),[A,$==null?void 0:$.mainWrapper]),sa=f.useCallback((x={})=>({...x,...Be,"data-slot":"error-message",className:A.errorMessage({class:F($==null?void 0:$.errorMessage,x==null?void 0:x.className)})}),[A,Be,$==null?void 0:$.errorMessage]),aa=f.useCallback((x={})=>({"aria-hidden":z(!0),"data-slot":"spinner",color:"current",size:"sm",...re,...x,ref:W,className:A.spinner({class:F($==null?void 0:$.spinner,x==null?void 0:x.className)})}),[A,W,re,$==null?void 0:$.spinner]);return _s.set(M,{isDisabled:a==null?void 0:a.isDisabled,isRequired:a==null?void 0:a.isRequired,name:a==null?void 0:a.name,isInvalid:ee,validationBehavior:Q}),{Component:G,domRef:q,state:M,label:g,name:v,triggerRef:R,isLoading:m,placeholder:B,startContent:w,endContent:P,description:k,selectorIcon:p,hasHelper:Ue,labelPlacement:he,hasPlaceholder:He,renderValue:K,selectionMode:O,disableAnimation:c,isOutsideLeft:js,shouldLabelBeOutside:Ls,shouldLabelBeInside:Ts,isInvalid:ee,errorMessage:pt,getBaseProps:Vs,getTriggerProps:Ws,getLabelProps:Us,getValueProps:qs,getListboxProps:Ys,getPopoverProps:Gs,getSpinnerProps:aa,getMainWrapperProps:ta,getListboxWrapperProps:Xs,getHiddenSelectProps:Hs,getInnerWrapperProps:Zs,getHelperWrapperProps:Qs,getDescriptionProps:ea,getErrorMessageProps:sa,getSelectorIconProps:Js}}const Kt={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Ns(a={}){let{style:t,isFocusable:e}=a,[s,r]=f.useState(!1),{focusWithinProps:l}=At({isDisabled:!e,onFocusWithinChange:n=>r(n)}),o=f.useMemo(()=>s?t:t?{...Kt,...t}:Kt,[s]);return{visuallyHiddenProps:{...l,style:o}}}function Dl(a){let{children:t,elementType:e="div",isFocusable:s,style:r,...l}=a,{visuallyHiddenProps:o}=Ns(a);return de.createElement(e,Me(l,o),t)}function Ml(a,t,e){let{validationBehavior:s,focus:r}=a;Ia(()=>{if(s==="native"&&(e!=null&&e.current)){let u=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";e.current.setCustomValidity(u),e.current.hasAttribute("title")||(e.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(Kl(e.current))}});let l=Xe(()=>{t.resetValidation()}),o=Xe(u=>{var i;t.displayValidation.isInvalid||t.commitValidation();let d=e==null||(i=e.current)===null||i===void 0?void 0:i.form;if(!u.defaultPrevented&&e&&d&&Il(d)===e.current){var c;r?r():(c=e.current)===null||c===void 0||c.focus(),ka("keyboard")}u.preventDefault()}),n=Xe(()=>{t.commitValidation()});f.useEffect(()=>{let u=e==null?void 0:e.current;if(!u)return;let i=u.form;return u.addEventListener("invalid",o),u.addEventListener("change",n),i==null||i.addEventListener("reset",l),()=>{u.removeEventListener("invalid",o),u.removeEventListener("change",n),i==null||i.removeEventListener("reset",l)}},[e,o,n,l,s])}function El(a){let t=a.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function Kl(a){return{isInvalid:!a.validity.valid,validationDetails:El(a),validationErrors:a.validationMessage?[a.validationMessage]:[]}}function Il(a){for(let t=0;t{var g;return(g=e.current)==null?void 0:g.focus()}},t,a.selectRef),{containerProps:{...h,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{autoComplete:l,disabled:n,"aria-invalid":b||void 0,"aria-required":c&&d==="aria"||void 0,required:c&&d==="native",name:o,tabIndex:-1,value:u==="multiple"?[...t.selectedKeys].map(g=>String(g)):(s=[...t.selectedKeys][0])!=null?s:"",multiple:u==="multiple",onChange:g=>{t.setSelectedKeys(g.target.value),i==null||i(g)}}}}function zl(a){var t;let{state:e,triggerRef:s,selectRef:r,label:l,name:o,isDisabled:n}=a,{containerProps:u,selectProps:i}=kl({...a,selectRef:r},e,s);return e.collection.size<=300?y.jsx("div",{...u,"data-testid":"hidden-select-container",children:y.jsxs("label",{children:[l,y.jsxs("select",{...i,ref:r,children:[y.jsx("option",{}),[...e.collection.getKeys()].map(d=>{let c=e.collection.getItem(d);if((c==null?void 0:c.type)==="item")return y.jsx("option",{value:c.key,children:c.textValue},c.key)})]})]})}):o?y.jsx("input",{autoComplete:i.autoComplete,disabled:n,name:o,type:"hidden",value:(t=[...e.selectedKeys].join(","))!=null?t:""}):null}function Al(a={}){const{domRef:t,isEnabled:e=!0,overflowCheck:s="vertical",visibility:r="auto",offset:l=0,onVisibilityChange:o,updateDeps:n=[]}=a,u=f.useRef(r);f.useEffect(()=>{const i=t==null?void 0:t.current;if(!i||!e)return;const d=(h,g,v,m,p)=>{if(r==="auto"){const S=`${m}${Ot(p)}Scroll`;g&&v?(i.dataset[S]="true",i.removeAttribute(`data-${m}-scroll`),i.removeAttribute(`data-${p}-scroll`)):(i.dataset[`${m}Scroll`]=g.toString(),i.dataset[`${p}Scroll`]=v.toString(),i.removeAttribute(`data-${m}-${p}-scroll`))}else{const S=g&&v?"both":g?m:v?p:"none";S!==u.current&&(o==null||o(S),u.current=S)}},c=()=>{const h=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}];for(const{type:g,prefix:v,suffix:m}of h)if(s===g||s==="both"){const p=g==="vertical"?i.scrollTop>l:i.scrollLeft>l,S=g==="vertical"?i.scrollTop+i.clientHeight+l{["top","bottom","top-bottom","left","right","left-right"].forEach(h=>{i.removeAttribute(`data-${h}-scroll`)})};return c(),i.addEventListener("scroll",c),r!=="auto"&&(b(),r==="both"?(i.dataset.topBottomScroll=String(s==="vertical"),i.dataset.leftRightScroll=String(s==="horizontal")):(i.dataset.topBottomScroll="false",i.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(h=>{i.dataset[`${h}Scroll`]=String(r===h)}))),()=>{i.removeEventListener("scroll",c),b()}},[...n,e,r,s,o,t])}function Bl(a){var t;const[e,s]=Ke(a,Ne.variantKeys),{ref:r,as:l,children:o,className:n,style:u,size:i=40,offset:d=0,visibility:c="auto",isEnabled:b=!0,onVisibilityChange:h,...g}=e,v=l||"div",m=$e(r);Al({domRef:m,offset:d,visibility:c,isEnabled:b,onVisibilityChange:h,updateDeps:[o],overflowCheck:(t=a.orientation)!=null?t:"vertical"});const p=f.useMemo(()=>Ne({...s,className:n}),[Ie(s),n]);return{Component:v,styles:p,domRef:m,children:o,getBaseProps:(C={})=>{var D;return{ref:m,className:p,"data-orientation":(D=a.orientation)!=null?D:"vertical",style:{"--scroll-shadow-size":`${i}px`,...u,...C.style},...g,...C}}}}var Fs=be((a,t)=>{const{Component:e,children:s,getBaseProps:r}=Bl({...a,ref:t});return y.jsx(e,{...r(),children:s})});Fs.displayName="HeroUI.ScrollShadow";var Ol=Fs,Rl=be(function(t,e){const{Component:s,state:r,label:l,hasHelper:o,isLoading:n,triggerRef:u,selectorIcon:i=y.jsx(hr,{}),description:d,errorMessage:c,isInvalid:b,startContent:h,endContent:g,placeholder:v,renderValue:m,shouldLabelBeOutside:p,disableAnimation:S,getBaseProps:C,getLabelProps:D,getTriggerProps:w,getValueProps:P,getListboxProps:k,getPopoverProps:K,getSpinnerProps:E,getMainWrapperProps:B,getInnerWrapperProps:L,getHiddenSelectProps:X,getHelperWrapperProps:I,getListboxWrapperProps:Y,getDescriptionProps:N,getErrorMessageProps:O,getSelectorIconProps:W}=Cl({...t,ref:e}),J=l?y.jsx("label",{...D(),children:l}):null,ne=f.cloneElement(i,W()),H=f.useMemo(()=>{const T=b&&c;return!o||!(T||d)?null:y.jsx("div",{...I(),children:T?y.jsx("div",{...O(),children:c}):y.jsx("div",{...N(),children:d})})},[o,b,c,d,I,O,N]),ie=f.useMemo(()=>{var T;if(!((T=r.selectedItems)!=null&&T.length))return v;if(m&&typeof m=="function"){const le=[...r.selectedItems].map(U=>({key:U.key,data:U.value,type:U.type,props:U.props,textValue:U.textValue,rendered:U.rendered,"aria-label":U["aria-label"]}));return m(le)}return r.selectedItems.map(le=>le.textValue).join(", ")},[r.selectedItems,m,v]),re=f.useMemo(()=>n?y.jsx(za,{...E()}):ne,[n,ne,E]),oe=f.useMemo(()=>r.isOpen?y.jsx(fl,{...K(),children:y.jsx(Ol,{...Y(),children:y.jsx(il,{...k()})})}):null,[r.isOpen,K,r,u,Y,k]);return y.jsxs("div",{...C(),children:[y.jsx(zl,{...X()}),p?J:null,y.jsxs("div",{...B(),children:[y.jsxs(s,{...w(),children:[p?null:J,y.jsxs("div",{...L(),children:[h,y.jsx("span",{...P(),children:ie}),g&&r.selectedItems&&y.jsx(Dl,{elementType:"span",children:","}),g]}),re]}),H]}),S?oe:y.jsx(Aa,{children:oe})]})}),Yl=Rl;export{mr as $,il as a,yr as b,Ul as c,rr as d,Tr as e,ar as f,pl as g,gl as h,Wt as i,cl as j,Xl as l,wt as m,Yl as s,_r as u};
diff --git a/release-tools/webui-static/assets/chunk-M3MASYO7-B4fjH-eW.js b/release-tools/webui-static/assets/chunk-M3MASYO7-B4fjH-eW.js
new file mode 100644
index 0000000..50ae1f8
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-M3MASYO7-B4fjH-eW.js
@@ -0,0 +1 @@
+import{j as e}from"./react-vendor-jWT2yUdV.js";var r=l=>e.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...l,children:e.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})});export{r as C};
diff --git a/release-tools/webui-static/assets/chunk-ML27DD5T-ZFWrMOn-.js b/release-tools/webui-static/assets/chunk-ML27DD5T-ZFWrMOn-.js
new file mode 100644
index 0000000..0722c77
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-ML27DD5T-ZFWrMOn-.js
@@ -0,0 +1 @@
+import{t as le,f as U,V as I,bc as re,bd as W,a7 as ne,aj as oe,a8 as V,aY as _,a5 as ie,a6 as de,E,y as O,z as X,X as k,n as R,be as ue,av as ce,D as S,aC as be,aE as fe,Y as q,al as pe,ah as ye,v as ve,x as me,B as ge}from"./index-DiaaLdUu.js";import{$ as he,t as xe}from"./index-BV9-YCKp.js";import{r as c,j as h}from"./react-vendor-jWT2yUdV.js";import{m as $e}from"./chunk-UX7UMZL5-CMHjUaC_.js";import{f as Ke,e as we,h as Pe,j as Ce,i as De}from"./SelectionManager-Dl9uHsLK.js";import{l as Se,d as Me}from"./layout-Buao20KT.js";import{d as Le}from"./features-animation-BkV7kg8P.js";import{f as ke}from"./gestures-BHfQC-M8.js";import{$ as Ae}from"./Item-D8Sud-UP.js";var B=le({slots:{base:"inline-flex",tabList:["flex","p-1","h-fit","gap-2","items-center","flex-nowrap","overflow-x-scroll","scrollbar-hide","bg-default-100"],tab:["z-0","w-full","px-3","py-1","flex","group","relative","justify-center","items-center","outline-none","cursor-pointer","transition-opacity","tap-highlight-transparent","data-[disabled=true]:cursor-not-allowed","data-[disabled=true]:opacity-30","data-[hover-unselected=true]:opacity-disabled",...U],tabContent:["relative","z-10","text-inherit","whitespace-nowrap","transition-colors","text-default-500","group-data-[selected=true]:text-foreground"],cursor:["absolute","z-0","bg-white"],panel:["py-3","px-1","outline-none","data-[inert=true]:hidden",...U],wrapper:[]},variants:{variant:{solid:{cursor:"inset-0"},light:{tabList:"bg-transparent dark:bg-transparent",cursor:"inset-0"},underlined:{tabList:"bg-transparent dark:bg-transparent",cursor:"h-[2px] w-[80%] bottom-0 shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]"},bordered:{tabList:"bg-transparent dark:bg-transparent border-medium border-default-200 shadow-sm",cursor:"inset-0"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{tabList:"rounded-medium",tab:"h-7 text-tiny rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"h-8 text-small rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"h-9 text-medium rounded-medium",cursor:"rounded-medium"}},radius:{none:{tabList:"rounded-none",tab:"rounded-none",cursor:"rounded-none"},sm:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"rounded-medium",cursor:"rounded-medium"},full:{tabList:"rounded-full",tab:"rounded-full",cursor:"rounded-full"}},fullWidth:{true:{base:"w-full",tabList:"w-full"}},isDisabled:{true:{tabList:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{tab:"transition-none",tabContent:"transition-none"}},placement:{top:{},start:{tabList:"flex-col",panel:"py-0 px-3",wrapper:"flex"},end:{tabList:"flex-col",panel:"py-0 px-3",wrapper:"flex flex-row-reverse"},bottom:{wrapper:"flex flex-col-reverse"}}},defaultVariants:{color:"default",variant:"solid",size:"md",fullWidth:!1,isDisabled:!1},compoundVariants:[{variant:["solid","bordered","light"],color:"default",class:{cursor:["bg-background","dark:bg-default","shadow-small"],tabContent:"group-data-[selected=true]:text-default-foreground"}},{variant:["solid","bordered","light"],color:"primary",class:{cursor:I.solid.primary,tabContent:"group-data-[selected=true]:text-primary-foreground"}},{variant:["solid","bordered","light"],color:"secondary",class:{cursor:I.solid.secondary,tabContent:"group-data-[selected=true]:text-secondary-foreground"}},{variant:["solid","bordered","light"],color:"success",class:{cursor:I.solid.success,tabContent:"group-data-[selected=true]:text-success-foreground"}},{variant:["solid","bordered","light"],color:"warning",class:{cursor:I.solid.warning,tabContent:"group-data-[selected=true]:text-warning-foreground"}},{variant:["solid","bordered","light"],color:"danger",class:{cursor:I.solid.danger,tabContent:"group-data-[selected=true]:text-danger-foreground"}},{variant:"underlined",color:"default",class:{cursor:"bg-foreground",tabContent:"group-data-[selected=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{cursor:"bg-primary",tabContent:"group-data-[selected=true]:text-primary"}},{variant:"underlined",color:"secondary",class:{cursor:"bg-secondary",tabContent:"group-data-[selected=true]:text-secondary"}},{variant:"underlined",color:"success",class:{cursor:"bg-success",tabContent:"group-data-[selected=true]:text-success"}},{variant:"underlined",color:"warning",class:{cursor:"bg-warning",tabContent:"group-data-[selected=true]:text-warning"}},{variant:"underlined",color:"danger",class:{cursor:"bg-danger",tabContent:"group-data-[selected=true]:text-danger"}},{disableAnimation:!0,variant:"underlined",class:{tab:["after:content-['']","after:absolute","after:bottom-0","after:h-[2px]","after:w-[80%]","after:opacity-0","after:shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","data-[selected=true]:after:opacity-100"]}},{disableAnimation:!0,color:"default",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"}},{disableAnimation:!0,color:"primary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground"}},{disableAnimation:!0,color:"secondary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground"}},{disableAnimation:!0,color:"success",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-success data-[selected=true]:text-success-foreground"}},{disableAnimation:!0,color:"warning",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-warning data-[selected=true]:text-warning-foreground"}},{disableAnimation:!0,color:"danger",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-danger data-[selected=true]:text-danger-foreground"}},{disableAnimation:!0,color:"default",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-foreground"}},{disableAnimation:!0,color:"primary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-primary"}},{disableAnimation:!0,color:"secondary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-secondary"}},{disableAnimation:!0,color:"success",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-success"}},{disableAnimation:!0,color:"warning",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-warning"}},{disableAnimation:!0,color:"danger",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-danger"}}],compoundSlots:[{variant:"underlined",slots:["tab","tabList","cursor"],class:["rounded-none"]}]});const Ie=c.createContext(null);function Ne(){const a=c.useRef(!1);return re(()=>(a.current=!0,()=>{a.current=!1}),[]),a}function Re(){const a=Ne(),[e,t]=c.useState(0),s=c.useCallback(()=>{a.current&&t(e+1)},[e]);return[c.useCallback(()=>ke.postRender(s),[s]),e]}const Fe=a=>!a.isLayoutDirty&&a.willUpdate(!1);function G(){const a=new Set,e=new WeakMap,t=()=>a.forEach(Fe);return{add:s=>{a.add(s),e.set(s,s.addEventListener("willUpdate",t))},remove:s=>{a.delete(s);const l=e.get(s);l&&(l(),e.delete(s)),t()},dirty:t}}const J=a=>a===!0,Te=a=>J(a===!0)||a==="id",je=({children:a,id:e,inherit:t=!0})=>{const s=c.useContext(W),l=c.useContext(Ie),[o,d]=Re(),r=c.useRef(null),n=s.id||l;r.current===null&&(Te(t)&&n&&(e=e?n+"-"+e:n),r.current={id:e,group:J(t)&&s.group||G()});const u=c.useMemo(()=>({...r.current,forceRender:o}),[d]);return h.jsx(W.Provider,{value:u,children:a})},ze={...Le,...Me,...Se},Q=new WeakMap;function F(a,e,t){return a?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${Q.get(a)}-${t}-${e}`):""}function Ve(a,e,t){let{key:s,isDisabled:l,shouldSelectOnPressUp:o}=a,{selectionManager:d,selectedKey:r}=e,n=s===r,u=l||e.isDisabled||e.selectionManager.isDisabled(s),{itemProps:i,isPressed:y}=Ke({selectionManager:d,key:s,ref:t,isDisabled:u,shouldSelectOnPressUp:o,linkBehavior:"selection"}),p=F(e,s,"tab"),g=F(e,s,"tabpanel"),{tabIndex:f}=i,b=e.collection.getItem(s),K=ne(b==null?void 0:b.props,{labelable:!0});delete K.id;let v=oe(b==null?void 0:b.props);return{tabProps:V(K,v,i,{id:p,"aria-selected":n,"aria-disabled":u||void 0,"aria-controls":n?g:void 0,tabIndex:u?void 0:f,role:"tab"}),isSelected:n,isDisabled:u,isPressed:y}}function Ee(a,e,t){let s=he(t)?void 0:0;var l;const o=F(e,(l=a.id)!==null&&l!==void 0?l:e==null?void 0:e.selectedKey,"tabpanel"),d=_({...a,id:o,"aria-labelledby":F(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:V(d,{tabIndex:s,role:"tabpanel","aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]})}}class Oe{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,s;return this.disabledKeys.has(e)||!!(!((s=this.collection.getItem(e))===null||s===void 0||(t=s.props)===null||t===void 0)&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){do e=this.collection.getKeyAfter(e),e==null&&(e=this.collection.getFirstKey());while(this.isDisabled(e));return e}getPreviousKey(e){do e=this.collection.getKeyBefore(e),e==null&&(e=this.collection.getLastKey());while(this.isDisabled(e));return e}constructor(e,t,s,l=new Set){this.collection=e,this.flipDirection=t==="rtl"&&s==="horizontal",this.disabledKeys=l,this.tabDirection=s==="horizontal"}}function Ue(a,e,t){let{orientation:s="horizontal",keyboardActivation:l="automatic"}=a,{collection:o,selectionManager:d,disabledKeys:r}=e,{direction:n}=ie(),u=c.useMemo(()=>new Oe(o,n,s,r),[o,r,s,n]),{collectionProps:i}=we({ref:t,selectionManager:d,keyboardDelegate:u,selectOnFocus:l==="automatic",disallowEmptySelection:!0,scrollRef:t,linkBehavior:"selection"}),y=de();Q.set(e,y);let p=_({...a,id:y});return{tabListProps:{...V(i,p),role:"tablist","aria-orientation":s,tabIndex:void 0}}}var Z=E((a,e)=>{var t,s;const{as:l,tabKey:o,destroyInactiveTabPanel:d,state:r,className:n,slots:u,classNames:i,...y}=a,p=l||"div",g=O(e),{tabPanelProps:f}=Ee({...a,id:String(o)},r,g),{focusProps:b,isFocused:K,isFocusVisible:v}=X(),m=r.selectedItem,C=r.collection.getItem(o).props.children,$=k(i==null?void 0:i.panel,n,(t=m==null?void 0:m.props)==null?void 0:t.className),w=o===(m==null?void 0:m.key);return!C||!w&&d?null:h.jsx(p,{ref:g,"data-focus":K,"data-focus-visible":v,"data-inert":w?void 0:"true",inert:ue(!w),...w&&R(f,b,y),className:(s=u.panel)==null?void 0:s.call(u,{class:$}),"data-slot":"panel",children:C})});Z.displayName="HeroUI.TabPanel";var We=Z;function Be(a={}){const{rerender:e=!1,delay:t=0}=a,s=c.useRef(!1),[l,o]=c.useState(!1);return c.useEffect(()=>{s.current=!0;let d=null;return e&&(t>0?d=setTimeout(()=>{o(!0)},t):o(!0)),()=>{s.current=!1,e&&o(!1),d&&clearTimeout(d)}},[e]),[c.useCallback(()=>s.current,[]),l]}var ee=E((a,e)=>{var t;const{className:s,as:l,item:o,state:d,classNames:r,isDisabled:n,listRef:u,slots:i,motionProps:y,disableAnimation:p,disableCursorAnimation:g,shouldSelectOnPressUp:f,onClick:b,tabRef:K,...v}=a,{key:m}=o,C=O(e),$=l||(a.href?"a":"button"),w=typeof $=="string",{tabProps:D,isSelected:M,isDisabled:P,isPressed:A}=Ve({key:m,isDisabled:n,shouldSelectOnPressUp:f},d,C);a.children==null&&delete D["aria-controls"];const N=n||P,{focusProps:T,isFocused:L,isFocusVisible:j}=X(),{hoverProps:z,isHovered:x}=ce({isDisabled:N}),te=k(r==null?void 0:r.tab,s),[,ae]=Be({rerender:!0}),se=()=>{pe(b,D.onClick),!(!(C!=null&&C.current)||!(u!=null&&u.current))&&xe(C.current,{scrollMode:"if-needed",behavior:"smooth",block:"end",inline:"end",boundary:u==null?void 0:u.current})};return h.jsxs($,{ref:$e(C,K),"data-disabled":S(P),"data-focus":S(L),"data-focus-visible":S(j),"data-hover":S(x),"data-hover-unselected":S((x||A)&&!M),"data-pressed":S(A),"data-selected":S(M),"data-slot":"tab",...R(D,N?{}:{...T,...z},q(v,{enabled:w,omitPropNames:new Set(["title"])}),{onClick:se}),className:(t=i.tab)==null?void 0:t.call(i,{class:te}),title:v==null?void 0:v.titleValue,type:$==="button"?"button":void 0,children:[M&&!p&&!g&&ae?h.jsx(be,{features:ze,children:h.jsx(fe.span,{className:i.cursor({class:r==null?void 0:r.cursor}),"data-slot":"cursor",layoutDependency:!1,layoutId:"cursor",transition:{type:"spring",bounce:.15,duration:.5},...y})}):null,h.jsx("div",{className:i.tabContent({class:r==null?void 0:r.tabContent}),"data-slot":"tabContent",children:o.rendered})]})});ee.displayName="HeroUI.Tab";var Ge=ee;class H{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var s;return t&&(s=t.prevKey)!==null&&s!==void 0?s:null}getKeyAfter(e){let t=this.keyMap.get(e);var s;return t&&(s=t.nextKey)!==null&&s!==void 0?s:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(t==null?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=r=>{if(this.keyMap.set(r.key,r),r.childNodes&&r.type==="section")for(let n of r.childNodes)t(n)};for(let r of e)t(r);let s=null,l=0,o=0;for(let[r,n]of this.keyMap)s?(s.nextKey=r,n.prevKey=s.key):(this.firstKey=r,n.prevKey=void 0),n.type==="item"&&(n.index=l++),(n.type==="section"||n.type==="item")&&o++,s=n,s.nextKey=void 0;this._size=o;var d;this.lastKey=(d=s==null?void 0:s.key)!==null&&d!==void 0?d:null}}function He(a){let{filter:e,layoutDelegate:t}=a,s=Pe(a),l=c.useMemo(()=>a.disabledKeys?new Set(a.disabledKeys):new Set,[a.disabledKeys]),o=c.useCallback(u=>e?new H(e(u)):new H(u),[e]),d=c.useMemo(()=>({suppressTextValueWarning:a.suppressTextValueWarning}),[a.suppressTextValueWarning]),r=Ce(a,o,d),n=c.useMemo(()=>new De(r,s,{layoutDelegate:t}),[r,s,t]);return Ye(r,n),{collection:r,disabledKeys:l,selectionManager:n}}function Ye(a,e){const t=c.useRef(null);c.useEffect(()=>{if(e.focusedKey!=null&&!a.getItem(e.focusedKey)&&t.current){const i=t.current.getItem(e.focusedKey),y=[...t.current.getKeys()].map(v=>{const m=t.current.getItem(v);return(m==null?void 0:m.type)==="item"?m:null}).filter(v=>v!==null),p=[...a.getKeys()].map(v=>{const m=a.getItem(v);return(m==null?void 0:m.type)==="item"?m:null}).filter(v=>v!==null);var s,l;const g=((s=y==null?void 0:y.length)!==null&&s!==void 0?s:0)-((l=p==null?void 0:p.length)!==null&&l!==void 0?l:0);var o,d,r;let f=Math.min(g>1?Math.max(((o=i==null?void 0:i.index)!==null&&o!==void 0?o:0)-g+1,0):(d=i==null?void 0:i.index)!==null&&d!==void 0?d:0,((r=p==null?void 0:p.length)!==null&&r!==void 0?r:0)-1),b=null,K=!1;for(;f>=0;){if(!e.isDisabled(p[f].key)){b=p[f];break}if(f((n=i==null?void 0:i.index)!==null&&n!==void 0?n:0)&&(f=(u=i==null?void 0:i.index)!==null&&u!==void 0?u:0),f--}}e.setFocusedKey(b?b.key:null)}t.current=a},[a,e])}function _e(a){var e;let[t,s]=ye(a.selectedKey,(e=a.defaultSelectedKey)!==null&&e!==void 0?e:null,a.onSelectionChange),l=c.useMemo(()=>t!=null?[t]:[],[t]),{collection:o,disabledKeys:d,selectionManager:r}=He({...a,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:l,onSelectionChange:u=>{if(u==="all")return;var i;let y=(i=u.values().next().value)!==null&&i!==void 0?i:null;y===t&&a.onSelectionChange&&a.onSelectionChange(y),s(y)}}),n=t!=null?o.getItem(t):null;return{collection:o,disabledKeys:d,selectionManager:r,selectedKey:t,setSelectedKey:s,selectedItem:n}}function Xe(a){var e,t;let s=_e({...a,suppressTextValueWarning:!0,defaultSelectedKey:(t=(e=a.defaultSelectedKey)!==null&&e!==void 0?e:Y(a.collection,a.disabledKeys?new Set(a.disabledKeys):new Set))!==null&&t!==void 0?t:void 0}),{selectionManager:l,collection:o,selectedKey:d}=s,r=c.useRef(d);return c.useEffect(()=>{let n=d;(l.isEmpty||n==null||!o.getItem(n))&&(n=Y(o,s.disabledKeys),n!=null&&l.setSelectedKeys([n])),(n!=null&&l.focusedKey==null||!l.isFocused&&n!==r.current)&&l.setFocusedKey(n),r.current=n}),{...s,isDisabled:a.isDisabled||!1}}function Y(a,e){let t=null;if(a){var s,l,o,d;for(t=a.getFirstKey();t!=null&&(e.has(t)||!((l=a.getItem(t))===null||l===void 0||(s=l.props)===null||s===void 0)&&s.isDisabled)&&t!==a.getLastKey();)t=a.getKeyAfter(t);t!=null&&(e.has(t)||!((d=a.getItem(t))===null||d===void 0||(o=d.props)===null||o===void 0)&&o.isDisabled)&&t===a.getLastKey()&&(t=a.getFirstKey())}return t}function qe(a){var e,t,s;const l=ve(),[o,d]=me(a,B.variantKeys),{ref:r,as:n,className:u,classNames:i,children:y,disableCursorAnimation:p,motionProps:g,isVertical:f=!1,shouldSelectOnPressUp:b=!0,destroyInactiveTabPanel:K=!0,...v}=o,m=n||"div",C=typeof m=="string",$=O(r),w=(t=(e=a==null?void 0:a.disableAnimation)!=null?e:l==null?void 0:l.disableAnimation)!=null?t:!1,D=Xe({children:y,...v}),{tabListProps:M}=Ue(v,D,$),P=c.useMemo(()=>B({...d,className:u,disableAnimation:w,...f?{placement:"start"}:{}}),[ge(d),u,w,f]),A=k(i==null?void 0:i.base,u),N=c.useMemo(()=>({state:D,slots:P,classNames:i,motionProps:g,disableAnimation:w,listRef:$,shouldSelectOnPressUp:b,disableCursorAnimation:p,isDisabled:a==null?void 0:a.isDisabled}),[D,P,$,g,w,p,b,a==null?void 0:a.isDisabled,i]),T=c.useCallback(x=>({"data-slot":"base",className:P.base({class:k(A,x==null?void 0:x.className)}),...R(q(v,{enabled:C}),x)}),[A,v,P]),L=(s=d.placement)!=null?s:f?"start":"top",j=c.useCallback(x=>({"data-slot":"tabWrapper",className:P.wrapper({class:k(i==null?void 0:i.wrapper,x==null?void 0:x.className)}),"data-placement":L,"data-vertical":f||L==="start"||L==="end"?"vertical":"horizontal"}),[i,P,L,f]),z=c.useCallback(x=>({ref:$,"data-slot":"tabList",className:P.tabList({class:k(i==null?void 0:i.tabList,x==null?void 0:x.className)}),...R(M,x)}),[$,M,i,P]);return{Component:m,domRef:$,state:D,values:N,destroyInactiveTabPanel:K,getBaseProps:T,getTabListProps:z,getWrapperProps:j}}var Je=E(function(e,t){const{Component:s,values:l,state:o,destroyInactiveTabPanel:d,getBaseProps:r,getTabListProps:n,getWrapperProps:u}=qe({...e,ref:t}),i=c.useId(),y=!e.disableAnimation&&!e.disableCursorAnimation,p={state:o,listRef:l.listRef,slots:l.slots,classNames:l.classNames,isDisabled:l.isDisabled,motionProps:l.motionProps,disableAnimation:l.disableAnimation,shouldSelectOnPressUp:l.shouldSelectOnPressUp,disableCursorAnimation:l.disableCursorAnimation},g=[...o.collection].map(b=>h.jsx(Ge,{item:b,...p,...b.props},b.key)),f=h.jsxs(h.Fragment,{children:[h.jsx("div",{...r(),children:h.jsx(s,{...n(),children:y?h.jsx(je,{id:i,children:g}):g})}),[...o.collection].map(b=>h.jsx(We,{classNames:l.classNames,destroyInactiveTabPanel:d,slots:l.slots,state:l.state,tabKey:b.key},b.key))]});return"placement"in e||"isVertical"in e?h.jsx("div",{...u(),children:f}):f}),it=Je,Qe=Ae,dt=Qe;export{dt as a,it as t};
diff --git a/release-tools/webui-static/assets/chunk-MLPFQTYO-DSnBqIsb.js b/release-tools/webui-static/assets/chunk-MLPFQTYO-DSnBqIsb.js
new file mode 100644
index 0000000..7c1b7c7
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-MLPFQTYO-DSnBqIsb.js
@@ -0,0 +1 @@
+import{r as u,j as w}from"./react-vendor-jWT2yUdV.js";import{t as U,v as X,x as q,y as G,B as J,X as C,D as E,E as Q}from"./index-DiaaLdUu.js";import{u as Y}from"./index-BsnVex0g.js";var L=U({slots:{wrapper:"relative shadow-black/5",zoomedWrapper:"relative overflow-hidden rounded-inherit",img:"relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100",blurredImg:["absolute","z-0","inset-0","w-full","h-full","object-cover","filter","blur-lg","scale-105","saturate-150","opacity-30","translate-y-1"]},variants:{radius:{none:{},sm:{},md:{},lg:{},full:{}},shadow:{none:{wrapper:"shadow-none",img:"shadow-none"},sm:{wrapper:"shadow-small",img:"shadow-small"},md:{wrapper:"shadow-medium",img:"shadow-medium"},lg:{wrapper:"shadow-large",img:"shadow-large"}},isZoomed:{true:{img:["object-cover","transform","hover:scale-125"]}},showSkeleton:{true:{wrapper:["group","relative","overflow-hidden","bg-content3 dark:bg-content2"],img:"opacity-0"}},disableAnimation:{true:{img:"transition-none"},false:{img:"transition-transform-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{radius:"lg",shadow:"none",isZoomed:!1,isBlurred:!1,showSkeleton:!1},compoundVariants:[{showSkeleton:!0,disableAnimation:!1,class:{wrapper:["before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-[shimmer_2s_infinite]","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2"]}}],compoundSlots:[{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"none",class:"rounded-none"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"full",class:"rounded-full"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"sm",class:"rounded-small"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"md",class:"rounded-md"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"lg",class:"rounded-large"}]});function ee(l){var c,p;const g=X(),[e,n]=q(l,L.variantKeys),{ref:v,as:i,src:o,className:y,classNames:r,loading:f,isBlurred:b,fallbackSrc:s,isLoading:a,disableSkeleton:d=!!s,removeWrapper:Z=!1,onError:_,onLoad:$,srcSet:I,sizes:k,crossOrigin:x,...h}=e,S=Y({src:o,loading:f,onError:_,onLoad:$,ignoreFallback:!1,srcSet:I,sizes:k,crossOrigin:x}),z=(p=(c=l.disableAnimation)!=null?c:g==null?void 0:g.disableAnimation)!=null?p:!1,W=S==="loaded"&&!a,j=S==="loading"||a,D=l.isZoomed,M=i||"img",N=G(v),{w:P,h:V}=u.useMemo(()=>({w:e.width?typeof e.width=="number"?`${e.width}px`:e.width:"fit-content",h:e.height?typeof e.height=="number"?`${e.height}px`:e.height:"auto"}),[e==null?void 0:e.width,e==null?void 0:e.height]),A=(!o||!W)&&!!s,B=j&&!d,t=u.useMemo(()=>L({...n,disableAnimation:z,showSkeleton:B}),[J(n),z,B]),F=C(y,r==null?void 0:r.img),O=(m={})=>{const T=C(F,m==null?void 0:m.className);return{src:o,ref:N,"data-loaded":E(W),className:t.img({class:T}),loading:f,srcSet:I,sizes:k,crossOrigin:x,...h,style:{...(h==null?void 0:h.height)&&{height:V},...m.style,...h.style}}},H=u.useCallback(()=>{const m=A?{backgroundImage:`url(${s})`}:{};return{className:t.wrapper({class:r==null?void 0:r.wrapper}),style:{...m,maxWidth:P}}},[t,A,s,r==null?void 0:r.wrapper,P]),K=u.useCallback(()=>({src:o,"aria-hidden":E(!0),className:t.blurredImg({class:r==null?void 0:r.blurredImg})}),[t,o,r==null?void 0:r.blurredImg]);return{Component:M,domRef:N,slots:t,classNames:r,isBlurred:b,disableSkeleton:d,fallbackSrc:s,removeWrapper:Z,isZoomed:D,isLoading:j,getImgProps:O,getWrapperProps:H,getBlurredImgProps:K}}var R=Q((l,c)=>{const{Component:p,domRef:g,slots:e,classNames:n,isBlurred:v,isZoomed:i,fallbackSrc:o,removeWrapper:y,disableSkeleton:r,getImgProps:f,getWrapperProps:b,getBlurredImgProps:s}=ee({...l,ref:c}),a=w.jsx(p,{ref:g,...f()});if(y)return a;const d=w.jsx("div",{className:e.zoomedWrapper({class:n==null?void 0:n.zoomedWrapper}),children:a});return v?w.jsxs("div",{...b(),children:[i?d:a,u.cloneElement(a,s())]}):i||!r||o?w.jsxs("div",{...b(),children:[" ",i?d:a]}):a});R.displayName="HeroUI.Image";var se=R;export{se as i};
diff --git a/release-tools/webui-static/assets/chunk-NAV3ZXLI-ChbUTMf0.js b/release-tools/webui-static/assets/chunk-NAV3ZXLI-ChbUTMf0.js
new file mode 100644
index 0000000..cdba1fa
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-NAV3ZXLI-ChbUTMf0.js
@@ -0,0 +1 @@
+import{t as R,b9 as I,V as a,x as k,y as A,X as z,z as H,B as K,l as T,n as U,E as X}from"./index-DiaaLdUu.js";import{r as t,j as b}from"./react-vendor-jWT2yUdV.js";import{C as _}from"./chunk-M3MASYO7-B4fjH-eW.js";var N=R({slots:{base:["relative","max-w-fit","min-w-min","inline-flex","items-center","justify-between","box-border","whitespace-nowrap"],content:"flex-1 text-inherit font-normal",dot:["w-2","h-2","ml-1","rounded-full"],avatar:"flex-shrink-0",closeButton:["z-10","appearance-none","outline-none","select-none","transition-opacity","opacity-70","hover:opacity-100","cursor-pointer","active:opacity-disabled","tap-highlight-transparent"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-medium"},shadow:{},dot:{base:"border-medium border-default text-foreground bg-transparent"}},color:{default:{dot:"bg-default-400"},primary:{dot:"bg-primary"},secondary:{dot:"bg-secondary"},success:{dot:"bg-success"},warning:{dot:"bg-warning"},danger:{dot:"bg-danger"}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"text-medium",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"text-large",avatar:"w-5 h-5"},lg:{base:"px-2 h-8 text-medium",content:"px-2",closeButton:"text-xl",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isOneChar:{true:{},false:{}},isCloseable:{true:{},false:{}},hasStartContent:{true:{}},hasEndContent:{true:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isCloseButtonFocusVisible:{true:{closeButton:[...I,"ring-1","rounded-full"]}}},defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:a.solid.default}},{variant:"solid",color:"primary",class:{base:a.solid.primary}},{variant:"solid",color:"secondary",class:{base:a.solid.secondary}},{variant:"solid",color:"success",class:{base:a.solid.success}},{variant:"solid",color:"warning",class:{base:a.solid.warning}},{variant:"solid",color:"danger",class:{base:a.solid.danger}},{variant:"shadow",color:"default",class:{base:a.shadow.default}},{variant:"shadow",color:"primary",class:{base:a.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:a.shadow.secondary}},{variant:"shadow",color:"success",class:{base:a.shadow.success}},{variant:"shadow",color:"warning",class:{base:a.shadow.warning}},{variant:"shadow",color:"danger",class:{base:a.shadow.danger}},{variant:"bordered",color:"default",class:{base:a.bordered.default}},{variant:"bordered",color:"primary",class:{base:a.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:a.bordered.secondary}},{variant:"bordered",color:"success",class:{base:a.bordered.success}},{variant:"bordered",color:"warning",class:{base:a.bordered.warning}},{variant:"bordered",color:"danger",class:{base:a.bordered.danger}},{variant:"flat",color:"default",class:{base:a.flat.default}},{variant:"flat",color:"primary",class:{base:a.flat.primary}},{variant:"flat",color:"secondary",class:{base:a.flat.secondary}},{variant:"flat",color:"success",class:{base:a.flat.success}},{variant:"flat",color:"warning",class:{base:a.flat.warning}},{variant:"flat",color:"danger",class:{base:a.flat.danger}},{variant:"faded",color:"default",class:{base:a.faded.default}},{variant:"faded",color:"primary",class:{base:a.faded.primary}},{variant:"faded",color:"secondary",class:{base:a.faded.secondary}},{variant:"faded",color:"success",class:{base:a.faded.success}},{variant:"faded",color:"warning",class:{base:a.faded.warning}},{variant:"faded",color:"danger",class:{base:a.faded.danger}},{variant:"light",color:"default",class:{base:a.light.default}},{variant:"light",color:"primary",class:{base:a.light.primary}},{variant:"light",color:"secondary",class:{base:a.light.secondary}},{variant:"light",color:"success",class:{base:a.light.success}},{variant:"light",color:"warning",class:{base:a.light.warning}},{variant:"light",color:"danger",class:{base:a.light.danger}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"sm",class:{base:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"md",class:{base:"w-6 h-6 min-w-6 min-h-6"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"lg",class:{base:"w-7 h-7 min-w-7 min-h-7"}},{isOneChar:!0,isCloseable:!1,hasStartContent:!1,hasEndContent:!1,class:{base:"px-0 justify-center",content:"px-0 flex-none"}},{isOneChar:!0,isCloseable:!0,hasStartContent:!1,hasEndContent:!1,class:{base:"w-auto"}},{isOneChar:!0,variant:"dot",class:{base:"w-auto h-7 px-1 items-center",content:"px-2"}},{hasStartContent:!0,size:"sm",class:{content:"pl-0.5"}},{hasStartContent:!0,size:["md","lg"],class:{content:"pl-1"}},{hasEndContent:!0,size:"sm",class:{content:"pr-0.5"}},{hasEndContent:!0,size:["md","lg"],class:{content:"pr-1"}}]});function q(o){const[m,f]=k(o,N.variantKeys),{ref:p,as:d,children:s,avatar:n,startContent:l,endContent:r,onClose:c,classNames:e,className:g,...v}=m,C=d||"div",j=A(p),P=z(e==null?void 0:e.base,g),u=!!c,S=o.variant==="dot",{focusProps:D,isFocusVisible:w}=H(),x=t.useMemo(()=>typeof s=="string"&&(s==null?void 0:s.length)===1,[s]),y=t.useMemo(()=>!!n||!!l,[n,l]),E=t.useMemo(()=>!!r||u,[r,u]),h=t.useMemo(()=>N({...f,hasStartContent:y,hasEndContent:E,isOneChar:x,isCloseable:u,isCloseButtonFocusVisible:w}),[K(f),w,y,E,x,u]),{pressProps:O}=T({isDisabled:!!(o!=null&&o.isDisabled),onPress:c}),$=()=>({ref:j,className:h.base({class:P}),...v}),M=()=>({role:"button",tabIndex:0,className:h.closeButton({class:e==null?void 0:e.closeButton}),"aria-label":"close chip",...U(O,D)}),F=i=>t.isValidElement(i)?t.cloneElement(i,{className:h.avatar({class:e==null?void 0:e.avatar})}):null,B=i=>t.isValidElement(i)?t.cloneElement(i,{className:z("max-h-[80%]",i.props.className)}):null;return{Component:C,children:s,slots:h,classNames:e,isDot:S,isCloseable:u,startContent:F(n)||B(l),endContent:B(r),getCloseButtonProps:M,getChipProps:$}}var V=X((o,m)=>{const{Component:f,children:p,slots:d,classNames:s,isDot:n,isCloseable:l,startContent:r,endContent:c,getCloseButtonProps:e,getChipProps:g}=q({...o,ref:m}),v=t.useMemo(()=>n&&!r?b.jsx("span",{className:d.dot({class:s==null?void 0:s.dot})}):r,[d,r,n]),C=t.useMemo(()=>l?b.jsx("span",{...e(),children:c||b.jsx(_,{})}):c,[c,l,e]);return b.jsxs(f,{...g(),children:[v,b.jsx("span",{className:d.content({class:s==null?void 0:s.content}),children:p}),C]})});V.displayName="HeroUI.Chip";var Q=V;export{Q as c};
diff --git a/release-tools/webui-static/assets/chunk-OPTZHMJX-CY9g90YL.js b/release-tools/webui-static/assets/chunk-OPTZHMJX-CY9g90YL.js
new file mode 100644
index 0000000..dbd8f9c
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-OPTZHMJX-CY9g90YL.js
@@ -0,0 +1 @@
+import{t as N,f as V,h as F,i as R,w as H,j as z,l as O,m as S,n as w,o as q,p as K,q as U,v as W,x as G,y as J,z as Q,B as X,D as P,E as Y}from"./index-DiaaLdUu.js";import{j as s,r as E}from"./react-vendor-jWT2yUdV.js";var I=N({base:["relative inline-flex items-center outline-none tap-highlight-transparent",...V],variants:{size:{sm:"text-small",md:"text-medium",lg:"text-large"},color:{foreground:"text-foreground",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",danger:"text-danger"},underline:{none:"no-underline",hover:"hover:underline",always:"underline",active:"active:underline",focus:"focus:underline"},isBlock:{true:["px-2","py-1","hover:after:opacity-100","after:content-['']","after:inset-0","after:opacity-0","after:w-full","after:h-full","after:rounded-xl","after:transition-background","after:absolute"],false:"hover:opacity-80 active:opacity-disabled transition-opacity"},isDisabled:{true:"opacity-disabled cursor-default pointer-events-none"},disableAnimation:{true:"after:transition-none transition-none"}},compoundVariants:[{isBlock:!0,color:"foreground",class:"hover:after:bg-foreground/10"},{isBlock:!0,color:"primary",class:"hover:after:bg-primary/20"},{isBlock:!0,color:"secondary",class:"hover:after:bg-secondary/20"},{isBlock:!0,color:"success",class:"hover:after:bg-success/20"},{isBlock:!0,color:"warning",class:"hover:after:bg-warning/20"},{isBlock:!0,color:"danger",class:"hover:after:bg-danger/20"},{underline:["hover","always","active","focus"],class:"underline-offset-4"}],defaultVariants:{color:"primary",size:"md",isBlock:!1,underline:"none",isDisabled:!1}}),Z="flex mx-1 text-current self-center",ee=r=>s.jsxs("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...r,children:[s.jsx("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),s.jsx("path",{d:"M15 3h6v6"}),s.jsx("path",{d:"M10 14L21 3"})]});function re(r,t){let{elementType:n="a",onPress:o,onPressStart:i,onPressEnd:l,onClick:a,role:u,isDisabled:c,...f}=r,b={};n!=="a"&&(b={role:"link",tabIndex:c?void 0:0});let p=F()||R();a&&typeof a=="function"&&u!=="button"&&H("onClick is deprecated, please use onPress instead. See: https://github.com/heroui-inc/heroui/issues/4292","useLink");const x=e=>{p&&(a==null||a(e)),o==null||o(e)};let{focusableProps:k}=z(r,t),{pressProps:d,isPressed:h}=O({onPress:x,onPressStart:i,onPressEnd:l,isDisabled:c,ref:t}),g=S(f,{labelable:!0,isLink:n==="a"}),$=w(k,d),v=q(),y=K(r);return{isPressed:h,linkProps:w(g,y,{...$,...b,"aria-disabled":c||void 0,"aria-current":r["aria-current"],onClick:e=>{var m;(m=d.onClick)==null||m.call(d,e),!p&&a&&a(e),!v.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&U(e.currentTarget,e)&&r.href&&(e.preventDefault(),v.open(e.currentTarget,e,r.href,r.routerOptions))}})}}function ae(r){var t,n,o,i;const l=W(),[a,u]=G(r,I.variantKeys),{ref:c,as:f,children:b,anchorIcon:p,isExternal:x=!1,showAnchorIcon:k=!1,autoFocus:d=!1,className:h,onPress:g,onPressStart:$,onPressEnd:v,onClick:y,...e}=a,m=f||"a",C=J(c),L=(n=(t=r==null?void 0:r.disableAnimation)!=null?t:l==null?void 0:l.disableAnimation)!=null?n:!1,{linkProps:j}=re({...e,onPress:g,onPressStart:$,onPressEnd:v,onClick:y,isDisabled:r.isDisabled,elementType:`${f}`},C),{isFocused:D,isFocusVisible:A,focusProps:B}=Q({autoFocus:d});x&&(e.rel=(o=e.rel)!=null?o:"noopener noreferrer",e.target=(i=e.target)!=null?i:"_blank");const T=E.useMemo(()=>I({...u,disableAnimation:L,className:h}),[X(u),L,h]),_=E.useCallback(()=>({ref:C,className:T,"data-focus":P(D),"data-disabled":P(r.isDisabled),"data-focus-visible":P(A),...w(B,j,e)}),[T,D,A,B,j,e]);return{Component:m,children:b,anchorIcon:p,showAnchorIcon:k,getLinkProps:_}}var M=Y((r,t)=>{const{Component:n,children:o,showAnchorIcon:i,anchorIcon:l=s.jsx(ee,{className:Z}),getLinkProps:a}=ae({ref:t,...r});return s.jsx(n,{...a(),children:s.jsxs(s.Fragment,{children:[o,i&&l]})})});M.displayName="HeroUI.Link";var ne=M;export{ne as l};
diff --git a/release-tools/webui-static/assets/chunk-RJKRL3AU-CjtrMR1U.js b/release-tools/webui-static/assets/chunk-RJKRL3AU-CjtrMR1U.js
new file mode 100644
index 0000000..4f5000f
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-RJKRL3AU-CjtrMR1U.js
@@ -0,0 +1 @@
+var m=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),h=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),s=/^(data-.*)$/,f=/^(aria-.*)$/,n=/^(on[A-Z].*)$/;function g(o,l={}){let{labelable:c=!0,enabled:p=!0,propNames:t,omitPropNames:a,omitEventNames:r,omitDataProps:d,omitEventProps:u}=l,i={};if(!p)return o;for(const e in o)a!=null&&a.has(e)||r!=null&&r.has(e)&&n.test(e)||n.test(e)&&!h.has(e)||d&&s.test(e)||u&&n.test(e)||(Object.prototype.hasOwnProperty.call(o,e)&&(m.has(e)||c&&f.test(e)||t!=null&&t.has(e)||s.test(e))||n.test(e))&&(i[e]=o[e]);return i}export{g as f};
diff --git a/release-tools/webui-static/assets/chunk-SLABUSGS-Cmz8sGrU.js b/release-tools/webui-static/assets/chunk-SLABUSGS-Cmz8sGrU.js
new file mode 100644
index 0000000..934c9c2
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-SLABUSGS-Cmz8sGrU.js
@@ -0,0 +1 @@
+import{t as _,a6 as M,aY as B,aW as U,n as q}from"./index-DiaaLdUu.js";import{r,j as p}from"./react-vendor-jWT2yUdV.js";var N=_({base:"flex flex-col gap-2 items-start"});function Q(e){const t=r.useRef(null);return r.useMemo(()=>({get current(){return t.current},set current(a){t.current=a,typeof e=="function"?e(a):e&&(e.current=a)}}),[e])}function X(e){let{id:t,label:a,"aria-labelledby":l,"aria-label":n,labelElementType:i="label"}=e;t=M(t);let d=M(),s={};a&&(l=l?`${d} ${l}`:d,s={id:d,htmlFor:i==="label"?t:void 0});let u=B({id:t,"aria-label":n,"aria-labelledby":l});return{labelProps:s,fieldProps:u}}var C=Symbol("default");function Y(e,t){let a=r.useContext(e);if(t===null)return null;if(a&&typeof a=="object"&&"slots"in a&&a.slots){let l=new Intl.ListFormat().format(Object.keys(a.slots).map(i=>`"${i}"`));if(!t&&!a.slots[C])throw new Error(`A slot prop is required. Valid slot names are ${l}.`);let n=t||C;if(!a.slots[n])throw new Error(`Invalid slot "${t}". Valid slot names are ${l}.`);return a.slots[n]}return a}function k(e,t,a){let l=Y(a,e.slot)||{},{ref:n,...i}=l,d=Q(r.useMemo(()=>U(t,n),[t,n])),s=q(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?s.style=u=>{let f=typeof i.style=="function"?i.style(u):i.style,c={...u.defaultStyle,...f},m=typeof e.style=="function"?e.style({...u,defaultStyle:c}):e.style;return{...c,...m}}:s.style={...i.style,...e.style}),[s,d]}const F={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},L={...F,customError:!0,valid:!1},v={isInvalid:!1,validationDetails:F,validationErrors:[]},T=r.createContext({}),j="__formValidationState"+Date.now();function Z(e){if(e[j]){let{realtimeValidation:t,displayValidation:a,updateValidation:l,resetValidation:n,commitValidation:i}=e[j];return{realtimeValidation:t,displayValidation:a,updateValidation:l,resetValidation:n,commitValidation:i}}return K(e)}function K(e){let{isInvalid:t,validationState:a,name:l,value:n,builtinValidation:i,validate:d,validationBehavior:s="aria"}=e;a&&(t||(t=a==="invalid"));let u=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:L}:null,f=r.useMemo(()=>{if(!d||n==null)return null;let o=W(d,n);return A(o)},[d,n]);i!=null&&i.validationDetails.valid&&(i=void 0);let c=r.useContext(T),m=r.useMemo(()=>l?Array.isArray(l)?l.flatMap(o=>h(c[o])):h(c[l]):[],[c,l]),[P,w]=r.useState(c),[I,$]=r.useState(!1);c!==P&&(w(c),$(!1));let y=r.useMemo(()=>A(I?[]:m),[I,m]),g=r.useRef(v),[V,x]=r.useState(v),b=r.useRef(v),O=()=>{if(!R)return;E(!1);let o=f||i||g.current;S(o,b.current)||(b.current=o,x(o))},[R,E]=r.useState(!1);return r.useEffect(O),{realtimeValidation:u||y||f||i||v,displayValidation:s==="native"?u||y||V:u||y||f||i||V,updateValidation(o){s==="aria"&&!S(V,o)?x(o):g.current=o},resetValidation(){let o=v;S(o,b.current)||(b.current=o,x(o)),s==="native"&&E(!1),$(!0)},commitValidation(){s==="native"&&E(!0),$(!0)}}}function h(e){return e?Array.isArray(e)?e:[e]:[]}function W(e,t){if(typeof e=="function"){let a=e(t);if(a&&typeof a!="boolean")return h(a)}return[]}function A(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:L}:null}function S(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((a,l)=>a===t.validationErrors[l])&&Object.entries(e.validationDetails).every(([a,l])=>t.validationDetails[a]===l)}var D=r.createContext(null),ee=r.forwardRef(function(t,a){[t,a]=k(t,a,D);let{validationErrors:l,validationBehavior:n="native",children:i,className:d,...s}=t;const u=r.useMemo(()=>N({className:d}),[d]);return p.jsx("form",{noValidate:n!=="native",...s,ref:a,className:u,children:p.jsx(D.Provider,{value:{...t,validationBehavior:n},children:p.jsx(T.Provider,{value:l??{},children:i})})})});export{X as $,ee as F,Z as a,D as b,N as f,Y as u};
diff --git a/release-tools/webui-static/assets/chunk-SXMLSBOY-NckgDZ9w.js b/release-tools/webui-static/assets/chunk-SXMLSBOY-NckgDZ9w.js
new file mode 100644
index 0000000..bebea59
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-SXMLSBOY-NckgDZ9w.js
@@ -0,0 +1 @@
+import{j as s,r as m}from"./react-vendor-jWT2yUdV.js";import{t as L,b0 as P,f as ia,V as c,ar as da,v as ca,y as S,z as ua,av as fa,X as H,n as Z,D as y,Y as ma,E as ba}from"./index-DiaaLdUu.js";import{s as ga}from"./chunk-2QAN2V2R-B2qCPZrG.js";import{u as va}from"./index-BsnVex0g.js";var pa=L({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...ia],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...P,"flex","items-center","justify-center"],name:[...P,"font-normal","text-center","text-inherit"],icon:[...P,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:c.solid.default},primary:{base:c.solid.primary},secondary:{base:c.solid.secondary},success:{base:c.solid.success},warning:{base:c.solid.warning},danger:{base:c.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}},disableAnimation:{true:{base:"transition-none",img:"transition-none"},false:{}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]});L({slots:{base:"flex items-center justify-center h-auto w-max",count:"hover:-translate-x-0"},variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}});var xa=()=>s.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[s.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),s.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]}),[Ia,ha]=da({name:"AvatarGroupContext",strict:!1});function Ca(w={}){var b,g,v,n,p,r;const e=ca(),a=ha(),i=!!a,{as:d,ref:u,src:t,name:x,icon:k,classNames:l,fallback:U,alt:X=x||"avatar",imgRef:Y,color:G=(b=a==null?void 0:a.color)!=null?b:"default",radius:B=(g=a==null?void 0:a.radius)!=null?g:"full",size:F=(v=a==null?void 0:a.size)!=null?v:"md",isBordered:N=(n=a==null?void 0:a.isBordered)!=null?n:!1,isDisabled:j=(p=a==null?void 0:a.isDisabled)!=null?p:!1,isFocusable:$=!1,getInitials:q=ga,ignoreFallback:M=!1,showFallback:J=!1,ImgComponent:_="img",imgProps:D,className:K,onError:Q,disableAnimation:R,...z}=w,W=d||"span",aa=S(u),A=S(Y),{isFocusVisible:ea,isFocused:sa,focusProps:V}=ua(),{isHovered:ra,hoverProps:ta}=fa({isDisabled:j}),h=(r=R??(e==null?void 0:e.disableAnimation))!=null?r:!1,C=va({src:t,onError:Q,ignoreFallback:M})==="loaded",E=typeof _=="string",la=(!t||!C)&&J,f=m.useMemo(()=>{var o;return pa({color:G,radius:B,size:F,isBordered:N,isDisabled:j,isInGroup:i,disableAnimation:h,isInGridGroup:(o=a==null?void 0:a.isGrid)!=null?o:!1})},[G,B,F,N,j,h,i,a==null?void 0:a.isGrid]),O=H(l==null?void 0:l.base,K),I=m.useMemo(()=>$||d==="button",[$,d]),oa=m.useCallback((o={})=>({ref:aa,tabIndex:I?0:-1,"data-hover":y(ra),"data-focus":y(sa),"data-focus-visible":y(ea),className:f.base({class:H(O,o==null?void 0:o.className)}),...Z(z,ta,I?V:{})}),[I,f,O,V,z]),na=m.useCallback((o={})=>({ref:A,src:t,"data-loaded":y(C),className:f.img({class:l==null?void 0:l.img}),...Z(D,o,ma({disableAnimation:h},{enabled:E}))}),[f,C,D,h,t,A,E]);return{Component:W,ImgComponent:_,src:t,alt:X,icon:k,name:x,imgRef:A,slots:f,classNames:l,fallback:U,isImgLoaded:C,showFallback:la,ignoreFallback:M,getInitials:q,getAvatarProps:oa,getImageProps:na}}var T=ba((w,b)=>{const{Component:g,ImgComponent:v,src:n,icon:p=s.jsx(xa,{}),alt:r,classNames:e,slots:a,name:i,showFallback:d,fallback:u,getInitials:t,getAvatarProps:x,getImageProps:k}=Ca({...w,ref:b}),l=m.useMemo(()=>!d&&n?null:u?s.jsx("div",{"aria-label":r,className:a.fallback({class:e==null?void 0:e.fallback}),role:"img",children:u}):i?s.jsx("span",{"aria-label":r,className:a.name({class:e==null?void 0:e.name}),role:"img",children:t(i)}):s.jsx("span",{"aria-label":r,className:a.icon({class:e==null?void 0:e.icon}),role:"img",children:p}),[d,n,u,i,e]);return s.jsxs(g,{...x(),children:[n&&s.jsx(v,{...k(),alt:r}),l]})});T.displayName="HeroUI.Avatar";var Pa=T;export{Pa as a};
diff --git a/release-tools/webui-static/assets/chunk-TE6SZS6W-DGowl7ka.js b/release-tools/webui-static/assets/chunk-TE6SZS6W-DGowl7ka.js
new file mode 100644
index 0000000..a6ea02a
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-TE6SZS6W-DGowl7ka.js
@@ -0,0 +1 @@
+import{u as p}from"./chunk-5PILOUBS-KHYNqMZE.js";import{E as u,y as v,X as x}from"./index-DiaaLdUu.js";import{j as C}from"./react-vendor-jWT2yUdV.js";var a=u((e,t)=>{var o;const{as:l,className:c,children:f,...m}=e,n=l||"div",d=v(t),{slots:s,classNames:r}=p(),i=x(r==null?void 0:r.footer,c);return C.jsx(n,{ref:d,className:(o=s.footer)==null?void 0:o.call(s,{class:i}),...m,children:f})});a.displayName="HeroUI.CardFooter";var y=a;export{y as c};
diff --git a/release-tools/webui-static/assets/chunk-UX7UMZL5-CMHjUaC_.js b/release-tools/webui-static/assets/chunk-UX7UMZL5-CMHjUaC_.js
new file mode 100644
index 0000000..ed254dc
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-UX7UMZL5-CMHjUaC_.js
@@ -0,0 +1 @@
+import{bq as o}from"./index-DiaaLdUu.js";function i(r,n){if(r!=null){if(o(r)){r(n);return}try{r.current=n}catch{throw new Error(`Cannot assign value '${n}' to ref '${r}'`)}}}function c(...r){return n=>{r.forEach(t=>i(t,n))}}export{c as m};
diff --git a/release-tools/webui-static/assets/chunk-WQVQ7P2I-BJd1EiqP.js b/release-tools/webui-static/assets/chunk-WQVQ7P2I-BJd1EiqP.js
new file mode 100644
index 0000000..876ffbf
--- /dev/null
+++ b/release-tools/webui-static/assets/chunk-WQVQ7P2I-BJd1EiqP.js
@@ -0,0 +1 @@
+import{t as se,f as ce,V as F,aQ as de,a5 as pe,ao as V,ah as fe}from"./index-DiaaLdUu.js";import{r as S}from"./react-vendor-jWT2yUdV.js";var Te=se({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...ce],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:F.solid.foreground},primary:{base:"before:bg-primary",content:F.solid.primary},secondary:{base:"before:bg-secondary",content:F.solid.secondary},success:{base:"before:bg-success",content:F.solid.success},warning:{base:"before:bg-warning",content:F.solid.warning},danger:{base:"before:bg-danger",content:F.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{none:{content:"shadow-none"},sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]});function ue(){return typeof window.ResizeObserver<"u"}function J(t){const{ref:e,box:o,onResize:n}=t;S.useEffect(()=>{let l=e==null?void 0:e.current;if(l)if(ue()){const a=new window.ResizeObserver(s=>{s.length&&n()});return a.observe(l,{box:o}),()=>{l&&a.unobserve(l)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,e,o])}function G(t,e=-1/0,o=1/0){return Math.min(Math.max(t,e),o)}const M={top:"top",bottom:"top",left:"left",right:"left"},U={top:"bottom",bottom:"top",left:"right",right:"left"},me={top:"left",left:"top"},Q={top:"height",left:"width"},le={width:"totalWidth",height:"totalHeight"},B={};let E=typeof document<"u"?window.visualViewport:null;function K(t){let e=0,o=0,n=0,l=0,a=0,s=0,r={};var v;let d=((v=E==null?void 0:E.scale)!==null&&v!==void 0?v:1)>1;if(t.tagName==="BODY"){let p=document.documentElement;n=p.clientWidth,l=p.clientHeight;var f;e=(f=E==null?void 0:E.width)!==null&&f!==void 0?f:n;var b;o=(b=E==null?void 0:E.height)!==null&&b!==void 0?b:l,r.top=p.scrollTop||t.scrollTop,r.left=p.scrollLeft||t.scrollLeft,E&&(a=E.offsetTop,s=E.offsetLeft)}else({width:e,height:o,top:a,left:s}=N(t)),r.top=t.scrollTop,r.left=t.scrollLeft,n=e,l=o;if(de()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d){r.top=0,r.left=0;var u;a=(u=E==null?void 0:E.pageTop)!==null&&u!==void 0?u:0;var i;s=(i=E==null?void 0:E.pageLeft)!==null&&i!==void 0?i:0}return{width:e,height:o,totalWidth:n,totalHeight:l,scroll:r,top:a,left:s}}function ge(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function W(t,e,o,n,l,a,s){var r;let v=(r=l.scroll[t])!==null&&r!==void 0?r:0,d=n[Q[t]],f=n.scroll[M[t]]+a,b=d+n.scroll[M[t]]-a,u=e-v+s[t]-n[M[t]],i=e-v+o+s[t]-n[M[t]];return ub?Math.max(b-i,f-u):0}function be(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function D(t){if(B[t])return B[t];let[e,o]=t.split(" "),n=M[e]||"right",l=me[n];M[o]||(o="center");let a=Q[n],s=Q[l];return B[t]={placement:e,crossPlacement:o,axis:n,crossAxis:l,size:a,crossSize:s},B[t]}function q(t,e,o,n,l,a,s,r,v,d){let{placement:f,crossPlacement:b,axis:u,crossAxis:i,size:p,crossSize:h}=n,c={};var m;c[i]=(m=t[i])!==null&&m!==void 0?m:0;var g,_,L,P;b==="center"?c[i]+=(((g=t[h])!==null&&g!==void 0?g:0)-((_=o[h])!==null&&_!==void 0?_:0))/2:b!==i&&(c[i]+=((L=t[h])!==null&&L!==void 0?L:0)-((P=o[h])!==null&&P!==void 0?P:0)),c[i]+=a;const $=t[i]-o[h]+v+d,H=t[i]+t[h]-v-d;if(c[i]=G(c[i],$,H),f===u){const k=r?s[p]:e[le[p]];c[U[u]]=Math.floor(k-t[u]+l)}else c[u]=Math.floor(t[u]+t[p]+l);return c}function ve(t,e,o,n,l,a,s,r){const v=n?o.height:e[le.height];var d;let f=t.top!=null?o.top+t.top:o.top+(v-((d=t.bottom)!==null&&d!==void 0?d:0)-s);var b,u,i,p,h,c;let m=r!=="top"?Math.max(0,e.height+e.top+((b=e.scroll.top)!==null&&b!==void 0?b:0)-f-(((u=l.top)!==null&&u!==void 0?u:0)+((i=l.bottom)!==null&&i!==void 0?i:0)+a)):Math.max(0,f+s-(e.top+((p=e.scroll.top)!==null&&p!==void 0?p:0))-(((h=l.top)!==null&&h!==void 0?h:0)+((c=l.bottom)!==null&&c!==void 0?c:0)+a));return Math.min(e.height-a*2,m)}function ee(t,e,o,n,l,a){let{placement:s,axis:r,size:v}=a;var d,f;if(s===r)return Math.max(0,o[r]-t[r]-((d=t.scroll[r])!==null&&d!==void 0?d:0)+e[r]-((f=n[r])!==null&&f!==void 0?f:0)-n[U[r]]-l);var b;return Math.max(0,t[v]+t[r]+t.scroll[r]-e[r]-o[r]-o[v]-((b=n[r])!==null&&b!==void 0?b:0)-n[U[r]]-l)}function he(t,e,o,n,l,a,s,r,v,d,f,b,u,i,p,h){let c=D(t),{size:m,crossAxis:g,crossSize:_,placement:L,crossPlacement:P}=c,$=q(e,r,o,c,f,b,d,u,p,h),H=f,k=ee(r,d,e,l,a+f,c);if(s&&n[m]>k){let j=D(`${U[L]} ${P}`),ie=q(e,r,o,j,f,b,d,u,p,h);ee(r,d,e,l,a+f,j)>k&&(c=j,$=ie,H=f)}let y="bottom";c.axis==="top"?c.placement==="top"?y="top":c.placement==="bottom"&&(y="bottom"):c.crossAxis==="top"&&(c.crossPlacement==="top"?y="bottom":c.crossPlacement==="bottom"&&(y="top"));let w=W(g,$[g],o[_],r,v,a,d);$[g]+=w;let z=ve($,r,d,u,l,a,o.height,y);i&&i{if(!o||n===null)return;let l=a=>{let s=a.target;if(!e.current||s instanceof Node&&!s.contains(e.current)||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement)return;let r=n||we.get(e.current);r&&r()};return window.addEventListener("scroll",l,!0),()=>{window.removeEventListener("scroll",l,!0)}},[o,n,e])}let x=typeof document<"u"?window.visualViewport:null;function ye(t){let{direction:e}=pe(),{arrowSize:o=0,targetRef:n,overlayRef:l,scrollRef:a=l,placement:s="bottom",containerPadding:r=12,shouldFlip:v=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:b=0,shouldUpdatePosition:u=!0,isOpen:i=!0,onClose:p,maxHeight:h,arrowBoundaryOffset:c=0}=t,[m,g]=S.useState(null),_=[u,s,l.current,n.current,a.current,r,v,d,f,b,i,e,h,c,o],L=S.useRef(x==null?void 0:x.scale);S.useEffect(()=>{i&&(L.current=x==null?void 0:x.scale)},[i]);let P=S.useCallback(()=>{if(u===!1||!i||!l.current||!n.current||!d||(x==null?void 0:x.scale)!==L.current)return;let w=null;if(a.current&&a.current.contains(document.activeElement)){var z;let C=(z=document.activeElement)===null||z===void 0?void 0:z.getBoundingClientRect(),X=a.current.getBoundingClientRect();var T;if(w={type:"top",offset:((T=C==null?void 0:C.top)!==null&&T!==void 0?T:0)-X.top},w.offset>X.height/2){w.type="bottom";var A;w.offset=((A=C==null?void 0:C.bottom)!==null&&A!==void 0?A:0)-X.bottom}}let R=l.current;if(!h&&l.current){var O;R.style.top="0px",R.style.bottom="";var Y;R.style.maxHeight=((Y=(O=window.visualViewport)===null||O===void 0?void 0:O.height)!==null&&Y!==void 0?Y:window.innerHeight)+"px"}let I=$e({placement:Pe(s,e),overlayNode:l.current,targetNode:n.current,scrollNode:a.current||l.current,padding:r,shouldFlip:v,boundaryElement:d,offset:f,crossOffset:b,maxHeight:h,arrowSize:o,arrowBoundaryOffset:c});if(I.position){if(R.style.top="",R.style.bottom="",R.style.left="",R.style.right="",Object.keys(I.position).forEach(C=>R.style[C]=I.position[C]+"px"),R.style.maxHeight=I.maxHeight!=null?I.maxHeight+"px":"",w&&document.activeElement&&a.current){let C=document.activeElement.getBoundingClientRect(),X=a.current.getBoundingClientRect(),Z=C[w.type]-X[w.type];a.current.scrollTop+=Z-w.offset}g(I)}},_);V(P,_),Ee(P),J({ref:l,onResize:P}),J({ref:n,onResize:P});let $=S.useRef(!1);V(()=>{let w,z=()=>{$.current=!0,clearTimeout(w),w=setTimeout(()=>{$.current=!1},500),P()},T=()=>{$.current&&z()};return x==null||x.addEventListener("resize",z),x==null||x.addEventListener("scroll",T),()=>{x==null||x.removeEventListener("resize",z),x==null||x.removeEventListener("scroll",T)}},[P]);let H=S.useCallback(()=>{$.current||p==null||p()},[p,$]);_e({triggerRef:n,isOpen:i,onClose:p&&H});var k,y;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...m==null?void 0:m.position,maxHeight:(k=m==null?void 0:m.maxHeight)!==null&&k!==void 0?k:"100vh"}},placement:(y=m==null?void 0:m.placement)!==null&&y!==void 0?y:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:m==null?void 0:m.arrowOffsetLeft,top:m==null?void 0:m.arrowOffsetTop}},updatePosition:P}}function Ee(t){V(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Pe(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function Re(t){let[e,o]=fe(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const n=S.useCallback(()=>{o(!0)},[o]),l=S.useCallback(()=>{o(!1)},[o]),a=S.useCallback(()=>{o(!e)},[o,e]);return{isOpen:e,setOpen:o,open:n,close:l,toggle:a}}var Se=t=>{const e={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(e==null?void 0:e[t])||{}},He=t=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[t],ke=(t,e)=>{if(e.includes("-")){const[o]=e.split("-");if(o.includes(t))return!1}return!0},Ie=(t,e)=>{if(e.includes("-")){const[,o]=e.split("-");return`${t}-${o}`}return t};export{we as $,ye as a,ke as b,Ie as c,Re as d,Se as g,Te as p,He as t};
diff --git a/release-tools/webui-static/assets/code_editor-TFSnOENo.js b/release-tools/webui-static/assets/code_editor-TFSnOENo.js
new file mode 100644
index 0000000..a7c5399
--- /dev/null
+++ b/release-tools/webui-static/assets/code_editor-TFSnOENo.js
@@ -0,0 +1 @@
+import{G as o}from"./iconBase-B7bT1FlI.js";import{R as k,r as n,j as b}from"./react-vendor-jWT2yUdV.js";import{E as l,R as w,o as L}from"./codemirror-core-782AVq39.js";import{j}from"./codemirror-lang-DFaD5e7G.js";import{a as T,c as R}from"./index-DiaaLdUu.js";function N(t){return o({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 2c-.218 0 -.432 .002 -.642 .005l-.616 .017l-.299 .013l-.579 .034l-.553 .046c-4.785 .464 -6.732 2.411 -7.196 7.196l-.046 .553l-.034 .579c-.005 .098 -.01 .198 -.013 .299l-.017 .616l-.004 .318l-.001 .324c0 .218 .002 .432 .005 .642l.017 .616l.013 .299l.034 .579l.046 .553c.464 4.785 2.411 6.732 7.196 7.196l.553 .046l.579 .034c.098 .005 .198 .01 .299 .013l.616 .017l.642 .005l.642 -.005l.616 -.017l.299 -.013l.579 -.034l.553 -.046c4.785 -.464 6.732 -2.411 7.196 -7.196l.046 -.553l.034 -.579c.005 -.098 .01 -.198 .013 -.299l.017 -.616l.005 -.642l-.005 -.642l-.017 -.616l-.013 -.299l-.034 -.579l-.046 -.553c-.464 -4.785 -2.411 -6.732 -7.196 -7.196l-.553 -.046l-.579 -.034a28.058 28.058 0 0 0 -.299 -.013l-.616 -.017l-.318 -.004l-.324 -.001zm-1.707 6.293a1 1 0 0 1 1.32 -.083l.094 .083l3 3a1 1 0 0 1 .083 1.32l-.083 .094l-3 3a1 1 0 0 1 -1.497 -1.32l.083 -.094l2.292 -2.293l-2.292 -2.293a1 1 0 0 1 -.083 -1.32l.083 -.094z",fill:"currentColor",strokeWidth:"0"},child:[]}]})(t)}function D(t){return o({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 8l-4 4l4 4"},child:[]},{tag:"path",attr:{d:"M17 8l4 4l-4 4"},child:[]},{tag:"path",attr:{d:"M14 4l-4 16"},child:[]}]})(t)}function F(t){return o({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6v6a3 3 0 0 1 -3 3h-10l4 -4m0 8l-4 -4"},child:[]}]})(t)}function G(t){return o({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 19l2.757 -7.351a1 1 0 0 1 .936 -.649h12.307a1 1 0 0 1 .986 1.164l-.996 5.211a2 2 0 0 1 -1.964 1.625h-14.026a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2"},child:[]}]})(t)}function O(t){return o({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M8 9h8"},child:[]},{tag:"path",attr:{d:"M8 13h6"},child:[]},{tag:"path",attr:{d:"M11.012 19.193l-3.012 1.807v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v6"},child:[]},{tag:"path",attr:{d:"M20 21l2 -2l-2 -2"},child:[]},{tag:"path",attr:{d:"M17 17l-2 2l2 2"},child:[]}]})(t)}function H(t){return o({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 17a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"},child:[]},{tag:"path",attr:{d:"M9 17v-13h10v8"},child:[]},{tag:"path",attr:{d:"M9 8h10"},child:[]},{tag:"path",attr:{d:"M16 19h6"},child:[]},{tag:"path",attr:{d:"M19 16v6"},child:[]}]})(t)}function I(t){return o({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"},child:[]},{tag:"path",attr:{d:"M21 21l-6 -6"},child:[]}]})(t)}function P(t){return o({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 7l16 0"},child:[]},{tag:"path",attr:{d:"M10 11l0 6"},child:[]},{tag:"path",attr:{d:"M14 11l0 6"},child:[]},{tag:"path",attr:{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"},child:[]},{tag:"path",attr:{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"},child:[]}]})(t)}function _(t){return o({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 10l4.553 -2.276a1 1 0 0 1 1.447 .894v6.764a1 1 0 0 1 -1.447 .894l-4.553 -2.276v-4z"},child:[]},{tag:"path",attr:{d:"M3 6m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z"},child:[]},{tag:"path",attr:{d:"M7 12l4 0"},child:[]},{tag:"path",attr:{d:"M9 10l0 4"},child:[]}]})(t)}const W=t=>{switch(t){case"json":return j();default:return[]}},q=k.forwardRef((t,M)=>{var h,s,u,g,f,m,v,p;const{isDark:r}=T(),i=!!((h=t.options)!=null&&h.chromeless),[C,d]=n.useState(t.value||t.defaultValue||""),c=k.useRef(null);n.useEffect(()=>{t.value!==void 0&&d(t.value)},[t.value]),n.useImperativeHandle(M,()=>({getValue:()=>{var e,a;return((a=(e=c.current)==null?void 0:e.view)==null?void 0:a.state.doc.toString())||C}}));const x=[l.theme({"&":{fontSize:"14px",height:"100% !important",backgroundColor:"transparent !important"},"&.cm-editor":{backgroundColor:"transparent !important"},".cm-scroller":{fontFamily:"var(--font-family-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace)",lineHeight:"1.6",overflow:"auto !important",height:"100% !important",backgroundColor:"transparent !important"},".cm-gutters":{backgroundColor:"transparent !important",borderRight:"none",color:r?"hsl(var(--heroui-foreground-500) / 0.75)":"hsl(var(--heroui-foreground-500) / 0.65)"},".cm-gutterElement":{paddingLeft:"12px",paddingRight:"12px"},".cm-activeLineGutter":{backgroundColor:"transparent !important",color:r?"hsl(var(--heroui-foreground) / 0.9) !important":"hsl(var(--heroui-foreground) / 0.8) !important"},".cm-content":{color:"hsl(var(--heroui-foreground) / 0.9)",caretColor:"hsl(var(--heroui-foreground) / 0.9)",paddingTop:"12px",paddingBottom:"12px",backgroundColor:"transparent !important"},".cm-activeLine":{backgroundColor:r?"hsl(var(--heroui-foreground) / 0.08)":"hsl(var(--heroui-foreground) / 0.06)"},".cm-selectionMatch":{backgroundColor:r?"hsl(var(--heroui-foreground) / 0.16)":"hsl(var(--heroui-foreground) / 0.12)"},".ͼo":{color:r?"hsl(var(--heroui-primary) / 0.85)":"hsl(var(--heroui-primary) / 0.75)"},".ͼd":{color:r?"#98c379cc":"#50a14fcc"},".ͼc":{color:r?"#d19a66cc":"#c18401cc"}}),W(t.language||t.defaultLanguage),((s=t.options)==null?void 0:s.wordWrap)==="on"?l.lineWrapping:[],(u=t.options)!=null&&u.readOnly?l.editable.of(!1):[]].flat();return b.jsx("div",{style:{fontSize:((g=t.options)==null?void 0:g.fontSize)||14,height:t.height||"100%",display:"flex",flexDirection:"column"},className:R(i?"overflow-hidden transition-colors bg-transparent":"rounded-xl border overflow-hidden transition-colors backdrop-blur-sm",!i&&(r?"border-white/10 bg-white/5 text-default-100":"border-white/40 dark:border-white/10 bg-white/60 dark:bg-black/20 text-default-700")),children:b.jsx(w,{ref:c,value:t.value??t.defaultValue,height:"100%",className:"h-full w-full [&_.cm-editor]:!bg-transparent [&_.cm-scroller]:!bg-transparent",style:{backgroundColor:"transparent"},theme:r?L:"light",extensions:x,onChange:e=>{var a;d(e),(a=t.onChange)==null||a.call(t,e)},readOnly:(f=t.options)==null?void 0:f.readOnly,basicSetup:{lineNumbers:((m=t.options)==null?void 0:m.lineNumbers)!=="off",foldGutter:((v=t.options)==null?void 0:v.folding)!==!1,highlightActiveLine:((p=t.options)==null?void 0:p.renderLineHighlight)!=="none"}})})});export{q as C,N as T,O as a,D as b,I as c,F as d,H as e,_ as f,G as g,P as h};
diff --git a/release-tools/webui-static/assets/codemirror-core-782AVq39.js b/release-tools/webui-static/assets/codemirror-core-782AVq39.js
new file mode 100644
index 0000000..2c82f41
--- /dev/null
+++ b/release-tools/webui-static/assets/codemirror-core-782AVq39.js
@@ -0,0 +1,12 @@
+import{r as be,j as nf}from"./react-vendor-jWT2yUdV.js";function Us(){return Us=Object.assign?Object.assign.bind():function(n){for(var e=1;e{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e>1;if(n=fa[i])e=i+1;else return!0;if(e==t)return!1}}function ko(n){return n>=127462&&n<=127487}const So=8205;function of(n,e,t=!0,i=!0){return(t?ua:lf)(n,e,i)}function ua(n,e,t){if(e==n.length)return e;e&&da(n.charCodeAt(e))&&pa(n.charCodeAt(e-1))&&e--;let i=ms(n,e);for(e+=Co(i);e=0&&ko(ms(n,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function lf(n,e,t){for(;e>0;){let i=ua(n,e-2,t);if(i=56320&&n<57344}function pa(n){return n>=55296&&n<56320}function Co(n){return n<65536?1:2}class q{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=Jt(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),Ye.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Jt(this,e,t);let i=[];return this.decompose(e,t,i,0),Ye.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new gi(this),r=new gi(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new gi(this,e)}iterRange(e,t=this.length){return new ma(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new ga(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?q.empty:e.length<=32?new J(e):Ye.from(J.split(e,[]))}}class J extends q{constructor(e,t=af(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?i:l)>=e)return new hf(s,l,i,o);s=l+1,i++}}decompose(e,t,i,s){let r=e<=0&&t>=this.length?this:new J(Ao(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=i.pop(),l=kn(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new J(l,o.length+r.length));else{let a=l.length>>1;i.push(new J(l.slice(0,a)),new J(l.slice(a)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof J))return super.replace(e,t,i);[e,t]=Jt(this,e,t);let s=kn(this.text,kn(i.text,Ao(this.text,0,e)),t),r=this.length+i.length-(t-e);return s.length<=32?new J(s,r):Ye.from(J.split(s,[]),r)}sliceString(e,t=this.length,i=`
+`){[e,t]=Jt(this,e,t);let s="";for(let r=0,o=0;r<=t&&oe&&o&&(s+=i),er&&(s+=l.slice(Math.max(0,e-r),t-r)),r=a+1}return s}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],s=-1;for(let r of e)i.push(r),s+=r.length+1,i.length==32&&(t.push(new J(i,s)),i=[],s=-1);return s>-1&&t.push(new J(i,s)),t}}class Ye extends q{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.children[r],l=s+o.length,a=i+o.lines-1;if((t?a:l)>=e)return o.lineInner(e,t,i,s);s=l+1,i=a+1}}decompose(e,t,i,s){for(let r=0,o=0;o<=t&&r=o){let h=s&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!h?i.push(l):l.decompose(e-o,t-o,i,h)}o=a+1}}replace(e,t,i){if([e,t]=Jt(this,e,t),i.lines=r&&t<=l){let a=o.replace(e-r,t-r,i),h=this.lines-o.lines+a.lines;if(a.lines>4&&a.lines>h>>6){let c=this.children.slice();return c[s]=a,new Ye(c,this.length-(t-e)+i.length)}return super.replace(r,l,a)}r=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
+`){[e,t]=Jt(this,e,t);let s="";for(let r=0,o=0;re&&r&&(s+=i),eo&&(s+=l.sliceString(e-o,t-o,i)),o=a+1}return s}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Ye))return 0;let i=0,[s,r,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;s+=t,r+=t){if(s==o||r==l)return i;let a=this.children[s],h=e.children[r];if(a!=h)return i+a.scanIdentical(h,t);i+=a.length+1}}static from(e,t=e.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let p of e)p.flatten(d);return new J(d,t)}let s=Math.max(32,i>>5),r=s<<1,o=s>>1,l=[],a=0,h=-1,c=[];function f(d){let p;if(d.lines>r&&d instanceof Ye)for(let m of d.children)f(m);else d.lines>o&&(a>o||!a)?(u(),l.push(d)):d instanceof J&&a&&(p=c[c.length-1])instanceof J&&d.lines+p.lines<=32?(a+=d.lines,h+=d.length+1,c[c.length-1]=new J(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>s&&u(),a+=d.lines,h+=d.length+1,c.push(d))}function u(){a!=0&&(l.push(c.length==1?c[0]:Ye.from(c,h)),h=-1,a=c.length=0)}for(let d of e)f(d);return u(),l.length==1?l[0]:new Ye(l,t)}}q.empty=new J([""],0);function af(n){let e=-1;for(let t of n)e+=t.length+1;return e}function kn(n,e,t=0,i=1e9){for(let s=0,r=0,o=!0;r=t&&(a>i&&(l=l.slice(0,i-s)),s0?1:(e instanceof J?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],o=r>>1,l=s instanceof J?s.text.length:s.children.length;if(o==(t>0?l:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
+`,this;e--}else if(s instanceof J){let a=s.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=s.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof J?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class ma{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new gi(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class ga{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(q.prototype[Symbol.iterator]=function(){return this.iter()},gi.prototype[Symbol.iterator]=ma.prototype[Symbol.iterator]=ga.prototype[Symbol.iterator]=function(){return this});class hf{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}}function Jt(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function ie(n,e,t=!0,i=!0){return of(n,e,t,i)}function cf(n){return n>=56320&&n<57344}function ff(n){return n>=55296&&n<56320}function ke(n,e){let t=n.charCodeAt(e);if(!ff(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return cf(i)?(t-55296<<10)+(i-56320)+65536:t}function zr(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function Je(n){return n<65536?1:2}const Gs=/\r\n?|\n/;var we=(function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n})(we||(we={}));class et{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return r+(e-s);r+=l}else{if(i!=we.Simple&&h>=e&&(i==we.TrackDel&&se||i==we.TrackBefore&&se))return null;if(h>e||h==e&&t<0&&!l)return e==s||t<0?r:r+a;r+=a}s=h}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return r}touchesRange(e,t=e){for(let i=0,s=0;i=0&&s<=t&&l>=e)return st?"cover":!0;s=l}return!1}toString(){let e="";for(let t=0;t=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new et(e)}static create(e){return new et(e)}}class te extends et{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return _s(this,(t,i,s,r,o)=>e=e.replace(s,s+(i-t),o),!1),e}mapDesc(e,t=!1){return Ys(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let s=0,r=0;s=0){t[s]=l,t[s+1]=o;let a=s>>1;for(;i.length0&&ut(i,t,r.text),r.forward(c),l+=c}let h=e[o++];for(;l>1].toJSON()))}return e}static of(e,t,i){let s=[],r=[],o=0,l=null;function a(c=!1){if(!c&&!s.length)return;ou||f<0||u>t)throw new RangeError(`Invalid change range ${f} to ${u} (in doc of length ${t})`);let p=d?typeof d=="string"?q.of(d.split(i||Gs)):d:q.empty,m=p.length;if(f==u&&m==0)return;fo&&me(s,f-o,-1),me(s,u-f,m),ut(r,s,p),o=u}}return h(e),a(!l),l}static empty(e){return new te(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let s=0;sl&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;i.length=0&&t<=0&&t==n[s+1]?n[s]+=e:s>=0&&e==0&&n[s]==0?n[s+1]+=t:i?(n[s]+=e,n[s+1]+=t):n.push(e,t)}function ut(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i>1])),!(t||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],a=n.sections[o++];e(s,h,r,c,f),s=h,r=c}}}function Ys(n,e,t,i=!1){let s=[],r=i?[]:null,o=new Ci(n),l=new Ci(e);for(let a=-1;;){if(o.done&&l.len||l.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&l.ins==-1){let h=Math.min(o.len,l.len);me(s,h,-1),o.forward(h),l.forward(h)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len=0&&a=0){let h=0,c=o.len;for(;c;)if(l.ins==-1){let f=Math.min(c,l.len);h+=f,c-=f,l.forward(f)}else if(l.ins==0&&l.lena||o.ins>=0&&o.len>a)&&(l||i.length>h),r.forward2(a),o.forward(a)}}}}class Ci{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?q.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?q.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Dt{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,s;return this.empty?i=s=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new Dt(i,s,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return x.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return x.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return x.range(e.anchor,e.head)}static create(e,t,i){return new Dt(e,t,i)}}class x{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:x.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;ie.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new x(e.ranges.map(t=>Dt.fromJSON(t)),e.main)}static single(e,t=e){return new x([x.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;se?8:0)|r)}static normalized(e,t=0){let i=e[t];e.sort((s,r)=>s.from-r.from),t=e.indexOf(i);for(let s=1;sr.head?x.range(a,l):x.range(l,a))}}return new x(e,t)}}function ba(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let qr=0;class O{constructor(e,t,i,s,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=s,this.id=qr++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(e={}){return new O(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:$r),!!e.static,e.enables)}of(e){return new Sn([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Sn(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Sn(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function $r(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class Sn{constructor(e,t,i,s){this.dependencies=e,this.facet=t,this.type=i,this.value=s,this.id=qr++}dynamicSlot(e){var t;let i=this.value,s=this.facet.compareInput,r=this.id,o=e[r]>>1,l=this.type==2,a=!1,h=!1,c=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?h=!0:(((t=e[f.id])!==null&&t!==void 0?t:1)&1)==0&&c.push(e[f.id]);return{create(f){return f.values[o]=i(f),1},update(f,u){if(a&&u.docChanged||h&&(u.docChanged||u.selection)||Js(f,c)){let d=i(f);if(l?!Mo(d,f.values[o],s):!s(d,f.values[o]))return f.values[o]=d,1}return 0},reconfigure:(f,u)=>{let d,p=u.config.address[r];if(p!=null){let m=En(u,p);if(this.dependencies.every(g=>g instanceof O?u.facet(g)===f.facet(g):g instanceof ue?u.field(g,!1)==f.field(g,!1):!0)||(l?Mo(d=i(f),m,s):s(d=i(f),m)))return f.values[o]=m,0}else d=i(f);return f.values[o]=d,1}}}}function Mo(n,e,t){if(n.length!=e.length)return!1;for(let i=0;in[a.id]),s=t.map(a=>a.type),r=i.filter(a=>!(a&1)),o=n[e.id]>>1;function l(a){let h=[];for(let c=0;ci===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Qi).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,s)=>{let r=i.values[t],o=this.updateF(r,s);return this.compareF(r,o)?0:(i.values[t]=o,1)},reconfigure:(i,s)=>{let r=i.facet(Qi),o=s.facet(Qi),l;return(l=r.find(a=>a.field==this))&&l!=o.find(a=>a.field==this)?(i.values[t]=l.create(i),1):s.config.address[this.id]!=null?(i.values[t]=s.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,Qi.of({field:this,create:e})]}get extension(){return this}}const Mt={lowest:4,low:3,default:2,high:1,highest:0};function li(n){return e=>new xa(e,n)}const Nt={highest:li(Mt.highest),high:li(Mt.high),default:li(Mt.default),low:li(Mt.low),lowest:li(Mt.lowest)};class xa{constructor(e,t){this.inner=e,this.prec=t}}class es{of(e){return new Xs(this,e)}reconfigure(e){return es.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Xs{constructor(e,t){this.compartment=e,this.inner=t}}class Ln{constructor(e,t,i,s,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,i){let s=[],r=Object.create(null),o=new Map;for(let u of df(e,t,o))u instanceof ue?s.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),a=[],h=[];for(let u of s)l[u.id]=h.length<<1,h.push(d=>u.slot(d));let c=i==null?void 0:i.config.facets;for(let u in r){let d=r[u],p=d[0].facet,m=c&&c[u]||[];if(d.every(g=>g.type==0))if(l[p.id]=a.length<<1|1,$r(m,d))a.push(i.facet(p));else{let g=p.combine(d.map(y=>y.value));a.push(i&&p.compare(g,i.facet(p))?i.facet(p):g)}else{for(let g of d)g.type==0?(l[g.id]=a.length<<1|1,a.push(g.value)):(l[g.id]=h.length<<1,h.push(y=>g.dynamicSlot(y)));l[p.id]=h.length<<1,h.push(g=>uf(g,p,d))}}let f=h.map(u=>u(l));return new Ln(e,o,f,l,a,r)}}function df(n,e,t){let i=[[],[],[],[],[]],s=new Map;function r(o,l){let a=s.get(o);if(a!=null){if(a<=l)return;let h=i[a].indexOf(o);h>-1&&i[a].splice(h,1),o instanceof Xs&&t.delete(o.compartment)}if(s.set(o,l),Array.isArray(o))for(let h of o)r(h,l);else if(o instanceof Xs){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(o.compartment)||o.inner;t.set(o.compartment,h),r(h,l)}else if(o instanceof xa)r(o.inner,o.prec);else if(o instanceof ue)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof Sn)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,Mt.default);else{let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(h,l)}}return r(n,Mt.default),i.reduce((o,l)=>o.concat(l))}function yi(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let s=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|s}function En(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const wa=O.define(),Qs=O.define({combine:n=>n.some(e=>e),static:!0}),va=O.define({combine:n=>n.length?n[0]:void 0,static:!0}),ka=O.define(),Sa=O.define(),Ca=O.define(),Aa=O.define({combine:n=>n.length?n[0]:!1});class tt{constructor(e,t){this.type=e,this.value=t}static define(){return new pf}}class pf{of(e){return new tt(this,e)}}class mf{constructor(e){this.map=e}of(e){return new N(this,e)}}class N{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new N(this.type,t)}is(e){return this.type==e}static define(e={}){return new mf(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let s of e){let r=s.map(t);r&&i.push(r)}return i}}N.reconfigure=N.define();N.appendConfig=N.define();class ne{constructor(e,t,i,s,r,o){this.startState=e,this.changes=t,this.selection=i,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&ba(i,t.newLength),r.some(l=>l.type==ne.time)||(this.annotations=r.concat(ne.time.of(Date.now())))}static create(e,t,i,s,r,o){return new ne(e,t,i,s,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ne.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}ne.time=tt.define();ne.userEvent=tt.define();ne.addToHistory=tt.define();ne.remote=tt.define();function gf(n,e){let t=[];for(let i=0,s=0;;){let r,o;if(i=n[i]))r=n[i++],o=n[i++];else if(s=0;s--){let r=i[s](n);r instanceof ne?n=r:Array.isArray(r)&&r.length==1&&r[0]instanceof ne?n=r[0]:n=Ta(e,Kt(r),!1)}return n}function bf(n){let e=n.startState,t=e.facet(Ca),i=n;for(let s=t.length-1;s>=0;s--){let r=t[s](n);r&&Object.keys(r).length&&(i=Ma(i,Zs(e,r,n.changes.newLength),!0))}return i==n?n:ne.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const xf=[];function Kt(n){return n==null?xf:Array.isArray(n)?n:[n]}var Y=(function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n})(Y||(Y={}));const wf=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let er;try{er=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function vf(n){if(er)return er.test(n);for(let e=0;e""&&(t.toUpperCase()!=t.toLowerCase()||wf.test(t)))return!0}return!1}function kf(n){return e=>{if(!/\S/.test(e))return Y.Space;if(vf(e))return Y.Word;for(let t=0;t-1)return Y.Word;return Y.Other}}class V{constructor(e,t,i,s,r,o){this.config=e,this.doc=t,this.selection=i,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;ls.set(h,a)),t=null),s.set(l.value.compartment,l.value.extension)):l.is(N.reconfigure)?(t=null,i=l.value):l.is(N.appendConfig)&&(t=null,i=Kt(i).concat(l.value));let r;t?r=e.startState.values.slice():(t=Ln.resolve(i,s,this),r=new V(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,h)=>h.reconfigure(a,this),null).values);let o=e.startState.facet(Qs)?e.newSelection:e.newSelection.asSingle();new V(t,e.newDoc,o,r,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:x.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),s=this.changes(i.changes),r=[i.range],o=Kt(i.effects);for(let l=1;lo.spec.fromJSON(l,a)))}}return V.create({doc:e.doc,selection:x.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=Ln.resolve(e.extensions||[],new Map),i=e.doc instanceof q?e.doc:q.of((e.doc||"").split(t.staticFacet(V.lineSeparator)||Gs)),s=e.selection?e.selection instanceof x?e.selection:x.single(e.selection.anchor,e.selection.head):x.single(0);return ba(s,i.length),t.staticFacet(Qs)||(s=s.asSingle()),new V(t,i,s,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(V.tabSize)}get lineBreak(){return this.facet(V.lineSeparator)||`
+`}get readOnly(){return this.facet(Aa)}phrase(e,...t){for(let i of this.facet(V.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,s)=>{if(s=="$")return"$";let r=+(s||1);return!r||r>t.length?i:t[r-1]})),e}languageDataAt(e,t,i=-1){let s=[];for(let r of this.facet(wa))for(let o of r(this,t,i))Object.prototype.hasOwnProperty.call(o,e)&&s.push(o[e]);return s}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return kf(t.length?t[0]:"")}wordAt(e){let{text:t,from:i,length:s}=this.doc.lineAt(e),r=this.charCategorizer(e),o=e-i,l=e-i;for(;o>0;){let a=ie(t,o,!1);if(r(t.slice(a,o))!=Y.Word)break;o=a}for(;ln.length?n[0]:4});V.lineSeparator=va;V.readOnly=Aa;V.phrases=O.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(s=>n[s]==e[s])}});V.languageData=wa;V.changeFilter=ka;V.transactionFilter=Sa;V.transactionExtender=Ca;es.reconfigure=N.define();function it(n,e,t={}){let i={};for(let s of n)for(let r of Object.keys(s)){let o=s[r],l=i[r];if(l===void 0)i[r]=o;else if(!(l===o||o===void 0))if(Object.hasOwnProperty.call(t,r))i[r]=t[r](l,o);else throw new Error("Config merge conflict for field "+r)}for(let s in e)i[s]===void 0&&(i[s]=e[s]);return i}class gt{eq(e){return this==e}range(e,t=e){return tr.create(e,t,this)}}gt.prototype.startSide=gt.prototype.endSide=0;gt.prototype.point=!1;gt.prototype.mapMode=we.TrackDel;function Kr(n,e){return n==e||n.constructor==e.constructor&&n.eq(e)}let tr=class Da{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Da(e,t,i)}};function ir(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class Ur{constructor(e,t,i,s){this.from=e,this.to=t,this.value=i,this.maxPoint=s}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,s=0){let r=i?this.to:this.from;for(let o=s,l=r.length;;){if(o==l)return o;let a=o+l>>1,h=r[a]-e||(i?this.value[a].endSide:this.value[a].startSide)-t;if(a==o)return h>=0?o:l;h>=0?l=a:o=a+1}}between(e,t,i,s){for(let r=this.findIndex(t,-1e9,!0),o=this.findIndex(i,1e9,!1,r);rd||u==d&&h.startSide>0&&h.endSide<=0)continue;(d-u||h.endSide-h.startSide)<0||(o<0&&(o=u),h.point&&(l=Math.max(l,d-u)),i.push(h),s.push(u-o),r.push(d-o))}return{mapped:i.length?new Ur(s,r,i,l):null,pos:o}}}class F{constructor(e,t,i,s){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=s}static create(e,t,i,s){return new F(e,t,i,s)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:s=0,filterTo:r=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(i&&(t=t.slice().sort(ir)),this.isEmpty)return t.length?F.of(t):this;let l=new Oa(this,null,-1).goto(0),a=0,h=[],c=new ot;for(;l.value||a=0){let f=t[a++];c.addInner(f.from,f.to,f.value)||h.push(f)}else l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||rl.to||r=r&&e<=r+o.length&&o.between(r,e-r,t-r,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return Ai.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Ai.from(e).goto(t)}static compare(e,t,i,s,r=-1){let o=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=r),l=t.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=r),a=To(o,l,i),h=new ai(o,a,r),c=new ai(l,a,r);i.iterGaps((f,u,d)=>Do(h,f,c,u,d,s)),i.empty&&i.length==0&&Do(h,0,c,0,0,s)}static eq(e,t,i=0,s){s==null&&(s=999999999);let r=e.filter(c=>!c.isEmpty&&t.indexOf(c)<0),o=t.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(r.length!=o.length)return!1;if(!r.length)return!0;let l=To(r,o),a=new ai(r,l,0).goto(i),h=new ai(o,l,0).goto(i);for(;;){if(a.to!=h.to||!nr(a.active,h.active)||a.point&&(!h.point||!Kr(a.point,h.point)))return!1;if(a.to>s)return!0;a.next(),h.next()}}static spans(e,t,i,s,r=-1){let o=new ai(e,null,r).goto(t),l=t,a=o.openStart;for(;;){let h=Math.min(o.to,i);if(o.point){let c=o.activeForPoint(o.to),f=o.pointFroml&&(s.span(l,h,o.active,a),a=o.openEnd(h));if(o.to>i)return a+(o.point&&o.to>i?1:0);l=o.to,o.next()}}static of(e,t=!1){let i=new ot;for(let s of e instanceof tr?[e]:t?Sf(e):e)i.add(s.from,s.to,s.value);return i.finish()}static join(e){if(!e.length)return F.empty;let t=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let s=e[i];s!=F.empty;s=s.nextLayer)t=new F(s.chunkPos,s.chunk,t,Math.max(s.maxPoint,t.maxPoint));return t}}F.empty=new F([],[],null,-1);function Sf(n){if(n.length>1)for(let e=n[0],t=1;t0)return n.slice().sort(ir);e=i}return n}F.empty.nextLayer=F.empty;class ot{finishChunk(e){this.chunks.push(new Ur(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,i){this.addInner(e,t,i)||(this.nextLayer||(this.nextLayer=new ot)).add(e,t,i)}addInner(e,t,i){let s=e-this.lastTo||i.startSide-this.last.endSide;if(s<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return s<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=t,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let i=t.value.length-1;return this.last=t.value[i],this.lastFrom=t.from[i]+e,this.lastTo=t.to[i]+e,!0}finish(){return this.finishInner(F.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=F.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function To(n,e,t){let i=new Map;for(let r of n)for(let o=0;o=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&s.push(new Oa(o,t,i,r));return s.length==1?s[0]:new Ai(s)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let i of this.heap)i.goto(e,t);for(let i=this.heap.length>>1;i>=0;i--)gs(this.heap,i);return this.next(),this}forward(e,t){for(let i of this.heap)i.forward(e,t);for(let i=this.heap.length>>1;i>=0;i--)gs(this.heap,i);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),gs(this.heap,0)}}}function gs(n,e){for(let t=n[e];;){let i=(e<<1)+1;if(i>=n.length)break;let s=n[i];if(i+1=0&&(s=n[i+1],i++),t.compare(s)<0)break;n[i]=t,n[e]=s,e=i}}class ai{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Ai.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Zi(this.active,e),Zi(this.activeTo,e),Zi(this.activeRank,e),this.minActive=Oo(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:s,rank:r}=this.cursor;for(;t0;)t++;en(this.active,t,i),en(this.activeTo,t,s),en(this.activeRank,t,r),e&&en(e,t,this.cursor.from),this.minActive=Oo(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let s=this.minActive;if(s>-1&&(this.activeTo[s]-this.cursor.from||this.active[s].endSide-this.cursor.startSide)<0){if(this.activeTo[s]>e){this.to=this.activeTo[s],this.endSide=this.active[s].endSide;break}this.removeActive(s),i&&Zi(i,s)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let r=this.cursor.value;if(!r.point)this.addActive(i),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}}function Do(n,e,t,i,s,r){n.goto(e),t.goto(i);let o=i+s,l=i,a=i-e,h=!!r.boundChange;for(let c=!1;;){let f=n.to+a-t.to,u=f||n.endSide-t.endSide,d=u<0?n.to+a:t.to,p=Math.min(d,o);if(n.point||t.point?(n.point&&t.point&&Kr(n.point,t.point)&&nr(n.activeForPoint(n.to),t.activeForPoint(t.to))||r.comparePoint(l,p,n.point,t.point),c=!1):(c&&r.boundChange(l),p>l&&!nr(n.active,t.active)&&r.compareRange(l,p,n.active,t.active),h&&po)break;l=d,u<=0&&n.next(),u>=0&&t.next()}}function nr(n,e){if(n.length!=e.length)return!1;for(let t=0;t=e;i--)n[i+1]=n[i];n[e]=t}function Oo(n,e){let t=-1,i=1e9;for(let s=0;s=e)return s;if(s==n.length)break;r+=n.charCodeAt(s)==9?t-r%t:1,s=ie(n,s)}return i===!0?-1:n.length}const rr="ͼ",Bo=typeof Symbol>"u"?"__"+rr:Symbol.for(rr),or=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Lo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class yt{constructor(e,t){this.rules=[];let{finish:i}=t||{};function s(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function r(o,l,a,h){let c=[],f=/^@(\w+)\b/.exec(o[0]),u=f&&f[1]=="keyframes";if(f&&l==null)return a.push(o[0]+";");for(let d in l){let p=l[d];if(/&/.test(d))r(d.split(/,\s*/).map(m=>o.map(g=>m.replace(/&/,g))).reduce((m,g)=>m.concat(g)),p,a);else if(p&&typeof p=="object"){if(!f)throw new RangeError("The value of a property ("+d+") should be a primitive value.");r(s(d),p,c,u)}else p!=null&&c.push(d.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+p+";")}(c.length||u)&&a.push((i&&!f&&!h?o.map(i):o).join(", ")+" {"+c.join(" ")+"}")}for(let o in e)r(s(o),e[o],this.rules)}getRules(){return this.rules.join(`
+`)}static newName(){let e=Lo[Bo]||1;return Lo[Bo]=e+1,rr+e.toString(36)}static mount(e,t,i){let s=e[or],r=i&&i.nonce;s?r&&s.setNonce(r):s=new Cf(e,r),s.mount(Array.isArray(t)?t:[t],e)}}let Eo=new Map;class Cf{constructor(e,t){let i=e.ownerDocument||e,s=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&s.CSSStyleSheet){let r=Eo.get(i);if(r)return e[or]=r;this.sheet=new s.CSSStyleSheet,Eo.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[or]=this}mount(e,t){let i=this.sheet,s=0,r=0;for(let o=0;o-1&&(this.modules.splice(a,1),r--,a=-1),a==-1){if(this.modules.splice(r++,0,l),i)for(let h=0;h",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Af=typeof navigator<"u"&&/Mac/.test(navigator.platform),Mf=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var he=0;he<10;he++)bt[48+he]=bt[96+he]=String(he);for(var he=1;he<=24;he++)bt[he+111]="F"+he;for(var he=65;he<=90;he++)bt[he]=String.fromCharCode(he+32),Mi[he]=String.fromCharCode(he);for(var ys in bt)Mi.hasOwnProperty(ys)||(Mi[ys]=bt[ys]);function Tf(n){var e=Af&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||Mf&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Mi:bt)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function U(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var s=t[i];typeof s=="string"?n.setAttribute(i,s):s!=null&&(n[i]=s)}e++}for(;e2);var D={mac:Po||/Mac/.test(xe.platform),windows:/Win/.test(xe.platform),linux:/Linux|X11/.test(xe.platform),ie:ts,ie_version:La?lr.documentMode||6:hr?+hr[1]:ar?+ar[1]:0,gecko:Ro,gecko_version:Ro?+(/Firefox\/(\d+)/.exec(xe.userAgent)||[0,0])[1]:0,chrome:!!bs,chrome_version:bs?+bs[1]:0,ios:Po,android:/Android\b/.test(xe.userAgent),webkit_version:Df?+(/\bAppleWebKit\/(\d+)/.exec(xe.userAgent)||[0,0])[1]:0,safari:cr,safari_version:cr?+(/\bVersion\/(\d+(\.\d+)?)/.exec(xe.userAgent)||[0,0])[1]:0,tabSize:lr.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function jr(n,e){for(let t in n)t=="class"&&e.class?e.class+=" "+n.class:t=="style"&&e.style?e.style+=";"+n.style:e[t]=n[t];return e}const Rn=Object.create(null);function Gr(n,e,t){if(n==e)return!0;n||(n=Rn),e||(e=Rn);let i=Object.keys(n),s=Object.keys(e);if(i.length-0!=s.length-0)return!1;for(let r of i)if(r!=t&&(s.indexOf(r)==-1||n[r]!==e[r]))return!1;return!0}function Of(n,e){for(let t=n.attributes.length-1;t>=0;t--){let i=n.attributes[t].name;e[i]==null&&n.removeAttribute(i)}for(let t in e){let i=e[t];t=="style"?n.style.cssText=i:n.getAttribute(t)!=i&&n.setAttribute(t,i)}}function Io(n,e,t){let i=!1;if(e)for(let s in e)t&&s in t||(i=!0,s=="style"?n.style.cssText="":n.removeAttribute(s));if(t)for(let s in t)e&&e[s]==t[s]||(i=!0,s=="style"?n.style.cssText=t[s]:n.setAttribute(s,t[s]));return i}function Bf(n){let e=Object.create(null);for(let t=0;t0?3e8:-4e8:t>0?1e8:-1e8,new Rt(e,t,t,i,e.widget||null,!1)}static replace(e){let t=!!e.block,i,s;if(e.isBlockGap)i=-5e8,s=4e8;else{let{start:r,end:o}=Ea(e,t);i=(r?t?-3e8:-1:5e8)-1,s=(o?t?2e8:1:-6e8)+1}return new Rt(e,i,s,t,e.widget||null,!0)}static line(e){return new Ki(e)}static set(e,t=!1){return F.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}E.none=F.empty;class $i extends E{constructor(e){let{start:t,end:i}=Ea(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?jr(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||Rn}eq(e){return this==e||e instanceof $i&&this.tagName==e.tagName&&Gr(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}$i.prototype.point=!1;class Ki extends E{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Ki&&this.spec.class==e.spec.class&&Gr(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Ki.prototype.mapMode=we.TrackBefore;Ki.prototype.point=!0;class Rt extends E{constructor(e,t,i,s,r,o){super(t,i,r,e),this.block=s,this.isReplace=o,this.mapMode=s?t<=0?we.TrackBefore:we.TrackAfter:we.TrackDel}get type(){return this.startSide!=this.endSide?fe.WidgetRange:this.startSide<=0?fe.WidgetBefore:fe.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Rt&&Lf(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}Rt.prototype.point=!0;function Ea(n,e=!1){let{inclusiveStart:t,inclusiveEnd:i}=n;return t==null&&(t=n.inclusive),i==null&&(i=n.inclusive),{start:t??e,end:i??e}}function Lf(n,e){return n==e||!!(n&&e&&n.compare(e))}function Ut(n,e,t,i=0){let s=t.length-1;s>=0&&t[s]+i>=n?t[s]=Math.max(t[s],e):t.push(n,e)}class Ti extends gt{constructor(e,t){super(),this.tagName=e,this.attributes=t}eq(e){return e==this||e instanceof Ti&&this.tagName==e.tagName&&Gr(this.attributes,e.attributes)}static create(e){return new Ti(e.tagName,e.attributes||Rn)}static set(e,t=!1){return F.of(e,t)}}Ti.prototype.startSide=Ti.prototype.endSide=-1;function Di(n){let e;return n.nodeType==11?e=n.getSelection?n:n.ownerDocument:e=n,e.getSelection()}function fr(n,e){return e?n==e||n.contains(e.nodeType!=1?e.parentNode:e):!1}function Cn(n,e){if(!e.anchorNode)return!1;try{return fr(n,e.anchorNode)}catch{return!1}}function bi(n){return n.nodeType==3?Bi(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function xi(n,e,t,i){return t?No(n,e,t,i,-1)||No(n,e,t,i,1):!1}function xt(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e}function Pn(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}function No(n,e,t,i,s){for(;;){if(n==t&&e==i)return!0;if(e==(s<0?0:lt(n))){if(n.nodeName=="DIV")return!1;let r=n.parentNode;if(!r||r.nodeType!=1)return!1;e=xt(n)+(s<0?0:1),n=r}else if(n.nodeType==1){if(n=n.childNodes[e+(s<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;e=s<0?lt(n):0}else return!1}}function lt(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function Oi(n,e){let t=e?n.left:n.right;return{left:t,right:t,top:n.top,bottom:n.bottom}}function Ef(n){let e=n.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function Ra(n,e){let t=e.width/n.offsetWidth,i=e.height/n.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-n.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-n.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function Rf(n,e,t,i,s,r,o,l){let a=n.ownerDocument,h=a.defaultView||window;for(let c=n,f=!1;c&&!f;)if(c.nodeType==1){let u,d=c==a.body,p=1,m=1;if(d)u=Ef(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(f=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let k=c.getBoundingClientRect();({scaleX:p,scaleY:m}=Ra(c,k)),u={left:k.left,right:k.left+c.clientWidth*p,top:k.top,bottom:k.top+c.clientHeight*m}}let g=0,y=0;if(s=="nearest")e.top0&&e.bottom>u.bottom+y&&(y=e.bottom-u.bottom+o)):e.bottom>u.bottom&&(y=e.bottom-u.bottom+o,t<0&&e.top-y0&&e.right>u.right+g&&(g=e.right-u.right+r)):e.right>u.right&&(g=e.right-u.right+r,t<0&&e.leftu.bottom||e.leftu.right)&&(e={left:Math.max(e.left,u.left),right:Math.min(e.right,u.right),top:Math.max(e.top,u.top),bottom:Math.min(e.bottom,u.bottom)}),c=c.assignedSlot||c.parentNode}else if(c.nodeType==11)c=c.host;else break}function Pf(n){let e=n.ownerDocument,t,i;for(let s=n.parentNode;s&&!(s==e.body||t&&i);)if(s.nodeType==1)!i&&s.scrollHeight>s.clientHeight&&(i=s),!t&&s.scrollWidth>s.clientWidth&&(t=s),s=s.assignedSlot||s.parentNode;else if(s.nodeType==11)s=s.host;else break;return{x:t,y:i}}class If{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:i}=e;this.set(t,Math.min(e.anchorOffset,t?lt(t):0),i,Math.min(e.focusOffset,i?lt(i):0))}set(e,t,i,s){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=s}}let At=null;D.safari&&D.safari_version>=26&&(At=!1);function Pa(n){if(n.setActive)return n.setActive();if(At)return n.focus(At);let e=[];for(let t=n;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(n.focus(At==null?{get preventScroll(){return At={preventScroll:!0},!0}}:void 0),!At){At=!1;for(let t=0;tMath.max(1,n.scrollHeight-n.clientHeight-4)}function Na(n,e){for(let t=n,i=e;;){if(t.nodeType==3&&i>0)return{node:t,offset:i};if(t.nodeType==1&&i>0){if(t.contentEditable=="false")return null;t=t.childNodes[i-1],i=lt(t)}else if(t.parentNode&&!Pn(t))i=xt(t),t=t.parentNode;else return null}}function Wa(n,e){for(let t=n,i=e;;){if(t.nodeType==3&&i=t){if(l.level==i)return o;(r<0||(s!=0?s<0?l.fromt:e[r].level>l.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}function Va(n,e){if(n.length!=e.length)return!1;for(let t=0;t=0;m-=3)if(Ue[m+1]==-d){let g=Ue[m+2],y=g&2?s:g&4?g&1?r:s:0;y&&(j[f]=j[Ue[m]]=y),l=m;break}}else{if(Ue.length==189)break;Ue[l++]=f,Ue[l++]=u,Ue[l++]=a}else if((p=j[f])==2||p==1){let m=p==s;a=m?0:1;for(let g=l-3;g>=0;g-=3){let y=Ue[g+2];if(y&2)break;if(m)Ue[g+2]|=2;else{if(y&4)break;Ue[g+2]|=4}}}}}function $f(n,e,t,i){for(let s=0,r=i;s<=t.length;s++){let o=s?t[s-1].to:n,l=sa;)p==g&&(p=t[--m].from,g=m?t[m-1].to:n),j[--p]=d;a=c}else r=h,a++}}}function dr(n,e,t,i,s,r,o){let l=i%2?2:1;if(i%2==s%2)for(let a=e,h=0;aa&&o.push(new rt(a,m.from,d));let g=m.direction==Pt!=!(d%2);pr(n,g?i+1:i,s,m.inner,m.from,m.to,o),a=m.to}p=m.to}else{if(p==t||(c?j[p]!=l:j[p]==l))break;p++}u?dr(n,a,p,i+1,s,u,o):ae;){let c=!0,f=!1;if(!h||a>r[h-1].to){let m=j[a-1];m!=l&&(c=!1,f=m==16)}let u=!c&&l==1?[]:null,d=c?i:i+1,p=a;e:for(;;)if(h&&p==r[h-1].to){if(f)break e;let m=r[--h];if(!c)for(let g=m.from,y=h;;){if(g==e)break e;if(y&&r[y-1].to==g)g=r[--y].from;else{if(j[g-1]==l)break e;break}}if(u)u.push(m);else{m.toj.length;)j[j.length]=256;let i=[],s=e==Pt?0:1;return pr(n,s,s,t,0,n.length,i),i}function za(n){return[new rt(0,n,0)]}let qa="";function Uf(n,e,t,i,s){var r;let o=i.head-n.from,l=rt.find(e,o,(r=i.bidiLevel)!==null&&r!==void 0?r:-1,i.assoc),a=e[l],h=a.side(s,t);if(o==h){let u=l+=s?1:-1;if(u<0||u>=e.length)return null;a=e[l=u],o=a.side(!s,t),h=a.side(s,t)}let c=ie(n.text,o,a.forward(s,t));(ca.to)&&(c=h),qa=n.text.slice(Math.min(o,c),Math.max(o,c));let f=l==(s?e.length-1:0)?null:e[l+(s?1:-1)];return f&&c==h&&f.level+(s?0:1)n.some(e=>e)}),Ja=O.define({combine:n=>n.some(e=>e)}),Xa=O.define();class Gt{constructor(e,t="nearest",i="nearest",s=5,r=5,o=!1){this.range=e,this.y=t,this.x=i,this.yMargin=s,this.xMargin=r,this.isSnapshot=o}map(e){return e.empty?this:new Gt(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Gt(x.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const tn=N.define({map:(n,e)=>n.map(e)}),Qa=N.define();function Ae(n,e,t){let i=n.facet(ja);i.length?i[0](e):window.onerror&&window.onerror(String(e),t,void 0,void 0,e)||(t?console.error(t+":",e):console.error(e))}const st=O.define({combine:n=>n.length?n[0]:!0});let Gf=0;const Vt=O.define({combine(n){return n.filter((e,t)=>{for(let i=0;i{let a=[];return o&&a.push(Li.of(h=>{let c=h.plugin(l);return c?o(c):E.none})),r&&a.push(r(l)),a})}static fromClass(e,t){return Q.define((i,s)=>new e(i,s),t)}}class xs{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(i){if(Ae(t.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){Ae(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(i){Ae(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Za=O.define(),Xr=O.define(),Li=O.define(),eh=O.define(),th=O.define(),Ui=O.define(),ih=O.define();function Ho(n,e){let t=n.state.facet(ih);if(!t.length)return t;let i=t.map(r=>r instanceof Function?r(n):r),s=[];return F.spans(i,e.from,e.to,{point(){},span(r,o,l,a){let h=r-e.from,c=o-e.from,f=s;for(let u=l.length-1;u>=0;u--,a--){let d=l[u].spec.bidiIsolate,p;if(d==null&&(d=jf(e.text,h,c)),a>0&&f.length&&(p=f[f.length-1]).to==h&&p.direction==d)p.to=c,f=p.inner;else{let m={from:h,to:c,direction:d,inner:[]};f.push(m),f=m.inner}}}}),s}const nh=O.define();function Qr(n){let e=0,t=0,i=0,s=0;for(let r of n.state.facet(nh)){let o=r(n);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(t=Math.max(t,o.right)),o.top!=null&&(i=Math.max(i,o.top)),o.bottom!=null&&(s=Math.max(s,o.bottom)))}return{left:e,right:t,top:i,bottom:s}}const ui=O.define();class Ee{constructor(e,t,i,s){this.fromA=e,this.toA=t,this.fromB=i,this.toB=s}join(e){return new Ee(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let s=e[t-1];if(!(s.fromA>i.toA)){if(s.toAs.push(new Ee(r,o,l,a))),this.changedRanges=s}static create(e,t,i){return new In(e,t,i)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}const _f=[];class se{constructor(e,t,i=0){this.dom=e,this.length=t,this.flags=i,this.parent=null,e.cmTile=this}get breakAfter(){return this.flags&1}get children(){return _f}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,this.flags&4){this.flags&=-5;let t=this.domAttrs;t&&Of(this.dom,t)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let i=t;for(let s of this.children){if(s==e)return i;i+=s.length+s.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t){return null}domPosFor(e,t){let i=xt(this.dom),s=this.length?e>0:t>0;return new Fe(this.parent.dom,i+(s?1:0),e==0||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof ns)return e;return null}static get(e){return e.cmTile}}class is extends se{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(this.flags&2)return;super.sync(e);let t=this.dom,i=null,s,r=(e==null?void 0:e.node)==t?e:null,o=0;for(let l of this.children){if(l.sync(e),o+=l.length+l.breakAfter,s=i?i.nextSibling:t.firstChild,r&&s!=l.dom&&(r.written=!0),l.dom.parentNode==t)for(;s&&s!=l.dom;)s=Fo(s);else t.insertBefore(l.dom,s);i=l.dom}for(s=i?i.nextSibling:t.firstChild,r&&s&&(r.written=!0);s;)s=Fo(s);this.length=o}}function Fo(n){let e=n.nextSibling;return n.parentNode.removeChild(n),e}class ns extends is{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=se.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],i=this,s=0,r=0;;)if(s==i.children.length){if(!t.length)return;i=i.parent,i.breakAfter&&r++,s=t.pop()}else{let o=i.children[s++];if(o instanceof pt)t.push(s),i=o,s=0;else{let l=r+o.length,a=e(o,r);if(a!==void 0)return a;r=l+o.breakAfter}}}resolveBlock(e,t){let i,s=-1,r,o=-1;if(this.blockTiles((l,a)=>{let h=a+l.length;if(e>=a&&e<=h){if(l.isWidget()&&t>=-1&&t<=1){if(l.flags&32)return!0;l.flags&16&&(i=void 0)}(ae||e==a&&(t>1?l.length:l.covers(-1)))&&(!r||!l.isWidget()&&r.isWidget())&&(r=l,o=e-a)}}),!i&&!r)throw new Error("No tile at position "+e);return i&&t<0||!r?{tile:i,offset:s}:{tile:r,offset:o}}}class pt extends is{constructor(e,t){super(e),this.wrapper=t}isBlock(){return!0}covers(e){return this.children.length?e<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(e,t){let i=new pt(t||document.createElement(e.tagName),e);return t||(i.flags|=4),i}}class Xt extends is{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(e,t,i){let s=new Xt(t||document.createElement("div"),e);return(!t||!i)&&(s.flags|=4),s}get domAttrs(){return this.attrs}resolveInline(e,t,i){let s=null,r=-1,o=null,l=-1;function a(c,f){for(let u=0,d=0;u=f&&(p.isComposite()?a(p,f-d):(!o||o.isHidden&&(t>0||i&&Jf(o,p)))&&(m>f||p.flags&32)?(o=p,l=f-d):(di&&(e=i);let s=e,r=e,o=0;e==0&&t<0||e==i&&t>=0?D.chrome||D.gecko||(e?(s--,o=1):r=0)?0:l.length-1];return D.safari&&!o&&a.width==0&&(a=Array.prototype.find.call(l,h=>h.width)||a),o?Oi(a,o<0):a||null}static of(e,t){let i=new Ot(t||document.createTextNode(e),e);return t||(i.flags|=2),i}}class Qt extends se{constructor(e,t,i,s){super(e,t,s),this.widget=i}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return this.flags&48?!1:(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,!1)}coordsInWidget(e,t,i){let s=this.widget.coordsAt(this.dom,e,t);if(s)return s;if(i)return Oi(this.dom.getBoundingClientRect(),this.length?e==0:t<=0);{let r=this.dom.getClientRects(),o=null;if(!r.length)return null;let l=this.flags&16?!0:this.flags&32?!1:e>0;for(let a=l?r.length-1:0;o=r[a],!(e>0?a==0:a==r.length-1||o.top0;)if(s.isComposite())if(o){if(!e)break;i&&i.break(),e--,o=!1}else if(r==s.children.length){if(!e&&!l.length)break;i&&i.leave(s),o=!!s.breakAfter,{tile:s,index:r}=l.pop(),r++}else{let a=s.children[r],h=a.breakAfter;(t>0?a.length<=e:a.length=0;o--){let l=t.marks[o],a=s.lastChild;if(a instanceof Ce&&a.mark.eq(l.mark))a.dom!=l.dom&&a.setDOM(ws(l.dom)),s=a;else{if(this.cache.reused.get(l)){let c=se.get(l.dom);c&&c.setDOM(ws(l.dom))}let h=Ce.of(l.mark,l.dom);s.append(h),s=h}this.cache.reused.set(l,2)}let r=new Ot(e.text,e.text.nodeValue);r.flags|=8,s.append(r)}addInlineWidget(e,t,i){let s=this.afterWidget&&e.flags&48&&(this.afterWidget.flags&48)==(e.flags&48);s||this.flushBuffer();let r=this.ensureMarks(t,i);!s&&!(e.flags&16)&&r.append(this.getBuffer(1)),r.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,i){this.flushBuffer(),this.ensureMarks(t,i).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){let t=this.afterWidget||this.lastBlock;t.length+=e,this.pos+=e}addLineStart(e,t){var i;e||(e=sh);let s=Xt.start(e,t||((i=this.cache.find(Xt))===null||i===void 0?void 0:i.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=s)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){var i;let s=this.curLine;for(let r=e.length-1;r>=0;r--){let o=e[r],l;if(t>0&&(l=s.lastChild)&&l instanceof Ce&&l.mark.eq(o))s=l,t--;else{let a=Ce.of(o,(i=this.cache.find(Ce,h=>h.mark.eq(o)))===null||i===void 0?void 0:i.dom);s.append(a),s=a,t=0}}return s}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!Vo(this.curLine,!1)||e.dom.nodeName!="BR"&&e.isWidget()&&!(D.ios&&Vo(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(vs,0,32)||new Qt(vs.toDOM(),0,vs,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to=this.pos){let t=new Qf(e.from,e.to,e.value,e.rank),i=this.wrappers.length;for(;i>0&&(this.wrappers[i-1].rank-t.rank||this.wrappers[i-1].to-t.to)<0;)i--;this.wrappers.splice(i,0,t)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let t=this.root;for(let i of this.wrappers){let s=t.lastChild;if(i.fromo.wrapper.eq(i.wrapper)))===null||e===void 0?void 0:e.dom);t.append(r),t=r}}return t}blockPosCovered(){let e=this.lastBlock;return e!=null&&!e.breakAfter&&(!e.isWidget()||(e.flags&160)>0)}getBuffer(e){let t=2|(e<0?16:32),i=this.cache.find(Nn,void 0,1);return i&&(i.flags=t),i||new Nn(t)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class eu{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:s,lineBreak:r,done:o}=this.cursor.next(this.skipCount);if(this.skipCount=0,o)throw new Error("Ran out of text content when drawing inline views");this.text=s;let l=this.textOff=Math.min(e,s.length);return r?null:s.slice(0,l)}let t=Math.min(this.text.length,this.textOff+e),i=this.text.slice(this.textOff,t);return this.textOff=t,i}}const Wn=[Qt,Xt,Ot,Ce,Nn,pt,ns];for(let n=0;n[]),this.index=Wn.map(()=>0),this.reused=new Map}add(e){let t=e.constructor.bucket,i=this.buckets[t];i.length<6?i.push(e):i[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,i=2){let s=e.bucket,r=this.buckets[s],o=this.index[s];for(let l=r.length-1;l>=0;l--){let a=(l+o)%r.length,h=r[a];if((!t||t(h))&&!this.reused.has(h))return r.splice(a,1),a{if(this.cache.add(o),o.isComposite())return!1},enter:o=>this.cache.add(o),leave:()=>{},break:()=>{}}}run(e,t){let i=t&&this.getCompositionContext(t.text);for(let s=0,r=0,o=0;;){let l=os){let h=a-s;this.preserve(h,!o,!l),s=a,r+=h}if(!l)break;this.forward(l.fromA,l.toA),t&&l.fromA<=t.range.fromA&&l.toA>=t.range.toA?(this.emit(r,t.range.fromB),this.builder.addComposition(t,i),this.text.skip(t.range.toB-t.range.fromB),this.emit(t.range.toB,l.toB)):this.emit(r,l.toB),r=l.toB,s=l.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,t,i){let s=ru(this.old),r=this.openMarks;this.old.advance(e,i?1:-1,{skip:(o,l,a)=>{if(o.isWidget())if(this.openWidget)this.builder.continueWidget(a-l);else{let h=a>0||l{o.isLine()?this.builder.addLineStart(o.attrs,this.cache.maybeReuse(o)):(this.cache.add(o),o instanceof Ce&&s.unshift(o.mark)),this.openWidget=!1},leave:o=>{o.isLine()?s.length&&(s.length=r=0):o instanceof Ce&&(s.shift(),r=Math.min(r,s.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let i=null,s=this.builder,r=0,o=F.spans(this.decorations,e,t,{point:(l,a,h,c,f,u)=>{if(h instanceof Rt){if(this.disallowBlockEffectsFor[u]){if(h.block)throw new RangeError("Block decorations may not be specified via plugins");if(a>this.view.state.doc.lineAt(l).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(r=c.length,f>c.length)s.continueWidget(a-l);else{let d=h.widget||(h.block?Zt.block:Zt.inline),p=nu(h),m=this.cache.findWidget(d,a-l,p)||Qt.of(d,this.view,a-l,p);h.block?(h.startSide>0&&s.addLineStartIfNotCovered(i),s.addBlockWidget(m)):(s.ensureLine(i),s.addInlineWidget(m,c,f))}i=null}else i=su(i,h);a>l&&this.text.skip(a-l)},span:(l,a,h,c)=>{for(let f=l;fr,this.openMarks=o}forward(e,t){t-e<=10?this.old.advance(t-e,1,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,1,this.reuseWalker))}getCompositionContext(e){let t=[],i=null;for(let s=e.parentNode;;s=s.parentNode){let r=se.get(s);if(s==this.view.contentDOM)break;r instanceof Ce?t.push(r):r!=null&&r.isLine()?i=r:s.nodeName=="DIV"&&!i&&s!=this.view.contentDOM?i=new Xt(s,sh):t.push(Ce.of(new $i({tagName:s.nodeName.toLowerCase(),attributes:Bf(s)}),s))}return{line:i,marks:t}}}function Vo(n,e){let t=i=>{for(let s of i.children)if((e?s.isText():s.length)||t(s))return!0;return!1};return t(n)}function nu(n){let e=n.isReplace?(n.startSide<0?64:0)|(n.endSide>0?128:0):n.startSide>0?32:16;return n.block&&(e|=256),e}const sh={class:"cm-line"};function su(n,e){let t=e.spec.attributes,i=e.spec.class;return!t&&!i||(n||(n={class:"cm-line"}),t&&jr(t,n),i&&(n.class+=" "+i)),n}function ru(n){let e=[];for(let t=n.parents.length;t>1;t--){let i=t==n.parents.length?n.tile:n.parents[t].tile;i instanceof Ce&&e.push(i.mark)}return e}function ws(n){let e=se.get(n);return e&&e.setDOM(n.cloneNode()),n}class Zt extends nt{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Zt.inline=new Zt("span");Zt.block=new Zt("div");const vs=new class extends nt{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class zo{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=E.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new ns(e,e.contentDOM),this.updateInner([new Ee(0,0,0,e.state.doc.length)],null)}update(e){var t;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:c,toA:f})=>fthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let s=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?s=this.domChanged.newSel.head:!pu(e.changes,this.hasComposition)&&!e.selectionSet&&(s=e.state.selection.main.head));let r=s>-1?lu(this.view,e.changes,s):null;if(this.domChanged=null,this.hasComposition){let{from:c,to:f}=this.hasComposition;i=new Ee(c,f,e.changes.mapPos(c,-1),e.changes.mapPos(f,1)).addToSet(i.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(D.ie||D.chrome)&&!r&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,l=this.blockWrappers;this.updateDeco();let a=cu(o,this.decorations,e.changes);a.length&&(i=Ee.extendWithRanges(i,a));let h=uu(l,this.blockWrappers,e.changes);return h.length&&(i=Ee.extendWithRanges(i,h)),r&&!i.some(c=>c.fromA<=r.range.fromA&&c.toA>=r.range.toA)&&(i=r.range.addToSet(i.slice())),this.tile.flags&2&&i.length==0?!1:(this.updateInner(i,r),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:i}=this.view;i.ignore(()=>{if(t||e.length){let o=this.tile,l=new iu(this.view,o,this.blockWrappers,this.decorations,this.dynamicDecorationMap);this.tile=l.run(e,t),gr(o,l.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=D.chrome||D.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(r),r&&(r.written||i.selectionRange.focusNode!=r.node||!this.tile.dom.contains(r.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let s=[];if(this.view.viewport.from||this.view.viewport.to-1)&&Cn(i,this.view.observer.selectionRange)&&!(s&&i.contains(s));if(!(r||t||o))return;let l=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,h,c;if(a.empty?c=h=this.inlineDOMNearPos(a.anchor,a.assoc||1):(c=this.inlineDOMNearPos(a.head,a.head==a.from?1:-1),h=this.inlineDOMNearPos(a.anchor,a.anchor==a.from?1:-1)),D.gecko&&a.empty&&!this.hasComposition&&ou(h)){let u=document.createTextNode("");this.view.observer.ignore(()=>h.node.insertBefore(u,h.node.childNodes[h.offset]||null)),h=c=new Fe(u,0),l=!0}let f=this.view.observer.selectionRange;(l||!f.focusNode||(!xi(h.node,h.offset,f.anchorNode,f.anchorOffset)||!xi(c.node,c.offset,f.focusNode,f.focusOffset))&&!this.suppressWidgetCursorChange(f,a))&&(this.view.observer.ignore(()=>{D.android&&D.chrome&&i.contains(f.focusNode)&&du(f.focusNode,i)&&(i.blur(),i.focus({preventScroll:!0}));let u=Di(this.view.root);if(u)if(a.empty){if(D.gecko){let d=au(h.node,h.offset);if(d&&d!=3){let p=(d==1?Na:Wa)(h.node,h.offset);p&&(h=new Fe(p.node,p.offset))}}u.collapse(h.node,h.offset),a.bidiLevel!=null&&u.caretBidiLevel!==void 0&&(u.caretBidiLevel=a.bidiLevel)}else if(u.extend){u.collapse(h.node,h.offset);try{u.extend(c.node,c.offset)}catch{}}else{let d=document.createRange();a.anchor>a.head&&([h,c]=[c,h]),d.setEnd(c.node,c.offset),d.setStart(h.node,h.offset),u.removeAllRanges(),u.addRange(d)}o&&this.view.root.activeElement==i&&(i.blur(),s&&s.focus())}),this.view.observer.setSelectionRange(h,c)),this.impreciseAnchor=h.precise?null:new Fe(f.anchorNode,f.anchorOffset),this.impreciseHead=c.precise?null:new Fe(f.focusNode,f.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&xi(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,i=Di(e.root),{anchorNode:s,anchorOffset:r}=e.observer.selectionRange;if(!i||!t.empty||!t.assoc||!i.modify)return;let o=this.lineAt(t.head,t.assoc);if(!o)return;let l=o.posAtStart;if(t.head==l||t.head==l+o.length)return;let a=this.coordsAt(t.head,-1),h=this.coordsAt(t.head,1);if(!a||!h||a.bottom>h.top)return;let c=this.domAtPos(t.head+t.assoc,t.assoc);i.collapse(c.node,c.offset),i.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=t.from&&i.collapse(s,r)}posFromDOM(e,t){let i=this.tile.nearest(e);if(!i)return this.tile.dom.compareDocumentPosition(e)&2?0:this.view.state.doc.length;let s=i.posAtStart;if(i.isComposite()){let r;if(e==i.dom)r=i.dom.childNodes[t];else{let o=lt(e)==0?0:t==0?-1:1;for(;;){let l=e.parentNode;if(l==i.dom)break;o==0&&l.firstChild!=l.lastChild&&(e==l.firstChild?o=-1:o=1),e=l}o<0?r=e:r=e.nextSibling}if(r==i.dom.firstChild)return s;for(;r&&!se.get(r);)r=r.nextSibling;if(!r)return s+i.length;for(let o=0,l=s;;o++){let a=i.children[o];if(a.dom==r)return l;l+=a.length+a.breakAfter}}else return i.isText()?e==i.dom?s+t:s+(t?i.length:0):s}domAtPos(e,t){let{tile:i,offset:s}=this.tile.resolveBlock(e,t);return i.isWidget()?i.domPosFor(e,t):i.domIn(s,t)}inlineDOMNearPos(e,t){let i,s=-1,r=!1,o,l=-1,a=!1;return this.tile.blockTiles((h,c)=>{if(h.isWidget()){if(h.flags&32&&c>=e)return!0;h.flags&16&&(r=!0)}else{let f=c+h.length;if(c<=e&&(i=h,s=e-c,r=f=e&&!o&&(o=h,l=e-c,a=c>e),c>e&&o)return!0}}),!i&&!o?this.domAtPos(e,t):(r&&o?i=null:a&&i&&(o=null),i&&t<0||!o?i.domIn(s,t):o.domIn(l,t))}coordsAt(e,t){let{tile:i,offset:s}=this.tile.resolveBlock(e,t);return i.isWidget()?i.widget instanceof ks?null:i.coordsInWidget(s,t,!0):i.coordsIn(s,t)}lineAt(e,t){let{tile:i}=this.tile.resolveBlock(e,t);return i.isLine()?i:null}coordsForChar(e){let{tile:t,offset:i}=this.tile.resolveBlock(e,1);if(!t.isLine())return null;function s(r,o){if(r.isComposite())for(let l of r.children){if(l.length>=o){let a=s(l,o);if(a)return a}if(o-=l.length,o<0)break}else if(r.isText()&&oMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,a=this.view.textDirection==G.LTR,h=0,c=(f,u,d)=>{for(let p=0;ps);p++){let m=f.children[p],g=u+m.length,y=m.dom.getBoundingClientRect(),{height:k}=y;if(d&&!p&&(h+=y.top-d.top),m instanceof pt)g>i&&c(m,u,y);else if(u>=i&&(h>0&&t.push(-h),t.push(k+h),h=0,o)){let w=m.dom.lastChild,T=w?bi(w):[];if(T.length){let v=T[T.length-1],C=a?v.right-y.left:y.right-v.left;C>l&&(l=C,this.minWidth=r,this.minWidthFrom=u,this.minWidthTo=g)}}d&&p==f.children.length-1&&(h+=d.bottom-y.bottom),u=g+m.breakAfter}};return c(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return getComputedStyle(t.dom).direction=="rtl"?G.RTL:G.LTR}measureTextSize(){let e=this.tile.blockTiles(o=>{if(o.isLine()&&o.children.length&&o.length<=20){let l=0,a;for(let h of o.children){if(!h.isText()||/[^ -~]/.test(h.text))return;let c=bi(h.dom);if(c.length!=1)return;l+=c[0].width,a=c[0].height}if(l)return{lineHeight:o.dom.getBoundingClientRect().height,charWidth:l/o.length,textHeight:a}}});if(e)return e;let t=document.createElement("div"),i,s,r;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(t);let o=bi(t.firstChild)[0];i=t.getBoundingClientRect().height,s=o&&o.width?o.width/27:7,r=o&&o.height?o.height:i,t.remove()}),{lineHeight:i,charWidth:s,textHeight:r}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,s=0;;s++){let r=s==t.viewports.length?null:t.viewports[s],o=r?r.from-1:this.view.state.doc.length;if(o>i){let l=(t.lineBlockAt(o).bottom-t.lineBlockAt(i).top)/this.view.scaleY;e.push(E.replace({widget:new ks(l),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!r)break;i=r.to+1}return E.set(e)}updateDeco(){let e=1,t=this.view.state.facet(Li).map(r=>(this.dynamicDecorationMap[e++]=typeof r=="function")?r(this.view):r),i=!1,s=this.view.state.facet(th).map((r,o)=>{let l=typeof r=="function";return l&&(i=!0),l?r(this.view):r});for(s.length&&(this.dynamicDecorationMap[e++]=i,t.push(F.join(s))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];etypeof r=="function"?r(this.view):r)}scrollIntoView(e){if(e.isSnapshot){let h=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=h.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let h of this.view.state.facet(Xa))try{if(h(this.view,e.range,e))return!0}catch(c){Ae(this.view.state,c,"scroll handler")}let{range:t}=e,i=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),s;if(!i)return;!t.empty&&(s=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let r=Qr(this.view),o={left:i.left-r.left,top:i.top-r.top,right:i.right+r.right,bottom:i.bottom+r.bottom},{offsetWidth:l,offsetHeight:a}=this.view.scrollDOM;Rf(this.view.scrollDOM,o,t.headi.isWidget()||i.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){gr(this.tile)}}function gr(n,e){let t=e==null?void 0:e.get(n);if(t!=1){t==null&&n.destroy();for(let i of n.children)gr(i,e)}}function ou(n){return n.node.nodeType==1&&n.node.firstChild&&(n.offset==0||n.node.childNodes[n.offset-1].contentEditable=="false")&&(n.offset==n.node.childNodes.length||n.node.childNodes[n.offset].contentEditable=="false")}function rh(n,e){let t=n.observer.selectionRange;if(!t.focusNode)return null;let i=Na(t.focusNode,t.focusOffset),s=Wa(t.focusNode,t.focusOffset),r=i||s;if(s&&i&&s.node!=i.node){let l=se.get(s.node);if(!l||l.isText()&&l.text!=s.node.nodeValue)r=s;else if(n.docView.lastCompositionAfterCursor){let a=se.get(i.node);!a||a.isText()&&a.text!=i.node.nodeValue||(r=s)}}if(n.docView.lastCompositionAfterCursor=r!=i,!r)return null;let o=e-r.offset;return{from:o,to:o+r.node.nodeValue.length,node:r.node}}function lu(n,e,t){let i=rh(n,t);if(!i)return null;let{node:s,from:r,to:o}=i,l=s.nodeValue;if(/[\n\r]/.test(l)||n.state.doc.sliceString(i.from,i.to)!=l)return null;let a=e.invertedDesc;return{range:new Ee(a.mapPos(r),a.mapPos(o),r,o),text:s}}function au(n,e){return n.nodeType!=1?0:(e&&n.childNodes[e-1].contentEditable=="false"?1:0)|(e{ie.from&&(t=!0)}),t}class ks extends nt{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function mu(n,e,t=1){let i=n.charCategorizer(e),s=n.doc.lineAt(e),r=e-s.from;if(s.length==0)return x.cursor(e);r==0?t=1:r==s.length&&(t=-1);let o=r,l=r;t<0?o=ie(s.text,r,!1):l=ie(s.text,r);let a=i(s.text.slice(o,l));for(;o>0;){let h=ie(s.text,o,!1);if(i(s.text.slice(h,o))!=a)break;o=h}for(;ln.defaultLineHeight*1.5){let l=n.viewState.heightOracle.textHeight,a=Math.floor((s-t.top-(n.defaultLineHeight-l)*.5)/l);r+=a*n.viewState.heightOracle.lineLength}let o=n.state.sliceDoc(t.from,t.to);return t.from+sr(o,r,n.state.tabSize)}function yr(n,e,t){let i=n.lineBlockAt(e);if(Array.isArray(i.type)){let s;for(let r of i.type){if(r.from>e)break;if(!(r.toe)return r;(!s||r.type==fe.Text&&(s.type!=r.type||(t<0?r.frome)))&&(s=r)}}return s||i}return i}function yu(n,e,t,i){let s=yr(n,e.head,e.assoc||-1),r=!i||s.type!=fe.Text||!(n.lineWrapping||s.widgetLineBreaks)?null:n.coordsAtPos(e.assoc<0&&e.head>s.from?e.head-1:e.head);if(r){let o=n.dom.getBoundingClientRect(),l=n.textDirectionAt(s.from),a=n.posAtCoords({x:t==(l==G.LTR)?o.right-1:o.left+1,y:(r.top+r.bottom)/2});if(a!=null)return x.cursor(a,t?-1:1)}return x.cursor(t?s.to:s.from,t?-1:1)}function qo(n,e,t,i){let s=n.state.doc.lineAt(e.head),r=n.bidiSpans(s),o=n.textDirectionAt(s.from);for(let l=e,a=null;;){let h=Uf(s,r,o,l,t),c=qa;if(!h){if(s.number==(t?n.state.doc.lines:1))return l;c=`
+`,s=n.state.doc.line(s.number+(t?1:-1)),r=n.bidiSpans(s),h=n.visualLineSide(s,!t)}if(a){if(!a(c))return l}else{if(!i)return h;a=i(c)}l=h}}function bu(n,e,t){let i=n.state.charCategorizer(e),s=i(t);return r=>{let o=i(r);return s==Y.Space&&(s=o),s==o}}function xu(n,e,t,i){let s=e.head,r=t?1:-1;if(s==(t?n.state.doc.length:0))return x.cursor(s,e.assoc);let o=e.goalColumn,l,a=n.contentDOM.getBoundingClientRect(),h=n.coordsAtPos(s,e.assoc||-1),c=n.documentTop;if(h)o==null&&(o=h.left-a.left),l=r<0?h.top:h.bottom;else{let d=n.viewState.lineBlockAt(s);o==null&&(o=Math.min(a.right-a.left,n.defaultCharacterWidth*(s-d.from))),l=(r<0?d.top:d.bottom)+c}let f=a.left+o,u=i??n.viewState.heightOracle.textHeight>>1;for(let d=0;;d+=10){let p=l+(u+d)*r,m=br(n,{x:f,y:p},!1,r);return x.cursor(m.pos,m.assoc,void 0,o)}}function wi(n,e,t){for(;;){let i=0;for(let s of n)s.between(e-1,e+1,(r,o,l)=>{if(e>r&&es(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:x.cursor(i,in.viewState.docHeight)return new Xe(n.state.doc.length,-1);if(h=n.elementAtHeight(a),i==null)break;if(h.type==fe.Text){let u=n.docView.coordsAt(i<0?h.from:h.to,i);if(u&&(i<0?u.top<=a+r:u.bottom>=a+r))break}let f=n.viewState.heightOracle.textHeight/2;a=i>0?h.bottom+f:h.top-f}if(n.viewport.from>=h.to||n.viewport.to<=h.from){if(t)return null;if(h.type==fe.Text){let f=gu(n,s,h,o,l);return new Xe(f,f==h.from?1:-1)}}if(h.type!=fe.Text)return a<(h.top+h.bottom)/2?new Xe(h.from,1):new Xe(h.to,-1);let c=n.docView.lineAt(h.from,2);return(!c||c.length!=h.length)&&(c=n.docView.lineAt(h.from,-2)),lh(n,c,h.from,o,l)}function lh(n,e,t,i,s){let r=-1,o=null,l=1e9,a=1e9,h=s,c=s,f=(u,d)=>{for(let p=0;pi?m.left-i:m.rights?m.top-s:m.bottom=h&&(h=Math.min(m.top,h),c=Math.max(m.bottom,c),y=0),(r<0||(y-a||g-l)<0)&&(r>=0&&a&&l=h+2?a=0:(r=d,l=g,a=y,o=m))}};if(e.isText()){for(let d=0;d(o.left+o.right)/2==($o(n,r+t)==G.LTR)?new Xe(t+ie(e.text,r),-1):new Xe(t+r,1)}else{if(!e.length)return new Xe(t,1);for(let m=0;m(o.left+o.right)/2==($o(n,r+t)==G.LTR)?new Xe(d+u.length,-1):new Xe(d,1)}}function $o(n,e){let t=n.state.doc.lineAt(e);return n.bidiSpans(t)[rt.find(n.bidiSpans(t),e-t.from,-1,1)].dir}const di="";class wu{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(V.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=di}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let s=e;;){this.findPointBefore(i,s);let r=this.text.length;this.readNode(s);let o=se.get(s),l=s.nextSibling;if(l==t){o!=null&&o.breakAfter&&!l&&i!=this.view.contentDOM&&this.lineBreak();break}let a=se.get(l);(o&&a?o.breakAfter:(o?o.breakAfter:Pn(s))||Pn(l)&&(s.nodeName!="BR"||o!=null&&o.isWidget())&&this.text.length>r)&&!ku(l,t)&&this.lineBreak(),s=l}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let r=-1,o=1,l;if(this.lineSeparator?(r=t.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(l=s.exec(t))&&(r=l.index,o=l[0].length),this.append(t.slice(i,r<0?t.length:r)),r<0)break;if(this.lineBreak(),o>1)for(let a of this.points)a.node==e&&a.pos>this.text.length&&(a.pos-=o-1);i=r+o}}readNode(e){let t=se.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let s=i.iter();!s.next().done;)s.lineBreak?this.lineBreak():this.append(s.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(vu(e,i.node,i.offset)?t:0))}}function vu(n,e,t){for(;;){if(!e||t-1;let{impreciseHead:r,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=ah(e.docView.tile,t,i,0))){let l=r||o?[]:Au(e),a=new wu(l,e);a.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=a.text,this.newSel=Mu(l,this.bounds.from)}else{let l=e.observer.selectionRange,a=r&&r.node==l.focusNode&&r.offset==l.focusOffset||!fr(e.contentDOM,l.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),h=o&&o.node==l.anchorNode&&o.offset==l.anchorOffset||!fr(e.contentDOM,l.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),c=e.viewport;if((D.ios||D.chrome)&&e.state.selection.main.empty&&a!=h&&(c.from>0||c.to-1&&e.state.selection.ranges.length>1?this.newSel=e.state.selection.replaceRange(x.range(h,a)):this.newSel=x.single(h,a)}}}function ah(n,e,t,i){if(n.isComposite()){let s=-1,r=-1,o=-1,l=-1;for(let a=0,h=i,c=i;at)return ah(f,e,t,h);if(u>=e&&s==-1&&(s=a,r=h),h>t&&f.dom.parentNode==n.dom){o=a,l=c;break}c=u,h=u+f.breakAfter}return{from:r,to:l<0?i+n.length:l,startDOM:(s?n.children[s-1].dom.nextSibling:null)||n.dom.firstChild,endDOM:o=0?n.children[o].dom:null}}else return n.isText()?{from:i,to:i+n.length,startDOM:n.dom,endDOM:n.dom.nextSibling}:null}function hh(n,e){let t,{newSel:i}=e,s=n.state.selection.main,r=n.inputState.lastKeyTime>Date.now()-100?n.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:l}=e.bounds,a=s.from,h=null;(r===8||D.android&&e.text.length=s.from&&t.to<=s.to&&(t.from!=s.from||t.to!=s.to)&&s.to-s.from-(t.to-t.from)<=4?t={from:s.from,to:s.to,insert:n.state.doc.slice(s.from,t.from).append(t.insert).append(n.state.doc.slice(t.to,s.to))}:n.state.doc.lineAt(s.from).toDate.now()-50?t={from:s.from,to:s.to,insert:n.state.toText(n.inputState.insertingText)}:D.chrome&&t&&t.from==t.to&&t.from==s.head&&t.insert.toString()==`
+ `&&n.lineWrapping&&(i&&(i=x.single(i.main.anchor-1,i.main.head-1)),t={from:s.from,to:s.to,insert:q.of([" "])}),t)return Zr(n,t,i,r);if(i&&!i.main.eq(s)){let o=!1,l="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(o=!0),l=n.inputState.lastSelectionOrigin,l=="select.pointer"&&(i=oh(n.state.facet(Ui).map(a=>a(n)),i))),n.dispatch({selection:i,scrollIntoView:o,userEvent:l}),!0}else return!1}function Zr(n,e,t,i=-1){if(D.ios&&n.inputState.flushIOSKey(e))return!0;let s=n.state.selection.main;if(D.android&&(e.to==s.to&&(e.from==s.from||e.from==s.from-1&&n.state.sliceDoc(e.from,s.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&jt(n.contentDOM,"Enter",13)||(e.from==s.from-1&&e.to==s.to&&e.insert.length==0||i==8&&e.insert.lengths.head)&&jt(n.contentDOM,"Backspace",8)||e.from==s.from&&e.to==s.to+1&&e.insert.length==0&&jt(n.contentDOM,"Delete",46)))return!0;let r=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let o,l=()=>o||(o=Cu(n,e,t));return n.state.facet(Ga).some(a=>a(n,e.from,e.to,r,l))||n.dispatch(l()),!0}function Cu(n,e,t){let i,s=n.state,r=s.selection.main,o=-1;if(e.from==e.to&&e.fromr.to){let a=e.fromf(n)),h,a);e.from==c&&(o=c)}if(o>-1)i={changes:e,selection:x.cursor(e.from+e.insert.length,-1)};else if(e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let a=r.frome.to?s.sliceDoc(e.to,r.to):"";i=s.replaceSelection(n.state.toText(a+e.insert.sliceString(0,void 0,n.state.lineBreak)+h))}else{let a=s.changes(e),h=t&&t.main.to<=a.newLength?t.main:void 0;if(s.selection.ranges.length>1&&(n.inputState.composing>=0||n.inputState.compositionPendingChange)&&e.to<=r.to+10&&e.to>=r.to-10){let c=n.state.sliceDoc(e.from,e.to),f,u=t&&rh(n,t.main.head);if(u){let p=e.insert.length-(e.to-e.from);f={from:u.from,to:u.to-p}}else f=n.state.doc.lineAt(r.head);let d=r.to-e.to;i=s.changeByRange(p=>{if(p.from==r.from&&p.to==r.to)return{changes:a,range:h||p.map(a)};let m=p.to-d,g=m-c.length;if(n.state.sliceDoc(g,m)!=c||m>=f.from&&g<=f.to)return{range:p};let y=s.changes({from:g,to:m,insert:e.insert}),k=p.to-r.to;return{changes:y,range:h?x.range(Math.max(0,h.anchor+k),Math.max(0,h.head+k)):p.map(y)}})}else i={changes:a,selection:h&&s.selection.replaceRange(h)}}let l="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,l+=".compose",n.inputState.compositionFirstChange&&(l+=".start",n.inputState.compositionFirstChange=!1)),s.update(i,{userEvent:l,scrollIntoView:!0})}function ch(n,e,t,i){let s=Math.min(n.length,e.length),r=0;for(;r0&&l>0&&n.charCodeAt(o-1)==e.charCodeAt(l-1);)o--,l--;if(i=="end"){let a=Math.max(0,r-Math.min(o,l));t-=o+a-r}if(o=o?r-t:0;r-=a,l=r+(l-o),o=r}else if(l=l?r-t:0;r-=a,o=r+(o-l),l=r}return{from:r,toA:o,toB:l}}function Au(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:s,focusOffset:r}=n.observer.selectionRange;return t&&(e.push(new Ko(t,i)),(s!=t||r!=i)&&e.push(new Ko(s,r))),e}function Mu(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?x.single(t+e,i+e):null}class Tu{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,D.safari&&e.contentDOM.addEventListener("input",()=>null),D.gecko&&qu(e.contentDOM.ownerDocument)}handleEvent(e){!Iu(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let s of i.observers)s(this.view,t);for(let s of i.handlers){if(t.defaultPrevented)break;if(s(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Du(e),i=this.handlers,s=this.view.contentDOM;for(let r in t)if(r!="scroll"){let o=!t[r].handlers.length,l=i[r];l&&o!=!l.handlers.length&&(s.removeEventListener(r,this.handleEvent),l=null),l||s.addEventListener(r,this.handleEvent,{passive:o})}for(let r in i)r!="scroll"&&!t[r]&&s.removeEventListener(r,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&uh.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),D.android&&D.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return D.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=fh.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||Ou.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from0?!0:D.safari&&!D.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Uo(n,e){return(t,i)=>{try{return e.call(n,i,t)}catch(s){Ae(t.state,s)}}}function Du(n){let e=Object.create(null);function t(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of n){let s=i.spec,r=s&&s.plugin.domEventHandlers,o=s&&s.plugin.domEventObservers;if(r)for(let l in r){let a=r[l];a&&t(l).handlers.push(Uo(i.value,a))}if(o)for(let l in o){let a=o[l];a&&t(l).observers.push(Uo(i.value,a))}}for(let i in ze)t(i).handlers.push(ze[i]);for(let i in Ne)t(i).observers.push(Ne[i]);return e}const fh=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Ou="dthko",uh=[16,17,18,20,91,92,224,225],nn=6;function sn(n){return Math.max(0,n)*.7+8}function Bu(n,e){return Math.max(Math.abs(n.clientX-e.clientX),Math.abs(n.clientY-e.clientY))}class Lu{constructor(e,t,i,s){this.view=e,this.startEvent=t,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=Pf(e.contentDOM),this.atoms=e.state.facet(Ui).map(o=>o(e));let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(V.allowMultipleSelections)&&Eu(e,t),this.dragging=Pu(e,t)&&mh(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Bu(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,i=0,s=0,r=0,o=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:s,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:r,bottom:l}=this.scrollParents.y.getBoundingClientRect());let a=Qr(this.view);e.clientX-a.left<=s+nn?t=-sn(s-e.clientX):e.clientX+a.right>=o-nn&&(t=sn(e.clientX-o)),e.clientY-a.top<=r+nn?i=-sn(r-e.clientY):e.clientY+a.bottom>=l-nn&&(i=sn(e.clientY-l)),this.setScrollSpeed(t,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}select(e){let{view:t}=this,i=oh(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!i.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(t=>t.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Eu(n,e){let t=n.state.facet($a);return t.length?t[0](e):D.mac?e.metaKey:e.ctrlKey}function Ru(n,e){let t=n.state.facet(Ka);return t.length?t[0](e):D.mac?!e.altKey:!e.ctrlKey}function Pu(n,e){let{main:t}=n.state.selection;if(t.empty)return!1;let i=Di(n.root);if(!i||i.rangeCount==0)return!0;let s=i.getRangeAt(0).getClientRects();for(let r=0;r=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function Iu(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,i;t!=n.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(i=se.get(t))&&i.isWidget()&&!i.isHidden&&i.widget.ignoreEvent(e))return!1;return!0}const ze=Object.create(null),Ne=Object.create(null),dh=D.ie&&D.ie_version<15||D.ios&&D.webkit_version<604;function Nu(n){let e=n.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{n.focus(),t.remove(),ph(n,t.value)},50)}function ss(n,e,t){for(let i of n.facet(e))t=i(t,n);return t}function ph(n,e){e=ss(n.state,Yr,e);let{state:t}=n,i,s=1,r=t.toText(e),o=r.lines==t.selection.ranges.length;if(xr!=null&&t.selection.ranges.every(a=>a.empty)&&xr==r.toString()){let a=-1;i=t.changeByRange(h=>{let c=t.doc.lineAt(h.from);if(c.from==a)return{range:h};a=c.from;let f=t.toText((o?r.line(s++).text:e)+t.lineBreak);return{changes:{from:c.from,insert:f},range:x.cursor(h.from+f.length)}})}else o?i=t.changeByRange(a=>{let h=r.line(s++);return{changes:{from:a.from,to:a.to,insert:h.text},range:x.cursor(a.from+h.length)}}):i=t.replaceSelection(r);n.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}Ne.scroll=n=>{n.inputState.lastScrollTop=n.scrollDOM.scrollTop,n.inputState.lastScrollLeft=n.scrollDOM.scrollLeft};ze.keydown=(n,e)=>(n.inputState.setSelectionOrigin("select"),e.keyCode==27&&n.inputState.tabFocusMode!=0&&(n.inputState.tabFocusMode=Date.now()+2e3),!1);Ne.touchstart=(n,e)=>{n.inputState.lastTouchTime=Date.now(),n.inputState.setSelectionOrigin("select.pointer")};Ne.touchmove=n=>{n.inputState.setSelectionOrigin("select.pointer")};ze.mousedown=(n,e)=>{if(n.observer.flush(),n.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let i of n.state.facet(Ua))if(t=i(n,e),t)break;if(!t&&e.button==0&&(t=Hu(n,e)),t){let i=!n.hasFocus;n.inputState.startMouseSelection(new Lu(n,e,t,i)),i&&n.observer.ignore(()=>{Pa(n.contentDOM);let r=n.root.activeElement;r&&!r.contains(n.contentDOM)&&r.blur()});let s=n.inputState.mouseSelection;if(s)return s.start(e),s.dragging===!1}else n.inputState.setSelectionOrigin("select.pointer");return!1};function jo(n,e,t,i){if(i==1)return x.cursor(e,t);if(i==2)return mu(n.state,e,t);{let s=n.docView.lineAt(e,t),r=n.state.doc.lineAt(s?s.posAtEnd:e),o=s?s.posAtStart:r.from,l=s?s.posAtEnd:r.to;return lDate.now()-400&&Math.abs(e.clientX-n.clientX)<2&&Math.abs(e.clientY-n.clientY)<2?(_o+1)%3:1}function Hu(n,e){let t=n.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),i=mh(e),s=n.state.selection;return{update(r){r.docChanged&&(t.pos=r.changes.mapPos(t.pos),s=s.map(r.changes))},get(r,o,l){let a=n.posAndSideAtCoords({x:r.clientX,y:r.clientY},!1),h,c=jo(n,a.pos,a.assoc,i);if(t.pos!=a.pos&&!o){let f=jo(n,t.pos,t.assoc,i),u=Math.min(f.from,c.from),d=Math.max(f.to,c.to);c=u1&&(h=Fu(s,a.pos))?h:l?s.addRange(c):x.create([c])}}}function Fu(n,e){for(let t=0;t=e)return x.create(n.ranges.slice(0,t).concat(n.ranges.slice(t+1)),n.mainIndex==t?0:n.mainIndex-(n.mainIndex>t?1:0))}return null}ze.dragstart=(n,e)=>{let{selection:{main:t}}=n.state;if(e.target.draggable){let s=n.docView.tile.nearest(e.target);if(s&&s.isWidget()){let r=s.posAtStart,o=r+s.length;(r>=t.to||o<=t.from)&&(t=x.range(r,o))}}let{inputState:i}=n;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",ss(n.state,Jr,n.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1};ze.dragend=n=>(n.inputState.draggedContent=null,!1);function Jo(n,e,t,i){if(t=ss(n.state,Yr,t),!t)return;let s=n.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:r}=n.inputState,o=i&&r&&Ru(n,e)?{from:r.from,to:r.to}:null,l={from:s,insert:t},a=n.state.changes(o?[o,l]:l);n.focus(),n.dispatch({changes:a,selection:{anchor:a.mapPos(s,-1),head:a.mapPos(s,1)},userEvent:o?"move.drop":"input.drop"}),n.inputState.draggedContent=null}ze.drop=(n,e)=>{if(!e.dataTransfer)return!1;if(n.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let i=Array(t.length),s=0,r=()=>{++s==t.length&&Jo(n,e,i.filter(o=>o!=null).join(n.state.lineBreak),!1)};for(let o=0;o{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(i[o]=l.result),r()},l.readAsText(t[o])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return Jo(n,e,i,!0),!0}return!1};ze.paste=(n,e)=>{if(n.state.readOnly)return!0;n.observer.flush();let t=dh?null:e.clipboardData;return t?(ph(n,t.getData("text/plain")||t.getData("text/uri-list")),!0):(Nu(n),!1)};function Vu(n,e){let t=n.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),n.focus()},50)}function zu(n){let e=[],t=[],i=!1;for(let s of n.selection.ranges)s.empty||(e.push(n.sliceDoc(s.from,s.to)),t.push(s));if(!e.length){let s=-1;for(let{from:r}of n.selection.ranges){let o=n.doc.lineAt(r);o.number>s&&(e.push(o.text),t.push({from:o.from,to:Math.min(n.doc.length,o.to+1)})),s=o.number}i=!0}return{text:ss(n,Jr,e.join(n.lineBreak)),ranges:t,linewise:i}}let xr=null;ze.copy=ze.cut=(n,e)=>{let{text:t,ranges:i,linewise:s}=zu(n.state);if(!t&&!s)return!1;xr=s?t:null,e.type=="cut"&&!n.state.readOnly&&n.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let r=dh?null:e.clipboardData;return r?(r.clearData(),r.setData("text/plain",t),!0):(Vu(n,t),!1)};const gh=tt.define();function yh(n,e){let t=[];for(let i of n.facet(_a)){let s=i(n,e);s&&t.push(s)}return t.length?n.update({effects:t,annotations:gh.of(!0)}):null}function bh(n){setTimeout(()=>{let e=n.hasFocus;if(e!=n.inputState.notifiedFocused){let t=yh(n.state,e);t?n.dispatch(t):n.update([])}},10)}Ne.focus=n=>{n.inputState.lastFocusTime=Date.now(),!n.scrollDOM.scrollTop&&(n.inputState.lastScrollTop||n.inputState.lastScrollLeft)&&(n.scrollDOM.scrollTop=n.inputState.lastScrollTop,n.scrollDOM.scrollLeft=n.inputState.lastScrollLeft),bh(n)};Ne.blur=n=>{n.observer.clearSelectionRange(),bh(n)};Ne.compositionstart=Ne.compositionupdate=n=>{n.observer.editContext||(n.inputState.compositionFirstChange==null&&(n.inputState.compositionFirstChange=!0),n.inputState.composing<0&&(n.inputState.composing=0))};Ne.compositionend=n=>{n.observer.editContext||(n.inputState.composing=-1,n.inputState.compositionEndedAt=Date.now(),n.inputState.compositionPendingKey=!0,n.inputState.compositionPendingChange=n.observer.pendingRecords().length>0,n.inputState.compositionFirstChange=null,D.chrome&&D.android?n.observer.flushSoon():n.inputState.compositionPendingChange?Promise.resolve().then(()=>n.observer.flush()):setTimeout(()=>{n.inputState.composing<0&&n.docView.hasComposition&&n.update([])},50))};Ne.contextmenu=n=>{n.inputState.lastContextMenu=Date.now()};ze.beforeinput=(n,e)=>{var t,i;if((e.inputType=="insertText"||e.inputType=="insertCompositionText")&&(n.inputState.insertingText=e.data,n.inputState.insertingTextAt=Date.now()),e.inputType=="insertReplacementText"&&n.observer.editContext){let r=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),o=e.getTargetRanges();if(r&&o.length){let l=o[0],a=n.posAtDOM(l.startContainer,l.startOffset),h=n.posAtDOM(l.endContainer,l.endOffset);return Zr(n,{from:a,to:h,insert:n.state.toText(r)},null),!0}}let s;if(D.chrome&&D.android&&(s=fh.find(r=>r.inputType==e.inputType))&&(n.observer.delayAndroidKey(s.key,s.keyCode),s.key=="Backspace"||s.key=="Delete")){let r=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>r+10&&n.hasFocus&&(n.contentDOM.blur(),n.focus())},100)}return D.ios&&e.inputType=="deleteContentForward"&&n.observer.flushSoon(),D.safari&&e.inputType=="insertText"&&n.inputState.composing>=0&&setTimeout(()=>Ne.compositionend(n,e),20),!1};const Xo=new Set;function qu(n){Xo.has(n)||(Xo.add(n),n.addEventListener("copy",()=>{}),n.addEventListener("cut",()=>{}))}const Qo=["pre-wrap","normal","pre-line","break-spaces"];let ei=!1;function Zo(){ei=!1}class $u{constructor(e){this.lineWrapping=e,this.doc=q.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Qo.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=i,this.textHeight=s,this.lineLength=r,a){this.heightSamples={};for(let h=0;h0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>An&&(ei=!0),this.height=e)}replace(e,t,i){return ve.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,s){let r=this,o=i.doc;for(let l=s.length-1;l>=0;l--){let{fromA:a,toA:h,fromB:c,toB:f}=s[l],u=r.lineAt(a,_.ByPosNoHeight,i.setDoc(t),0,0),d=u.to>=h?u:r.lineAt(h,_.ByPosNoHeight,i,0,0);for(f+=d.to-h,h=d.to;l>0&&u.from<=s[l-1].toA;)a=s[l-1].fromA,c=s[l-1].fromB,l--,ar*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),i+=1+l.break,s-=l.size}else if(r>s*2){let l=e[i];l.break?e.splice(i,1,l.left,null,l.right):e.splice(i,1,l.left,l.right),i+=2+l.break,r-=l.size}else break;else if(s=r&&o(this.lineAt(0,_.ByPos,i,s,r))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more&&this.setMeasuredHeight(s),this.outdated=!1,this}toString(){return`block(${this.length})`}}class De extends xh{constructor(e,t,i){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=i}mainBlock(e,t){return new He(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,t,i){let s=i[0];return i.length==1&&(s instanceof De||s instanceof ae&&s.flags&4)&&Math.abs(this.length-s.length)<10?(s instanceof ae?s=new De(s.length,this.height,this.spaceAbove):s.height=this.height,this.outdated||(s.outdated=!1),s):ve.of(i)}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more?this.setMeasuredHeight(s):(i||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ae extends ve{constructor(e){super(e,0)}heightMetrics(e,t){let i=e.doc.lineAt(t).number,s=e.doc.lineAt(t+this.length).number,r=s-i+1,o,l=0;if(e.lineWrapping){let a=Math.min(this.height,e.lineHeight*r);o=a/r,this.length>r+1&&(l=(this.height-a)/(this.length-r-1))}else o=this.height/r;return{firstLine:i,lastLine:s,perLine:o,perChar:l}}blockAt(e,t,i,s){let{firstLine:r,lastLine:o,perLine:l,perChar:a}=this.heightMetrics(t,s);if(t.lineWrapping){let h=s+(e0){let r=i[i.length-1];r instanceof ae?i[i.length-1]=new ae(r.length+s):i.push(null,new ae(s-1))}if(e>0){let r=i[0];r instanceof ae?i[0]=new ae(e+r.length):i.unshift(new ae(e-1),null)}return ve.of(i)}decomposeLeft(e,t){t.push(new ae(e-1),null)}decomposeRight(e,t){t.push(null,new ae(this.length-e-1))}updateHeight(e,t=0,i=!1,s){let r=t+this.length;if(s&&s.from<=t+this.length&&s.more){let o=[],l=Math.max(t,s.from),a=-1;for(s.from>t&&o.push(new ae(s.from-t-1).updateHeight(e,t));l<=r&&s.more;){let c=e.doc.lineAt(l).length;o.length&&o.push(null);let f=s.heights[s.index++],u=0;f<0&&(u=-f,f=s.heights[s.index++]),a==-1?a=f:Math.abs(f-a)>=An&&(a=-2);let d=new De(c,f,u);d.outdated=!1,o.push(d),l+=c+1}l<=r&&o.push(null,new ae(r-l).updateHeight(e,l));let h=ve.of(o);return(a<0||Math.abs(h.height-this.height)>=An||Math.abs(a-this.heightMetrics(e,t).perLine)>=An)&&(ei=!0),Hn(this,h)}else(i||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class ju extends ve{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,t,i,s){let r=i+this.left.height;return el))return h;let c=t==_.ByPosNoHeight?_.ByPosNoHeight:_.ByPos;return a?h.join(this.right.lineAt(l,c,i,o,l)):this.left.lineAt(l,c,i,s,r).join(h)}forEachLine(e,t,i,s,r,o){let l=s+this.left.height,a=r+this.left.length+this.break;if(this.break)e=a&&this.right.forEachLine(e,t,i,l,a,o);else{let h=this.lineAt(a,_.ByPos,i,s,r);e=e&&h.from<=t&&o(h),t>h.to&&this.right.forEachLine(h.to+1,t,i,l,a,o)}}replace(e,t,i){let s=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-s,t-s,i));let r=[];e>0&&this.decomposeLeft(e,r);let o=r.length;for(let l of i)r.push(l);if(e>0&&el(r,o-1),t=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,s=i+this.break;if(e>=s)return this.right.decomposeRight(e-s,t);e2*t.size||t.size>2*e.size?ve.of(this.break?[e,null,t]:[e,t]):(this.left=Hn(this.left,e),this.right=Hn(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,s){let{left:r,right:o}=this,l=t+r.length+this.break,a=null;return s&&s.from<=t+r.length&&s.more?a=r=r.updateHeight(e,t,i,s):r.updateHeight(e,t,i),s&&s.from<=l+o.length&&s.more?a=o=o.updateHeight(e,l,i,s):o.updateHeight(e,l,i),a?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function el(n,e){let t,i;n[e]==null&&(t=n[e-1])instanceof ae&&(i=n[e+1])instanceof ae&&n.splice(e-1,3,new ae(t.length+1+i.length))}const Gu=5;class eo{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let i=Math.min(t,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof De?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new De(i-this.pos,-1,0)),this.writtenTo=i,t>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e=Gu)&&this.addLineDeco(s,r,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new De(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let i=new ae(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof De)return e;let t=new De(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,i){let s=this.ensureLine();s.length+=i,s.collapsed+=i,s.widgetHeight=Math.max(s.widgetHeight,e),s.breaks+=t,this.writtenTo=this.pos=this.pos+i}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof De)&&!this.isCovered?this.nodes.push(new De(0,-1,0)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&f.overflow!="visible"){let u=c.getBoundingClientRect();r=Math.max(r,u.left),o=Math.min(o,u.right),l=Math.max(l,u.top),a=Math.min(h==n.parentNode?s.innerHeight:a,u.bottom)}h=f.position=="absolute"||f.position=="fixed"?c.offsetParent:c.parentNode}else if(h.nodeType==11)h=h.host;else break;return{left:r-t.left,right:Math.max(r,o)-t.left,top:l-(t.top+e),bottom:Math.max(l,a)-(t.top+e)}}function Xu(n){let e=n.getBoundingClientRect(),t=n.ownerDocument.defaultView||window;return e.left0&&e.top0}function Qu(n,e){let t=n.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class Cs{constructor(e,t,i,s){this.from=e,this.to=t,this.size=i,this.displaySize=s}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;itypeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new $u(t),this.stateDeco=e.facet(Li).filter(i=>typeof i!="function"),this.heightMap=ve.empty().applyChanges(this.stateDeco,q.empty,this.heightOracle.setDoc(e.doc),[new Ee(0,0,0,e.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=E.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let s=i?t.head:t.anchor;if(!e.some(({from:r,to:o})=>s>=r&&s<=o)){let{from:r,to:o}=this.lineBlockAt(s);e.push(new rn(r,o))}}return this.viewports=e.sort((i,s)=>i.from-s.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?il:new to(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(pi(e,this.scaler))})}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(Li).filter(c=>typeof c!="function");let s=e.changedRanges,r=Ee.extendWithRanges(s,_u(i,this.stateDeco,e?e.changes:te.empty(this.state.doc.length))),o=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);Zo(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),(this.heightMap.height!=o||ei)&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let a=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head