(()=>{var t,e={837:(t,e,n)=>{"use strict";var i={};n.r(i),n.d(i,{__:()=>ee,component:()=>Zt,install:()=>qt,mount:()=>$t,pure:()=>Jt,register:()=>Wt,uninstall:()=>Kt,unmount:()=>Gt,unregister:()=>Vt,version:()=>te,withTypes:()=>Qt}); /* Riot WIP, @license MIT */ const r=new Map,s=Symbol("riot-component"),o=new Set,a="mount",u="update",c="unmount",l="shouldUpdate",h="onBeforeMount",p="onMounted",d="onBeforeUpdate",f="onUpdated",m="onBeforeUnmount",v="onUnmounted",g="props",y="state",b="slots",T="root",x=Symbol("pure"),E=Symbol("is_updating"),O=Symbol("parent"),A=Symbol("attributes"),w=Symbol("template"),_={ATTRIBUTE:0,EVENT:1,TEXT:2,VALUE:3};function N(t){return t.replace(/-(\w)/g,((t,e)=>e.toUpperCase()))} /* Riot WIP, @license MIT */ function S(t,e){throw new Error(t,{cause:e})}function j(t){const e=new Map,n=n=>(e.has(n)||e.set(n,t.call(this,n)))&&e.get(n);return n.cache=e,n}function C(t){return t.reduce(((t,e)=>{const{value:n,type:i}=e;switch(!0){case!e.name&&0===i:return Object.assign({},t,n);case 3===i:t.value=e.value;break;default:t[N(e.name)]=e.value}return t}),{})} /* Riot WIP, @license MIT */ function M(t,e){return typeof t===e}function I(t){const e=t.ownerSVGElement;return!!e||null===e}function P(t){return"template"===t.tagName.toLowerCase()}function D(t){return M(t,"function")}function R(t){return!k(t)&&t.constructor===Object}function k(t){return null==t} /* Riot WIP, @license MIT */ function z(){return this}function L(t){return D(t)?t.prototype&&t.prototype.constructor?new t:t():t} /* Riot v7.1.0, @license MIT */ const U=Object.freeze({[a]:z,[u]:z,[c]:z}),Y=Object.assign({},U,{clone:z,createDOM:z});function X(t){for(;t.firstChild;)t.removeChild(t.firstChild)}const F=t=>t.remove(),H=(t,e)=>e&&e.parentNode&&e.parentNode.insertBefore(t,e),B={EACH:0,IF:1,SIMPLE:2,TAG:3,SLOT:4}; /* Riot WIP, @license MIT */ function W(t,e,n,i){return void 0===i&&(i={}),Object.defineProperty(t,e,Object.assign({value:n,enumerable:!1,writable:!1,configurable:!0},i)),t}function q(t,e,n){return Object.entries(e).forEach((e=>{let[i,r]=e;W(t,i,r,n)})),t}function V(t,e){return Object.entries(e).forEach((e=>{let[n,i]=e;t[n]||(t[n]=i)})),t} /* Riot WIP, @license MIT */ const $=Symbol(),G=Symbol();function K(t){const e=t.dom.cloneNode(!0),{head:n,tail:i}=function(){const t=document.createTextNode(""),e=document.createTextNode("");return t[$]=!0,e[G]=!0,{head:t,tail:e}}();return{avoidDOMInjection:!0,fragment:e,head:n,tail:i,children:[n,...Array.from(e.childNodes),i]}}const Z=Symbol("unmount"),J={nodes:[],mount(t,e){return this.update(t,e)},update(t,e){const{placeholder:n,nodes:i,childrenMap:r}=this,s=t===Z?null:this.evaluate(t),o=s?Array.from(s):[],{newChildrenMap:a,batches:u,futureNodes:c}=function(t,e,n,i){const{condition:r,template:s,childrenMap:o,itemName:a,getKey:u,indexName:c,root:l,isTemplateTag:h}=i,p=new Map,d=[],f=[];return t.forEach(((t,i)=>{const m=function(t,e){let{itemName:n,indexName:i,index:r,item:s}=e;W(t,n,s),i&&W(t,i,r);return t}(Object.create(e),{itemName:a,indexName:c,index:i,item:t}),v=u?u(m):i,g=o.get(v),y=[];if(function(t,e){return!!t&&!t(e)}(r,m))return;const b=!g,T=g?g.template:s.clone(),x=T.el||l.cloneNode(),E=h&&b?K(T):T.meta;b?d.push((()=>T.mount(x,m,n,E))):d.push((()=>T.update(m,n))),h?y.push(...E.children):y.push(x),o.delete(v),f.push(...y),p.set(v,{nodes:y,template:T,context:m,index:i})})),{newChildrenMap:p,batches:d,futureNodes:f}}(o,t,e,this);return((t,e,n,i)=>{const r=e.length;let s=t.length,o=r,a=0,u=0,c=null;for(;ai-u){const r=n(t[a],0);for(;u{if(i<0){const n=t[t.length-1];if(n){const{template:i,nodes:r,context:s}=n;r.pop(),r.length||(t.pop(),i.unmount(s,e,null))}}return n}}(Array.from(r.values()),e),n),u.forEach((t=>t())),this.childrenMap=a,this.nodes=c,this},unmount(t,e){return this.update(Z,e),this}};const Q={mount(t,e){return this.update(t,e)},update(t,e){const n=!!this.evaluate(t),i=!this.value&&n,r=this.value&&!n,s=()=>{const n=this.node.cloneNode();H(n,this.placeholder),this.template=this.template.clone(),this.template.mount(n,t,e)};switch(!0){case i:s();break;case r:this.unmount(t);break;default:n&&this.template.update(t,e)}return this.value=n,this},unmount(t,e){return this.template.unmount(t,e,!0),this}};const tt="undefined"==typeof Element?{}:Element.prototype,et=j((t=>tt.hasOwnProperty(t)));function nt(t,e,n,i){let{name:r}=e;if(!r)return i&&function(t,e,n){const i=e?Object.keys(e):[];Object.keys(n).filter((t=>!i.includes(t))).forEach((e=>t.removeAttribute(e)))}(t,n,i),void(n&&function(t,e){Object.entries(e).forEach((e=>{let[n,i]=e;return nt(t,{name:n},i)}))}(t,n));!et(r)&&(function(t){return M(t,"boolean")}(n)||R(n)||D(n))&&(t[r]=n),!function(t){return!t&&0!==t}(n)?function(t){return!0===t||["string","number"].includes(typeof t)}(n)&&t.setAttribute(r,function(t,e){return!0===e?t:e}(r,n)):t.removeAttribute(r)}const it=/^on/,rt={handleEvent(t){this[t.type](t)}},st=new WeakMap;function ot(t){return k(t)?"":t}const at=(t,e)=>{const n=t.childNodes[e];if(n.nodeType===Node.COMMENT_NODE){const e=document.createTextNode("");return t.replaceChild(e,n),e}return n};const ut={0:nt,1:function(t,e,n){let{name:i}=e;const r=i.replace(it,""),s=st.get(t)||(t=>{const e=Object.create(rt);return st.set(t,e),e})(t),[o,a]=(t=>Array.isArray(t)?t:[t,!1])(n),u=s[r],c=o&&!u;u&&!o&&t.removeEventListener(r,s),c&&t.addEventListener(r,s,a),s[r]=o},2:function(t,e,n){t.data=ot(n)},3:function(t,e,n){t.value=ot(n)}},ct={mount(t){return this.value=this.evaluate(t),lt(this,this.value),this},update(t){const e=this.evaluate(t);return this.value!==e&&(lt(this,e),this.value=e),this},unmount(){return 1===this.type&<(this,null),this}};function lt(t,e){return ut[t.type](t.node,t,e,t.value)}function ht(t,e){return Object.assign({},ct,e,{node:2===e.type?at(t,e.childNodeIndex):t})}const pt=(t,e)=>t[O]||e,dt={attributes:[],getTemplateScope(t,e){return function(t,e,n){if(!t||!t.length)return n;const i=t.map((t=>Object.assign({},t,{value:t.evaluate(e)})));return Object.assign(Object.create(n||null),C(i))}(this.attributes,t,e)},mount(t,e){const n=!!t.slots&&t.slots.find((t=>{let{id:e}=t;return e===this.name})),{parentNode:i}=this.node,r=pt(t,e);return this.template=n&&Et(n.html,n.bindings).createDOM(i),this.template&&(X(this.node),this.template.mount(this.node,this.getTemplateScope(t,r),r),this.template.children=Array.from(this.node.childNodes)),ft(this.node),F(this.node),this},update(t,e){if(this.template){const n=pt(t,e);this.template.update(this.getTemplateScope(t,n),n)}return this},unmount(t,e,n){return this.template&&this.template.unmount(this.getTemplateScope(t,e),null,n),this}};function ft(t){const e=t&&t.firstChild;e&&(H(e,t),ft(t))}function mt(t){return t.reduce(((t,e)=>{let{bindings:n}=e;return t.concat(n)}),[])}const vt={mount(t){return this.update(t)},update(t,e){const n=this.evaluate(t);return n&&n===this.name?this.tag.update(t):(this.unmount(t,e,!0),this.name=n,this.tag=function(t,e,n){return void 0===e&&(e=[]),void 0===n&&(n=[]),t?t({slots:e,attributes:n}):Et(function(t){return t.reduce(((t,e)=>t+e.html),"")}(e),[...mt(e),{expressions:n.map((t=>Object.assign({type:0},t)))}])}(this.getComponent(n),this.slots,this.attributes),this.tag.mount(this.node,t)),this},unmount(t,e,n){return this.tag&&this.tag.unmount(n),this}};const gt={1:function(t,e){let{evaluate:n,template:i}=e;const r=document.createTextNode("");return H(r,t),F(t),Object.assign({},Q,{node:t,evaluate:n,placeholder:r,template:i.createDOM(t)})},2:function(t,e){let{expressions:n}=e;return Object.assign({},(i=n.map((e=>ht(t,e))),["mount","update","unmount"].reduce(((t,e)=>Object.assign({},t,{[e]:t=>i.map((n=>n[e](t)))&&r})),{})));var i,r},0:function(t,e){let{evaluate:n,condition:i,itemName:r,indexName:s,getKey:o,template:a}=e;const u=document.createTextNode(""),c=t.cloneNode();return H(u,t),F(t),Object.assign({},J,{childrenMap:new Map,node:t,root:c,condition:i,evaluate:n,isTemplateTag:P(c),template:a.createDOM(t),getKey:o,indexName:s,itemName:r,placeholder:u})},3:function(t,e){let{evaluate:n,getComponent:i,slots:r,attributes:s}=e;return Object.assign({},vt,{node:t,evaluate:n,slots:r,attributes:s,getComponent:i})},4:function(t,e){let{name:n,attributes:i}=e;return Object.assign({},dt,{attributes:i,node:t,name:n})}};function yt(t,e){return t.map((t=>2===t.type?Object.assign({},t,{childNodeIndex:t.childNodeIndex+e}):t))}function bt(t,e,n){const{selector:i,type:r,redundantAttribute:s,expressions:o}=e,a=i?t.querySelector(i):t;s&&a.removeAttribute(s);const u=o||[];return(gt[r]||gt[2])(a,Object.assign({},e,{expressions:n&&!i?yt(u,n):u}))}function Tt(t,e){return I(t)?function(t,e){return e.ownerDocument.importNode((new window.DOMParser).parseFromString(`${t}`,"application/xml").documentElement,!0)}(e,t):function(t,e){const n=P(e)?e:document.createElement("template");return n.innerHTML=t,n.content}(e,t)}const xt={createDOM(t){return this.dom=this.dom||function(t,e){return e&&("string"==typeof e?Tt(t,e):e)}(t,this.html)||document.createDocumentFragment(),this},mount(t,e,n,i){void 0===i&&(i={}),t||S("Please provide DOM node to mount properly your template"),this.el&&this.unmount(e);const{fragment:r,children:s,avoidDOMInjection:o}=i,{parentNode:a}=s?s[0]:t,u=P(t),c=u?function(t,e,n){const i=Array.from(t.childNodes);return Math.max(i.indexOf(e),i.indexOf(n.head)+1,0)}(a,t,i):null;this.createDOM(t);const l=r||this.dom.cloneNode(!0);return this.el=u?a:t,this.children=u?s||Array.from(l.childNodes):null,!o&&l&&function(t,e){switch(!0){case I(t):!function(t,e){for(;t.firstChild;)e.appendChild(t.firstChild)}(e,t);break;case P(t):t.parentNode.replaceChild(e,t);break;default:t.appendChild(e)}}(t,l),this.bindings=this.bindingsData.map((t=>bt(this.el,t,c))),this.bindings.forEach((t=>t.mount(e,n))),this.meta=i,this},update(t,e){return this.bindings.forEach((n=>n.update(t,e))),this},unmount(t,e,n){void 0===n&&(n=!1);const i=this.el;if(!i)return this;switch(this.bindings.forEach((i=>i.unmount(t,e,n))),!0){case i[x]||null===n:break;case Array.isArray(this.children):!function(t){for(let e=0;et[s]=e; /* Riot v7.1.0, @license MIT */ function At(t){return[a,u,c].reduce(((e,n)=>(e[n]=t(n),e)),{})} /* Riot WIP, @license MIT */ function wt(t){return Array.isArray(t)?t:/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&"number"==typeof t.length?Array.from(t):[t]} /* Riot WIP, @license MIT */ function _t(t,e){return wt("string"==typeof t?(e||document).querySelectorAll(t):t)} /* Riot v7.1.0, @license MIT */ const Nt=Object.freeze({$(t){return _t(t,this.root)[0]},$$(t){return _t(t,this.root)}}),St=Object.freeze({[l]:z,[h]:z,[p]:z,[d]:z,[f]:z,[m]:z,[v]:z}),jt=t=>1===t.length?t[0]:t;function Ct(t,e,n){const i="object"==typeof e?e:{[e]:n},r=Object.keys(i);return wt(t).forEach((t=>{r.forEach((e=>t.setAttribute(e,i[e])))})),t}function Mt(t,e){return function(t,e,n){const i="string"==typeof e?[e]:e;return jt(wt(t).map((t=>jt(i.map((e=>t[n](e)))))))}(t,e,"getAttribute")} /* Riot v7.1.0, @license MIT */ const It=new Map,Pt=()=>Dt||(Ct(Dt=_t("style[riot]")[0]||document.createElement("style"),"type","text/css"),Dt.parentNode||document.head.appendChild(Dt),Dt);var Dt;const Rt={CSS_BY_NAME:It,add(t,e){return It.has(t)||(It.set(t,e),this.inject()),this},inject(){return Pt().innerHTML=[...It.values()].join("\n"),this},remove(t){return It.has(t)&&(It.delete(t),this.inject()),this}}; /* Riot WIP, @license MIT */ function kt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i(t[N(e.name)]=e.value,t)),{})}(t),L(e))} /* Riot v7.1.0, @license MIT */ function Yt(t,e){let{slots:n,attributes:i,props:r}=e;return s= /* Riot v7.1.0, @license MIT */ function(t){return[...o].reduce(((t,e)=>e(t)||t),t)}(q(R(t)?Object.create(t):t,{mount(e,s,o){return void 0===s&&(s={}),W(e,x,!1),this[O]=o,this[A]= /* Riot v7.1.0, @license MIT */ function(t,e){void 0===e&&(e=[]);const n=e.map((e=>ht(t,e))),i={};return Object.assign(i,Object.assign({expressions:n},At((t=>e=>(n.forEach((n=>n[t](e))),i)))))}(e,i).mount(o),W(this,g,Object.freeze(Object.assign({},Ut(e,r),C(this[A].expressions)))),this[y]=Lt(this[y],s),this[w]=this.template.createDOM(e).clone(),Ot(e,this),t.name&& /* Riot v7.1.0, @license MIT */ function(t,e){zt(t)!==e&&Ct(t,"is",e)}(e,t.name),W(this,T,e),W(this,b,n),this[h](this[g],this[y]),this[w].mount(e,this,o),this[p](this[g],this[y]),this},update(t,e){void 0===t&&(t={}),e&&(this[O]=e,this[A].update(e));const n=C(this[A].expressions);if(!1!==this[l](n,this[g]))return W(this,g,Object.freeze(Object.assign({},this[g],n))),this[y]=Lt(this[y],t),this[d](this[g],this[y]),this[E]||(this[E]=!0,this[w].update(this,this[O])),this[f](this[g],this[y]),this[E]=!1,this},unmount(t){return this[m](this[g],this[y]),this[A].unmount(),this[w].unmount(this,this[O],null===t?null:!t),this[v](this[g],this[y]),this}})),Object.keys(t).filter((e=>D(t[e]))).forEach((t=>{s[t]=s[t].bind(s)})),s;var s} /* Riot v7.1.0, @license MIT */ function Xt(t){let{css:e,template:n,componentAPI:i,name:r}=t;return e&&r&&Rt.add(r,e),kt(Yt)(q(V(i,Object.assign({},St,{[g]:{},[y]:{}})),Object.assign({[b]:null,[T]:null},Nt,{name:r,css:e,template:n})))}const Ft=t=>{const e=(void 0===(n=t.exports?t.exports.components:{})&&(n={}),Object.entries(L(n)).reduce(((t,e)=>{let[n,i]=e; /* Riot WIP, @license MIT */ var r;return t[(r=n,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())]=Bt(i),t}),{})); /* Riot v7.1.0, @license MIT */ var n;return n=>n===t.name?Ht(t):e[n]||r.get(n)},Ht=j(Bt);function Bt(t){const{css:e,template:n,exports:i,name:r}=t,s=n? /* Riot v7.1.0, @license MIT */ function(t,e,n){return t(Et,_,B,n)}(n,0,Ft(t)):Y;return t=>{let{slots:o,attributes:u,props:c}=t;if(i&&i[x]) /* Riot v7.1.0, @license MIT */return function(t,e){let{slots:n,attributes:i,props:r,css:s,template:o}=e;o&&S("Pure components can not have html"),s&&S("Pure components do not have css");const u=V(t({slots:n,attributes:i,props:r}),U);return At((t=>function(){for(var e=arguments.length,n=new Array(e),i=0;ih.mount(t,n,e),update:(t,e)=>h.update(e,t),unmount:t=>h.unmount(t)}}} /* Riot v7.1.0, @license MIT */ function Wt(t,e){let{css:n,template:i,exports:s}=e;return r.has(t)&&S(`The component "${t}" was already registered`),r.set(t,Bt({name:t,css:n,template:i,exports:s})),r} /* Riot v7.1.0, @license MIT */ function qt(t){return D(t)||S("Plugins must be of type function"),o.has(t)&&S("This plugin was already installed"),o.add(t),o} /* Riot v7.1.0, @license MIT */ function Vt(t){return r.has(t)||S(`The component "${t}" was never registered`),r.delete(t),Rt.remove(t),r} /* Riot v7.1.0, @license MIT */ function $t(t,e,n){return _t(t).map((t=> /* Riot v7.1.0, @license MIT */ function(t,e,n,i){const s=n||zt(t);return r.has(s)||S(`The component named "${s}" was never registered`),r.get(s)({props:e,slots:i}).mount(t)}(t,e,n)))} /* Riot v7.1.0, @license MIT */ function Gt(t,e){return _t(t).map((t=>(t[s]&&t[s].unmount(e),t)))} /* Riot v7.1.0, @license MIT */ function Kt(t){return o.has(t)||S("This plugin was never installed"),o.delete(t),o} /* Riot v7.1.0, @license MIT */ function Zt(t){return function(e,n,i){let{slots:r,attributes:s,parentScope:o}=void 0===i?{}:i; /* Riot WIP, @license MIT */ return function(){for(var t=arguments.length,e=new Array(t),n=0;nfunction(){return t(e(...arguments))}))}((t=>t.mount(e,o)),(t=>t({props:n,slots:r,attributes:s})),Bt)(t)}} /* Riot v7.1.0, @license MIT */ function Jt(t){return D(t)||S('riot.pure accepts only arguments of type "function"'),t[x]=!0,t} /* Riot v7.1.0, @license MIT */ const Qt=t=>t,te="v7.1.0",ee={cssManager:Rt,DOMBindings:{template:Et,createBinding:bt,createExpression:ht,bindingTypes:B,expressionTypes:_},globals:{DOM_COMPONENT_INSTANCE_PROPERTY:s,PARENT_KEY_SYMBOL:O}}; /* Riot v7.1.0, @license MIT */ var ne=n(840); /** * Mixin for extends Riot-Component * * @author Björn Hase * @license http://opensource.org/licenses/MIT The MIT License * @link https://gitea.node001.net/tiny-components/slider * */const ie={state:{position:0,max:0,slides:void 0,classes:{item:"tiny-slider__item"}},onMounted:function(){var t=this;this.props.slides&&(this.state.slides=this.props.slides),window.addEventListener("resize",this.update.bind(this)),setTimeout((function(){t.update()}),100),new ne(this.root).on("swipe",(function(e){4===e.direction?t.handlePrevious(e):2===e.direction&&t.handleNext(e)}))},onBeforeUnmount:function(){window.removeEventListener("resize",this.update.bind(this))},onBeforeUpdate:function(t,e){var n=this,i=this.state.max,r=this.$("."+this.state.classes.item);if(r){this.state.max=0,this.state.width=r.offsetWidth,this.$$("."+this.state.classes.item).forEach((function(t,e){t.offsetLeft=s&&this.state.position>1&&(this.state.position-=s)}},handleSelect:function(t,e){t.preventDefault(),this.state.position!==e&&this.update({position:e})},handlePrevious:function(t){t.preventDefault(),this.state.position>0&&this.update({position:--this.state.position})},handleNext:function(t){t.preventDefault(),this.state.position0?t.push("visibility-visible"):t.push("visibility-hidden"),t.join(" ")},getNextClasses:function(){var t=["tiny-slider__button","tiny-slider__button--next"];return this.state.position<=this.props.slides.length-this.state.max?t.push("visibility-visible"):t.push("visibility-hidden"),t.join(" ")},getSelectClasses:function(t){var e=["tiny-slider__select-item"];return this.state.position===t&&e.push("tiny-slider__select-item--current"),e.join(" ")},getContentStyles:function(){var t=-this.state.position*this.state.width;return this.styles({transform:"translate("+t+"px, 0px)"})}};Wt("tiny-raw",{css:null,exports:{setInnerHTML(){this.root.innerHTML=this.props.html},onMounted(){this.setInnerHTML()},onUpdated(){this.setInnerHTML()}},template:(t,e,n,i)=>t("\n\n /**\n * tiny raw\n *\n * @author Björn Hase\n * @license http://opensource.org/licenses/MIT The MIT License\n * @link https://gitea.node001.net/tiny-components/raw\n *\n */\n\n ",[]),name:"tiny-raw"});const re={css:null,exports:()=>({...ie}),template:(t,e,n,i)=>t('
',[{redundantAttribute:"expr0",selector:"[expr0]",expressions:[{type:e.ATTRIBUTE,name:"class",evaluate:t=>t.getPreviousClasses()},{type:e.EVENT,name:"onclick",evaluate:t=>e=>{t.handlePrevious(e)}}]},{redundantAttribute:"expr1",selector:"[expr1]",expressions:[{type:e.ATTRIBUTE,name:"style",evaluate:t=>t.getContentStyles()}]},{type:n.EACH,getKey:null,condition:null,template:t('

',[{redundantAttribute:"expr3",selector:"[expr3]",expressions:[{type:e.TEXT,childNodeIndex:0,evaluate:t=>[t.slide.title].join("")}]},{type:n.IF,evaluate:t=>t.slide.media,redundantAttribute:"expr4",selector:"[expr4]",template:t('',[{redundantAttribute:"expr5",selector:"[expr5]",expressions:[{type:e.ATTRIBUTE,name:"src",evaluate:t=>t.slide.media.url},{type:e.ATTRIBUTE,name:"alt",evaluate:t=>t.slide.media.description}]}])},{type:n.TAG,getComponent:i,evaluate:t=>"tiny-raw",slots:[],attributes:[{type:e.ATTRIBUTE,name:"html",evaluate:t=>t.slide.content}],redundantAttribute:"expr6",selector:"[expr6]"}]),redundantAttribute:"expr2",selector:"[expr2]",itemName:"slide",indexName:null,evaluate:t=>t.state.slides},{redundantAttribute:"expr7",selector:"[expr7]",expressions:[{type:e.ATTRIBUTE,name:"class",evaluate:t=>t.getNextClasses()},{type:e.EVENT,name:"onclick",evaluate:t=>e=>{t.handleNext(e)}}]},{type:n.EACH,getKey:null,condition:null,template:t(null,[{expressions:[{type:e.ATTRIBUTE,name:"class",evaluate:t=>t.getSelectClasses(t.position)},{type:e.EVENT,name:"onclick",evaluate:t=>e=>{t.handleSelect(e,t.position)}}]}]),redundantAttribute:"expr8",selector:"[expr8]",itemName:"slide",indexName:"position",evaluate:t=>t.state.slides}]),name:"tiny-slider"};function se(t){return function(t){if(Array.isArray(t))return ue(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ae(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,s,o,a=[],u=!0,c=!1;try{if(s=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=s.call(n)).done)&&(a.push(i.value),a.length!==e);u=!0);}catch(t){c=!0,r=t}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return a}}(t,e)||ae(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(t,e){if(t){if("string"==typeof t)return ue(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ue(t,e):void 0}}function ue(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n{var i; /*! Hammer.JS - v2.0.7 - 2016-04-22 * http://hammerjs.github.io/ * * Copyright (c) 2016 Jorik Tangelder; * Licensed under the MIT license */!function(r,s,o,a){"use strict";var u,c=["","webkit","Moz","MS","ms","o"],l=s.createElement("div"),h=Math.round,p=Math.abs,d=Date.now;function f(t,e,n){return setTimeout(x(t,n),e)}function m(t,e,n){return!!Array.isArray(t)&&(v(t,n[e],n),!0)}function v(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==a)for(i=0;i\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=r.console&&(r.console.warn||r.console.log);return s&&s.call(r.console,i,n),t.apply(this,arguments)}}u="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n-1}function S(t){return t.trim().split(/\s+/g)}function j(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;in[e]})):i.sort()),i}function I(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),s=0;s1&&!n.firstMultiple?n.firstMultiple=W(e):1===r&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,u=o?o.center:s.center,c=e.center=q(i);e.timeStamp=d(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=K(u,c),e.distance=G(u,c),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};1!==e.eventType&&4!==s.eventType||(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y});e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=$(e.deltaX,e.deltaY);var l=V(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=p(l.x)>p(l.y)?l.x:l.y,e.scale=o?(h=o.pointers,f=i,G(f[0],f[1],F)/G(h[0],h[1],F)):1,e.rotation=o?function(t,e){return K(e[1],e[0],F)+K(t[1],t[0],F)}(o.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,s,o=t.lastInterval||e,u=e.timeStamp-o.timeStamp;if(8!=e.eventType&&(u>25||o.velocity===a)){var c=e.deltaX-o.deltaX,l=e.deltaY-o.deltaY,h=V(u,c,l);i=h.x,r=h.y,n=p(h.x)>p(h.y)?h.x:h.y,s=$(c,l),t.lastInterval=e}else n=o.velocity,i=o.velocityX,r=o.velocityY,s=o.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=s}(n,e);var h,f;var m=t.element;_(e.srcEvent.target,m)&&(m=e.srcEvent.target);e.target=m}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function W(t){for(var e=[],n=0;n=p(e)?t<0?2:4:e<0?8:16}function G(t,e,n){n||(n=X);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function K(t,e,n){n||(n=X);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}H.prototype={handler:function(){},init:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(D(this.element),this.evWin,this.domHandler)}};var Z={mousedown:1,mousemove:2,mouseup:4},J="mousedown",Q="mousemove mouseup";function tt(){this.evEl=J,this.evWin=Q,this.pressed=!1,H.apply(this,arguments)}T(tt,H,{handler:function(t){var e=Z[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:U,srcEvent:t}))}});var et={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},nt={2:L,3:"pen",4:U,5:"kinect"},it="pointerdown",rt="pointermove pointerup pointercancel";function st(){this.evEl=it,this.evWin=rt,H.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(it="MSPointerDown",rt="MSPointerMove MSPointerUp MSPointerCancel"),T(st,H,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=et[i],s=nt[t.pointerType]||t.pointerType,o=s==L,a=j(e,t.pointerId,"pointerId");1&r&&(0===t.button||o)?a<0&&(e.push(t),a=e.length-1):12&r&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(a,1))}});var ot={touchstart:1,touchmove:2,touchend:4,touchcancel:8},at="touchstart",ut="touchstart touchmove touchend touchcancel";function ct(){this.evTarget=at,this.evWin=ut,this.started=!1,H.apply(this,arguments)}function lt(t,e){var n=C(t.touches),i=C(t.changedTouches);return 12&e&&(n=M(n.concat(i),"identifier",!0)),[n,i]}T(ct,H,{handler:function(t){var e=ot[t.type];if(1===e&&(this.started=!0),this.started){var n=lt.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:L,srcEvent:t})}}});var ht={touchstart:1,touchmove:2,touchend:4,touchcancel:8},pt="touchstart touchmove touchend touchcancel";function dt(){this.evTarget=pt,this.targetIds={},H.apply(this,arguments)}function ft(t,e){var n=C(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,s,o=C(t.changedTouches),a=[],u=this.target;if(s=n.filter((function(t){return _(t.target,u)})),1===e)for(r=0;r-1&&i.splice(t,1)}),2500)}}function yt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+Mt(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+Mt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=jt},canEmit:function(){for(var t=0;te.threshold&&r&e.direction},attrTest:function(t){return Dt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=It(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),T(kt,Dt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[At]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),T(zt,Ct,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Et]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distancee.time;if(this._input=t,!i||!n||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=f((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return jt},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),T(Lt,Dt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[At]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),T(Ut,Dt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Rt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:n&Y&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&p(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=It(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),T(Yt,Ct,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ot]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance{}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var s=n[t]={exports:{}};return e[t](s,s.exports,i),s.exports}i.m=e,t=[],i.O=(e,n,r,s)=>{if(!n){var o=1/0;for(l=0;l=s)&&Object.keys(i.O).every((t=>i.O[t](n[u])))?n.splice(u--,1):(a=!1,s0&&t[l-1][2]>s;l--)t[l]=t[l-1];t[l]=[n,r,s]},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={268:0,908:0};i.O.j=e=>0===t[e];var e=(e,n)=>{var r,s,[o,a,u]=n,c=0;if(o.some((e=>0!==t[e]))){for(r in a)i.o(a,r)&&(i.m[r]=a[r]);if(u)var l=u(i)}for(e&&e(n);ci(837)));var r=i.O(void 0,[908],(()=>i(37)));r=i.O(r)})();