!function(){"use strict";let e=1;const t=e=>Math.round(1e3*Math.random())%e,n=n=>{const r=["pretty","large","big","small","tall","short","long","handsome","plain","quaint","clean","elegant","easy","angry","crazy","helpful","mushy","odd","unsightly","adorable","important","inexpensive","cheap","expensive","fancy"],o=["red","yellow","blue","green","pink","brown","purple","brown","white","black","orange"],a=["table","chair","house","bbq","desk","car","pony","cookie","sandwich","burger","pizza","mouse","keyboard"],s=new Array(n);for(let l=0;l<n;l++)s[l]={id:e++,label:r[t(r.length)]+" "+o[t(o.length)]+" "+a[t(a.length)]};return s},r=(e,t,n)=>{n[t]={...e,label:e.label+" !!!"}},o=e=>{e.label+=" !!!"};var a=WeakMap,s={};
/*! (c) Andrea Giammarchi - ISC */try{s.WeakSet=WeakSet}catch(e){!function(e,t){var n=r.prototype;function r(){t(this,"_",{value:"_@ungap/weakmap"+e++})}n.add=function(e){return this.has(e)||t(e,this._,{value:!0,configurable:!0}),this},n.has=function(e){return this.hasOwnProperty.call(e,this._)},n.delete=function(e){return this.has(e)&&delete e[this._]},s.WeakSet=r}(Math.random(),Object.defineProperty)}var l=s.WeakSet;const{indexOf:i,slice:c}=[],u=(e,t,n,r,o,a)=>{const s="selectedIndex"in t;let l=s;for(;r<o;){const o=e(n[r],1);if(t.insertBefore(o,a),s&&l&&o.selected){l=!l;let{selectedIndex:e}=t;t.selectedIndex=e<0?r:i.call(t.querySelectorAll("option"),o)}r++}},d=(e,t)=>e==t,h=e=>e,p=(e,t,n,r,o,a,s)=>{const l=a-o;if(l<1)return-1;for(;n-t>=l;){let l=t,i=o;for(;l<n&&i<a&&s(e[l],r[i]);)l++,i++;if(i===a)return t;t=l+1}return-1},f=(e,t,n,r,o)=>n<r?e(t[n],0):0<n?e(t[n-1],-0).nextSibling:o,v=(e,t,n,r)=>{for(;n<r;)y(e(t[n++],-1))},b=(e,t,n)=>{let r=1,o=t;for(;r<o;){const t=(r+o)/2>>>0;n<e[t]?o=t:r=t+1}return r},m=(e,t,n,r,o,a,s,l,i,c,d,h,p)=>{((e,t,n,r,o,a,s,l,i)=>{const c=[],d=e.length;let h=s,p=0;for(;p<d;)switch(e[p++]){case 0:o++,h++;break;case 1:c.push(r[o]),u(t,n,r,o++,o,h<l?t(a[h],0):i);break;case-1:h++}for(p=0;p<d;)switch(e[p++]){case 0:s++;break;case-1:-1<c.indexOf(a[s])?s++:v(t,a,s++,s)}})(((e,t,n,r,o,a,s)=>{const l=n+a,i=[];let c,u,d,h,p,f,v;e:for(c=0;c<=l;c++){if(c>50)return null;for(v=c-1,p=c?i[c-1]:[0,0],f=i[c]=[],u=-c;u<=c;u+=2){for(h=u===-c||u!==c&&p[v+u-1]<p[v+u+1]?p[v+u+1]:p[v+u-1]+1,d=h-u;h<a&&d<n&&s(r[o+h],e[t+d]);)h++,d++;if(h===a&&d===n)break e;f[c+u]=h}}const b=Array(c/2+l/2);let m=b.length-1;for(c=i.length-1;c>=0;c--){for(;h>0&&d>0&&s(r[o+h-1],e[t+d-1]);)b[m--]=0,h--,d--;if(!c)break;v=c-1,p=c?i[c-1]:[0,0],u=h-d,u===-c||u!==c&&p[v+u-1]<p[v+u+1]?(d--,b[m--]=1):(h--,b[m--]=-1)}return b})(n,r,a,s,l,c,h)||((e,t,n,r,o,a,s,l)=>{let i=0,c=r<l?r:l;const u=Array(c++),d=Array(c);d[0]=-1;for(let e=1;e<c;e++)d[e]=s;const h=o.slice(a,s);for(let r=t;r<n;r++){const t=h.indexOf(e[r]);if(-1<t){const e=t+a;i=b(d,c,e),-1<i&&(d[i]=e,u[i]={newi:r,oldi:e,prev:u[i-1]})}}for(i=--c,--s;d[i]>s;)--i;c=l+r-i;const p=Array(c);let f=u[i];for(--n;f;){const{newi:e,oldi:t}=f;for(;n>e;)p[--c]=1,--n;for(;s>t;)p[--c]=-1,--s;p[--c]=0,--n,--s,f=f.prev}for(;n>=t;)p[--c]=1,--n;for(;s>=a;)p[--c]=-1,--s;return p})(n,r,o,a,s,l,i,c),e,t,n,r,s,l,d,p)},y=e=>(e.remove||g).call(e);function g(){const{parentNode:e}=this;e&&e.removeChild(this)}
/*! (c) 2018 Andrea Giammarchi (ISC) */const w=(e,t,n,r)=>{r||(r={});const o=r.compare||d,a=r.node||h,s=null==r.before?null:a(r.before,0),l=t.length;let i=l,c=0,b=n.length,y=0;for(;c<i&&y<b&&o(t[c],n[y]);)c++,y++;for(;c<i&&y<b&&o(t[i-1],n[b-1]);)i--,b--;const g=c===i,w=y===b;if(g&&w)return n;if(g&&y<b)return u(a,e,n,y,b,f(a,t,c,l,s)),n;if(w&&c<i)return v(a,t,c,i),n;const x=i-c,k=b-y;let N=-1;if(x<k){if(N=p(n,y,b,t,c,i,o),-1<N)return u(a,e,n,y,N,a(t[c],0)),u(a,e,n,N+x,b,f(a,t,i,l,s)),n}else if(k<x&&(N=p(t,c,i,n,y,b,o),-1<N))return v(a,t,c,N),v(a,t,N+k,i),n;return x<2||k<2?(u(a,e,n,y,b,a(t[c],0)),v(a,t,c,i),n):x===k&&((e,t,n,r,o,a)=>{for(;r<o&&a(n[r],e[t-1]);)r++,t--;return 0===t})(n,b,t,c,i,o)?(u(a,e,n,y,b,f(a,t,i,l,s)),n):(m(a,e,n,y,b,k,t,c,i,x,l,o,s),n)};
/*! (c) Andrea Giammarchi - ISC */var x={};x.CustomEvent="function"==typeof CustomEvent?CustomEvent:function(e){return t.prototype=new t("").constructor.prototype,t;function t(e,t){t||(t={});var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail),n}}();var k=x.CustomEvent,N=Map;function E(){return this}const C=(e,t)=>{const n="_"+e+"$";return{get(){return this[n]||A(this,n,t.call(this,e))},set(e){A(this,n,e)}}},A=(e,t,n)=>Object.defineProperty(e,t,{configurable:!0,value:"function"==typeof n?function(){return e._wire$=n.apply(this,arguments)}:n})[t];Object.defineProperties(E.prototype,{ELEMENT_NODE:{value:1},nodeType:{value:-1}});const S={},O={},$=[],T=O.hasOwnProperty;let j=0;var L,_,M={attributes:S,define:(e,t)=>{e.indexOf("-")<0?(e in O||(j=$.push(e)),O[e]=t):S[e]=t},invoke:(e,t)=>{for(let n=0;n<j;n++){let r=$[n];if(T.call(e,r))return O[r](e[r],t)}}},P=Array.isArray||(_=(L={}.toString).call([]),function(e){return L.call(e)===_});const D=e=>document.createElementNS("http://www.w3.org/1999/xhtml",e),R=(e,t)=>("svg"===t?z:W)(e),W=e=>{const t=D("template");return t.innerHTML=e,t.content},z=e=>{const{content:t}=D("template"),n=D("div");n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg">'+e+"</svg>";const{childNodes:r}=n.firstChild;let{length:o}=r;for(;o--;)t.appendChild(r[0]);return t};var I,G=document.importNode,V="".trim,H="-"+Math.random().toFixed(6)+"%",Z=!1;try{"content"in(I=document.createElement("template"))&&(I.innerHTML='<p tabindex="'+H+'"></p>',I.content.childNodes[0].getAttribute("tabindex")==H)||(H="_dt: "+H.slice(1,-1)+";",Z=!0)}catch(e){}var q="\x3c!--"+H+"--\x3e",B=/^(?:plaintext|script|style|textarea|title|xmp)$/i,F=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i;
/*! (c) Andrea Giammarchi - ISC */
function U(e){return e.join(q).replace(te,ae).replace(ee,re)}var J=" \\f\\n\\r\\t",K="[^"+J+"\\/>\"'=]+",Q="["+J+"]+"+K,X="<([A-Za-z]+[A-Za-z0-9:._-]*)((?:",Y="(?:\\s*=\\s*(?:'[^']*?'|\"[^\"]*?\"|<[^>]*?>|"+K.replace("\\/","")+"))?)",ee=new RegExp(X+Q+Y+"+)(["+J+"]*/?>)","g"),te=new RegExp(X+Q+Y+"*)(["+J+"]*/>)","g"),ne=new RegExp("("+Q+"\\s*=\\s*)(['\"]?)"+q+"\\2","gi");function re(e,t,n,r){return"<"+t+n.replace(ne,oe)+r}function oe(e,t,n){return t+(n||'"')+H+(n||'"')}function ae(e,t,n){return F.test(t)?e:"<"+t+n+"></"+t+">"}var se=Z?function(e,t){var n=t.join(" ");return t.slice.call(e,0).sort((function(e,t){return n.indexOf(e.name)<=n.indexOf(t.name)?-1:1}))}:function(e,t){return t.slice.call(e,0)};function le(e,t){for(var n=t.length,r=0;r<n;)e=e.childNodes[t[r++]];return e}function ie(e,t,n,r){for(var o=e.attributes,a=[],s=[],l=se(o,n),i=l.length,c=0;c<i;){var u,d=l[c++],h=d.value===H;if(h||1<(u=d.value.split(q)).length){var p=d.name;if(a.indexOf(p)<0){a.push(p);var f=n.shift().replace(h?/^(?:|[\S\s]*?\s)(\S+?)\s*=\s*('|")?$/:new RegExp("^(?:|[\\S\\s]*?\\s)("+p+")\\s*=\\s*('|\")[\\S\\s]*","i"),"$1"),v=o[f]||o[f.toLowerCase()];if(h)t.push(ue(v,r,f,null));else{for(var b=u.length-2;b--;)n.shift();t.push(ue(v,r,f,u))}}s.push(d)}}c=0;for(var m=(0<(i=s.length)&&Z&&!("ownerSVGElement"in e));c<i;){var y=s[c++];m&&(y.value=""),e.removeAttribute(y.name)}var g=e.nodeName;if(/^script$/i.test(g)){var w=document.createElement(g);for(i=o.length,c=0;c<i;)w.setAttributeNode(o[c++].cloneNode(!0));w.textContent=e.textContent,e.parentNode.replaceChild(w,e)}}function ce(e,t){return{type:"any",node:e,path:t}}function ue(e,t,n,r){return{type:"attr",node:e,path:t,name:n,sparse:r}}function de(e,t){return{type:"text",node:e,path:t}}var he,pe=(he=new a,{get:e=>he.get(e),set:(e,t)=>(he.set(e,t),t)});function fe(e,t){var n=(e.convert||U)(t),r=e.transform;r&&(n=r(n));var o=R(n,e.type);me(o);var a=[];return function e(t,n,r,o){for(var a=t.childNodes,s=a.length,l=0;l<s;){var i=a[l];switch(i.nodeType){case 1:var c=o.concat(l);ie(i,n,r,c),e(i,n,r,c);break;case 8:var u=i.textContent;if(u===H)r.shift(),n.push(B.test(t.nodeName)?de(t,o):ce(i,o.concat(l)));else switch(u.slice(0,2)){case"/*":if("*/"!==u.slice(-2))break;case"👻":t.removeChild(i),l--,s--}break;case 3:B.test(t.nodeName)&&V.call(i.textContent)===q&&(r.shift(),n.push(de(t,o)))}l++}}(o,a,t.slice(0),[]),{content:o,updates:function(n){for(var r=[],o=a.length,s=0,l=0;s<o;){var i=a[s++],c=le(n,i.path);switch(i.type){case"any":r.push({fn:e.any(c,[]),sparse:!1});break;case"attr":var u=i.sparse,d=e.attribute(c,i.name,i.node);null===u?r.push({fn:d,sparse:!1}):(l+=u.length-2,r.push({fn:d,sparse:!0,values:u}));break;case"text":r.push({fn:e.text(c),sparse:!1}),c.textContent=""}}return o+=l,function(){var e=arguments.length;if(o!==e-1)throw new Error(e-1+" values instead of "+o+"\n"+t.join("${value}"));for(var a=1,s=1;a<e;){var l=r[a-s];if(l.sparse){var i=l.values,c=i[0],u=1,d=i.length;for(s+=d-2;u<d;)c+=arguments[a++]+i[u++];l.fn(c)}else l.fn(arguments[a++])}return n}}}}function ve(e,t){var n=pe.get(t)||pe.set(t,fe(e,t));return n.updates(G.call(document,n.content,!0))}var be=[];function me(e){for(var t=e.childNodes,n=t.length;n--;){var r=t[n];1!==r.nodeType&&0===V.call(r.textContent).length&&e.removeChild(r)}}
/*! (c) Andrea Giammarchi - ISC */var ye=function(){var e=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,t=/([^A-Z])([A-Z]+)/g;return function(e,t){return"ownerSVGElement"in e?function(e,t){var n;t?n=t.cloneNode(!0):(e.setAttribute("style","--hyper:style;"),n=e.getAttributeNode("style"));return n.value="",e.setAttributeNode(n),r(n,!0)}(e,t):r(e.style,!1)};function n(e,t,n){return t+"-"+n.toLowerCase()}function r(r,o){var a,s;return function(l){var i,c,u,d;switch(typeof l){case"object":if(l){if("object"===a){if(!o&&s!==l)for(c in s)c in l||(r[c]="")}else o?r.value="":r.cssText="";for(c in i=o?{}:r,l)u="number"!=typeof(d=l[c])||e.test(c)?d:d+"px",!o&&/^--/.test(c)?i.setProperty(c,u):i[c]=u;a="object",o?r.value=function(e){var r,o=[];for(r in e)o.push(r.replace(t,n),":",e[r],";");return o.join("")}(s=i):s=l;break}default:s!=l&&(a="string",s=l,o?r.value=l||"":r.cssText=l||"")}}}}(),ge=function(e,t){return(t=n.prototype).ELEMENT_NODE=1,t.nodeType=111,t.remove=function(e){var t=this.childNodes,n=this.firstChild,r=this.lastChild;if(this._=null,e&&2===t.length)r.parentNode.removeChild(r);else{var o=this.ownerDocument.createRange();o.setStartBefore(e?t[1]:n),o.setEndAfter(r),o.deleteContents()}return n},t.valueOf=function(e){var t=this._,n=null==t;if(n&&(t=this._=this.ownerDocument.createDocumentFragment()),n||e)for(var r=this.childNodes,o=0,a=r.length;o<a;o++)t.appendChild(r[o]);return t},n;function n(t){var n=this.childNodes=e.call(t,0);this.firstChild=n[0],this.lastChild=n[n.length-1],this.ownerDocument=n[0].ownerDocument,this._=null}}([].slice);
/*! (c) Andrea Giammarchi - ISC */const we=E.prototype.nodeType,xe=ge.prototype.nodeType,ke=
/*! (c) Andrea Giammarchi */
function(e){var t=e.Event,n=e.WeakSet,r=!0,o=null;return function(e){return r&&(r=!r,o=new n,function(e){var r=new n,a=new n;try{new MutationObserver(c).observe(e,{subtree:!0,childList:!0})}catch(t){var s=0,l=[],i=function(e){l.push(e),clearTimeout(s),s=setTimeout((function(){c(l.splice(s=0,l.length))}),0)};e.addEventListener("DOMNodeRemoved",(function(e){i({addedNodes:[],removedNodes:[e.target]})}),!0),e.addEventListener("DOMNodeInserted",(function(e){i({addedNodes:[e.target],removedNodes:[]})}),!0)}function c(e){for(var t,n=e.length,o=0;o<n;o++)u((t=e[o]).removedNodes,"disconnected",a,r),u(t.addedNodes,"connected",r,a)}function u(e,n,r,o){for(var a,s=new t(n),l=e.length,i=0;i<l;1===(a=e[i++]).nodeType&&d(a,s,n,r,o));}function d(e,t,n,r,a){o.has(e)&&!r.has(e)&&(a.delete(e),r.add(e),e.dispatchEvent(t));for(var s=e.children||[],l=s.length,i=0;i<l;d(s[i++],t,n,r,a));}}(e.ownerDocument)),o.add(e),e}}({Event:k,WeakSet:l}),Ne=e=>({html:e}),Ee=(e,t)=>{switch(e.nodeType){case xe:return 1/t<0?t?e.remove(!0):e.lastChild:t?e.valueOf(!0):e.firstChild;case we:return Ee(e.render(),t);default:return e}},Ce=(e,t)=>{t(e.placeholder),"text"in e?Promise.resolve(e.text).then(String).then(t):"any"in e?Promise.resolve(e.any).then(t):"html"in e?Promise.resolve(e.html).then(Ne).then(t):Promise.resolve(M.invoke(e,t)).then(t)},Ae=e=>null!=e&&"then"in e,Se=/^(?:form|list)$/i,Oe=[].slice,$e=(e,t)=>e.ownerDocument.createTextNode(t);function Te(e){return this.type=e,t=this,n=be,r=me,function(e){return n!==e&&(r=ve(t,n=e)),r.apply(null,arguments)};var t,n,r}Te.prototype={attribute(e,t,n){const r="ownerSVGElement"in e;let o;if("style"===t)return ye(e,n,r);if("."===t.slice(0,1))return((e,t,n)=>n?n=>{try{e[t]=n}catch(r){e.setAttribute(t,n)}}:n=>{e[t]=n})(e,t.slice(1),r);if(/^on/.test(t)){let n=t.slice(2);return"connected"===n||"disconnected"===n?ke(e):t.toLowerCase()in e&&(n=n.toLowerCase()),t=>{o!==t&&(o&&e.removeEventListener(n,o,!1),o=t,t&&e.addEventListener(n,t,!1))}}if("data"===t||!r&&t in e&&!Se.test(t))return n=>{o!==n&&(o=n,e[t]!==n&&null==n?(e[t]="",e.removeAttribute(t)):e[t]=n)};if(t in M.attributes)return n=>{const r=M.attributes[t](e,n);o!==r&&(o=r,null==r?e.removeAttribute(t):e.setAttribute(t,r))};{let t=!1;const r=n.cloneNode(!0);return n=>{o!==n&&(o=n,r.value!==n&&(null==n?(t&&(t=!1,e.removeAttributeNode(r)),r.value=n):(r.value=n,t||(t=!0,e.setAttributeNode(r)))))}}},any(e,t){const n={node:Ee,before:e},r="ownerSVGElement"in e?"svg":"html";let o,a=!1;const s=l=>{switch(typeof l){case"string":case"number":case"boolean":a?o!==l&&(o=l,t[0].textContent=l):(a=!0,o=l,t=w(e.parentNode,t,[$e(e,l)],n));break;case"function":s(l(e));break;case"object":case"undefined":if(null==l){a=!1,t=w(e.parentNode,t,[],n);break}default:if(a=!1,o=l,P(l))if(0===l.length)t.length&&(t=w(e.parentNode,t,[],n));else switch(typeof l[0]){case"string":case"number":case"boolean":s({html:l});break;case"object":if(P(l[0])&&(l=l.concat.apply([],l)),Ae(l[0])){Promise.all(l).then(s);break}default:t=w(e.parentNode,t,l,n)}else(e=>"ELEMENT_NODE"in e)(l)?t=w(e.parentNode,t,11===l.nodeType?Oe.call(l.childNodes):[l],n):Ae(l)?l.then(s):"placeholder"in l?Ce(l,s):"text"in l?s(String(l.text)):"any"in l?s(l.any):"html"in l?t=w(e.parentNode,t,Oe.call(R([].concat(l.html).join(""),r).childNodes),n):s("length"in l?Oe.call(l):M.invoke(l,s))}};return s},text(e){let t;const n=r=>{if(t!==r){t=r;const o=typeof r;"object"===o&&r?Ae(r)?r.then(n):"placeholder"in r?Ce(r,n):n("text"in r?String(r.text):"any"in r?r.any:"html"in r?[].concat(r.html).join(""):"length"in r?Oe.call(r).join(""):M.invoke(r,n)):"function"===o?n(r(e)):e.textContent=null==r?"":r}};return n}};var je=(...e)=>e;const Le=new a,_e=e=>{let t,n,r;return function(){const o=je.apply(null,arguments);return r!==o[0]?(r=o[0],n=new Te(e),t=Pe(n.apply(n,o))):n.apply(n,o),t}},Me=(e,t)=>{const n=t.indexOf(":");let r=Le.get(e),o=t;return-1<n&&(o=t.slice(n+1),t=t.slice(0,n)||"html"),r||Le.set(e,r={}),r[o]||(r[o]=_e(t))},Pe=e=>{const t=e.childNodes,{length:n}=t;return 1===n?t[0]:n?new ge(t):e},De=new a;function Re(){const e=De.get(this),t=je.apply(null,arguments);return e&&e.template===t[0]?e.tagger.apply(null,t):We.apply(this,t),this}function We(e){const t="ownerSVGElement"in this?"svg":"html",n=new Te(t);De.set(this,{tagger:n,template:e}),this.textContent="",this.appendChild(n.apply(null,arguments))}
/*! (c) Andrea Giammarchi (ISC) */!function(e){const t=new a,n=Object.create,r=(e,t)=>{const n={w:null,p:null};return t.set(e,n),n};Object.defineProperties(E,{for:{configurable:!0,value(e,o){return((e,t,o,s)=>{const l=t.get(e)||r(e,t);switch(typeof s){case"object":case"function":const t=l.w||(l.w=new a);return t.get(s)||((e,t,n)=>(e.set(t,n),n))(t,s,new e(o));default:const r=l.p||(l.p=n(null));return r[s]||(r[s]=new e(o))}})(this,t.get(e)||(e=>{const n=new N;return t.set(e,n),n})(e),e,null==o?"default":o)}}}),Object.defineProperties(E.prototype,{handleEvent:{value(e){const t=e.currentTarget;this["getAttribute"in t&&t.getAttribute("data-call")||"on"+e.type](e)}},html:C("html",e),svg:C("svg",e),state:C("state",(function(){return this.defaultState})),defaultState:{get:()=>({})},dispatch:{value(e,t){const{_wire$:n}=this;if(n){const r=new k(e,{bubbles:!0,cancelable:!0,detail:t});return r.component=this,(n.dispatchEvent?n:n.firstChild).dispatchEvent(r)}return!1}},setState:{value(e,t){const n=this.state,r="function"==typeof e?e.call(this,n):e;for(const e in r)n[e]=r[e];return!1!==t&&this.render(),this}}})}(_e);var ze=(e,t,{id:n,label:r})=>{return(o=e,a="html:"+n,null==o?_e(a||"html"):Me(o,a||"html"))`<tr id="${n}" class="${n===t?"danger":""}"><td class="col-md-1">${n}</td><td class="col-md-4"><a data-action="select">${r}</a></td><td class="col-md-1"><a data-action="remove"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td><td class="col-md-6"></td></tr>`;var o,a};const Ie=((e,t=!1)=>{const a=e||(()=>{}),s=t?r:o,l={data:[],selected:-1,add(){t&&(l.data=l.data.slice(0)),l.data.push(...n(1e3)),a(l)},clear(){l.data=[],a(l)},run(){l.data=n(1e3),a(l)},runLots(){l.data=n(1e4),a(l)},swapRows(){t&&(l.data=l.data.slice(0));const{data:e}=l;if(e.length>998){const t=e[1];e[1]=e[998],e[998]=t}a(l)},update(){t&&(l.data=l.data.slice(0));const{data:e}=l;for(let t=0,{length:n}=e;t<n;t+=10)s(e[t],t,e);a(l)},remove(e){t&&(l.data=l.data.slice(0));const{data:n}=l;n.splice(n.findIndex(t=>t.id===e),1),a(l)},select(e){l.selected=e,a(l)}};return l})(Ze),Ge=(Ve=document.getElementById("main"),Re.bind(Ve));var Ve;const He=({target:e})=>{const t=e.closest("a"),{action:n}=t.dataset;Ie[n](+t.closest("tr").id)};function Ze({data:e,selected:t,run:n,runLots:r,add:o,update:a,clear:s,swapRows:l}){Ge`
  <div class="container">
    <div class="jumbotron">
      <div class="row">
        <div class="col-md-6">
          <h1>hyper(HTML) keyed</h1>
        </div>
        <div class="col-md-6">
          <div class="row">
            <div class="col-sm-6 smallpad">
              <button type="button" class="btn btn-primary btn-block"
                      id="run" onclick=${n}>Create 1,000 rows</button>
            </div>
            <div class="col-sm-6 smallpad">
              <button type="button" class="btn btn-primary btn-block"
                      id="runlots" onclick=${r}>Create 10,000 rows</button>
            </div>
            <div class="col-sm-6 smallpad">
              <button type="button" class="btn btn-primary btn-block"
                      id="add" onclick=${o}>Append 1,000 rows</button>
            </div>
            <div class="col-sm-6 smallpad">
              <button type="button" class="btn btn-primary btn-block"
                      id="update" onclick=${a}>Update every 10th row</button>
            </div>
            <div class="col-sm-6 smallpad">
              <button type="button" class="btn btn-primary btn-block"
                      id="clear" onclick=${s}>Clear</button>
            </div>
            <div class="col-sm-6 smallpad">
              <button type="button" class="btn btn-primary btn-block"
                      id="swaprows" onclick=${l}>Swap Rows</button>
            </div>
          </div>
        </div>
      </div>
    </div>
    <table onclick=${He} class="table table-hover table-striped test-data">
      <tbody>${e.map(n=>ze(e,t,n))}</tbody>
    </table>
    <span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span>
  </div>`}Ze(Ie)}();
