UNPKG

@mielo-ui/mielo-react

Version:

React components & wrappers around mielo.css framework.

14 lines 74.7 kB
import{jsx as e,jsxs as n,Fragment as t}from"react/jsx-runtime";import r,{forwardRef as a,createElement as o,useState as i,useEffect as c,useCallback as s,useRef as l,useImperativeHandle as u,useMemo as f}from"react";import d,{createPortal as p}from"react-dom";function v(e){var n,t,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(n=0;n<a;n++)e[n]&&(t=v(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function m(){for(var e,n,t=0,r="",a=arguments.length;t<a;t++)(e=arguments[t])&&(n=v(e))&&(r&&(r+=" "),r+=n);return r}var h=function(){return h=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},h.apply(this,arguments)};function y(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t}function b(e,n,t){if(t||2===arguments.length)for(var r,a=0,o=n.length;a<o;a++)!r&&a in n||(r||(r=Array.prototype.slice.call(n,0,a)),r[a]=n[a]);return e.concat(r||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;var g=a((function(t,r){var a=t.className,o=t.progressVisible,i=t.indeterminate,c=t.transparent,s=t.children,l=t.progress,u=t.accent,f=t.color,d=m("mie progressbar",i&&"indeterminate ".concat(i),u&&(!0===u?"accent":u),f,{transparent:c},a),p={style:l?{width:"".concat(l,"%")}:{},className:d,ref:r};return e("div",h({},p,{children:s||n("div",{className:m("label",{visible:o}),children:[l,"%"]})}))}));g.displayName="Mie.Progress.Bar";var w=a((function(n,t){var r=n.className,a=n.multiple,o=n.children,i=n.accent,c=m("mie progress",i&&(!0===i?"accent":i),n.color,n.size,{multiple:a},r);return e("div",{ref:t,className:c,children:o})}));w.displayName="Mie.Progress";var N=Object.assign(w,{Bar:g});function x(n){var t=n.className,r=n.children,a=m("mie buttons",t);return e("div",{className:a,children:r})}x.displayName="Mie.Button.Group";var E=a((function(e,r){var a,i=e.className,c=e.transparent,s=e.children,l=e.tertiary,u=e.circular,f=e.pilled,d=e.filled,p=e.center,v=e.accent,b=e.active,g=e.color,w=e.hover,N=e.label,x=e.link,E=e.icon,O=e.size,j=y(e,["className","transparent","children","tertiary","circular","pilled","filled","center","accent","active","color","hover","label","link","icon","size"]),_=m("mie button",v&&(!0===v?"accent":v),g,O,i,{content:E&&N,transparent:c,tertiary:l,circular:u,center:p,pilled:f,filled:d,active:b,hover:w});return a=s||n(t,{children:[E&&E,N&&N]}),o(x?"a":"button",h({ref:r,href:x||void 0,className:_},j),a)}));E.displayName="Mie.Button";var O=Object.assign(E,{Group:x}),j=function(n){return e("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:16,height:16},n,{children:e("path",{fill:"currentColor",d:"M13.753 4.659a1 1 0 0 0-.432-1.607 1 1 0 0 0-1.074.289L5.95 10.536 3.706 8.292a1 1 0 1 0-1.414 1.416l3 3a1 1 0 0 0 1.46-.049l7-8Z"})}))};j.displayName="Mie.Icon.EmblemOk";var _=a((function(r,a){var o,l,u,f,d=r.className,p=r.onChange,v=r.checked,h=r.icon,y=r.children,b=r.circular,g=r.disabled,w=r.toggle,N=r.accent,x=r.color,E=r.size,O=r.label,_=r.name,C=i(v),S=C[0],k=C[1],M=N&&(!0===N?"accent":N);c((function(){k(v)}),[v]);var z,A=s((function(e){k(e.target.checked),null==p||p(e)}),[]),R="toggle_".concat(_);z=w?S?null===(o=null==h?void 0:h.indicator)||void 0===o?void 0:o.checked:null===(l=null==h?void 0:h.indicator)||void 0===l?void 0:l.unchecked:e(j,{});var P=m("mie",w?"toggle":"checkbox",M,x,E,{disabled:g,circular:b},d);return n("div",{className:P,children:[e("input",{onChange:A,disabled:g,checked:S,className:"input",id:R,type:"checkbox",ref:a}),n("label",{className:"label",htmlFor:R,children:[e("div",{className:m("indicator",{checked:S}),children:w?n(t,{children:[e("div",{className:"dot",children:e("div",{className:"icon",children:z})}),(null==h?void 0:h.layout)&&n("div",{className:"icon layout",children:[e("div",{className:"checked",children:null===(u=null==h?void 0:h.layout)||void 0===u?void 0:u.checked}),e("div",{className:"unchecked",children:null===(f=null==h?void 0:h.layout)||void 0===f?void 0:f.unchecked})]})]}):e("div",{className:"icon",children:z})}),(y||O)&&e("div",{className:"content",children:y||O})]})]})}));function C(n){var t=n.className,r=n.children,a=y(n,["className","children"]),o=m("mie divider",{content:!!r},t);return e("div",h({className:o},a,{children:r}))}_.displayName="Mie.Checkbox",C.displayName="Mie.Divider";var S=a((function(t,r){var a,o,f=t.className,d=t.onClose,p=t.onOpen,v=t.menuHeight,y=t.opened,b=t.props,g=t.content,w=t.menu,N=i(!1),x=N[0],E=N[1],O=l(null),j=l(null),_=l(null);c((function(){var e=function(e){var n,t=e.target;t instanceof Node&&!(null===(n=O.current)||void 0===n?void 0:n.contains(t))&&(x&&(null==S||S()),E(!1))};return window.addEventListener("click",e),function(){window.removeEventListener("click",e)}}),[]),c((function(){var e=j.current;if(e){var n=function(e){"Enter"===e.key&&E((function(e){var n=!e;return n?null==p||p():null==d||d(),n}))};return e.addEventListener("keydown",n),function(){e.removeEventListener("keydown",n)}}}),[]);var C=s((function(){null==p||p(),E(!0)}),[]),S=s((function(){null==d||d(),E(!1)}),[]);u(r,(function(){return{close:S,open:C}}));var k={content:m("content",null==f?void 0:f.content),container:m("mie dropdown",null==f?void 0:f.container,{opened:x||y}),menu:m("menu",null==f?void 0:f.menu,{opened:x||y})},M=Object.assign({},x&&{zIndex:100},null===(a=null==b?void 0:b.container)||void 0===a?void 0:a.style),z=Object.assign({},v&&x&&{minHeight:v},null===(o=null==b?void 0:b.menu)||void 0===o?void 0:o.style),A={close:S,open:C,isOpen:x};return n("div",h({},(null==b?void 0:b.container)?null==b?void 0:b.container:{},{className:k.container,"data-is-active":x,style:M,ref:O,children:[e("div",h({},(null==b?void 0:b.menu)?null==b?void 0:b.menu:{},{className:k.menu,style:z,ref:_,children:w(A)})),e("div",h({ref:j,className:k.content},null==b?void 0:b.content,{children:g(A)}))]}))}));S.displayName="Mie.Dropdown";var k=function(n){var t=n.strokeWidth,r=n.color,a=n.size,o=y(n,["strokeWidth","color","size"]);return e("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:a||16,height:a||16,stroke:r||"currentColor",strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:t||2,fill:"none"},o,{children:e("path",{d:"m6 9 6 6 6-6"})}))};function M(t){var r=t.selected,a=t.label,o=t.postfix,i=t.prefix,c=t.isOpen,l=t.close,u=t.open;t.accent,t.name,t.size;var f=s((function(){c?l():u()}),[c]),d=m("base",{opened:c,selected:!!r});return n("div",{className:d,onClick:f,role:"button",tabIndex:0,children:[i,n("div",{className:"header",children:[e("div",{className:"label",children:a}),r&&e("div",{className:"value",children:r.title})]}),n("div",{className:"right",children:[o,e("div",{className:"arrow",children:e(k,{})})]})]})}var z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function A(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var R={exports:{}};!function(e,n){var t="__lodash_hash_undefined__",r=1,a=2,o=9007199254740991,i="[object Arguments]",c="[object Array]",s="[object AsyncFunction]",l="[object Boolean]",u="[object Date]",f="[object Error]",d="[object Function]",p="[object GeneratorFunction]",v="[object Map]",m="[object Number]",h="[object Null]",y="[object Object]",b="[object Promise]",g="[object Proxy]",w="[object RegExp]",N="[object Set]",x="[object String]",E="[object Symbol]",O="[object Undefined]",j="[object WeakMap]",_="[object ArrayBuffer]",C="[object DataView]",S=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[i]=M[c]=M[_]=M[l]=M[C]=M[u]=M[f]=M[d]=M[v]=M[m]=M[y]=M[w]=M[N]=M[x]=M[j]=!1;var A="object"==typeof z&&z&&z.Object===Object&&z,R="object"==typeof self&&self&&self.Object===Object&&self,P=A||R||Function("return this")(),I=n&&!n.nodeType&&n,T=I&&e&&!e.nodeType&&e,$=T&&T.exports===I,L=$&&A.process,B=function(){try{return L&&L.binding&&L.binding("util")}catch(e){}}(),D=B&&B.isTypedArray;function V(e,n){for(var t=-1,r=null==e?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}function F(e){var n=-1,t=Array(e.size);return e.forEach((function(e,r){t[++n]=[r,e]})),t}function W(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=e})),t}var H,q,U,G=Array.prototype,Y=Function.prototype,J=Object.prototype,Q=P["__core-js_shared__"],X=Y.toString,Z=J.hasOwnProperty,K=(H=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"",ee=J.toString,ne=RegExp("^"+X.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=$?P.Buffer:void 0,re=P.Symbol,ae=P.Uint8Array,oe=J.propertyIsEnumerable,ie=G.splice,ce=re?re.toStringTag:void 0,se=Object.getOwnPropertySymbols,le=te?te.isBuffer:void 0,ue=(q=Object.keys,U=Object,function(e){return q(U(e))}),fe=Be(P,"DataView"),de=Be(P,"Map"),pe=Be(P,"Promise"),ve=Be(P,"Set"),me=Be(P,"WeakMap"),he=Be(Object,"create"),ye=We(fe),be=We(de),ge=We(pe),we=We(ve),Ne=We(me),xe=re?re.prototype:void 0,Ee=xe?xe.valueOf:void 0;function Oe(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function je(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function _e(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function Ce(e){var n=-1,t=null==e?0:e.length;for(this.__data__=new _e;++n<t;)this.add(e[n])}function Se(e){var n=this.__data__=new je(e);this.size=n.size}function ke(e,n){var t=Ue(e),r=!t&&qe(e),a=!t&&!r&&Ge(e),o=!t&&!r&&!a&&Ze(e),i=t||r||a||o,c=i?function(e,n){for(var t=-1,r=Array(e);++t<e;)r[t]=n(t);return r}(e.length,String):[],s=c.length;for(var l in e)!Z.call(e,l)||i&&("length"==l||a&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Fe(l,s))||c.push(l);return c}function Me(e,n){for(var t=e.length;t--;)if(He(e[t][0],n))return t;return-1}function ze(e){return null==e?void 0===e?O:h:ce&&ce in Object(e)?function(e){var n=Z.call(e,ce),t=e[ce];try{e[ce]=void 0;var r=!0}catch(e){}var a=ee.call(e);r&&(n?e[ce]=t:delete e[ce]);return a}(e):function(e){return ee.call(e)}(e)}function Ae(e){return Xe(e)&&ze(e)==i}function Re(e,n,t,o,s){return e===n||(null==e||null==n||!Xe(e)&&!Xe(n)?e!=e&&n!=n:function(e,n,t,o,s,d){var p=Ue(e),h=Ue(n),b=p?c:Ve(e),g=h?c:Ve(n),O=(b=b==i?y:b)==y,j=(g=g==i?y:g)==y,S=b==g;if(S&&Ge(e)){if(!Ge(n))return!1;p=!0,O=!1}if(S&&!O)return d||(d=new Se),p||Ze(e)?Te(e,n,t,o,s,d):function(e,n,t,o,i,c,s){switch(t){case C:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case _:return!(e.byteLength!=n.byteLength||!c(new ae(e),new ae(n)));case l:case u:case m:return He(+e,+n);case f:return e.name==n.name&&e.message==n.message;case w:case x:return e==n+"";case v:var d=F;case N:var p=o&r;if(d||(d=W),e.size!=n.size&&!p)return!1;var h=s.get(e);if(h)return h==n;o|=a,s.set(e,n);var y=Te(d(e),d(n),o,i,c,s);return s.delete(e),y;case E:if(Ee)return Ee.call(e)==Ee.call(n)}return!1}(e,n,b,t,o,s,d);if(!(t&r)){var k=O&&Z.call(e,"__wrapped__"),M=j&&Z.call(n,"__wrapped__");if(k||M){var z=k?e.value():e,A=M?n.value():n;return d||(d=new Se),s(z,A,t,o,d)}}if(!S)return!1;return d||(d=new Se),function(e,n,t,a,o,i){var c=t&r,s=$e(e),l=s.length,u=$e(n),f=u.length;if(l!=f&&!c)return!1;var d=l;for(;d--;){var p=s[d];if(!(c?p in n:Z.call(n,p)))return!1}var v=i.get(e);if(v&&i.get(n))return v==n;var m=!0;i.set(e,n),i.set(n,e);var h=c;for(;++d<l;){var y=e[p=s[d]],b=n[p];if(a)var g=c?a(b,y,p,n,e,i):a(y,b,p,e,n,i);if(!(void 0===g?y===b||o(y,b,t,a,i):g)){m=!1;break}h||(h="constructor"==p)}if(m&&!h){var w=e.constructor,N=n.constructor;w==N||!("constructor"in e)||!("constructor"in n)||"function"==typeof w&&w instanceof w&&"function"==typeof N&&N instanceof N||(m=!1)}return i.delete(e),i.delete(n),m}(e,n,t,o,s,d)}(e,n,t,o,Re,s))}function Pe(e){return!(!Qe(e)||function(e){return!!K&&K in e}(e))&&(Ye(e)?ne:S).test(We(e))}function Ie(e){if(t=(n=e)&&n.constructor,r="function"==typeof t&&t.prototype||J,n!==r)return ue(e);var n,t,r,a=[];for(var o in Object(e))Z.call(e,o)&&"constructor"!=o&&a.push(o);return a}function Te(e,n,t,o,i,c){var s=t&r,l=e.length,u=n.length;if(l!=u&&!(s&&u>l))return!1;var f=c.get(e);if(f&&c.get(n))return f==n;var d=-1,p=!0,v=t&a?new Ce:void 0;for(c.set(e,n),c.set(n,e);++d<l;){var m=e[d],h=n[d];if(o)var y=s?o(h,m,d,n,e,c):o(m,h,d,e,n,c);if(void 0!==y){if(y)continue;p=!1;break}if(v){if(!V(n,(function(e,n){if(r=n,!v.has(r)&&(m===e||i(m,e,t,o,c)))return v.push(n);var r}))){p=!1;break}}else if(m!==h&&!i(m,h,t,o,c)){p=!1;break}}return c.delete(e),c.delete(n),p}function $e(e){return function(e,n,t){var r=n(e);return Ue(e)?r:function(e,n){for(var t=-1,r=n.length,a=e.length;++t<r;)e[a+t]=n[t];return e}(r,t(e))}(e,Ke,De)}function Le(e,n){var t,r,a=e.__data__;return("string"==(r=typeof(t=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?a["string"==typeof n?"string":"hash"]:a.map}function Be(e,n){var t=function(e,n){return null==e?void 0:e[n]}(e,n);return Pe(t)?t:void 0}Oe.prototype.clear=function(){this.__data__=he?he(null):{},this.size=0},Oe.prototype.delete=function(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n},Oe.prototype.get=function(e){var n=this.__data__;if(he){var r=n[e];return r===t?void 0:r}return Z.call(n,e)?n[e]:void 0},Oe.prototype.has=function(e){var n=this.__data__;return he?void 0!==n[e]:Z.call(n,e)},Oe.prototype.set=function(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=he&&void 0===n?t:n,this},je.prototype.clear=function(){this.__data__=[],this.size=0},je.prototype.delete=function(e){var n=this.__data__,t=Me(n,e);return!(t<0)&&(t==n.length-1?n.pop():ie.call(n,t,1),--this.size,!0)},je.prototype.get=function(e){var n=this.__data__,t=Me(n,e);return t<0?void 0:n[t][1]},je.prototype.has=function(e){return Me(this.__data__,e)>-1},je.prototype.set=function(e,n){var t=this.__data__,r=Me(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this},_e.prototype.clear=function(){this.size=0,this.__data__={hash:new Oe,map:new(de||je),string:new Oe}},_e.prototype.delete=function(e){var n=Le(this,e).delete(e);return this.size-=n?1:0,n},_e.prototype.get=function(e){return Le(this,e).get(e)},_e.prototype.has=function(e){return Le(this,e).has(e)},_e.prototype.set=function(e,n){var t=Le(this,e),r=t.size;return t.set(e,n),this.size+=t.size==r?0:1,this},Ce.prototype.add=Ce.prototype.push=function(e){return this.__data__.set(e,t),this},Ce.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.clear=function(){this.__data__=new je,this.size=0},Se.prototype.delete=function(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t},Se.prototype.get=function(e){return this.__data__.get(e)},Se.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.set=function(e,n){var t=this.__data__;if(t instanceof je){var r=t.__data__;if(!de||r.length<199)return r.push([e,n]),this.size=++t.size,this;t=this.__data__=new _e(r)}return t.set(e,n),this.size=t.size,this};var De=se?function(e){return null==e?[]:(e=Object(e),function(e,n){for(var t=-1,r=null==e?0:e.length,a=0,o=[];++t<r;){var i=e[t];n(i,t,e)&&(o[a++]=i)}return o}(se(e),(function(n){return oe.call(e,n)})))}:function(){return[]},Ve=ze;function Fe(e,n){return!!(n=null==n?o:n)&&("number"==typeof e||k.test(e))&&e>-1&&e%1==0&&e<n}function We(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function He(e,n){return e===n||e!=e&&n!=n}(fe&&Ve(new fe(new ArrayBuffer(1)))!=C||de&&Ve(new de)!=v||pe&&Ve(pe.resolve())!=b||ve&&Ve(new ve)!=N||me&&Ve(new me)!=j)&&(Ve=function(e){var n=ze(e),t=n==y?e.constructor:void 0,r=t?We(t):"";if(r)switch(r){case ye:return C;case be:return v;case ge:return b;case we:return N;case Ne:return j}return n});var qe=Ae(function(){return arguments}())?Ae:function(e){return Xe(e)&&Z.call(e,"callee")&&!oe.call(e,"callee")},Ue=Array.isArray;var Ge=le||function(){return!1};function Ye(e){if(!Qe(e))return!1;var n=ze(e);return n==d||n==p||n==s||n==g}function Je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Qe(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}function Xe(e){return null!=e&&"object"==typeof e}var Ze=D?function(e){return function(n){return e(n)}}(D):function(e){return Xe(e)&&Je(e.length)&&!!M[ze(e)]};function Ke(e){return null!=(n=e)&&Je(n.length)&&!Ye(n)?ke(e):Ie(e);var n}e.exports=function(e,n){return Re(e,n)}}(R,R.exports);var P=A(R.exports);function I(n){var t=n.isSelected,r=n.onSelect,a=n.option,o=l(null);c((function(){var e=o.current;if(e){var n=function(n){document.activeElement===e&&"Enter"===n.key&&r(a)};return e.addEventListener("keydown",n),function(){e.removeEventListener("keydown",n)}}}),[a,r]);var i=h({onClick:function(){return r(a)},tabIndex:0,active:t,activatable:!0,pv:"small",ph:"small",mh:"tiny",r:!0},a);return e(Xr.Item,h({ref:o},i))}function T(n){var t=n.customItem,r=n.onSelect;n.isOpen;var a=n.listProps,o=n.selected,i=n.options,c=n.close,l=s((function(e){r(e),c()}),[]),u=i.map((function(n,r){var a={isSelected:P(n.value,null==o?void 0:o.value),onSelect:l,option:n};return e(t||I,h({},a),"item-".concat(r))}));return e(Xr,h({pv:"mini",gr:"mini"},a,{children:u}))}var $=a((function(n,t){var r=n.className,a=n.options,o=n.label,i=n.value,c=n.name,s=n.transparent,f=n.bordered,d=n.disabled,p=n.opened,v=n.postfix,b=n.prefix,g=n.accent,w=n.color,N=n.customItem,x=n.menuHeight,E=n.listProps,O=n.onChange,j=n.onClose,_=n.onOpen,C=n.size,k=y(n,["className","options","label","value","name","transparent","bordered","disabled","opened","postfix","prefix","accent","color","customItem","menuHeight","listProps","onChange","onClose","onOpen","size"]),z=l(null),A=g&&(!0===g?"accent":g);u(t,(function(){return{}}));var R={menuHeight:x,onClose:j,onOpen:_,opened:p,content:function(n){var t=h({postfix:v,prefix:b,accent:g,selected:i,label:o,size:C,name:c},n);return e(M,h({},t))},menu:function(n){var t=h({onSelect:O,selected:i,customItem:N,listProps:E,options:a},n);return e(T,h({},t))},className:{container:m("select",A,w,C,{selected:!!i,transparent:s,disabled:d,bordered:f},r)},props:{container:h({"data-name":c},k),content:{"data-selected":!!(null==i?void 0:i.value)},menu:{}}};return e(S,h({ref:z},R))}));$.displayName="Mie.Select";var L=a((function(t,r){var a=t.className,o=t.inverted,i=t.iconSided,c=t.accent,s=t.subtitle,l=t.flattened,u=t.color,f=t.center,d=t.title,p=t.size,v=t.icon,b=y(t,["className","inverted","iconSided","accent","subtitle","flattened","color","center","title","size","icon"]),g=m("mie header",p,c&&(!0===c?"accent":c),u,{center:f,inverted:o,flattened:l},a);return n("div",h({ref:r,className:g},b,{children:[v&&i&&v,n("div",{className:"heading",children:[v&&!i&&v,d&&e("div",{className:"title",children:d}),s&&e("div",{className:"subtitle",children:s})]})]}))}));L.displayName="Mie.Header";var B=Object.assign,D=a((function(n,t){var r=n.className,a=n.style,o=n.transparent,i=n.container,c=n.children,s=n.circular,l=n.bordered;n.onClick;var u=n.accent,f=n.color,d=n.size,p=n.src,v=y(n,["className","style","transparent","container","children","circular","bordered","onClick","accent","color","size","src"]),b=m("mie image",d,u&&(!0===u?"accent":u),f,{bordered:l,transparent:o,circular:s},r),g=B({background:"url(".concat(p,")")},a||{});return i?e("div",h({},v,{ref:t,style:g,className:b,children:c})):e("img",h({},v,{ref:t,className:b,style:a,src:p}))}));D.displayName="Mie.Image";var V=a((function(t,r){var a=t.className,o=t.onChange,c=t.onFocus,l=t.onBlur,u=t.containerId,f=t.placeholder,d=t.transparent,p=t.disabled,v=t.bordered,b=t.accent,g=t.color,w=t.label,N=t.postfix,x=t.prefix,E=t.value,O=t.size,j=t.id,_=y(t,["className","onChange","onFocus","onBlur","containerId","placeholder","transparent","disabled","bordered","accent","color","label","postfix","prefix","value","size","id"]),C=b&&(!0===b?"accent":b),S=i(!1),k=S[0],M=S[1],z=s((function(e){null==o||o(e)}),[o]),A=s((function(e){M(!0),null==c||c(e)}),[]),R=s((function(e){M(!1),null==l||l(e)}),[]),P=m("mie entry",C,g,O,{disabled:p,transparent:d,bordered:v},a),I=h({className:m({filled:E&&E.length>0}),placeholder:k?f:"",onChange:z,disabled:p,onFocus:A,onBlur:R,value:E,ref:r,id:j},_);return n("div",{id:u,className:P,children:[x,n("div",{className:"field",children:[e("input",h({},I)),e("label",{htmlFor:j,children:w})]}),N]})}));V.displayName="Mie.Entry";var F=a((function(t,r){var a=t.className,o=t.children,i=t.disabled,c=t.checked,s=t.accent;t.value;var l=t.color,u=t.size,f=t.id,d=y(t,["className","children","disabled","checked","accent","value","color","size","id"]),p=m("mie radio",s&&(!0===s?"accent":s),l,u,{disabled:i},a),v=h({className:"input",type:"radio",disabled:i,checked:c,ref:r,id:f},d);return n("div",{className:p,children:[e("input",h({},v)),n("label",{className:"label",htmlFor:f,children:[e("div",{className:"indicator"}),o&&e("div",{className:"content",children:o})]})]})}));F.displayName="Mie.Radio";var W=a((function(n,t){var r=n.className,a=n.transparent,o=n.circular,i=n.floating,c=n.bordered,s=n.children,l=n.accent,u=n.color,f=n.size,d=y(n,["className","transparent","circular","floating","bordered","children","accent","color","size"]),p=m("mie label",f,l&&(!0===l?"accent":l),u,i&&(!0===i?"floating":"floating ".concat(i)),{bordered:c,transparent:a,circular:o},r);return e("div",h({ref:t},d,{className:p,children:s}))}));W.displayName="Mie.Label";var H=a((function(r,a){var i=r.disableSidePropagation,c=void 0===i||i,l=r.className,u=r.description,f=r.activatable,d=r.inverted,p=r.vertical,v=r.onClick,b=r.content,g=r.label,w=r.active,N=r.accent,x=r.center,E=r.hover,O=r.color,j=r.title,_=r.size,C=r.link,S=r.icon,k=r.side,M=y(r,["disableSidePropagation","className","description","activatable","inverted","vertical","onClick","content","label","active","accent","center","hover","color","title","size","link","icon","side"]),z=N&&(!0===N?"accent":N),A=s((function(e){e.stopPropagation()}),[c]),R=m("mie item",z,O,_,{vertical:p,center:x,activatable:f,active:w,hover:E},l),P=n(t,{children:[g&&g,S&&S,e("div",{className:m("content",{inverted:d}),children:b||n(t,{children:[j&&e("div",{className:"title",children:j}),u&&e("div",{className:"description",children:u})]})}),k&&e("div",{className:"side",onClick:A,children:k})]});return o(C?"a":"div",h({href:C,className:R,onClick:v,ref:a},M),P)}));H.displayName="Mie.Item";var q=a((function(n,t){var r=n.className,a=n.circular,o=n.filled,i=n.accent,c=n.icon,s=n.size,l=n.color,u=n.bg,f=y(n,["className","circular","filled","accent","icon","size","color","bg"]),d=m("mie icon",i&&(!0===i?"accent":i),l,s,{circular:a,filled:o,bg:u},r);return e("div",h({ref:t,className:d},f,{children:c}))}));q.displayName="Mie.Icon";var U=a((function(e,n){var t=e.className,r=e.children,a=e.element,i=e.accent,c=e.center,s=e.invert,l=e.color,u=e.muted,f=e.fsemibold,d=e.fregular,p=e.flight,v=e.fbold,b=e.size,g=y(e,["className","children","element","accent","center","invert","color","muted","fsemibold","fregular","flight","fbold","size"]),w=m("mie text",i&&(!0===i?"accent":i),l,b,{fsemibold:f,fregular:d,flight:p,fbold:v,center:c,invert:s,muted:u},t),N=h(h({},g),{className:w,ref:n});return o(a||"div",N,r)}));U.displayName="Mie.Text";var G=9007199254740991,Y="[object Arguments]",J="[object Function]",Q="[object GeneratorFunction]",X=/^(?:0|[1-9]\d*)$/;function Z(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}var K=Object.prototype,ee=K.hasOwnProperty,ne=K.toString,te=K.propertyIsEnumerable,re=Math.max;function ae(e,n){var t=fe(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&de(e)}(e)&&ee.call(e,"callee")&&(!te.call(e,"callee")||ne.call(e)==Y)}(e)?function(e,n){for(var t=-1,r=Array(e);++t<e;)r[t]=n(t);return r}(e.length,String):[],r=t.length,a=!!r;for(var o in e)a&&("length"==o||le(o,r))||t.push(o);return t}function oe(e,n,t,r){return void 0===e||ue(e,K[t])&&!ee.call(r,t)?n:e}function ie(e,n,t){var r=e[n];ee.call(e,n)&&ue(r,t)&&(void 0!==t||n in e)||(e[n]=t)}function ce(e){if(!pe(e))return function(e){var n=[];if(null!=e)for(var t in Object(e))n.push(t);return n}(e);var n,t,r,a=(t=(n=e)&&n.constructor,r="function"==typeof t&&t.prototype||K,n===r),o=[];for(var i in e)("constructor"!=i||!a&&ee.call(e,i))&&o.push(i);return o}function se(e,n){return n=re(void 0===n?e.length-1:n,0),function(){for(var t=arguments,r=-1,a=re(t.length-n,0),o=Array(a);++r<a;)o[r]=t[n+r];r=-1;for(var i=Array(n+1);++r<n;)i[r]=t[r];return i[n]=o,Z(e,this,i)}}function le(e,n){return!!(n=null==n?G:n)&&("number"==typeof e||X.test(e))&&e>-1&&e%1==0&&e<n}function ue(e,n){return e===n||e!=e&&n!=n}var fe=Array.isArray;function de(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=G}(e.length)&&!function(e){var n=pe(e)?ne.call(e):"";return n==J||n==Q}(e)}function pe(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}var ve,me=(ve=function(e,n,t,r){!function(e,n,t,r){t||(t={});for(var a=-1,o=n.length;++a<o;){var i=n[a],c=r?r(t[i],e[i],i,t,e):void 0;ie(t,i,void 0===c?e[i]:c)}}(n,function(e){return de(e)?ae(e):ce(e)}(n),e,r)},se((function(e,n){var t=-1,r=n.length,a=r>1?n[r-1]:void 0,o=r>2?n[2]:void 0;for(a=ve.length>3&&"function"==typeof a?(r--,a):void 0,o&&function(e,n,t){if(!pe(t))return!1;var r=typeof n;return!!("number"==r?de(t)&&le(n,t.length):"string"==r&&n in t)&&ue(t[n],e)}(n[0],n[1],o)&&(a=r<3?void 0:a,r=1),e=Object(e);++t<r;){var i=n[t];i&&ve(e,i,t,a)}return e})));var he=A(se((function(e){return e.push(void 0,oe),Z(me,void 0,e)})));function ye(e){for(var n=[],t=0,r=Object.entries(e);t<r.length;t++){var a=r[t],o=a[0],i=a[1];if(i){var c=!0===i?o:"".concat(o,"-").concat(i);n.push(c)}}return n}var be={spaceBetween:!1,gap:!1,padding:!0,margin:!0,rounded:!0,shadow:!0,flex:!0};function ge(e,n){var t,r,a=[],o=he(n,be);return o.shadow&&a.push(function(e){var n=e.shadow;return n&&(!0===n?"shadow":"shadow ".concat(n))}(e.shadow)),o.rounded&&a.push.apply(a,function(e){for(var n=[],t=0,r=Object.entries(e);t<r.length;t++){var a=r[t],o=a[0],i=a[1];if(i){var c=!0===i?o:"".concat(o,"-").concat(i);n.push(c)}}return n}(e.rounded)),o.flex&&a.push.apply(a,(t=e.flex,r=[],["f1","f","fc","fr","fw"].forEach((function(e){t[e]&&r.push(e)})),["fjc","fai"].forEach((function(e){t[e]&&r.push("".concat(e,"-").concat(t[e]))})),r)),o.gap&&a.push.apply(a,function(e){for(var n=[],t=0,r=Object.entries(e);t<r.length;t++){var a=r[t],o=a[0],i=a[1];if(i){var c=!0===i?o:"".concat(o,"-").concat(i);n.push(c)}}return n}(e.gap)),o.margin&&a.push.apply(a,ye(e.margin)),o.padding&&a.push.apply(a,ye(e.padding)),o.margin&&a.push.apply(a,function(e){for(var n=[],t=0,r=Object.entries(e);t<r.length;t++){var a=r[t],o=a[0],i=a[1];if(i){var c=!0===i?o:"".concat(o,"-").concat(i);n.push(c)}}return n}(e.spaceBetween)),a}function we(e){var n=e.fjc,t=e.fai,r=e.fc,a=e.fw,o=e.f1,i=e.fr,c=e.f,s=e.p,l=e.ph,u=e.pv,f=e.pt,d=e.pr,p=e.pb,v=e.pl,m=e.m,h=e.mh,b=e.mv,g=e.mt,w=e.mr,N=e.mb,x=e.ml,E=e.r,O=e.rt,j=e.rb,_=e.rl,C=e.rr,S=e.rtl,k=e.rtr,M=e.rbl,z=e.rbr,A=e.g,R=e.gr,P=e.gc;return{spaceBetween:{sbh:e.sbh,sbv:e.sbv},rounded:{r:E,rt:O,rb:j,rl:_,rr:C,rtl:S,rtr:k,rbl:M,rbr:z},flex:{fjc:n,fai:t,fc:r,f1:o,fr:i,f:c,fw:a},gap:{g:A,gc:P,gr:R},padding:{p:s,ph:l,pv:u,pt:f,pr:d,pb:p,pl:v},margin:{m:m,mh:h,mv:b,mt:g,mr:w,mb:N,ml:x},shadow:{shadow:e.shadow},props:y(e,["fjc","fai","fc","fw","f1","fr","f","p","ph","pv","pt","pr","pb","pl","m","mh","mv","mt","mr","mb","ml","r","rt","rb","rl","rr","rtl","rtr","rbl","rbr","g","gr","gc","sbh","sbv","shadow"])}}var Ne=a((function(e,n){var t=e.options,r=void 0===t?be:t,a=e.props,i=e.component,c=we(a||{}),s=c.props,l=y(c,["props"]);return s.ref=n,s.className=m(s.className,ge(l,r)),o(i,s)}));function xe(n,t){var r=a((function(r,a){return e(Ne,h({ref:a},{component:n,options:t,props:r}))}));return r.displayName="".concat(n.displayName,".Layout"),r}var Ee=xe(C,{flex:!1}),Oe=xe(L,{flex:!1}),je=xe($,{flex:!1}),_e=xe(V,{flex:!1}),Ce=xe(F,{flex:!1}),Se=xe(U,{flex:!1}),ke=xe(q,{flex:!1}),Me=xe(H,{flex:!1}),ze=xe(W),Ae=xe(D),Re=xe(_,{flex:!1}),Pe=xe(x,{flex:!1}),Ie=Object.assign(xe(O,{rounded:!0}),{Group:Pe}),Te=xe(g),$e=Object.assign(xe(N,{flex:!1}),{Bar:Te}),Le=Object.freeze({__proto__:null,Button:Ie,ButtonGroup:Pe,Checkbox:Re,Divider:Ee,Entry:_e,Header:Oe,Icon:ke,Image:Ae,Item:Me,Label:ze,Progress:$e,ProgressBar:Te,Radio:Ce,Select:je,Text:Se}),Be=a((function(n,t){var r=n.className,a=y(n,["className"]);return e($,h({ref:t,className:m("row",r)},a))}));Be.displayName="Mie.Select.Row";var De=a((function(n,t){var r=n.className,a=y(n,["className"]);return e(V,h({ref:t,className:m("row",r)},a))}));De.displayName="Mie.Entry.Row";var Ve=a((function(n,t){var r=n.className,a=y(n,["className"]),o=m("row property",r);return e(H,h({ref:t,className:o},a))}));Ve.displayName="Mie.Row";var Fe=a((function(n,t){var r=n.className,a=n.children,o=y(n,["className","children"]),i=m("mie rows",r);return e("div",h({ref:t,className:i},o,{children:a}))}));Fe.displayName="Mie.Rows";var We=Object.assign(Fe,{Select:Be,Entry:De,Row:Ve}),He=function(n){return e("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:16,height:16},n,{children:e("path",{fill:"currentColor",d:"M3.988 3.992v8.012H12V3.992zm2 2H10v4.012H5.988zm0 0"})}))};He.displayName="Mie.Icon.Window.Maximize";var qe=function(n){return e("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:16,height:16},n,{children:e("path",{fill:"currentColor",d:"M4 10.008h8v1.988H4zm0 0"})}))};qe.displayName="Mie.Icon.Window.Minimize";var Ue=function(n){return e("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:16,height:16},n,{children:e("path",{fill:"currentColor",d:"M4.988 4.992v6.012H11V4.992zm2 2H9v2.012H6.988zm0 0"})}))};Ue.displayName="Mie.Icon.Window.Restore";var Ge=function(n){return e("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:16,height:16},n,{children:e("path",{fill:"currentColor",d:"M4 4h1.031c.254.012.512.129.688.313L8 6.592l2.313-2.28c.265-.231.445-.305.687-.313h1v1c0 .285-.035.55-.25.75L9.469 8.031l2.25 2.25c.187.188.281.453.281.719v1h-1c-.266 0-.531-.094-.719-.281L8 9.438l-2.281 2.28A1.016 1.016 0 0 1 5 12H4v-1c0-.266.094-.531.281-.719l2.282-2.25L4.28 5.75A.904.904 0 0 1 4 5zm0 0"})}))};Ge.displayName="Mie.Icon.Window.Close";var Ye=Object.freeze({__proto__:null,Close:Ge,Maximize:He,Minimize:qe,Restore:Ue}),Je=function(t){return e("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:16,height:16},t,{children:n("g",{fill:"currentColor",children:[e("path",{d:"M7.996 0C5.16 0 2.703 2 2.125 4.777 1.598 7.313 2.813 9.812 5 11.105V12a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1l.004-.898c2.18-1.293 3.398-3.797 2.867-6.332A6.011 6.011 0 0 0 7.996 0zm0 2a3.994 3.994 0 0 1 3.918 3.18 3.99 3.99 0 0 1-2.312 4.488 1.002 1.002 0 0 0-.602.914V11H7v-.418a1.006 1.006 0 0 0-.602-.914c-1.742-.762-2.703-2.625-2.316-4.484S6.098 2 7.996 2zM6 14v1c0 .555.445 1 1 1h2c.555 0 1-.445 1-1v-1zm0 0"}),e("path",{fillOpacity:.349,d:"M6.645 6.145a.5.5 0 0 0 0 .707l1 1a.5.5 0 0 0 .707 0l1-1a.5.5 0 0 0 0-.707.507.507 0 0 0-.707 0l-.649.648-.644-.648a.507.507 0 0 0-.707 0zm0 0"})]})}))};Je.displayName="Mie.Icon.Dialog.Information";var Qe=function(n){return e("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:16,height:16},n,{children:e("path",{fill:"currentColor",d:"M6 1a5 5 0 1 0 0 10 4.989 4.989 0 0 0 2.383-.617L9 11v2h2v2h4v-3l-4.309-4.309c.2-.543.305-1.113.309-1.691a5 5 0 0 0-5-5zM5 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 0"})}))};Qe.displayName="Mie.Icon.Dialog.Password";var Xe=function(n){return e("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:16,height:16},n,{children:e("path",{fill:"currentColor",d:"M8 .031c-.398 0-.816.16-1.125.469L.5 6.875a1.591 1.591 0 0 0 0 2.25L6.875 15.5a1.591 1.591 0 0 0 2.25 0L15.5 9.125a1.591 1.591 0 0 0 0-2.25L9.125.5A1.61 1.61 0 0 0 8 .031zm.152 2.977a2.99 2.99 0 0 1 1.97.87 3.012 3.012 0 0 1 .651 3.27A3.015 3.015 0 0 1 9 8.82V10H7V8c0-.55.45-1 1-1a1 1 0 1 0-1-1H5c0-1.21.734-2.309 1.852-2.77a2.945 2.945 0 0 1 1.3-.222zM8 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 0"})}))};Xe.displayName="Mie.Icon.Dialog.Question";var Ze=function(n){return e("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:16,height:16},n,{children:e("path",{fill:"currentColor",d:"M7.906.094C7.38.066 6.867.375 6.47 1.063L.219 12.655C-.316 13.621.266 15 1.312 15H14.47c.98 0 1.902-1.16 1.219-2.344L9.375 1.125C8.977.48 8.434.121 7.906.094zM9 4v5c.008.527-.473 1-1 1s-1.008-.473-1-1V4zm-1 7c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 0"})}))};Ze.displayName="Mie.Icon.Dialog.Warning";var Ke=function(n){return e("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:16,height:16},n,{children:e("path",{fill:"currentColor",d:"M8 1C4.129 1 1 4.129 1 8s3.129 7 7 7 7-3.129 7-7-3.129-7-7-7zM4 7h8v2H4zm0 0"})}))};Ke.displayName="Mie.Icon.Dialog.Error";var en=Object.freeze({__proto__:null,Error:Ke,Information:Je,Password:Qe,Question:Xe,Warning:Ze}),nn=Object.freeze({__proto__:null,Dialog:en,EmblemOk:j,Window:Ye});function tn(r){var a=r.description,o=r.onClose,i=r.title,c=r.icon;return n(t,{children:[c&&e("div",{className:"icon",children:c}),n("div",{className:"content",children:[i&&e("div",{className:"title",children:i}),a&&e("div",{className:"description",children:a})]}),e(O,{icon:e(q,{icon:e(Ge,{})}),onClick:o,className:"close",size:"small",transparent:!0,circular:!0})]})}var rn=a((function(n,t){var r=n.description,a=n.attached,o=n.children,i=n.onClose,c=n.accent,s=n.marked,l=n.banner,u=n.color,f=n.title,d=n.size,p=n.icon,v=y(n,["description","attached","children","onClose","accent","marked","banner","color","title","size","icon"]),b=m("mie message",!0===c?"accent":c,u,d,{banner:l,marked:s},a&&"attached attached-".concat(a));return e("div",h({ref:t,className:b},v,{children:o||e(tn,h({},{description:r,onClose:i,title:f,icon:p}))}))}));rn.displayName="Mie.Message";var an=Object.assign(rn,{Content:tn}),on={maximize:e(He,{}),minimize:e(qe,{}),restore:e(Ue,{}),close:e(Ge,{})},cn=a((function(n,t){var r=n.icons,a=void 0===r?on:r,o=n.className,i=n.onClickControl,c=n.controls,s=y(n,["icons","className","onClickControl","controls"]),l=m("mie window-controls",o),u=he(a,on);return e("div",h({ref:t},s,{className:l,children:c.map((function(n,t){return e(O,{onClick:function(e){return null==i?void 0:i(e,n)},icon:e(q,{icon:u[n]}),transparent:"close"!==n,className:n,size:"tiny",circular:!0},"".concat(n,"-").concat(t))}))}))}));cn.displayName="Mie.Window.Controls";var sn=a((function(t,r){var a=t.className,o=t.transparent,i=t.bordered,c=t.controls,s=t.accent,l=t.header,u=t.left,f=t.right,d=y(t,["className","transparent","bordered","controls","accent","header","left","right"]),p=m("mie headerbar",s&&(!0===s?"accent":s),{transparent:o,bordered:i},a);return n("div",h({ref:r},d,{className:p,children:[!!d["data-desktop-drag"]&&e("div",h({},{"data-tauri-drag-region":!0,style:{WebkitAppRegion:"drag",position:"absolute",height:"100%",width:"100%",left:0,top:0}})),e("div",{className:"left",children:u}),e("div",{className:"center",children:l}),n("div",{className:"right",children:[e("div",{className:"content",children:f}),c]})]}))}));sn.displayName="Mie.HeaderBar";var ln=a((function(t,r){var a=t.className,o=t.animateStyle,i=void 0===o?"width":o,c=t.opened,s=void 0!==c&&c,l=t.headerbar,u=t.children,f=t.accent,d=t.color,p=t.size,v=y(t,["className","animateStyle","opened","headerbar","children","accent","color","size"]),b=m("mie sidebar",p,f&&(!0===f?"accent":f),d,i,{opened:s},a);return e("div",h({ref:r},v,{className:b,children:n("div",{className:"content",children:[l&&l,u]})}))}));ln.displayName="Mie..Sidebar";var un=a((function(t,r){var a=t.className,o=t.contentClassName,i=t.headerbar,c=t.children,s=t.sidebar,l=t.overlay,u=t.accent,f=t.color,d=y(t,["className","contentClassName","headerbar","children","sidebar","overlay","accent","color"]),p=m("mie splitview",u&&(!0===u?"accent":u),f,a);return n("div",h({ref:r},d,{className:p,children:[s,l&&e("div",{onClick:l,className:"overlay"}),n("div",{className:"container",children:[i,e("div",{className:m("content",o),children:c})]})]}))}));un.displayName="Mie.SplitView";var fn=Object.assign(un,{Sidebar:ln}),dn=a((function(r,a){var o=r.className,i=r.transparent,c=r.children,s=r.headerbar,l=r.split,u=r.accent,f=r.color,d=y(r,["className","transparent","children","headerbar","split","accent","color"]),p=m("mie window",u&&(!0===u?"accent":u),f,{transparent:i},o);return e("div",h({ref:a},d,{className:p,children:l?e(fn,h({},l,{children:c})):n(t,{children:[s&&e(sn,h({},s)),c]})}))}));dn.displayName="Mie.Window";var pn=Object.assign(dn,{Controls:cn});function vn(n){var t=we(n),r=t.props,a=r.className,o=r.height,i=r.offset,c=r.accent,s=r.color,l=r.width,u=ge(y(t,["props"]),{flex:!1}),f=c&&(!0===c?"accent":c),d=m.apply(void 0,b(b(["mie tab background",f,s],u,!1),[a],!1));return e("div",{className:d,style:{height:o,width:l,left:i}})}var mn=a((function(n,t){var r=n.className,a=n.accent,o=n.color,i=n.children,c=m("mie tabs",a&&(!0===a?"accent":a),o,r);return e("div",{ref:t,className:c,children:i})}));mn.displayName="Mie.Tabs.Raw";var hn=a((function(e,t){var r=we(e),a=r.props,o=a.className,i=a.transparent,c=a.selected,s=a.onClick,l=a.accent,u=a.color,f=a.title,d=a.icon,p=a.name,v=ge(y(r,["props"]),{flex:!1}),h=l&&(!0===l?"accent":l),g=p===c,w=m.apply(void 0,b(["mie tab",h,u,o,{active:g,transparent:i}],v,!1));return n("div",{ref:t,className:w,onClick:s,children:[d&&d,f]})}));hn.displayName="Mie.Tabs.Tab";var yn=a((function(t,r){var a=l(null),o=l(null),d=i(0),p=d[0],v=d[1],g=i(0),w=g[0],N=g[1],x=i(0),E=x[0],O=x[1],j=f((function(){return Array.isArray(t.tabs)?t.tabs.find((function(e){return t.selected===e.name})):t.tabs[t.selected]}),[t.tabs,t.selected]);if(!j)throw new Error("Property 'selected' required in Tabs component.");var _=we(t),C=_.props,S=C.className,k=C.tabProps,M=C.transparent,z=C.onChange,A=C.animated,R=C.selected,P=C.accent,I=C.color,T=C.tabs,$=P&&(!0===P?"accent":P),L=ge(y(_,["props"]),{flex:!1});c((function(){if(a.current){var e=a.current,n=e.offsetLeft,t=e.clientWidth,r=e.clientHeight;v(r),N(n),O(t)}}),[R,a]);var B=s((function(e,n){return function(e){null==z||z(n)}}),[z,T]);u(r,(function(){return{}}));var D=s((function(n,t){var r=h(h({ref:R===n.name?a:o,onClick:B(t,n.name),transparent:A,selected:R,index:t},k),n);return e(hn,h({},r),n.name)}),[R,A,k]),V=Array.isArray(T)?T.map(D):Object.entries(T).map((function(e,n){e[0];var t=e[1];return D(t,n)})),F=m.apply(void 0,b(b(["mie tabs",$,I,{transparent:M}],L,!1),[S],!1));return n("div",{className:F,children:[V,A&&e(vn,h({},k,{accent:j.accent,color:j.color,offset:w,height:p,width:E}))]})}));yn.displayName="Mie.Tabs";var bn=Object.assign(yn,{Raw:mn}),gn=a((function(n,t){var r=n.className,a=n.style,o=n.children,s=n.open,u=y(n,["className","style","children","open"]),f=i(s?void 0:0),d=f[0],p=f[1],v=l(null);c((function(){if(d&&s&&v.current){var e=new ResizeObserver((function(e){var n=e[0].contentRect;p(n.height)}));return e.observe(v.current),function(){e.disconnect()}}}),[d,s]),c((function(){var e,n=null===(e=v.current)||void 0===e?void 0:e.getBoundingClientRect().height;p(s?n:0)}),[s]);var b=m("mie collapsible",r),g=Object.assign({},{height:d},a||{});return e("div",h({ref:t,className:b,style:g},u,{children:e("div",{ref:v,children:o})}))}));gn.displayName="Mie.Collapsible";var wn=a((function(n,t){var r=n.className,a=n.children,o=n.accent,i=n.color,c=n.active,s=n.hover,l=y(n,["className","children","accent","color","active","hover"]),u=m("mie activatable",o&&(!0===o?"accent":o),i,{active:c,hover:s},r);return e("div",h({ref:t},l,{className:u,children:a}))}));function Nn(e,n){void 0===n&&(n=document.body);var t=document.getElementById(e);if(t)return t;var r=document.createElement("div");return r.setAttribute("id",e),n.appendChild(r),r}function xn(n){var t=n.isOpen,r=n.onRequestClose;return t&&e("div",{className:"mie modal-overlay",onClick:r})}wn.displayName="Mie.Activatable";function En(t){var r=t.children,a=y(t,["children"]),o=p(e(xn,h({},a)),Nn("overlay-root")),i=p(r,Nn("modal-root"));return n("div",{children:[o,i]})}function On(){return On=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},On.apply(null,arguments)}function jn(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.includes(r))continue;t[r]=e[r]}return t}function _n(e,n){return _n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},_n(e,n)}function Cn(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,_n(e,n)}var Sn,kn={exports:{}},Mn={exports:{}},zn={};var An,Rn,Pn,In,Tn,$n,Ln,Bn,Dn,Vn,Fn,Wn,Hn,qn,Un={}; /** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function Gn(){return Rn||(Rn=1,"production"===process.env.NODE_ENV?Mn.exports=function(){if(Sn)return zn;Sn=1;var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case n:switch(e=e.type){case s:case l:case r:case o:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case u:case v:case p:case i:return e;default:return d}}case t:return d}}}function w(e){return g(e)===l}return zn.AsyncMode=s,zn.ConcurrentMode=l,zn.ContextConsumer=c,zn.ContextProvider=i,zn.Element=n,zn.ForwardRef=u,zn.Fragment=r,zn.Lazy=v,zn.Memo=p,zn.Portal=t,zn.Profiler=o,zn.StrictMode=a,zn.Suspense=f,zn.isAsyncMode=function(e){return w(e)||g(e)===s},zn.isConcurrentMode=w,zn.isContextConsumer=function(e){return g(e)===c},zn.isContextProvider=function(e){return g(e)===i},zn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},zn.isForwardRef=function(e){return g(e)===u},zn.isFragment=function(e){return g(e)===r},zn.isLazy=function(e){return g(e)===v},zn.isMemo=function(e){return g(e)===p},zn.isPortal=function(e){return g(e)===t},zn.isProfiler=function(e){return g(e)===o},zn.isStrictMode=function(e){return g(e)===a},zn.isSuspense=function(e){return g(e)===f},zn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===o||e===a||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===p||e.$$typeof===i||e.$$typeof===c||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===m)},zn.typeOf=g,zn}():Mn.exports=(An||(An=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case n:var m=e.type;switch(m){case s:case l:case r:case o:case a:case f:return m;default:var h=m&&m.$$typeof;switch(h){case c:case u:case v:case p:case i:return h;default:return d}}case t:return d}}}var w=s,N=l,x=c,E=i,O=n,j=u,_=r,C=v,S=p,k=t,M=o,z=a,A=f,R=!1;function P(e){return g(e)===l}Un.AsyncMode=w,Un.ConcurrentMode=N,Un.ContextConsumer=x,Un.ContextProvider=E,Un.Element=O,Un.ForwardRef=j,Un.Fragment=_,Un.Lazy=C,Un.Memo=S,Un.Portal=k,Un.Profiler=M,Un.StrictMode=z,Un.Suspense=A,Un.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(e)||g(e)===s},Un.isConcurrentMode=P,Un.isContextConsumer=function(e){return g(e)===c},Un.isContextProvider=function(e){return g(e)===i},Un.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},Un.isForwardRef=function(e){return g(e)===u},Un.isFragment=function(e){return g(e)===r},Un.isLazy=function(e){return g(e)===v},Un.isMemo=function(e){return g(e)===p},Un.isPortal=function(e){return g(e)===t},Un.isProfiler=function(e){return g(e)===o},Un.isStrictMode=function(e){return g(e)===a},Un.isSuspense=function(e){return g(e)===f},Un.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===o||e===a||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===p||e.$$typeof===i||e.$$typeof===c||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===m)},Un.typeOf=g}()),Un)),Mn.exports} /* object-assign (c) Sindre Sorhus @license MIT */function Yn(){if(In)return Pn;In=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;return Pn=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,a){for(var o,i,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),s=1;s<arguments.length;s++){for(var l in o=Object(arguments[s]))n.call(o,l)&&(c[l]=o[l]);if(e){i=e(o);for(var u=0;u<i.length;u++)t.call(o,i[u])&&(c[i[u]]=o[i[u]])}}return c},Pn}function Jn(){if($n)return Tn;$n=1;return Tn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Qn(){return Bn?Ln:(Bn=1,Ln=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Xn=Gn();kn.exports=function(){if(Wn)return Fn;Wn=1;var e=Gn(),n=Yn(),t=Jn(),r=Qn(),a=function(){if(Vn)return Dn;Vn=1;var e=function(){};if("production"!==process.env.NODE_ENV){var n=Jn(),t={},r=Qn();e=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}}}function a(a,o,i,c,s){if("production"!==process.env.NODE_ENV)for(var l in a)if(r(a,l)){var u;try{if("function"!=typeof a[l]){var f=Error((c||"React class")+": "+i+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=a[l](o,l,c,i,null,n)}catch(e){u=e}if(!u||u instanceof Error||e((c||"React class")+": type specification of "+i+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in t)){t[u.message]=!0;var d=s?s():"";e("Failed "+i+" type: "+u.message+(null!=d?d:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(t={})},Dn=a}(),o=function(){};function i(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}}),Fn=function(c,s){var l="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",f="<<anonymous>>",d={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:m(i),arrayOf:function(e){return m((function(n,r,a,o,i){if("function"!=typeof e)return new v("Property `"+i+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var c=n[r];if(!Array.isArray(c))return new v("Invalid "+o+" `"+i+"` of type `"+g(c)+"` supplied to `"+a+"`, expected an array.");for(var s=0;s<c.length;s++){var l=e(c,s,a,o,i+"["+s+"]",t);if(l instanceof Error)return l}return null}))},element:m((