/* Riot WIP, @license MIT */vare,t=newMap,r=Symbol("riot-component"),a=newSet,n="is",o="mount",i="update",s="unmount",l="shouldUpdate",u="onBeforeMount",p="onMounted",c="onBeforeUpdate",d="onUpdated",m="onBeforeUnmount",h="onUnmounted",g="props",v="state",f="slots",y="root",x=Symbol("pure"),b=Symbol("is_updating"),T=Symbol("parent"),A=Symbol("attributes"),E=Symbol("template"),w=0,C=2,I=3,k={ATTRIBUTE:w,EVENT:1,TEXT:C,VALUE:I};
/* Riot WIP, @license MIT */functionR(e){returne.replace(/-(\w)/g,(function(e,t){returnt.toUpperCase()}))}functionN(e,t){thrownewError(e,{cause:t})}functionU(e){vart=this,r=newMap,a=function(a){return(r.has(a)||r.set(a,e.call(t,a)))&&r.get(a)};returna.cache=r,a}functionB(e){returne.reduce((function(e,t){varr=t.value,a=t.type;switch(!0){case!t.name&&a===w:returnObject.assign({},e,r);casea===I:e.value=t.value;break;default:e[R(t.name)]=t.value}returne}),{})}functionO(e,t){varr=Object.keys(e);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}returnr}functionS(e){for(vart=1;t<arguments.length;t++){varr=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){G(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}returne}functionD(){D=function(){returne};vare={},t=Object.prototype,r=t.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeofSymbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";functionl(e,t,r){returnObject.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){returne[t]=r}}functionu(e,t,r,n){varo=t&&t.prototypeinstanceofd?t:d,i=Object.create(o.prototype),s=newC(n||[]);returna(i,"_invoke",{value:T(e,r,s)}),i}functionp(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;varc={};functiond(){}functionm(){}functionh(){}varg={};l(g,o,(function(){returnthis}));varv=Object.getPrototypeOf,f=v&&v(v(I([])));f&&f!==t&&r.call(f,o)&&(g=f);vary=h.prototype=d.prototype=Object.create(g);functionx(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){returnthis._invoke(t,e)}))}))}functionb(e,t){functionn(a,o,i,s){varl=p(e[a],e,o);if("throw"!==l.type){varu=l.arg,c=u.value;returnc&&"object"==typeofc&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){returnn("throw",e,i,s)}))}s(l.arg)}varo;a(this,"_invoke",{value:function(e,r){functiona(){returnnewt((function(t,a){n(e,r,t,a)}))}returno=o?o.then(a,a):a()}})}functionT(e,t,r){vara="suspendedStart";returnfunction(n,o){if("executing"===a)thrownewError("Generator is already running");if("completed"===a){if("throw"===n)throwo;returnk()}for(r.method=n,r.arg=o;;){vari=r.delegate;if(i){vars=A(i,r);if(s){if(s===c)continue;returns}}if("next"===r.method)r.sent=r._sent=r.arg;elseif("throw"===r.method){if("suspendedStart"===a)throwa="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";varl=p(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}functionA(e,t){varr=t.method,a=e.iterator[r];if(void0===a)returnt.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void0,A(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=newTypeError("The iterator does not provide a '"+r+"' method")),c;varn=p(a,e.iterator,t.arg);if("throw"===n.type)returnt.method="throw",t.arg=n.arg,t.delegate=null,c;varo=n.arg;returno?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void0),t.delegate=null,c):o:(t.method="throw",t.arg=newTypeError("iterator result is not an object"),t.delegate=null,c)}functionE(e){vart={tryLoc:e[0]};1ine&&(t.catchLoc=e[1]),2ine&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}functionw(e){vart=e.completion||{};t.type="normal",deletet.arg,e.completion=t}functionC(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(
/* Riot WIP, @license MIT */functionne(e,t){returnL(e)===t}functionoe(e){vart=e.ownerSVGElement;return!!t||null===t}functionie(e){return"template"===e.tagName.toLowerCase()}functionse(e){returnne(e,"function")}functionle(e){return!ue(e)&&e.constructor===Object}functionue(e){returnnull==e}functionpe(){returnthis}functionce(e){returnse(e)?e.prototype&&e.prototype.constructor?newe:e():e}varde=Object.freeze((G(e={},o,pe),G(e,i,pe),G(e,s,pe),e)),me=Object.assign({},de,{clone:pe,createDOM:pe});functionhe(e){for(;e.firstChild;)e.removeChild(e.firstChild)}varge,ve,fe=function(e){returne.remove()},ye=function(e,t){returnt&&t.parentNode&&t.parentNode.insertBefore(e,t)},xe={EACH:0,IF:1,SIMPLE:2,TAG:3,SLOT:4};
functiondt(e,t){(function(e){returnit(e,n)||e.tagName.toLowerCase()})(e)!==t&&ot(e,n,t)}functionmt(e,t){returnObject.assign({},e,ce(t))}functionht(e,t){returnvoid0===t&&(t={}),Object.assign({},function(e){returnArray.from(e.attributes).reduce((function(e,t){returne[R(t.name)]=t.value,e}),{})}(e),ce(t))}functiongt(e,t){varr,n=t.slots,o=t.attributes,i=t.props;returnr=function(e){returnJ(a).reduce((function(e,t){returnt(e)||e}),e)}(Te(le(e)?Object.create(e):e,{mount:function(t,r,a){returnvoid0===r&&(r={}),be(t,x,!1),this[T]=a,this[A]=function(e,t){void0===t&&(t=[]);varr=t.map((function(t){returnGe(e,t)})),a={};returnObject.assign(a,Object.assign({expressions:r},Qe((function(e){returnfunction(t){returnr.forEach((function(r){returnr[e](t)})),a}}))))}(t,o).mount(a),be(this,g,Object.freeze(Object.assign({},ht(t,i),B(this[A].expressions)))),this[v]=mt(this[v],r),this[E]=this.template.createDOM(t).clone(),Je(t,this),e.name&&dt(t,e.name),be(this,y,t),be(this,f,n),this[u](this[g],this[v]),this[E].mount(t,this,a),this[p](this[g],this[v]),this},update:function(e,t){void0===e&&(e={}),t&&(this[T]=t,this[A].update(t));varr=B(this[A].expressions);if(!1!==this[l](r,this[g]))returnbe(this,g,Object.freeze(Object.assign({},this[g],r))),this[v]=mt(this[v],e),this[c](this[g],this[v]),this[b]||(this[b]=!0,this[E].update(this,this[T])),this[d](this[g],this[v]),this[b]=!1,this},unmount:function(e){returnthis[m](this[g],this[v]),this[A].unmount(),this[E].unmount(this,this[T],null===e?null:!e),this[h](this[g],this[v]),this}})),Object.keys(e).filter((function(t){returnse(e[t])})).forEach((function(e){r[e]=r[e].bind(r)})),r}functionvt(e){vart,r,a=e.css,n=e.template,o=e.componentAPI,i=e.name;returna&&i&&pt.add(i,a),ct(gt)(Te(Ae(o,Object.assign({},at,(G(t={},g,{}),G(t,v,{}),t))),Object.assign((G(r={},f,null),G(r,y,null),r),rt,{name:i,css:a,template:n})))}varft=function(e){varr,a=(void0===(r=e.exports?e.exports.components:{})&&(r={}),Object.entries(ce(r)).reduce((function(e,t){varr,a=K(t,2),n=a[0],o=a[1];returne[(r=n,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())]=xt(o),e}),{}));returnfunction(r){returnr===e.name?yt(e):a[r]||t.get(r)}},yt=U(xt);functionxt(e){vart=e.css,r=e.template,a=e.exports,n=e.name,i=r?function(e,t,r){returne(Ye,k,xe,r)}(r,0,ft(e)):me;returnfunction(e){vars=e.slots,l=e.attributes,u=e.props;if(a&&a[x])returnfunction(e,t){varr=t.slots,a=t.attributes,n=t.props,i=t.css;t.template&&N("Pure components can not have html"),i&&N("Pure components do not have css");vars=Ae(e({slots:r,attributes:a,props:n}),de);returnQe((function(e){returnfunction(){for(vart=arguments.length,r=newArray(t),a=0;a<t;a++)r[a]=arguments[a];if(e===o){varn=r[0];be(n,x,!0),Je(n,s)}returns[e].apply(s,r),s}}))}(a,{slots:s,attributes:l,props:u,css:t,template:r});varp=ce(a)||{},c=vt({css:t,template:i,componentAPI:p,name:n})({slots:s,attributes:l,props:u});return{mount:function(e,t,r){returnc.mount(e,r,t)},update:function(e,t){returnc.update(t,e)},unmount:function(e){returnc.unmount(e)}}}}
/* Riot v7.1.0, @license MIT */functionbt(e,r){vara=r.css,n=r.template,o=r.exports;returnt.has(e)&&N('The component "'.concat(e,'" was already registered')),t.set(e,xt({name:e,css:a,template:n,exports:o})),t}
varTt={cssManager:pt,DOMBindings:{template:Ye,createBinding:qe,createExpression:Ge,bindingTypes:xe,expressionTypes:k},globals:{DOM_COMPONENT_INSTANCE_PROPERTY:r,PARENT_KEY_SYMBOL:T}},At=function(e){V(r,e);vart=W(r);functionr(e,a,n){varo;returnM(this,r),o=t.call(this),e||console.error("You should set container to the wave!"),o.container=e,o.maxOpacity=a.opacity||.6,o.duration=a.duration||750,o.color=a.color||"#fff",o.center=a.center||!1,o.event=n,o.containerBound=o.receiveBound(),o.maxScale=o.containerBound.size/100*10,o.created=Date.now(),o.start={},o.createNode(),o.waveIn(),o}returnP(r,[{key:"createNode",value:function(){this.wave=document.createElement("div"),this.wave.classList.add("wave"),this.container.appendChild(this.wave)}},{key:"waveIn",value:function(){vare=this;this.center&&!this.event&&console.error("Setup at least mouse event... Or just set center attribute"),this.start.x=this.center?this.containerBound.height/2:this.event.pageY-this.containerBound.offsetTop,this.start.y=this.center?this.containerBound.width/2:this.event.pageX-this.containerBound.offsetLeft;vart=-1!==window.navigator.userAgent.indexOf("Trident");setTimeout((function(){returne.setStyles(e.maxOpacity)}),t?50:0)}},{key:"waveOut",value:function(e){vart=this,r=Date.now()-this.created,a=Math.round(this.duration/2)-r;setTimeout((function(){t.setStyles(0),setTimeout((function(){t.wave.parentNode===t.container&&(t.container.removeChild(t.wave),e())}),t.duration)}),a>0?a:0)}},{key:"setStyles",value:function(e){this.wave.setAttribute("style",this.convertStyle({top:"".concat(this.start.x,"px"),left:"".concat(this.start.y,"px"),transform:"scale(".concat(this.maxScale,")"),"transition-duration":"".concat(this.duration,"ms"),"transition-timing-function":"cubic-bezier(0.250, 0.460, 0.450, 0.940)",background:this.color,opacity:e}))}},{key:"convertStyle",value:function(e){vart="";returnObject.keys(e).forEach((function(r){e.hasOwnProperty(r)&&(t+=r+":"+e[r]+";")})),t}}]),r}(function(){functione(){M(this,e)}returnP(e,[{key:"receiveBound",value:function(){vare;this.container||console.error("Yor class must contain a container. It is DOM Element. Define please this.container property.");vart=this.container&&this.container.ownerDocument,r=t.documentElement;"undefined"!==L(this.container.getBoundingClientRect)&&(e=this.container.getBoundingClientRect());vara=this.getWindow(t);returnthis.mix(e,{size:Math.max(e.width,e.height),offsetTop:e.top+a.pageYOffset-r.clientTop,offsetLeft:e.left+a.pageXOffset-r.clientLeft})}},{key:"isWindow",value:function(e){returnnull!==e&&e===e.window}},{key:"getWindow",value:function(e){returnthis.isWindow(e)?e:9===e.nodeType&&e.defaultView}},{key:"mix",value:function(e,t){for(varrine)rint||(t[r]=e[r]);returnt}}]),e}()),Et={css:null,exports:{onMounted(){this._waves=[],this._events=[]},launch(e){vart=newAt(this.$("#waves"),this.props,e);this._waves.push(t),this.props.onWaveStart&&this.props.onWaveStart(t),this._events.length||(this._events.push(e.target.addEventListener("mouseup",(()=>this.hold()))),this._events.push(e.target.addEventListener("mouseleave",(()=>this.hold()))))},hold(){this._waves[this._waves.length-1]&&this._waves[this._waves.length-1].waveOut(this.waveOut),this._waves[this._waves.length-1]&&this._waves.slice(this._waves.length-1,1)},waveOut(){this.props.onWaveEnd&&this.props.onWaveEnd()}},template:(e,t,r,a)=>e('<div expr170="expr170" id="waves"></div>',[{redundantAttribute:"expr170",selector:"[expr170]",expressions:[{type:t.EVENT,name:"onmousedown",evaluate:e=>e.launch}]}]),name:"material-waves"},wt=function(e){return""===e||"true"===e},Ct=function(e){if("function"==typeofe){vart=$(Array,Array.prototype.slice.call(arguments)).slice(1);e.apply(void0,J(t))}},It={array:function(e){if(!e)return[];for(vart=[],r=0;r<e.length;r++)t.push(e.item(r));returnt},children:function(e){returnIt.array(e&&e.children)}};constkt=["disabled","rounded","icon","shadow","outlined","inverted"];varRt={css:null,exports:{state:{attributes:{}},components:{MaterialWaves:Et},onMounted(e,t){this.updateAttributes(e,t),th