text: var lp_global_sprintf;!function(e){function n(){var e=arguments[0],t=n.cache;return t[e]&&t.hasOwnProperty(e)||(t[e]=n.parse(e)),n.format.call(null,t[e],arguments)}function t(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function r(e,n){return Array(n+1).join(e)}var i={not_string:/[^s]/,number:/[dief]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fiosuxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[\+\-]/};n.format=function(e,o){var s,f,a,l,p,c,d,u=1,g=e.length,x="",_=[],h=!0,b="";for(f=0;f<g;f++)if("string"===(x=t(e[f])))_[_.length]=e[f];else if("array"===x){if(l=e[f],l[2])for(s=o[u],a=0;a<l[2].length;a++){if(!s.hasOwnProperty(l[2][a]))throw new Error(n("[sprintf] property '%s' does not exist",l[2][a]));s=s[l[2][a]]}else s=l[1]?o[l[1]]:o[u++];if("function"==t(s)&&(s=s()),i.not_string.test(l[8])&&"number"!=t(s)&&isNaN(s))throw new TypeError(n("[sprintf] expecting number but found %s",t(s)));switch(i.number.test(l[8])&&(h=s>=0),l[8]){case"b":s=s.toString(2);break;case"c":s=String.fromCharCode(s);break;case"d":case"i":s=parseInt(s,10);break;case"e":s=l[7]?s.toExponential(l[7]):s.toExponential();break;case"f":s=l[7]?parseFloat(s).toFixed(l[7]):parseFloat(s);break;case"o":s=s.toString(8);break;case"s":s=(s=String(s))&&l[7]?s.substring(0,l[7]):s;break;case"u":s>>>=0;break;case"x":s=s.toString(16);break;case"X":s=s.toString(16).toUpperCase()}!i.number.test(l[8])||h&&!l[3]?b="":(b=h?"+":"-",s=s.toString().replace(i.sign,"")),c=l[4]?"0"===l[4]?"0":l[4].charAt(1):" ",d=l[6]-(b+s).length,p=l[6]&&d>0?r(c,d):"",_[_.length]=l[5]?b+s+p:"0"===c?b+p+s:p+b+s}return _.join("")},n.cache={},n.parse=function(e){for(var n=e,t=[],r=[],o=0;n;){if(null!==(t=i.text.exec(n)))r[r.length]=t[0];else if(null!==(t=i.modulo.exec(n)))r[r.length]="%";else{if(null===(t=i.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var s=[],f=t[2],a=[];if(null===(a=i.key.exec(f)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s[s.length]=a[1];""!==(f=f.substring(a[0].length));)if(null!==(a=i.key_access.exec(f)))s[s.length]=a[1];else{if(null===(a=i.index_access.exec(f)))throw new SyntaxError("[sprintf] failed to parse named argument key");s[s.length]=a[1]}t[2]=s}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r[r.length]=t}n=n.substring(t[0].length)}return r};var o=function(e,t,r){return r=(t||[]).slice(0),r.splice(0,0,e),n.apply(null,r)};"undefined"!=typeof g_isie&&g_isie?(init_LPfn(),"undefined"!=typeof LPfn&&(LPfn.sprintf=n,LPfn.vsprintf=o)):(e.sprintf=n,e.vsprintf=o,"function"==typeof define&&define.amd&&define(function(){return{sprintf:n,vsprintf:o}})),("undefined"!=typeof LP||"undefined"!=typeof is_firefox&&is_firefox()||"undefined"!=typeof is_firefox_webext&&is_firefox_webext())&&(lp_global_sprintf=n),"undefined"!=typeof g_isie&&g_isie&&(lp_global_sprintf=n)}("undefined"==typeof window?this:window),("undefined"!=typeof is_firefox&&is_firefox()||"undefined"!=typeof is_firefox_webext&&is_firefox_webext())&&(sprintf=lp_global_sprintf);