text: /* Minified JavaScript of liquid-stats version:1.0.0 */
  
  Handlebars.registerHelper("math",function(e,t,n,r){return{"+":(e=parseFloat(e))+(n=parseFloat(n)),"-":e-n,"*":e*n,"/":e/n,"%":e%n}[t]}),Handlebars.registerHelper("published",function(){return moment(Date.parse(this.createdAt)).format("h:mm A D MMM YYYY")}),Handlebars.registerHelper("userLatest",function(e){if(e<1){var t=this.name,e=this.username,t=['<div class="user cf">','<img class="avatar" src="'+this.avatar+'" alt="'+t+'">','<p class="name"><a href="https://untappd.com/user/'+e+'" target="_blank" title="Untappd profile" rel="extrenal">'+t+"</a></p>","<span>Latest Checkins</span>","</div>"].join("\n");return new Handlebars.SafeString(t)}}),Handlebars.registerHelper("ifCond",function(e,t,n,r){switch(t){case"==":return e==n?r.fn(this):r.inverse(this);case"===":return e===n?r.fn(this):r.inverse(this);case"!=":return e!=n?r.fn(this):r.inverse(this);case"!==":return e!==n?r.fn(this):r.inverse(this);case"<":return e<n?r.fn(this):r.inverse(this);case"<=":return e<=n?r.fn(this):r.inverse(this);case">":return n<e?r.fn(this):r.inverse(this);case">=":return n<=e?r.fn(this):r.inverse(this);case"&&":return e&&n?r.fn(this):r.inverse(this);case"||":return e||n?r.fn(this):r.inverse(this);default:return r.inverse(this)}}),Handlebars.registerHelper("eachByIdx",function(e,t){for(var n="",r=e.concat().sort(function(e,t){return t.myRating-e.myRating}),s=0,a=r.length;s<a;s++)n+=t.fn(r[s]);return n}),Handlebars.registerHelper("toFixed",function(e){return e.toFixed(2)}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t:e.Untappd=t()}(this,function(){"use strict";function t(e){if(!(this&&this instanceof t))return new t(e);this.username=(e="string"==typeof e?{key:e}:e).username,"localhost"===location.hostname||"127.0.0.1"===location.hostname||""===window.location.hostname?this.url="/badges.json":this.url="https://liquid-stats.s3.amazonaws.com/badges.json",this.template=e.template,this.container=e.container,this.fetch()}return t.init=function(e){return new t(e)},t.prototype={attachTemplate:function(){var e=Handlebars.compile(this.template);this.container.empty().append(e(this.untappd))},handleError:function(e){this.container.empty().append('<p class="error">'+e+"</p>")},fetch:function(){var t=this;$.getJSON(t.url,function(e){t.untappd=$.map(e,function(e){return{badgeName:e.badge_name,badgeDescription:e.badge_description,badgeImage:e.media.badge_image_sm,createdAt:e.created_at,id:e.user_badge_id}}),t.attachTemplate()})}},t});