!function(e){"use strict";var t={encode:{html:{cdata:function(e){return String(e).replace(/[&<>"']/g,function(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case"'":return"&#39;";default:return console.log("Unexpected character encountered: "+e),""}})}}},html:function(e,...n){var o=[e[0]];return n.forEach(function(n,c){"object"==typeof n?n instanceof t.tpl?o.push(n.html()):console.log("Expecting string or instance of nano.tpl, but got an object when processing i'th placeholder in template between ["+e[c]+"] and ["+e[c+1]+"]"):"function"==typeof n?console.log("Expecting string or instance of nano.tpl, but got a function when processing i'th placeholder in template between ["+e[c]+"] and ["+e[c+1]+"]"):o.push(t.encode.html.cdata(n)),o.push(e[c+1])}),o.join("")},tpl:class{constructor(e){this.data=e}html(){return t.html``}}};"undefined"!=typeof define&&define.amd?define([],function(){return t}):"undefined"!=typeof module&&module.exports?module.exports=t:e.nano=t}(this);
