@ktjs/mui 0.24.5 → 0.24.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{$parseStyle as e,$emptyFn as i,$defines as o,$arrayPushUnique as r,$arrayDelete as t,$max as a,$min as n,$round as l,$clamp as c}from"@ktjs/shared";import{jsxs as s,jsx as u}from"@ktjs/core/jsx-runtime";import{toReactive as d,computed as p,ref as m,$modelOrRef as b,KTFor as g,effect as x,dereactive as h}from"@ktjs/core";import{ExpandMoreIcon as f}from"@ktjs/mui-icon";var v=function(){function e(e){var i=this;this._insertTag=function(e){var o;o=0===i.tags.length?i.insertionPoint?i.insertionPoint.nextSibling:i.prepend?i.container.firstChild:i.before:i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(e,o),i.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var i=e.prototype;return i.hydrate=function(e){e.forEach(this._insertTag)},i.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var i=document.createElement("style");return i.setAttribute("data-emotion",e.key),void 0!==e.nonce&&i.setAttribute("nonce",e.nonce),i.appendChild(document.createTextNode("")),i.setAttribute("data-s",""),i}(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].ownerNode===e)return document.styleSheets[i]}(i);try{o.insertRule(e,o.cssRules.length)}catch(e){}}else i.appendChild(document.createTextNode(e));this.ctr++},i.flush=function(){this.tags.forEach(function(e){var i;return null==(i=e.parentNode)?void 0:i.removeChild(e)}),this.tags=[],this.ctr=0},e}(),k="-ms-",w="-moz-",y="-webkit-",z="comm",C="rule",$="decl",S="@keyframes",L=Math.abs,E=String.fromCharCode,A=Object.assign;function T(e){return e.trim()}function j(e,i,o){return e.replace(i,o)}function I(e,i){return e.indexOf(i)}function O(e,i){return 0|e.charCodeAt(i)}function D(e,i,o){return e.slice(i,o)}function R(e){return e.length}function M(e){return e.length}function W(e,i){return i.push(e),e}var H=1,P=1,B=0,N=0,U=0,V="";function q(e,i,o,r,t,a,n){return{value:e,root:i,parent:o,type:r,props:t,children:a,line:H,column:P,length:n,return:""}}function G(e,i){return A(q("",null,null,"",null,null,0),e,{length:-e.length},i)}function F(){return U=N>0?O(V,--N):0,P--,10===U&&(P=1,H--),U}function Y(){return U=N<B?O(V,N++):0,P++,10===U&&(P=1,H++),U}function _(){return O(V,N)}function X(){return N}function K(e,i){return D(V,e,i)}function Z(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function J(e){return H=P=1,B=R(V=e),N=0,[]}function Q(e){return V="",e}function ee(e){return T(K(N-1,re(91===e?e+2:40===e?e+1:e)))}function ie(e){for(;(U=_())&&U<33;)Y();return Z(e)>2||Z(U)>3?"":" "}function oe(e,i){for(;--i&&Y()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return K(e,X()+(i<6&&32==_()&&32==Y()))}function re(e){for(;Y();)switch(U){case e:return N;case 34:case 39:34!==e&&39!==e&&re(U);break;case 40:41===e&&re(e);break;case 92:Y()}return N}function te(e,i){for(;Y()&&e+U!==57&&(e+U!==84||47!==_()););return"/*"+K(i,N-1)+"*"+E(47===e?e:Y())}function ae(e){for(;!Z(_());)Y();return K(e,N)}function ne(e){return Q(le("",null,null,null,[""],e=J(e),0,[0],e))}function le(e,i,o,r,t,a,n,l,c){for(var s=0,u=0,d=n,p=0,m=0,b=0,g=1,x=1,h=1,f=0,v="",k=t,w=a,y=r,z=v;x;)switch(b=f,f=Y()){case 40:if(108!=b&&58==O(z,d-1)){-1!=I(z+=j(ee(f),"&","&\f"),"&\f")&&(h=-1);break}case 34:case 39:case 91:z+=ee(f);break;case 9:case 10:case 13:case 32:z+=ie(b);break;case 92:z+=oe(X()-1,7);continue;case 47:switch(_()){case 42:case 47:W(se(te(Y(),X()),i,o),c);break;default:z+="/"}break;case 123*g:l[s++]=R(z)*h;case 125*g:case 59:case 0:switch(f){case 0:case 125:x=0;case 59+u:-1==h&&(z=j(z,/\f/g,"")),m>0&&R(z)-d&&W(m>32?ue(z+";",r,o,d-1):ue(j(z," ","")+";",r,o,d-2),c);break;case 59:z+=";";default:if(W(y=ce(z,i,o,s,u,t,l,v,k=[],w=[],d),a),123===f)if(0===u)le(z,i,y,y,k,a,d,l,w);else switch(99===p&&110===O(z,3)?100:p){case 100:case 108:case 109:case 115:le(e,y,y,r&&W(ce(e,y,y,0,0,t,l,v,t,k=[],d),w),t,w,d,l,r?k:w);break;default:le(z,y,y,y,[""],w,0,l,w)}}s=u=m=0,g=h=1,v=z="",d=n;break;case 58:d=1+R(z),m=b;default:if(g<1)if(123==f)--g;else if(125==f&&0==g++&&125==F())continue;switch(z+=E(f),f*g){case 38:h=u>0?1:(z+="\f",-1);break;case 44:l[s++]=(R(z)-1)*h,h=1;break;case 64:45===_()&&(z+=ee(Y())),p=_(),u=d=R(v=z+=ae(X())),f++;break;case 45:45===b&&2==R(z)&&(g=0)}}return a}function ce(e,i,o,r,t,a,n,l,c,s,u){for(var d=t-1,p=0===t?a:[""],m=M(p),b=0,g=0,x=0;b<r;++b)for(var h=0,f=D(e,d+1,d=L(g=n[b])),v=e;h<m;++h)(v=T(g>0?p[h]+" "+f:j(f,/&\f/g,p[h])))&&(c[x++]=v);return q(e,i,o,0===t?C:l,c,s,u)}function se(e,i,o){return q(e,i,o,z,E(U),D(e,2,-2),0)}function ue(e,i,o,r){return q(e,i,o,$,D(e,0,r),D(e,r+1,-1),r)}function de(e,i){for(var o="",r=M(e),t=0;t<r;t++)o+=i(e[t],t,e,i)||"";return o}function pe(e,i,o,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case $:return e.return=e.return||e.value;case z:return"";case S:return e.return=e.value+"{"+de(e.children,r)+"}";case C:e.value=e.props.join(",")}return R(o=de(e.children,r))?e.return=e.value+"{"+o+"}":""}function me(e){var i=M(e);return function(o,r,t,a){for(var n="",l=0;l<i;l++)n+=e[l](o,r,t,a)||"";return n}}function be(e){var i=Object.create(null);return function(o){return void 0===i[o]&&(i[o]=e(o)),i[o]}}var ge="undefined"!=typeof document,xe=function(e,i,o){for(var r=0,t=0;r=t,t=_(),38===r&&12===t&&(i[o]=1),!Z(t);)Y();return K(e,N)},he=function(e,i){return Q(function(e,i){var o=-1,r=44;do{switch(Z(r)){case 0:38===r&&12===_()&&(i[o]=1),e[o]+=xe(N-1,i,o);break;case 2:e[o]+=ee(r);break;case 4:if(44===r){e[++o]=58===_()?"&\f":"",i[o]=e[o].length;break}default:e[o]+=E(r)}}while(r=Y());return e}(J(e),i))},fe=new WeakMap,ve=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var i=e.value,o=e.parent,r=e.column===o.column&&e.line===o.line;"rule"!==o.type;)if(!(o=o.parent))return;if((1!==e.props.length||58===i.charCodeAt(0)||fe.get(o))&&!r){fe.set(e,!0);for(var t=[],a=he(i,t),n=o.props,l=0,c=0;l<a.length;l++)for(var s=0;s<n.length;s++,c++)e.props[c]=t[l]?a[l].replace(/&\f/g,n[s]):n[s]+" "+a[l]}}},ke=function(e){if("decl"===e.type){var i=e.value;108===i.charCodeAt(0)&&98===i.charCodeAt(2)&&(e.return="",e.value="")}};function we(e,i){switch(function(e,i){return 45^O(e,0)?(((i<<2^O(e,0))<<2^O(e,1))<<2^O(e,2))<<2^O(e,3):0}(e,i)){case 5103:return y+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return y+e+w+e+k+e+e;case 6828:case 4268:return y+e+k+e+e;case 6165:return y+e+k+"flex-"+e+e;case 5187:return y+e+j(e,/(\w+).+(:[^]+)/,y+"box-$1$2"+k+"flex-$1$2")+e;case 5443:return y+e+k+"flex-item-"+j(e,/flex-|-self/,"")+e;case 4675:return y+e+k+"flex-line-pack"+j(e,/align-content|flex-|-self/,"")+e;case 5548:return y+e+k+j(e,"shrink","negative")+e;case 5292:return y+e+k+j(e,"basis","preferred-size")+e;case 6060:return y+"box-"+j(e,"-grow","")+y+e+k+j(e,"grow","positive")+e;case 4554:return y+j(e,/([^-])(transform)/g,"$1"+y+"$2")+e;case 6187:return j(j(j(e,/(zoom-|grab)/,y+"$1"),/(image-set)/,y+"$1"),e,"")+e;case 5495:case 3959:return j(e,/(image-set\([^]*)/,y+"$1$`$1");case 4968:return j(j(e,/(.+:)(flex-)?(.*)/,y+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+y+e+e;case 4095:case 3583:case 4068:case 2532:return j(e,/(.+)-inline(.+)/,y+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(R(e)-1-i>6)switch(O(e,i+1)){case 109:if(45!==O(e,i+4))break;case 102:return j(e,/(.+:)(.+)-([^]+)/,"$1"+y+"$2-$3$1"+w+(108==O(e,i+3)?"$3":"$2-$3"))+e;case 115:return~I(e,"stretch")?we(j(e,"stretch","fill-available"),i)+e:e}break;case 4949:if(115!==O(e,i+1))break;case 6444:switch(O(e,R(e)-3-(~I(e,"!important")&&10))){case 107:return j(e,":",":"+y)+e;case 101:return j(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+y+(45===O(e,14)?"inline-":"")+"box$3$1"+y+"$2$3$1"+k+"$2box$3")+e}break;case 5936:switch(O(e,i+11)){case 114:return y+e+k+j(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return y+e+k+j(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return y+e+k+j(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return y+e+k+e+e}return e}var ye,ze,Ce=ge?void 0:(ye=function(){return be(function(){return{}})},ze=new WeakMap,function(e){if(ze.has(e))return ze.get(e);var i=ye(e);return ze.set(e,i),i}),$e=[function(e,i,o,r){if(e.length>-1&&!e.return)switch(e.type){case $:e.return=we(e.value,e.length);break;case S:return de([G(e,{value:j(e.value,"@","@"+y)})],r);case C:if(e.length)return function(e,i){return e.map(i).join("")}(e.props,function(i){switch(function(e,i){return(e=i.exec(e))?e[0]:e}(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return de([G(e,{props:[j(i,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return de([G(e,{props:[j(i,/:(plac\w+)/,":"+y+"input-$1")]}),G(e,{props:[j(i,/:(plac\w+)/,":-moz-$1")]}),G(e,{props:[j(i,/:(plac\w+)/,k+"input-$1")]})],r)}return""})}}],Se=function(e){var i=e.key;if(ge&&"css"===i){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,t,a=e.stylisPlugins||$e,n={},l=[];ge&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(e){for(var i=e.getAttribute("data-emotion").split(" "),o=1;o<i.length;o++)n[i[o]]=!0;l.push(e)}));var c,s=[ve,ke];if(Ce){var u=[pe],d=me(s.concat(a,u)),p=Ce(a)(i),m=function(e,i){var o=i.name;return void 0===p[o]&&(p[o]=de(ne(e?e+"{"+i.styles+"}":i.styles),d)),p[o]};t=function(e,i,o,r){var t=i.name,a=m(e,i);return void 0===h.compat?(r&&(h.inserted[t]=!0),a):r?void(h.inserted[t]=a):a}}else{var b,g=[pe,(c=function(e){b.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],x=me(s.concat(a,g));t=function(e,i,o,r){b=o,de(ne(e?e+"{"+i.styles+"}":i.styles),x),r&&(h.inserted[i.name]=!0)}}var h={key:i,sheet:new v({key:i,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:n,registered:{},insert:t};return h.sheet.hydrate(l),h};var Le={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ee=/[A-Z]|^ms/g,Ae=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Te=function(e){return 45===e.charCodeAt(1)},je=function(e){return null!=e&&"boolean"!=typeof e},Ie=be(function(e){return Te(e)?e:e.replace(Ee,"-$&").toLowerCase()}),Oe=function(e,i){switch(e){case"animation":case"animationName":if("string"==typeof i)return i.replace(Ae,function(e,i,o){return Re={name:i,styles:o,next:Re},i})}return 1===Le[e]||Te(e)||"number"!=typeof i||0===i?i:i+"px"};function De(e,i,o){if(null==o)return"";var r=o;if(void 0!==r.__emotion_styles)return r;switch(typeof o){case"boolean":return"";case"object":var t=o;if(1===t.anim)return Re={name:t.name,styles:t.styles,next:Re},t.name;var a=o;if(void 0!==a.styles){var n=a.next;if(void 0!==n)for(;void 0!==n;)Re={name:n.name,styles:n.styles,next:Re},n=n.next;return a.styles+";"}return function(e,i,o){var r="";if(Array.isArray(o))for(var t=0;t<o.length;t++)r+=De(e,i,o[t])+";";else for(var a in o){var n=o[a];if("object"!=typeof n){var l=n;null!=i&&void 0!==i[l]?r+=a+"{"+i[l]+"}":je(l)&&(r+=Ie(a)+":"+Oe(a,l)+";")}else if(!Array.isArray(n)||"string"!=typeof n[0]||null!=i&&void 0!==i[n[0]]){var c=De(e,i,n);switch(a){case"animation":case"animationName":r+=Ie(a)+":"+c+";";break;default:r+=a+"{"+c+"}"}}else for(var s=0;s<n.length;s++)je(n[s])&&(r+=Ie(a)+":"+Oe(a,n[s])+";")}return r}(e,i,o)}var l=o;if(null==i)return l;var c=i[l];return void 0!==c?c:l}var Re,Me=/label:\s*([^\s;{]+)\s*(;|$)/g;function We(e,i,o){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,t="";Re=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,t+=De(o,i,a)):t+=a[0];for(var n=1;n<e.length;n++){if(t+=De(o,i,e[n]),r)t+=a[n]}Me.lastIndex=0;for(var l,c="";null!==(l=Me.exec(t));)c+="-"+l[1];var s=function(e){for(var i,o=0,r=0,t=e.length;t>=4;++r,t-=4)i=1540483477*(65535&(i=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(i>>>16)<<16),o=1540483477*(65535&(i^=i>>>24))+(59797*(i>>>16)<<16)^1540483477*(65535&o)+(59797*(o>>>16)<<16);switch(t){case 3:o^=(255&e.charCodeAt(r+2))<<16;case 2:o^=(255&e.charCodeAt(r+1))<<8;case 1:o=1540483477*(65535&(o^=255&e.charCodeAt(r)))+(59797*(o>>>16)<<16)}return(((o=1540483477*(65535&(o^=o>>>13))+(59797*(o>>>16)<<16))^o>>>15)>>>0).toString(36)}(t)+c;return{name:s,styles:t,next:Re}}var He="undefined"!=typeof document;function Pe(e,i,o){var r="";return o.split(" ").forEach(function(o){void 0!==e[o]?i.push(e[o]+";"):o&&(r+=o+" ")}),r}function Be(e,i){if(void 0===e.inserted[i.name])return e.insert("",i,e.sheet,!0)}function Ne(e,i,o){var r=[],t=Pe(e,r,o);return r.length<2?o:t+i(r)}var Ue=function e(i){for(var o="",r=0;r<i.length;r++){var t=i[r];if(null!=t){var a=void 0;switch(typeof t){case"boolean":break;case"object":if(Array.isArray(t))a=e(t);else for(var n in a="",t)t[n]&&n&&(a&&(a+=" "),a+=n);break;default:a=t}a&&(o&&(o+=" "),o+=a)}}return o},Ve=function(e){var i=Se(e);i.sheet.speedy=function(e){this.isSpeedy=e},i.compat=!0;var o=function(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];var t=We(o,i.registered,void 0);return function(e,i){!function(e,i){var o=e.key+"-"+i.name;void 0===e.registered[o]&&(e.registered[o]=i.styles)}(e,i);var o=e.key+"-"+i.name;if(void 0===e.inserted[i.name]){var r="",t=i;do{var a=e.insert(i===t?"."+o:"",t,e.sheet,!0);He||void 0===a||(r+=a),t=t.next}while(void 0!==t);if(!He&&0!==r.length);}}(i,t),i.key+"-"+t.name};return{css:o,cx:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return Ne(i.registered,o,Ue(r))},injectGlobal:function(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];var t=We(o,i.registered);Be(i,t)},keyframes:function(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];var t=We(o,i.registered),a="animation-"+t.name;return Be(i,{name:t.name,styles:"@keyframes "+a+"{"+t.styles+"}"}),a},hydrate:function(e){e.forEach(function(e){i.inserted[e]=!0})},flush:function(){i.registered={},i.inserted={},i.sheet.flush()},sheet:i.sheet,cache:i,getRegisteredStyles:Pe.bind(null,i.registered),merge:Ne.bind(null,i.registered,o)}}({key:"css"}),qe=Ve.injectGlobal;qe`
1
+ import{$parseStyle as e,$emptyFn as i,$defines as o,$arrayPushUnique as r,$arrayDelete as t,$max as a,$min as n,$round as l,$clamp as c}from"@ktjs/shared";import{jsxs as s,jsx as u}from"@ktjs/core/jsx-runtime";import{toReactive as d,computed as m,ref as p,$modelOrRef as b,KTFor as g,effect as x,dereactive as h}from"@ktjs/core";var f=function(){function e(e){var i=this;this._insertTag=function(e){var o;o=0===i.tags.length?i.insertionPoint?i.insertionPoint.nextSibling:i.prepend?i.container.firstChild:i.before:i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(e,o),i.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var i=e.prototype;return i.hydrate=function(e){e.forEach(this._insertTag)},i.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var i=document.createElement("style");return i.setAttribute("data-emotion",e.key),void 0!==e.nonce&&i.setAttribute("nonce",e.nonce),i.appendChild(document.createTextNode("")),i.setAttribute("data-s",""),i}(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].ownerNode===e)return document.styleSheets[i]}(i);try{o.insertRule(e,o.cssRules.length)}catch(e){}}else i.appendChild(document.createTextNode(e));this.ctr++},i.flush=function(){this.tags.forEach(function(e){var i;return null==(i=e.parentNode)?void 0:i.removeChild(e)}),this.tags=[],this.ctr=0},e}(),v="-ms-",k="-moz-",y="-webkit-",w="comm",z="rule",C="decl",$="@keyframes",S=Math.abs,T=String.fromCharCode,L=Object.assign;function A(e){return e.trim()}function E(e,i,o){return e.replace(i,o)}function I(e,i){return e.indexOf(i)}function j(e,i){return 0|e.charCodeAt(i)}function D(e,i,o){return e.slice(i,o)}function M(e){return e.length}function O(e){return e.length}function R(e,i){return i.push(e),e}var H=1,W=1,P=0,B=0,N=0,U="";function V(e,i,o,r,t,a,n){return{value:e,root:i,parent:o,type:r,props:t,children:a,line:H,column:W,length:n,return:""}}function q(e,i){return L(V("",null,null,"",null,null,0),e,{length:-e.length},i)}function G(){return N=B>0?j(U,--B):0,W--,10===N&&(W=1,H--),N}function F(){return N=B<P?j(U,B++):0,W++,10===N&&(W=1,H++),N}function _(){return j(U,B)}function Y(){return B}function X(e,i){return D(U,e,i)}function K(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Z(e){return H=W=1,P=M(U=e),B=0,[]}function J(e){return U="",e}function Q(e){return A(X(B-1,oe(91===e?e+2:40===e?e+1:e)))}function ee(e){for(;(N=_())&&N<33;)F();return K(e)>2||K(N)>3?"":" "}function ie(e,i){for(;--i&&F()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return X(e,Y()+(i<6&&32==_()&&32==F()))}function oe(e){for(;F();)switch(N){case e:return B;case 34:case 39:34!==e&&39!==e&&oe(N);break;case 40:41===e&&oe(e);break;case 92:F()}return B}function re(e,i){for(;F()&&e+N!==57&&(e+N!==84||47!==_()););return"/*"+X(i,B-1)+"*"+T(47===e?e:F())}function te(e){for(;!K(_());)F();return X(e,B)}function ae(e){return J(ne("",null,null,null,[""],e=Z(e),0,[0],e))}function ne(e,i,o,r,t,a,n,l,c){for(var s=0,u=0,d=n,m=0,p=0,b=0,g=1,x=1,h=1,f=0,v="",k=t,y=a,w=r,z=v;x;)switch(b=f,f=F()){case 40:if(108!=b&&58==j(z,d-1)){-1!=I(z+=E(Q(f),"&","&\f"),"&\f")&&(h=-1);break}case 34:case 39:case 91:z+=Q(f);break;case 9:case 10:case 13:case 32:z+=ee(b);break;case 92:z+=ie(Y()-1,7);continue;case 47:switch(_()){case 42:case 47:R(ce(re(F(),Y()),i,o),c);break;default:z+="/"}break;case 123*g:l[s++]=M(z)*h;case 125*g:case 59:case 0:switch(f){case 0:case 125:x=0;case 59+u:-1==h&&(z=E(z,/\f/g,"")),p>0&&M(z)-d&&R(p>32?se(z+";",r,o,d-1):se(E(z," ","")+";",r,o,d-2),c);break;case 59:z+=";";default:if(R(w=le(z,i,o,s,u,t,l,v,k=[],y=[],d),a),123===f)if(0===u)ne(z,i,w,w,k,a,d,l,y);else switch(99===m&&110===j(z,3)?100:m){case 100:case 108:case 109:case 115:ne(e,w,w,r&&R(le(e,w,w,0,0,t,l,v,t,k=[],d),y),t,y,d,l,r?k:y);break;default:ne(z,w,w,w,[""],y,0,l,y)}}s=u=p=0,g=h=1,v=z="",d=n;break;case 58:d=1+M(z),p=b;default:if(g<1)if(123==f)--g;else if(125==f&&0==g++&&125==G())continue;switch(z+=T(f),f*g){case 38:h=u>0?1:(z+="\f",-1);break;case 44:l[s++]=(M(z)-1)*h,h=1;break;case 64:45===_()&&(z+=Q(F())),m=_(),u=d=M(v=z+=te(Y())),f++;break;case 45:45===b&&2==M(z)&&(g=0)}}return a}function le(e,i,o,r,t,a,n,l,c,s,u){for(var d=t-1,m=0===t?a:[""],p=O(m),b=0,g=0,x=0;b<r;++b)for(var h=0,f=D(e,d+1,d=S(g=n[b])),v=e;h<p;++h)(v=A(g>0?m[h]+" "+f:E(f,/&\f/g,m[h])))&&(c[x++]=v);return V(e,i,o,0===t?z:l,c,s,u)}function ce(e,i,o){return V(e,i,o,w,T(N),D(e,2,-2),0)}function se(e,i,o,r){return V(e,i,o,C,D(e,0,r),D(e,r+1,-1),r)}function ue(e,i){for(var o="",r=O(e),t=0;t<r;t++)o+=i(e[t],t,e,i)||"";return o}function de(e,i,o,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case C:return e.return=e.return||e.value;case w:return"";case $:return e.return=e.value+"{"+ue(e.children,r)+"}";case z:e.value=e.props.join(",")}return M(o=ue(e.children,r))?e.return=e.value+"{"+o+"}":""}function me(e){var i=O(e);return function(o,r,t,a){for(var n="",l=0;l<i;l++)n+=e[l](o,r,t,a)||"";return n}}function pe(e){var i=Object.create(null);return function(o){return void 0===i[o]&&(i[o]=e(o)),i[o]}}var be="undefined"!=typeof document,ge=function(e,i,o){for(var r=0,t=0;r=t,t=_(),38===r&&12===t&&(i[o]=1),!K(t);)F();return X(e,B)},xe=function(e,i){return J(function(e,i){var o=-1,r=44;do{switch(K(r)){case 0:38===r&&12===_()&&(i[o]=1),e[o]+=ge(B-1,i,o);break;case 2:e[o]+=Q(r);break;case 4:if(44===r){e[++o]=58===_()?"&\f":"",i[o]=e[o].length;break}default:e[o]+=T(r)}}while(r=F());return e}(Z(e),i))},he=new WeakMap,fe=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var i=e.value,o=e.parent,r=e.column===o.column&&e.line===o.line;"rule"!==o.type;)if(!(o=o.parent))return;if((1!==e.props.length||58===i.charCodeAt(0)||he.get(o))&&!r){he.set(e,!0);for(var t=[],a=xe(i,t),n=o.props,l=0,c=0;l<a.length;l++)for(var s=0;s<n.length;s++,c++)e.props[c]=t[l]?a[l].replace(/&\f/g,n[s]):n[s]+" "+a[l]}}},ve=function(e){if("decl"===e.type){var i=e.value;108===i.charCodeAt(0)&&98===i.charCodeAt(2)&&(e.return="",e.value="")}};function ke(e,i){switch(function(e,i){return 45^j(e,0)?(((i<<2^j(e,0))<<2^j(e,1))<<2^j(e,2))<<2^j(e,3):0}(e,i)){case 5103:return y+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return y+e+k+e+v+e+e;case 6828:case 4268:return y+e+v+e+e;case 6165:return y+e+v+"flex-"+e+e;case 5187:return y+e+E(e,/(\w+).+(:[^]+)/,y+"box-$1$2"+v+"flex-$1$2")+e;case 5443:return y+e+v+"flex-item-"+E(e,/flex-|-self/,"")+e;case 4675:return y+e+v+"flex-line-pack"+E(e,/align-content|flex-|-self/,"")+e;case 5548:return y+e+v+E(e,"shrink","negative")+e;case 5292:return y+e+v+E(e,"basis","preferred-size")+e;case 6060:return y+"box-"+E(e,"-grow","")+y+e+v+E(e,"grow","positive")+e;case 4554:return y+E(e,/([^-])(transform)/g,"$1"+y+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,y+"$1"),/(image-set)/,y+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,y+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,y+"box-pack:$3"+v+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+y+e+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,y+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(M(e)-1-i>6)switch(j(e,i+1)){case 109:if(45!==j(e,i+4))break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+y+"$2-$3$1"+k+(108==j(e,i+3)?"$3":"$2-$3"))+e;case 115:return~I(e,"stretch")?ke(E(e,"stretch","fill-available"),i)+e:e}break;case 4949:if(115!==j(e,i+1))break;case 6444:switch(j(e,M(e)-3-(~I(e,"!important")&&10))){case 107:return E(e,":",":"+y)+e;case 101:return E(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+y+(45===j(e,14)?"inline-":"")+"box$3$1"+y+"$2$3$1"+v+"$2box$3")+e}break;case 5936:switch(j(e,i+11)){case 114:return y+e+v+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return y+e+v+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return y+e+v+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return y+e+v+e+e}return e}var ye,we,ze=be?void 0:(ye=function(){return pe(function(){return{}})},we=new WeakMap,function(e){if(we.has(e))return we.get(e);var i=ye(e);return we.set(e,i),i}),Ce=[function(e,i,o,r){if(e.length>-1&&!e.return)switch(e.type){case C:e.return=ke(e.value,e.length);break;case $:return ue([q(e,{value:E(e.value,"@","@"+y)})],r);case z:if(e.length)return function(e,i){return e.map(i).join("")}(e.props,function(i){switch(function(e,i){return(e=i.exec(e))?e[0]:e}(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ue([q(e,{props:[E(i,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ue([q(e,{props:[E(i,/:(plac\w+)/,":"+y+"input-$1")]}),q(e,{props:[E(i,/:(plac\w+)/,":-moz-$1")]}),q(e,{props:[E(i,/:(plac\w+)/,v+"input-$1")]})],r)}return""})}}],$e=function(e){var i=e.key;if(be&&"css"===i){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,t,a=e.stylisPlugins||Ce,n={},l=[];be&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(e){for(var i=e.getAttribute("data-emotion").split(" "),o=1;o<i.length;o++)n[i[o]]=!0;l.push(e)}));var c,s=[fe,ve];if(ze){var u=[de],d=me(s.concat(a,u)),m=ze(a)(i),p=function(e,i){var o=i.name;return void 0===m[o]&&(m[o]=ue(ae(e?e+"{"+i.styles+"}":i.styles),d)),m[o]};t=function(e,i,o,r){var t=i.name,a=p(e,i);return void 0===h.compat?(r&&(h.inserted[t]=!0),a):r?void(h.inserted[t]=a):a}}else{var b,g=[de,(c=function(e){b.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],x=me(s.concat(a,g));t=function(e,i,o,r){b=o,ue(ae(e?e+"{"+i.styles+"}":i.styles),x),r&&(h.inserted[i.name]=!0)}}var h={key:i,sheet:new f({key:i,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:n,registered:{},insert:t};return h.sheet.hydrate(l),h};var Se={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Te=/[A-Z]|^ms/g,Le=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ae=function(e){return 45===e.charCodeAt(1)},Ee=function(e){return null!=e&&"boolean"!=typeof e},Ie=pe(function(e){return Ae(e)?e:e.replace(Te,"-$&").toLowerCase()}),je=function(e,i){switch(e){case"animation":case"animationName":if("string"==typeof i)return i.replace(Le,function(e,i,o){return Me={name:i,styles:o,next:Me},i})}return 1===Se[e]||Ae(e)||"number"!=typeof i||0===i?i:i+"px"};function De(e,i,o){if(null==o)return"";var r=o;if(void 0!==r.__emotion_styles)return r;switch(typeof o){case"boolean":return"";case"object":var t=o;if(1===t.anim)return Me={name:t.name,styles:t.styles,next:Me},t.name;var a=o;if(void 0!==a.styles){var n=a.next;if(void 0!==n)for(;void 0!==n;)Me={name:n.name,styles:n.styles,next:Me},n=n.next;return a.styles+";"}return function(e,i,o){var r="";if(Array.isArray(o))for(var t=0;t<o.length;t++)r+=De(e,i,o[t])+";";else for(var a in o){var n=o[a];if("object"!=typeof n){var l=n;null!=i&&void 0!==i[l]?r+=a+"{"+i[l]+"}":Ee(l)&&(r+=Ie(a)+":"+je(a,l)+";")}else if(!Array.isArray(n)||"string"!=typeof n[0]||null!=i&&void 0!==i[n[0]]){var c=De(e,i,n);switch(a){case"animation":case"animationName":r+=Ie(a)+":"+c+";";break;default:r+=a+"{"+c+"}"}}else for(var s=0;s<n.length;s++)Ee(n[s])&&(r+=Ie(a)+":"+je(a,n[s])+";")}return r}(e,i,o)}var l=o;if(null==i)return l;var c=i[l];return void 0!==c?c:l}var Me,Oe=/label:\s*([^\s;{]+)\s*(;|$)/g;function Re(e,i,o){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,t="";Me=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,t+=De(o,i,a)):t+=a[0];for(var n=1;n<e.length;n++){if(t+=De(o,i,e[n]),r)t+=a[n]}Oe.lastIndex=0;for(var l,c="";null!==(l=Oe.exec(t));)c+="-"+l[1];var s=function(e){for(var i,o=0,r=0,t=e.length;t>=4;++r,t-=4)i=1540483477*(65535&(i=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(i>>>16)<<16),o=1540483477*(65535&(i^=i>>>24))+(59797*(i>>>16)<<16)^1540483477*(65535&o)+(59797*(o>>>16)<<16);switch(t){case 3:o^=(255&e.charCodeAt(r+2))<<16;case 2:o^=(255&e.charCodeAt(r+1))<<8;case 1:o=1540483477*(65535&(o^=255&e.charCodeAt(r)))+(59797*(o>>>16)<<16)}return(((o=1540483477*(65535&(o^=o>>>13))+(59797*(o>>>16)<<16))^o>>>15)>>>0).toString(36)}(t)+c;return{name:s,styles:t,next:Me}}var He="undefined"!=typeof document;function We(e,i,o){var r="";return o.split(" ").forEach(function(o){void 0!==e[o]?i.push(e[o]+";"):o&&(r+=o+" ")}),r}function Pe(e,i){if(void 0===e.inserted[i.name])return e.insert("",i,e.sheet,!0)}function Be(e,i,o){var r=[],t=We(e,r,o);return r.length<2?o:t+i(r)}var Ne=function e(i){for(var o="",r=0;r<i.length;r++){var t=i[r];if(null!=t){var a=void 0;switch(typeof t){case"boolean":break;case"object":if(Array.isArray(t))a=e(t);else for(var n in a="",t)t[n]&&n&&(a&&(a+=" "),a+=n);break;default:a=t}a&&(o&&(o+=" "),o+=a)}}return o},Ue=function(e){var i=$e(e);i.sheet.speedy=function(e){this.isSpeedy=e},i.compat=!0;var o=function(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];var t=Re(o,i.registered,void 0);return function(e,i){!function(e,i){var o=e.key+"-"+i.name;void 0===e.registered[o]&&(e.registered[o]=i.styles)}(e,i);var o=e.key+"-"+i.name;if(void 0===e.inserted[i.name]){var r="",t=i;do{var a=e.insert(i===t?"."+o:"",t,e.sheet,!0);He||void 0===a||(r+=a),t=t.next}while(void 0!==t);if(!He&&0!==r.length);}}(i,t),i.key+"-"+t.name};return{css:o,cx:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return Be(i.registered,o,Ne(r))},injectGlobal:function(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];var t=Re(o,i.registered);Pe(i,t)},keyframes:function(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];var t=Re(o,i.registered),a="animation-"+t.name;return Pe(i,{name:t.name,styles:"@keyframes "+a+"{"+t.styles+"}"}),a},hydrate:function(e){e.forEach(function(e){i.inserted[e]=!0})},flush:function(){i.registered={},i.inserted={},i.sheet.flush()},sheet:i.sheet,cache:i,getRegisteredStyles:We.bind(null,i.registered),merge:Be.bind(null,i.registered,o)}}({key:"css"}),Ve=Ue.injectGlobal;Ve`
2
2
  /* Global UI Color Variables - MUI-like color palette */
3
3
 
4
4
  :root {
@@ -92,7 +92,7 @@ import{$parseStyle as e,$emptyFn as i,$defines as o,$arrayPushUnique as r,$array
92
92
  }
93
93
  }
94
94
 
95
- `,qe`
95
+ `,Ve`
96
96
  /* Alert Component Styles - Mimics MUI Alert */
97
97
 
98
98
  .mui-alert {
@@ -244,7 +244,7 @@ import{$parseStyle as e,$emptyFn as i,$defines as o,$arrayPushUnique as r,$array
244
244
  }
245
245
  }
246
246
 
247
- `;const Ge=(e,i,o)=>{if(o)for(const r in i)r.startsWith("on:")&&!o.includes(r)&&e.addEventListener(r.slice(3),i[r]);else for(const o in i)o.startsWith("on:")&&e.addEventListener(o.slice(3),i[o])},Fe={success:(e,i)=>u("svg",{class:e,viewBox:"0 0 24 24",width:i,height:i,children:u("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})}),error:(e,i)=>u("svg",{class:e,viewBox:"0 0 24 24",width:i,height:i,children:u("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})}),warning:(e,i)=>u("svg",{class:e,viewBox:"0 0 24 24",width:i,height:i,children:u("path",{fill:"currentColor",d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})}),info:(e,i)=>u("svg",{class:e,viewBox:"0 0 24 24",width:i,height:i,children:u("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})})};function Ye(i){const o=d(i.class??""),r=d(e(i.style)),t=d(i.children),a=d(i.severity??"info"),n=d(i.variant??"standard"),l=d(i.icon??!0),c=d(i.iconSize??"22px"),m=i["on:close"],b=p(()=>`mui-alert mui-alert-${a.value} mui-alert-${n.value} ${o.value?o.value:""}`,[a,n,o]),g=p(()=>{if(!1===l.value)return null;if(!0===l.value){return(Fe[a.value]||Fe.info)(c.value,"mui-alert-icon")}return l},[l,c,a]),x=s("div",{class:b,style:r,role:"alert",children:[g&&u("div",{class:"mui-alert-icon-wrapper",children:g}),u("div",{class:"mui-alert-message",children:t}),u("button",{"k-if":m,class:"mui-alert-close","on:click":m,"aria-label":"Close",children:u("svg",{viewBox:"0 0 24 24",width:"18px",height:"18px",children:u("path",{fill:"currentColor",d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})]});return Ge(x,i),x}function _e(o){const r=o["on:click"]??i,t=m(),a=m(),n=d(o.startIcon),l=d(o.endIcon),c=d(o.class??""),b=d(e(o.style)),g=d(o.variant??"text"),x=d(o.color??"primary"),h=d(o.size??"medium"),f=d(o.fullWidth??!1),v=d(o.iconOnly??!1),k=d(o.disabled??!1),w=p(()=>["mui-button",`mui-button-${g.value}`,`mui-button-${g.value}-${x.value}`,`mui-button-size-${h.value}`,f.value?"mui-button-fullwidth":"",v.value?"mui-button-icon-only":"",k.value?"mui-button-disabled":"",c.value].join(" "),[g,x,h,f,v,k,c]),y=(e,i)=>{const o=t.value,r=a.value;if(!o||!r)return;const n=o.getBoundingClientRect(),l=Math.max(n.width,n.height),c=e-n.left-l/2,s=i-n.top-l/2,d=u("span",{class:"mui-button-ripple-effect",style:`width:${l}px; height:${l}px; left:${c}px; top:${s}px;`});r.appendChild(d),setTimeout(()=>d.remove(),600)},z=s("button",{ref:t,class:w,style:b,type:d(o.type??"button"),disabled:k,"on:click":e=>{k.value?e.preventDefault():(y(e.clientX,e.clientY),r(e))},children:[u("span",{"k-if":n,class:"mui-button-start-icon",children:n}),u("span",{class:"mui-button-label",children:o.children}),u("span",{"k-if":l,class:"mui-button-end-icon",children:l}),u("span",{ref:a,class:"mui-button-ripple"})]}),C=o["on:dblclick"];return C&&z.addEventListener("dblclick",e=>{k.value?e.preventDefault():(y(e.clientX,e.clientY),C(e))}),Ge(z,o,["on:dblclick","on:click"]),z}qe`
247
+ `;const qe=(e,i,o)=>{if(o)for(const r in i)r.startsWith("on:")&&!o.includes(r)&&e.addEventListener(r.slice(3),i[r]);else for(const o in i)o.startsWith("on:")&&e.addEventListener(o.slice(3),i[o])},Ge={success:(e,i)=>u("svg",{class:e,viewBox:"0 0 24 24",width:i,height:i,children:u("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})}),error:(e,i)=>u("svg",{class:e,viewBox:"0 0 24 24",width:i,height:i,children:u("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})}),warning:(e,i)=>u("svg",{class:e,viewBox:"0 0 24 24",width:i,height:i,children:u("path",{fill:"currentColor",d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})}),info:(e,i)=>u("svg",{class:e,viewBox:"0 0 24 24",width:i,height:i,children:u("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})})};function Fe(i){const o=d(i.class??""),r=d(e(i.style)),t=d(i.children),a=d(i.severity??"info"),n=d(i.variant??"standard"),l=d(i.icon??!0),c=d(i.iconSize??"22px"),p=i["on:close"],b=m(()=>`mui-alert mui-alert-${a.value} mui-alert-${n.value} ${o.value?o.value:""}`,[a,n,o]),g=m(()=>{if(!1===l.value)return null;if(!0===l.value){return(Ge[a.value]||Ge.info)(c.value,"mui-alert-icon")}return l},[l,c,a]),x=s("div",{class:b,style:r,role:"alert",children:[g&&u("div",{class:"mui-alert-icon-wrapper",children:g}),u("div",{class:"mui-alert-message",children:t}),u("button",{"k-if":p,class:"mui-alert-close","on:click":p,"aria-label":"Close",children:u("svg",{viewBox:"0 0 24 24",width:"18px",height:"18px",children:u("path",{fill:"currentColor",d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})]});return qe(x,i),x}function _e(o){const r=o["on:click"]??i,t=p(),a=p(),n=d(o.startIcon),l=d(o.endIcon),c=d(o.class??""),b=d(e(o.style)),g=d(o.variant??"text"),x=d(o.color??"primary"),h=d(o.size??"medium"),f=d(o.fullWidth??!1),v=d(o.iconOnly??!1),k=d(o.disabled??!1),y=m(()=>["mui-button",`mui-button-${g.value}`,`mui-button-${g.value}-${x.value}`,`mui-button-size-${h.value}`,f.value?"mui-button-fullwidth":"",v.value?"mui-button-icon-only":"",k.value?"mui-button-disabled":"",c.value].join(" "),[g,x,h,f,v,k,c]),w=(e,i)=>{const o=t.value,r=a.value;if(!o||!r)return;const n=o.getBoundingClientRect(),l=Math.max(n.width,n.height),c=e-n.left-l/2,s=i-n.top-l/2,d=u("span",{class:"mui-button-ripple-effect",style:`width:${l}px; height:${l}px; left:${c}px; top:${s}px;`});r.appendChild(d),setTimeout(()=>d.remove(),600)},z=s("button",{ref:t,class:y,style:b,type:d(o.type??"button"),disabled:k,"on:click":e=>{k.value?e.preventDefault():(w(e.clientX,e.clientY),r(e))},children:[u("span",{"k-if":n,class:"mui-button-start-icon",children:n}),u("span",{class:"mui-button-label",children:o.children}),u("span",{"k-if":l,class:"mui-button-end-icon",children:l}),u("span",{ref:a,class:"mui-button-ripple"})]}),C=o["on:dblclick"];return C&&z.addEventListener("dblclick",e=>{k.value?e.preventDefault():(w(e.clientX,e.clientY),C(e))}),qe(z,o,["on:dblclick","on:click"]),z}Ve`
248
248
  /* Button Component Styles - MUI-like */
249
249
 
250
250
  .mui-button {
@@ -734,7 +734,7 @@ import{$parseStyle as e,$emptyFn as i,$defines as o,$arrayPushUnique as r,$array
734
734
  }
735
735
  }
736
736
 
737
- `,qe`
737
+ `,Ve`
738
738
  .mui-bottom-navigation-root {
739
739
  width: 100%;
740
740
  height: 56px;
@@ -784,19 +784,19 @@ import{$parseStyle as e,$emptyFn as i,$defines as o,$arrayPushUnique as r,$array
784
784
  align-items: center;
785
785
  justify-content: center;
786
786
  min-height: 24px;
787
+ min-width: 20px;
787
788
  font-size: 1.5rem;
788
789
  line-height: 1;
789
790
  }
790
791
 
791
792
  .mui-bottom-navigation-action-label {
793
+ display: inline-block;
792
794
  font-size: 0.75rem;
793
795
  line-height: 1;
794
796
  letter-spacing: 0.03333em;
795
- opacity: 0;
796
- transform: scale(0.72) translateY(6px);
797
- transition:
798
- opacity 160ms cubic-bezier(0.4, 0, 0.2, 1),
799
- transform 160ms cubic-bezier(0.4, 0, 0.2, 1);
797
+ opacity: 0.72;
798
+ transform: scale(0.88) translateY(2px);
799
+ transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1);
800
800
  }
801
801
 
802
802
  .mui-bottom-navigation-show-labels .mui-bottom-navigation-action-label,
@@ -845,120 +845,7 @@ import{$parseStyle as e,$emptyFn as i,$defines as o,$arrayPushUnique as r,$array
845
845
  }
846
846
  }
847
847
 
848
- `;function Xe(o){const r=o["on:change"]??i,t=d(o.class??""),a=d(e(o.style)),n=d(o.options),l=d(o.showLabels??!1),c="string"==typeof o.value?o.value:"",m=b(o,c),x=e=>{const i=m.value;if(n.value.find(e=>e.value===i&&!e.disabled))return;const o=(e=>{for(let i=0;i<e.length;i++)if(!e[i].disabled)return{option:e[i],index:i};return null})(n.value),t=o?.option.value??"";t!==i&&(m.value=t,e&&r(t,i,o?.index??-1,o?.option))},h=p(()=>["mui-bottom-navigation-root",l.value?"mui-bottom-navigation-show-labels":"",t.value].join(" "),[l,t]),f=e=>{const i=e.currentTarget;if(!i)return;const o=Number(i.dataset.index??"-1"),t=n.value[o];t&&((e,i)=>{if(e.disabled)return;const o=m.value;o!==e.value&&(m.value=e.value,r(e.value,o,i,e))})(t,o)},v=p(()=>n.value.map((e,i)=>{const o=m.value===e.value,r=l.value||o||!!e.showLabel;return s("button",{type:"button",role:"tab",class:`mui-bottom-navigation-action ${o?"mui-bottom-navigation-action-selected":""} ${e.disabled?"mui-bottom-navigation-action-disabled":""} ${r?"mui-bottom-navigation-action-show-label":""}`,"data-index":String(i),"data-value":e.value,"aria-selected":o,"aria-disabled":e.disabled?"true":"false",disabled:e.disabled??!1,tabIndex:o?0:-1,"on:click":f,children:[u("span",{"k-if":e.icon,class:"mui-bottom-navigation-action-icon",children:e.icon}),u("span",{class:"mui-bottom-navigation-action-label",children:e.label})]})}),[n,m,l]),k=u("div",{class:h,style:a,role:"tablist","aria-label":"Bottom navigation",children:u(g,{list:v})});return x(!1),n.addOnChange(()=>x(!0)),Ge(k,o,["on:change"]),k}function Ke(o){const r=o["on:select"]??i,t=o["on:click"]??i,a=d(o.class??""),n=d(e(o.style)),l=m(!1),c=d(o.label??""),b=d(o.options),x=d(o.variant??"contained"),h=d(o.color??"primary"),v=d(o.size??"medium"),k=d(o.disabled??!1,e=>{e&&(l.value=!1)}),w=d(o.fullWidth??!1),y=p(()=>["mui-dropdown-button-wrapper",w.value?"mui-dropdown-button-fullwidth":"",k.value?"mui-dropdown-button-disabled":"",l.value?"mui-dropdown-button-open":"",a.value].join(" "),[w,k,l,a]),z=p(()=>["mui-button",`mui-button-${x.value}`,`mui-button-${x.value}-${h.value}`,`mui-button-size-${v.value}`,w.value?"mui-button-fullwidth":"","mui-dropdown-button-trigger"].join(" "),[x,h,v,w]),C=p(()=>"mui-dropdown-button-menu "+(l.value?"mui-dropdown-button-menu-open":""),[l]),$=()=>{l.value=!1},S=e=>{const i=e.currentTarget;if(!i)return;const o=i.dataset.value;if(!o)return;const t=b.value.find(e=>e.value===o);t&&!t.disabled&&(r(o,t),$())},L=b.toComputed(e=>e.map(e=>e.label instanceof Node?(e.label.removeEventListener("click",S),e.label.addEventListener("click",S),e):u("button",{type:"button",class:"mui-dropdown-button-option "+(e.disabled?"mui-dropdown-button-option-disabled":""),"data-value":e.value,disabled:e.disabled??!1,"on:click":S,role:"menuitem",children:e.label}))),E=s("div",{class:y,style:n,children:[s("button",{type:"button",class:z,disabled:k,"on:click":e=>{k.value?e.preventDefault():(l.value=!l.value,t(e))},"aria-haspopup":"menu","aria-expanded":l,children:[u("span",{class:"mui-button-label",children:c}),u("span",{class:"mui-dropdown-button-end-icon",children:u(f,{})})]}),u("div",{class:C,role:"menu",children:u(g,{list:L})})]}),A=e=>{const i=e.target;i&&(E.contains(i)||$())},T=e=>{"Escape"===e.key&&$()};document.addEventListener("click",A),document.addEventListener("keydown",T);const j=E.remove;return E.remove=()=>(document.removeEventListener("click",A),document.removeEventListener("keydown",T),j.call(E)),Ge(E,o,["on:click","on:select"]),E}qe`
849
- .mui-dropdown-button-wrapper {
850
- position: relative;
851
- display: inline-flex;
852
- flex-direction: column;
853
- min-width: 120px;
854
- }
855
-
856
- .mui-dropdown-button-fullwidth {
857
- width: 100%;
858
- }
859
-
860
- .mui-dropdown-button-fullwidth .mui-dropdown-button-trigger {
861
- width: 100%;
862
- }
863
-
864
- .mui-dropdown-button-disabled {
865
- pointer-events: none;
866
- }
867
-
868
- .mui-dropdown-button-trigger {
869
- gap: 8px;
870
- }
871
-
872
- .mui-dropdown-button-end-icon {
873
- display: inline-flex;
874
- align-items: center;
875
- justify-content: center;
876
- font-size: 1.15em;
877
- line-height: 1;
878
- margin-right: -4px;
879
- transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
880
- }
881
-
882
- .mui-dropdown-button-open .mui-dropdown-button-end-icon {
883
- transform: rotate(180deg);
884
- }
885
-
886
- .mui-dropdown-button-menu {
887
- position: absolute;
888
- top: calc(100% + 4px);
889
- left: 0;
890
- min-width: 100%;
891
- z-index: 1300;
892
- background-color: #fff;
893
- border-radius: 4px;
894
- box-shadow:
895
- 0px 5px 5px -3px rgba(0, 0, 0, 0.2),
896
- 0px 8px 10px 1px rgba(0, 0, 0, 0.14),
897
- 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
898
- padding: 6px 0;
899
- display: none;
900
- opacity: 0;
901
- transform: scale(0.9) translateY(-4px);
902
- transform-origin: top center;
903
- transition:
904
- opacity 150ms cubic-bezier(0.4, 0, 0.2, 1),
905
- transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
906
- }
907
-
908
- .mui-dropdown-button-menu-open {
909
- display: block;
910
- opacity: 1;
911
- transform: scale(1) translateY(0);
912
- }
913
-
914
- .mui-dropdown-button-option {
915
- width: 100%;
916
- border: 0;
917
- background: transparent;
918
- text-align: left;
919
- padding: 8px 16px;
920
- min-height: 36px;
921
- font: inherit;
922
- color: rgba(0, 0, 0, 0.87);
923
- cursor: pointer;
924
- transition: background-color 120ms cubic-bezier(0.4, 0, 0.2, 1);
925
- }
926
-
927
- .mui-dropdown-button-option:hover {
928
- background-color: rgba(0, 0, 0, 0.04);
929
- }
930
-
931
- .mui-dropdown-button-option-disabled,
932
- .mui-dropdown-button-option:disabled {
933
- color: rgba(0, 0, 0, 0.38);
934
- cursor: default;
935
- }
936
-
937
- .mui-dropdown-button-option-disabled:hover,
938
- .mui-dropdown-button-option:disabled:hover {
939
- background-color: transparent;
940
- }
941
-
942
- @media (prefers-color-scheme: dark) {
943
- .mui-dropdown-button-menu {
944
- background-color: #1f1f1f;
945
- }
946
-
947
- .mui-dropdown-button-option {
948
- color: rgba(255, 255, 255, 0.9);
949
- }
950
-
951
- .mui-dropdown-button-option:hover {
952
- background-color: rgba(255, 255, 255, 0.08);
953
- }
954
-
955
- .mui-dropdown-button-option-disabled,
956
- .mui-dropdown-button-option:disabled {
957
- color: rgba(255, 255, 255, 0.38);
958
- }
959
- }
960
-
961
- `,qe`
848
+ `;function Ye(o){const r=o["on:change"]??i,t=d(o.class??""),a=d(e(o.style)),n=d(o.options),l=d(o.showLabels??!1),c="string"==typeof o.value?o.value:"",p=b(o,c),x=e=>{const i=p.value;if(n.value.find(e=>e.value===i&&!e.disabled))return;const o=(e=>{for(let i=0;i<e.length;i++)if(!e[i].disabled)return{option:e[i],index:i};return null})(n.value),t=o?.option.value??"";t!==i&&(p.value=t,e&&r(t,i,o?.index??-1,o?.option))},h=m(()=>["mui-bottom-navigation-root",l.value?"mui-bottom-navigation-show-labels":"",t.value].join(" "),[l,t]),f=e=>{const i=e.currentTarget;if(!i)return;const o=i.dataset.value??"",t=n.value.findIndex(e=>e.value===o),a=t>=0?n.value[t]:void 0;a&&((e,i)=>{if(e.disabled)return;const o=p.value;o!==e.value&&(p.value=e.value,r(e.value,o,i,e))})(a,t)},v=u("div",{class:h,style:a,role:"tablist","aria-label":"Bottom navigation",children:u(g,{list:n,map:e=>{const i=n.toComputed(i=>i.find(i=>i.value===e.value)??e),o=p.toComputed(i=>i===e.value),r=i.toComputed(e=>e.disabled??!1),t=i.toComputed(e=>e.label),a=i.toComputed(e=>e.icon??null),c=m(()=>{const o=i.value,r=p.value===e.value,t=l.value||r||!!o.showLabel;return`mui-bottom-navigation-action ${r?"mui-bottom-navigation-action-selected":""} ${o.disabled?"mui-bottom-navigation-action-disabled":""} ${t?"mui-bottom-navigation-action-show-label":""}`},[i,p,l]);return s("button",{type:"button",role:"tab",class:c,"data-value":e.value,"aria-selected":o.toComputed(e=>String(e)),"aria-disabled":r.toComputed(e=>e?"true":"false"),disabled:r,tabIndex:o.toComputed(e=>e?0:-1),"on:click":f,children:[u("span",{"k-if":a,class:"mui-bottom-navigation-action-icon",children:a}),u("span",{class:"mui-bottom-navigation-action-label",children:t})]})}},e=>e.value)});return x(!1),n.addOnChange(()=>x(!0)),qe(v,o,["on:change"]),v}Ve`
962
849
  /* Checkbox Component Styles - MUI-like */
963
850
 
964
851
  .mui-checkbox-wrapper {
@@ -1174,7 +1061,7 @@ import{$parseStyle as e,$emptyFn as i,$defines as o,$arrayPushUnique as r,$array
1174
1061
  }
1175
1062
  }
1176
1063
 
1177
- `;const Ze=(()=>{const e=u("span",{class:"mui-checkbox-icon-unchecked"});return e.innerHTML='<svg viewBox="0 0 24 24">\n <path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"></path>\n </svg>',e})(),Je=(()=>{const e=u("span",{class:"mui-checkbox-icon-checked"});return e.innerHTML='<svg viewBox="0 0 24 24">\n <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"></path>\n </svg>',e})(),Qe=(()=>{const e=u("span",{class:"mui-checkbox-icon-indeterminate"});return e.innerHTML='<svg viewBox="0 0 24 24">\n <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"></path>\n </svg>',e})();function ei(i,r){const t=d(i.class??""),a=d(e(i.style)),n=d(i.label??""),l=d(i.value??""),c=d(i.indeterminate??!1),m=d(i.color??"primary"),g=d(i.size??"medium"),h=d(i.disabled??!1),f=b(i,!1),v=u("input",{type:"checkbox",class:"mui-checkbox-input",checked:f,value:l,disabled:h,"on:change":()=>{h.value||(f.value=v.checked,c.value=!1)}}),k=i["on:change"];k&&v.addEventListener("change",()=>k(v.checked,l.value)),r&&v.addEventListener("change",()=>r(v.checked,l.value));const w=Ze.cloneNode(!0),y=Je.cloneNode(!0),z=Qe.cloneNode(!0),C=p(()=>`mui-checkbox-wrapper mui-checkbox-size-${g.value} ${h.value?"mui-checkbox-disabled":""} mui-checkbox-color-${m.value} ${t.value}`,[m,h,g,t]),$=s("label",{class:C,style:a,children:[v,s("span",{class:"mui-checkbox-icon",children:[w,y,z]}),u("span",{"k-if":n,class:"mui-checkbox-label",children:n})]});return x(()=>{c.value?(w.style.display="none",y.style.display="none",z.style.display=""):(w.style.display=f.value?"none":"",y.style.display=f.value?"":"none",z.style.display="none")},[f,c]),o($,{checked:{get:()=>f.value,set(e){f.value=e}},value:{get:()=>l.value,set(e){l.value=e}},disabled:{get:()=>h.value,set(e){h.value=e}}}),Ge($,i,["on:change"]),$}function ii(o){let{"on:change":a=i}=o;const n=d(o.class??""),l=d(e(o.style)),c=d(o.options),s=d(o.row??!0),m=d(o.size??"medium"),x=b(o,[]);let h=!1;x.addOnChange(e=>{if(h)h=!1;else for(let i=0;i<v.length;i++){const o=v[i];o.checked=e.includes(o.value)}});const f=p(()=>`mui-checkbox-group ${s.value?"mui-checkbox-group-row":""} ${n.value}`,[s,n]),v=[],k=(e,i)=>{const o=x.value.slice();e?r(x.value,i):t(x.value,i),a(x.value.slice(),o),h=!0,x.notify()},w=p(()=>(v.length=0,c.value.map(e=>{if(null!==e&&"object"==typeof e&&"value"in e&&"label"in e){const i=ei({...e,size:m.value},k);return v.push(i),i}return e})),[c,m]),y=u("div",{class:f,style:l,role:"group",children:u(g,{list:w})});return x.notify(),Ge(y,o,["on:change"]),y}function oi(o){let{"on:close":r=i,children:t,actions:a}=o;const n=d(o.class??""),l=d(e(o.style)),c=d(o.title??""),m=d(o.open??!1,e=>{e?(k.style.display="flex",setTimeout(()=>k.classList.add("kt-dialog-backdrop-open"),50)):(k.classList.remove("kt-dialog-backdrop-open"),setTimeout(()=>{m.value||(k.style.display="none")},225))}),b=d(o.size??"sm"),g=d(o.fullWidth??!1),x=p(()=>`kt-dialog-paper ${b.value?`kt-dialog-maxWidth-${b.value}`:""} ${g.value?"kt-dialog-fullWidth":""} ${n.value}`,[b,g,n]),h=m.toComputed(e=>"kt-dialog-backdrop "+(e?"kt-dialog-backdrop-open":"")),f=m.toComputed(e=>e?"display:flex":"display:none"),v=e=>{"Escape"===e.key&&(m.value=!1,r())},k=u("div",{class:h,style:f,"on:click":e=>{e.target===k&&r()},children:s("div",{class:x,style:l,"on:click":e=>e.stopPropagation(),children:[u("div",{"k-if":c,class:"kt-dialog-title",children:u("h2",{children:c})}),u("div",{"k-if":t,class:"kt-dialog-content",children:t}),u("div",{"k-if":a,class:"kt-dialog-actions",children:a})]})});document.addEventListener("keydown",v);const w=k.remove;return k.remove=()=>(v&&document.removeEventListener("keydown",v),w.call(k)),Ge(k,o,["on:close"]),k}function ri(e){const i=d(e.required??!1),o=d(e.error??!1),r=d(e.disabled??!1),t=d(e.focused??!1),a=d(e.filled??!1),n=d(e.htmlFor??""),l={class:p(()=>["mui-form-label",o.value?"mui-form-label-error":"",r.value?"mui-form-label-disabled":"",t.value?"mui-form-label-focused":"",a.value?"mui-form-label-filled":""].join(" "),[o,r,t,a])};n&&(l.for=n);const c="legend"===e.component?s("legend",{...l,children:[e.children,u("span",{"k-if":i,class:"mui-form-label-asterisk",children:"*"})]}):s("label",{...l,children:[e.children,u("span",{"k-if":i,class:"mui-form-label-asterisk",children:"*"})]});return Ge(c,e),c}function ti(i){const r=d(i.class??""),t=d(e(i.style)),a=d(i.value??0),n=d(i.color??"primary"),l=d(i.variant??"indeterminate"),c=p(()=>`mui-linear-progress mui-linear-progress-${l.value} mui-linear-progress-${n.value} ${r.value}`,[r,n,l]),s=p(()=>"determinate"===l.value?`width: ${a.value}%`:"",[l,a]),m=u("div",{class:c,style:t,role:"progressbar","aria-valuenow":a,children:u("div",{class:"mui-linear-progress-bar",style:s})});return o(m,{value:{get:()=>a.value,set(e){a.value=e}}}),Ge(m,i),m}qe`
1064
+ `;const Xe=(()=>{const e=u("span",{class:"mui-checkbox-icon-unchecked"});return e.innerHTML='<svg viewBox="0 0 24 24">\n <path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"></path>\n </svg>',e})(),Ke=(()=>{const e=u("span",{class:"mui-checkbox-icon-checked"});return e.innerHTML='<svg viewBox="0 0 24 24">\n <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"></path>\n </svg>',e})(),Ze=(()=>{const e=u("span",{class:"mui-checkbox-icon-indeterminate"});return e.innerHTML='<svg viewBox="0 0 24 24">\n <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"></path>\n </svg>',e})();function Je(i,r){const t=d(i.class??""),a=d(e(i.style)),n=d(i.label??""),l=d(i.value??""),c=d(i.indeterminate??!1),p=d(i.color??"primary"),g=d(i.size??"medium"),h=d(i.disabled??!1),f=b(i,!1),v=u("input",{type:"checkbox",class:"mui-checkbox-input",checked:f,value:l,disabled:h,"on:change":()=>{h.value||(f.value=v.checked,c.value=!1)}}),k=i["on:change"];k&&v.addEventListener("change",()=>k(v.checked,l.value)),r&&v.addEventListener("change",()=>r(v.checked,l.value));const y=Xe.cloneNode(!0),w=Ke.cloneNode(!0),z=Ze.cloneNode(!0),C=m(()=>`mui-checkbox-wrapper mui-checkbox-size-${g.value} ${h.value?"mui-checkbox-disabled":""} mui-checkbox-color-${p.value} ${t.value}`,[p,h,g,t]),$=s("label",{class:C,style:a,children:[v,s("span",{class:"mui-checkbox-icon",children:[y,w,z]}),u("span",{"k-if":n,class:"mui-checkbox-label",children:n})]});return x(()=>{c.value?(y.style.display="none",w.style.display="none",z.style.display=""):(y.style.display=f.value?"none":"",w.style.display=f.value?"":"none",z.style.display="none")},[f,c]),o($,{checked:{get:()=>f.value,set(e){f.value=e}},value:{get:()=>l.value,set(e){l.value=e}},disabled:{get:()=>h.value,set(e){h.value=e}}}),qe($,i,["on:change"]),$}function Qe(o){let{"on:change":a=i}=o;const n=d(o.class??""),l=d(e(o.style)),c=d(o.options),s=d(o.row??!0),p=d(o.size??"medium"),x=b(o,[]);let h=!1;x.addOnChange(e=>{if(h)h=!1;else for(let i=0;i<v.length;i++){const o=v[i];o.checked=e.includes(o.value)}});const f=m(()=>`mui-checkbox-group ${s.value?"mui-checkbox-group-row":""} ${n.value}`,[s,n]),v=[],k=(e,i)=>{const o=x.value.slice();e?r(x.value,i):t(x.value,i),a(x.value.slice(),o),h=!0,x.notify()},y=m(()=>(v.length=0,c.value.map(e=>{if(null!==e&&"object"==typeof e&&"value"in e&&"label"in e){const i=Je({...e,size:p.value},k);return v.push(i),i}return e})),[c,p]),w=u("div",{class:f,style:l,role:"group",children:u(g,{list:y})});return x.notify(),qe(w,o,["on:change"]),w}Ve`
1178
1065
  /* Dialog Component Styles - MUI-like appearance */
1179
1066
 
1180
1067
  .kt-dialog-backdrop {
@@ -1206,15 +1093,18 @@ import{$parseStyle as e,$emptyFn as i,$defines as o,$arrayPushUnique as r,$array
1206
1093
  0px 24px 38px 3px rgba(0, 0, 0, 0.14),
1207
1094
  0px 9px 46px 8px rgba(0, 0, 0, 0.12);
1208
1095
  display: flex;
1096
+ border: 0;
1209
1097
  flex-direction: column;
1210
1098
  max-height: calc(100% - 64px);
1211
1099
  overflow-y: auto;
1212
1100
  transform: scale(0.8);
1213
- transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1);
1101
+ opacity: 0;
1102
+ transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1), opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);
1214
1103
  }
1215
1104
 
1216
1105
  .kt-dialog-backdrop-open .kt-dialog-paper {
1217
1106
  transform: scale(1);
1107
+ opacity: 1;
1218
1108
  }
1219
1109
 
1220
1110
  /* Max width variants */
@@ -1284,7 +1174,7 @@ import{$parseStyle as e,$emptyFn as i,$defines as o,$arrayPushUnique as r,$array
1284
1174
  align-items: center;
1285
1175
  justify-content: flex-end;
1286
1176
  flex: 0 0 auto;
1287
- padding: 8px;
1177
+ padding: 8px 24px 24px;
1288
1178
  gap: 8px;
1289
1179
  }
1290
1180
 
@@ -1308,7 +1198,7 @@ import{$parseStyle as e,$emptyFn as i,$defines as o,$arrayPushUnique as r,$array
1308
1198
  }
1309
1199
  }
1310
1200
 
1311
- `,qe`
1201
+ `;const ei="undefined"!=typeof window&&"undefined"!=typeof HTMLDialogElement;function ii(o){let{"on:close":r=i,children:t,actions:a}=o;const n=d(o.class??""),l=d(e(o.style)),c=d(o.title??""),b=p(!1),g=p(!1);let h,f;const v=d(o.mode??"dialog");v.toComputed(e=>"dialog"===e&&ei);const k=()=>{f&&(clearTimeout(f),f=void 0),b.value=!0,h&&clearTimeout(h),h=setTimeout(()=>{y.value&&(g.value=!0,C.value instanceof HTMLDialogElement&&C.value.showModal(),document.body.style.overflow="hidden",setTimeout(()=>C.value.focus(),0))},12)},y=d(o.open??!1,e=>{e?k():(h&&(clearTimeout(h),h=void 0),g.value=!1,f&&clearTimeout(f),f=setTimeout(()=>{y.value||(b.value=!1,C.value instanceof HTMLDialogElement&&C.value.close(),document.body.style.overflow="")},225))}),w=d(o.size??"sm"),z=d(o.fullWidth??!1),C=p();y.value&&k();const $=m(()=>`kt-dialog-paper ${w.value?`kt-dialog-maxWidth-${w.value}`:""} ${z.value?"kt-dialog-fullWidth":""} ${n.value}`,[w,z,n]),S=m(()=>"kt-dialog-backdrop "+(g.value?"kt-dialog-backdrop-open":""),[g]),T=m(()=>b.value?"display:flex":"display:none",[b]),L=e=>{"Escape"===e.key&&(y.value=!1,r())},A=e=>{e.target===I&&r()},E=()=>"dialog"===v.value&&ei?u("div",{class:S,style:T,children:s("dialog",{ref:C,class:$,style:l,tabIndex:-1,"on:click":e=>e.stopPropagation(),children:[u("div",{"k-if":c,class:"kt-dialog-title",children:u("h2",{children:c})}),u("div",{"k-if":t,class:"kt-dialog-content",children:t}),u("div",{"k-if":a,class:"kt-dialog-actions",children:a})]})}):u("div",{class:S,style:T,"on:click":A,children:s("div",{ref:C,class:$,style:l,tabIndex:-1,"on:click":e=>e.stopPropagation(),children:[u("div",{"k-if":c,class:"kt-dialog-title",children:u("h2",{children:c})}),u("div",{"k-if":t,class:"kt-dialog-content",children:t}),u("div",{"k-if":a,class:"kt-dialog-actions",children:a})]})});let I=E();x(()=>I=E(),[v]),document.addEventListener("keydown",L);const j=I.remove;return I.remove=()=>(h&&(clearTimeout(h),h=void 0),f&&(clearTimeout(f),f=void 0),L&&document.removeEventListener("keydown",L),document.body.style.overflow="",j.call(I)),qe(I,o,["on:close"]),I}function oi(e){const i=d(e.required??!1),o=d(e.error??!1),r=d(e.disabled??!1),t=d(e.focused??!1),a=d(e.filled??!1),n=d(e.htmlFor??""),l={class:m(()=>["mui-form-label",o.value?"mui-form-label-error":"",r.value?"mui-form-label-disabled":"",t.value?"mui-form-label-focused":"",a.value?"mui-form-label-filled":""].join(" "),[o,r,t,a])};n&&(l.for=n);const c="legend"===e.component?s("legend",{...l,children:[e.children,u("span",{"k-if":i,class:"mui-form-label-asterisk",children:"*"})]}):s("label",{...l,children:[e.children,u("span",{"k-if":i,class:"mui-form-label-asterisk",children:"*"})]});return qe(c,e),c}function ri(i){const r=d(i.class??""),t=d(e(i.style)),a=d(i.value??0),n=d(i.color??"primary"),l=d(i.variant??"indeterminate"),c=m(()=>`mui-linear-progress mui-linear-progress-${l.value} mui-linear-progress-${n.value} ${r.value}`,[r,n,l]),s=m(()=>"determinate"===l.value?`width: ${a.value}%`:"",[l,a]),p=u("div",{class:c,style:t,role:"progressbar","aria-valuenow":a,children:u("div",{class:"mui-linear-progress-bar",style:s})});return o(p,{value:{get:()=>a.value,set(e){a.value=e}}}),qe(p,i),p}Ve`
1312
1202
  /* FormLabel Component Styles - MUI-like */
1313
1203
 
1314
1204
  .mui-form-label {
@@ -1407,7 +1297,7 @@ legend.mui-form-label {
1407
1297
  }
1408
1298
  }
1409
1299
 
1410
- `,qe`
1300
+ `,Ve`
1411
1301
  /* LinearProgress Component Styles - Mimics MUI LinearProgress */
1412
1302
 
1413
1303
  .mui-linear-progress {
@@ -1508,7 +1398,7 @@ legend.mui-form-label {
1508
1398
  }
1509
1399
  }
1510
1400
 
1511
- `,qe`
1401
+ `,Ve`
1512
1402
  .mui-popover-root {
1513
1403
  position: fixed;
1514
1404
  inset: 0;
@@ -1566,7 +1456,7 @@ legend.mui-form-label {
1566
1456
  }
1567
1457
  }
1568
1458
 
1569
- `;const ai={vertical:"top",horizontal:"left"},ni={vertical:"top",horizontal:"left"},li=(e,i)=>"center"===i?e/2:"bottom"===i?e:0,ci=(e,i)=>"center"===i?e/2:"right"===i?e:0;function si(o){const r=o["on:close"]??i,t=d(o.class??""),s=d(e(o.style));let m=0,b=0;const g=()=>{m&&(clearTimeout(m),m=0),b&&(clearTimeout(b),b=0)};let x=0;const h=()=>{v.value&&(x&&clearTimeout(x),x=window.setTimeout(()=>{L(),x=0},0))},f=e=>{if(g(),j.setAttribute("aria-hidden",String(!e)),e)return I.style.display="block",I.classList.add("mui-popover-rendered"),void(m=window.setTimeout(()=>{m=0,v.value&&I.classList.add("mui-popover-open")},0));I.classList.remove("mui-popover-open"),b=window.setTimeout(()=>{b=0,v.value||(I.style.display="none",I.classList.remove("mui-popover-rendered"))},180)},v=d(o.open??!1,e=>{f(e),e&&h()}),k=d(o.anchorEl??null,h),w=d(o.anchorOrigin??ai,h),y=d(o.transformOrigin??ni,h),z=d(o.marginThreshold??16,h),C=d(o.elevation??8),$=p(()=>["mui-popover-paper",t.value].join(" ").trim(),[t]),S=p(()=>{const e=s.value;return`${e}${e?";":""}box-shadow:${(e=>{const i=a(0,n(24,e));return 0===i?"none":`0 ${a(1,l(i/2))}px ${l(3+1.4*i)}px rgba(0, 0, 0, 0.2), 0 ${a(1,l(i/3))}px ${l(2+.9*i)}px rgba(0, 0, 0, 0.14), 0 ${a(1,l(i/5))}px ${l(2+.6*i)}px rgba(0, 0, 0, 0.12)`})(C.value)}`},[s,C]),L=()=>{if(!v.value)return;const e=j.getBoundingClientRect(),i=k.value,o=i?i.getBoundingClientRect():{width:0,height:0,top:window.innerHeight/2,left:window.innerWidth/2},r=w.value??ai,t=y.value??ni;let n=o.top+li(o.height,r.vertical)-li(e.height,t.vertical),s=o.left+ci(o.width,r.horizontal)-ci(e.width,t.horizontal);const u=a(0,z.value);n=c(n,u,window.innerHeight-e.height-u),s=c(s,u,window.innerWidth-e.width-u),j.style.top=`${l(n)}px`,j.style.left=`${l(s)}px`},E=e=>{v.value&&(v.value=!1,r(e))},A=e=>{if(!v.value)return;const i=e.target;i&&(j.contains(i)||k.value?.contains(i)||E("backdropClick"))},T=e=>{"Escape"===e.key&&E("escapeKeyDown")},j=u("div",{class:$,style:S,role:"dialog","aria-hidden":!v.value,children:o.children}),I=u("div",{class:"mui-popover-root "+(v.value?"mui-popover-open mui-popover-rendered":""),style:v.value?"display: block;":"display: none;",children:j});document.addEventListener("mousedown",A),document.addEventListener("keydown",T),window.addEventListener("resize",h),window.addEventListener("scroll",h,!0),f(v.value),v.value&&h();const O=I.remove;return I.remove=()=>(g(),x&&clearTimeout(x),document.removeEventListener("mousedown",A),document.removeEventListener("keydown",T),window.removeEventListener("resize",h),window.removeEventListener("scroll",h,!0),O.call(I)),Ge(I,o,["on:close"]),I}qe`
1459
+ `;const ti={vertical:"top",horizontal:"left"},ai={vertical:"top",horizontal:"left"},ni=(e,i)=>"center"===i?e/2:"bottom"===i?e:0,li=(e,i)=>"center"===i?e/2:"right"===i?e:0;function ci(o){const r=o["on:close"]??i,t=d(o.class??""),s=d(e(o.style));let p=0,b=0;const g=()=>{p&&(clearTimeout(p),p=0),b&&(clearTimeout(b),b=0)};let x=0;const h=()=>{v.value&&(x&&clearTimeout(x),x=window.setTimeout(()=>{T(),x=0},0))},f=e=>{if(g(),I.setAttribute("aria-hidden",String(!e)),e)return j.style.display="block",j.classList.add("mui-popover-rendered"),void(p=window.setTimeout(()=>{p=0,v.value&&j.classList.add("mui-popover-open")},0));j.classList.remove("mui-popover-open"),b=window.setTimeout(()=>{b=0,v.value||(j.style.display="none",j.classList.remove("mui-popover-rendered"))},180)},v=d(o.open??!1,e=>{f(e),e&&h()}),k=d(o.anchorEl??null,h),y=d(o.anchorOrigin??ti,h),w=d(o.transformOrigin??ai,h),z=d(o.marginThreshold??16,h),C=d(o.elevation??8),$=m(()=>["mui-popover-paper",t.value].join(" ").trim(),[t]),S=m(()=>{const e=s.value;return`${e}${e?";":""}box-shadow:${(e=>{const i=a(0,n(24,e));return 0===i?"none":`0 ${a(1,l(i/2))}px ${l(3+1.4*i)}px rgba(0, 0, 0, 0.2), 0 ${a(1,l(i/3))}px ${l(2+.9*i)}px rgba(0, 0, 0, 0.14), 0 ${a(1,l(i/5))}px ${l(2+.6*i)}px rgba(0, 0, 0, 0.12)`})(C.value)}`},[s,C]),T=()=>{if(!v.value)return;const e=I.getBoundingClientRect(),i=k.value,o=i?i.getBoundingClientRect():{width:0,height:0,top:window.innerHeight/2,left:window.innerWidth/2},r=y.value??ti,t=w.value??ai;let n=o.top+ni(o.height,r.vertical)-ni(e.height,t.vertical),s=o.left+li(o.width,r.horizontal)-li(e.width,t.horizontal);const u=a(0,z.value);n=c(n,u,window.innerHeight-e.height-u),s=c(s,u,window.innerWidth-e.width-u),I.style.top=`${l(n)}px`,I.style.left=`${l(s)}px`},L=e=>{v.value&&(v.value=!1,r(e))},A=e=>{if(!v.value)return;const i=e.target;i&&(I.contains(i)||k.value?.contains(i)||L("backdropClick"))},E=e=>{"Escape"===e.key&&L("escapeKeyDown")},I=u("div",{class:$,style:S,role:"dialog","aria-hidden":!v.value,children:o.children}),j=u("div",{class:"mui-popover-root "+(v.value?"mui-popover-open mui-popover-rendered":""),style:v.value?"display: block;":"display: none;",children:I});document.addEventListener("mousedown",A),document.addEventListener("keydown",E),window.addEventListener("resize",h),window.addEventListener("scroll",h,!0),f(v.value),v.value&&h();const D=j.remove;return j.remove=()=>(g(),x&&clearTimeout(x),document.removeEventListener("mousedown",A),document.removeEventListener("keydown",E),window.removeEventListener("resize",h),window.removeEventListener("scroll",h,!0),D.call(j)),qe(j,o,["on:close"]),j}Ve`
1570
1460
  .mui-menu-paper {
1571
1461
  min-width: 180px;
1572
1462
  padding: 8px 0;
@@ -1651,7 +1541,7 @@ legend.mui-form-label {
1651
1541
  }
1652
1542
  }
1653
1543
 
1654
- `;const ui={vertical:"bottom",horizontal:"left"},di={vertical:"top",horizontal:"left"},pi=e=>null!==e&&"object"==typeof e&&"value"in e&&"label"in e;function mi(o){const r=o["on:close"]??i,t=o["on:select"]??i,a=d(o.class??""),n=d(e(o.style)),l=d(o.open??!1),c=d(o.anchorEl??null),s=d(o.options??[]),b=d(o.anchorOrigin??ui),x=d(o.transformOrigin??di),h=d(o.marginThreshold??16),f=d(o.elevation??8),v=d(o.autoClose??!0),k=d(o.disableAutoFocusItem??!1),w=m(),y=[];let z=0;const C=()=>{l.value&&!k.value&&(z&&clearTimeout(z),z=window.setTimeout(()=>{z=0,E()},0))},$=a.toComputed(e=>`mui-menu-paper ${e}`),S=e=>{l.value=!1,r(e)},L=e=>{const i=e.currentTarget;if(!i)return;const o=Number(i.dataset.index??"-1"),r=s.value[o];r&&pi(r)&&!r.disabled&&(t(r.value,r),v.value&&S("itemClick"))},E=()=>{for(let e=0;e<y.length;e++)if(!y[e].classList.contains("mui-menu-item-disabled"))return void y[e].focus();w.value?.focus()},A=(e,i)=>{const o=y.length;if(o)for(let r=0;r<o;r++){const t=y[(e+i*(r+1)+o)%o];if(!t.classList.contains("mui-menu-item-disabled"))return void t.focus()}},T=p(()=>(y.length=0,s.value.map((e,i)=>{if(!pi(e))return u("li",{class:"mui-menu-static",role:"presentation",children:e});const o=u("li",{role:"menuitem",tabIndex:e.disabled?-1:0,class:`mui-menu-item ${e.disabled?"mui-menu-item-disabled":""} ${e.selected?"mui-menu-item-selected":""}`,"data-index":String(i),"aria-disabled":e.disabled?"true":"false","on:click":L,children:e.label});return y.push(o),o})),[s]),j=u(si,{open:l,anchorEl:c,anchorOrigin:b,transformOrigin:x,marginThreshold:h,elevation:f,class:$,style:n,"on:close":e=>{S(e)},children:u("ul",{ref:w,class:"mui-menu-list",role:"menu",tabIndex:-1,"on:keydown":e=>{const i=document.activeElement,o=y.findIndex(e=>e===i);return"Escape"===e.key?(e.preventDefault(),void S("escapeKeyDown")):"ArrowDown"===e.key?(e.preventDefault(),void A(o<0?-1:o,1)):"ArrowUp"===e.key?(e.preventDefault(),void A(o<0?0:o,-1)):"Home"===e.key?(e.preventDefault(),void A(-1,1)):"End"===e.key?(e.preventDefault(),void A(0,-1)):void(("Enter"===e.key||" "===e.key)&&o>=0&&(e.preventDefault(),y[o].click()))},children:u(g,{list:T})})});l.addOnChange(e=>{e&&C()}),s.addOnChange(()=>{l.value&&C()}),C();const I=j.remove;return j.remove=()=>(z&&(clearTimeout(z),z=0),I.call(j)),Ge(j,o,["on:close","on:select"]),j}qe`
1544
+ `;const si={vertical:"bottom",horizontal:"left"},ui={vertical:"top",horizontal:"left"},di=e=>null!==e&&"object"==typeof e&&"value"in e&&"label"in e;function mi(o){const r=o["on:close"]??i,t=o["on:select"]??i,a=d(o.class??""),n=d(e(o.style)),l=d(o.open??!1),c=d(o.anchorEl??null),s=d(o.options??[]),b=d(o.anchorOrigin??si),x=d(o.transformOrigin??ui),h=d(o.marginThreshold??16),f=d(o.elevation??8),v=d(o.autoClose??!0),k=d(o.disableAutoFocusItem??!1),y=p(),w=[];let z=0;const C=()=>{l.value&&!k.value&&(z&&clearTimeout(z),z=window.setTimeout(()=>{z=0,L()},0))},$=a.toComputed(e=>`mui-menu-paper ${e}`),S=e=>{l.value=!1,r(e)},T=e=>{const i=e.currentTarget;if(!i)return;const o=Number(i.dataset.index??"-1"),r=s.value[o];r&&di(r)&&!r.disabled&&(t(r.value,r),v.value&&S("itemClick"))},L=()=>{for(let e=0;e<w.length;e++)if(!w[e].classList.contains("mui-menu-item-disabled"))return void w[e].focus();y.value?.focus()},A=(e,i)=>{const o=w.length;if(o)for(let r=0;r<o;r++){const t=w[(e+i*(r+1)+o)%o];if(!t.classList.contains("mui-menu-item-disabled"))return void t.focus()}},E=m(()=>(w.length=0,s.value.map((e,i)=>{if(!di(e))return u("li",{class:"mui-menu-static",role:"presentation",children:e});const o=u("li",{role:"menuitem",tabIndex:e.disabled?-1:0,class:`mui-menu-item ${e.disabled?"mui-menu-item-disabled":""} ${e.selected?"mui-menu-item-selected":""}`,"data-index":String(i),"aria-disabled":e.disabled?"true":"false","on:click":T,children:e.label});return w.push(o),o})),[s]),I=u(ci,{open:l,anchorEl:c,anchorOrigin:b,transformOrigin:x,marginThreshold:h,elevation:f,class:$,style:n,"on:close":e=>{S(e)},children:u("ul",{ref:y,class:"mui-menu-list",role:"menu",tabIndex:-1,"on:keydown":e=>{const i=document.activeElement,o=w.findIndex(e=>e===i);return"Escape"===e.key?(e.preventDefault(),void S("escapeKeyDown")):"ArrowDown"===e.key?(e.preventDefault(),void A(o<0?-1:o,1)):"ArrowUp"===e.key?(e.preventDefault(),void A(o<0?0:o,-1)):"Home"===e.key?(e.preventDefault(),void A(-1,1)):"End"===e.key?(e.preventDefault(),void A(0,-1)):void(("Enter"===e.key||" "===e.key)&&o>=0&&(e.preventDefault(),w[o].click()))},children:u(g,{list:E})})});l.addOnChange(e=>{e&&C()}),s.addOnChange(()=>{l.value&&C()}),C();const j=I.remove;return I.remove=()=>(z&&(clearTimeout(z),z=0),j.call(I)),qe(I,o,["on:close","on:select"]),I}Ve`
1655
1545
  .mui-modal-dialog {
1656
1546
  max-width: 420px;
1657
1547
  }
@@ -1723,7 +1613,7 @@ legend.mui-form-label {
1723
1613
  }
1724
1614
  }
1725
1615
 
1726
- `;const bi=e=>["mui-modal-dialog","string"==typeof e?e:""].join(" ").trim(),gi=(e,i)=>{document.body.appendChild(e),i&&setTimeout(()=>i.focus(),0)},xi=e=>{setTimeout(()=>e.remove(),240)},hi=e=>{const i=document.createDocumentFragment();for(let o=0;o<e.length;o++)i.appendChild(e[o]);const o=u("div",{class:"mui-modal-actions"});return o.appendChild(i),o},fi=e=>{const i=u("div",{class:"mui-modal-content"});return i.appendChild((e=>e instanceof Node?e:u("p",{class:"mui-modal-message",children:e}))(e)),i};function vi(e,i={}){return new Promise(o=>{const r=m(!0);let t=!1;const a=()=>{t||(t=!0,r.value=!1,o(),xi(l))},n=u(_e,{variant:"contained",size:"small","on:click":a,children:i.confirmText??"OK"}),l=u(oi,{open:r,title:i.title??"提醒",size:i.size??"xs",fullWidth:i.fullWidth??!0,class:bi(i.class),style:i.style,actions:hi([n]),"on:close":a,children:fi(e)});gi(l,n)})}function ki(e,i={}){return new Promise(o=>{const r=m(!0);let t=!1;const a=e=>{t||(t=!0,r.value=!1,o(e),xi(c))},n=u(_e,{variant:"text",size:"small","on:click":()=>a(!1),children:i.cancelText??"取消"}),l=u(_e,{variant:"contained",size:"small","on:click":()=>a(!0),children:i.confirmText??"确定"}),c=u(oi,{open:r,title:i.title??"请确认",size:i.size??"xs",fullWidth:i.fullWidth??!0,class:bi(i.class),style:i.style,actions:hi([n,l]),"on:close":()=>a(!1),children:fi(e)});gi(c,l)})}function wi(e,i={}){return new Promise(o=>{const r=m(!0);let t=!1;const a=u("input",{class:"mui-modal-prompt-input",type:i.inputType??"text",value:i.defaultValue??"",placeholder:i.placeholder??""}),n=u("p",{class:"mui-modal-prompt-error",style:"display:none;"}),l=e=>{t||(t=!0,r.value=!1,o(e),xi(b))},c=()=>{(()=>{if(!i.validator)return!0;const e=i.validator(a.value);return!0===e||(n.style.display="",n.textContent="string"==typeof e?e:"输入不合法",!1)})()&&l(a.value)};a.addEventListener("input",()=>{n.style.display="none",n.textContent=""}),a.addEventListener("keydown",e=>{"Enter"===e.key&&(e.preventDefault(),c())});const s=u(_e,{variant:"text",size:"small","on:click":()=>l(null),children:i.cancelText??"取消"}),d=u(_e,{variant:"contained",size:"small","on:click":c,children:i.confirmText??"确定"}),p=fi(e);p.appendChild(a),p.appendChild(n);const b=u(oi,{open:r,title:i.title??"请输入",size:i.size??"xs",fullWidth:i.fullWidth??!0,class:bi(i.class),style:i.style,actions:hi([s,d]),"on:close":()=>l(null),children:p});gi(b,a),a.select()})}const yi={alert:vi,confirm:ki,prompt:wi},zi=vi,Ci=ki,$i=wi;function Si(o){const r=o["on:input"]??i,t=o["on:change"]??i,a=o["on:blur"]??i,n=o["on:focus"]??i,l=m(!1),c=e=>""!==e&&null!=e,g=()=>r(y.value),x=()=>t(y.value),f=()=>{l.value=!0,n(O.value)},v=()=>{l.value=!1,a(O.value)},k=h(o.type??"text"),w=o.multiline,y=b(o,o.value??""),z=d(o.label??""),C=d(o.disabled??!1),$=d(o.readOnly??!1),S=d(o.required??!1),L=d(o.error??!1),E=d(o.helperText??""),A=d(o.fullWidth??!1),T=d(o.rows??3),j=d(o.size??"medium"),I=d(o.placeholder??"").toComputed(e=>!z.value||l.value||c(y.value)?e:"",[z,l,y]),O=w?u("textarea",{"k-model":y,class:"mui-textfield-input",placeholder:I,disabled:C,readOnly:$,required:S,rows:T,"on:input":g,"on:change":x,"on:focus":f,"on:blur":v}):u("input",{"k-model":y,type:k,class:"mui-textfield-input",placeholder:I,disabled:C,readOnly:$,required:S,"on:input":g,"on:change":x,"on:focus":f,"on:blur":v});y.addOnChange(e=>O.value=e);const D=d(e(o.style)),R=d(o.class??""),M=p(()=>["mui-textfield-root",`mui-textfield-size-${j.value}`,l.value?"mui-textfield-focused":"",L.value?"mui-textfield-error":"",C.value?"mui-textfield-disabled":"",A.value?"mui-textfield-fullwidth":"",z.value&&c(y.value)?"mui-textfield-has-value":"",z.value?"":"mui-textfield-no-label",R.value?R.value:""].join(" "),[j,L,C,A,z,l,y,R]),W=p(()=>z.value?s("label",{class:"mui-textfield-label",children:[z,u("span",{"k-if":S,class:"mui-textfield-required",children:"*"})]}):"",[z,S]),H=p(()=>z.value?u("legend",{class:"mui-textfield-legend",children:s("span",{children:[z,u("span",{"k-if":S,children:"*"})]})}):"",[z,S]),P=s("div",{class:M,style:D,children:[s("div",{class:"mui-textfield-wrapper","on:mousedown":e=>{if(C.value)return;const i=e.target;i&&i!==O&&setTimeout(()=>O.focus(),0)},children:[W,u("div",{class:"mui-textfield-input-wrapper",children:O}),u("fieldset",{class:"mui-textfield-fieldset",children:H})]}),u("p",{class:"mui-textfield-helper-text",children:E})]});return Ge(P,o,["on:input","on:change","on:focus","on:blur"]),P}qe`
1616
+ `;const pi=e=>["mui-modal-dialog","string"==typeof e?e:""].join(" ").trim(),bi=(e,i)=>{document.body.appendChild(e),i&&setTimeout(()=>i.focus(),0)},gi=e=>{setTimeout(()=>e.remove(),240)},xi=e=>{const i=document.createDocumentFragment();for(let o=0;o<e.length;o++)i.appendChild(e[o]);const o=u("div",{class:"mui-modal-actions"});return o.appendChild(i),o},hi=e=>{const i=u("div",{class:"mui-modal-content"});return i.appendChild((e=>e instanceof Node?e:u("p",{class:"mui-modal-message",children:e}))(e)),i};function fi(e,i={}){return new Promise(o=>{const r=p(!0);let t=!1;const a=()=>{t||(t=!0,r.value=!1,o(),gi(l))},n=u(_e,{variant:"contained",size:"small","on:click":a,children:i.confirmText??"OK"}),l=u(ii,{open:r,title:i.title??"提醒",size:i.size??"xs",fullWidth:i.fullWidth??!0,class:pi(i.class),style:i.style,actions:xi([n]),"on:close":a,children:hi(e)});bi(l,n)})}function vi(e,i={}){return new Promise(o=>{const r=p(!0);let t=!1;const a=e=>{t||(t=!0,r.value=!1,o(e),gi(c))},n=u(_e,{variant:"text",size:"small","on:click":()=>a(!1),children:i.cancelText??"取消"}),l=u(_e,{variant:"contained",size:"small","on:click":()=>a(!0),children:i.confirmText??"确定"}),c=u(ii,{open:r,title:i.title??"请确认",size:i.size??"xs",fullWidth:i.fullWidth??!0,class:pi(i.class),style:i.style,actions:xi([n,l]),"on:close":()=>a(!1),children:hi(e)});bi(c,l)})}function ki(e,i={}){return new Promise(o=>{const r=p(!0);let t=!1;const a=u("input",{class:"mui-modal-prompt-input",type:i.inputType??"text",value:i.defaultValue??"",placeholder:i.placeholder??""}),n=u("p",{class:"mui-modal-prompt-error",style:"display:none;"}),l=e=>{t||(t=!0,r.value=!1,o(e),gi(b))},c=()=>{(()=>{if(!i.validator)return!0;const e=i.validator(a.value);return!0===e||(n.style.display="",n.textContent="string"==typeof e?e:"输入不合法",!1)})()&&l(a.value)};a.addEventListener("input",()=>{n.style.display="none",n.textContent=""}),a.addEventListener("keydown",e=>{"Enter"===e.key&&(e.preventDefault(),c())});const s=u(_e,{variant:"text",size:"small","on:click":()=>l(null),children:i.cancelText??"取消"}),d=u(_e,{variant:"contained",size:"small","on:click":c,children:i.confirmText??"确定"}),m=hi(e);m.appendChild(a),m.appendChild(n);const b=u(ii,{open:r,title:i.title??"请输入",size:i.size??"xs",fullWidth:i.fullWidth??!0,class:pi(i.class),style:i.style,actions:xi([s,d]),"on:close":()=>l(null),children:m});bi(b,a),a.select()})}const yi={alert:fi,confirm:vi,prompt:ki},wi=fi,zi=vi,Ci=ki;function $i(o){const r=o["on:input"]??i,t=o["on:change"]??i,a=o["on:blur"]??i,n=o["on:focus"]??i,l=p(!1),c=e=>""!==e&&null!=e,g=()=>r(w.value),x=()=>t(w.value),f=()=>{l.value=!0,n(D.value)},v=()=>{l.value=!1,a(D.value)},k=h(o.type??"text"),y=o.multiline,w=b(o,o.value??""),z=d(o.label??""),C=d(o.disabled??!1),$=d(o.readOnly??!1),S=d(o.required??!1),T=d(o.error??!1),L=d(o.helperText??""),A=d(o.fullWidth??!1),E=d(o.rows??3),I=d(o.size??"medium"),j=d(o.placeholder??"").toComputed(e=>!z.value||l.value||c(w.value)?e:"",[z,l,w]),D=y?u("textarea",{"k-model":w,class:"mui-textfield-input",placeholder:j,disabled:C,readOnly:$,required:S,rows:E,"on:input":g,"on:change":x,"on:focus":f,"on:blur":v}):u("input",{"k-model":w,type:k,class:"mui-textfield-input",placeholder:j,disabled:C,readOnly:$,required:S,"on:input":g,"on:change":x,"on:focus":f,"on:blur":v});w.addOnChange(e=>D.value=e);const M=d(e(o.style)),O=d(o.class??""),R=m(()=>["mui-textfield-root",`mui-textfield-size-${I.value}`,l.value?"mui-textfield-focused":"",T.value?"mui-textfield-error":"",C.value?"mui-textfield-disabled":"",A.value?"mui-textfield-fullwidth":"",z.value&&c(w.value)?"mui-textfield-has-value":"",z.value?"":"mui-textfield-no-label",O.value?O.value:""].join(" "),[I,T,C,A,z,l,w,O]),H=m(()=>z.value?s("label",{class:"mui-textfield-label",children:[z,u("span",{"k-if":S,class:"mui-textfield-required",children:"*"})]}):"",[z,S]),W=m(()=>z.value?u("legend",{class:"mui-textfield-legend",children:s("span",{children:[z,u("span",{"k-if":S,children:"*"})]})}):"",[z,S]),P=s("div",{class:R,style:M,children:[s("div",{class:"mui-textfield-wrapper","on:mousedown":e=>{if(C.value)return;const i=e.target;i&&i!==D&&setTimeout(()=>D.focus(),0)},children:[H,u("div",{class:"mui-textfield-input-wrapper",children:D}),u("fieldset",{class:"mui-textfield-fieldset",children:W})]}),u("p",{class:"mui-textfield-helper-text",children:L})]});return qe(P,o,["on:input","on:change","on:focus","on:blur"]),P}Ve`
1727
1617
  /* TextField Component Styles - MUI-like */
1728
1618
 
1729
1619
  .mui-textfield-root {
@@ -2021,7 +1911,7 @@ textarea.mui-textfield-input {
2021
1911
  }
2022
1912
  }
2023
1913
 
2024
- `,qe`
1914
+ `,Ve`
2025
1915
  /* Radio Component Styles - MUI-like */
2026
1916
 
2027
1917
  .mui-radio-wrapper {
@@ -2227,7 +2117,7 @@ textarea.mui-textfield-input {
2227
2117
  }
2228
2118
  }
2229
2119
 
2230
- `;const Li=(()=>{const e=u("span",{class:"mui-radio-icon-unchecked"});return e.innerHTML=' <svg viewBox="0 0 24 24">\n <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path>\n </svg>',e})(),Ei=(()=>{const e=u("span",{class:"mui-radio-icon-checked"});return e.innerHTML='<svg viewBox="0 0 24 24">\n <path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path>\n </svg>',e})(),Ai=()=>Ei.cloneNode(!0);function Ti(r){const t=r["on:change"]??i,a=e=>{h.style.display=e?"none":"",f.style.display=e?"":"none"};let{checked:n=!1,label:l="",size:c="small",disabled:p=!1,color:m="primary"}=r;const b=d(r.value??""),g=d(r.disabled??!1),x=u("input",{type:"radio",class:"mui-radio-input",checked:n,value:b,disabled:g,"on:change":()=>{g.value||(n=x.checked,a(n),t(n,b.value))}}),h=Li.cloneNode(!0),f=Ai();a(n);const v=s("label",{class:`mui-radio-wrapper ${r.class??""} mui-radio-size-${c} ${p?"mui-radio-disabled":""} mui-radio-color-${m}`,style:e(r.style),children:[x,s("span",{class:"mui-radio-icon",children:[h,f]}),u("span",{class:"mui-radio-label",children:l})]});return o(v,{value:{get:()=>b.value},checked:{get:()=>n,set(e){n=e,x.checked=n,a(n)}}}),Ge(v,r,["on:change"]),v}function ji(r){const t=d(r.class??""),a=d(e(r.style)),n=d(r.value??""),l=d(r.size??"small"),c=d(r.row??!1),s=p(()=>`mui-radio-group ${c.value?"mui-radio-group-row":""} ${t.value}`,[t,c]),m=r["on:change"]??i,b=(e,i)=>{e&&(n.value=i,m(i)),x.value.forEach(e=>e.checked=e.value===i)},x=d(r.options).toComputed(e=>e.map(e=>{e.size=l.value,e.checked=n.value===e.value;const i=e["on:change"];return e["on:change"]=i?(e,o)=>{i(e,o),b(e,o)}:b,Ti(e)})),h=u("div",{class:s,style:a,role:"radiogroup",children:u(g,{list:x})});return o(h,{value:{get:()=>n.value,set(e){n.value=e,x.value.forEach(e=>e.checked=e.value===n.value)}}}),Ge(h,r,["on:change"]),h}qe`
2120
+ `;const Si=(()=>{const e=u("span",{class:"mui-radio-icon-unchecked"});return e.innerHTML=' <svg viewBox="0 0 24 24">\n <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path>\n </svg>',e})(),Ti=(()=>{const e=u("span",{class:"mui-radio-icon-checked"});return e.innerHTML='<svg viewBox="0 0 24 24">\n <path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path>\n </svg>',e})(),Li=()=>Ti.cloneNode(!0);function Ai(r){const t=r["on:change"]??i,a=e=>{h.style.display=e?"none":"",f.style.display=e?"":"none"};let{checked:n=!1,label:l="",size:c="small",disabled:m=!1,color:p="primary"}=r;const b=d(r.value??""),g=d(r.disabled??!1),x=u("input",{type:"radio",class:"mui-radio-input",checked:n,value:b,disabled:g,"on:change":()=>{g.value||(n=x.checked,a(n),t(n,b.value))}}),h=Si.cloneNode(!0),f=Li();a(n);const v=s("label",{class:`mui-radio-wrapper ${r.class??""} mui-radio-size-${c} ${m?"mui-radio-disabled":""} mui-radio-color-${p}`,style:e(r.style),children:[x,s("span",{class:"mui-radio-icon",children:[h,f]}),u("span",{class:"mui-radio-label",children:l})]});return o(v,{value:{get:()=>b.value},checked:{get:()=>n,set(e){n=e,x.checked=n,a(n)}}}),qe(v,r,["on:change"]),v}function Ei(r){const t=d(r.class??""),a=d(e(r.style)),n=d(r.value??""),l=d(r.size??"small"),c=d(r.row??!1),s=m(()=>`mui-radio-group ${c.value?"mui-radio-group-row":""} ${t.value}`,[t,c]),p=r["on:change"]??i,b=(e,i)=>{e&&(n.value=i,p(i)),x.value.forEach(e=>e.checked=e.value===i)},x=d(r.options).toComputed(e=>e.map(e=>{e.size=l.value,e.checked=n.value===e.value;const i=e["on:change"];return e["on:change"]=i?(e,o)=>{i(e,o),b(e,o)}:b,Ai(e)})),h=u("div",{class:s,style:a,role:"radiogroup",children:u(g,{list:x})});return o(h,{value:{get:()=>n.value,set(e){n.value=e,x.value.forEach(e=>e.checked=e.value===n.value)}}}),qe(h,r,["on:change"]),h}Ve`
2231
2121
  /* Select Component Styles - MUI-like */
2232
2122
 
2233
2123
  .mui-select-wrapper {
@@ -2537,7 +2427,7 @@ textarea.mui-textfield-input {
2537
2427
  }
2538
2428
  }
2539
2429
 
2540
- `;const Ii=(()=>{const e=u("div",{});return e.innerHTML='<svg class="mui-select-icon" focusable="false" aria-hidden="true" viewBox="0 0 24 24" width="24" height="24">\n <path d="M7 10l5 5 5-5Z" fill="currentColor"></path>\n </svg>',e.firstElementChild})();function Oi(o){const r=o["on:change"]??i,t=m(!1),a=m(!1,e=>{e?(L.value.style.display="block",L.value.offsetHeight):setTimeout(()=>{e||(L.value.style.display="none")},200),L.value.classList.toggle("mui-select-menu-open",e),E.classList.toggle("mui-select-open",e)}),n=d(o.placeholder??""),l=d(o.label??""),c=d(o.options,e=>{if(!e.find(e=>e?.value===x.value)){const e=x.value;x.value="",r(x.value,e)}}),g=d(o.disabled??!1,e=>E.classList.toggle("mui-select-disabled",e)),x=b(o,o.value??""),h=d(e(o.style)),f=d(o.class??""),v=d(o.size??"medium"),k=d(o.fullWidth??!1),w=p(()=>`mui-select-wrapper mui-select-size-${v.value} ${k.value?"mui-select-fullWidth":""} ${f.value} ${g.value?"mui-select-disabled":""}`,[v,k,f,g]),y=p(()=>l.value?u("label",{class:"mui-select-label "+(x.value||t.value||n.value?"focused":""),children:l}):"",[l,x,t,n]),z=e=>{const i=e.currentTarget.dataset.value;x.value=i,r(i),a.value=!1},C=e=>{E.contains(e.target)||(a.value=!1)},$=u("span",{class:"mui-select-placeholder",children:n.value||" "}),S=p(()=>{const e=c.value.find(e=>e?.value===x.value);return u("div",{class:"mui-select-display",children:e?.label??$})},[x]),L=p(()=>u("div",{class:"mui-select-menu",style:"display: none;",children:c.value.map(e=>{if(null!==e&&"object"==typeof e&&"value"in e&&"label"in e){return u("div",{class:"mui-select-option "+(e.value===x.value?"selected":""),"data-value":e.value,"on:click":z,children:e.label})}return e})}),[c,x]),E=s("div",{class:w,style:h,children:[y,s("div",{class:"mui-select-control mui-select-outlined","on:click":()=>{g.value||(a.value=!a.value)},"on:focus":()=>t.value=!0,"on:blur":()=>t.value=!1,tabIndex:g.value?-1:0,children:[S,u("input",{type:"hidden","k-model":x}),u("fieldset",{class:"mui-select-fieldset",children:u("legend",{class:"mui-select-legend",children:u("span",{children:l})})}),Ii.cloneNode(!0)]}),L]});return L.notify(),setTimeout(()=>{document.removeEventListener("click",C),document.addEventListener("click",C)},0),Ge(E,o),E}function Di(i){const o=d(i.class??""),r=d(e(i.style)),t=d(i.variant??"elevation"),a=d(i.elevation??1),n=d(i.square??!1),l=d(i.raised??!1),c=p(()=>["mui-card",`mui-card-${t.value}`,"elevation"===t.value?`mui-card-elevation-${Math.min(24,Math.max(0,a.value))}`:"",n.value?"mui-card-square":"",l.value?"mui-card-raised":"",o.value].join(" "),[t,a,n,l,o]),s=u("div",{class:c,style:r,"on:click":i["on:click"],children:i.children});return Ge(s,i),s}function Ri(o){const r=o["on:change"]??i,t=d(o.label??""),a=d(o.value??""),n=d(o.color??"primary"),l=d(o.size??"medium"),c=d(o.disabled??!1,e=>{f.disabled=e,w.classList.toggle("mui-switch-disabled",e)}),m=b(o,!1);m.addOnChange(e=>{f.checked=e,v.classList.toggle("mui-switch-track-checked",e),k.classList.toggle("mui-switch-thumb-checked",e)});const g=d(e(o.style)),x=d(o.class??""),h=p(()=>`mui-switch-wrapper mui-switch-size-${l.value} ${c.value?"mui-switch-disabled":""} mui-switch-color-${n.value} ${x.value}`,[n,c,l,x]),f=u("input",{type:"checkbox",class:"mui-switch-input",checked:m.value,value:a,disabled:c,"on:change":()=>{c.value||(m.value=f.checked,r(m.value,a.value))}}),v=u("span",{class:"mui-switch-track"}),k=u("span",{class:"mui-switch-thumb"}),w=s("label",{class:h,style:g,children:[f,s("span",{class:"mui-switch-base",children:[v,k]}),u("span",{"k-if":t,class:"mui-switch-label",children:t})]});return v.classList.toggle("mui-switch-track-checked",m.value),k.classList.toggle("mui-switch-thumb-checked",m.value),w}qe`
2430
+ `;const Ii=(()=>{const e=u("div",{});return e.innerHTML='<svg class="mui-select-icon" focusable="false" aria-hidden="true" viewBox="0 0 24 24" width="24" height="24">\n <path d="M7 10l5 5 5-5Z" fill="currentColor"></path>\n </svg>',e.firstElementChild})();function ji(o){const r=o["on:change"]??i,t=p(!1),a=p(!1,e=>{e?(T.value.style.display="block",T.value.offsetHeight):setTimeout(()=>{e||(T.value.style.display="none")},200),T.value.classList.toggle("mui-select-menu-open",e),L.classList.toggle("mui-select-open",e)}),n=d(o.placeholder??""),l=d(o.label??""),c=d(o.options,e=>{if(!e.find(e=>e?.value===x.value)){const e=x.value;x.value="",r(x.value,e)}}),g=d(o.disabled??!1,e=>L.classList.toggle("mui-select-disabled",e)),x=b(o,o.value??""),h=d(e(o.style)),f=d(o.class??""),v=d(o.size??"medium"),k=d(o.fullWidth??!1),y=m(()=>`mui-select-wrapper mui-select-size-${v.value} ${k.value?"mui-select-fullWidth":""} ${f.value} ${g.value?"mui-select-disabled":""}`,[v,k,f,g]),w=m(()=>l.value?u("label",{class:"mui-select-label "+(x.value||t.value||n.value?"focused":""),children:l}):"",[l,x,t,n]),z=e=>{const i=e.currentTarget.dataset.value;x.value=i,r(i),a.value=!1},C=e=>{L.contains(e.target)||(a.value=!1)},$=u("span",{class:"mui-select-placeholder",children:n.value||" "}),S=m(()=>{const e=c.value.find(e=>e?.value===x.value);return u("div",{class:"mui-select-display",children:e?.label??$})},[x]),T=m(()=>u("div",{class:"mui-select-menu",style:"display: none;",children:c.value.map(e=>{if(null!==e&&"object"==typeof e&&"value"in e&&"label"in e){return u("div",{class:"mui-select-option "+(e.value===x.value?"selected":""),"data-value":e.value,"on:click":z,children:e.label})}return e})}),[c,x]),L=s("div",{class:y,style:h,children:[w,s("div",{class:"mui-select-control mui-select-outlined","on:click":()=>{g.value||(a.value=!a.value)},"on:focus":()=>t.value=!0,"on:blur":()=>t.value=!1,tabIndex:g.value?-1:0,children:[S,u("input",{type:"hidden","k-model":x}),u("fieldset",{class:"mui-select-fieldset",children:u("legend",{class:"mui-select-legend",children:u("span",{children:l})})}),Ii.cloneNode(!0)]}),T]});return T.notify(),setTimeout(()=>{document.removeEventListener("click",C),document.addEventListener("click",C)},0),qe(L,o),L}function Di(i){const o=d(i.class??""),r=d(e(i.style)),t=d(i.variant??"elevation"),a=d(i.elevation??1),n=d(i.square??!1),l=d(i.raised??!1),c=m(()=>["mui-card",`mui-card-${t.value}`,"elevation"===t.value?`mui-card-elevation-${Math.min(24,Math.max(0,a.value))}`:"",n.value?"mui-card-square":"",l.value?"mui-card-raised":"",o.value].join(" "),[t,a,n,l,o]),s=u("div",{class:c,style:r,"on:click":i["on:click"],children:i.children});return qe(s,i),s}function Mi(o){const r=o["on:change"]??i,t=d(o.label??""),a=d(o.value??""),n=d(o.color??"primary"),l=d(o.size??"medium"),c=d(o.disabled??!1,e=>{f.disabled=e,y.classList.toggle("mui-switch-disabled",e)}),p=b(o,!1);p.addOnChange(e=>{f.checked=e,v.classList.toggle("mui-switch-track-checked",e),k.classList.toggle("mui-switch-thumb-checked",e)});const g=d(e(o.style)),x=d(o.class??""),h=m(()=>`mui-switch-wrapper mui-switch-size-${l.value} ${c.value?"mui-switch-disabled":""} mui-switch-color-${n.value} ${x.value}`,[n,c,l,x]),f=u("input",{type:"checkbox",class:"mui-switch-input",checked:p.value,value:a,disabled:c,"on:change":()=>{c.value||(p.value=f.checked,r(p.value,a.value))}}),v=u("span",{class:"mui-switch-track"}),k=u("span",{class:"mui-switch-thumb"}),y=s("label",{class:h,style:g,children:[f,s("span",{class:"mui-switch-base",children:[v,k]}),u("span",{"k-if":t,class:"mui-switch-label",children:t})]});return v.classList.toggle("mui-switch-track-checked",p.value),k.classList.toggle("mui-switch-thumb-checked",p.value),y}Ve`
2541
2431
  /* Card Component Styles - MUI-like */
2542
2432
 
2543
2433
  .mui-card {
@@ -2719,7 +2609,7 @@ textarea.mui-textfield-input {
2719
2609
  background-color: #2d2d2d;
2720
2610
  }
2721
2611
  }
2722
- `,qe`
2612
+ `,Ve`
2723
2613
  /* Switch Component Styles - MUI-like */
2724
2614
 
2725
2615
  .mui-switch-wrapper {
@@ -2930,7 +2820,7 @@ textarea.mui-textfield-input {
2930
2820
  color: rgba(255, 255, 255, 0.87);
2931
2821
  }
2932
2822
  }
2933
- `,qe`
2823
+ `,Ve`
2934
2824
  .mui-pill {
2935
2825
  box-sizing: border-box;
2936
2826
  display: inline-flex;
@@ -3114,7 +3004,7 @@ textarea.mui-textfield-input {
3114
3004
  }
3115
3005
  }
3116
3006
 
3117
- `;const Mi=u("span",{class:"mui-pill-delete-mark","aria-hidden":"true",children:"×"});function Wi(o){const r=o["on:click"]??i,t=o["on:delete"],a=d(o.label??""),n=d(o.color??"default"),l=d(o.variant??"filled"),c=d(o.size??"medium"),m=d(o.clickable??!!o["on:click"]),b=d(o.disabled??!1),g=d(o.autoRemoveOnDelete??!0),x=d(o.class??""),h=d(e(o.style)),f=p(()=>["mui-pill",`mui-pill-color-${n.value}`,`mui-pill-variant-${l.value}`,`mui-pill-size-${c.value}`,m.value?"mui-pill-clickable":"",b.value?"mui-pill-disabled":"",x.value].join(" "),[n,l,c,m,b,x]),v=s("span",{class:f,style:h,role:m.toComputed(e=>e?"button":"presentation"),tabIndex:p(()=>m.value&&!b.value?0:void 0,[m,b]),"on:click":e=>{m.value&&!b.value&&r(e)},"on:keydown":e=>{m.value&&!b.value&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r(e)))},children:[u("span",{"k-if":o.icon,class:"mui-pill-icon",children:o.icon}),u("span",{class:"mui-pill-label",children:o.children??a}),u("button",{"k-if":t,class:"mui-pill-delete",type:"button",tabIndex:-1,"aria-label":"Delete","on:click":e=>{if(e.stopPropagation(),b.value||!t)return;const i=t(e);g.value&&!1!==i&&v.remove()},children:o.deleteIcon??Mi})]});return Ge(v,o,["on:click","on:delete"]),v}qe`
3007
+ `;const Oi=u("span",{class:"mui-pill-delete-mark","aria-hidden":"true",children:"×"});function Ri(o){const r=o["on:click"]??i,t=o["on:delete"],a=d(o.label??""),n=d(o.color??"default"),l=d(o.variant??"filled"),c=d(o.size??"medium"),p=d(o.clickable??!!o["on:click"]),b=d(o.disabled??!1),g=d(o.autoRemoveOnDelete??!0),x=d(o.class??""),h=d(e(o.style)),f=m(()=>["mui-pill",`mui-pill-color-${n.value}`,`mui-pill-variant-${l.value}`,`mui-pill-size-${c.value}`,p.value?"mui-pill-clickable":"",b.value?"mui-pill-disabled":"",x.value].join(" "),[n,l,c,p,b,x]),v=s("span",{class:f,style:h,role:p.toComputed(e=>e?"button":"presentation"),tabIndex:m(()=>p.value&&!b.value?0:void 0,[p,b]),"on:click":e=>{p.value&&!b.value&&r(e)},"on:keydown":e=>{p.value&&!b.value&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r(e)))},children:[u("span",{"k-if":o.icon,class:"mui-pill-icon",children:o.icon}),u("span",{class:"mui-pill-label",children:o.children??a}),u("button",{"k-if":t,class:"mui-pill-delete",type:"button",tabIndex:-1,"aria-label":"Delete","on:click":e=>{if(e.stopPropagation(),b.value||!t)return;const i=t(e);g.value&&!1!==i&&v.remove()},children:o.deleteIcon??Oi})]});return qe(v,o,["on:click","on:delete"]),v}Ve`
3118
3008
  .mui-badge-root {
3119
3009
  position: relative;
3120
3010
  display: inline-flex;
@@ -3266,7 +3156,7 @@ textarea.mui-textfield-input {
3266
3156
  color: #fff;
3267
3157
  }
3268
3158
 
3269
- `;const Hi={vertical:"top",horizontal:"right"};function Pi(i){const o=d(i.class??""),r=d(e(i.style)),t=o.toComputed(e=>"mui-badge-root "+e),a=d(i.badgeContent??""),n=d(i.max??99),l=d(i.showZero??!1),c=d(i.invisible??!1),m=d(i.color??"default"),b=d(i.variant??"standard"),g=d(i.overlap??"rectangular"),x=d(i.anchorOrigin??Hi),h=p(()=>{if("dot"===b.value)return"";const e=a.value;return"number"==typeof e?e>n.value?`${n.value}+`:`${e}`:e??""},[a,n,b]),f=p(()=>{if(c.value)return!0;if("dot"===b.value)return!1;const e=a.value;return""===e||null==e||(0===e||"0"===e)&&!l.value},[c,b,a,l]),v=p(()=>{const e=x.value?.vertical??Hi.vertical,i=x.value?.horizontal??Hi.horizontal;return["mui-badge-badge",`mui-badge-${b.value}`,`mui-badge-color-${m.value}`,`mui-badge-overlap-${g.value}`,`mui-badge-anchor-${e}-${i}`,f.value?"mui-badge-invisible":""].join(" ")},[b,m,g,x,f]),k=s("span",{class:t,style:r,children:[u("span",{class:"mui-badge-content",children:i.children}),u("span",{class:v,"aria-hidden":f,children:h})]});return Ge(k,i),k}qe`
3159
+ `;const Hi={vertical:"top",horizontal:"right"};function Wi(i){const o=d(i.class??""),r=d(e(i.style)),t=o.toComputed(e=>"mui-badge-root "+e),a=d(i.badgeContent??""),n=d(i.max??99),l=d(i.showZero??!1),c=d(i.invisible??!1),p=d(i.color??"default"),b=d(i.variant??"standard"),g=d(i.overlap??"rectangular"),x=d(i.anchorOrigin??Hi),h=m(()=>{if("dot"===b.value)return"";const e=a.value;return"number"==typeof e?e>n.value?`${n.value}+`:`${e}`:e??""},[a,n,b]),f=m(()=>{if(c.value)return!0;if("dot"===b.value)return!1;const e=a.value;return""===e||null==e||(0===e||"0"===e)&&!l.value},[c,b,a,l]),v=m(()=>{const e=x.value?.vertical??Hi.vertical,i=x.value?.horizontal??Hi.horizontal;return["mui-badge-badge",`mui-badge-${b.value}`,`mui-badge-color-${p.value}`,`mui-badge-overlap-${g.value}`,`mui-badge-anchor-${e}-${i}`,f.value?"mui-badge-invisible":""].join(" ")},[b,p,g,x,f]),k=s("span",{class:t,style:r,children:[u("span",{class:"mui-badge-content",children:i.children}),u("span",{class:v,"aria-hidden":f,children:h})]});return qe(k,i),k}Ve`
3270
3160
  .mui-tabs-root {
3271
3161
  display: flex;
3272
3162
  width: 100%;
@@ -3465,5 +3355,5 @@ textarea.mui-textfield-input {
3465
3355
  }
3466
3356
  }
3467
3357
 
3468
- `;function Bi(o){const r=o["on:change"]??i,t=d(o.class??""),a=d(e(o.style)),n=d(o.options),l=d(o.variant??"standard"),c=d(o.textColor??"primary"),x=d(o.indicatorColor??"primary"),h=d(o.orientation??"horizontal"),f=d(o.centered??!1),v="string"==typeof o.value?o.value:"",k=b(o,v),w=m(),y=[];let z=0;const C=()=>{z&&clearTimeout(z),z=window.setTimeout(()=>{z=0,E()},0)},$=e=>{const i=k.value,o=n.value;if(o.find(e=>e.value===i&&!e.disabled))return;const t=(e=>{for(let i=0;i<e.length;i++)if(!e[i].disabled)return{option:e[i],index:i};return null})(o),a=t?.option.value??"";a!==i&&(k.value=a,e&&r(a,i,t?.index??-1,t?.option))},S=p(()=>["mui-tabs-root",`mui-tabs-variant-${l.value}`,`mui-tabs-orientation-${h.value}`,f.value?"mui-tabs-centered":"",t.value].join(" "),[l,h,f,t]),L=p(()=>["mui-tabs-indicator",`mui-tabs-indicator-color-${x.value}`,`mui-tabs-indicator-orientation-${h.value}`].join(" "),[x,h]),E=()=>{const e=w.value;if(!e)return;const i=e.querySelector(".mui-tab-root.mui-tab-selected");i?(I.style.opacity="1","vertical"===h.value?(I.style.width="2px",I.style.height=`${i.offsetHeight}px`,I.style.transform=`translateY(${i.offsetTop}px)`):(I.style.height="2px",I.style.width=`${i.offsetWidth}px`,I.style.transform=`translateX(${i.offsetLeft}px)`)):I.style.opacity="0"},A=e=>{const i=e.currentTarget;if(!i)return;const o=Number(i.dataset.index??"-1"),t=n.value[o];t&&((e,i)=>{if(e.disabled)return;const o=k.value;o!==e.value&&(k.value=e.value,r(e.value,o,i,e))})(t,o)},T=(e,i)=>{const o=n.value;if(!o.length)return;const r=o.length;for(let t=0;t<r;t++){const a=(e+i*(t+1)+r)%r,n=o[a];if(n&&!n.disabled)return void y[a]?.focus()}},j=p(()=>(y.length=0,n.value.map((e,i)=>{const o=k.value===e.value,r=s("button",{type:"button",role:"tab",class:`mui-tab-root mui-tab-text-color-${c.value} ${o?"mui-tab-selected":""} ${e.disabled?"mui-tab-disabled":""} ${e.icon?"mui-tab-has-icon":""}`,"data-value":e.value,"data-index":String(i),"aria-selected":o,"aria-disabled":e.disabled?"true":"false",disabled:e.disabled??!1,tabIndex:o?0:-1,"on:click":A,children:[u("span",{"k-if":e.icon,class:"mui-tab-icon",children:e.icon}),u("span",{class:"mui-tab-label",children:e.label})]});return y.push(r),r})),[n,k,c]),I=u("span",{class:L}),O=u("div",{class:S,style:a,children:u("div",{class:"mui-tabs-scroller",children:s("div",{ref:w,class:"mui-tabs-list",role:"tablist","on:keydown":e=>{const i=document.activeElement,o=y.findIndex(e=>e===i);if(o<0)return;const r="vertical"===h.value;return r&&"ArrowDown"===e.key||!r&&"ArrowRight"===e.key?(e.preventDefault(),void T(o,1)):r&&"ArrowUp"===e.key||!r&&"ArrowLeft"===e.key?(e.preventDefault(),void T(o,-1)):"Home"===e.key?(e.preventDefault(),void T(-1,1)):"End"===e.key?(e.preventDefault(),void T(0,-1)):void("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i.click()))},children:[u(g,{list:j}),I]})})});$(!1),k.addOnChange(()=>C()),n.addOnChange(()=>{$(!0),C()}),l.addOnChange(()=>C()),h.addOnChange(()=>C()),window.addEventListener("resize",C),C();const D=O.remove;return O.remove=()=>(z&&(clearTimeout(z),z=0),window.removeEventListener("resize",C),D.call(O)),Ge(O,o,["on:change"]),O}export{Ye as Alert,Pi as Badge,Xe as BottomNavigation,_e as Button,Di as Card,ei as Checkbox,ii as CheckboxGroup,oi as Dialog,Ke as DropdownButton,ri as FormLabel,ti as LinearProgress,mi as Menu,yi as Modal,Wi as Pill,si as Popover,Ti as Radio,ji as RadioGroup,Oi as Select,Ri as Switch,Bi as Tabs,Si as TextField,zi as alert,Ci as confirm,vi as modalAlert,ki as modalConfirm,wi as modalPrompt,$i as prompt};
3358
+ `;function Pi(o){const r=o["on:change"]??i,t=d(o.class??""),a=d(e(o.style)),n=d(o.options),l=d(o.variant??"standard"),c=d(o.textColor??"primary"),x=d(o.indicatorColor??"primary"),h=d(o.orientation??"horizontal"),f=d(o.centered??!1),v="string"==typeof o.value?o.value:"",k=b(o,v),y=p(),w=[];let z=0;const C=()=>{z&&clearTimeout(z),z=window.setTimeout(()=>{z=0,L()},0)},$=e=>{const i=k.value,o=n.value;if(o.find(e=>e.value===i&&!e.disabled))return;const t=(e=>{for(let i=0;i<e.length;i++)if(!e[i].disabled)return{option:e[i],index:i};return null})(o),a=t?.option.value??"";a!==i&&(k.value=a,e&&r(a,i,t?.index??-1,t?.option))},S=m(()=>["mui-tabs-root",`mui-tabs-variant-${l.value}`,`mui-tabs-orientation-${h.value}`,f.value?"mui-tabs-centered":"",t.value].join(" "),[l,h,f,t]),T=m(()=>["mui-tabs-indicator",`mui-tabs-indicator-color-${x.value}`,`mui-tabs-indicator-orientation-${h.value}`].join(" "),[x,h]),L=()=>{const e=y.value;if(!e)return;const i=e.querySelector(".mui-tab-root.mui-tab-selected");i?(j.style.opacity="1","vertical"===h.value?(j.style.width="2px",j.style.height=`${i.offsetHeight}px`,j.style.transform=`translateY(${i.offsetTop}px)`):(j.style.height="2px",j.style.width=`${i.offsetWidth}px`,j.style.transform=`translateX(${i.offsetLeft}px)`)):j.style.opacity="0"},A=e=>{const i=e.currentTarget;if(!i)return;const o=Number(i.dataset.index??"-1"),t=n.value[o];t&&((e,i)=>{if(e.disabled)return;const o=k.value;o!==e.value&&(k.value=e.value,r(e.value,o,i,e))})(t,o)},E=(e,i)=>{const o=n.value;if(!o.length)return;const r=o.length;for(let t=0;t<r;t++){const a=(e+i*(t+1)+r)%r,n=o[a];if(n&&!n.disabled)return void w[a]?.focus()}},I=m(()=>(w.length=0,n.value.map((e,i)=>{const o=k.value===e.value,r=s("button",{type:"button",role:"tab",class:`mui-tab-root mui-tab-text-color-${c.value} ${o?"mui-tab-selected":""} ${e.disabled?"mui-tab-disabled":""} ${e.icon?"mui-tab-has-icon":""}`,"data-value":e.value,"data-index":String(i),"aria-selected":o,"aria-disabled":e.disabled?"true":"false",disabled:e.disabled??!1,tabIndex:o?0:-1,"on:click":A,children:[u("span",{"k-if":e.icon,class:"mui-tab-icon",children:e.icon}),u("span",{class:"mui-tab-label",children:e.label})]});return w.push(r),r})),[n,k,c]),j=u("span",{class:T}),D=u("div",{class:S,style:a,children:u("div",{class:"mui-tabs-scroller",children:s("div",{ref:y,class:"mui-tabs-list",role:"tablist","on:keydown":e=>{const i=document.activeElement,o=w.findIndex(e=>e===i);if(o<0)return;const r="vertical"===h.value;return r&&"ArrowDown"===e.key||!r&&"ArrowRight"===e.key?(e.preventDefault(),void E(o,1)):r&&"ArrowUp"===e.key||!r&&"ArrowLeft"===e.key?(e.preventDefault(),void E(o,-1)):"Home"===e.key?(e.preventDefault(),void E(-1,1)):"End"===e.key?(e.preventDefault(),void E(0,-1)):void("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i.click()))},children:[u(g,{list:I}),j]})})});$(!1),k.addOnChange(()=>C()),n.addOnChange(()=>{$(!0),C()}),l.addOnChange(()=>C()),h.addOnChange(()=>C()),window.addEventListener("resize",C),C();const M=D.remove;return D.remove=()=>(z&&(clearTimeout(z),z=0),window.removeEventListener("resize",C),M.call(D)),qe(D,o,["on:change"]),D}export{Fe as Alert,Wi as Badge,Ye as BottomNavigation,_e as Button,Di as Card,Je as Checkbox,Qe as CheckboxGroup,ii as Dialog,oi as FormLabel,ri as LinearProgress,mi as Menu,yi as Modal,Ri as Pill,ci as Popover,Ai as Radio,Ei as RadioGroup,ji as Select,Mi as Switch,Pi as Tabs,$i as TextField,wi as alert,zi as confirm,fi as modalAlert,vi as modalConfirm,ki as modalPrompt,Ci as prompt};
3469
3359
  //# sourceMappingURL=index.mjs.map