text: /*!
  
  Holder - client side image placeholders
  Version 2.9.4+cabil
  © 2016 Ivan Malopinsky - http://imsky.co
  
  Site:     http://holderjs.com
  Issues:   https://github.com/imsky/holder/issues
  License:  MIT
  
  */
  
  !function(i){if(i.document){var o=i.document;o.querySelectorAll||(o.querySelectorAll=function(e){var t,n=o.createElement("style"),r=[];for(o.documentElement.firstChild.appendChild(n),o._qsa=[],n.styleSheet.cssText=e+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",i.scrollBy(0,0),n.parentNode.removeChild(n);o._qsa.length;)(t=o._qsa.shift()).style.removeAttribute("x-qsa"),r.push(t);return o._qsa=null,r}),o.querySelector||(o.querySelector=function(e){var t=o.querySelectorAll(e);return t.length?t[0]:null}),o.getElementsByClassName||(o.getElementsByClassName=function(e){return e=String(e).replace(/^|\s+/g,"."),o.querySelectorAll(e)}),Object.keys||(Object.keys=function(e){if(e!==Object(e))throw TypeError("Object.keys called on non-object");var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}),Array.prototype.forEach||(Array.prototype.forEach=function(e){if(null==this)throw TypeError();var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw TypeError();var r,i=arguments[1];for(r=0;r<n;r++)r in t&&e.call(i,t[r],r,t)}),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",(e=i).atob=e.atob||function(e){var t=0,n=[],r=0,i=0;if((e=(e=String(e)).replace(/\s/g,"")).length%4==0&&(e=e.replace(/=+$/,"")),e.length%4==1)throw Error("InvalidCharacterError");if(/[^+\/0-9A-Za-z]/.test(e))throw Error("InvalidCharacterError");for(;t<e.length;)r=r<<6|d.indexOf(e.charAt(t)),24===(i+=6)&&(n.push(String.fromCharCode(r>>16&255)),n.push(String.fromCharCode(r>>8&255)),n.push(String.fromCharCode(255&r)),r=i=0),t+=1;return 12===i?(r>>=4,n.push(String.fromCharCode(255&r))):18===i&&(r>>=2,n.push(String.fromCharCode(r>>8&255)),n.push(String.fromCharCode(255&r))),n.join("")},e.btoa=e.btoa||function(e){e=String(e);var t,n,r,i,o,a,s,l=0,h=[];if(/[^\x00-\xFF]/.test(e))throw Error("InvalidCharacterError");for(;l<e.length;)i=(t=e.charCodeAt(l++))>>2,o=(3&t)<<4|(n=e.charCodeAt(l++))>>4,a=(15&n)<<2|(r=e.charCodeAt(l++))>>6,s=63&r,l===e.length+2?s=a=64:l===e.length+1&&(s=64),h.push(d.charAt(i),d.charAt(o),d.charAt(a),d.charAt(s));return h.join("")},Object.prototype.hasOwnProperty||(Object.prototype.hasOwnProperty=function(e){var t=this.__proto__||this.constructor.prototype;return e in this&&(!(e in t)||t[e]!==this[e])}),function(){if("performance"in i==0&&(i.performance={}),Date.now=Date.now||function(){return(new Date).getTime()},"now"in i.performance==0){var e=Date.now();performance.timing&&performance.timing.navigationStart&&(e=performance.timing.navigationStart),i.performance.now=function(){return Date.now()-e}}}(),i.requestAnimationFrame||(i.webkitRequestAnimationFrame&&i.webkitCancelAnimationFrame?((r=i).requestAnimationFrame=function(e){return webkitRequestAnimationFrame(function(){e(r.performance.now())})},r.cancelAnimationFrame=r.webkitCancelAnimationFrame):i.mozRequestAnimationFrame&&i.mozCancelAnimationFrame?((n=i).requestAnimationFrame=function(e){return mozRequestAnimationFrame(function(){e(n.performance.now())})},n.cancelAnimationFrame=n.mozCancelAnimationFrame):((t=i).requestAnimationFrame=function(e){return t.setTimeout(e,1e3/60)},t.cancelAnimationFrame=t.clearTimeout))}var t,n,r,e,d}(this),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Holder=t():e.Holder=t()}(this,function(){return function(n){function r(e){if(i[e])return i[e].exports;var t=i[e]={exports:{},id:e,loaded:!1};return n[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}var i={};return r.m=n,r.c=i,r.p="",r(0)}([function(e,t,n){e.exports=n(1)},function(s,e,T){(function(h){function u(e,t,n,r){var i=l(n.substr(n.lastIndexOf(e.domain)),e);i&&f({mode:null,el:r,flags:i,engineSettings:t})}function l(e,t){var n={theme:C(R.settings.themes.gray,null),stylesheets:t.stylesheets,instanceOptions:t},r=e.indexOf("?"),i=[e];-1!==r&&(i=[e.slice(0,r),e.slice(r+1)]);var o=i[0].split("/");n.holderURL=e;var a=o[1],s=a.match(/([\d]+p?)x([\d]+p?)/);if(!s)return!1;if(n.fluid=-1!==a.indexOf("p"),n.dimensions={width:s[1].replace("p","%"),height:s[2].replace("p","%")},2===i.length){var l=p.parse(i[1]);if(x.truthy(l.ratio)){n.fluid=!0;var h=parseFloat(n.dimensions.width.replace("%","")),d=parseFloat(n.dimensions.height.replace("%",""));d=Math.floor(d/h*100),h=100,n.dimensions.width=h+"%",n.dimensions.height=d+"%"}if(n.auto=x.truthy(l.auto),l.bg&&(n.theme.bg=x.parseColor(l.bg)),l.fg&&(n.theme.fg=x.parseColor(l.fg)),l.bg&&!l.fg&&(n.autoFg=!0),l.theme&&n.instanceOptions.themes.hasOwnProperty(l.theme)&&(n.theme=C(n.instanceOptions.themes[l.theme],null)),l.text&&(n.text=l.text),l.textmode&&(n.textmode=l.textmode),l.size&&(n.size=l.size),l.font&&(n.font=l.font),l.align&&(n.align=l.align),l.lineWrap&&(n.lineWrap=l.lineWrap),n.nowrap=x.truthy(l.nowrap),n.outline=x.truthy(l.outline),x.truthy(l.random)){R.vars.cache.themeKeys=R.vars.cache.themeKeys||Object.keys(n.instanceOptions.themes);var c=R.vars.cache.themeKeys[0|Math.random()*R.vars.cache.themeKeys.length];n.theme=C(n.instanceOptions.themes[c],null)}}return n}function f(e){var t=e.mode,n=e.el,r=e.flags,i=e.engineSettings,o=r.dimensions,a=r.theme,s=o.width+"x"+o.height;t=null==t?r.fluid?"fluid":"image":t;if(null!=r.text&&(a.text=r.text,"object"===n.nodeName.toLowerCase())){for(var l=a.text.split("\\n"),h=0;h<l.length;h++)l[h]=x.encodeHtmlEntity(l[h]);a.text=l.join("\\n")}if(a.text){var d=a.text.match(/holder_([a-z]+)/g);null!==d&&d.forEach(function(e){"holder_dimensions"===e&&(a.text=a.text.replace(e,s))})}var c=r.holderURL,u=C(i,null);if(r.font&&(a.font=r.font,!u.noFontFallback&&"img"===n.nodeName.toLowerCase()&&R.setup.supportsCanvas&&"svg"===u.renderer&&(u=C(u,{renderer:"canvas"}))),r.font&&"canvas"==u.renderer&&(u.reRender=!0),"background"==t)null==n.getAttribute("data-background-src")&&A.setAttr(n,{"data-background-src":c});else{var f={};f[R.vars.dataAttr]=c,A.setAttr(n,f)}r.theme=a,n.holderData={flags:r,engineSettings:u},"image"!=t&&"fluid"!=t||A.setAttr(n,{alt:a.text?a.text+" ["+s+"]":s});var p={mode:t,el:n,holderSettings:{dimensions:o,theme:a,flags:r},engineSettings:u};"image"==t?(r.auto||(n.style.width=o.width+"px",n.style.height=o.height+"px"),"html"==u.renderer?n.style.backgroundColor=a.bg:(g(p),"exact"==r.textmode&&(n.holderData.resizeUpdate=!0,R.vars.resizableImages.push(n),m(n)))):"background"==t&&"html"!=u.renderer?g(p):"fluid"==t&&(n.holderData.resizeUpdate=!0,"%"==o.height.slice(-1)?n.style.height=o.height:null!=r.auto&&r.auto||(n.style.height=o.height+"px"),"%"==o.width.slice(-1)?n.style.width=o.width:null!=r.auto&&r.auto||(n.style.width=o.width+"px"),"inline"!=n.style.display&&""!==n.style.display&&"none"!=n.style.display||(n.style.display="block"),function(e){if(e.holderData){var t=E(e);if(t){var n=e.holderData.flags,r={fluidHeight:"%"==n.dimensions.height.slice(-1),fluidWidth:"%"==n.dimensions.width.slice(-1),mode:null,initialDimensions:t};r.fluidWidth&&!r.fluidHeight?(r.mode="width",r.ratio=r.initialDimensions.width/parseFloat(n.dimensions.height)):!r.fluidWidth&&r.fluidHeight&&(r.mode="height",r.ratio=parseFloat(n.dimensions.width)/r.initialDimensions.height),e.holderData.fluidConfig=r}else v(e)}}(n),"html"==u.renderer?n.style.backgroundColor=a.bg:(R.vars.resizableImages.push(n),m(n)))}function g(t){function n(){var e=null;switch(a.renderer){case"canvas":e=c(l,t);break;case"svg":e=d(l,t);break;default:throw"Holder: invalid renderer: "+a.renderer}return e}var e,r=t.mode,i=t.el,o=t.holderSettings,a=t.engineSettings;switch(a.renderer){case"svg":if(!R.setup.supportsSVG)return;break;case"canvas":if(!R.setup.supportsCanvas)return;break;default:return}var s={width:o.dimensions.width,height:o.dimensions.height,theme:o.theme,flags:o.flags},l=function(e){function t(e,t,n,r){t.width=n,t.height=r,e.width=Math.max(e.width,t.width),e.height+=t.height}var n=R.defaults.size;switch(parseFloat(e.theme.size)?n=e.theme.size:parseFloat(e.flags.size)&&(n=e.flags.size),e.font={family:e.theme.font?e.theme.font:"Arial, Helvetica, Open Sans, sans-serif",size:(r=e.width,i=e.height,o=n,a=R.defaults.scale,s=parseInt(r,10),l=parseInt(i,10),h=Math.max(s,l),d=Math.min(s,l),c=.8*Math.min(d,h*a),Math.round(Math.max(o,c))),units:e.theme.units?e.theme.units:R.defaults.units,weight:e.theme.fontweight?e.theme.fontweight:"bold"},e.text=e.theme.text||Math.floor(e.width)+"x"+Math.floor(e.height),e.noWrap=e.theme.nowrap||e.flags.nowrap,e.align=e.theme.align||e.flags.align||"center",e.flags.textmode){case"literal":e.text=e.flags.dimensions.width+"x"+e.flags.dimensions.height;break;case"exact":if(!e.flags.exactDimensions)break;e.text=Math.floor(e.flags.exactDimensions.width)+"x"+Math.floor(e.flags.exactDimensions.height)}var r,i,o,a,s,l,h,d,c;var u=e.flags.lineWrap||R.setup.lineWrapRatio,f=e.width*u,p=f,g=new L({width:e.width,height:e.height}),m=g.Shape,v=new m.Rect("holderBg",{fill:e.theme.bg});if(v.resize(e.width,e.height),g.root.add(v),e.flags.outline){var y=new I(v.properties.fill);y=y.lighten(y.lighterThan("7f7f7f")?-.1:.1),v.properties.outline={fill:y.toHex(!0),width:2}}var w=e.theme.fg;if(e.flags.autoFg){var b=new I(v.properties.fill),x=new I("fff"),S=new I("000",{alpha:.285714});w=b.blendAlpha(b.lighterThan("7f7f7f")?S:x).toHex(!0)}var A=new m.Group("holderTextGroup",{text:e.text,align:e.align,font:e.font,fill:w});A.moveTo(null,null,1),g.root.add(A);var C=A.textPositionData=B(g);if(!C)throw"Holder: staging fallback not supported yet.";A.properties.leading=C.boundingBox.height;var E=null,k=null;if(1<C.lineCount){var T,j=0,F=0,O=0;k=new m.Group("line"+O),"left"!==e.align&&"right"!==e.align||(p=e.width*(1-2*(1-u)));for(var z=0;z<C.words.length;z++){var D=C.words[z];E=new m.Text(D.text);var M="\\n"==D.text;!e.noWrap&&(j+D.width>=p||!0===M)&&(t(A,k,j,A.properties.leading),A.add(k),j=0,F+=A.properties.leading,O+=1,(k=new m.Group("line"+O)).y=F),!0!==M&&(E.moveTo(j,0),j+=C.spaceWidth+D.width,k.add(E))}if(t(A,k,j,A.properties.leading),A.add(k),"left"===e.align)A.moveTo(e.width-f,null,null);else if("right"===e.align){for(T in A.children)(k=A.children[T]).moveTo(e.width-k.width,null,null);A.moveTo(0-(e.width-f),null,null)}else{for(T in A.children)(k=A.children[T]).moveTo((A.width-k.width)/2,null,null);A.moveTo((e.width-A.width)/2,null,null)}A.moveTo(null,(e.height-A.height)/2,null),(e.height-A.height)/2<0&&A.moveTo(null,0,null)}else E=new m.Text(e.text),(k=new m.Group("line0")).add(E),A.add(k),"left"===e.align?A.moveTo(e.width-f,null,null):"right"===e.align?A.moveTo(0-(e.width-f),null,null):A.moveTo((e.width-C.boundingBox.width)/2,null,null),A.moveTo(null,(e.height-C.boundingBox.height)/2,null);return g}(s);if(null==(e=n()))throw"Holder: couldn't render placeholder";"background"==r?(i.style.backgroundImage="url("+e+")",a.noBackgroundSize||(i.style.backgroundSize=s.width+"px "+s.height+"px")):("img"===i.nodeName.toLowerCase()?A.setAttr(i,{src:e}):"object"===i.nodeName.toLowerCase()&&A.setAttr(i,{data:e,type:"image/svg+xml"}),a.reRender&&h.setTimeout(function(){var e=n();if(null==e)throw"Holder: couldn't render placeholder";"img"===i.nodeName.toLowerCase()?A.setAttr(i,{src:e}):"object"===i.nodeName.toLowerCase()&&A.setAttr(i,{data:e,type:"image/svg+xml"})},150)),A.setAttr(i,{"data-holder-rendered":!0})}function m(e){for(var t,n=0,r=(t=null==e||null==e.nodeType?R.vars.resizableImages:[e]).length;n<r;n++){var i=t[n];if(i.holderData){var o=i.holderData.flags,a=E(i);if(a){if(!i.holderData.resizeUpdate)continue;if(o.fluid&&o.auto){var s=i.holderData.fluidConfig;switch(s.mode){case"width":a.height=a.width/s.ratio;break;case"height":a.width=a.height*s.ratio}}var l={mode:"image",holderSettings:{dimensions:a,theme:o.theme,flags:o},el:i,engineSettings:i.holderData.engineSettings};"exact"==o.textmode&&(o.exactDimensions=a,l.holderSettings.dimensions=o.dimensions),g(l)}else v(i)}}}function e(){var t,n=[];Object.keys(R.vars.invisibleImages).forEach(function(e){t=R.vars.invisibleImages[e],E(t)&&"img"==t.nodeName.toLowerCase()&&(n.push(t),delete R.vars.invisibleImages[e])}),n.length&&o.run({images:n}),setTimeout(function(){h.requestAnimationFrame(e)},10)}function v(e){e.holderData.invisibleId||(R.vars.invisibleId+=1,(R.vars.invisibleImages["i"+R.vars.invisibleId]=e).holderData.invisibleId=R.vars.invisibleId)}function t(){!function(e){R.vars.debounceTimer||e.call(this),R.vars.debounceTimer&&h.clearTimeout(R.vars.debounceTimer),R.vars.debounceTimer=h.setTimeout(function(){R.vars.debounceTimer=null,e.call(this)},R.setup.debounce)}(function(){m(null)})}var y,w,b,n,r=T(2),p=T(3),L=T(6),x=T(7),S=T(8),A=T(9),I=T(10),i=T(11),d=T(12),c=T(15),C=x.extend,E=x.dimensionCheck,k=i.svg_ns,o={version:i.version,addTheme:function(e,t){return null!=e&&null!=t&&(R.settings.themes[e]=t),delete R.vars.cache.themeKeys,this},addImage:function(r,e){return A.getNodeArray(e).forEach(function(e){var t=A.newEl("img"),n={};n[R.setup.dataAttr]=r,A.setAttr(t,n),e.appendChild(t)}),this},setResizeUpdate:function(e,t){e.holderData&&(e.holderData.resizeUpdate=!!t,e.holderData.resizeUpdate&&m(e))},run:function(e){e=e||{};var d={},c=C(R.settings,e);R.vars.preempted=!0,R.vars.dataAttr=c.dataAttr||R.setup.dataAttr,d.renderer=c.renderer?c.renderer:R.setup.renderer,-1===R.setup.renderers.join(",").indexOf(d.renderer)&&(d.renderer=R.setup.supportsSVG?"svg":R.setup.supportsCanvas?"canvas":"html");var t=A.getNodeArray(c.images),n=A.getNodeArray(c.bgnodes),r=A.getNodeArray(c.stylenodes),i=A.getNodeArray(c.objects);return d.stylesheets=[],d.svgXMLStylesheet=!0,d.noFontFallback=!!c.noFontFallback,d.noBackgroundSize=!!c.noBackgroundSize,r.forEach(function(e){if(e.attributes.rel&&e.attributes.href&&"stylesheet"==e.attributes.rel.value){var t=e.attributes.href.value,n=A.newEl("a");n.href=t;var r=n.protocol+"//"+n.host+n.pathname+n.search;d.stylesheets.push(r)}}),n.forEach(function(e){if(h.getComputedStyle){var t=h.getComputedStyle(e,null).getPropertyValue("background-image"),n=e.getAttribute("data-background-src")||t,r=null,i=c.domain+"/",o=n.indexOf(i);if(0===o)r=n;else if(1===o&&"?"===n[0])r=n.slice(1);else{var a=n.substr(o).match(/([^\"]*)"?\)/);if(null!==a)r=a[1];else if(0===n.indexOf("url("))throw"Holder: unable to parse background URL: "+n}if(r){var s=l(r,c);s&&f({mode:"background",el:e,flags:s,engineSettings:d})}}}),i.forEach(function(e){var t={};try{t.data=e.getAttribute("data"),t.dataSrc=e.getAttribute(R.vars.dataAttr)}catch(e){}var n=null!=t.data&&0===t.data.indexOf(c.domain),r=null!=t.dataSrc&&0===t.dataSrc.indexOf(c.domain);n?u(c,d,t.data,e):r&&u(c,d,t.dataSrc,e)}),t.forEach(function(e){var t={};try{t.src=e.getAttribute("src"),t.dataSrc=e.getAttribute(R.vars.dataAttr),t.rendered=e.getAttribute("data-holder-rendered")}catch(e){}var n,r,i,o,a,s=null!=t.src,l=null!=t.dataSrc&&0===t.dataSrc.indexOf(c.domain),h=null!=t.rendered&&"true"==t.rendered;s?0===t.src.indexOf(c.domain)?u(c,d,t.src,e):l&&(h?u(c,d,t.dataSrc,e):(n=t.src,r=c,i=d,o=t.dataSrc,a=e,x.imageExists(n,function(e){e||u(r,i,o,a)}))):l&&u(c,d,t.dataSrc,e)}),this}},R={settings:{domain:"holder.js",images:"img",objects:"object",bgnodes:"body .holderjs",stylenodes:"head link.holderjs",themes:{gray:{bg:"#EEEEEE",fg:"#AAAAAA"},social:{bg:"#3a5a97",fg:"#FFFFFF"},industrial:{bg:"#434A52",fg:"#C2F200"},sky:{bg:"#0D8FDB",fg:"#FFFFFF"},vine:{bg:"#39DBAC",fg:"#1E292C"},lava:{bg:"#F8591A",fg:"#1C2846"}}},defaults:{size:10,units:"pt",scale:1/16}},B=(b=w=y=null,function(e){var t,n=e.root;if(R.setup.supportsSVG){var r=!1;null!=y&&y.parentNode===document.body||(r=!0),(y=S.initSVG(y,n.properties.width,n.properties.height)).style.display="block",r&&(w=A.newEl("text",k),t=null,b=document.createTextNode(t),A.setAttr(w,{x:0}),w.appendChild(b),y.appendChild(w),document.body.appendChild(y),y.style.visibility="hidden",y.style.position="absolute",y.style.top="-100%",y.style.left="-100%");var i=n.children.holderTextGroup.properties;A.setAttr(w,{y:i.font.size,style:x.cssProps({"font-weight":i.font.weight,"font-size":i.font.size+i.font.units,"font-family":i.font.family})}),b.nodeValue=i.text;var o=w.getBBox(),a=Math.ceil(o.width/n.properties.width),s=i.text.split(" "),l=i.text.match(/\\n/g);a+=null==l?0:l.length,b.nodeValue=i.text.replace(/[ ]+/g,"");var h=w.getComputedTextLength(),d=o.width-h,c=Math.round(d/Math.max(1,s.length-1)),u=[];if(1<a){b.nodeValue="";for(var f=0;f<s.length;f++)if(0!==s[f].length){b.nodeValue=x.decodeHtmlEntity(s[f]);var p=w.getBBox();u.push({text:s[f],width:p.width})}}return y.style.display="none",{spaceWidth:c,lineCount:a,boundingBox:o,words:u}}return!1});for(var a in R.flags)R.flags.hasOwnProperty(a)&&(R.flags[a].match=function(e){return e.match(this.regex)});R.setup={renderer:"html",debounce:100,ratio:1,supportsCanvas:!1,supportsSVG:!1,lineWrapRatio:.9,dataAttr:"data-src",renderers:["html","canvas","svg"]},R.vars={preempted:!1,resizableImages:[],invisibleImages:{},invisibleId:0,visibilityCheckStarted:!1,debounceTimer:null,cache:{}},(n=A.newEl("canvas")).getContext&&-1!=n.toDataURL("image/png").indexOf("data:image/png")&&(R.setup.renderer="canvas",R.setup.supportsCanvas=!0),document.createElementNS&&document.createElementNS(k,"svg").createSVGRect&&(R.setup.renderer="svg",R.setup.supportsSVG=!0),R.vars.visibilityCheckStarted||(h.requestAnimationFrame(e),R.vars.visibilityCheckStarted=!0),r&&r(function(){R.vars.preempted||o.run(),h.addEventListener?(h.addEventListener("resize",t,!1),h.addEventListener("orientationchange",t,!1)):h.attachEvent("onresize",t),"object"==typeof h.Turbolinks&&h.document.addEventListener("page:change",function(){o.run()})}),s.exports=o}).call(e,function(){return this}())},function(e,t){e.exports="undefined"!=typeof window&&function(e){function n(e){if(!x){if(!a.body)return i(n);for(x=!0;e=S.shift();)i(e)}}function t(e){(w||e.type===l||a[u]===c)&&(r(),n())}function r(){w?(a[y](m,t,h),e[y](l,t,h)):(a[p](v,t),e[p](d,t))}function i(e,t){setTimeout(e,0<=+t?t:1)}function o(e){x?i(e):S.push(e)}null==document.readyState&&document.addEventListener&&(document.addEventListener("DOMContentLoaded",function e(){document.removeEventListener("DOMContentLoaded",e,!1),document.readyState="complete"},!1),document.readyState="loading");var a=e.document,s=a.documentElement,l="load",h=!1,d="on"+l,c="complete",u="readyState",f="attachEvent",p="detachEvent",g="addEventListener",m="DOMContentLoaded",v="onreadystatechange",y="removeEventListener",w=g in a,b=h,x=h,S=[];if(a[u]===c)i(n);else if(w)a[g](m,t,h),e[g](l,t,h);else{a[f](v,t),e[f](d,t);try{b=null==e.frameElement&&s}catch(e){}b&&b.doScroll&&function t(){if(!x){try{b.doScroll("left")}catch(e){return i(t,50)}r(),n()}}()}return o.version="1.4.0",o.isReady=function(){return x},o}(window)},function(e,t,n){var o=encodeURIComponent,h=decodeURIComponent,d=n(4),a=n(5),c=/(\w+)\[(\d+)\]/,u=/\w+\.\w+/;t.parse=function(e){if("string"!=typeof e)return{};if(""===(e=d(e)))return{};"?"===e.charAt(0)&&(e=e.slice(1));for(var t={},n=e.split("&"),r=0;r<n.length;r++){var i,o,a,s=n[r].split("="),l=h(s[0]);if(i=c.exec(l))t[i[1]]=t[i[1]]||[],t[i[1]][i[2]]=h(s[1]);else if(i=u.test(l)){for(i=l.split("."),o=t;i.length;)if((a=i.shift()).length){if(o[a]){if(o[a]&&"object"!=typeof o[a])break}else o[a]={};i.length||(o[a]=h(s[1])),o=o[a]}}else t[s[0]]=null==s[1]?"":h(s[1])}return t},t.stringify=function(e){if(!e)return"";var t=[];for(var n in e){var r=e[n];if("array"!=a(r))t.push(o(n)+"="+o(e[n]));else for(var i=0;i<r.length;++i)t.push(o(n+"["+i+"]")+"="+o(r[i]))}return t.join("&")}},function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){switch(n.call(e)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return null===e?"null":void 0===e?"undefined":e!=e?"nan":e&&1===e.nodeType?"element":null!=(t=e)&&(t._isBuffer||t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))?"buffer":typeof(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e));var t}},function(e,t){e.exports=function(e){var t=1,n=function(e){t++,this.parent=null,this.children={},this.id=t,this.name="n"+t,void 0!==e&&(this.name=e),this.x=this.y=this.z=0,this.width=this.height=0};n.prototype.resize=function(e,t){null!=e&&(this.width=e),null!=t&&(this.height=t)},n.prototype.moveTo=function(e,t,n){this.x=null!=e?e:this.x,this.y=null!=t?t:this.y,this.z=null!=n?n:this.z},n.prototype.add=function(e){var t=e.name;if(void 0!==this.children[t])throw"SceneGraph: child already exists: "+t;(this.children[t]=e).parent=this};var r=function(){n.call(this,"root"),this.properties=e};r.prototype=new n;var i=function(e,t){if(n.call(this,e),this.properties={fill:"#000000"},void 0!==t)!function(e,t){for(var n in t)e[n]=t[n]}(this.properties,t);else if(void 0!==e&&"string"!=typeof e)throw"SceneGraph: invalid node name"};i.prototype=new n;var o=function(){i.apply(this,arguments),this.type="group"};o.prototype=new i;var a=function(){i.apply(this,arguments),this.type="rect"};a.prototype=new i;var s=function(e){i.call(this),this.type="text",this.properties.text=e};s.prototype=new i;var l=new r;return this.Shape={Rect:a,Text:s,Group:o},this.root=l,this}},function(e,t){(function(i){t.extend=function(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);if(null!=t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n},t.cssProps=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+":"+e[n]);return t.join(";")},t.encodeHtmlEntity=function(e){for(var t=[],n=0,r=e.length-1;0<=r;r--)128<(n=e.charCodeAt(r))?t.unshift(["&#",n,";"].join("")):t.unshift(e[r]);return t.join("")},t.imageExists=function(e,t){var n=new Image;n.onerror=function(){t.call(this,!1)},n.onload=function(){t.call(this,!0)},n.src=e},t.decodeHtmlEntity=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(t)})},t.dimensionCheck=function(e){var t={height:e.clientHeight,width:e.clientWidth};return!(!t.height||!t.width)&&t},t.truthy=function(e){return"string"==typeof e?"true"===e||"yes"===e||"1"===e||"on"===e||"✓"===e:!!e},t.parseColor=function(e){var t,n=e.match(/(^(?:#?)[0-9a-f]{6}$)|(^(?:#?)[0-9a-f]{3}$)/i);return null!==n?"#"!==(t=n[1]||n[2])[0]?"#"+t:t:null!==(n=e.match(/^rgb\((\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/))?t="rgb("+n.slice(1).join(",")+")":null!==(n=e.match(/^rgba\((\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(0\.\d{1,}|1)\)$/))?t="rgba("+n.slice(1).join(",")+")":null},t.canvasRatio=function(){var e=1,t=1;if(i.document){var n=i.document.createElement("canvas");if(n.getContext){var r=n.getContext("2d");e=i.devicePixelRatio||1,t=r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1}}return e/t}}).call(t,function(){return this}())},function(e,t,n){(function(h){var d=n(9),s="http://www.w3.org/2000/svg";t.initSVG=function(e,t,n){var r,i,o=!1;e&&e.querySelector?null===(i=e.querySelector("style"))&&(o=!0):(e=d.newEl("svg",s),o=!0),o&&(r=d.newEl("defs",s),i=d.newEl("style",s),d.setAttr(i,{type:"text/css"}),r.appendChild(i),e.appendChild(r)),e.webkitMatchesSelector&&e.setAttribute("xmlns",s);for(var a=0;a<e.childNodes.length;a++)8===e.childNodes[a].nodeType&&e.removeChild(e.childNodes[a]);for(;i.childNodes.length;)i.removeChild(i.childNodes[0]);return d.setAttr(e,{width:t,height:n,viewBox:"0 0 "+t+" "+n,preserveAspectRatio:"none"}),e},t.svgStringToDataURI=function(e,t){return t?"data:image/svg+xml;charset=UTF-8;base64,"+btoa(h.unescape(encodeURIComponent(e))):"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(e)},t.serializeSVG=function(e,t){if(h.XMLSerializer){var n=new XMLSerializer,r="",i=t.stylesheets;if(t.svgXMLStylesheet){for(var o=d.createXML(),a=i.length-1;0<=a;a--){var s=o.createProcessingInstruction("xml-stylesheet",'href="'+i[a]+'" rel="stylesheet"');o.insertBefore(s,o.firstChild)}o.removeChild(o.documentElement),r=n.serializeToString(o)}var l=n.serializeToString(e);return r+(l=l.replace(/\&amp;(\#[0-9]{2,}\;)/g,"&$1"))}}}).call(t,function(){return this}())},function(e,t){(function(n){t.newEl=function(e,t){if(n.document)return null==t?n.document.createElement(e):n.document.createElementNS(t,e)},t.setAttr=function(e,t){for(var n in t)e.setAttribute(n,t[n])},t.createXML=function(){if(n.DOMParser)return(new DOMParser).parseFromString("<xml />","application/xml")},t.getNodeArray=function(e){var t=null;return"string"==typeof e?t=document.querySelectorAll(e):n.NodeList&&e instanceof n.NodeList?t=e:n.Node&&e instanceof n.Node?t=[e]:n.HTMLCollection&&e instanceof n.HTMLCollection?t=e:e instanceof Array?t=e:null===e&&(t=[]),Array.prototype.slice.call(t)}}).call(t,function(){return this}())},function(e,t){var a=function(e,t){"string"==typeof e&&("#"===(this.original=e).charAt(0)&&(e=e.slice(1)),/[^a-f0-9]+/i.test(e)||(3===e.length&&(e=e.replace(/./g,"$&$&")),6===e.length&&(this.alpha=1,t&&t.alpha&&(this.alpha=t.alpha),this.set(parseInt(e,16)))))};a.rgb2hex=function(e,t,n){return[e,t,n].map(function(e){var t=(0|e).toString(16);return e<16&&(t="0"+t),t}).join("")},a.hsl2rgb=function(e,t,n){var r=e/60,i=(1-Math.abs(2*n-1))*t,o=i*(1-Math.abs(parseInt(r)%2-1)),a=n-i/2,s=0,l=0,h=0;return 0<=r&&r<1?(s=i,l=o):1<=r&&r<2?(s=o,l=i):2<=r&&r<3?(l=i,h=o):3<=r&&r<4?(l=o,h=i):4<=r&&r<5?(s=o,h=i):5<=r&&r<6&&(s=i,h=o),s+=a,l+=a,h+=a,[s=parseInt(255*s),l=parseInt(255*l),h=parseInt(255*h)]},a.prototype.set=function(e){this.raw=e;var t=(16711680&this.raw)>>16,n=(65280&this.raw)>>8,r=255&this.raw,i=.2126*t+.7152*n+.0722*r,o=-.09991*t-.33609*n+.436*r,a=.615*t-.55861*n-.05639*r;return this.rgb={r:t,g:n,b:r},this.yuv={y:i,u:o,v:a},this},a.prototype.lighten=function(e){var t=255*(Math.min(1,Math.max(0,Math.abs(e)))*(e<0?-1:1))|0,n=Math.min(255,Math.max(0,this.rgb.r+t)),r=Math.min(255,Math.max(0,this.rgb.g+t)),i=Math.min(255,Math.max(0,this.rgb.b+t)),o=a.rgb2hex(n,r,i);return new a(o)},a.prototype.toHex=function(e){return(e?"#":"")+this.raw.toString(16)},a.prototype.lighterThan=function(e){return e instanceof a||(e=new a(e)),this.yuv.y>e.yuv.y},a.prototype.blendAlpha=function(e){e instanceof a||(e=new a(e));var t=e,n=t.alpha*t.rgb.r+(1-t.alpha)*this.rgb.r,r=t.alpha*t.rgb.g+(1-t.alpha)*this.rgb.g,i=t.alpha*t.rgb.b+(1-t.alpha)*this.rgb.b;return new a(a.rgb2hex(n,r,i))},e.exports=a},function(e,t){e.exports={version:"2.9.4",svg_ns:"http://www.w3.org/2000/svg"}},function(e,t,n){var C=n(13),E=n(8),r=n(11),k=n(7),T=r.svg_ns,j=function(e){var t=e.tag,n=e.content||"";return delete e.tag,delete e.content,[t,n,e]};e.exports=function(e,t){var n,r=t.engineSettings.stylesheets.map(function(e){return'<?xml-stylesheet rel="stylesheet" href="'+e+'"?>'}).join("\n"),i="holder_"+Number(new Date).toString(16),o=e.root,a=o.children.holderTextGroup,s="#"+i+" text { "+(n=a.properties,k.cssProps({fill:n.fill,"font-weight":n.font.weight,"font-family":n.font.family+", monospace","font-size":n.font.size+n.font.units}))+" } ";a.y+=.8*a.textPositionData.boundingBox.height;var l=[];Object.keys(a.children).forEach(function(e){var o=a.children[e];Object.keys(o.children).forEach(function(e){var t=o.children[e],n=a.x+o.x+t.x,r=a.y+o.y+t.y,i=j({tag:"text",content:t.properties.text,x:n,y:r});l.push(i)})});var h,d,c,u,f=j({tag:"g",content:l}),p=null;if(o.children.holderBg.properties.outline){var g=o.children.holderBg.properties.outline;p=j({tag:"path",d:(h=o.children.holderBg.width,d=o.children.holderBg.height,c=g.width,u=c/2,["M",u,u,"H",h-u,"V",d-u,"H",u,"V",0,"M",0,u,"L",h,d-u,"M",0,d-u,"L",h,u].join(" ")),"stroke-width":g.width,stroke:g.fill,fill:"none"})}var m,v=(m=o.children.holderBg,_h.element({tag:"rect",width:m.width,height:m.height,fill:m.properties.fill})),y=[];y.push(v),g&&y.push(p),y.push(f);var w=j({tag:"g",id:i,content:y}),b=j({tag:"style",content:s,type:"text/css"}),x=j({tag:"defs",content:b}),S=j({tag:"svg",content:[x,w],width:o.properties.width,height:o.properties.height,xmlns:T,viewBox:[0,0,o.properties.width,o.properties.height].join(" "),preserveAspectRatio:"none"}),A=C(S);return A=r+A[0],E.svgStringToDataURI(A,"background"===t.mode)}},function(e,t,n){n(14),e.exports=function e(t,n,r){"use strict";function i(e,t){if(null!==t&&!1!==t&&void 0!==t)return"string"!=typeof t&&"object"!=typeof t?String(t):t}var o,a,s,l,h,d,c,u,f,p,g,m,v=1,y=!0;if(r=r||{},"string"==typeof t[0])t[0]=(h=t[0],d=h.match(/^[\w-]+/),c={tag:d?d[0]:"div",attr:{},children:[]},u=h.match(/#([\w-]+)/),f=h.match(/\$([\w-]+)/),p=h.match(/\.[\w-]+/g),u&&(c.attr.id=u[1],r[u[1]]=c),f&&(r[f[1]]=c),p&&(c.attr.class=p.join(" ").replace(/\./g,"")),h.match(/&$/g)&&(y=!1),c);else{if(!Array.isArray(t[0]))throw new Error("First element of array must be a string, or an array and not "+JSON.stringify(t[0]));v=0}for(;v<t.length;v++){if(!1===t[v]||null===t[v]){t[0]=!1;break}if(void 0!==t[v]&&!0!==t[v])if("string"==typeof t[v])y&&(t[v]=(g=t[v],String(g).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))),t[0].children.push(t[v]);else if("number"==typeof t[v])t[0].children.push(t[v]);else if(Array.isArray(t[v])){if(Array.isArray(t[v][0])){if(t[v].reverse().forEach(function(e){t.splice(v+1,0,e)}),0!==v)continue;v++}e(t[v],n,r),t[v][0]&&t[0].children.push(t[v][0])}else if("function"==typeof t[v])s=t[v];else{if("object"!=typeof t[v])throw new TypeError('"'+t[v]+'" is not allowed as a value.');for(a in t[v])t[v].hasOwnProperty(a)&&null!==t[v][a]&&!1!==t[v][a]&&("style"===a&&"object"==typeof t[v][a]?t[0].attr[a]=JSON.stringify(t[v][a],i).slice(2,-2).replace(/","/g,";").replace(/":"/g,":").replace(/\\"/g,"'"):t[0].attr[a]=t[v][a])}}if(!1!==t[0]){for(l in o="<"+t[0].tag,t[0].attr)t[0].attr.hasOwnProperty(l)&&(o+=" "+l+'="'+((m=t[0].attr[l])||0===m?String(m).replace(/&/g,"&amp;").replace(/"/g,"&quot;"):"")+'"');o+=">",t[0].children.forEach(function(e){o+=e}),o+="</"+t[0].tag+">",t[0]=o}return r[0]=t[0],s&&s(t[0]),r}},function(e,t){"use strict";var s=/["'&<>]/;e.exports=function(e){var t=""+e,n=s.exec(t);if(!n)return t;var r,i="",o=0,a=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}a!==o&&(i+=t.substring(a,o)),a=o+1,i+=r}return a!==o?i+t.substring(a,o):i}},function(e,t,n){var f,p,r=n(9),g=n(7);e.exports=(f=r.newEl("canvas"),p=null,function(e){null==p&&(p=f.getContext("2d"));var t=g.canvasRatio(),n=e.root;f.width=t*n.properties.width,f.height=t*n.properties.height,p.textBaseline="middle";var r=n.children.holderBg,i=t*r.width,o=t*r.height;p.fillStyle=r.properties.fill,p.fillRect(0,0,i,o),r.properties.outline&&(p.strokeStyle=r.properties.outline.fill,p.lineWidth=r.properties.outline.width,p.moveTo(1,1),p.lineTo(i-1,1),p.lineTo(i-1,o-1),p.lineTo(1,o-1),p.lineTo(1,1),p.moveTo(0,1),p.lineTo(i,o-1),p.moveTo(0,o-1),p.lineTo(i,1),p.stroke());var a=n.children.holderTextGroup;for(var s in p.font=a.properties.font.weight+" "+t*a.properties.font.size+a.properties.font.units+" "+a.properties.font.family+", monospace",p.fillStyle=a.properties.fill,a.children){var l=a.children[s];for(var h in l.children){var d=l.children[h],c=t*(a.x+l.x+d.x),u=t*(a.y+l.y+d.y+a.properties.leading/2);p.fillText(d.properties.text,c,u)}}return f.toDataURL("image/png")})}])}),function(e,t){"undefined"!=typeof Meteor&&"undefined"!=typeof Package&&(Holder=e.Holder)}(this);