/g,QUOT=/\"/g,SQUOT=/\'/g;dust.escapeHtml=function(a){return"string"==typeof a||a&&"function"==typeof a.toString?("string"!=typeof a&&(a=a.toString()),HCHARS.test(a)?a.replace(AMP,"&").replace(LT,"<").replace(GT,">").replace(QUOT,""").replace(SQUOT,"'"):a):a};var BS=/\\/g,FS=/\//g,CR=/\r/g,LS=/\u2028/g,PS=/\u2029/g,NL=/\n/g,LF=/\f/g,SQ=/'/g,DQ=/"/g,TB=/\t/g;return dust.escapeJs=function(a){return"string"==typeof a?a.replace(BS,"\\\\").replace(FS,"\\/").replace(DQ,'\\"').replace(SQ,"\\'").replace(CR,"\\r").replace(LS,"\\u2028").replace(PS,"\\u2029").replace(NL,"\\n").replace(LF,"\\f").replace(TB,"\\t"):a},dust.escapeJSON=function(a){return JSON?JSON.stringify(a).replace(LS,"\\u2028").replace(PS,"\\u2029").replace(LT,"\\u003c"):(dust.log("JSON is undefined; could not escape `"+a+"`",WARN),a)},dust}),"function"==typeof define&&define.amd&&define.amd.dust===!0&&define(["require","dust.core"],function(a,b){return b.onLoad=function(b,c){a([b],function(){c()})},b}),!function(a,b){"function"==typeof define&&define.amd&&define.amd.dust===!0?define(["dust.core"],b):"object"==typeof exports?module.exports=b(require("dustjs-linkedin")):b(a.dust)}(this,function(a){function b(b,c,d){d=d||"INFO",b=b?"{@"+b+"}: ":"",a.log(b+c,d)}function c(a){l[a]||(b(a,"Deprecation warning: "+a+" is deprecated and will be removed in a future version of dustjs-helpers","WARN"),b(null,"For help and a deprecation timeline, see https://github.com/linkedin/dustjs-helpers/wiki/Deprecated-Features#"+a.replace(/\W+/g,""),"WARN"),l[a]=!0)}function d(a){return a.stack.tail&&a.stack.tail.head&&"undefined"!=typeof a.stack.tail.head.__select__}function e(a){return d(a)&&a.get("__select__")}function f(a,b){var c,d=a.stack.head,e=a.rebase();a.stack&&a.stack.tail&&(e.stack=a.stack.tail);var f={isPending:!1,isResolved:!1,isDeferredComplete:!1,deferreds:[]};for(c in b)f[c]=b[c];return e.push({__select__:f}).push(d,a.stack.index,a.stack.of)}function g(a){var b,c;if(a.isDeferredPending=!0,a.deferreds.length)for(a.isDeferredComplete=!0,b=0,c=a.deferreds.length;c>b;b++)a.deferreds[b]();a.isDeferredPending=!1}function h(a,b){return"function"==typeof b?b.toString().replace(/(^\s+|\s+$)/gm,"").replace(/\n/gm,"").replace(/,\s*/gm,", ").replace(/\)\{/gm,") {"):b}function i(a,b){return function(c,d,e,f){return j(c,d,e,f,a,b)}}function j(a,c,d,f,g,h){var i,j,l,m,n=d.block,o=d["else"],p=e(c)||{};if(p.isResolved&&!p.isDeferredPending)return a;if(f.hasOwnProperty("key"))j=f.key;else{if(!p.hasOwnProperty("key"))return b(g,"No key specified","WARN"),a;j=p.key}return m=f.type||p.type,j=k(c.resolve(j),m),l=k(c.resolve(f.value),m),h(j,l)?(p.isPending||(i=!0,p.isPending=!0),n&&(a=a.render(n,c)),i&&(p.isResolved=!0)):o&&(a=a.render(o,c)),a}function k(a,b){switch(b&&(b=b.toLowerCase()),b){case"number":return+a;case"string":return String(a);case"boolean":return a="false"!==a&&a,Boolean(a);case"date":return new Date(a)}return a}var l={},m={tap:function(a,b,d){return c("tap"),d.resolve(a)},sep:function(a,b,c){var d=c.block;return b.stack.index===b.stack.of-1?a:d?d(a,b):a},first:function(a,b,c){return 0===b.stack.index?c.block(a,b):a},last:function(a,b,c){return b.stack.index===b.stack.of-1?c.block(a,b):a},contextDump:function(a,c,d,e){var f,g,i=c.resolve(e.to),j=c.resolve(e.key);switch(j){case"full":f=c.stack;break;default:f=c.stack.head}switch(g=JSON.stringify(f,h,2),i){case"console":b("contextDump",g);break;default:g=g.replace(/a}),lte:i("lte",function(a,b){return b>=a}),gt:i("gt",function(a,b){return a>b}),gte:i("gte",function(a,b){return a>=b}),any:function(a,c,d,f){var g=e(c);return g?g.isDeferredComplete?b("any","Must not be nested inside {@any} or {@none} block","ERROR"):a=a.map(function(a){g.deferreds.push(function(){g.isResolved&&(a=a.render(d.block,c)),a.end()})}):b("any","Must be used inside a {@select} block","ERROR"),a},none:function(a,c,d,f){var g=e(c);return g?g.isDeferredComplete?b("none","Must not be nested inside {@any} or {@none} block","ERROR"):a=a.map(function(a){g.deferreds.push(function(){g.isResolved||(a=a.render(d.block,c)),a.end()})}):b("none","Must be used inside a {@select} block","ERROR"),a},size:function(b,c,d,e){var f,g,h=e.key;if(h=c.resolve(e.key),h&&h!==!0)if(a.isArray(h))f=h.length;else if(!isNaN(parseFloat(h))&&isFinite(h))f=h;else if("object"==typeof h){f=0;for(g in h)h.hasOwnProperty(g)&&f++}else f=(h+"").length;else f=0;return b.write(f)}};for(var n in m)a.helpers[n]=m[n];return a}),function(a){function b(a,b){return a.w('