Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

riot

Package Overview
Dependencies
Maintainers
1
Versions
280
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

riot - npm Package Compare versions

Comparing version 4.13.4 to 4.13.5

30

package.json
{
"name": "riot",
"version": "4.13.4",
"version": "4.13.5",
"description": "Simple and elegant component-based UI library",

@@ -37,3 +37,3 @@ "homepage": "http://riot.js.org/",

"dependencies": {
"@riotjs/compiler": "^4.9.3",
"@riotjs/compiler": "^4.10.1",
"@riotjs/dom-bindings": "^4.8.1",

@@ -47,8 +47,8 @@ "@riotjs/util": "^1.3.1",

"devDependencies": {
"@babel/core": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@babel/core": "^7.11.1",
"@babel/preset-env": "^7.11.0",
"@riotjs/babel-preset": "1.0.0",
"@rollup/plugin-commonjs": "^14.0.0",
"@rollup/plugin-commonjs": "^15.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^8.4.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"babel-plugin-istanbul": "^6.0.0",

@@ -58,20 +58,20 @@ "chai": "^4.2.0",

"coveralls": "^3.1.0",
"eslint": "^7.4.0",
"eslint": "^7.6.0",
"eslint-config-riot": "^3.0.0",
"jsdom": "16.3.0",
"jsdom": "16.4.0",
"jsdom-global": "3.0.2",
"karma": "^5.1.0",
"karma": "^5.1.1",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage": "^2.0.2",
"karma-coverage": "^2.0.3",
"karma-mocha": "^2.0.1",
"karma-rollup-preprocessor": "^7.0.5",
"karma-sauce-launcher": "^4.1.5",
"mocha": "^8.0.1",
"rollup": "^2.21.0",
"mocha": "^8.1.1",
"rollup": "^2.25.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-riot": "^4.0.2",
"sinon": "^9.0.2",
"sinon": "^9.0.3",
"sinon-chai": "^3.5.0",
"terser": "^4.8.0",
"typescript": "^3.9.6"
"terser": "^5.1.0",
"typescript": "^3.9.7"
},

@@ -78,0 +78,0 @@ "files": [

@@ -1,3 +0,3 @@

/* Riot v4.13.4, @license MIT */
/* Riot v4.13.5, @license MIT */
var t,e;t=this,e=function(t){"use strict";function e(t){return t.replace(/-(\w)/g,(t,e)=>e.toUpperCase())}function n(t){Array.from(t).forEach(r)}function r(t){const{parentNode:e}=t;t.remove?t.remove():e&&e.removeChild(t)}var o={EACH:0,IF:1,SIMPLE:2,TAG:3,SLOT:4},s={ATTRIBUTE:0,EVENT:1,TEXT:2,VALUE:3};const{indexOf:i,slice:u}=[],a=(t,e,n,r,o,s)=>{const u="selectedIndex"in e;let a=u;for(;r<o;){const o=t(n[r],1);if(e.insertBefore(o,s),u&&a&&o.selected){a=!a;let{selectedIndex:t}=e;e.selectedIndex=t<0?r:i.call(e.querySelectorAll("option"),o)}r++}},c=(t,e)=>t==e,l=t=>t,h=(t,e,n,r,o,s,i)=>{const u=s-o;if(u<1)return-1;for(;n-e>=u;){let u=e,a=o;for(;u<n&&a<s&&i(t[u],r[a]);)u++,a++;if(a===s)return e;e=u+1}return-1},p=(t,e,n,r,o)=>n<r?t(e[n],0):0<n?t(e[n-1],-0).nextSibling:o,d=(t,e,n,r)=>{for(;n<r;)b(t(e[n++],-1))},f=(t,e,n)=>{let r=1,o=e;for(;r<o;){const e=(r+o)/2>>>0;n<t[e]?o=e:r=e+1}return r},m=(t,e,n,r,o,s,i,u,c,l,h,p,m)=>{((t,e,n,r,o,s,i,u,c)=>{const l=[],h=t.length;let p=i,f=0;for(;f<h;)switch(t[f++]){case 0:o++,p++;break;case 1:l.push(r[o]),a(e,n,r,o++,o,p<u?e(s[p],0):c);break;case-1:p++}for(f=0;f<h;)switch(t[f++]){case 0:i++;break;case-1:-1<l.indexOf(s[i])?i++:d(e,s,i++,i)}})(((t,e,n,r,o,s,i)=>{const u=n+s,a=[];let c,l,h,p,d,f,m;t:for(c=0;c<=u;c++){if(c>50)return null;for(m=c-1,d=c?a[c-1]:[0,0],f=a[c]=[],l=-c;l<=c;l+=2){for(p=l===-c||l!==c&&d[m+l-1]<d[m+l+1]?d[m+l+1]:d[m+l-1]+1,h=p-l;p<s&&h<n&&i(r[o+p],t[e+h]);)p++,h++;if(p===s&&h===n)break t;f[c+l]=p}}const b=Array(c/2+u/2);let O=b.length-1;for(c=a.length-1;c>=0;c--){for(;p>0&&h>0&&i(r[o+p-1],t[e+h-1]);)b[O--]=0,p--,h--;if(!c)break;m=c-1,d=c?a[c-1]:[0,0],l=p-h,l===-c||l!==c&&d[m+l-1]<d[m+l+1]?(h--,b[O--]=1):(p--,b[O--]=-1)}return b})(n,r,s,i,u,l,p)||((t,e,n,r,o,s,i,u)=>{let a=0,c=r<u?r:u;const l=Array(c++),h=Array(c);h[0]=-1;for(let t=1;t<c;t++)h[t]=i;const p=o.slice(s,i);for(let r=e;r<n;r++){const e=p.indexOf(t[r]);if(-1<e){const t=e+s;a=f(h,c,t),-1<a&&(h[a]=t,l[a]={newi:r,oldi:t,prev:l[a-1]})}}for(a=--c,--i;h[a]>i;)--a;c=u+r-a;const d=Array(c);let m=l[a];for(--n;m;){const{newi:t,oldi:e}=m;for(;n>t;)d[--c]=1,--n;for(;i>e;)d[--c]=-1,--i;d[--c]=0,--n,--i,m=m.prev}for(;n>=e;)d[--c]=1,--n;for(;i>=s;)d[--c]=-1,--i;return d})(n,r,o,s,i,u,c,l),t,e,n,r,i,u,h,m)},b=t=>(t.remove||O).call(t);function O(){const{parentNode:t}=this;t&&t.removeChild(this)}
/*! (c) 2018 Andrea Giammarchi (ISC) */function g(t,e){return typeof t===e}function E(t){const e=t.ownerSVGElement;return!!e||null===e}function v(t){return!y(t.content)}function N(t){return g(t,"function")}function T(t){return!y(t)&&g(t,"object")}function y(t){return null==t}const M=Symbol("unmount"),j=Object.seal({nodes:[],mount(t,e){return this.update(t,e)},update(t,e){const{placeholder:n,nodes:r,childrenMap:o}=this,s=t===M?null:this.evaluate(t),i=s?Array.from(s):[],u=n.parentNode,{newChildrenMap:f,batches:b,futureNodes:O}=function(t,e,n,r){const{condition:o,template:s,childrenMap:i,itemName:u,getKey:a,indexName:c,root:l,isTemplateTag:h}=r,p=new Map,d=[],f=[];return t.forEach((t,r)=>{const m=function(t,e){let{itemName:n,indexName:r,index:o,item:s}=e;return t[n]=s,r&&(t[r]=o),t}(Object.create(e),{itemName:u,indexName:c,index:r,item:t}),b=a?a(m):r,O=i.get(b);if(function(t,e){return!!t&&!1===Boolean(t(e))}(o,m))return;const g=O?O.template:s.clone(),E=O?g.el:l.cloneNode(),v=!O,N=h&&v?function(t){const e=t.dom.cloneNode(!0);return{avoidDOMInjection:!0,fragment:e,children:Array.from(e.childNodes)}}(g):{};if(v?d.push(()=>g.mount(E,m,n,N)):d.push(()=>g.update(m,n)),h){const t=N.children||g.children;f.push(...t)}else f.push(E);i.delete(b),p.set(b,{template:g,context:m,index:r})}),{newChildrenMap:p,batches:d,futureNodes:f}}(i,t,e,this);return((t,e,n,r)=>{r||(r={});const o=r.compare||c,s=r.node||l,i=null==r.before?null:s(r.before,0),u=e.length;let f=u,b=0,O=n.length,g=0;for(;b<f&&g<O&&o(e[b],n[g]);)b++,g++;for(;b<f&&g<O&&o(e[f-1],n[O-1]);)f--,O--;const E=b===f,v=g===O;if(E&&v)return n;if(E&&g<O)return a(s,t,n,g,O,p(s,e,b,u,i)),n;if(v&&b<f)return d(s,e,b,f),n;const N=f-b,T=O-g;let y=-1;if(N<T){if(y=h(n,g,O,e,b,f,o),-1<y)return a(s,t,n,g,y,s(e[b],0)),a(s,t,n,y+N,O,p(s,e,f,u,i)),n}else if(T<N&&(y=h(e,b,f,n,g,O,o),-1<y))return d(s,e,b,y),d(s,e,y+T,f),n;N<2||T<2?(a(s,t,n,g,O,s(e[b],0)),d(s,e,b,f)):N===T&&((t,e,n,r,o,s)=>{for(;r<o&&s(n[r],t[e-1]);)r++,e--;return 0===e})(n,O,e,b,f,o)?a(s,t,n,g,O,p(s,e,f,u,i)):m(s,t,n,g,O,T,e,b,f,N,u,o,i)})(u,r,O,{before:n,node:_(Array.from(o.values()),e)}),b.forEach(t=>t()),this.childrenMap=f,this.nodes=O,this},unmount(t,e){return this.update(M,e),this}});function _(t,e){return(n,r)=>{if(r<0){const n=t.pop();if(n){const{template:t,context:r}=n;t.unmount(r,e,null)}}return n}}const A=Object.seal({mount(t,e){return this.update(t,e)},update(t,e){const n=!!this.evaluate(t),r=!this.value&&n,o=this.value&&!n,s=()=>{const n=this.node.cloneNode();this.placeholder.parentNode.insertBefore(n,this.placeholder),this.template=this.template.clone(),this.template.mount(n,t,e)};switch(!0){case r:s();break;case o: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}});function w(t){throw new Error(t)}function x(t){return t.reduce((t,n)=>{const{value:r,type:o}=n;switch(!0){case!n.name&&0===o:return Object.assign({},t,r);case 3===o:t.value=n.value;break;default:t[e(n.name)]=n.value}return t},{})}const S="undefined"==typeof Element?{}:Element.prototype,U=function(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}(t=>S.hasOwnProperty(t));function P(t,e,n,r){let{name:o}=e;if(!o)return r&&function(t,e,n){const r=e?Object.keys(e):[];Object.keys(n).filter(t=>!r.includes(t)).forEach(e=>t.removeAttribute(e))}(t,n,r),void(n&&function(t,e){Object.entries(e).forEach(e=>{let[n,r]=e;return P(t,{name:n},r)})}(t,n));!U(o)&&(function(t){return g(t,"boolean")}(n)||T(n)||N(n))&&(t[o]=n),t[function(t){return y(t)||!1===t||""===t||T(t)||N(t)?"removeAttribute":"setAttribute"}(n)](o,function(t,e){return!0===e?t:e}(o,n))}const C=/^on/,D={handleEvent(t){this[t.type](t)}},B=new WeakMap;function I(t){return y(t)?"":t}const Y=(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};var L={0:P,1:function(t,e,n){let{name:r}=e;const o=r.replace(C,""),s=B.get(t)||(t=>{const e=Object.create(D);return B.set(t,e),e})(t),[i,u]=(t=>Array.isArray(t)?t:[t,!1])(n),a=s[o],c=i&&!a;a&&!i&&t.removeEventListener(o,s),c&&t.addEventListener(o,s,u),s[o]=i},2:function(t,e,n){t.data=I(n)},3:function(t,e,n){t.value=I(n)}};const K=Object.seal({mount(t){return this.value=this.evaluate(t),k(this,this.value),this},update(t){const e=this.evaluate(t);return this.value!==e&&(k(this,e),this.value=e),this},unmount(){return 1===this.type&&k(this,null),this}});function k(t,e){return L[t.type](t.node,t,e,t.value)}function R(t,e){return Object.assign({},K,e,{node:2===e.type?Y(t,e.childNodeIndex):t})}const $=new Map,z=Symbol("riot-component"),H=new Set,F="mount",V="update",G="unmount",q=Symbol.for("pure"),W=Symbol("parent"),X=Symbol("attributes"),Z=Symbol("template");var J=Object.freeze({__proto__:null,COMPONENTS_IMPLEMENTATION_MAP:$,DOM_COMPONENT_INSTANCE_PROPERTY:z,PLUGINS_SET:H,IS_DIRECTIVE:"is",VALUE_ATTRIBUTE:"value",MOUNT_METHOD_KEY:F,UPDATE_METHOD_KEY:V,UNMOUNT_METHOD_KEY:G,SHOULD_UPDATE_KEY:"shouldUpdate",ON_BEFORE_MOUNT_KEY:"onBeforeMount",ON_MOUNTED_KEY:"onMounted",ON_BEFORE_UPDATE_KEY:"onBeforeUpdate",ON_UPDATED_KEY:"onUpdated",ON_BEFORE_UNMOUNT_KEY:"onBeforeUnmount",ON_UNMOUNTED_KEY:"onUnmounted",PROPS_KEY:"props",STATE_KEY:"state",SLOTS_KEY:"slots",ROOT_KEY:"root",IS_PURE_SYMBOL:q,PARENT_KEY_SYMBOL:W,ATTRIBUTES_KEY_SYMBOL:X,TEMPLATE_KEY_SYMBOL:Z});const Q=(t,e)=>e?e===t?t[W]:e:void 0,tt=Object.seal({attributes:[],getTemplateScope(t,e){return function(t,e,n){if(!t||!t.length)return n;const r=t.map(t=>Object.assign({},t,{value:t.evaluate(e)}));return Object.assign(Object.create(n||null),x(r))}(this.attributes,t,e)},mount(t,e){const n=!!t.slots&&t.slots.find(t=>{let{id:e}=t;return e===this.name}),{parentNode:o}=this.node,s=Q(t,e);return this.template=n&&ct(n.html,n.bindings).createDOM(o),this.template&&(this.template.mount(this.node,this.getTemplateScope(t,s),s),this.template.children=function t(e,n){void 0===n&&(n=[]);const r=e.firstChild;return r?(e.parentNode.insertBefore(r,e),[r,...t(e)]):n}(this.node)),r(this.node),this},update(t,e){if(this.template){const n=Q(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 et(t){return t.reduce((t,e)=>{let{bindings:n}=e;return t.concat(n)},[])}const nt=Object.seal({mount(t){return this.update(t)},update(t,e){const n=this.evaluate(t);return 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}):ct(function(t){return t.reduce((t,e)=>t+e.html,"")}(e),[...et(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}});var rt={1:function(t,e){let{evaluate:n,template:o}=e;const s=t.parentNode,i=document.createTextNode("");return s.insertBefore(i,t),r(t),Object.assign({},A,{node:t,evaluate:n,placeholder:i,template:o.createDOM(t)})},2:function(t,e){let{expressions:n}=e;return Object.assign({},(r=n.map(e=>R(t,e)),["mount","update","unmount"].reduce((t,e)=>Object.assign({},t,{[e]:t=>r.map(n=>n[e](t))&&o}),{})));var r,o},0:function(t,e){let{evaluate:n,condition:o,itemName:s,indexName:i,getKey:u,template:a}=e;const c=document.createTextNode(""),l=t.parentNode,h=t.cloneNode();return l.insertBefore(c,t),r(t),Object.assign({},j,{childrenMap:new Map,node:t,root:h,condition:o,evaluate:n,isTemplateTag:v(h),template:a.createDOM(t),getKey:u,indexName:i,itemName:s,placeholder:c})},3:function(t,e){let{evaluate:n,getComponent:r,slots:o,attributes:s}=e;return Object.assign({},nt,{node:t,evaluate:n,slots:o,attributes:s,getComponent:r})},4:function(t,e){let{name:n,attributes:r}=e;return Object.assign({},tt,{attributes:r,node:t,name:n})}};function ot(t,e){return t.map(t=>2===t.type?Object.assign({},t,{childNodeIndex:t.childNodeIndex+e}):t)}function st(t,e,n){const{selector:r,type:o,redundantAttribute:s,expressions:i}=e,u=r?t.querySelector(r):t;s&&u.removeAttribute(s);const a=i||[];return(rt[o]||rt[2])(u,Object.assign({},e,{expressions:n&&!r?ot(a,n):a}))}function it(t,e){return E(t)?function(t,e){return e.ownerDocument.importNode((new window.DOMParser).parseFromString(`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,"application/xml").documentElement,!0)}(e,t):function(t,e){const n=v(e)?e:document.createElement("template");return n.innerHTML=t,n.content}(e,t)}function ut(t,e){switch(!0){case E(t):!function t(e,n){e.firstChild&&(n.appendChild(e.firstChild),t(e,n))}(e,t);break;case v(t):t.parentNode.replaceChild(e,t);break;default:t.appendChild(e)}}const at=Object.freeze({createDOM(t){return this.dom=this.dom||function(t,e){return e&&("string"==typeof e?it(t,e):e)}(t,this.html),this},mount(t,e,n,r){if(void 0===r&&(r={}),!t)throw new Error("Please provide DOM node to mount properly your template");this.el&&this.unmount(e);const{fragment:o,children:s,avoidDOMInjection:i}=r,{parentNode:u}=s?s[0]:t,a=v(t),c=a?Math.max(Array.from(u.childNodes).indexOf(t),0):null;return this.isTemplateTag=a,this.createDOM(t),this.dom&&(this.fragment=o||this.dom.cloneNode(!0)),this.el=this.isTemplateTag?u:t,this.children=this.isTemplateTag?s||Array.from(this.fragment.childNodes):null,!i&&this.fragment&&ut(t,this.fragment),this.bindings=this.bindingsData.map(t=>st(this.el,t,c)),this.bindings.forEach(t=>t.mount(e,n)),this},update(t,e){return this.bindings.forEach(n=>n.update(t,e)),this},unmount(t,e,o){if(this.el){switch(this.bindings.forEach(n=>n.unmount(t,e,o)),!0){case this.children&&null!==o:n(this.children);break;case!0===o:r(this.el);break;case null!==o:n(this.el.childNodes)}this.el=null}return this},clone(){return Object.assign({},this,{el:null})}});function ct(t,e){return void 0===e&&(e=[]),Object.assign({},at,{html:t,bindingsData:e})}var lt=Object.freeze({__proto__:null,template:ct,createBinding:st,createExpression:R,bindingTypes:o,expressionTypes:s});function ht(){return this}function pt(t){return N(t)?t.prototype&&t.prototype.constructor?new t:t():t}function dt(t,e,n,r){return void 0===r&&(r={}),Object.defineProperty(t,e,Object.assign({value:n,enumerable:!1,writable:!1,configurable:!0},r)),t}function ft(t,e,n){return Object.entries(e).forEach(e=>{let[r,o]=e;dt(t,r,o,n)}),t}function mt(t,e){return Object.entries(e).forEach(e=>{let[n,r]=e;t[n]||(t[n]=r)}),t}function bt(t){return Array.isArray(t)?t:/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&"number"==typeof t.length?Array.from(t):[t]}function Ot(t,e){return bt("string"==typeof t?(e||document).querySelectorAll(t):t)}const gt=t=>1===t.length?t[0]:t;function Et(t,e,n){const r="object"==typeof e?e:{[e]:n},o=Object.keys(r);return bt(t).forEach(t=>{o.forEach(e=>t.setAttribute(e,r[e]))}),t}function vt(t,e){return function(t,e,n){const r="string"==typeof e?[e]:e;return gt(bt(t).map(t=>gt(r.map(e=>t[n](e)))))}(t,e,"getAttribute")}const Nt=new Map,Tt=()=>yt||(Et(yt=Ot("style[riot]")[0]||document.createElement("style"),"type","text/css"),yt.parentNode||document.head.appendChild(yt),yt);var yt,Mt={CSS_BY_NAME:Nt,add(t,e){return Nt.has(t)||(Nt.set(t,e),this.inject()),this},inject(){return Tt().innerHTML=[...Nt.values()].join("\n"),this},remove(t){return Nt.has(t)&&(Nt.delete(t),this.inject()),this}};function jt(t){return vt(t,"is")||t.tagName.toLowerCase()}const _t=Object.freeze({$(t){return Ot(t,this.root)[0]},$$(t){return Ot(t,this.root)}}),At=Object.freeze({[F]:ht,[V]:ht,[G]:ht}),wt=Object.freeze({shouldUpdate:ht,onBeforeMount:ht,onMounted:ht,onBeforeUpdate:ht,onUpdated:ht,onBeforeUnmount:ht,onUnmounted:ht}),xt=Object.assign({},At,{clone:ht,createDOM:ht});function St(t,n){return void 0===n&&(n={}),Object.assign({},function(t){return Array.from(t.attributes).reduce((t,n)=>(t[e(n.name)]=n.value,t),{})}(t),pt(n))}const Ut=(t,e)=>t[z]=e;function Pt(t){return[F,V,G].reduce((e,n)=>(e[n]=t(n),e),{})}function Ct(t){let{css:e,template:n,exports:r,name:i}=t;const u=n?function(t,e){return t(ct,s,o,t=>e[t]||$.get(t))}(n,r?(void 0===(a=r.components)&&(a={}),Object.entries(pt(a)).reduce((t,e)=>{let[n,r]=e;var o;return t[(o=n,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())]=Ct(r),t},{})):{}):xt;var a;return t=>{let{slots:o,attributes:s,props:a}=t;if(r&&r[q])return function(t,e){let{slots:n,attributes:r,props:o,css:s,template:i}=e;i&&w("Pure components can not have html"),s&&w("Pure components do not have css");const u=mt(t({slots:n,attributes:r,props:o}),At);return Pt(t=>function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(t===F){const[t]=n;Ut(t,u)}return u[t](...n),u})}(r,{slots:o,attributes:s,props:a,css:e,template:n});const c=pt(r)||{},l=Dt({css:e,template:u,componentAPI:c,name:i})({slots:o,attributes:s,props:a});return{mount:(t,e,n)=>l.mount(t,n,e),update:(t,e)=>l.update(e,t),unmount:t=>l.unmount(t)}}}function Dt(t){let{css:e,template:n,componentAPI:r,name:o}=t;return e&&o&&Mt.add(o,e),function t(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(o=[...r,...o]).length<e.length?t(e,...o):e(...o)}}(It)(ft(mt(r,Object.assign({},wt,{state:{}})),Object.assign({slots:null,root:null},_t,{name:o,css:e,template:n})))}function Bt(t,e){return Object.assign({},t,pt(e))}function It(t,e){let{slots:n,attributes:r,props:o}=e;return s=function(t){return[...H].reduce((t,e)=>e(t)||t,t)}(ft(Object.create(t),{mount(e,s,i){return void 0===s&&(s={}),this[X]=function(t,e){void 0===e&&(e=[]);const n=e.map(e=>R(t,e)),r={};return Object.assign(r,Object.assign({expressions:n},Pt(t=>e=>(n.forEach(n=>n[t](e)),r))))}(e,r).mount(i),dt(this,"props",Object.freeze(Object.assign({},St(e,o),x(this[X].expressions)))),this.state=Bt(this.state,s),this[Z]=this.template.createDOM(e).clone(),Ut(e,this),t.name&&function(t,e){jt(t)!==e&&Et(t,"is",e)}(e,t.name),dt(this,"root",e),dt(this,"slots",n),this.onBeforeMount(this.props,this.state),this[W]=i,this[Z].mount(e,this,i),this.onMounted(this.props,this.state),this},update(t,e){void 0===t&&(t={}),e&&(this[W]=e,this[X].update(e));const n=x(this[X].expressions);if(!1!==this.shouldUpdate(n,this.props))return dt(this,"props",Object.freeze(Object.assign({},this.props,n))),this.state=Bt(this.state,t),this.onBeforeUpdate(this.props,this.state),this[Z].update(this,this[W]),this.onUpdated(this.props,this.state),this},unmount(t){return this.onBeforeUnmount(this.props,this.state),this[X].unmount(),this[Z].unmount(this,this[W],null===t?null:!t),this.onUnmounted(this.props,this.state),this}})),Object.keys(t).filter(e=>N(t[e])).forEach(t=>{s[t]=s[t].bind(s)}),s;var s}const{DOM_COMPONENT_INSTANCE_PROPERTY:Yt,COMPONENTS_IMPLEMENTATION_MAP:Lt,PLUGINS_SET:Kt}=J,kt={cssManager:Mt,DOMBindings:lt,createComponent:Ct,defineComponent:Dt,globals:J};t.__=kt,t.component=function(t){return function(e,n,r){let{slots:o,attributes:s,parentScope:i}=void 0===r?{}:r;return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((t,e)=>function(){return t(e(...arguments))})}(t=>t.mount(e,i),t=>t({props:n,slots:o,attributes:s}),Ct)(t)}},t.install=function(t){return N(t)||w("Plugins must be of type function"),Kt.has(t)&&w("This plugin was already installed"),Kt.add(t),Kt},t.mount=function(t,e,n){return Ot(t).map(t=>function(t,e,n){const r=n||jt(t);return $.has(r)||w(`The component named "${r}" was never registered`),$.get(r)({props:e}).mount(t)}(t,e,n))},t.pure=function(t){return N(t)||w('riot.pure accepts only arguments of type "function"'),t[q]=!0,t},t.register=function(t,e){let{css:n,template:r,exports:o}=e;return Lt.has(t)&&w(`The component "${t}" was already registered`),Lt.set(t,Ct({name:t,css:n,template:r,exports:o})),Lt},t.uninstall=function(t){return Kt.has(t)||w("This plugin was never installed"),Kt.delete(t),Kt},t.unmount=function(t,e){return Ot(t).map(t=>(t[Yt]&&t[Yt].unmount(e),t))},t.unregister=function(t){return Lt.has(t)||w(`The component "${t}" was never registered`),Lt.delete(t),Mt.remove(t),Lt},t.version="v4.13.4",Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).riot={});
/*! (c) 2018 Andrea Giammarchi (ISC) */function g(t,e){return typeof t===e}function E(t){const e=t.ownerSVGElement;return!!e||null===e}function v(t){return!y(t.content)}function N(t){return g(t,"function")}function T(t){return!y(t)&&g(t,"object")}function y(t){return null==t}const M=Symbol("unmount"),j=Object.seal({nodes:[],mount(t,e){return this.update(t,e)},update(t,e){const{placeholder:n,nodes:r,childrenMap:o}=this,s=t===M?null:this.evaluate(t),i=s?Array.from(s):[],u=n.parentNode,{newChildrenMap:f,batches:b,futureNodes:O}=function(t,e,n,r){const{condition:o,template:s,childrenMap:i,itemName:u,getKey:a,indexName:c,root:l,isTemplateTag:h}=r,p=new Map,d=[],f=[];return t.forEach((t,r)=>{const m=function(t,e){let{itemName:n,indexName:r,index:o,item:s}=e;return t[n]=s,r&&(t[r]=o),t}(Object.create(e),{itemName:u,indexName:c,index:r,item:t}),b=a?a(m):r,O=i.get(b);if(function(t,e){return!!t&&!1===Boolean(t(e))}(o,m))return;const g=O?O.template:s.clone(),E=O?g.el:l.cloneNode(),v=!O,N=h&&v?function(t){const e=t.dom.cloneNode(!0);return{avoidDOMInjection:!0,fragment:e,children:Array.from(e.childNodes)}}(g):{};if(v?d.push(()=>g.mount(E,m,n,N)):d.push(()=>g.update(m,n)),h){const t=N.children||g.children;f.push(...t)}else f.push(E);i.delete(b),p.set(b,{template:g,context:m,index:r})}),{newChildrenMap:p,batches:d,futureNodes:f}}(i,t,e,this);return((t,e,n,r)=>{r||(r={});const o=r.compare||c,s=r.node||l,i=null==r.before?null:s(r.before,0),u=e.length;let f=u,b=0,O=n.length,g=0;for(;b<f&&g<O&&o(e[b],n[g]);)b++,g++;for(;b<f&&g<O&&o(e[f-1],n[O-1]);)f--,O--;const E=b===f,v=g===O;if(E&&v)return n;if(E&&g<O)return a(s,t,n,g,O,p(s,e,b,u,i)),n;if(v&&b<f)return d(s,e,b,f),n;const N=f-b,T=O-g;let y=-1;if(N<T){if(y=h(n,g,O,e,b,f,o),-1<y)return a(s,t,n,g,y,s(e[b],0)),a(s,t,n,y+N,O,p(s,e,f,u,i)),n}else if(T<N&&(y=h(e,b,f,n,g,O,o),-1<y))return d(s,e,b,y),d(s,e,y+T,f),n;N<2||T<2?(a(s,t,n,g,O,s(e[b],0)),d(s,e,b,f)):N===T&&((t,e,n,r,o,s)=>{for(;r<o&&s(n[r],t[e-1]);)r++,e--;return 0===e})(n,O,e,b,f,o)?a(s,t,n,g,O,p(s,e,f,u,i)):m(s,t,n,g,O,T,e,b,f,N,u,o,i)})(u,r,O,{before:n,node:_(Array.from(o.values()),e)}),b.forEach(t=>t()),this.childrenMap=f,this.nodes=O,this},unmount(t,e){return this.update(M,e),this}});function _(t,e){return(n,r)=>{if(r<0){const n=t.pop();if(n){const{template:t,context:r}=n;t.unmount(r,e,null)}}return n}}const A=Object.seal({mount(t,e){return this.update(t,e)},update(t,e){const n=!!this.evaluate(t),r=!this.value&&n,o=this.value&&!n,s=()=>{const n=this.node.cloneNode();this.placeholder.parentNode.insertBefore(n,this.placeholder),this.template=this.template.clone(),this.template.mount(n,t,e)};switch(!0){case r:s();break;case o: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}});function w(t){throw new Error(t)}function x(t){return t.reduce((t,n)=>{const{value:r,type:o}=n;switch(!0){case!n.name&&0===o:return Object.assign({},t,r);case 3===o:t.value=n.value;break;default:t[e(n.name)]=n.value}return t},{})}const S="undefined"==typeof Element?{}:Element.prototype,U=function(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}(t=>S.hasOwnProperty(t));function P(t,e,n,r){let{name:o}=e;if(!o)return r&&function(t,e,n){const r=e?Object.keys(e):[];Object.keys(n).filter(t=>!r.includes(t)).forEach(e=>t.removeAttribute(e))}(t,n,r),void(n&&function(t,e){Object.entries(e).forEach(e=>{let[n,r]=e;return P(t,{name:n},r)})}(t,n));!U(o)&&(function(t){return g(t,"boolean")}(n)||T(n)||N(n))&&(t[o]=n),t[function(t){return y(t)||!1===t||""===t||T(t)||N(t)?"removeAttribute":"setAttribute"}(n)](o,function(t,e){return!0===e?t:e}(o,n))}const C=/^on/,D={handleEvent(t){this[t.type](t)}},B=new WeakMap;function I(t){return y(t)?"":t}const Y=(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};var L={0:P,1:function(t,e,n){let{name:r}=e;const o=r.replace(C,""),s=B.get(t)||(t=>{const e=Object.create(D);return B.set(t,e),e})(t),[i,u]=(t=>Array.isArray(t)?t:[t,!1])(n),a=s[o],c=i&&!a;a&&!i&&t.removeEventListener(o,s),c&&t.addEventListener(o,s,u),s[o]=i},2:function(t,e,n){t.data=I(n)},3:function(t,e,n){t.value=I(n)}};const K=Object.seal({mount(t){return this.value=this.evaluate(t),k(this,this.value),this},update(t){const e=this.evaluate(t);return this.value!==e&&(k(this,e),this.value=e),this},unmount(){return 1===this.type&&k(this,null),this}});function k(t,e){return L[t.type](t.node,t,e,t.value)}function R(t,e){return Object.assign({},K,e,{node:2===e.type?Y(t,e.childNodeIndex):t})}const $=new Map,z=Symbol("riot-component"),H=new Set,F="mount",V="update",G="unmount",q=Symbol.for("pure"),W=Symbol("parent"),X=Symbol("attributes"),Z=Symbol("template");var J=Object.freeze({__proto__:null,COMPONENTS_IMPLEMENTATION_MAP:$,DOM_COMPONENT_INSTANCE_PROPERTY:z,PLUGINS_SET:H,IS_DIRECTIVE:"is",VALUE_ATTRIBUTE:"value",MOUNT_METHOD_KEY:F,UPDATE_METHOD_KEY:V,UNMOUNT_METHOD_KEY:G,SHOULD_UPDATE_KEY:"shouldUpdate",ON_BEFORE_MOUNT_KEY:"onBeforeMount",ON_MOUNTED_KEY:"onMounted",ON_BEFORE_UPDATE_KEY:"onBeforeUpdate",ON_UPDATED_KEY:"onUpdated",ON_BEFORE_UNMOUNT_KEY:"onBeforeUnmount",ON_UNMOUNTED_KEY:"onUnmounted",PROPS_KEY:"props",STATE_KEY:"state",SLOTS_KEY:"slots",ROOT_KEY:"root",IS_PURE_SYMBOL:q,PARENT_KEY_SYMBOL:W,ATTRIBUTES_KEY_SYMBOL:X,TEMPLATE_KEY_SYMBOL:Z});const Q=(t,e)=>e?e===t?t[W]:e:void 0,tt=Object.seal({attributes:[],getTemplateScope(t,e){return function(t,e,n){if(!t||!t.length)return n;const r=t.map(t=>Object.assign({},t,{value:t.evaluate(e)}));return Object.assign(Object.create(n||null),x(r))}(this.attributes,t,e)},mount(t,e){const n=!!t.slots&&t.slots.find(t=>{let{id:e}=t;return e===this.name}),{parentNode:o}=this.node,s=Q(t,e);return this.template=n&&ct(n.html,n.bindings).createDOM(o),this.template&&(this.template.mount(this.node,this.getTemplateScope(t,s),s),this.template.children=function t(e,n){void 0===n&&(n=[]);const r=e.firstChild;return r?(e.parentNode.insertBefore(r,e),[r,...t(e)]):n}(this.node)),r(this.node),this},update(t,e){if(this.template){const n=Q(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 et(t){return t.reduce((t,e)=>{let{bindings:n}=e;return t.concat(n)},[])}const nt=Object.seal({mount(t){return this.update(t)},update(t,e){const n=this.evaluate(t);return 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}):ct(function(t){return t.reduce((t,e)=>t+e.html,"")}(e),[...et(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}});var rt={1:function(t,e){let{evaluate:n,template:o}=e;const s=t.parentNode,i=document.createTextNode("");return s.insertBefore(i,t),r(t),Object.assign({},A,{node:t,evaluate:n,placeholder:i,template:o.createDOM(t)})},2:function(t,e){let{expressions:n}=e;return Object.assign({},(r=n.map(e=>R(t,e)),["mount","update","unmount"].reduce((t,e)=>Object.assign({},t,{[e]:t=>r.map(n=>n[e](t))&&o}),{})));var r,o},0:function(t,e){let{evaluate:n,condition:o,itemName:s,indexName:i,getKey:u,template:a}=e;const c=document.createTextNode(""),l=t.parentNode,h=t.cloneNode();return l.insertBefore(c,t),r(t),Object.assign({},j,{childrenMap:new Map,node:t,root:h,condition:o,evaluate:n,isTemplateTag:v(h),template:a.createDOM(t),getKey:u,indexName:i,itemName:s,placeholder:c})},3:function(t,e){let{evaluate:n,getComponent:r,slots:o,attributes:s}=e;return Object.assign({},nt,{node:t,evaluate:n,slots:o,attributes:s,getComponent:r})},4:function(t,e){let{name:n,attributes:r}=e;return Object.assign({},tt,{attributes:r,node:t,name:n})}};function ot(t,e){return t.map(t=>2===t.type?Object.assign({},t,{childNodeIndex:t.childNodeIndex+e}):t)}function st(t,e,n){const{selector:r,type:o,redundantAttribute:s,expressions:i}=e,u=r?t.querySelector(r):t;s&&u.removeAttribute(s);const a=i||[];return(rt[o]||rt[2])(u,Object.assign({},e,{expressions:n&&!r?ot(a,n):a}))}function it(t,e){return E(t)?function(t,e){return e.ownerDocument.importNode((new window.DOMParser).parseFromString(`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,"application/xml").documentElement,!0)}(e,t):function(t,e){const n=v(e)?e:document.createElement("template");return n.innerHTML=t,n.content}(e,t)}function ut(t,e){switch(!0){case E(t):!function t(e,n){e.firstChild&&(n.appendChild(e.firstChild),t(e,n))}(e,t);break;case v(t):t.parentNode.replaceChild(e,t);break;default:t.appendChild(e)}}const at=Object.freeze({createDOM(t){return this.dom=this.dom||function(t,e){return e&&("string"==typeof e?it(t,e):e)}(t,this.html),this},mount(t,e,n,r){if(void 0===r&&(r={}),!t)throw new Error("Please provide DOM node to mount properly your template");this.el&&this.unmount(e);const{fragment:o,children:s,avoidDOMInjection:i}=r,{parentNode:u}=s?s[0]:t,a=v(t),c=a?Math.max(Array.from(u.childNodes).indexOf(t),0):null;return this.isTemplateTag=a,this.createDOM(t),this.dom&&(this.fragment=o||this.dom.cloneNode(!0)),this.el=this.isTemplateTag?u:t,this.children=this.isTemplateTag?s||Array.from(this.fragment.childNodes):null,!i&&this.fragment&&ut(t,this.fragment),this.bindings=this.bindingsData.map(t=>st(this.el,t,c)),this.bindings.forEach(t=>t.mount(e,n)),this},update(t,e){return this.bindings.forEach(n=>n.update(t,e)),this},unmount(t,e,o){if(this.el){switch(this.bindings.forEach(n=>n.unmount(t,e,o)),!0){case this.children&&null!==o:n(this.children);break;case!0===o:r(this.el);break;case null!==o:n(this.el.childNodes)}this.el=null}return this},clone(){return Object.assign({},this,{el:null})}});function ct(t,e){return void 0===e&&(e=[]),Object.assign({},at,{html:t,bindingsData:e})}var lt=Object.freeze({__proto__:null,template:ct,createBinding:st,createExpression:R,bindingTypes:o,expressionTypes:s});function ht(){return this}function pt(t){return N(t)?t.prototype&&t.prototype.constructor?new t:t():t}function dt(t,e,n,r){return void 0===r&&(r={}),Object.defineProperty(t,e,Object.assign({value:n,enumerable:!1,writable:!1,configurable:!0},r)),t}function ft(t,e,n){return Object.entries(e).forEach(e=>{let[r,o]=e;dt(t,r,o,n)}),t}function mt(t,e){return Object.entries(e).forEach(e=>{let[n,r]=e;t[n]||(t[n]=r)}),t}function bt(t){return Array.isArray(t)?t:/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&"number"==typeof t.length?Array.from(t):[t]}function Ot(t,e){return bt("string"==typeof t?(e||document).querySelectorAll(t):t)}const gt=t=>1===t.length?t[0]:t;function Et(t,e,n){const r="object"==typeof e?e:{[e]:n},o=Object.keys(r);return bt(t).forEach(t=>{o.forEach(e=>t.setAttribute(e,r[e]))}),t}function vt(t,e){return function(t,e,n){const r="string"==typeof e?[e]:e;return gt(bt(t).map(t=>gt(r.map(e=>t[n](e)))))}(t,e,"getAttribute")}const Nt=new Map,Tt=()=>yt||(Et(yt=Ot("style[riot]")[0]||document.createElement("style"),"type","text/css"),yt.parentNode||document.head.appendChild(yt),yt);var yt,Mt={CSS_BY_NAME:Nt,add(t,e){return Nt.has(t)||(Nt.set(t,e),this.inject()),this},inject(){return Tt().innerHTML=[...Nt.values()].join("\n"),this},remove(t){return Nt.has(t)&&(Nt.delete(t),this.inject()),this}};function jt(t){return vt(t,"is")||t.tagName.toLowerCase()}const _t=Object.freeze({$(t){return Ot(t,this.root)[0]},$$(t){return Ot(t,this.root)}}),At=Object.freeze({[F]:ht,[V]:ht,[G]:ht}),wt=Object.freeze({shouldUpdate:ht,onBeforeMount:ht,onMounted:ht,onBeforeUpdate:ht,onUpdated:ht,onBeforeUnmount:ht,onUnmounted:ht}),xt=Object.assign({},At,{clone:ht,createDOM:ht});function St(t,n){return void 0===n&&(n={}),Object.assign({},function(t){return Array.from(t.attributes).reduce((t,n)=>(t[e(n.name)]=n.value,t),{})}(t),pt(n))}const Ut=(t,e)=>t[z]=e;function Pt(t){return[F,V,G].reduce((e,n)=>(e[n]=t(n),e),{})}function Ct(t){let{css:e,template:n,exports:r,name:i}=t;const u=n?function(t,e){return t(ct,s,o,t=>e[t]||$.get(t))}(n,r?(void 0===(a=r.components)&&(a={}),Object.entries(pt(a)).reduce((t,e)=>{let[n,r]=e;var o;return t[(o=n,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())]=Ct(r),t},{})):{}):xt;var a;return t=>{let{slots:o,attributes:s,props:a}=t;if(r&&r[q])return function(t,e){let{slots:n,attributes:r,props:o,css:s,template:i}=e;i&&w("Pure components can not have html"),s&&w("Pure components do not have css");const u=mt(t({slots:n,attributes:r,props:o}),At);return Pt(t=>function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(t===F){const[t]=n;Ut(t,u)}return u[t](...n),u})}(r,{slots:o,attributes:s,props:a,css:e,template:n});const c=pt(r)||{},l=Dt({css:e,template:u,componentAPI:c,name:i})({slots:o,attributes:s,props:a});return{mount:(t,e,n)=>l.mount(t,n,e),update:(t,e)=>l.update(e,t),unmount:t=>l.unmount(t)}}}function Dt(t){let{css:e,template:n,componentAPI:r,name:o}=t;return e&&o&&Mt.add(o,e),function t(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(o=[...r,...o]).length<e.length?t(e,...o):e(...o)}}(It)(ft(mt(r,Object.assign({},wt,{state:{}})),Object.assign({slots:null,root:null},_t,{name:o,css:e,template:n})))}function Bt(t,e){return Object.assign({},t,pt(e))}function It(t,e){let{slots:n,attributes:r,props:o}=e;return s=function(t){return[...H].reduce((t,e)=>e(t)||t,t)}(ft(Object.create(t),{mount(e,s,i){return void 0===s&&(s={}),this[X]=function(t,e){void 0===e&&(e=[]);const n=e.map(e=>R(t,e)),r={};return Object.assign(r,Object.assign({expressions:n},Pt(t=>e=>(n.forEach(n=>n[t](e)),r))))}(e,r).mount(i),dt(this,"props",Object.freeze(Object.assign({},St(e,o),x(this[X].expressions)))),this.state=Bt(this.state,s),this[Z]=this.template.createDOM(e).clone(),Ut(e,this),t.name&&function(t,e){jt(t)!==e&&Et(t,"is",e)}(e,t.name),dt(this,"root",e),dt(this,"slots",n),this.onBeforeMount(this.props,this.state),this[W]=i,this[Z].mount(e,this,i),this.onMounted(this.props,this.state),this},update(t,e){void 0===t&&(t={}),e&&(this[W]=e,this[X].update(e));const n=x(this[X].expressions);if(!1!==this.shouldUpdate(n,this.props))return dt(this,"props",Object.freeze(Object.assign({},this.props,n))),this.state=Bt(this.state,t),this.onBeforeUpdate(this.props,this.state),this[Z].update(this,this[W]),this.onUpdated(this.props,this.state),this},unmount(t){return this.onBeforeUnmount(this.props,this.state),this[X].unmount(),this[Z].unmount(this,this[W],null===t?null:!t),this.onUnmounted(this.props,this.state),this}})),Object.keys(t).filter(e=>N(t[e])).forEach(t=>{s[t]=s[t].bind(s)}),s;var s}const{DOM_COMPONENT_INSTANCE_PROPERTY:Yt,COMPONENTS_IMPLEMENTATION_MAP:Lt,PLUGINS_SET:Kt}=J,kt={cssManager:Mt,DOMBindings:lt,createComponent:Ct,defineComponent:Dt,globals:J};t.__=kt,t.component=function(t){return function(e,n,r){let{slots:o,attributes:s,parentScope:i}=void 0===r?{}:r;return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((t,e)=>function(){return t(e(...arguments))})}(t=>t.mount(e,i),t=>t({props:n,slots:o,attributes:s}),Ct)(t)}},t.install=function(t){return N(t)||w("Plugins must be of type function"),Kt.has(t)&&w("This plugin was already installed"),Kt.add(t),Kt},t.mount=function(t,e,n){return Ot(t).map(t=>function(t,e,n){const r=n||jt(t);return $.has(r)||w(`The component named "${r}" was never registered`),$.get(r)({props:e}).mount(t)}(t,e,n))},t.pure=function(t){return N(t)||w('riot.pure accepts only arguments of type "function"'),t[q]=!0,t},t.register=function(t,e){let{css:n,template:r,exports:o}=e;return Lt.has(t)&&w(`The component "${t}" was already registered`),Lt.set(t,Ct({name:t,css:n,template:r,exports:o})),Lt},t.uninstall=function(t){return Kt.has(t)||w("This plugin was never installed"),Kt.delete(t),Kt},t.unmount=function(t,e){return Ot(t).map(t=>(t[Yt]&&t[Yt].unmount(e),t))},t.unregister=function(t){return Lt.has(t)||w(`The component "${t}" was never registered`),Lt.delete(t),Mt.remove(t),Lt},t.version="v4.13.5",Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).riot={});

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc