(function(){var b=LIModules.imports("i18n");
var a=(function(){var h={left:"right",right:"left",ltr:"rtl",rtl:"ltr"},m;
function c(o){return typeof o==="function"
}function e(o){return o===true||o===false||Object.prototype.toString.call(o)==="[object Boolean]"
}function d(o){return o===void 0
}function i(o){return c(o)?o():o
}function l(o){o=i(o);
if(e(o)){o=!o
}else{if(o&&h[o]){o=h[o]
}}return o
}function k(){return m
}function j(w){if((w===void 0)||(w===null)){return false
}var t=0,o,q=w.length,p=" \n\r\t\f\u00A0\u2028\u2029".split(""),x="~!@#$%^&*()_+`1234567890-={}|[]\\:\";'<>?,./".split(""),v=p.concat(x),u="\u0590",r="\u06FF";
function s(A,z){if(A===null){return false
}var y=Array.prototype.indexOf;
if(y&&A.indexOf===y){return A.indexOf(z)!==-1
}return Array.prototype.some(A,function(B){return B===z
})
}for(;
t<q;
t++){o=w.charAt(t);
if(!s(v,o)){break
}}if(t>=q){return false
}return(o>=u&&o<=r)?true:false
}function g(o,p){var q;
if(k()){if(d(p)){q=l(o)
}else{q=i(p)
}}else{q=i(o)
}return q
}function f(o){return this.flip(null,o)
}function n(){m=b&&b.page&&b.page.readsRTL()
}n();
return{init:n,flip:g,applyWhenRTL:f,isRtl:j}
}());
LIModules.exports("Bidi",a)
})();LI.BidiInput=(function(){var b="no-bidi-input",i=":not(."+b+")",f="dir",g="ltr",c="rtl",e="body",a="BidiReset",h=LIModules.requires("Bidi.isRtl");
function d(l){var j=$(l.target),o=g,n=j.attr(f),k,p=$(e).attr(f),m=j.data("bidiEvent");
if(j.val().length){k=j.val();
if(LI.BidiInput._isRtl(k)){o=c
}}else{if(p){o=p
}else{j.removeAttr(f);
return
}}if(typeof n==="undefined"||n!==o){j.attr(f,o);
if(m){j.trigger(m,[o])
}}}$(document).ready(function(){$(e).on("input propertychange "+a,"textarea"+i+", input"+i,d)
});
return{_updateDir:d,_isRtl:h,EVENT_RESET:a}
}());(function(){dust.register("tl/shared/typeahead/complexTypeahead",n);
function n(r,q){return r.exists(q.get(["categoryName"],false),q,{"block":l},null).write("<span").exists(q.getPath(false,["misc","actionType"]),q,{"block":h},null).write('><a id="').exists(q.get(["sourceID"],false),q,{"block":d},null).write("item-").reference(q.get(["id"],false),q,"h").write('" role="button" href="').reference(q.get(["url"],false),q,"h").write('" class="').reference(q.get(["type"],false),q,"h").exists(q.get(["sourceID"],false),q,{"block":c},null).exists(q.getPath(false,["misc","actionType"]),q,{"block":b},null).write('" aria-label="').reference(q.get(["displayName"],false),q,"h",["et","s"]).write('" title="').reference(q.get(["displayName"],false),q,"h",["et","s"]).write('">').exists(q.get(["imageUrl"],false),q,{"else":a,"block":o},null).write('<span class="item-headline').notexists(q.get(["subLine"],false),q,{"block":m},null).write('">').reference(q.get(["headLine"],false),q,"h",["mk","s"]).exists(q.getPath(false,["misc","degree"]),q,{"block":k},null).write('</span><span class="item-subline">').reference(q.get(["subLine"],false),q,"h",["et","s"]).write("</span></a>").exists(q.getPath(false,["misc","actionType"]),q,{"block":i},null).write("</span>")
}function l(r,q){return r.write('<div class="category').exists(q.get(["sourceID"],false),q,{"block":j},null).write('"><h3><strong>').reference(q.get(["categoryName"],false),q,"h").write("</strong></h3></div>")
}function j(r,q){return r.write(" ").reference(q.get(["sourceID"],false),q,"h")
}function h(r,q){return r.write(' role="toolbar" aria-labelledby="').exists(q.get(["sourceID"],false),q,{"block":f},null).write("item-").reference(q.get(["id"],false),q,"h").write(" ").exists(q.get(["sourceID"],false),q,{"block":e},null).write("action-").reference(q.get(["id"],false),q,"h").write('" ')
}function f(r,q){return r.reference(q.get(["sourceID"],false),q,"h").write("-")
}function e(r,q){return r.reference(q.get(["sourceID"],false),q,"h").write("-")
}function d(r,q){return r.reference(q.get(["sourceID"],false),q,"h").write("-")
}function c(r,q){return r.write(" ").reference(q.get(["sourceID"],false),q,"h")
}function b(r,q){return r.write(" has-action")
}function a(r,q){return r.write('<span class="ghost-image').exists(q.get(["suggestionType"],false),q,{"block":p},null).write('"></span>')
}function p(r,q){return r.write(" ").reference(q.get(["suggestionType"],false),q,"h")
}function o(r,q){return r.write('<img src="').reference(q.get(["imageUrl"],false),q,"h").write('" alt="').reference(q.get(["displayName"],false),q,"h",["et","s"]).write('"/>')
}function m(r,q){return r.write(" no-subline")
}function k(r,q){return r.write('<span class="separator">&middot;</span><span class="typeahead-degree">').reference(q.getPath(false,["misc","degree"]),q,"h",["mk","s"]).write("</span>")
}function i(r,q){return r.write('<a id="').exists(q.get(["sourceID"],false),q,{"block":g},null).write("action-").reference(q.get(["id"],false),q,"h").write('" role="button" class="typeahead-action" href="').reference(q.getPath(false,["misc","actionUrl"]),q,"h").write('" aria-label="').reference(q.getPath(false,["misc","actionDisplayName"]),q,"h").write(" ").reference(q.get(["displayName"],false),q,"h",["et","s"]).write('">').reference(q.getPath(false,["misc","actionDisplayName"]),q,"h").write("</a>")
}function g(r,q){return r.reference(q.get(["sourceID"],false),q,"h").write("-")
}return n
})();
(function(){dust.register("complexTypeahead",dust.cache["tl/shared/typeahead/complexTypeahead"])
})();(function(){dust.register("tl/shared/typeahead/searchHistoryFooter",a);
function a(c,b){return c.write('<div class="search-history-footer"><button type="button" class="clear-history">').reference(b.getPath(false,["i18n","clearLabel"]),b,"h").write("</button></div>")
}return a
})();
(function(){dust.register("searchHistoryFooter",dust.cache["tl/shared/typeahead/searchHistoryFooter"])
})();define("jquery",[],function(){return jQuery
});
define("UniversalSearchGhostLabel",["jquery"],function(d){var a=["ghostText"],c="ghost-label-active",b=!!("placeholder" in document.createElement("input")),e=function(){};
e.prototype.init=function(f){this._elId=f;
this._cacheDOMElements();
this._attachEventListeners()
};
e.prototype._cacheDOMElements=function(){this._$el=d("#"+this._elId);
this._$form=this._$el.parents("form")
};
e.prototype._attachEventListeners=function(){if(!b){this._$form.on("submit",d.proxy(this._clearVal,this));
this._$el.on("focus",d.proxy(this._clearVal,this));
this._$el.on("blur",d.proxy(this._setValToPlaceholder,this))
}};
e.prototype._validateData=function(l,k){var g="",h=[],m,j,f;
for(j=0,f=k.length;
j<f;
j++){m=k[j];
if(!l.hasOwnProperty(m)){h.push(m)
}}if(h.length){g+="The keys {"+h.join(",")+"} are missing in the vertical dataset."
}return g
};
e.prototype._setGhostLabel=function(f){this._clearVal();
this._$el.attr("placeholder",f);
this._setValToPlaceholder()
};
e.prototype._clearVal=b?function(){}:function(){if(this._$el.hasClass(c)){this._$el.removeClass(c);
this._$el.val("")
}};
e.prototype._setValToPlaceholder=b?function(){}:function(){if(this._$el.val()===""){this._$el.addClass(c);
this._$el.val(this._$el.attr("placeholder"))
}};
e.prototype.onNewVerticalData=function(g){var f=this._validateData(g,a);
if(!f){this._setGhostLabel(g.ghostText)
}else{throw new Error(f)
}};
return new e()
});define("jquery",[],function(){return jQuery
});
define("UniversalSearchForm",["jquery"],function(e){var c="advanced-search",g="main-search-box",b="basic-search",d="focusInputEvent",f=["formAction","formMethod","advancedLinkHref","advancedLinkVisible"],a=function(){};
a.prototype.init=function(h){this._elId=h;
this._cacheDOMElements();
this._attachEventListeners()
};
a.prototype._cacheDOMElements=function(){this._$el=e("#"+this._elId);
this._$mainTextBoxEl=this._$el.find("#"+g);
this._$advancedLinkEl=this._$el.find("#"+c)
};
a.prototype._attachEventListeners=function(){LI.Events.on(d,this.focus,this)
};
a.prototype._validateData=function(n,m){var j="",k=[],o,l,h;
for(l=0,h=m.length;
l<h;
l++){o=m[l];
if(!n.hasOwnProperty(o)){k.push(o)
}}if(k.length){j+="The keys {"+k.join(",")+"} are missing in the vertical dataset."
}return j
};
a.prototype._showAdvancedLink=function(){this._$el.removeClass(b)
};
a.prototype._hideAdvancedLink=function(){this._$el.addClass(b)
};
a.prototype.focus=function(){this._$mainTextBoxEl.focus()
};
a.prototype.onNewVerticalData=function(i){var h=this._validateData(i,f);
if(!h){this._$el.attr("method",i.formMethod);
this._$el.attr("action",i.formAction);
if(i.advancedLinkVisible){this._$advancedLinkEl.attr("href",i.advancedLinkHref);
this._showAdvancedLink()
}else{this._hideAdvancedLink()
}}else{throw new Error(h)
}};
return new a()
});define("jquery",[],function(){return jQuery
});
define("WebTracking",[],function(){return WebTracking
});
define("UniversalSearchTracking",["jquery","WebTracking"],function(d,c){var a=["trkCode"],b=function(){};
b.prototype.init=function(e){this._elId=e;
this._cacheDOMElements();
this._attachEventListeners();
this.webTracking=c
};
b.prototype._cacheDOMElements=function(){this._$el=d("#"+this._elId)
};
b.prototype._attachEventListeners=function(){this._$el.off("focus",this._trackNewSearch);
this._$el.one("focus",this._trackNewSearch)
};
b.prototype._trackNewSearch=function(){c.trackUserAction("glhd-srch-init")
};
b.prototype._validateData=function(k,j){var f="",g=[],l,h,e;
for(h=0,e=j.length;
h<e;
h++){l=j[h];
if(!k.hasOwnProperty(l)){g.push(l)
}}if(g.length){f+="The keys {"+g.join(",")+"} are missing in the vertical dataset."
}return f
};
b.prototype._trackVerticalChange=function(e){c.trackUserAction(e)
};
b.prototype.onNewVerticalData=function(f){var e=this._validateData(f,a);
if(!e){this._trackVerticalChange(f.trkCode)
}else{throw new Error(e)
}};
return new b()
});define("jquery",[],function(){return jQuery
});
define("TypeaheadNavigator",["jquery"],function(e){var a="item",d="typeahead-action",c="selected",b=function(){};
b.prototype.init=function(f,g){if(!(g!=null&&typeof g==="object"&&"splice" in g&&"join" in g)){g=[g]
}g=g.map(function(h){return".tt-dataset-"+h
});
this._$dropdown=e(g.join(","));
this._$el=e("#"+f);
this._currentSelectionType=a;
this._$currentSuggestion=e();
this._$currentSelection=e();
this._dropdownMutationObserver=typeof MutationObserver!=="undefined"?new MutationObserver(this._scrollContainer.bind(this)):null
};
b.prototype.bindKeyEvents=function(){this._$el.on("keydown",e.proxy(this.onKeyDown,this));
if(this._dropdownMutationObserver){this._dropdownMutationObserver.observe(this._$dropdown[0],{childList:true})
}else{this._$dropdown.on("DOMSubtreeModified",this._scrollContainer.bind(this))
}};
b.prototype.bindMouseEvents=function(){this._$dropdown.on("mouseenter","."+a,e.proxy(this.onMouseEnter,this)).on("mouseleave","."+a,e.proxy(this.resetSelected,this)).on("mouseenter","."+d,e.proxy(this.onMouseEnter,this)).on("mouseleave","."+d,e.proxy(this.resetSelected,this))
};
b.prototype.unbindEvents=function(){this._$el.off("keydown",e.proxy(this.onKeyDown,this));
this._$dropdown.off("mouseenter","."+a,e.proxy(this.onMouseEnter,this)).off("mouseleave","."+a,e.proxy(this.resetSelected,this)).off("mouseenter","."+d,e.proxy(this.onMouseEnter,this)).off("mouseleave","."+d,e.proxy(this.resetSelected,this));
if(this._dropdownMutationObserver){this._dropdownMutationObserver.disconnect()
}else{this._$dropdown.off("DOMSubtreeModified",e.proxy(this._scrollContainer,this))
}};
b.prototype.resetSelected=function(){this._$dropdown.find("."+a+"."+c).removeClass(c);
this._$dropdown.find("."+d+"."+c).removeClass(c)
};
b.prototype.onMouseEnter=function(g){var f=e(g.currentTarget);
this.resetSelected();
f.addClass(c);
this._currentSelectionType=(f.hasClass(d)===true)?d:a
};
b.prototype._toggleColumn=function(){var f=this._$currentSuggestion.find("."+a);
if(f.hasClass("has-action")){this._currentSelectionType=this._currentSelectionType===a?d:a
}};
b.prototype._getCurrentSelection=function(){var f=this._$currentSuggestion.find("."+this._currentSelectionType);
if(!f.length){this._currentSelectionType=a;
f=this._$currentSuggestion.find("."+this._currentSelectionType)
}return f
};
b.prototype._selectCurrent=function(){var f=this._getCurrentSelection();
this.resetSelected();
this._getCurrentSelection().addClass(c);
this._$el.attr("aria-activedescendant",f.attr("id"))
};
b.prototype._goToCurrentUrl=function(){if(this._$currentSelection.length){document.location.href=this._$currentSelection.attr("href")
}};
b.prototype._scrollContainer=function(){var g=this._getCurrentSelection(),f=g.length?this._$currentSuggestion.position().top:0;
if((f>this._$dropdown.scrollTop()+this._$dropdown.height())||(f<this._$dropdown.scrollTop())){this._$dropdown.scrollTop(f)
}};
b.prototype._preventDefault=function(f){if(this._$currentSuggestion.length){f.preventDefault()
}};
b.prototype.onKeyDown=function(f){var g=f.keyCode;
this._$currentSuggestion=this._$dropdown.find(".tt-suggestion.tt-cursor");
switch(g){case 37:this._toggleColumn();
this._selectCurrent();
this._preventDefault(f);
break;
case 38:this._scrollContainer();
this._selectCurrent();
break;
case 39:this._toggleColumn();
this._selectCurrent();
this._preventDefault(f);
break;
case 40:this._scrollContainer();
this._selectCurrent();
break;
case 13:this._preventDefault(f);
this._goToCurrentUrl();
break
}this._$currentSelection=this._getCurrentSelection()
};
return new b()
});(function(){var f=LIModules.requires("jQuery"),e="aria-selected",g="aria-hidden",a="aria-activedescendant",c=["dataset","bloodhoundEngine","i18nStrings","regionId"],b,d;
b=function(i,h){this._$el=i;
this._config=h;
this._checkMissingConfigs();
this._$label=f("#"+this._config.regionId);
this._dropdownId="tt-dataset-"+this._config.dataset;
this._attachAriaAttributes();
this._attachTypeaheadEvents();
this._handleResultLength()
};
d=b.prototype;
d.destroy=function(){this._$el.off("typeahead:opened",f.proxy(this._setDropdownAttrs,this)).off("typeahead:cursorchanged",f.proxy(this._setActiveDescendant,this)).off("typeahead:closed",f.proxy(this._removeActiveDescendant,this)).off("keyup.typeahead",f.proxy(this._resetLabelLength,this));
this._$el.attr(this._originalElAriaAttrs);
this._$label.attr(this._originalLabelAriaAttrs);
this._config.bloodhoundEngine.get=this._originalGetResults
};
d._checkMissingConfigs=function(){var l=[],j,k,h;
this._config.regionId=this._config.regionId||this._config.labelId;
for(k=0,h=c.length;
k<h;
k++){j=c[k];
if(!this._config[j]){l.push(j)
}}if(l.length){throw"["+l.join(",")+"] config(s) are missing from the AccessibleTwitterTypeahead module"
}};
d._attachAriaAttributes=function(){this._originalElAriaAttrs={"role":this._$el.attr("role")||null,"aria-owns":this._$el.attr("aria-owns")||null,"aria-labelledby":this._$el.attr("aria-labelledby")||null,"aria-live":this._$el.attr("aria-live")||null,"aria-autocomplete":this._$el.attr("aria-autocomplete")||null};
this._originalLabelAriaAttrs={"aria-live":this._$label.attr("aria-live")||null};
this._$el.attr({"role":"combobox","aria-owns":"tt-dataset-"+this._config.dataset,"aria-labelledby":this._config.regionId,"aria-live":"polite","aria-autocomplete":"list"});
if(!this._$label.attr("aria-live")){this._$label.attr("aria-live","polite")
}};
d._attachTypeaheadEvents=function(){this._$el.on("typeahead:opened",f.proxy(this._setDropdownAttrs,this)).on("typeahead:cursorchanged",f.proxy(this._setActiveDescendant,this)).on("typeahead:closed",f.proxy(this._removeActiveDescendant,this)).on("keyup.typeahead",f.proxy(this._resetLabelLength,this))
};
d._setDropdownAttrs=function(){var h=f("."+this._dropdownId);
h.attr({"id":this._dropdownId,"role":"listbox"})
};
d._setActiveDescendant=function(h,i){var j=i.sourceID?i.sourceID+"-item-"+i.id:"item-"+i.id;
this._$el.attr(a,j);
this._$dropdown=this._$dropdown||f("#"+this._dropdownId);
this._$dropdown.find("["+e+"=true]").attr(e,false);
f("#"+j).attr(e,true)
};
d._removeActiveDescendant=function(){this._$el.removeAttr(a);
this._resetRegion()
};
d._setLabelToLength=function(h){var i=h?h.length:0,j="";
switch(i){case 0:j=this._config.i18nStrings.zeroResults;
break;
case 1:j=this._config.i18nStrings.singleResult;
break;
default:j=this._config.i18nStrings.multipleResults
}this._$label.html(f("<span/>").text(j))
};
d._handleResultLength=function(){var h=this;
this._originalGetResults=this._config.bloodhoundEngine.get;
this._config.bloodhoundEngine.get=function(j,k){var i=k;
k=function(l){h._setLabelToLength(l);
i(l)
};
h._originalGetResults.call(h._config.bloodhoundEngine,j,k)
}
};
d._resetRegion=function(){this._$label.text("")
};
d._resetLabelLength=function(){if(f.trim(this._$el.val())===""){this._resetRegion()
}};
LIModules.exports("AccessibleTwitterTypeahead",b)
})();define("jquery",[],function(){return jQuery
});
define("WebTracking",[],function(){return WebTracking
});
define("UniversalTypeahead",["jquery","TypeaheadNavigator","WebTracking"],function(z,P,l){var k=["key"],w=LIModules.requires("readCookie"),L=LIModules.requires("createCookie"),A=200,c=100,m="#global-search .twitter-typeahead",y="main-search-box",i="clear-main-search",e=".tt-dropdown-menu",u="main-search-trkInfo",C="wutan",t="blud",g="GLHD",b="GLHD_SEARCH_HISTORY",D="tarId",Q,x="mynetwork",a="mynetworksecond",K="company",q="group",I="sitefeature",d="skill",n="school",N="showcase",p="suggestion",r="refine",v="autocomplete",J="history",O="connect",F="message",M="inmail",E="post",h="follow",o="view",H="edit",B="zeroresults",R="oneresult",j="manyresults",s="direction",S="ltr",f="clearLabel",G=function(){};
G.prototype.init=function(T,U){this._searchType="";
this._elId=T;
this._lixTests=U||{};
this._userInputValue="";
this._guid=(new Date()).getTime();
this._refTarId="";
this._requestCount=0;
this._historyLimit=10;
this._currentTypeaheadSelectionType="item";
this._cacheDOMElements();
this._getI18nStrings();
this._parseConfigs();
this._parseLix();
this._instantiateTypeahead();
this._attachEventListeners();
this._toggleClearButton();
this._webTracking=l
};
G.prototype._cacheDOMElements=function(){this._$el=z("#"+this._elId);
this._$mainTextBoxEl=this._$el.find("#"+y);
this._$trkInput=this._$el.find("#"+u);
this._$clearButton=this._$el.find("#"+i)
};
G.prototype._attachEventListeners=function(){var T=this;
this._$mainTextBoxEl.on({keydown:z.proxy(this._toggleClearButton,this),paste:z.proxy(this._toggleClearButton,this),input:z.proxy(this._toggleClearButton,this)}).on({keydown:z.proxy(function(){this._resetWrapperDirection()
},this),input:z.proxy(function(){this._resetWrapperDirection()
},this)});
this._$clearButton.on("click",function(U){U.preventDefault();
T._clearSearchBox();
T._$mainTextBoxEl.focus()
});
if(this._searchHistoryEnabled){this._$el.on("submit",z.proxy(this._beforeSubmit,this));
this._$el.find(e).on("click",z.proxy(this._clearHistoryClickHandler,this))
}};
G.prototype._clearHistoryClickHandler=function(U){var T=z(U.target);
if(T.hasClass("clear-history")){this._clearHistory();
this.reinstantiateTypeahead()
}};
G.prototype._getI18nStrings=function(){this.i18nMap={};
this.i18nMap[r]=LI.i18n.get("universal-search-refine");
this.i18nMap[p]=LI.i18n.get("typeahead2-search-suggestions");
this.i18nMap[v]=LI.i18n.get("typeahead2-search-suggestions");
this.i18nMap[x]=this._lixTests.networkHeadline==="people"?LI.i18n.get("typeahead2-search-people"):LI.i18n.get("typeahead2-search-connections");
this.i18nMap[K]=LI.i18n.get("typeahead2-search-companies");
this.i18nMap[q]=LI.i18n.get("typeahead2-search-groups");
this.i18nMap[I]=LI.i18n.get("typeahead2-search-features");
this.i18nMap[n]=LI.i18n.get("typeahead2-search-schools");
this.i18nMap[N]=LI.i18n.get("typeahead2-search-showcases");
this.i18nMap[d]=LI.i18n.get("typeahead2-search-skills");
this.i18nMap[O]=LI.i18n.get("typeahead2-connect");
this.i18nMap[F]=LI.i18n.get("typeahead2-message");
this.i18nMap[M]=LI.i18n.get("typeahead2-send-inmail");
this.i18nMap[E]=LI.i18n.get("typeahead2-post");
this.i18nMap[h]=LI.i18n.get("typeahead2-follow");
this.i18nMap[o]=LI.i18n.get("typeahead2-view");
this.i18nMap[H]=LI.i18n.get("typeahead2-edit-profile");
this.i18nMap[B]=LI.i18n.get("typeahead2-search-input-title-no-results");
this.i18nMap[R]=LI.i18n.get("typeahead2-search-input-title-singular");
this.i18nMap[j]=LI.i18n.get("typeahead2-search-input-title-plural");
this.i18nMap[f]=LI.i18n.get("typeahead2-search-clear-history")
};
G.prototype._parseConfigs=function(){var U=this._$el.data("li-"+t),T=w(C);
this._encryptionKey=T||U;
if(!T){L(C,this._encryptionKey,null,"."+document.domain)
}};
G.prototype._parseLix=function(){var U=this._lixTests["typeaheadDebounceTime"],T=this._lixTests["taSearchHistoryLS"],V=this._lixTests["typeaheadIgnoreCategories"];
this._debounceTime=parseInt(U&&U.substring(1),10)||A;
this._searchHistoryEnabled=T;
this._ignoreCategories=V
};
G.prototype._instantiateTypeahead=function(){var V=this,T={compile:function(Y,Z){return function(ac){var ab=z.extend({},Z,ac),aa;
dust.render(Y,ab,function(ae,ad){aa=ad
});
return aa
}
}},X,W,U;
W=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace("displayName"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:"/ta/federator?orig=GLHD",rateLimitWait:this._debounceTime,replace:function(Y,aa){var Z={verticalSelector:V._searchType,query:aa,tracking:true};
V._$el.addClass("loading");
V._userInputValue=V._$mainTextBoxEl.typeahead("val");
if(V._refTarId){Z.refTarId=V._refTarId
}Y=V._addParamsToUrl(Y,Z);
return Y
},filter:function(Y){V._$el.removeClass("loading");
V._setTarID(Y);
return V._decorateTypeaheadResponse(Y)
},ajax:{complete:_.bind(this._fuseLimit,this)}},limit:999});
X=new LI.AccessibleTwitterTypeahead(this._$mainTextBoxEl,{dataset:g,bloodhoundEngine:W,i18nStrings:{zeroResults:this.i18nMap[B],singleResult:this.i18nMap[R],multipleResults:this.i18nMap[j]},labelId:"main-search-box-label"});
W.initialize();
U=[{highlight:false,hint:false,minLength:0},{name:g,displayKey:"displayName",source:W.ttAdapter(),templates:{suggestion:T.compile("tl/shared/typeahead/complexTypeahead")}}];
if(this._searchHistoryEnabled){this._attachSearchHistorySource(U,T)
}this._$mainTextBoxEl.typeahead.apply(this._$mainTextBoxEl,U).on("typeahead:selected",function(Z,aa,ab){var Y;
if(V._searchHistoryEnabled){if(ab===g&&aa.type!=="category"){Y=_.pick(aa,"sourceID","type","displayName","url","imageUrl","headLine","id");
if(!Y.displayName){Y.displayName=z("<span>"+Y.headLine+"</span>").text()
}if(Y.sourceID===v||Y.sourceID===p){Y.sourceID=J;
Y.entityType="queryHistoryName"
}else{Y.entityType="entityHistoryName"
}if(aa.sourceID!==p){Y.headLine=aa.displayName
}V.addItemToHistory(Y)
}}if(!V._lixTests.actionsEnabled){V._$mainTextBoxEl.val(aa.rawName);
document.location.href=aa.url
}}).on("typeahead:autocompleted",function(Y,Z){V._trackAutoComplete(Z)
}).on("typeahead:cursorchanged",function(){V._$mainTextBoxEl.typeahead("val",V._userInputValue)
}).on("typeahead:opened",function(){P.init(V._$mainTextBoxEl.attr("id"),[g,b]);
P.bindKeyEvents();
P.bindMouseEvents()
}).on("typeahead:closed",function(){P.unbindEvents()
});
this._$wrapper=z(m);
this._resetWrapperAndInputDirection();
this._configureTypeaheadPresentation()
};
G.prototype._attachSearchHistorySource=function(V,T){var U=this,W=function(Z,X){var Y=[];
if(!Z){Y=U._attachSearchHistoryTracking(U._searchHistoryFromStorage)
}X(Y)
};
this._setSafeLocalStorage();
this._getCurrentHistory();
V.splice(1,0,{name:b,source:W,templates:{suggestion:T.compile("tl/shared/typeahead/complexTypeahead"),footer:T.compile("tl/shared/typeahead/searchHistoryFooter",{i18n:{clearLabel:this.i18nMap[f]}})}})
};
G.prototype.addItemToHistory=function(U){var T;
if(U.sourceID===J){U.id=U.sourceID+"_"+U.displayName
}else{U.id=U.sourceID+"_"+U.id
}T=_.find(this._searchHistoryFromStorage,function(V){return V.id===U.id
});
if(T){this._searchHistoryFromStorage.splice(this._searchHistoryFromStorage.indexOf(T),1);
T.url=U.url;
this._searchHistoryFromStorage.unshift(T)
}else{U.headLine=U.headLine||U.displayName;
this._searchHistoryFromStorage.unshift(U)
}this._safeLocalStorage.setItem(b,this._searchHistoryFromStorage)
};
G.prototype._setSafeLocalStorage=function(){var U=this._encryptionKey,T=1;
this._safeLocalStorage={setItem:function(W,Y){var X,V;
try{X=sjcl.encrypt(U,JSON.stringify(Y));
V=JSON.stringify({version:T,data:X});
window.localStorage.setItem(W,V)
}catch(Z){}},getItem:function(W){var X,V;
try{V=JSON.parse(localStorage.getItem(W));
if(V&&V.version===T){X=JSON.parse(sjcl.decrypt(U,V.data))
}return X
}catch(Y){return null
}}}
};
G.prototype._getCurrentHistory=function(){this._searchHistoryFromStorage=this._safeLocalStorage.getItem(b);
this._searchHistoryFromStorage=this._searchHistoryFromStorage?this._searchHistoryFromStorage.slice(0,this._historyLimit):this._searchHistoryFromStorage;
if(!this._searchHistoryFromStorage){this._clearHistory()
}};
G.prototype._clearHistory=function(){this._searchHistoryFromStorage=[];
this._safeLocalStorage.setItem(b,this._searchHistoryFromStorage)
};
G.prototype._attachSearchHistoryTracking=function(W){var U=W||[],V,X,T;
for(V=0,X=U.length;
V<X;
V++){T=U[V];
T.itemIndex=V;
T.url=this._constructItemUrl(T.url,T)
}return U
};
G.prototype.reinstantiateTypeahead=function(){this._$mainTextBoxEl.typeahead("destroy");
this._instantiateTypeahead()
};
G.prototype._resetWrapperDirection=function(){this._$wrapper.css(s,S)
};
G.prototype._resetWrapperAndInputDirection=function(){this._resetWrapperDirection();
if(LI&&LI.BidiInput){this._$mainTextBoxEl.trigger(LI.BidiInput.EVENT_RESET)
}};
G.prototype._configureTypeaheadPresentation=function(){var T="clipped"+(this._lixTests.actionsEnabled?" typeahead-actions":" transparent")+(this._lixTests.taSuggestionRecolor!=="control"?" colorful-suggestions":"")+(this._lixTests.taSuggestionRecolor==="blue"?" blue-variant":"")+(this._lixTests.taGlyphIcons?" glyph-icons":"");
this._$el.find(e).addClass(T);
if(this._searchHistoryEnabled){this._$mainTextBoxEl.on("focus input change",function(){var V=z(this).val(),U=(V==="");
z(".tt-dataset-"+b).toggle(U);
z(".tt-dataset-"+g).toggle(!U);
if(U){z(this).data().ttTypeahead.input.trigger("queryChanged","")
}})
}};
G.prototype._fuseLimit=function(){if(this._requestCount>=c&&!this._fuseLimitReached){this._fuseLimitReached=true;
this._debounceTime=A;
this.reinstantiateTypeahead()
}else{this._requestCount++
}},G.prototype._setTarID=function(X){var Z=X.meta||{},U=this._$trkInput.val(),V=U?U.split(","):[],Y,W,T;
if(!this._refTarId&&Z){this._refTarId=Z[D]
}if(Z[D]){Y="tarId:"+Z[D];
T=V.some(function(ab,aa,ac){W=ab.match(/tarId:[0-9]+/g);
if(W&&W.length){ac[aa]=Y;
return true
}});
if(!T){V.push(Y)
}this._$trkInput.val(V.join(","))
}},G.prototype._decorateTypeaheadResponse=function(Y){var V=Y.resultList||[],ad=Y.meta||{},ac="",ab=0,aa=0,T=0,X,W,U,Z;
Q=ad;
W=V;
U=W.length;
for(X=0,U=V.length;
X<U;
X++){Z=W[X];
Z.type="item";
Z._index=X;
if(Z.sourceID!==ac){Z.categoryName=this.i18nMap[Z.sourceID];
aa=0;
ab++
}ac=Z.sourceID;
aa++;
T++;
Z.categoryIndex=ab;
Z.itemIndex=T;
Z.itemInCategoryIndex=aa;
if(Z.misc&&Z.misc.actionType){Z.misc.actionDisplayName=this.i18nMap[Z.misc.actionType]
}Z.rawName=Z.rawName||LI.htmlUnencode(Z.displayName);
if(this._ignoreCategories){delete Z.categoryName;
delete Z.categoryIndex;
delete Z.itemInCategoryIndex
}if(Z.url===""){Z.url=this._addParamsToUrl(this._$el.attr("action"),{keywords:Z.rawName})
}if(Z.sourceID===p&&Z.misc&&Z.misc.verticalType){Z.suggestionType=Z.misc.verticalType.toLowerCase()
}Z.url=this._constructItemUrl(Z.url,Z,ad);
if(Z.misc&&Z.misc.actionUrl){Z.misc.actionUrl=this._constructActionUrl(Z.misc.actionUrl,Z,ad)
}if(!this._lixTests.actionsEnabled&&Z.misc){delete Z.misc.actionType;
delete Z.misc.actionUrl
}}return W
};
G.prototype._getBaseTrackingParams=function(U,W){var T="tyah",V=[],X={};
if(U.sourceID){V.push("clickedVertical:"+U.sourceID)
}if(U.entityType){V.push("entityType:"+U.entityType)
}if(typeof U.categoryIndex!=="undefined"&&typeof U.itemInCategoryIndex!=="undefined"&&typeof U.itemIndex!=="undefined"){V.push("idx:"+U.categoryIndex+"-"+U.itemInCategoryIndex+"-"+U.itemIndex)
}else{if(typeof U.itemIndex!=="undefined"){V.push("idx:"+U.itemIndex)
}}if(W&&W[D]){V.push(D+":"+W[D])
}if(this._userInputValue){V.push("tas:"+this._userInputValue)
}X.trk=T;
X.trkInfo=V.join(",");
return X
};
G.prototype._constructItemUrl=function(V,T,W){var U=V,X=this._getBaseTrackingParams(T,W);
return this._addParamsToUrl(U,X)
};
G.prototype._constructActionUrl=function(W,T,X){var U=W,V="member_desktop_search_search-bar",Y=this._getBaseTrackingParams(T,X);
if(T.misc){Y.trk+="_"+T.sourceID+"_action_"+T.misc.actionType;
if(T.misc.actionType===O){Y.connectionParam=V
}}return this._addParamsToUrl(U,Y)
};
G.prototype._beforeSubmit=function(){var T={sourceID:J,entityType:"queryHistoryName",url:this._$el.attr("action")+"?keywords="+this._userInputValue,displayName:LI.htmlEncode(this._userInputValue),headLine:LI.htmlEncode(this._userInputValue),type:"item"};
if(T.displayName){this.addItemToHistory(T)
}};
G.prototype._addParamsToUrl=function(ad,ab){var V,T,Y,ac={},W,U=[];
if(!ab){return ad
}V=ad.split("?");
T=V[0]+"?";
Y=V[1]?(V[1].split("&")||""):"";
for(var aa=0;
aa<Y.length;
aa++){var Z=Y[aa].split("=");
ac[Z[0]]=decodeURIComponent(Z[1])
}var W=z.extend({},ac,ab);
for(var X in W){U.push({name:X,value:W[X]})
}T+=z.param(U);
T=T.replace(/\+/g,"%20");
return T
};
G.prototype._trackAutoComplete=function(T){l.trackUserAction("search-assist-accept",{input:this._userInputValue,suggestion:T.displayName,guid:this._guid,ts:(new Date()).getTime(),prefixLength:this._userInputValue.length})
};
G.prototype._toggleClearButton=function(){var T=this;
setTimeout(function(){if(T._$mainTextBoxEl.val()){T._$clearButton.addClass("show")
}else{T._$clearButton.removeClass("show")
}},50)
};
G.prototype._clearSearchBox=function(){this._$mainTextBoxEl.typeahead("val","");
this._resetWrapperAndInputDirection();
this._$clearButton.removeClass("show")
};
G.prototype._validateData=function(Y,X){var U="",V=[],Z,W,T;
for(W=0,T=X.length;
W<T;
W++){Z=X[W];
if(!Y.hasOwnProperty(Z)){V.push(Z)
}}if(V.length){U+="The keys {"+V.join(",")+"} are missing in the vertical dataset."
}return U
};
G.prototype.onTextInputChanged=function(T){this._userInputValue=T
};
G.prototype.onNewVerticalData=function(U){var T=this._validateData(U,k);
if(!T){this._searchType=U["key"]
}else{throw new Error(T)
}};
return new G()
});define("UniversalSearch",["jquery","UniversalTypeahead","UniversalSearchForm","UniversalSearchGhostLabel","UniversalSearchTracking"],function(e,f,d,h,a){var b={mainSearchBoxId:"main-search-box",dropdownName:"universal-search-selector",itemSelectEvent:"itemSelectEvent",updateKeywordsEvent:"universalKeywordsUpdated",updateSearchHistoryWithItem:"updateSearchHistoryWithItem",defaultSelected:"all",verticalSettings:{all:{key:"all",formMethod:"get",advancedLinkVisible:true,trkCode:"vsrp_all_vertical_selector_item"},people:{key:"people",formMethod:"get",advancedLinkVisible:true,trkCode:"vsrp_people_vertical_selector_item"},jobs:{key:"jobs",formMethod:"get",advancedLinkVisible:true,trkCode:"vsrp_jobs_vertical_selector_item"},companies:{key:"companies",formMethod:"get",advancedLinkVisible:false,trkCode:"vsrp_companies_vertical_selector_item"},groups:{key:"groups",formMethod:"get",advancedLinkVisible:false,trkCode:"vsrp_groups_vertical_selector_item"},inbox:{key:"inbox",formMethod:"post",advancedLinkVisible:false,trkCode:"vsrp_inbox_vertical_selector_item"},content:{key:"content",formMethod:"get",advancedLinkVisible:false,trkCode:"vsrp_content_vertical_selector_item"},edu:{key:"edu",formMethod:"get",advancedLinkVisible:false,trkCode:"vsrp_edu_vertical_selector_item"}}},g,c=function(){};
c.prototype.init=function(j,i){var l=this,k=new e.Deferred();
this._vertical="";
this._modules=[];
this._elId=j;
this._config=i;
this._setup();
e(document).ready(function(){l._cacheDOMElements();
l._setLixTests();
if(l._areTypeaheadDepsLoaded()){l._afterLoad()
}else{e(window).load(function(){k.resolve()
});
l._$input.one("focus",function(){k.resolve()
})
}});
k.then(function(){if(!l._areTypeaheadDepsLoaded()&&LI.TwitterTADependencies){e.ajax({url:LI.TwitterTADependencies.scripts[0],dataType:"script",cache:true,success:function(){l._afterLoad()
}})
}else{if(l._areTypeaheadDepsLoaded()){l._afterLoad()
}}})
};
c.prototype._areTypeaheadDepsLoaded=function(){return !!(e.fn.typeahead&&Bloodhound)
};
c.prototype._setup=function(){this._config=e.extend(true,{},b,this._config);
this._attachEventListeners()
};
c.prototype._cacheDOMElements=function(){var i=e("#"+this._elId);
this._$input=i.find("#"+this._config.mainSearchBoxId);
this._$form=i.is("form")?i:i.find("form")
};
c.prototype._afterLoad=function(){var j,i;
if(this._config.lixTests&&this._config.lixTests.noFederated){this._config.defaultSelected="people"
}this._initModules();
j=this._$form.find(":selected");
i=j.val()||this._config.defaultSelected;
this.setCurrentVertical(i)
};
c.prototype._setLixTests=function(){try{this._config.lixTests=e.parseJSON(this._$form.attr("data-li-lix-tests"))
}catch(i){this._config.lixTests=null
}};
c.prototype._initModules=function(){if(this._config.lixTests){g=this._$form.attr("id");
f.init(g,this._config.lixTests);
this._modules.push(f);
d.init(g);
this._modules.push(d);
h.init(this._config.mainSearchBoxId);
this._modules.push(h);
a.init(this._config.mainSearchBoxId);
this._modules.push(a)
}};
c.prototype._attachEventListeners=function(){LI.Events.on(this._config.itemSelectEvent,this.handleVerticalChangeEvent,this);
LI.Events.on(this._config.updateKeywordsEvent,this.setInputText,this);
LI.Events.on(this._config.updateSearchHistoryWithItem,this.addItemToSearchHistory,this)
};
c.prototype._broadcast=function(o){var l=Array.prototype.slice.call(arguments,1),k="on",o=k+o,n,m,j;
for(m=0,j=this._modules.length;
m<j;
m++){n=this._modules[m];
if(n[o]&&typeof n[o]==="function"){n[o].apply(n,l)
}}};
c.prototype._setVerticalDataAttributes=function(j){var k=this._config.verticalSettings[j],i;
if(typeof k==="object"&&!k.dataAttributesPopulated){i=this._$form.find('option[value="'+j+'"]');
k.formAction=i.attr("data-li-search-action");
k.advancedLinkHref=i.attr("data-li-advanced-link");
k.ghostText=i.attr("data-li-ghost-text");
k.dataAttributesPopulated=true;
this._config.verticalSettings[j]=k
}};
c.prototype.addItemToSearchHistory=function(i){f.addItemToHistory(i);
f.reinstantiateTypeahead()
};
c.prototype.setInputText=function(i){this._$input.val(i);
this._broadcast("TextInputChanged",i)
};
c.prototype.getCurrentVertical=function(){return this._vertical
};
c.prototype.setCurrentVertical=function(j){var i;
this._vertical=j;
this._setVerticalDataAttributes(this._vertical);
i=this._config.verticalSettings[this._vertical];
if(i){this._broadcast("NewVerticalData",i)
}else{throw new Error("data for the vertical {"+this._vertical+"} does not exist")
}};
c.prototype.handleVerticalChangeEvent=function(i){var j=i.name||"",k=i.option||"",l=k.value||"";
if(j===this._config.dropdownName&&this._$form){if(this._vertical!==l){this.setCurrentVertical(l)
}}};
return new c()
});
require(["UniversalSearch"],function(a){a.init("global-search",{})
});"use strict";function q(a){throw a;}var r=void 0,s=!1;var sjcl={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(a){this.toString=function(){return"CORRUPT: "+this.message};this.message=a},invalid:function(a){this.toString=function(){return"INVALID: "+this.message};this.message=a},bug:function(a){this.toString=function(){return"BUG: "+this.message};this.message=a},notReady:function(a){this.toString=function(){return"NOT READY: "+this.message};this.message=a}}};
sjcl.cipher.aes=function(a){this.j[0][0][0]||this.B();var b,c,d,e,g=this.j[0][4],f=this.j[1];b=a.length;var h=1;4!==b&&(6!==b&&8!==b)&&q(new sjcl.exception.invalid("invalid aes key size"));this.b=[d=a.slice(0),e=[]];for(a=b;a<4*b+28;a++){c=d[a-1];if(0===a%b||8===b&&4===a%b)c=g[c>>>24]<<24^g[c>>16&255]<<16^g[c>>8&255]<<8^g[c&255],0===a%b&&(c=c<<8^c>>>24^h<<24,h=h<<1^283*(h>>7));d[a]=d[a-b]^c}for(b=0;a;b++,a--)c=d[b&3?a:a-4],e[b]=4>=a||4>b?c:f[0][g[c>>>24]]^f[1][g[c>>16&255]]^f[2][g[c>>8&255]]^f[3][g[c&
255]]};
sjcl.cipher.aes.prototype={encrypt:function(a){return w(this,a,0)},decrypt:function(a){return w(this,a,1)},j:[[[],[],[],[],[]],[[],[],[],[],[]]],B:function(){var a=this.j[0],b=this.j[1],c=a[4],d=b[4],e,g,f,h=[],k=[],l,p,m,n;for(e=0;0x100>e;e++)k[(h[e]=e<<1^283*(e>>7))^e]=e;for(g=f=0;!c[g];g^=l||1,f=k[f]||1){m=f^f<<1^f<<2^f<<3^f<<4;m=m>>8^m&255^99;c[g]=m;d[m]=g;p=h[e=h[l=h[g]]];n=0x1010101*p^0x10001*e^0x101*l^0x1010100*g;p=0x101*h[m]^0x1010100*m;for(e=0;4>e;e++)a[e][g]=p=p<<24^p>>>8,b[e][m]=n=n<<24^n>>>8}for(e=
0;5>e;e++)a[e]=a[e].slice(0),b[e]=b[e].slice(0)}};
function w(a,b,c){4!==b.length&&q(new sjcl.exception.invalid("invalid aes block size"));var d=a.b[c],e=b[0]^d[0],g=b[c?3:1]^d[1],f=b[2]^d[2];b=b[c?1:3]^d[3];var h,k,l,p=d.length/4-2,m,n=4,v=[0,0,0,0];h=a.j[c];a=h[0];var t=h[1],u=h[2],y=h[3],z=h[4];for(m=0;m<p;m++)h=a[e>>>24]^t[g>>16&255]^u[f>>8&255]^y[b&255]^d[n],k=a[g>>>24]^t[f>>16&255]^u[b>>8&255]^y[e&255]^d[n+1],l=a[f>>>24]^t[b>>16&255]^u[e>>8&255]^y[g&255]^d[n+2],b=a[b>>>24]^t[e>>16&255]^u[g>>8&255]^y[f&255]^d[n+3],n+=4,e=h,g=k,f=l;for(m=0;4>
m;m++)v[c?3&-m:m]=z[e>>>24]<<24^z[g>>16&255]<<16^z[f>>8&255]<<8^z[b&255]^d[n++],h=e,e=g,g=f,f=b,b=h;return v}
sjcl.bitArray={bitSlice:function(a,b,c){a=sjcl.bitArray.O(a.slice(b/32),32-(b&31)).slice(1);return c===r?a:sjcl.bitArray.clamp(a,c-b)},extract:function(a,b,c){var d=Math.floor(-b-c&31);return((b+c-1^b)&-32?a[b/32|0]<<32-d^a[b/32+1|0]>>>d:a[b/32|0]>>>d)&(1<<c)-1},concat:function(a,b){if(0===a.length||0===b.length)return a.concat(b);var c=a[a.length-1],d=sjcl.bitArray.getPartial(c);return 32===d?a.concat(b):sjcl.bitArray.O(b,d,c|0,a.slice(0,a.length-1))},bitLength:function(a){var b=a.length;return 0===
b?0:32*(b-1)+sjcl.bitArray.getPartial(a[b-1])},clamp:function(a,b){if(32*a.length<b)return a;a=a.slice(0,Math.ceil(b/32));var c=a.length;b&=31;0<c&&b&&(a[c-1]=sjcl.bitArray.partial(b,a[c-1]&2147483648>>b-1,1));return a},partial:function(a,b,c){return 32===a?b:(c?b|0:b<<32-a)+0x10000000000*a},getPartial:function(a){return Math.round(a/0x10000000000)||32},equal:function(a,b){if(sjcl.bitArray.bitLength(a)!==sjcl.bitArray.bitLength(b))return s;var c=0,d;for(d=0;d<a.length;d++)c|=a[d]^b[d];return 0===
c},O:function(a,b,c,d){var e;e=0;for(d===r&&(d=[]);32<=b;b-=32)d.push(c),c=0;if(0===b)return d.concat(a);for(e=0;e<a.length;e++)d.push(c|a[e]>>>b),c=a[e]<<32-b;e=a.length?a[a.length-1]:0;a=sjcl.bitArray.getPartial(e);d.push(sjcl.bitArray.partial(b+a&31,32<b+a?c:d.pop(),1));return d},F:function(a,b){return[a[0]^b[0],a[1]^b[1],a[2]^b[2],a[3]^b[3]]},byteswapM:function(a){var b,c;for(b=0;b<a.length;++b)c=a[b],a[b]=c>>>24|c>>>8&0xff00|(c&0xff00)<<8|c<<24;return a}};
sjcl.codec.utf8String={fromBits:function(a){var b="",c=sjcl.bitArray.bitLength(a),d,e;for(d=0;d<c/8;d++)0===(d&3)&&(e=a[d/4]),b+=String.fromCharCode(e>>>24),e<<=8;return decodeURIComponent(escape(b))},toBits:function(a){a=unescape(encodeURIComponent(a));var b=[],c,d=0;for(c=0;c<a.length;c++)d=d<<8|a.charCodeAt(c),3===(c&3)&&(b.push(d),d=0);c&3&&b.push(sjcl.bitArray.partial(8*(c&3),d));return b}};
sjcl.codec.base64={H:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fromBits:function(a,b,c){var d="",e=0,g=sjcl.codec.base64.H,f=0,h=sjcl.bitArray.bitLength(a);c&&(g=g.substr(0,62)+"-_");for(c=0;6*d.length<h;)d+=g.charAt((f^a[c]>>>e)>>>26),6>e?(f=a[c]<<6-e,e+=26,c++):(f<<=6,e-=6);for(;d.length&3&&!b;)d+="=";return d},toBits:function(a,b){a=a.replace(/\s|=/g,"");var c=[],d,e=0,g=sjcl.codec.base64.H,f=0,h;b&&(g=g.substr(0,62)+"-_");for(d=0;d<a.length;d++)h=g.indexOf(a.charAt(d)),
0>h&&q(new sjcl.exception.invalid("this isn't base64!")),26<e?(e-=26,c.push(f^h>>>e),f=h<<32-e):(e+=6,f^=h<<32-e);e&56&&c.push(sjcl.bitArray.partial(e&56,f,1));return c}};sjcl.codec.base64url={fromBits:function(a){return sjcl.codec.base64.fromBits(a,1,1)},toBits:function(a){return sjcl.codec.base64.toBits(a,1)}};sjcl.hash.sha256=function(a){this.b[0]||this.B();a?(this.o=a.o.slice(0),this.m=a.m.slice(0),this.g=a.g):this.reset()};sjcl.hash.sha256.hash=function(a){return(new sjcl.hash.sha256).update(a).finalize()};
sjcl.hash.sha256.prototype={blockSize:512,reset:function(){this.o=this.M.slice(0);this.m=[];this.g=0;return this},update:function(a){"string"===typeof a&&(a=sjcl.codec.utf8String.toBits(a));var b,c=this.m=sjcl.bitArray.concat(this.m,a);b=this.g;a=this.g=b+sjcl.bitArray.bitLength(a);for(b=512+b&-512;b<=a;b+=512)x(this,c.splice(0,16));return this},finalize:function(){var a,b=this.m,c=this.o,b=sjcl.bitArray.concat(b,[sjcl.bitArray.partial(1,1)]);for(a=b.length+2;a&15;a++)b.push(0);b.push(Math.floor(this.g/
4294967296));for(b.push(this.g|0);b.length;)x(this,b.splice(0,16));this.reset();return c},M:[],b:[],B:function(){function a(a){return 0x100000000*(a-Math.floor(a))|0}var b=0,c=2,d;a:for(;64>b;c++){for(d=2;d*d<=c;d++)if(0===c%d)continue a;8>b&&(this.M[b]=a(Math.pow(c,0.5)));this.b[b]=a(Math.pow(c,1/3));b++}}};
function x(a,b){var c,d,e,g=b.slice(0),f=a.o,h=a.b,k=f[0],l=f[1],p=f[2],m=f[3],n=f[4],v=f[5],t=f[6],u=f[7];for(c=0;64>c;c++)16>c?d=g[c]:(d=g[c+1&15],e=g[c+14&15],d=g[c&15]=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+g[c&15]+g[c+9&15]|0),d=d+u+(n>>>6^n>>>11^n>>>25^n<<26^n<<21^n<<7)+(t^n&(v^t))+h[c],u=t,t=v,v=n,n=m+d|0,m=p,p=l,l=k,k=d+(l&p^m&(l^p))+(l>>>2^l>>>13^l>>>22^l<<30^l<<19^l<<10)|0;f[0]=f[0]+k|0;f[1]=f[1]+l|0;f[2]=f[2]+p|0;f[3]=f[3]+m|0;f[4]=f[4]+n|0;f[5]=f[5]+v|0;f[6]=
f[6]+t|0;f[7]=f[7]+u|0}
sjcl.mode.ccm={name:"ccm",p:[],listenProgress:function(a){sjcl.mode.ccm.p.push(a)},unListenProgress:function(a){a=sjcl.mode.ccm.p.indexOf(a);-1<a&&sjcl.mode.ccm.p.splice(a,1)},U:function(a){var b=sjcl.mode.ccm.p.slice(),c;for(c=0;c<b.length;c+=1)b[c](a)},encrypt:function(a,b,c,d,e){var g,f=b.slice(0),h=sjcl.bitArray,k=h.bitLength(c)/8,l=h.bitLength(f)/8;e=e||64;d=d||[];7>k&&q(new sjcl.exception.invalid("ccm: iv must be at least 7 bytes"));for(g=2;4>g&&l>>>8*g;g++);g<15-k&&(g=15-k);c=h.clamp(c,8*(15-
g));b=sjcl.mode.ccm.J(a,b,c,d,e,g);f=sjcl.mode.ccm.K(a,f,c,b,e,g);return h.concat(f.data,f.tag)},decrypt:function(a,b,c,d,e){e=e||64;d=d||[];var g=sjcl.bitArray,f=g.bitLength(c)/8,h=g.bitLength(b),k=g.clamp(b,h-e),l=g.bitSlice(b,h-e),h=(h-e)/8;7>f&&q(new sjcl.exception.invalid("ccm: iv must be at least 7 bytes"));for(b=2;4>b&&h>>>8*b;b++);b<15-f&&(b=15-f);c=g.clamp(c,8*(15-b));k=sjcl.mode.ccm.K(a,k,c,l,e,b);a=sjcl.mode.ccm.J(a,k.data,c,d,e,b);g.equal(k.tag,a)||q(new sjcl.exception.corrupt("ccm: tag doesn't match"));
return k.data},aa:function(a,b,c,d,e,g){var f=[],h=sjcl.bitArray,k=h.F;d=[h.partial(8,(b.length?64:0)|d-2<<2|g-1)];d=h.concat(d,c);d[3]|=e;d=a.encrypt(d);if(b.length){c=h.bitLength(b)/8;65279>=c?f=[h.partial(16,c)]:0xffffffff>=c&&(f=h.concat([h.partial(16,65534)],[c]));f=h.concat(f,b);for(b=0;b<f.length;b+=4)d=a.encrypt(k(d,f.slice(b,b+4).concat([0,0,0])))}return d},J:function(a,b,c,d,e,g){var f=sjcl.bitArray,h=f.F;e/=8;(e%2||4>e||16<e)&&q(new sjcl.exception.invalid("ccm: invalid tag length"));(0xffffffff<
d.length||0xffffffff<b.length)&&q(new sjcl.exception.bug("ccm: can't deal with 4GiB or more data"));c=sjcl.mode.ccm.aa(a,d,c,e,f.bitLength(b)/8,g);for(d=0;d<b.length;d+=4)c=a.encrypt(h(c,b.slice(d,d+4).concat([0,0,0])));return f.clamp(c,8*e)},K:function(a,b,c,d,e,g){var f,h=sjcl.bitArray;f=h.F;var k=b.length,l=h.bitLength(b),p=k/50,m=p;c=h.concat([h.partial(8,g-1)],c).concat([0,0,0]).slice(0,4);d=h.bitSlice(f(d,a.encrypt(c)),0,e);if(!k)return{tag:d,data:[]};for(f=0;f<k;f+=4)f>p&&(sjcl.mode.ccm.U(f/
k),p+=m),c[3]++,e=a.encrypt(c),b[f]^=e[0],b[f+1]^=e[1],b[f+2]^=e[2],b[f+3]^=e[3];return{tag:d,data:h.clamp(b,l)}}};sjcl.misc.hmac=function(a,b){this.L=b=b||sjcl.hash.sha256;var c=[[],[]],d,e=b.prototype.blockSize/32;this.l=[new b,new b];a.length>e&&(a=b.hash(a));for(d=0;d<e;d++)c[0][d]=a[d]^909522486,c[1][d]=a[d]^1549556828;this.l[0].update(c[0]);this.l[1].update(c[1]);this.D=new b(this.l[0])};
sjcl.misc.hmac.prototype.encrypt=sjcl.misc.hmac.prototype.mac=function(a){this.P&&q(new sjcl.exception.invalid("encrypt on already updated hmac called!"));this.update(a);return this.digest(a)};sjcl.misc.hmac.prototype.reset=function(){this.D=new this.L(this.l[0]);this.P=s};sjcl.misc.hmac.prototype.update=function(a){this.P=!0;this.D.update(a)};sjcl.misc.hmac.prototype.digest=function(){var a=this.D.finalize(),a=(new this.L(this.l[1])).update(a).finalize();this.reset();return a};
sjcl.misc.pbkdf2=function(a,b,c,d,e){c=c||1E3;(0>d||0>c)&&q(sjcl.exception.invalid("invalid params to pbkdf2"));"string"===typeof a&&(a=sjcl.codec.utf8String.toBits(a));"string"===typeof b&&(b=sjcl.codec.utf8String.toBits(b));e=e||sjcl.misc.hmac;a=new e(a);var g,f,h,k,l=[],p=sjcl.bitArray;for(k=1;32*l.length<(d||1);k++){e=g=a.encrypt(p.concat(b,[k]));for(f=1;f<c;f++){g=a.encrypt(g);for(h=0;h<g.length;h++)e[h]^=g[h]}l=l.concat(e)}d&&(l=p.clamp(l,d));return l};
sjcl.prng=function(a){this.c=[new sjcl.hash.sha256];this.h=[0];this.C=0;this.q={};this.A=0;this.I={};this.N=this.d=this.i=this.W=0;this.b=[0,0,0,0,0,0,0,0];this.f=[0,0,0,0];this.u=r;this.w=a;this.n=s;this.t={progress:{},seeded:{}};this.k=this.V=0;this.r=1;this.s=2;this.R=0x10000;this.G=[0,48,64,96,128,192,0x100,384,512,768,1024];this.S=3E4;this.Q=80};
sjcl.prng.prototype={randomWords:function(a,b){var c=[],d;d=this.isReady(b);var e;d===this.k&&q(new sjcl.exception.notReady("generator isn't seeded"));if(d&this.s){d=!(d&this.r);e=[];var g=0,f;this.N=e[0]=(new Date).valueOf()+this.S;for(f=0;16>f;f++)e.push(0x100000000*Math.random()|0);for(f=0;f<this.c.length&&!(e=e.concat(this.c[f].finalize()),g+=this.h[f],this.h[f]=0,!d&&this.C&1<<f);f++);this.C>=1<<this.c.length&&(this.c.push(new sjcl.hash.sha256),this.h.push(0));this.d-=g;g>this.i&&(this.i=g);this.C++;
this.b=sjcl.hash.sha256.hash(this.b.concat(e));this.u=new sjcl.cipher.aes(this.b);for(d=0;4>d&&!(this.f[d]=this.f[d]+1|0,this.f[d]);d++);}for(d=0;d<a;d+=4)0===(d+1)%this.R&&A(this),e=B(this),c.push(e[0],e[1],e[2],e[3]);A(this);return c.slice(0,a)},setDefaultParanoia:function(a,b){0===a&&"Setting paranoia=0 will ruin your security; use it only for testing"!==b&&q("Setting paranoia=0 will ruin your security; use it only for testing");this.w=a},addEntropy:function(a,b,c){c=c||"user";var d,e,g=(new Date).valueOf(),
f=this.q[c],h=this.isReady(),k=0;d=this.I[c];d===r&&(d=this.I[c]=this.W++);f===r&&(f=this.q[c]=0);this.q[c]=(this.q[c]+1)%this.c.length;switch(typeof a){case "number":b===r&&(b=1);this.c[f].update([d,this.A++,1,b,g,1,a|0]);break;case "object":c=Object.prototype.toString.call(a);if("[object Uint32Array]"===c){e=[];for(c=0;c<a.length;c++)e.push(a[c]);a=e}else{"[object Array]"!==c&&(k=1);for(c=0;c<a.length&&!k;c++)"number"!==typeof a[c]&&(k=1)}if(!k){if(b===r)for(c=b=0;c<a.length;c++)for(e=a[c];0<e;)b++,
e>>>=1;this.c[f].update([d,this.A++,2,b,g,a.length].concat(a))}break;case "string":b===r&&(b=a.length);this.c[f].update([d,this.A++,3,b,g,a.length]);this.c[f].update(a);break;default:k=1}k&&q(new sjcl.exception.bug("random: addEntropy only supports number, array of numbers or string"));this.h[f]+=b;this.d+=b;h===this.k&&(this.isReady()!==this.k&&C("seeded",Math.max(this.i,this.d)),C("progress",this.getProgress()))},isReady:function(a){a=this.G[a!==r?a:this.w];return this.i&&this.i>=a?this.h[0]>this.Q&&
(new Date).valueOf()>this.N?this.s|this.r:this.r:this.d>=a?this.s|this.k:this.k},getProgress:function(a){a=this.G[a?a:this.w];return this.i>=a?1:this.d>a?1:this.d/a},startCollectors:function(){this.n||(this.a={loadTimeCollector:D(this,this.$),mouseCollector:D(this,this.ba),keyboardCollector:D(this,this.Z),accelerometerCollector:D(this,this.T),touchCollector:D(this,this.da)},window.addEventListener?(window.addEventListener("load",this.a.loadTimeCollector,s),window.addEventListener("mousemove",this.a.mouseCollector,
s),window.addEventListener("keypress",this.a.keyboardCollector,s),window.addEventListener("devicemotion",this.a.accelerometerCollector,s),window.addEventListener("touchmove",this.a.touchCollector,s)):document.attachEvent?(document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector)):q(new sjcl.exception.bug("can't attach event")),this.n=!0)},stopCollectors:function(){this.n&&(window.removeEventListener?
(window.removeEventListener("load",this.a.loadTimeCollector,s),window.removeEventListener("mousemove",this.a.mouseCollector,s),window.removeEventListener("keypress",this.a.keyboardCollector,s),window.removeEventListener("devicemotion",this.a.accelerometerCollector,s),window.removeEventListener("touchmove",this.a.touchCollector,s)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",
this.a.keyboardCollector)),this.n=s)},addEventListener:function(a,b){this.t[a][this.V++]=b},removeEventListener:function(a,b){var c,d,e=this.t[a],g=[];for(d in e)e.hasOwnProperty(d)&&e[d]===b&&g.push(d);for(c=0;c<g.length;c++)d=g[c],delete e[d]},Z:function(){E(1)},ba:function(a){var b,c;try{b=a.x||a.clientX||a.offsetX||0,c=a.y||a.clientY||a.offsetY||0}catch(d){c=b=0}0!=b&&0!=c&&sjcl.random.addEntropy([b,c],2,"mouse");E(0)},da:function(a){a=a.touches[0]||a.changedTouches[0];sjcl.random.addEntropy([a.pageX||
a.clientX,a.pageY||a.clientY],1,"touch");E(0)},$:function(){E(2)},T:function(a){a=a.accelerationIncludingGravity.x||a.accelerationIncludingGravity.y||a.accelerationIncludingGravity.z;if(window.orientation){var b=window.orientation;"number"===typeof b&&sjcl.random.addEntropy(b,1,"accelerometer")}a&&sjcl.random.addEntropy(a,2,"accelerometer");E(0)}};function C(a,b){var c,d=sjcl.random.t[a],e=[];for(c in d)d.hasOwnProperty(c)&&e.push(d[c]);for(c=0;c<e.length;c++)e[c](b)}
function E(a){"undefined"!==typeof window&&window.performance&&"function"===typeof window.performance.now?sjcl.random.addEntropy(window.performance.now(),a,"loadtime"):sjcl.random.addEntropy((new Date).valueOf(),a,"loadtime")}function A(a){a.b=B(a).concat(B(a));a.u=new sjcl.cipher.aes(a.b)}function B(a){for(var b=0;4>b&&!(a.f[b]=a.f[b]+1|0,a.f[b]);b++);return a.u.encrypt(a.f)}function D(a,b){return function(){b.apply(a,arguments)}}sjcl.random=new sjcl.prng(6);
a:try{var F,G,H,I;if(I="undefined"!==typeof module){var J;if(J=module.exports){var K;try{K=require("crypto")}catch(L){K=null}J=(G=K)&&G.randomBytes}I=J}if(I)F=G.randomBytes(128),F=new Uint32Array((new Uint8Array(F)).buffer),sjcl.random.addEntropy(F,1024,"crypto['randomBytes']");else if("undefined"!==typeof window&&"undefined"!==typeof Uint32Array){H=new Uint32Array(32);if(window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(H);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(H);
else break a;sjcl.random.addEntropy(H,1024,"crypto['getRandomValues']")}}catch(M){"undefined"!==typeof window&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(M))}
sjcl.json={defaults:{v:1,iter:1E3,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},Y:function(a,b,c,d){c=c||{};d=d||{};var e=sjcl.json,g=e.e({iv:sjcl.random.randomWords(4,0)},e.defaults),f;e.e(g,c);c=g.adata;"string"===typeof g.salt&&(g.salt=sjcl.codec.base64.toBits(g.salt));"string"===typeof g.iv&&(g.iv=sjcl.codec.base64.toBits(g.iv));(!sjcl.mode[g.mode]||!sjcl.cipher[g.cipher]||"string"===typeof a&&100>=g.iter||64!==g.ts&&96!==g.ts&&128!==g.ts||128!==g.ks&&192!==g.ks&&0x100!==g.ks||2>g.iv.length||4<
g.iv.length)&&q(new sjcl.exception.invalid("json encrypt: invalid parameters"));"string"===typeof a?(f=sjcl.misc.cachedPbkdf2(a,g),a=f.key.slice(0,g.ks/32),g.salt=f.salt):sjcl.ecc&&a instanceof sjcl.ecc.elGamal.publicKey&&(f=a.kem(),g.kemtag=f.tag,a=f.key.slice(0,g.ks/32));"string"===typeof b&&(b=sjcl.codec.utf8String.toBits(b));"string"===typeof c&&(g.adata=c=sjcl.codec.utf8String.toBits(c));f=new sjcl.cipher[g.cipher](a);e.e(d,g);d.key=a;g.ct="ccm"===g.mode&&sjcl.arrayBuffer&&sjcl.arrayBuffer.ccm&&
b instanceof ArrayBuffer?sjcl.arrayBuffer.ccm.encrypt(f,b,g.iv,c,g.ts):sjcl.mode[g.mode].encrypt(f,b,g.iv,c,g.ts);return g},encrypt:function(a,b,c,d){var e=sjcl.json,g=e.Y.apply(e,arguments);return e.encode(g)},X:function(a,b,c,d){c=c||{};d=d||{};var e=sjcl.json;b=e.e(e.e(e.e({},e.defaults),b),c,!0);var g,f;g=b.adata;"string"===typeof b.salt&&(b.salt=sjcl.codec.base64.toBits(b.salt));"string"===typeof b.iv&&(b.iv=sjcl.codec.base64.toBits(b.iv));(!sjcl.mode[b.mode]||!sjcl.cipher[b.cipher]||"string"===
typeof a&&100>=b.iter||64!==b.ts&&96!==b.ts&&128!==b.ts||128!==b.ks&&192!==b.ks&&0x100!==b.ks||!b.iv||2>b.iv.length||4<b.iv.length)&&q(new sjcl.exception.invalid("json decrypt: invalid parameters"));"string"===typeof a?(f=sjcl.misc.cachedPbkdf2(a,b),a=f.key.slice(0,b.ks/32),b.salt=f.salt):sjcl.ecc&&a instanceof sjcl.ecc.elGamal.secretKey&&(a=a.unkem(sjcl.codec.base64.toBits(b.kemtag)).slice(0,b.ks/32));"string"===typeof g&&(g=sjcl.codec.utf8String.toBits(g));f=new sjcl.cipher[b.cipher](a);g="ccm"===
b.mode&&sjcl.arrayBuffer&&sjcl.arrayBuffer.ccm&&b.ct instanceof ArrayBuffer?sjcl.arrayBuffer.ccm.decrypt(f,b.ct,b.iv,b.tag,g,b.ts):sjcl.mode[b.mode].decrypt(f,b.ct,b.iv,g,b.ts);e.e(d,b);d.key=a;return 1===c.raw?g:sjcl.codec.utf8String.fromBits(g)},decrypt:function(a,b,c,d){var e=sjcl.json;return e.X(a,e.decode(b),c,d)},encode:function(a){var b,c="{",d="";for(b in a)if(a.hasOwnProperty(b))switch(b.match(/^[a-z0-9]+$/i)||q(new sjcl.exception.invalid("json encode: invalid property name")),c+=d+'"'+b+
'":',d=",",typeof a[b]){case "number":case "boolean":c+=a[b];break;case "string":c+='"'+escape(a[b])+'"';break;case "object":c+='"'+sjcl.codec.base64.fromBits(a[b],0)+'"';break;default:q(new sjcl.exception.bug("json encode: unsupported type"))}return c+"}"},decode:function(a){a=a.replace(/\s/g,"");a.match(/^\{.*\}$/)||q(new sjcl.exception.invalid("json decode: this isn't json!"));a=a.replace(/^\{|\}$/g,"").split(/,/);var b={},c,d;for(c=0;c<a.length;c++)(d=a[c].match(/^\s*(?:(["']?)([a-z][a-z0-9]*)\1)\s*:\s*(?:(-?\d+)|"([a-z0-9+\/%*_.@=\-]*)"|(true|false))$/i))||
q(new sjcl.exception.invalid("json decode: this isn't json!")),null!=d[3]?b[d[2]]=parseInt(d[3],10):null!=d[4]?b[d[2]]=d[2].match(/^(ct|adata|salt|iv)$/)?sjcl.codec.base64.toBits(d[4]):unescape(d[4]):null!=d[5]&&(b[d[2]]="true"===d[5]);return b},e:function(a,b,c){a===r&&(a={});if(b===r)return a;for(var d in b)b.hasOwnProperty(d)&&(c&&(a[d]!==r&&a[d]!==b[d])&&q(new sjcl.exception.invalid("required parameter overridden")),a[d]=b[d]);return a},fa:function(a,b){var c={},d;for(d in a)a.hasOwnProperty(d)&&
a[d]!==b[d]&&(c[d]=a[d]);return c},ea:function(a,b){var c={},d;for(d=0;d<b.length;d++)a[b[d]]!==r&&(c[b[d]]=a[b[d]]);return c}};sjcl.encrypt=sjcl.json.encrypt;sjcl.decrypt=sjcl.json.decrypt;sjcl.misc.ca={};sjcl.misc.cachedPbkdf2=function(a,b){var c=sjcl.misc.ca,d;b=b||{};d=b.iter||1E3;c=c[a]=c[a]||{};d=c[d]=c[d]||{firstSalt:b.salt&&b.salt.length?b.salt.slice(0):sjcl.random.randomWords(2,0)};c=b.salt===r?d.firstSalt:b.salt;d[c]=d[c]||sjcl.misc.pbkdf2(a,c,b.iter);return{key:d[c].slice(0),salt:c.slice(0)}};

/*
 *  THE "NAV START" | "non-js" file
 *  ----------------------------------------------------------------------------
 *  My purpose in life:
 *  -------------------
 *  I know what you're thinking, "What in the flying F#@! is this," - yeah. I'm
 *  a bit for an odd-ball; my entire purpose in life is to "open" an annonymous
 *  function for the global-nav sandbox.
 *
 *  While I am javascript, technically I'm *not* javascript - because I'm not
 *  a valid js file.  This is why I have the funky .nocheck.js extension.  There's
 *  no way I can EVER pass JSHint.  I also am equally destructive without my
 *  navend counter-part.
 *
 *  I'm included by:              - SCDS remote-nav concat group within remote-nav fizzy embed
 *
 *  File PRE-CONDITIONS:          - SCDS changes to allow .nocheck.js files must be in place.
 *                                - must be the VERY FIRST file called in the sandbox concat group
 *
 *  File POST-CONDITIONS:
 *
 *  CAVEATS/GOTCHAS:
 */
(function (){function remote_nav_eval(code){eval.apply(window,[code])
}var remote_nav=(function(){function a(c){this.message=c;
this.name="SandboxException"
}var b=this;
b.CONFIGS={"SBX_JSCONTROL_PATTERN":/\bli-control\b/g,"SBX_JSCONTROL_TYPE":"linkedin/control","SBX_INITIALIZED_CONTROL_TYPE":"text/javascript+initialized","SBX_ENV_LABEL":"SANDBOX"};
b.data={"control_registry":[],"rawControlCode":[],"codeAlreadyEvaled":false,"EXCLUDED_CONTROLS":{"UniversalSearch":true,"Typeahead2":true,"StyledDropdown":true,"A11yMenu":true,"QuickHelp2":true,"kb.shortcuts":true}};
b.debug={"enabled":false,"setMode":function(c){var d=new RegExp("debug_mode=enabled");
if(!c){c=d.test(window.location.search)
}b.debug.enabled=c
},"sbx_log":function(){var c=b.debug;
if(c.enabled&&window.console&&window.console.log){window.console.log(arguments)
}}};
b.events={};
b.helpers={"_addSandboxControl":function(i,h,g){b.debug.sbx_log("SANDBOX | _addSandboxControl() | started ");
var e=document.getElementById(i),d=b.helpers,f=d._getJSControlSibling(e),c=d._checkSBXRegistry(i);
b.debug.sbx_log("SANDBOX | _addSandboxControl | is Controls present in the registry? | ",c);
if((e.type!==b.CONFIGS.SBX_INITIALIZED_CONTROL_TYPE)&&(!(c))&&(!b.data.EXCLUDED_CONTROLS[h])){d._addToSBXRegistry(i,h,f,g);
d._addCodeToEvalString(e);
d._changeJSControlType(e)
}else{if(b.data.EXCLUDED_CONTROLS[h]){b.debug.sbx_log("SANDBOX | _addSandboxControl  | EXCLUDED CONTROL - using LI.Controls.addControl() instead");
window.LI.Controls.addControl(i,h,g)
}else{b.debug.sbx_log("SANDBOX | _addSandboxControl | CONTROL ALREADY DEFINED... IGNORING")
}}},"_addToSBXRegistry":function(g,f,d,e){var c;
b.data.control_registry.push({"id":g,"name":f,"el":d,"config":e});
c=b.helpers._checkSBXRegistry(g);
if(!c){throw new a("the control for some reason was NOT added to the registry")
}return c
},"_cleanSandbox":function(){b.data.control_registry=[]
},"_addCodeToEvalString":function(c){if(c.nodeName.toLowerCase()!=="script"){throw new a("attempting to add non-script innerHTML to the eval string")
}else{b.debug.sbx_log("SANDBOX | _addCodeToEvalString | about to push code to array");
b.data.rawControlCode.push(c.innerHTML.replace(/LI\.Controls\.addControl/,"window.sandboxControlInit"))
}},"_checkSBXRegistry":function(f){var d,c=b.data.control_registry,e=c.length;
for(d=0;
d<e;
d++){if(c[d].id===f){return true
}}return false
},"_getJSControlScripts":function(h){var c=h.getElementsByTagName("script"),d=c.length,f=b.helpers._addCodeToEvalString,g=b.CONFIGS.SBX_JSCONTROL_TYPE,e;
for(e=0;
e<d;
e++){if(c[e].getAttribute("type")===g){f(c[e])
}}},"_getJSControlSibling":function(d){b.debug.sbx_log(d);
var e=(function(){return("previousElementSibling" in HTMLElement.prototype)?function(f){return f.previousElementSibling
}:function(f){do{f=f.previousSibling
}while(f&&f.nodeType!==1);
return f
}
}());
var c=e(d);
do{if(c.nodeName.toLowerCase()!=="script"&&!(c.className.match(b.CONFIGS.SBX_JSCONTROL_PATTERN))){return c
}c=e(c)
}while(c);
return false
},"_changeJSControlType":function(c){c.setAttribute("type",b.CONFIGS.SBX_INITIALIZED_CONTROL_TYPE);
c.className="sbx-li-control"
}};
b.sandbox={"initControl":function(){b.debug.sbx_log("SANDBOX | window.sandboxControlInit() called for the following Control script: ",arguments);
b.helpers._addSandboxControl.apply(this,arguments)
},"oldLI":window.LI,"LI":{"isSandboxed":true,"assign":function(f,h){var e=b.sandbox.LI;
for(var d=0,g=f.split("."),c=g.length;
d<c;
d++){if(!e[g[d]]){e[g[d]]=(d+1===c&&h)?h:{};
e=e[g[d]]
}}return e
},"define":function(c){b.sandbox.LI.assign(c,{})
},"sandboxFromWindow":function(d,c){b.sandbox.LI.assign(c,d)
}}};
b.deploy={"executeSandbox":function(h){var e=h,d=(typeof e).toLowerCase(),g=null;
b.debug.setMode();
if(d==="object"){if(e.containerIDs){for(var f=0,c=e.containerIDs.length;
f<c;
f++){g=document.getElementById(e.containerIDs[f]);
if(g){b.helpers._getJSControlScripts(g)
}else{b.debug.sbx_log("SANDBOX | WARNING: The DOM element or ID",e," was not found - ignoring")
}}}}else{if(d==="string"){g=document.getElementById(e);
if(g){b.helpers._getJSControlScripts(g)
}else{b.debug.sbx_log("SANDBOX | WARNING: The DOM element or ID",e," was not found - ignoring")
}}}b.debug.sbx_log("SANDBOX | evaling code in executeSandbox()");
b.data.rawControlCode.push("remote_nav.debug.sbx_log('SANDBOX | LI OBJECT IN EVAL IS: ', LI )");
if(!b.data.codeAlreadyEvaled){var j=b.data.rawControlCode.join(";");
b.debug.sbx_log(j);
b.deploy.injectOrEval(j)
}},"injectOrEval":function(d){var c=document.getElementsByTagName("head")[0],f=document.createElement("script"),e=false;
try{f.text=d
}catch(h){b.debug.sbx_log("SANDBOX | injectOrEval() | .text not supported,... trying .innerHTML");
try{f.innerHTML=d
}catch(i){b.debug.sbx_log("SANDBOX | injectOrEval() | cannot use .innerHTML on the script Element, and now the script tag is EMPTY");
e=true
}}if(!e){try{c.appendChild(f);
b.debug.sbx_log("SANDBOX | injectOrEval() | SCRIPT TAG INJECTION FINISHED.")
}catch(g){b.debug.sbx_log("SANDBOX | injectOrEval() | unable to append script tag to head - falling back on eval()");
e=true
}}if(e){b.debug.sbx_log("SANDBOX | unjectOrEval() | unable to either append the tag or it's empty, using eval()");
remote_nav_eval(d);
b.debug.sbx_log("SANDBOX | injectOrEval() | CODE EVAL() [FALLBACK]  FINISHED.")
}b.data.codeAlreadyEvaled=true
},"initSandboxControls":function(){b.debug.sbx_log("SANDBOX | initSandboxControls() | function called.");
var f=b.data.control_registry.length,e=0,d=null;
while(f--){var g=b.data.control_registry[e++];
if(g&&!g.sbx_isInitialized){b.debug.sbx_log("SANDBOX | initSandBoxControls :"+g.name);
if(!(b.sandbox.LI[g.name])){b.debug.sbx_log("SANDBOX | JSControl not in sandbox -> punching out to GLOBAL JSControl.");
d=window.LI
}else{b.debug.sbx_log("SANDBOX | Presence of faceded JSControl: "+typeof LI[g.name]);
d=b.sandbox.LI
}if(d[g.name]){try{new d[g.name](g.el,g.config);
g.sbx_isInitialized=true
}catch(c){b.debug.sbx_log("SANDBOX | We gots problems - ",c)
}}else{b.debug.sbx_log("SANDBOX | WARNING | This Control",g," did not initialize.")
}}}}};
b.public_API={"initializeControls":b.deploy.initSandboxControls,"setUp":b.deploy.executeSandbox,"sandbox":b.sandbox,"debug":b.debug};
if(window.LI_JS_TEST){b.public_API._test={"config":b.config,"data":b.data,"helpers":b.helpers,"deploy":b.deploy}
}return b.public_API
}()),LI=remote_nav.sandbox.LI,LIModules=(function(){var b={jquery:function(){return window.jQuery||window.$
},underscore:"_",fiber:"Fiber","li-backbone":"MVC","backbone":"Backbone"};
function c(k,g){var j=0,f,h;
g=(g.split?g.split("."):g)||[];
if(!k){return
}for(f=g.length;
j<f-1;
j++){h=g[j];
k=k&&k[h]||{}
}return k[g[f-1]]
}function d(f){f=b[f]||f;
if(typeof f==="function"){return f()
}else{return window[f]||undefined
}}function a(f,h){var i=".",g=f.split(i);
f=g.pop();
g=g.join(i);
if(g){g=c(LI,g)
}g=g||LI;
if(h){g[f]=h
}else{return g[f]||d(f)
}}var e={};
e.imports=function(f){return a(f)
};
e.requires=function(f){var g=a(f);
if(g){return g
}throw new Error(f+" was not loaded or could not be found")
};
e.exports=function(f,g){a(f,g)
};
e.isSandboxed=true;
return e
}());
LI.LIModules=LIModules;
window.sandboxControlInit=remote_nav.sandbox.initControl;
window.remote_nav=remote_nav;
window.sandboxedLI=LI;
LI.sandboxFromWindow(window.LI.Events,"Events");
LI.sandboxFromWindow(window.LI.i18n,"i18n");
LI.sandboxFromWindow(window.LI.show,"show");
LI.sandboxFromWindow(window.LI.hide,"hide");
LI.sandboxFromWindow(window.LI.Controls,"Controls");
LI.sandboxFromWindow(window.LI.htmlEncode,"htmlEncode");
LI.sandboxFromWindow(window.LI.domify,"domify");
LI.sandboxFromWindow(window.LI.getDataAttribute,"getDataAttribute");
LI.sandboxFromWindow(window.LI.asyncRequest,"asyncRequest");
LI.sandboxFromWindow(window.LI.isFullPage,"isFullPage");
LI.sandboxFromWindow(window.LI.htmlUnencode,"htmlUnencode");
LI.sandboxFromWindow(window.LI.log,"log");
LI.sandboxFromWindow(window.LI.BaseControl,"BaseControl");
LI.sandboxFromWindow(window.LI.Lego,"Lego");LI.define("NavigationMenu");
LI.NavigationMenu=function(d,x){var b,n,p="";
x={remoteMenus:(x.remoteMenus)?x.remoteMenus:{},more:(x.more)?x.more:null};
for(var a in x.remoteMenus){if(YAHOO.lang.hasOwnProperty(x.remoteMenus,a)){var l=x.remoteMenus[a];
x.remoteMenus[a]={enableRealTimeUpdate:l.enableRealTimeUpdate,id:(l.id===null||typeof(l.id)==="undefined")?null:l.id,url:(l.url===null||typeof(l.url)==="undefined")?null:l.url,css:(l.css===null||typeof(l.css)==="undefined")?null:l.css,js:(l.js===null||typeof(l.js)==="undefined")?null:l.js,cacheResults:(l.cacheResults===null||typeof(l.cacheResults)==="undefined")?true:l.cacheResults,noHide:(l.noHide===null||typeof(l.noHide)==="undefined")?null:l.noHide};
YAHOO.lang.augmentObject(x.remoteMenus[a],{markupLoaded:false,cssLoaded:false,jsLoaded:false,isLoading:false,isLoaded:false})
}}var q="nav-primary-shim",m=25,f=250,o=999,r=o+"+",c,t,j,w;
if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<7){c=document.createElement("iframe");
c.src="javascript:false;";
c.id=q;
c.className="nav-primary-shim";
d.parentNode.insertBefore(c,d)
}YEvent.on(Y$("#nav-primary-more > a",d),"click",function(y){YEvent.preventDefault(y)
});
function u(z,y){var B=y?(y[0]?y[0]:y):YEvent.getTarget(z),C=s(B),A;
if(!C){if(j){window.clearTimeout(j)
}j=window.setTimeout(function(){i()
},f);
return
}A=C.id.split("-")[2];
if(x.remoteMenus[A]){if(x.remoteMenus[A].url&&(!x.remoteMenus[A].isLoaded&&!x.remoteMenus[A].isLoading)){e(A)
}}if(j&&w!==C){window.clearTimeout(j);
j=null
}if(!j){j=window.setTimeout(function(){v(C)
},m);
w=C
}}function v(C){var D,B,A,z,y;
i();
YDom.addClass(C,"hover");
D=YDom.getElementsByClassName("menu",p,C)[0];
t=C;
j=w=null;
if(c&&D){B=YDom.getRegion(D);
A=B.right-B.left;
z=B.bottom-B.top;
y=[B.left,B.top];
YDom.setXY(c,y);
YDom.setStyle(c,"width",A+"px");
YDom.setStyle(c,"height",z+"px");
YDom.setStyle(c,"visibility","visible")
}}function h(z){var E=YEvent.getTarget(z),B=g(E,"inbox-item"),y,A,D,C;
if(B){A=g(YEvent.getRelatedTarget(z),"inbox-item");
if(B!==A){D=YDom.getElementsByClassName("primary-actions","div",B)[0];
if(D){C=LI.Controls.getControl(D,"SplitButton");
if(C&&C.menu){C.menu.setVisible(false)
}}}}if(j){window.clearTimeout(j)
}j=window.setTimeout(function(){i()
},f);
w=null
}function i(){for(var y in x.remoteMenus){if(t&&t.id===x.remoteMenus[y].id&&x.remoteMenus[y].noHide===true){return
}}YDom.removeClass(t,"hover");
j=w=null;
if(c){YDom.setXY(c,[-9999,0]);
YDom.setStyle(c,"visibility","hidden")
}}function e(A){var z=x.remoteMenus[A],C=YDom.getElementsByClassName("menu",p,z.id)[0];
if(C){LI.hide(C)
}function y(){var F,E,D;
if(!(z.markupLoaded&&z.jsLoaded&&z.cssLoaded)){return
}F=(z.markup)?LI.domify(YAHOO.lang.trim(z.markup)):null;
E=YDom.get(z.id);
if(F&&YAHOO.lang.trim(F.innerHTML)){D=F.cloneNode(false);
if(C){C.parentNode.replaceChild(D,C)
}else{E.appendChild(D)
}D.innerHTML=F.innerHTML;
LI.Controls.parseFragment(D)
}else{if(C){YDom.setStyle(C,"display",p)
}}z.isLoaded=true;
z.isLoading=false
}if(z.url){z.isLoading=true;
var B={success:function(D){z.markupLoaded=true;
z.markup=D.responseText;
y()
},failure:function(D){z.isLoading=false
},timeout:7000};
YAHOO.util.Connect.asyncRequest("GET",z.url,B);
if(z.js){YAHOO.util.Get.script(z.js,{onSuccess:function(D){z.jsLoaded=true;
y()
},onFailure:function(){},timeout:4000})
}else{z.jsLoaded=true;
y(A)
}if(z.css){YAHOO.util.Get.css(z.css,{onSuccess:function(D){z.cssLoaded=true;
y()
},onFailure:function(){},timeout:4000})
}else{z.cssLoaded=true;
y(A)
}}}YEvent.on(d,"mouseover",u);
YEvent.on(d,"mouseout",h);
n=x.remoteMenus;
if(n.inbox&&n.inbox.enableRealTimeUpdate){var k=function k(B){var A=YDom.get("inbox-pending-invitation-count"),C=YDom.get("inbox-unread-message-count"),E=B.invitations.pending,y=B.messages.unread,z=E+y,D=YDom.get("nav-primary-inbox-item-total ");
if(A){A.innerHTML=E?"("+((E>o)?r:E)+")":p
}if(C){C.innerHTML=y?"("+((y>o)?r:y)+")":p
}D.innerHTML=z?((z>o)?r:z):p
};
b=LI.NotificationsCountUpdatesService.getInstance();
b.updateEvent.subscribe(k,null,this)
}function s(y){return g(y,"tab")
}function g(z,y){if(!z){return null
}return(YDom.hasClass(z,y))?z:YDom.getAncestorByClassName(z,y)
}LI.NavigationMenu.showMenuEvent=new YAHOO.util.CustomEvent("showMenu");
LI.NavigationMenu.showMenuEvent.subscribe(u)
};LI.define("NavAccessibility");
LI.NavAccessibility=function(a,c){var g,h;
function f(j){var l=YEvent.getTarget(j),k=YDom.getAncestorByClassName(l,c.linkElement);
return k
}function i(j){var k=f(j);
YDom.addClass(k,c.activeClass)
}function e(j){var k=f(j);
YDom.removeClass(k,c.activeClass)
}function b(j){var k=f(j);
YDom.addClass(k,c.activeClass)
}function d(j){var k=f(j);
YDom.removeClass(k,c.activeClass)
}g=Y$("."+c.linkElement+" > a",a);
h=Y$("."+c.subNav+" a",a);
YEvent.on(g,"focus",i);
YEvent.on(g,"blur",e);
YEvent.on(h,"focus",b);
YEvent.on(h,"blur",d)
};LI.define("A11yMenu");
LI.A11yMenu=function(b,a){if(!b){return
}this.container=b;
this.config=a;
this.trigger=YDom.get("a11y-skip-nav-link");
this.searchSelect=YDom.get("main-search-box");
this.body=document.getElementsByTagName("body")[0];
this.pageBody=YDom.get("body");
this.item=0;
this.init()
};
LI.A11yMenu.prototype={init:function(){if(!YAHOO.env.ua.ie||(YAHOO.env.ua.ie&&YAHOO.env.ua.ie>7)){YEvent.addListener(this.trigger,"focus",this.buildMenu,this,true)
}},buildMenu:function(){var l,e,i,k,f,b,o={allowTags:["strong"]},d=document.createElement("span"),a=document.createElement("ul"),g='<li role="presentation">'+'<a role="button" id="a11y-jump-to-link" aria-haspopup="true" class="a11y" href="#a11y-content">{jumpToText}<span class="more">{moreText}</span></a>'+'<ol id="a11y-sub-menu" role="menu" class="a11y-hidden">',c="",p="</ol>"+"</li>"+'<li role="presentation">'+'<a id="a11y-search" class="a11y" href="{searchUrl}"><span>{skipToText}</span></a>'+"</li>"+'<li role="presentation" class="options">'+'<a class="a11y" href="mailto:a11y-feedback@linkedin.com">{feedbackText}</a>'+'<button class="close">{closeText}</button>'+"</li>",m=[].slice.call(document.querySelectorAll("h2, h3")),n=[].slice.call(document.querySelectorAll("#header h2, #header h3")),h=10;
m=m.filter(function(j){return(n.indexOf(j)===-1)&&this.isVisible(j)
}.bind(this));
b=(m.length>h)?h:m.length;
for(f=0;
f<b;
f++){k=m[f];
e=this.getText(k.childNodes);
if(e!==""){c+=jSecure.setElementContent(d,'<li><a class="a11y-jump-item" href="#a11y-header{j}" title="{myHTML}">{myHTML}</a></li>',{"myHTML":e,"j":f})
}k.insertAdjacentHTML("afterbegin",'<span class="a11y-offscreen" id="a11y-header'+f+'" name="a11y-header'+f+'"></span>')
}if(b===0||c===""){c='<li><a class="a11y-jump-item" href="#a11y-content-link" title="{smallPageText}">{smallPageText}</a></li>'
}YEvent.removeListener(this.trigger,"focus",this.buildMenu);
l=g+c+p;
jSecure.setElementContent(a,l,{"jumpToText":new jSecure.UnsafeString(this.config.jumpToText,o),"moreText":this.config.moreText,"searchUrl":this.config.searchUrl,"skipToText":new jSecure.UnsafeString(this.config.skipToText,o),"feedbackText":this.config.feedbackText,"closeText":this.config.closeText,"smallPageText":this.config.smallPageText});
YDom.setAttribute(a,"id","a11y-toolbar");
YDom.setAttribute(a,"role","menubar");
this.container.appendChild(a);
this.displayMenu();
d=null
},getText:function(b){var c="",e,d,a;
for(d=0,a=b.length;
d<a;
d++){e=b[d];
if(e.nodeType===3||e.nodeType===4){c+=e.nodeValue
}else{if(e.nodeType!==8&&e.nodeName.toUpperCase()!=="SCRIPT"){c+=(" "+this.getText(e.childNodes))
}}}return c
},displayMenu:function(){this.trigger=YDom.get("a11y-skip-nav-link");
this.toolbar=YDom.get("a11y-toolbar");
this.jumpLink=YDom.get("a11y-jump-to-link");
this.subMenu=YDom.get("a11y-sub-menu");
this.searchTrigger=YDom.get("a11y-search");
YEvent.addListener(this.container,"keydown",this.handleKeyPress,this,true);
YEvent.addListener(this.trigger,"focus",this.showMenu,this,true);
YEvent.addListener(this.container,"click",this.handleClick,this,true);
YEvent.addListener(this.searchTrigger,"focus",this.handleBlur,this,true);
YEvent.addListener(this.jumpLink,"focus",this.handleFocus,this,true);
this.showMenu()
},isVisible:function(e){var c=e.parentElement,f=c.parentElement,g=(YDom.getStyle(e,"display")==="none"||YDom.getStyle(c,"display")==="none"||YDom.getStyle(f,"display")==="none")?true:false,b=(YDom.getStyle(e,"visibility")==="hidden"||YDom.getStyle(c,"visibility")==="hidden"||YDom.getStyle(f,"visibility")==="hidden")?true:false,a=(YDom.getStyle(e,"text-indent")[0]==="-"||YDom.getStyle(c,"text-indent")[0]==="-"||YDom.getStyle(f,"text-indent")[0]==="-")?true:false,d=/^rect\((?:\s*[01]px[,\s]*){4}\)/.test(YDom.getStyle("clip"));
return !(g||b||a||d)
},addBodyMargin:function(){YDom.addClass(this.pageBody,"a11y-open");
YDom.addClass(this.body,"a11y-focus")
},removeBodyMargin:function(){YDom.removeClass(this.pageBody,"a11y-open");
YDom.removeClass(this.body,"a11y-focus")
},hideMenu:function(){YDom.addClass(this.container,"a11y-hidden");
this.removeBodyMargin();
YEvent.removeListener(window,"scroll",this.hideMenu,this,true);
this.hideSubMenu()
},hideSubMenu:function(){YDom.addClass(this.subMenu,"a11y-hidden")
},showSubMenu:function(){YDom.removeClass(this.subMenu,"a11y-hidden")
},showMenu:function(){if(!this.toolbar){this.buildMenu();
return
}this.hideSubMenu();
YDom.removeClass(this.container,"a11y-hidden");
this.toolbar.tabIndex=-1;
this.toolbar.focus();
this.addBodyMargin();
YEvent.addListener(window,"scroll",this.hideMenu,this,true)
},skipToSearch:function(){this.hideMenu();
this.searchSelect.focus()
},handleBlur:function(a){this.hideSubMenu();
this.removeTabs()
},handleFocus:function(a){this.showSubMenu();
this.resetTabs()
},resetTabs:function(){var b=this.subMenu.getElementsByTagName("a"),c,a;
for(c=0,a=b.length;
c<a;
c++){YDom.setAttribute(b[c],"tabindex","0")
}},removeTabs:function(){var b=this.subMenu.getElementsByTagName("a"),c,a;
for(c=0,a=b.length;
c<a;
c++){YDom.setAttribute(b[c],"tabindex","-1")
}},handleClick:function(a){var d=YEvent.getTarget(a),c=YDom.getAttribute(d,"href"),b;
if(c&&c.substr(0,1)==="#"&&d!==this.jumpLink&&!YDom.hasClass(d,"close")){b=document.getElementById(c.substr(1)).parentNode
}if(b){b.tabIndex=-1;
b.focus();
this.hideMenu()
}else{if(d===this.jumpLink){YEvent.preventDefault(a);
this.subMenu.tabIndex=-1;
this.subMenu.focus()
}else{if(d===this.searchTrigger||YDom.getAncestorByTagName(d,"a")===this.searchTrigger){YEvent.preventDefault(a);
this.skipToSearch()
}else{if(YDom.hasClass(d,"close")){YEvent.preventDefault(a);
this.hideMenu()
}}}}},handleKeyPress:function(a){var b=YEvent.getCharCode(a);
switch(b){case 13:this.handleEnter(a);
break;
case 27:this.handleEsc(a);
break;
case 32:this.handleSpace(a);
break;
case 37:this.handleLeft(a);
break;
case 38:this.handleUp(a);
break;
case 39:this.handleRight(a);
break;
case 40:this.handleDown(a);
break
}},handleEnter:function(a){if(YDom.hasClass(this.container,"a11y-hidden")){YEvent.preventDefault(a);
this.showMenu()
}},handleEsc:function(a){var b=YEvent.getTarget(a);
if(YDom.getAncestorByTagName(b,"ol")){this.jumpLink.focus()
}else{YEvent.preventDefault(a);
this.hideMenu()
}},handleSpace:function(a){YEvent.preventDefault(a);
this.showMenu()
},handleLeft:function(a){var d=YEvent.getTarget(a),c,b;
YEvent.preventDefault(a);
if(!YDom.getAncestorByTagName(d,"ol")){c=YDom.getAncestorByTagName(d,"li");
b=YDom.getPreviousSibling(c);
if(b){b.getElementsByTagName("a")[0].focus()
}}},handleUp:function(a){var d=YEvent.getTarget(a),c,b;
YEvent.preventDefault(a);
if(YDom.getAncestorByTagName(d,"ol")){c=YDom.getAncestorByTagName(d,"li");
b=YDom.getPreviousSibling(c);
if(b){b.getElementsByTagName("a")[0].focus()
}}},handleRight:function(a){var d=YEvent.getTarget(a),c,b;
YEvent.preventDefault(a);
if(d===this.toolbar){this.toolbar.getElementsByTagName("a")[0].focus()
}else{if(!YDom.getAncestorByTagName(d,"ol")){c=YDom.getAncestorByTagName(d,"li");
b=YDom.getNextSibling(c);
if(b){b.getElementsByTagName("a")[0].focus()
}}}},handleDown:function(a){var d=YEvent.getTarget(a),c,b;
YEvent.preventDefault(a);
if(d===this.subMenu||d===this.jumpLink){this.subMenu.getElementsByTagName("a")[0].focus()
}else{if(YDom.getAncestorByTagName(d,"ol")){c=YDom.getAncestorByTagName(d,"li");
b=YDom.getNextSibling(c);
if(b){b.getElementsByTagName("a")[0].focus()
}}}}};LI.NotificationsCountUpdatesService=(function(){var e=YAHOO.lang,b=YAHOO.util,a,d;
function c(){var h,g,i,f;
i=function(){LI.asyncRequest("GET",f,{failure:function(){},scope:this,success:function(l){var j=l.responseText,k;
if(j&&j.inbox_activity_notifications_poll){j=j.inbox_activity_notifications_poll;
k={invitations:{pending:parseInt(j.invitations.pending)||0,unseen:parseInt(j.invitations.unseen)||0},messages:{unread:parseInt(j.messages.unread)||0,unseen:parseInt(j.messages.unseen)||0},notifications:{unseen:parseInt(j.notifications.unseen)||0}};
this.updateEvent.fire(k)
}}})
};
h=YDom.get("header-notifications")||Y$(".nav.utilities",YDom.get("header"),true);
g=YDom.getAttribute(h,"data-li-update-interval").replace("li_","");
d=parseInt(g)||30000;
f=YDom.getAttribute(h,"data-li-update-url");
e.later(d,this,i,[],true);
this.updateEvent=new b.CustomEvent("update",this,false,b.CustomEvent.FLAT)
}return new function(){this.getInstance=function(){if(e.isUndefined(a)){a=new c();
a.constructor=null
}return a
}
}
}());(function(){var z="data-li-action-type",f=".activity-drop-body",K="data-li-activity-type",D={actor_count:true,impression_ID:true,isNew:true,notification_ID:true,notification_type:true,position:true,service_provider:true,sub_ID:true},B=10000,i="can-unsubscribe",j="clear-gem",y="error",u="gem",A="gem-unseen",e="pymk-badge",s="get",x="has-more",J="is-backfilling",C="last",M='<div class="activity-drop activity-drop-loading"><div class="activity-drop-body"></div></div>',t="messages",l="mouseover",G="notifications",L="addconnections",a="data-li-num-remaining",E="post",o="SUCCESS",m="unseen",c="unsubscribe-confirm",h="unsubscribe-link",d="unsubscribe-success",n="unviewed",k="update",p=location.search.match(/mock=true/),H="utilities",g=YAHOO.lang,v=false;
function b(N){return q(N,"mock","true")
}function F(N,O){return q(N,"offset",O)
}function q(N,P,O){return[N,((N.indexOf("?")>0)?"&":"?"),encodeURIComponent(P),"=",encodeURIComponent(O)].join("")
}function r(Q){var T=YAHOO.util.Get,S=Q.dependencies,N,R;
if(typeof S==="string"){S=LI.Controls.resolveName(S)
}N=(S.jsFiles===undefined);
R=(S.cssFiles===undefined);
function P(){if(N&&R){if(Q.success){if(Q.scope){Q.success.apply(Q.scope)
}else{Q.success()
}}}}function O(){if(Q.failure){if(Q.scope){Q.failure.apply(Q.scope)
}else{Q.failure()
}}}if(!N){T.script(S.jsFiles,{onSuccess:function(){N=true;
P()
},onFailure:function(){O()
},timeout:1000})
}if(!R){T.css(S.cssFiles,{onSuccess:function(){R=true;
P()
},onFailure:function(){O()
},timeout:1000})
}}function I(O,N){if(!O){return null
}return(YDom.hasClass(O,N))?O:YDom.getAncestorByClassName(O,N)
}function w(O,S){var P,aa=S.remoteMenus[L],ab=typeof(aa.dependencies)==="string"?LI.Controls.resolveName(aa.dependencies):aa.dependencies,Q=Y$("."+e,O);
function R(ad){return I(ad,"activity-item")
}function ac(ad){return I(ad,"activity-toggle")
}function N(ad){return I(ad,"activity-tab")
}function Z(ao){var ai=function(){},an=YEvent.getTarget(ao),aj=ac(an),ah=N(an),ag,ae,al,af,am,ak,ad;
if(aj&&S.hoverMenus&&YDom.inDocument(an)&&(YDom.getAttribute(aj,"href")==="#")){YEvent.preventDefault(ao);
this.toggleTab(ah)
}else{if(!this.locked&&YDom.inDocument(an)){if(aj&&!S.hoverMenus){YEvent.preventDefault(ao);
this.toggleTab(ah)
}else{if(this.activeTab){if(!ah){this.closeTab(this.activeTab)
}else{ag=R(an);
if(ag){ad=ag.getAttribute("data-li-href");
if(ad){document.location=ad
}}else{if(YDom.hasClass(an,"reply-to-invite")||YDom.hasClass(an,"inviter-send-msg")){this.closeTab(this.activeTab)
}else{if(YDom.hasClass(an,"notification-link")){YEvent.preventDefault(ao);
ak=I(an,k);
al=this.remoteMenus.notifications.markAsReadOnClick;
am=function(){window.location.href=an.href
};
if(al){ae=U(ak,ah,D);
af=WebTracking.createRequestData(YDom.getAttribute(an,z),ae,true)+["&readStatus=true&notificationId=",ae.notification_ID].join("");
LI.asyncRequest(E,al.url,{failure:am,success:am},af)
}else{ae=U(ak,ah,D);
WebTracking.trackBeforeNavigation(YDom.getAttribute(an,z),an.href,ae,true)
}}else{if(YDom.hasClass(an,h)||YDom.hasClass(an,"unsubscribe-cancel-action")){YEvent.preventDefault(ao);
ak=I(an,k);
if(YDom.hasClass(an,h)){YDom.replaceClass(ak,i,c)
}else{YDom.replaceClass(ak,c,i)
}ae=U(ak,ah,{notification_ID:true,notification_type:true});
WebTracking.trackUserAction(YDom.getAttribute(an,z),ae,true)
}else{if(YDom.hasClass(an,"unsubscribe-action")){YEvent.preventDefault(ao);
if(an.href){ak=I(an,k);
LI.asyncRequest(s,an.href,{failure:ai,scope:this,success:function(aq){var ap=aq.responseText;
if(ap&&ap.result===o){YDom.replaceClass(ak,c,d)
}}});
ae=U(ak,ah,{notification_ID:true,notification_type:true,position:true,service_provider:true,sub_ID:true});
WebTracking.trackUserAction(YDom.getAttribute(an,z),ae,true)
}}}}}}}}}}}}function U(af,aj,ag){var ad={},ai,ak,ae,ah;
if(ag.actor_count===true){ad.actor_count=YDom.getAttribute(af,"data-li-num-actors")
}if(ag.impression_ID===true){ad.impression_ID=YDom.getAttribute(af,"data-li-impr-id")
}if(ag.isNew===true){ad.isNew=YDom.hasClass(af,"seen")
}if(ag.notification_ID===true){ad.notification_ID=YDom.getAttribute(af,"data-li-id")
}if(ag.notification_type===true){ad.notification_type=YDom.getAttribute(af,"data-li-type")
}if(ag.service_provider===true){ad.service_provider="on-site"
}if(ag.sub_ID===true){ad.sub_ID=YDom.getAttribute(af,"data-li-sub-id")
}if(ag.position===true){ae=Y$(".activity-drop-body li.update",aj);
ah=ae.length;
for(ai=0;
ai<ah;
ai++){ak=ae[ai];
if(ak===af){ad.position=++ai;
break
}}}return ad
}function Y(ad){var af=YEvent.getTarget(ad),ae=N(af);
if(!this.activeTab||ae!==this.activeTab){this.openTab(ae);
YEvent.on(document,l,W,null,this)
}}function W(ad){var af=YEvent.getTarget(ad),ae=N(af)!==null;
if(!ae){YEvent.removeListener(document,l,W);
if(this.activeTab){this.closeTab(this.activeTab)
}}}function T(ad){var ah=YEvent.getTarget(ad),af,ae,ag;
if(this.activeTab){this.closeTab(this.activeTab)
}ag=YDom.getElementsByClassName("account-settings","ul",ah)[0];
af=YDom.getLastChild(ag);
ae=YDom.getElementsByClassName("act-set-action","a",af);
YEvent.on(ae,"blur",X);
YDom.addClass(ah.parentNode,"open")
}function X(ad){var af=YEvent.getTarget(ad),ae=YDom.getAncestorByClassName(af,"account-settings-tab");
YDom.removeClass(ae,"open")
}if(S.hoverMenus){YEvent.on(O,l,Y,null,this);
YEvent.on(Y$(".activity-tab > a",O),"focus",Y,null,this);
YEvent.on(Y$(".account-settings-tab > a",O),"focus",T,null,this)
}YEvent.on(document,"click",Z,null,this);
this.remoteMenus=S.remoteMenus||{};
function V(ay){var an=ay.invitations,au=YDom.hasClass(O,H),aw=ay.messages,ao=ay.notifications.unseen,av=Y$(".activity-tab",O),af=(YDom.getAttribute(O,"data-li-update-type")===m),al,am,ae,ad,ar,at,ag,ak,aj,ax,ap,ah,ai,aq;
if(af){ax=an.unseen;
ap=aw.unseen
}else{ax=an.pending;
ap=aw.unread
}ah=ax+ap;
for(ar=0,at=av.length;
ar<at;
ar++){ai=av[ar];
am=YDom.getAttribute(ai,K);
ae=[];
if(am===t){aj=ah;
if(af){ae.push(j)
}}else{if(am===G){aj=ao
}}ad=Y$(".gem",ai,true);
if(aj){ae.push(u);
if(!ad){ad=document.createElement("span");
if(au){ai.appendChild(ad)
}else{aq=Y$(".activity-toggle",ai,true);
aq.appendChild(ad)
}}ad.innerHTML=(aj>999)?"999+":aj;
ae.push(A);
YDom.addClass(ad,ae.join(" "));
ag=Y$(".activity-drop",ai,true);
if(ag){ag.parentNode.removeChild(ag);
ak=LI.domify(M);
if(au){al=Y$(".activity-container",ai,true);
al.appendChild(ak)
}else{ai.appendChild(ak)
}}}else{if(ad){ad.innerHTML=""
}}}}if(S.enableRealTimeUpdate){P=LI.NotificationsCountUpdatesService.getInstance();
P.updateEvent.subscribe(V,null,this)
}if(ab&&ab.pymkBadgeLiXOn){if(ab.onPYMKOrABIPage){YEvent.onDOMReady(function(){ab.pymkBadgeLegoCoolOffData.reason="Viewed PYMK or ABI page";
LI.asyncRequest(E,ab.pymkBadgeLegoConfig.coolOffUrl,{},ab.pymkBadgeLegoCoolOffData);
WebTracking.trackUserAction("sitenav-pymkbadge-cooloff",{reason:ab.pymkBadgeLegoCoolOffData.reason,coolOffPeriod:ab.pymkBadgeLegoCoolOffData.period},true)
})
}else{if(LI.Lego&&Q.length>0){aa.pymkBadgeLegoWidget=(new LI.Lego(Q[0],ab.pymkBadgeLegoConfig))._getWidget("global-nav-pymk-badge")
}}}}w.prototype={closeTab:function(N){YDom.removeClass(N,"open");
this.activeTab=null;
this.markViewed(N);
this.locked=false
},openTab:function(Q){var T=this,P=YDom.getElementsByClassName("activity-drop","div",Q)[0],O=YDom.getElementsByClassName("activity-drop-loading","div",Q)[0],U=YDom.getAttribute(Q,"data-li-action-type-click"),W=YDom.getAttribute(Q,"data-li-new-count"),X,Y,S,V,R;
if(Q&&Q.getAttribute(K)===L&&this.remoteMenus[L].pymkBadgeLegoWidget){R=YDom.getElementsByClassName(u,"span",Q);
if(R.length>0&&YDom.hasClass(R[0],e)){this.remoteMenus[L].pymkBadgeLegoWidget.fire("PRIMARY_ACTION",{actionName:"pymk-badge-viewed"})
}}function N(ad){var ac,ae,ab=ad.url,aa=ad.backfillUrl,Z=(ad.infiniteScroll===true),ag=YDom.getAttribute(Q,"data-li-action-type-pagination");
if(p){if(aa){aa=b(aa)
}if(ab){ab=b(ab)
}}ae=function(aj){var ah=Y$(".error-message",Q),ai;
YDom.removeClass(P,J);
if(ah&&ah.length){ai=Y$(f,O)[0];
YDom.addClass(ai,y);
YDom.removeClass(O,"activity-drop-loading")
}T.locked=false
};
function af(){var ak=Y$(".activity-drop-body ol",Q)[0],ai=this,ah,aj=aa;
if(!T.locked&&YDom.hasClass(ak,x)){ah=Y$("li.update",ak).length;
aj=F(aj,ah);
YDom.addClass(O,J);
this.render();
if(g.isString(ag)&&ag.length){WebTracking.trackUserAction(ag,null,true)
}T.locked=true;
LI.asyncRequest("GET",aj,{custom:{exception:ae},failure:ae,success:function(aq){var am,ap,al,an,ao;
T.locked=false;
ac=aq.responseText;
if(!LI.isFullPage(ac)){al=Y$("li.loading",ak)[0];
P=LI.domify(ac);
for(am=P.firstChild;
am;
am=am.nextSibling){if(am.tagName&&(am.tagName.toLowerCase()==="li")){ap=am.cloneNode(true);
if(al){ak.insertBefore(ap,al)
}else{ak.appendChild(ap)
}}}ai.render();
ao=Y$("li.last",ak)[0];
YDom.removeClass(ao,C);
ao=Y$("li.update:last",ak)[0];
YDom.addClass(ao,C);
LI.Controls.parseFragment(O);
an=P.hasAttribute(a)?parseInt(YDom.getAttribute(P,a),10):0;
if(!an){YDom.removeClass(ak,"has-more")
}}YDom.removeClass(O,J)
},timeout:B})
}}LI.asyncRequest("GET",ab,{success:function(am){var al,ai,ah,aj=am.responseText;
T.locked=false;
var ak=function(ao){var an="";
dust.render(ad.dustTemplateName,am.responseText,function(aq,ap){if(!aq){an=ap;
ai=LI.domify(ap);
O.innerHTML=ai.innerHTML;
ao()
}});
return an
};
if(ad.isDustTemplate&&!v){aj=ak(function(){var an=new r({dependencies:ad.dependencies,scope:this,success:function(){LI.Controls.parseFragment(O);
v=true;
this.locked=false
},failure:function(){this.locked=false;
this.closeTab(Q)
}});
this.locked=true;
return an
})
}if(!ad.isDustTemplate&&!LI.isFullPage(aj)){ai=LI.domify(aj);
YDom.removeClass(O,"activity-drop-loading");
YDom.removeClass(ai,y);
O.innerHTML=ai.innerHTML;
T.markViewed(Q);
LI.Controls.parseFragment(O);
if(Z){al=Y$(f,O)[0];
ah=new LI.ScrollTopObserver(al,{customScrollbars:true});
ah.distanceReached.subscribe(af,null,ah)
}}},failure:ae,custom:{exception:ae},timeout:B});
T.locked=true
}if(this.activeTab){this.closeTab(this.activeTab)
}YDom.addClass(Q,"open");
if(g.isString(U)&&U.length&&g.isString(W)&&W.length){WebTracking.trackUserAction(U,{alert_count:W},true)
}this.activeTab=Q;
if(Q&&(!P||YDom.hasClass(P,"activity-drop-loading"))){X=Q.getAttribute(K);
if(X){S=this.remoteMenus[X];
if(S){if(O){YDom.removeClass(O,"hidden");
Y=Y$(f,O)[0];
YDom.removeClass(Y,y)
}else{O=LI.domify(M)
}if(S.dependencies&&!S.isDustTemplate){V=new r({dependencies:S.dependencies,scope:this,success:function(){this.locked=false;
if(!this.locked&&S.url!==undefined){N(S)
}},failure:function(){this.locked=false;
this.closeTab(Q)
}});
this.locked=true
}if(!this.locked){N(S)
}}}}},markViewed:function(O){var N=O.getAttribute(K),R=YDom.getElementsByClassName(u,"span",O)[0],P=YDom.getElementsByClassName(n,"",O),Q=YDom.getElementsByClassName(m,"",O);
if(R){if(N===G||(N===t&&YDom.hasClass(R,j))||(N===L&&YDom.hasClass(R,e))){R.parentNode.removeChild(R)
}else{YDom.removeClass(R,A)
}}if(P){YDom.removeClass(P,n)
}if(Q){YDom.removeClass(Q,m)
}},toggleTab:function(N){if(this.activeTab===N){this.closeTab(N)
}else{this.openTab(N)
}}};
LI.HeaderNotifications=w
}());(function(){var g=YAHOO.util.Dom,o=YAHOO.util.Event,a=YAHOO.lang,n=YAHOO.env.ua,d=window,s=document,j=document.body,k=1500,q=25,f="dragging",m=0,r=1,b="max-height",l="mousemove",c="show",p=n.gecko?"DOMMouseScroll":"mousewheel",i="li-scroll-thumb";
LI.define("ScrollTopObserver");
LI.ScrollTopObserver=function(u,v){var t=(v&&v.distanceFromBottomTrigger)||40,G=this,z;
this.enable=true;
this.distanceReached=new YAHOO.util.CustomEvent("distanceReached");
function A(){var H=window.setTimeout(function(){g.removeClass(z.track,c)
},z.thumbHideTimeout);
z.thumbHideTimeoutIds.push(H)
}function E(J){var M=t+1,L,I,K,H;
if(G.enable){if(u===window){K=d.pageYOffset||s.scrollTop||j.scrollTop;
if(n.gecko){M=d.scrollMaxY-K
}else{if(n.webkit){M=j.scrollHeight-j.scrollTop-d.innerHeight
}else{if(n.ie){M=j.scrollHeight-s.clientHeight-s.scrollTop
}else{if(n.opera){M=j.scrollHeight-K-d.innerHeight
}}}}L=n.gecko?d.scrollMaxY:j.scrollHeight;
I=parseInt(g.getStyle(document.body,b))||L
}else{H=(z&&z.content)||u;
L=H.scrollHeight;
I=parseInt(g.getStyle(H,b))||L;
M=L-H.scrollTop-H.clientHeight
}if((M<=t)&&(L>I)){G.distanceReached.fire({distanceFromBottom:M})
}}}function B(){var H;
while(z.thumbHideTimeoutIds.length){H=z.thumbHideTimeoutIds.pop();
window.clearTimeout(H)
}}function C(){g.addClass(z.track,c);
B();
o.on(document,p,(function(I){try{I.preventDefault()
}catch(H){return false
}}),null,true)
}function x(){A();
o.removeListener(document,p)
}function y(I){var H=o.getTarget(I),J=(n.ie&&(I.button===r))||I.button===m;
if(J){H=g.hasClass(H,i)?H:g.getAncestorByClassName(H,i);
z.isDraggingThumb=true;
z.mouseStartY=I.clientY;
z.thumbStartY=h(H.style.top);
g.addClass(document.body,f);
o.on(document,l,F,null,this)
}}function F(L){B();
var M=z.thumbStartY+L.clientY-z.mouseStartY,I=M<0,K=(M+z.thumbHeight)>z.content.clientHeight,J,H;
if(I){M=0
}if(K){M=z.content.clientHeight
}if(z.isDraggingThumb&&!I&&!K){if(window.getSelection){window.getSelection().removeAllRanges()
}else{if(document.getSelection){document.getSelection().removeAllRanges()
}}J=M/z.track.clientHeight;
H=parseInt(Math.round(z.content.scrollHeight*J));
z.content.scrollTop=H;
g.setStyle(z.thumb,"top",M+"px");
E()
}A()
}function w(H){if(z.isDraggingThumb){z.isDraggingThumb=false;
g.removeClass(document.body,f);
o.removeListener(document,l,F);
A()
}}function D(M){var L=o.getTarget(M),K=e(L,"li-scroll-content"),H=z.content,N=0,J,I;
if(K){B();
if(M.wheelDelta){N=M.wheelDelta
}else{if(M.detail){N=-M.detail
}}if(N<0){H.scrollTop+=q
}else{H.scrollTop-=q
}E();
I=H.scrollTop/H.scrollHeight;
J=parseInt(Math.round(z.track.clientHeight*I));
g.setStyle(z.thumb,"top",J+"px");
A();
return false
}}if(v&&v.customScrollbars){z={content:Y$(".li-scroll-content",u,true),track:Y$(".li-scroll-track",u,true),thumb:Y$(".li-scroll-track ."+i,u,true),isDraggingThumb:false,thumbStartY:0,mouseStartY:0,thumbHideTimeout:v.customScrollbars.fadeTimeout||k,thumbHideTimeoutIds:[]};
this.customScrolling=z;
o.on(z.content,p,D,null,this);
o.on(z.thumb,"mousedown",y,null,this);
o.on(document,"mouseup",w,null,this);
o.on(u,"mouseover",C,null,this);
o.on(u,"mouseout",x,null,this);
o.on(u,"selectstart",function(){return false
},null,this);
this.render()
}else{o.on(u,"scroll",E,null,this)
}};
LI.ScrollTopObserver.prototype={render:function(){if(this.customScrolling){var t=this.customScrolling.content,y=parseInt(g.getStyle(t,b))||t.scrollHeight,u=this.customScrolling,w=t.clientHeight/t.scrollHeight,x=parseInt(Math.round(u.track.clientHeight*w)),v;
if(t.scrollHeight<=y){LI.hide(u.track);
return
}LI.show(u.track);
this.customScrolling.thumbHeight=x;
g.setStyle(this.customScrolling.thumb,"height",x+"px");
w=t.scrollTop/t.scrollHeight;
v=parseInt(Math.round(this.customScrolling.track.clientHeight*w));
g.setStyle(this.customScrolling.thumb,"top",v+"px")
}}};
function h(u){var t=parseInt(u);
return isNaN(t)?0:t
}function e(u,t){if(!u){return null
}return(g.hasClass(u,t))?u:g.getAncestorByClassName(u,t)
}})();LI.define("ImageTools");
LI.ImageTools=function(b,c){var j=this,i=$(b),g=$(document),f=i.find("img.subject-image"),e=f[0],h=null,a={};
c=c||{};
_.defaults(c,{inDialog:false,fromUpload:null,imageUrl:null});
this.setImage=function(k){if(document.domain.indexOf("corp")>-1){k="http://"+document.domain+":9997/media"+k
}else{if(document.domain==="linkedin-ei.com"||document.domain==="www.linkedin-ei.com"){k="http://m.c.lnkd.licdn-ei.com/media/"+k
}}f.css({"position":"absolute","left":"-1234px","top":0});
i.trigger("progress-start",{"realTime":false});
e.src=k
};
this.getImage=function(){return f[0]
};
this.getImageDescription=function(){return a
};
function d(){LI.Dialog().open({name:"image-tools-dialog",type:"task-modal",content:{node:b},width:800})
}if(!e){return
}a.imageEl=e;
f.load(function(){f.css({"position":"static","left":0,"top":0});
i.trigger("progress-complete");
i.trigger("image-tools-set-image",{"img":this,"tools":j});
if(c.inDialog){d()
}});
f.error(function(k){i.trigger("progress-complete");
i.trigger("image-tools-image-error",{"event":k})
});
if(c.imageUrl){this.setImage(c.imageUrl)
}if(c.inDialog){h=document.createElement("div");
i.after(h);
h.appendChild(b);
$(h).hide()
}if(c.fromUpload){g.on("mpr-upload-success",function(k,m){var l=m.value;
if(!$(k.target).is(c.fromUpload)){return false
}j.setImage(l)
})
}else{if(c.inDialog&&e.getAttribute("src")){d()
}}i.on("image-tools-set-image",function(k,l){a.imageEl=l.img;
i.trigger("image-tools-desc-updated",{"img":e,"tools":j})
});
i.on("image-tools-rect-update",function(k,l){a.rect=l.rect;
i.trigger("image-tools-desc-updated",{"img":e,"tools":j})
});
i.on("image-tools-rotation-update",function(k,l){a.rotation=l.rotation;
i.trigger("image-tools-desc-updated",{"img":e,"tools":j})
})
};
LI.define("ImageCropper");
LI.ImageCropper=function(e,c){var a=this,h=e,d=$(h),g={};
c=c||{};
_.defaults(c,{width:0,height:0,initialSelection:[-1,-1,0,0],aspectRatio:0,minSize:[0,0],maxSize:[0,0],constrainRatio:false,canResize:true,imageToolsElement:null});
function b(k){var j=$(c.imageToolsElement),i=(j[0])?j:d;
i.trigger("image-tools-rect-update",{"img":e,"rect":k,"settings":g,"cropper":a})
}function f(){var q=0,i=[],m=d.width(),n=d.height(),j=m,k=n,p=[0,0,0,0],o=0,l=0;
if(typeof c.aspectRatio==="string"){i=c.aspectRatio.split(":");
if(i.length===2&&!isNaN(i[0])&&!isNaN(i[1])&&(i[0]=Number(i[0]))>0&&(i[1]=Number(i[1]))>0){c.aspectRatio=i[0]/i[1]
}else{c.aspectRatio=null
}}if(c.initialSelection[2]>0&&c.initialSelection[3]>0){q=c.initialSelection[2]/c.initialSelection[3]
}if(c.aspectRatio&&q!==c.aspectRatio){q=c.aspectRatio;
if(q>1){k=Math.round(j/q)
}else{j=Math.round(k*q)
}c.initialSelection[2]=j;
c.initialSelection[3]=k
}if(c.initialSelection[0]===-1&&c.initialSelection[1]===-1&&c.initialSelection[2]>0&&c.initialSelection[3]>0){o=Math.round((m/2)-(c.initialSelection[2]/2));
l=Math.round((n/2)-(c.initialSelection[3]/2));
c.initialSelection[0]=o;
c.initialSelection[1]=l
}g={minSize:c.minSize,maxSize:c.maxSize,allowResize:c.canResize,allowSelect:false,aspectRatio:q,boxWidth:c.width,boxHeight:c.height,setSelect:[c.initialSelection[0],c.initialSelection[1],c.initialSelection[2]+c.initialSelection[0],c.initialSelection[3]+c.initialSelection[1]],bgColor:"#000",bgOpacity:0.2,onChange:b,onSelect:b};
d.Jcrop(g)
}if(e.src&&e.src!==""){f()
}if(c.imageToolsElement){$(document).on("image-tools-set-image",function(i,j){if(!$(i.target).is(c.imageToolsElement)){return false
}setTimeout(function(){f()
},50)
})
}};
LI.define("ImageToolsPreview");
LI.ImageToolsPreview=function(c,b){var a=$(c),e,d;
b=b||{};
_.defaults(b,{imageToolsElement:null,centerPreview:true});
function f(k){var k=k||{x:0,y:0,w:e.width(),h:e.height()},r=a.width(),l=a.height(),n=r/l,h=e.width(),q=e.height(),i=l/k.h,j=r/k.w,p=k.x,o=k.y,m={};
if(k.h<k.w){p*=i;
o*=i;
h*=i;
q*=i
}else{p*=j;
o*=j;
h*=j;
q*=j
}if(b.centerPreview&&i!==j){if(j<i){p=(h/2)-(r/2)
}else{o=(q/2)-(l/2)
}}if(k.a>=0){d.removeClass("li-photo-editor-rotate-0 li-photo-editor-rotate-90 li-photo-editor-rotate-180 li-photo-editor-rotate-270").addClass("li-photo-editor-rotate-"+k.a);
switch(k.a){case 90:p+=l-q;
break;
case 180:p+=r-h;
o+=l-q;
break;
case 270:o+=r-h;
break
}}m={width:Math.round(h),height:Math.round(q),marginLeft:Math.round(-p),marginTop:Math.round(-o)};
d.css(m)
}function g(h,i){d=$(document.createElement("img"));
d.on("load",function(j){f(i)
});
d.attr("src",h);
a.empty();
a.append(d);
a.css({overflow:"hidden",position:"relative"});
d.css({position:"absolute"})
}if(b.imageToolsElement){$(document).on("image-tools-set-image",function(h,i){if(!$(h.target).is(b.imageToolsElement)){return false
}e=$(i.img);
g(i.img.src,i.rect)
});
$(document).on("image-tools-rect-update",function(h,i){if(!$(h.target).is(b.imageToolsElement)){return false
}if(!d||!d.length){e=$(i.img);
g(i.img.src,i.rect)
}else{f(i.rect)
}})
}};LI.RequestQueue={requests:[],activeRequest:null,dequeue:function(){return this.requests.shift()
},enqueue:function(b){if(!this.activeRequest||!YAHOO.util.Connect.isCallInProgress(this.activeRequest)){YAHOO.util.Connect.setForm(b.form);
this.activeRequest=LI.asyncRequest(b.method,b.url,b.callback,b.postData);
var a=window.setInterval(function(){if(!YAHOO.util.Connect.isCallInProgress(LI.RequestQueue.activeRequest)){var c=LI.RequestQueue.dequeue();
if(!c){LI.RequestQueue.activeRequest=null;
window.clearInterval(a)
}else{LI.RequestQueue.activeRequest=LI.asyncRequest(c.method,c.url,c.callback,c.postData)
}}},10)
}else{this.requests.push(b)
}return true
}};
YAHOO.register("LI.RequestQueue",LI.RequestQueue,{});(function(){var c="interrupt success-plus success-timeout task-modal task-modeless task-modeless-secondary no-header noheader-modal";
var b="POST";
var a="GET";
var f={autoSize:"no-header task-modeless success-plus success-timeout",modal:"interrupt task-modal noheader-modal",dragNDrop:"task-modeless task-modeless-secondary success-plus success-timeout",docClick:"success-plus success-timeout",timeout:"success-timeout"};
var g=null;
var e={or:LI.i18n.get("Dialog-or"),closeThisWindow:LI.i18n.get("Dialog-closeWindow"),cancel:LI.i18n.get("Dialog-cancel"),submit:LI.i18n.get("Dialog-submit"),start:LI.i18n.get("Dialog-start"),end:LI.i18n.get("Dialog-end")};
LI.Dialog=function(j,i){var h=g||new d();
g=h;
if(j){e=(i.i18n)?i.i18n:e;
i=i||{};
i.content=i.content||{};
i.webtrack=i.webtrack||{};
i={content:{attentionMsg:i.content.attentionMsg||null,successMsg:i.content.successMsg||null,title:i.content.title||null,node:i.content.node||null,url:i.content.url||null,method:(i.content.method===b)?b:a,postData:i.content.postData||"",useCache:i.content.useCache||false,html:i.content.html||null,submitButton:i.content.submitButton||false,dustData:i.content.dustData||null,dustDataUrl:i.content.dustDataUrl||null,dustTemplate:i.content.dustTemplate||null},dependencies:i.dependencies||null,name:i.name||"config.name=not_set",className:i.className||"",type:(i&&i.type&&c.match(i.type))?i.type:"task-modeless",width:(i&&i.width)?parseInt(i.width,10):500,webtrack:{key:i.webtrack.key||null,val:i.webtrack.val||null},container:(i.container)?i.container:null,extra:(i.extra)?i.extra:null,lazyEvent:(i.lazyEvent)?i.lazyEvent:null,stopEvent:(typeof(i.stopEvent)==="undefined")?true:(!!i.stopEvent),showOnlyWhenReady:i.showOnlyWhenReady||false,childTarget:i.childTarget||null,allowMultipleChildren:i.allowMultipleChildren||false,scrollTopOnOpen:(typeof(i.scrollTopOnOpen)==="undefined")?true:(!!i.scrollTopOnOpen),disableFocusOnClose:(!!i.disableFocusOnClose)?i.disableFocusOnClose:false,noClickListener:i.noClickListener||false,timeout:i.timeout||15000};
if(i.childTarget){j=Y$(i.childTarget,j,!i.allowMultipleChildren)||j
}if(!i.noClickListener){YEvent.on(j,"click",g.open,i)
}if(i.lazyEvent){g.open(i.lazyEvent,i)
}}return g
};
function d(){var O;
var y;
var D=null,q=null,H=null;
var A=parseInt(YDom.getStyle("body","padding-right"),10);
var w=document.createElement("DIV");
var I=document.createElement("DIV");
I.id="dialog-place-holder";
var p=new YAHOO.util.CustomEvent("close");
var r=new YAHOO.util.CustomEvent("open");
var j=new YAHOO.util.CustomEvent("beforeOpen");
var z=new YAHOO.util.CustomEvent("submit");
var n=new YAHOO.util.CustomEvent("swap");
var B=new YAHOO.util.CustomEvent("contentChange");
var E={};
function h(){if(O.container){var Q=YDom.getRegion(O.container);
return Q.width
}else{return(YDom.getViewportWidth()+30)
}}function J(Y){var X=(Y&&Y.type==="click"||(Y==="keyPressed"||Y==="timer"||Y==="selfClose")),S=Y$("#dialog-wrapper iframe"),Q=YDom.get("body"),V=(Q)?Q.getElementsByTagName("a")[0]:document.getElementsByTagName("a")[1];
if(X){if(S.length){LI.hide(S)
}L();
var T=YDom.get("dialog-wrapper");
if(!T){return
}var R=Y$(".dialog-content",T,true);
if(R){R.innerHTML=""
}l();
YEvent.removeListener(window,"resize",m);
document.body.removeChild(T);
YDom.removeClass(document.body,"dialog-mask-active");
YDom.removeClass(document.body,"dialog-hide-select");
t.disable();
YDom.setStyle("body","padding-right",A+"px");
YDom.setStyle([YDom.get("header"),YDom.get("footer")],"margin-right","auto");
YDom.setStyle(document.getElementsByTagName("HTML")[0],"overflow","");
if(q){YEvent.removeListener(document,"click",J);
q=null
}if(D){clearTimeout(D);
D=null
}if(!O.disableFocusOnClose){if(y&&y.focus){try{y.focus()
}catch(U){try{V.focus()
}catch(W){}}}else{if(V){try{V.focus()
}catch(U){}}}}p.fire(Y.target,H.name,H.extra)
}YEvent.removeListener(document,"focusin",G);
return X
}var t=new YAHOO.util.KeyListener(document,{keys:27},{fn:J});
function F(R){O=R;
var T,S,Q="&nbsp";
if(O.content){if(O.content.title){T=O.content.title
}else{if(O.content.node){S=Y$(".dialog-title",O.content.node,true);
if(S){T=S.innerHTML;
YDom.setStyle(S,"display","none")
}}}}if(!T){T=Q
}w.innerHTML=YAHOO.lang.substitute(['<div class="dialog-window" role="document">','<span class="dialog-a11y-hidden">{start}</span>','<div class="dialog-title"><button class="dialog-close"><span class="dialog-a11y-hidden">{closeWindow}</span></button><h3 id="li-dialog-aria-label" class="title">{title}</h3></div>','<div class="dialog-body"></div>','<span class="dialog-a11y-hidden">{end}</span>',"</div>"].join(""),{title:T.replace(/</g,"&lt;").replace(/>/g,"&gt;"),closeWindow:e.closeThisWindow,start:e.start,end:e.end})
}function k(Q){var R=YEvent.getTarget(Q);
if(YDom.hasClass(R,"dialog-close")&&!R.disabled){var S=J(Q);
if(S){YEvent.preventDefault(Q)
}}else{if(YDom.hasClass(R,"dialog-submit")||(R.tagName==="INPUT"&&R.type&&R.type==="submit")){if(YDom.hasClass(R,"dialog-submit-suppress")){YEvent.preventDefault(Q)
}z.fire(R,H.name,H.extra)
}else{if(YDom.hasClass(R,"dialog-mask")&&f.modal.match(H.type)){YEvent.preventDefault(Q);
J(Q)
}}}}YEvent.on(w,"click",k);
function P(Q){var S='<p class="dialog-close">{closeWindow}</p>';
var R='<input class="btn-primary" type="submit" value="{submit}"> {cancel}';
return YAHOO.lang.substitute(['<div class="dialog-message">{message}</div>','<div class="dialog-content">{content}</div>','<div class="dialog-actions">',(Q&&Q.content&&Q.content.submitButton)?R:"",(Q&&Q.content&&Q.content.closeMessage)?S:"","</div>"].join(""),{cancel:e.or+' <span class="dialog-cancel dialog-close">'+e.cancel+"</span>",closeWindow:'<span class="dialog-cancel dialog-close">'+e.closeThisWindow+"</span>",message:(Q&&Q.content&&Q.content.msg)?"<p>"+Q.content.msg+"</p>":"",submit:(Q&&Q.content&&Q.content.submitButton!==true)?Q.content.submitButton:e.submit})
}function C(){YEvent.on(Y$(".dialog-title",w,true),"mousedown",function(Z){if(!YDom.hasClass(YEvent.getTarget(Z),"dialog-close")){T(Z)
}});
var X={};
var W={};
var Q=0,U=0;
var V=YDom.get("dialog-wrapper");
function T(Z){var aa=parseInt(YDom.getStyle(V,"width"),10)||0;
var ab=parseInt(YDom.getStyle(V,"height"),10)||0;
YDom.addClass(document.body,"dragging");
X={x:Z.clientX,y:Z.clientY};
W.left=W.left||parseInt(YDom.getStyle(V,"left"),10)||0;
W.top=W.top||parseInt(YDom.getStyle(V,"top"),10)||0;
Q=YDom.getDocumentWidth()-aa;
U=YDom.getDocumentHeight()-ab;
YEvent.on(document,"mouseup",S);
YEvent.on(document,"mousemove",Y);
R(true);
YEvent.stopEvent(Z)
}function Y(Z){W.left+=Z.clientX-X.x;
W.top+=Z.clientY-X.y;
W.left=Math.min(Math.max(W.left,0),Q);
W.top=Math.min(Math.max(W.top,0),U);
YDom.setStyle(V,"left",W.left+"px");
YDom.setStyle(V,"top",W.top+"px");
X={x:Z.clientX,y:Z.clientY}
}function S(){YDom.removeClass(document.body,"dragging");
YEvent.removeListener(document,"mouseup",S);
YEvent.removeListener(document,"mousemove",Y);
R(false)
}function R(Z){if(Z){document.body.ondrag=document.body.onselectstart=function(){return false
};
document.body.style.MozUserSelect="none"
}else{document.body.ondrag=document.body.onselectstart=null;
document.body.style.MozUserSelect=""
}}}function v(R){var T=O.content.method,S,Q;
YAHOO.util.Connect.initHeader("X-IsDialog","1");
S={success:function(U){if(H.showOnlyWhenReady){YDom.setStyle(w,"visibility","")
}var V=Y$(".dialog-body",w,true);
YDom.removeClass(V,"dialog-body-loading");
if(!U){x();
return false
}if(U&&U.responseText){var Y=U.getResponseHeader["Content-Type"];
if(Y&&Y.indexOf("application/json")>-1){var X=LI.parseJSON(U.responseText);
u({content:{html:X.html}})
}else{var W=YAHOO.lang.trim(U.responseText);
if(W.indexOf("<!DOCTYPE")===0||W.indexOf("<html")===0){x()
}else{u({content:{html:W}})
}}}},failure:function(){x()
},timeout:O.timeout};
if(T===b){Q=O.content.postData;
YAHOO.util.Connect.asyncRequest(b,R,S,Q)
}else{YAHOO.util.Connect.asyncRequest(a,R,S)
}}function x(){LI.Dialog().close();
if(!H.showOnlyWhenReady){LI.injectAlert(LI.i18n.get("Dialog-error-generic"),"error")
}}function o(Q,R){LI.asyncRequest(a,Q,{success:function(S){N(S.responseText,R)
},custom:{exception:function(S){x(S);
return false
}},timeout:O.timeout})
}function N(R,S){dust.render(S||O.content.dustTemplate,R,function Q(U,T){if(U){x()
}else{YDom.removeClass(Y$(".dialog-body",w,true),"dialog-body-loading");
u({content:{html:T,attentionMsg:O.content.attentionMsg,successMsg:O.content.successMsg}})
}})
}function m(Q){if(f.modal.match(O.type)){if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<7){var U=YDom.getClientRegion();
YDom.setStyle(w,"height",(U.bottom-U.top)+"px")
}}else{var S=Y$(".dialog-window",w,true),T=YDom.get("dialog-wrapper"),R=parseInt(YDom.getStyle(S,"width"),10);
YDom.setStyle(T,"left",(h()-R)/2+"px");
YDom.setStyle(T,"top",YDom.getDocumentScrollTop()+105+"px")
}}function M(ac,S){var U=(ac===null||typeof ac==="boolean")?"publicAPI":YEvent.getTarget(ac),ab;
if(YDom.inDocument("dialog-wrapper")&&(U!==y||U==="publicAPI")){J("selfClose")
}S.className=S.className||"";
var X=LI.DialogRetrofitV2Enabled||false;
if(X&&(S.className.split(" ").indexOf("dialog-v2")===-1)){S.className+=" dialog-v2-retrofit"
}H=S;
var Z=null;
if(typeof S.i18n==="object"){Z={};
YAHOO.lang.augmentObject(Z,e);
YAHOO.lang.augmentObject(e,S.i18n,true)
}w.className="dialog-mask dialog-"+S.type;
if(U!==y||U==="publicAPI"){F(S);
y=U
}u(S);
var W=Y$(".dialog-window",w,true);
YDom.setStyle(W,"width",S.width+"px");
YDom.setStyle(w,"visibility","hidden");
var Q=YDom.get("dialog-wrapper")||document.body.appendChild(document.createElement("DIV"));
Q.id="dialog-wrapper";
Q.innerHTML="";
if(S.className!==""){Q.className=S.className
}YDom.setStyle(Q,"top","");
YDom.setStyle(Q,"left","");
Q.appendChild(w);
LI.Controls.parseFragment(w);
var R=YDom.getStyle(w,"filter")||null;
if(f.modal.match(S.type)){ab=YAHOO.util.Region.getRegion(W);
YDom.setStyle(W,"margin-left",(S.width*-0.5)+"px");
var Y=YAHOO.util.Region.getRegion(Q);
if(S.scrollTopOnOpen){YDom.setStyle(document.getElementsByTagName("HTML")[0],"overflow","hidden")
}var T=YAHOO.util.Region.getRegion(Q).right-Y.right;
var ad=T+A;
YDom.addClass(document.body,"dialog-mask-active");
if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<7){var V=YDom.getClientRegion();
YDom.setStyle(w,"height",(V.bottom-V.top)+"px")
}}else{ab=YAHOO.util.Region.getRegion(w);
var aa=parseInt(YDom.getStyle(W,"width"),10);
YDom.setStyle(Q,"left",(h()-aa)/2+"px");
YDom.setStyle(Q,"top",YDom.getDocumentScrollTop()+105+"px");
if(f.autoSize.match(S.type)){YDom.addClass(Q,"auto-size")
}else{YDom.removeClass(Q,"auto-size")
}if(f.dragNDrop.match(S.type)){C()
}}YEvent.on(window,"resize",m);
j.fire(U,S.name,S.extra);
if(YDom.getLastChild(document.body)!==Q){document.body.appendChild(document.body.removeChild(Q))
}if(!H.showOnlyWhenReady){YDom.setStyle(w,"visibility","")
}t.enable();
if(f.timeout.match(S.type)){D=setTimeout(function(){J("timer")
},2000)
}if(f.docClick.match(S.type)){YEvent.on(document,"click",J);
q=true
}if((YAHOO.env.ua.ie===6)&&(S.type==="task-modal"||S.type==="interrupt")){document.location.href="#header"
}if(ac!==null){if(S.stopEvent){YEvent.stopEvent(ac)
}else{YEvent.preventDefault(ac)
}}r.fire(U,S.name,S.extra);
if(S.webtrack&&S.webtrack.key&&typeof(WebTracking)!=="undefined"){WebTracking.trackUserAction(S.webtrack.key,S.webtrack.val)
}if(Z){e=Z
}s();
if(S.type==="task-modal"){YEvent.addListener(document,"focusin",G)
}}function G(Q){var R=YEvent.getTarget(Q);
if(!YDom.isAncestor(w,R)){YEvent.stopEvent(Q);
w.focus()
}}function s(){if(!w){return
}w.setAttribute("aria-labelledby","li-dialog-aria-label");
w.setAttribute("role","dialog");
w.tabIndex=-1;
w.focus()
}function L(){var Q=YDom.getFirstChild(Y$(".dialog-content",w,true));
if(!Q){return
}if(YDom.inDocument(I)){I.parentNode.replaceChild(Q,I)
}else{if(H.content&&(H.content.url||H.content.dustDataUrl)){E[H.content.url||H.content.dustDataUrl]=Q.parentNode.removeChild(Q)
}}}function K(R,Q,S){S=S||Y$(".dialog-message",w,true);
Q=(Q)?Q:"attention";
S.innerHTML="<p>"+(R)+"</p>";
YDom.addClass(S,"alert");
YDom.removeClass(S,"attention");
YDom.removeClass(S,"success");
YDom.removeClass(S,"error");
YDom.addClass(S,Q);
YDom.setStyle(S,"display","")
}function l(Q){Q=Q||Y$(".dialog-message",w,true);
if(Q){Q.innerHTML="";
LI.hide(Q)
}}function u(R){var X=(R&&R.content)?R.content:{};
var Q=Y$(".dialog-body",w,true);
if(R.dependencies){i(R)
}else{if((X.url&&(!X.useCache||!E[X.url]))||(X.dustDataUrl&&(!X.useCache||!E[X.dustDataUrl]))){var S=Y$(".dialog-content",w,true);
if(S){S.innerHTML=""
}YDom.addClass(Q,"dialog-body-loading");
if(X.url){v(X.url)
}else{if(X.dustDataUrl){o(X.dustDataUrl,X.dustTemplate)
}}}else{if(X.dustData){N(X.dustData,X.dustTemplate)
}else{if(X.attentionMsg||X.successMsg||X.node||X.html||(X.useCache&&X.url&&E[X.url])||(X.useCache&&X.dustDataUrl&&E[X.dustDataUrl])){var V=function(ad){var af=Y$(".dialog-message",ad,true);
var ae=Y$(".dialog-content",ad,true);
var aa=YDom.getNextSibling(ae);
var ac;
YDom.setStyle([af,ae,aa],"display","none");
if(X.attentionMsg||X.successMsg){ae.innerHTML="";
K((X.attentionMsg||X.successMsg),((X.successMsg)?"success":"attention"),af)
}if(X.node){var ab=YDom.get(X.node);
ab.parentNode.replaceChild(I,ab);
ae.innerHTML="";
ae.appendChild(ab);
YDom.setStyle(ae,"display","")
}else{if(X.html){ae.innerHTML=X.html;
YDom.setStyle(ae,"display","")
}else{if(X.useCache&&X.url&&E[X.url]){ae.innerHTML="";
ae.appendChild(E[X.url]);
YDom.setStyle(ae,"display","")
}}}if(R.content&&(R.content.submitButton||R.content.closeMessage)){YDom.setStyle(aa,"display","")
}LI.Controls.parseFragment(Q);
ac=Y$("iframe",ae);
if(ac.length){LI.show(ac)
}B.fire(H.name,H.extra)
};
var Z=P(R);
var U=YDom.inDocument("dialog-wrapper");
var T=Q.cloneNode(true);
var W=Q.parentNode;
var Y=YDom.getStyle(Q,"height");
YDom.setStyle(Q,"height",Y);
L();
YDom.setStyle(Q,"height","");
Q.innerHTML=Z;
V(Q)
}}}}}function i(V){var X=V.dependencies;
if(typeof X==="string"){X=LI.Controls.resolveName(X)
}if(!X){return
}var Q=(X.jsFiles===undefined),W=(X.cssFiles===undefined),S;
var U=Y$(".dialog-body",w,true);
YDom.addClass(U,"dialog-body-loading");
var T=function(){if(S){return
}if(Q&&W){S=true;
YDom.removeClass(U,"dialog-body-loading");
delete V.dependencies;
u(V)
}};
var R=function(){var Y=['<div class="dialog-container interrupt">','<div class="alert attention"><p><strong>'+LI.i18n.get("Dialog-error-generic")+"</strong></p></div>","</div>"].join(" ");
u({name:V.name,content:{html:Y,closeMessage:true}})
};
if(!Q||!W){if(!Q){YAHOO.util.Get.script(X.jsFiles,{onSuccess:function(){Q=true;
T()
},onFailure:function(){R()
},timeout:1000})
}if(!W){YAHOO.util.Get.css(X.cssFiles,{onSuccess:function(){W=true;
T()
},onFailure:function(){R()
},timeout:1000})
}}else{T()
}}return{contentChangeEvent:B,close:function(){J("selfClose")
},closeEvent:p,open:function(){var Q,R;
if(arguments.length===1){Q=null;
R=arguments[0]
}else{Q=arguments[0];
R=arguments[1]
}M(Q,R)
},openEvent:r,beforeOpenEvent:j,submitEvent:z,swapEvent:n,swap:function(R){var Q=(H&&H.name)?H.name:"";
l();
u(R);
if(H){n.fire("",Q,H.extra)
}},injectAlert:K,removeAlert:l,handlesOwnLazyLoading:true}
}}());
YAHOO.register("LI.Dialog",LI.Dialog,{});(function(){remote_nav.setUp({"containerIDs":["a11y-menu","header"]});
remote_nav.initializeControls();
remote_nav.debug.sbx_log("REMOTE NAV SANBOX DONE")
}());
/*  THE "NAV END" | "no js" file
 *  ----------------------------------------------------------------------------
 *  My purpose in life:
 *  --------------------------
 *  I finish the job of navstart.nocheck.js - closing the anonymous function
 *  scope for the sandbox.  Like navstart.nocheck.js, I'm also not technically
 *  valid javascript, and therefore won't pass JSHint.  We both exist, however,
 *  so that logic modifications to SCDS do not have to be made.
 *
 *  I'm included by:                - remote_nav SCDS concat group
 *
 *  I'm styled by:                  - N/A; JS plumbing/infrastructure
 *
 *  File PRE-CONDITIONS:
 *  File POST-CONDITIONS:
 *  CAVEATS/GOTCHAS:
 */
}());