!function n(r,s,c){function d(e,t){if(!s[e]){if(!r[e]){var a="function"==typeof require&&require;if(!t&&a)return a(e,!0);if(h)return h(e,!0);var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}var i=s[e]={exports:{}};r[e][0].call(i.exports,function(t){return d(r[e][1][t]||t)},i,i.exports,n,r,s,c)}return s[e].exports}for(var h="function"==typeof require&&require,t=0;t/g),a=t.match(//g),o=t.match(//g),i=t.match(//g);if(e)for(var c=0,d=e.length;c/g,function(t,e){return(0,f.selector)("#"+e).innerHTML})}},{key:"resolveWith",value:function(t){return t=t.replace(/(([\n\r\t]|.)*?)/g,function(t,e){return t=t.replace(/data\-bind=['"](.*?)['"]/g,"data-bind='"+e+".$1'")})}},{key:"resolveLoop",value:function(t){var c=this;return t=t.replace(/(([\n\r\t]|.)*?)/g,function(t,e,a){var o=c.getDataByString(e),i=[],n="";if((i="function"==typeof o?o.apply(c):o)instanceof Array)for(var r=0,s=i.length;r(([\n\r\t]|.)*?)/g)}},{key:"getHtml",value:function(e,t){var a=this.atemplate.find(function(t){return t.id===e}),o="";if(a&&a.html&&(o=a.html),t&&(o=e),!o)return"";var i=this.data;for(o=this.resolveInclude(o),o=this.resolveWith(o);this.hasLoop(o);)o=this.resolveLoop(o);return o=(o=this.resolveBlock(o,i)).replace(/\\([^\\])/g,"$1"),(o=this.resolveAbsBlock(o)).replace(/^([\t ])*\n/gm,"")}},{key:"update",value:function(t,e){var c=this,d=0"+o+"");else(0,f.selector)(a).insertAdjacentHTML("afterend",'
'),"text"===d?(0,f.selector)("[data-id='"+e+"']").innerText=o:(0,f.selector)("[data-id='"+e+"']").innerHTML=o;var s=c.atemplate.find(function(t){return t.id===e});s.binded||(s.binded=!0,c.addDataBind((0,f.selector)("[data-id='"+e+"']")),c.addActionBind((0,f.selector)("[data-id='"+e+"']")))},o=0,i=l.length;o>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var o=arguments[1],i=0;i