(function(global){global.liDustVersion="Package: dust-li-experimental; Version: 3.1.0"})(this);(function(global){if(typeof global.dust!=="undefined")global.liDustVars={cache:global.dust.cache,i18n:global.dust.i18n,helpers:global.dust.helpers}})(this);
(function(root){var dust={},NONE="NONE",ERROR="ERROR",WARN="WARN",INFO="INFO",DEBUG="DEBUG",loggingLevels=[DEBUG,INFO,WARN,ERROR,NONE],EMPTY_FUNC=function(){},logger={},originalLog,loggerContext;dust.debugLevel=NONE;dust.config={whitespace:false};dust._aliases={"write":"w","end":"e","map":"m","render":"r","reference":"f","section":"s","exists":"x","notexists":"nx","block":"b","partial":"p","helper":"h"};if(root&&root.console&&root.console.log){loggerContext=root.console;originalLog=root.console.log}logger.log=
loggerContext?function(){if(typeof originalLog==="function")logger.log=function(){originalLog.apply(loggerContext,arguments)};else logger.log=function(){var message=Array.prototype.slice.apply(arguments).join(" ");originalLog(message)};logger.log.apply(this,arguments)}:function(){};dust.log=function(message,type){type=type||INFO;if(dust.debugLevel!==NONE&&dust.indexInArray(loggingLevels,type)>=dust.indexInArray(loggingLevels,dust.debugLevel)){if(!dust.logQueue)dust.logQueue=[];dust.logQueue.push({message:message,
type:type});logger.log("[DUST "+type+"]: "+message)}};dust.helpers={};dust.cache={};dust.register=function(name,tmpl){if(!name)return;dust.cache[name]=tmpl};dust.render=function(name,context,callback){var chunk=(new Stub(callback)).head;try{dust.load(name,chunk,Context.wrap(context,name)).end()}catch(err){chunk.setError(err)}};dust.stream=function(name,context){var stream=new Stream,chunk=stream.head;dust.nextTick(function(){try{dust.load(name,stream.head,Context.wrap(context,name)).end()}catch(err){chunk.setError(err)}});
return stream};dust.renderSource=function(source,context,callback){return dust.compileFn(source)(context,callback)};dust.compileFn=function(source,name){name=name||null;var tmpl=dust.loadSource(dust.compile(source,name));return function(context,callback){var master=callback?new Stub(callback):new Stream;dust.nextTick(function(){if(typeof tmpl==="function")tmpl(master.head,Context.wrap(context,name)).end();else dust.log(new Error("Template ["+name+"] cannot be resolved to a Dust function"),ERROR)});
return master}};dust.load=function(name,chunk,context){var tmpl=dust.cache[name];if(tmpl)return tmpl(chunk,context);else{if(dust.onLoad)return chunk.map(function(chunk){dust.onLoad(name,function(err,src){if(err)return chunk.setError(err);if(!dust.cache[name])dust.loadSource(dust.compile(src,name));dust.cache[name](chunk,context).end()})});return chunk.setError(new Error("Template Not Found: "+name))}};dust.loadSource=function(source,path){return eval(source)};if(Array.isArray)dust.isArray=Array.isArray;
else dust.isArray=function(arr){return Object.prototype.toString.call(arr)==="[object Array]"};dust.indexInArray=function(arr,item,fromIndex){fromIndex=+fromIndex||0;if(Array.prototype.indexOf)return arr.indexOf(item,fromIndex);else{if(arr===undefined||arr===null)throw new TypeError('cannot call method "indexOf" of null');var length=arr.length;if(Math.abs(fromIndex)===Infinity)fromIndex=0;if(fromIndex<0){fromIndex+=length;if(fromIndex<0)fromIndex=0}for(;fromIndex<length;fromIndex++)if(arr[fromIndex]===
item)return fromIndex;return-1}};dust.nextTick=function(){return function(callback){setTimeout(callback,0)}}();dust.isEmpty=function(value){if(dust.isArray(value)&&!value.length)return true;if(value===0)return false;return!value};dust.filter=function(string,auto,filters){if(filters)for(var i=0,len=filters.length;i<len;i++){var name=filters[i];if(name==="s")auto=null;else if(typeof dust.filters[name]==="function")string=dust.filters[name](string);else dust.log("Invalid filter ["+name+"]",WARN)}if(auto)string=
dust.filters[auto](string);return string};dust.filters={h:function(value){return dust.escapeHtml(value)},j:function(value){return dust.escapeJs(value)},u:encodeURI,uc:encodeURIComponent,js:function(value){if(!JSON){dust.log("JSON is undefined.  JSON stringify has not been used on ["+value+"]",WARN);return value}else return JSON.stringify(value)},jp:function(value){if(!JSON){dust.log("JSON is undefined.  JSON parse has not been used on ["+value+"]",WARN);return value}else return JSON.parse(value)}};
function Context(stack,global,blocks,templateName){this.stack=stack;this.global=global;this.blocks=blocks;this.templateName=templateName}dust.makeBase=function(global){return new Context(new Stack,global)};Context.wrap=function(context,name){if(context instanceof Context)return context;return new Context(new Stack(context),{},null,name)};Context.prototype.get=function(path,cur){if(typeof path==="string"){if(path[0]==="."){cur=true;path=path.substr(1)}path=path.split(".")}return this._get(cur,path)};
Context.prototype._get=function(cur,down){var ctx=this.stack,i=1,value,first,len,ctxThis,fn;first=down[0];len=down.length;if(cur&&len===0){ctxThis=ctx;ctx=ctx.head}else{if(!cur){while(ctx){if(ctx.isObject){ctxThis=ctx.head;value=ctx.head[first];if(value!==undefined)break}ctx=ctx.tail}if(value!==undefined)ctx=value;else ctx=this.global?this.global[first]:undefined}else if(ctx)if(ctx.head)ctx=ctx.head[first];else ctx=undefined;while(ctx&&i<len){ctxThis=ctx;ctx=ctx[down[i]];i++}}if(typeof ctx==="function"){fn=
function(){try{return ctx.apply(ctxThis,arguments)}catch(err){dust.log(err,ERROR);throw err;}};fn.__dustBody=!!ctx.__dustBody;return fn}else{if(ctx===undefined)dust.log("Cannot find the value for reference [{"+down.join(".")+"}] in template ["+this.getTemplateName()+"]");return ctx}};Context.prototype.getPath=function(cur,down){return this._get(cur,down)};Context.prototype.push=function(head,idx,len){return new Context(new Stack(head,this.stack,idx,len),this.global,this.blocks,this.getTemplateName())};
Context.prototype.rebase=function(head){return new Context(new Stack(head),this.global,this.blocks,this.getTemplateName())};Context.prototype.current=function(){return this.stack.head};Context.prototype.getBlock=function(key,chk,ctx){if(typeof key==="function"){var tempChk=new Chunk;key=key(tempChk,this).data.join("")}var blocks=this.blocks;if(!blocks){dust.log("No blocks for context[{"+key+"}] in template ["+this.getTemplateName()+"]",DEBUG);return}var len=blocks.length,fn;while(len--){fn=blocks[len][key];
if(fn)return fn}};Context.prototype.shiftBlocks=function(locals){var blocks=this.blocks,newBlocks;if(locals){if(!blocks)newBlocks=[locals];else newBlocks=blocks.concat([locals]);return new Context(this.stack,this.global,newBlocks,this.getTemplateName())}return this};Context.prototype.getTemplateName=function(){return this.templateName};function Stack(head,tail,idx,len){this.tail=tail;this.isObject=head&&typeof head==="object";this.head=head;this.index=idx;this.of=len}function Stub(callback){this.head=
new Chunk(this);this.callback=callback;this.out=""}Stub.prototype.flush=function(){var chunk=this.head;while(chunk){if(chunk.flushable)this.out+=chunk.data.join("");else if(chunk.error){this.callback(chunk.error);dust.log("Chunk error ["+chunk.error+"] thrown. Ceasing to render this template.",WARN);this.flush=EMPTY_FUNC;return}else return;chunk=chunk.next;this.head=chunk}this.callback(null,this.out)};function Stream(){this.head=new Chunk(this)}Stream.prototype.flush=function(){var chunk=this.head;
while(chunk){if(chunk.flushable)this.emit("data",chunk.data.join(""));else if(chunk.error){this.emit("error",chunk.error);dust.log("Chunk error ["+chunk.error+"] thrown. Ceasing to render this template.",WARN);this.flush=EMPTY_FUNC;return}else return;chunk=chunk.next;this.head=chunk}this.emit("end")};Stream.prototype.emit=function(type,data){if(!this.events){dust.log("No events to emit",INFO);return false}var handler=this.events[type];if(!handler){dust.log("Event type ["+type+"] does not exist",WARN);
return false}if(typeof handler==="function")handler(data);else if(dust.isArray(handler)){var listeners=handler.slice(0);for(var i=0,l=listeners.length;i<l;i++)listeners[i](data)}else dust.log("Event Handler ["+handler+"] is not of a type that is handled by emit",WARN)};Stream.prototype.on=function(type,callback){if(!this.events)this.events={};if(!this.events[type])if(callback)this.events[type]=callback;else dust.log("Callback for type ["+type+"] does not exist. Listener not registered.",WARN);else if(typeof this.events[type]===
"function")this.events[type]=[this.events[type],callback];else this.events[type].push(callback);return this};Stream.prototype.pipe=function(stream){this.on("data",function(data){try{stream.write(data,"utf8")}catch(err){dust.log(err,ERROR)}}).on("end",function(){try{return stream.end()}catch(err){dust.log(err,ERROR)}}).on("error",function(err){stream.error(err)});return this};function Chunk(root,next,taps){this.root=root;this.next=next;this.data=[];this.flushable=false;this.taps=taps}Chunk.prototype.write=
function(data){var taps=this.taps;if(taps)data=taps.go(data);this.data.push(data);return this};Chunk.prototype.end=function(data){if(data)this.write(data);this.flushable=true;this.root.flush();return this};Chunk.prototype.map=function(callback){var cursor=new Chunk(this.root,this.next,this.taps),branch=new Chunk(this.root,cursor,this.taps);this.next=branch;this.flushable=true;try{callback(branch)}catch(e){dust.log(e,ERROR);branch.setError(e)}return cursor};Chunk.prototype.tap=function(tap){var taps=
this.taps;if(taps)this.taps=taps.push(tap);else this.taps=new Tap(tap);return this};Chunk.prototype.untap=function(){this.taps=this.taps.tail;return this};Chunk.prototype.render=function(body,context){return body(this,context)};Chunk.prototype.reference=function(elem,context,auto,filters){if(typeof elem==="function"){elem=elem.apply(context.current(),[this,context,null,{auto:auto,filters:filters}]);if(elem instanceof Chunk)return elem}if(!dust.isEmpty(elem))return this.write(dust.filter(elem,auto,
filters));else return this};Chunk.prototype.section=function(elem,context,bodies,params){if(typeof elem==="function"&&!elem.__dustBody){try{elem=elem.apply(context.current(),[this,context,bodies,params])}catch(e){dust.log(e,ERROR);return this.setError(e)}if(elem instanceof Chunk)return elem}var body=bodies.block,skip=bodies["else"];if(params)context=context.push(params);if(dust.isArray(elem)){if(body){var len=elem.length,chunk=this;if(len>0){if(context.stack.head)context.stack.head["$len"]=len;for(var i=
0;i<len;i++){if(context.stack.head)context.stack.head["$idx"]=i;chunk=body(chunk,context.push(elem[i],i,len))}if(context.stack.head){context.stack.head["$idx"]=undefined;context.stack.head["$len"]=undefined}return chunk}else if(skip)return skip(this,context)}}else if(elem===true){if(body)return body(this,context)}else if(elem||elem===0){if(body)return body(this,context.push(elem))}else if(skip)return skip(this,context);dust.log("Not rendering section (#) block in template ["+context.getTemplateName()+
"], because above key was not found",DEBUG);return this};Chunk.prototype.exists=function(elem,context,bodies){var body=bodies.block,skip=bodies["else"];if(!dust.isEmpty(elem)){if(body)return body(this,context)}else if(skip)return skip(this,context);dust.log("Not rendering exists (?) block in template ["+context.getTemplateName()+"], because above key was not found",DEBUG);return this};Chunk.prototype.notexists=function(elem,context,bodies){var body=bodies.block,skip=bodies["else"];if(dust.isEmpty(elem)){if(body)return body(this,
context)}else if(skip)return skip(this,context);dust.log("Not rendering not exists (^) block check in template ["+context.getTemplateName()+"], because above key was found",DEBUG);return this};Chunk.prototype.block=function(elem,context,bodies){var body=bodies.block;if(elem)body=elem;if(body)return body(this,context);return this};Chunk.prototype.partial=function(elem,context,params){var partialContext;partialContext=dust.makeBase(context.global);partialContext.blocks=context.blocks;if(context.stack&&
context.stack.tail)partialContext.stack=context.stack.tail;if(params)partialContext=partialContext.push(params);if(typeof elem==="string")partialContext.templateName=elem;partialContext=partialContext.push(context.stack.head);var partialChunk;if(typeof elem==="function")partialChunk=this.capture(elem,partialContext,function(name,chunk){partialContext.templateName=partialContext.templateName||name;dust.load(name,chunk,partialContext).end()});else partialChunk=dust.load(elem,this,partialContext);return partialChunk};
Chunk.prototype.helper=function(name,context,bodies,params){var chunk=this;if(dust.helpers[name])try{return dust.helpers[name](chunk,context,bodies,params)}catch(e){dust.log("Error in "+name+" helper: "+e,ERROR);return chunk.setError(e)}else{dust.log("Invalid helper ["+name+"]",WARN);return chunk}};Chunk.prototype.capture=function(body,context,callback){return this.map(function(chunk){var stub=new Stub(function(err,out){if(err)chunk.setError(err);else callback(out,chunk)});body(stub.head,context).end()})};
Chunk.prototype.setError=function(err){this.error=err;this.root.flush();return this};for(var f in Chunk.prototype)if(dust._aliases[f])Chunk.prototype[dust._aliases[f]]=Chunk.prototype[f];function Tap(head,tail){this.head=head;this.tail=tail}Tap.prototype.push=function(tap){return new Tap(tap,this)};Tap.prototype.go=function(value){var tap=this;while(tap){value=tap.head(value);tap=tap.tail}return value};var HCHARS=/[&<>"']/,AMP=/&/g,LT=/</g,GT=/>/g,QUOT=/\"/g,SQUOT=/\'/g;dust.escapeHtml=function(s){if(typeof s===
"string"){if(!HCHARS.test(s))return s;return s.replace(AMP,"\x26amp;").replace(LT,"\x26lt;").replace(GT,"\x26gt;").replace(QUOT,"\x26quot;").replace(SQUOT,"\x26#39;")}return s};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;dust.escapeJs=function(s){if(typeof s==="string")return s.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");return s};if(typeof exports==="object")module.exports=dust;else root.dust=dust})(function(){return this}());
(function(dust){var _log=dust.log?function(msg,level){level=level||"INFO";dust.log(msg,level)}:function(){};var _deprecatedCache={};function _deprecated(target){if(_deprecatedCache[target])return;_log("Deprecation warning: "+target+" is deprecated and will be removed in a future version of dustjs-helpers","WARN");_log("For help and a deprecation timeline, see https://github.com/linkedin/dustjs-helpers/wiki/Deprecated-Features#"+target.replace(/\W+/g,""),"WARN");_deprecatedCache[target]=true}function isSelect(context){var value=
context.current();return typeof value==="object"&&value.isSelect===true}function jsonFilter(key,value){if(typeof value==="function")return value.toString().replace(/(^\s+|\s+$)/mg,"").replace(/\n/mg,"").replace(/,\s*/mg,", ").replace(/\)\{/mg,") {");return value}function filter(chunk,context,bodies,params,filterOp){params=params||{};var body=bodies.block,actualKey,expectedValue,filterOpType=params.filterOpType||"";if(params.hasOwnProperty("key"))actualKey=dust.helpers.tap(params.key,chunk,context);
else if(isSelect(context)){actualKey=context.current().selectKey;if(context.current().isResolved)filterOp=function(){return false}}else{_log("No key specified for filter in:"+filterOpType+" helper ");return chunk}expectedValue=dust.helpers.tap(params.value,chunk,context);if(filterOp(coerce(expectedValue,params.type,context),coerce(actualKey,params.type,context))){if(isSelect(context))context.current().isResolved=true;if(body)return chunk.render(body,context);else{_log("No body specified for "+filterOpType+
" helper ");return chunk}}else if(bodies["else"])return chunk.render(bodies["else"],context);return chunk}function coerce(value,type,context){if(typeof value!=="undefined")switch(type||typeof value){case "number":return+value;case "string":return String(value);case "boolean":value=value==="false"?false:value;return Boolean(value);case "date":return new Date(value);case "context":return context.get(value)}return value}var helpers={"tap":function(input,chunk,context){if(typeof input!=="function")return input;
var dustBodyOutput="",returnValue;returnValue=chunk.tap(function(data){dustBodyOutput+=data;return""}).render(input,context);chunk.untap();if(returnValue.constructor!==chunk.constructor)return returnValue;else if(dustBodyOutput==="")return false;else return dustBodyOutput},"sep":function(chunk,context,bodies){var body=bodies.block;if(context.stack.index===context.stack.of-1)return chunk;if(body)return body(chunk,context);else return chunk},"idx":function(chunk,context,bodies){var body=bodies.block;
_deprecated("{@idx}");if(body)return body(chunk,context.push(context.stack.index));else return chunk},"contextDump":function(chunk,context,bodies,params){var p=params||{},to=p.to||"output",key=p.key||"current",dump;to=dust.helpers.tap(to,chunk,context);key=dust.helpers.tap(key,chunk,context);if(key==="full")dump=JSON.stringify(context.stack,jsonFilter,2);else dump=JSON.stringify(context.stack.head,jsonFilter,2);if(to==="console"){_log(dump);return chunk}else{dump=dump.replace(/</g,"\\u003c");return chunk.write(dump)}},
"if":function(chunk,context,bodies,params){var body=bodies.block,skip=bodies["else"],cond;if(params&&params.cond){_deprecated("{@if}");cond=dust.helpers.tap(params.cond,chunk,context);if(eval(cond))if(body)return chunk.render(bodies.block,context);else{_log("Missing body block in the if helper!");return chunk}if(skip)return chunk.render(bodies["else"],context)}else _log("No condition given in the if helper!");return chunk},"math":function(chunk,context,bodies,params){if(params&&typeof params.key!==
"undefined"&&params.method){var key=params.key,method=params.method,operand=params.operand,round=params.round,mathOut=null,operError=function(){_log("operand is required for this math method");return null};key=dust.helpers.tap(key,chunk,context);operand=dust.helpers.tap(operand,chunk,context);switch(method){case "mod":if(operand===0||operand===-0)_log("operand for divide operation is 0/-0: expect Nan!");mathOut=parseFloat(key)%parseFloat(operand);break;case "add":mathOut=parseFloat(key)+parseFloat(operand);
break;case "subtract":mathOut=parseFloat(key)-parseFloat(operand);break;case "multiply":mathOut=parseFloat(key)*parseFloat(operand);break;case "divide":if(operand===0||operand===-0)_log("operand for divide operation is 0/-0: expect Nan/Infinity!");mathOut=parseFloat(key)/parseFloat(operand);break;case "ceil":mathOut=Math.ceil(parseFloat(key));break;case "floor":mathOut=Math.floor(parseFloat(key));break;case "round":mathOut=Math.round(parseFloat(key));break;case "abs":mathOut=Math.abs(parseFloat(key));
break;default:_log("method passed is not supported")}if(mathOut!==null){if(round)mathOut=Math.round(mathOut);if(bodies&&bodies.block)return chunk.render(bodies.block,context.push({isSelect:true,isResolved:false,selectKey:mathOut}));else return chunk.write(mathOut)}else return chunk}else _log("Key is a required parameter for math helper along with method/operand!");return chunk},"select":function(chunk,context,bodies,params){var body=bodies.block;if(params&&typeof params.key!=="undefined"){var key=
dust.helpers.tap(params.key,chunk,context);if(body)return chunk.render(bodies.block,context.push({isSelect:true,isResolved:false,selectKey:key}));else{_log("Missing body block in the select helper ");return chunk}}else _log("No key given in the select helper!");return chunk},"eq":function(chunk,context,bodies,params){if(params){params.filterOpType="eq";return filter(chunk,context,bodies,params,function(expected,actual){return actual===expected})}return chunk},"ne":function(chunk,context,bodies,params){if(params){params.filterOpType=
"ne";return filter(chunk,context,bodies,params,function(expected,actual){return actual!==expected})}return chunk},"lt":function(chunk,context,bodies,params){if(params){params.filterOpType="lt";return filter(chunk,context,bodies,params,function(expected,actual){return actual<expected})}return chunk},"lte":function(chunk,context,bodies,params){if(params){params.filterOpType="lte";return filter(chunk,context,bodies,params,function(expected,actual){return actual<=expected})}return chunk},"gt":function(chunk,
context,bodies,params){if(params){params.filterOpType="gt";return filter(chunk,context,bodies,params,function(expected,actual){return actual>expected})}return chunk},"gte":function(chunk,context,bodies,params){if(params){params.filterOpType="gte";return filter(chunk,context,bodies,params,function(expected,actual){return actual>=expected})}return chunk},"default":function(chunk,context,bodies,params){if(params)params.filterOpType="default";return filter(chunk,context,bodies,params,function(expected,
actual){return true})},"size":function(chunk,context,bodies,params){var key,value=0,nr,k;params=params||{};key=params.key;if(!key||key===true)value=0;else if(dust.isArray(key))value=key.length;else if(!isNaN(parseFloat(key))&&isFinite(key))value=key;else if(typeof key==="object"){nr=0;for(k in key)if(Object.hasOwnProperty.call(key,k))nr++;value=nr}else value=(key+"").length;return chunk.write(value)}};for(var key in helpers)dust.helpers[key]=helpers[key];if(typeof exports!=="undefined")module.exports=
dust})(typeof exports!=="undefined"?require("dustjs-linkedin"):dust);
(function(dust){var isSSR=typeof window==="undefined";var CTRL_CLIENT_ID="control-dust-client";var CTRL_SERVER_ID="control-dust-server";var templatesBootstrapped={};var sanitizeScriptBody=function(data){if(typeof data==="string")return data.replace(/\u0000/g,"\ufffd").replace(/<\/(script)/ig,"\x3c\\/$1");else return data};var bootstrapSharedTemplate=function(name,chunk,context,failSilently){var partial,scmpPartial;if(templatesBootstrapped[name])return;partial="tl/shared/js-control/"+name.replace(/LI\./,
"_").replace(/\./g,"_").toLowerCase();scmpPartial="scmp/"+partial;if(dust.cache[partial])chunk.partial(partial,context);else if(dust.cache[scmpPartial])chunk.partial(scmpPartial,context);else{if(!failSilently)dust.log("Partial file "+partial+" is not in the Dust cache","WARN");return}templatesBootstrapped[name]=true};var chunkRefWithJFilter=function(elem,context,auto,filters){var oldReference=this._reference||this.reference,newAuto="j";return oldReference.call(this,elem,context,newAuto,filters)};
var registerPageJs=function(type,key,value,namespace){var reg,regKey,registree,validTypes=["i18n","lix","config"];if(validTypes.indexOf(type)>-1&&key)if(!isSSR){regKey="__li__"+type+"_registry__";reg=window[regKey]=window[regKey]||{};if(namespace)reg=reg[namespace]=reg[namespace]||{};reg[key]=value}else{registree={key:key,value:value};if(namespace)registree.namespace=namespace;dust.pageJs[type+"Ids"].push(registree)}};var dustVars={jsControl:{count:1,controls:{},controlIds:[],controlIdentifier:isSSR?
CTRL_SERVER_ID:CTRL_CLIENT_ID,contextIdentifier:isSSR?Math.floor(Math.random()*100000001)+"-":""},i18n:dust.i18n||{cache:{}},pageJs:{i18nIds:[],lixIds:[],configIds:[]},resetBootstrappedTemplates:function(){templatesBootstrapped={}}};dustVars.i18n.cache=dustVars.i18n.cache||{};var helpers={"miniprofile_popup":function(chunk,context,bodies,params){var url,tracking,getJs,className,template;if(params&&params.url){url=dust.helpers.tap(params.url,chunk,context);tracking=params.tracking||"";className=dust.helpers.tap(params.searchClass,
chunk,context)||"";getJs=dust.helpers.tap(params.getJs,chunk,context)||"";template=dust.helpers.tap(params.template,chunk,context)||"";chunk.write('\x3cspan data-tracking\x3d"'+tracking+'"');if(className)chunk.write(' class\x3d"'+className+" "+dust.filters.h(url)+'"');else chunk.write(' class\x3d"miniprofile-container '+dust.filters.h(url)+'"');if(url)chunk.write(' data-li-url\x3d"'+dust.filters.h(url)+'"');if(getJs)chunk.write(' data-li-getjs\x3d"'+getJs+'"');if(template)chunk.write(' data-li-tl\x3d"'+
template+'"');chunk.write("\x3e\x3cstrong\x3e");chunk.render(bodies.block,context);chunk.write("\x3c/strong\x3e\x3c/span\x3e")}return chunk},"module":function(chunk,context,bodies,params){var hasHdr=typeof params.hasHdr==="undefined"||params.hasHdr.toLowerCase()==="true",hdrTag=params.hdrTag||"h3",id=params.id||"module-id"+Math.floor(Math.random()*1001),modClass=params.moduleClass?" "+params.moduleClass:"",modType=params.type||"util",title=dust.helpers.tap(params.title,chunk,context)||"";if(typeof params.hdrTag!==
"undefined"||typeof params.hasHdr!=="undefined"||typeof params.id!=="undefined"){chunk.write('\x3cdiv class\x3d"leo-module mod-'+modType+modClass+'" id\x3d"'+id+'"\x3e');if(hasHdr)chunk.write('\x3cdiv class\x3d"header"\x3e\x3c'+dust.filters.h(hdrTag)+"\x3e"+dust.filters.h(title)+"\x3c/"+dust.filters.h(hdrTag)+"\x3e\x3c/div\x3e");chunk.write('\x3cdiv class\x3d"content"\x3e');chunk.render(bodies.block,context);chunk.write("\x3c/div\x3e\x3c/div\x3e")}return chunk},"jsControlFlush":function(chunk,context,
bodies,params){var ctrlIds;if(dust&&dust.jsControl&&dust.jsControl.controlIds&&dust.jsControl.controlIds.length){ctrlIds='"'+dust.jsControl.controlIds.join(",")+'";';chunk.write('\x3cscript type\x3d"text/javascript"\x3e').write("if (dust \x26\x26 dust.jsControl) {").write("if (!dust.jsControl.flushControlIds) {").write('dust.jsControl.flushControlIds \x3d "";').write("} else {").write('dust.jsControl.flushControlIds +\x3d ",";').write("}").write("dust.jsControl.flushControlIds +\x3d "+ctrlIds).write("}").write("\x3c/script\x3e");
dust.jsControl.controlIds=[]}return chunk},"jsControl":function(chunk,context,bodies,params){if(params&&params.name){var controlId=dust.jsControl.controlIdentifier+"-"+dust.jsControl.contextIdentifier+dust.jsControl.count,controlName=params.name,controlPartial;dust.jsControl.controlIds.push(controlId);if(dust.jsControl.controls[controlName]!=="initialized"&&params.disableControlInitData===undefined){dust.jsControl.controls[controlName]="initialized";bootstrapSharedTemplate(controlName,chunk,context,
true)}chunk.write('\x3cscript id\x3d"'+controlId+'" type\x3d"linkedin/control" class\x3d"li-control"\x3e');chunk.write('LI.Controls.addControl("'+controlId+'", "'+params.name+'", ');if(bodies.block)chunk.tap(sanitizeScriptBody).render(bodies.block,context).untap();else chunk.write("{}");chunk.write(")\x3c/script\x3e");dust.jsControl.count++;if(dust.jsControl.controlIdentifier===CTRL_SERVER_ID)dust.helpers.jsControlFlush(chunk,context,bodies,params)}return chunk},"partial":function(chunk,context,bodies,
params){var partial={},partialTagContext=params&&params.key?params.key:"partial",partialTagData=context.get(partialTagContext),data,partialContext;if(params)for(var param in params)if(param!=="key")partial[param]=dust.helpers.tap(params[param],chunk,context);if(partialTagData)for(data in partialTagData)partial[data]=partialTagData[data];partial.isPartial=true;if(params&&params.template){var template=params.template;if(template.indexOf(":")>=0){var contextIndex=template.indexOf(":"),overrideContext=
template.substring(contextIndex+1),partialOverrideContext=context.get(overrideContext);template=template.substring(0,contextIndex);if(partialOverrideContext)for(data in partialOverrideContext)partial[data]=partialOverrideContext[data]}partialContext=dust.makeBase(partial);partialContext.templateName=context.getTemplateName();return chunk.partial(template,partialContext)}else{partialContext=dust.makeBase(partial);partialContext.templateName=context.getTemplateName();return bodies.block(chunk,partialContext)}},
"param":function(chunk,context,bodies,params){if(context.global&&context.global.isPartial)if(params){var key=params.key,defaultVal=params.defaultVal,pKeyValue=context.global[key];if(key&&typeof pKeyValue==="undefined"&&typeof defaultVal!=="undefined")context.global[key]=defaultVal}return chunk},"replace":function(chunk,context,bodies,params){if(!params)return chunk.write("");var value=dust.helpers.tap(params.value,chunk,context)||"",target=dust.helpers.tap(params.target,chunk,context)||"",replacement=
dust.helpers.tap(params.replacement,chunk,context)||"",toLower=!!params.toLower,toUpper=!!params.toUpper,regex=params.target&&new RegExp(target,"g"),result=value.replace(regex,replacement);result=toUpper&&result.toUpperCase()||result;result=toLower&&result.toLowerCase()||result;return chunk.write(result)},"log":function(chunk,context,bodies,params){if(params&&params.info)dust.log(params.info);return chunk},"i18n":function(chunk,context,bodies,params){if(params&&params.hide==="true")return chunk;if(params&&
typeof params.key!=="undefined"){var key=params.key,templateName=params.template||context.getTemplateName();if(typeof templateName!=="undefined"){var templateDictionary=dust.i18n.cache[templateName],text;if(templateDictionary){text=templateDictionary[params.key];if(text)if(!params.output)return chunk.write(text);else{context.stack.head[key]=text;return chunk}}text=params.text;if(text)return chunk.write(text);else if(bodies.block)return chunk.render(bodies.block,context)}return chunk}},"page.js.lix":function(chunk,
context,bodies,params){var key=dust.helpers.tap(params.key,chunk,context)||"",value=dust.helpers.tap(params.value,chunk,context)||"";registerPageJs("lix",key,value);return chunk},"page.js.i18n":function(chunk,context,bodies,params){var key=dust.helpers.tap(params.key,chunk,context)||"",value=dust.helpers.tap(params.value,chunk,context)||"";registerPageJs("i18n",key,value);return chunk},"page.js.config":function(chunk,context,bodies,params){var key=dust.helpers.tap(params.key,chunk,context)||"",value=
dust.helpers.tap(params.value,chunk,context)||"",namespace=dust.helpers.tap(params.namespace,chunk,context)||"";registerPageJs("config",key,value,namespace);return chunk},"page.js.bootstrap":function(chunk,context,bodies,params){var controlNames,controlName,length,i;if(params&&params.controls){controlNames=dust.helpers.tap(params.controls,chunk,context)||"";if(!controlNames)return chunk;controlNames=controlNames.split(/,\s*/);for(i=0,length=controlNames.length;i<length;i++)bootstrapSharedTemplate(controlNames[i],
chunk,context)}return chunk},"page.js.flush":function(chunk,context,bodies,params){var types=["i18n","lix","config"],data={},hasCachedData,i,len;for(i=0,len=types.length;i<len;i++)if(dust.pageJs[types[i]+"Ids"].length){hasCachedData=true;break}if(hasCachedData){chunk.write('\x3cscript type\x3d"text/javascript"\x3e').write("(function(d,t){if(d){var r,rk,i,j,li,lj,id,ids,c\x3d{};");for(i=0,len=types.length;i<len;i++){try{data[types[i]]=JSON.stringify(dust.pageJs[types[i]+"Ids"]).replace(/</g,"\\u003c").replace(/\u2028/g,
"\\u2028").replace(/\u2029/g,"\\u2029")}catch(e){dust.log("WARN",e.message||e)}chunk.write("c."+types[i]+' \x3d JSON.parse("'+dust.filters.j(data[types[i]])+'");');dust.pageJs[types[i]+"Ids"]=[]}chunk.write("for(i\x3d0,li\x3dt.length;i\x3cli;i++){"+"ids\x3dc[t[i]];"+"rk\x3d'__li__'+t[i]+'_registry__';"+"r\x3dwindow[rk]\x3dwindow[rk]||{};"+"if(ids){"+"for(j\x3d0,lj\x3dids.length;j\x3clj;j++){"+"id\x3dids[j];"+"if(id\x26\x26id.key){"+"if(id.namespace){"+"r\x3dr[id.namespace]\x3dr[id.namespace]||{};"+
"}"+"r[id.key]\x3did.value;"+"}"+"}"+"}"+"}");chunk.write("}})(window.dust,['i18n','lix','config']);").write("\x3c/script\x3e")}return chunk},"if":function(chunk,context,bodies,params){var body=bodies.block,skip=bodies["else"],cond=params.cond;if(cond){chunk._reference=chunk.reference;chunk.reference=chunk.f=chunkRefWithJFilter;cond=dust.helpers.tap(cond,chunk,context);chunk.reference=chunk.f=chunk._reference;if(eval(cond))if(body)return chunk.render(bodies.block,context);else{dust.log("Missing body block in the if helper!");
return chunk}if(skip)return chunk.render(bodies["else"],context)}else dust.log("No condition given in the if helper!");return chunk},"addToContext":function(chunk,context,bodies,params){if(!params||!params.name)return chunk.setError("@addToContext called with null params.name");params.name=dust.helpers.tap(params.name,chunk,context);return chunk.capture(bodies.block,context,function(out,chunk){context.current()[params.name]=out;return chunk.end("")})}};var key;for(key in dustVars)dust[key]=dustVars[key];
for(key in helpers)dust.helpers[key]=helpers[key]})(dust);
(function(dust){var htmlRegex=/[<>'"]|&(?!(?:\w+|#(?:\d+|x[\da-f]+));)/i,LT=/</g,GT=/>/g,BS=/\\/g,dustJavaScriptEncode=dust.filters.j,dustJSONEncode=dust.filters.js,dustHTMLEncode=dust.filters.h,validateHTML,filters={},key;function secureJavaScriptEncode(string){var encodedString=dustJavaScriptEncode(string);if(typeof encodedString!=="string")return encodedString;return encodedString.replace(LT,"\\u003C").replace(GT,"\\u003E")}function secureJSONEncode(string){var encodedString=dustJSONEncode(string);
if(typeof encodedString!=="string")return encodedString;return encodedString.replace(LT,"\\u003C").replace(GT,"\\u003E")}function secureHTMLEncode(string){var encodedString=dustHTMLEncode(string);if(typeof encodedString!=="string")return encodedString;return encodedString.replace(BS,"\x26#92;")}function encodedText(input){if(htmlRegex.test(input)){report(input,"dust-security-ensure_preencode");input=dust.filters.h(input)}return input}function markup(input){if(!validateHTML(input)){report(input,"dust-security-html_whitelist");
return stripTags(input)}return input}function rich(input){return input}function report(badValue,violatedDirective){dust.log(violatedDirective+": "+badValue,"WARN")}function createHTMLValidator(config){var rNotAllowedTag=new RegExp("\x3c(?!/?(?:"+config.allowedTags+")(?:[ \t\r\n]*/?\x3e|[ \t\r\n]+(?:(?:(?:"+config.allowedAttributes+")(?:\x3d([\"'])[^'\"\x3c\x3e]*\\1)?|(?:"+config.allowedURLAttributes+")\x3d([\"'])(?:(?:"+config.allowedURLSchemes+")(?::|\x26#(?:58|x3a);)|[/.#?]|\x26#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"\x3c\x3e]*\\2)[ \t\r\n]*)+/?\x3e))",
"i");return function(html){return!rNotAllowedTag.test(html)}}validateHTML=createHTMLValidator({allowedTags:"a|abbr|address|area|article|aside|audio|b|bdi|bdo|big|blockquote|br|button|center|cite|code|datalist|dd|del|details|dfn|div|dl|dt|em|fieldset|figcaption|figure|font|footer|h[1-6]|header|hgroup|hr|i|img|ins|kbd|label|legend|li|map|mark|marquee|nav|nobr|ol|p|pre|q|rp|rt|ruby|s|samp|section|small|source|span|strike|strong|sub|sup|table|tbody|td|tfoot|th|thead|time|tr|u|ul|var|video|wbr",allowedAttributes:"alt|aria-[a-z0-9_\\-]+|border|caption|checked|class|colgroup|color|cols|colspan|controls|coords|data-[a-z0-9_\\-]+|dir|disabled|height|hidden|hreflang|id|label|loop|marginheight|marginwidth|maxlength|method|multiple|name|preload|readonly|rel|required|reversed|role|rows|rowspan|spellcheck|tabindex|target|title|type|usemap|width|clear|headers|ismap|lang|start|datetime|accept|max|min|placeholder|size|step",
allowedURLAttributes:"href|src",allowedURLSchemes:"https?|ftp|mailto"});function stripTags(string){return string.replace(/<[^>]*>|[<>'"&\\]/g,"")}filters={j:secureJavaScriptEncode,js:secureJSONEncode,h:secureHTMLEncode,et:encodedText,mk:markup,encodedText:encodedText,markup:markup,rich:rich};for(key in filters)dust.filters[key]=filters[key]})(dust);
(function(global,dust){var dustVersion="unknown",liDustVars=global.liDustVars;if(typeof global.liDustVars!=="undefined"){dust.cache=liDustVars.cache;dust.i18n=liDustVars.i18n;for(var helperName in liDustVars.helpers)if(typeof dust.helpers[helperName]==="undefined")dust.helpers[helperName]=liDustVars.helpers[helperName];delete global.liDustVars}if(typeof global.liDustVersion!=="undefined"){dustVersion=global.liDustVersion;delete global.liDustVersion}dust.helpers.dustVersion=function(chunk,context,
bodies,params){return chunk.write(dustVersion)}})(this,dust);