'+u+"";v=C(g),b=C(g),v.attr("id","optgroup-selectable-"+m),b.attr("id","optgroup-selection-"+m),v.append(C($)),b.append(C($)),l.options.selectableOptgroup&&(v.find(".ms-optgroup-label").on("click",function(){var e=f.children(":not(:selected, :disabled)").map(function(){return C(this).val()}).get();l.select(e)}),b.find(".ms-optgroup-label").on("click",function(){var e=f.children(":selected:not(:disabled)").map(function(){return C(this).val()}).get();l.deselect(e)})),l.$selectableUl.append(v),l.$selectionUl.append(b)}t=null==t?v.find("ul").children().length:t+1,c.insertAt(t,v.children()),d.insertAt(t,b.children())}else t=null==t?l.$selectableUl.children().length:t,c.insertAt(t,l.$selectableUl),d.insertAt(t,l.$selectionUl)},addOption:function(e){var i=this;void 0!==e.value&&null!==e.value&&(e=[e]),C.each(e,function(e,t){if(void 0!==t.value&&null!==t.value&&0===i.$element.find("option[value='"+t.value+"']").length){var s=C('"),l=(e=parseInt(void 0===t.index?i.$element.children().length:t.index),null==t.nested?i.$element:C("optgroup[label='"+t.nested+"']"));s.insertAt(e,l),i.generateLisFromOption(s.get(0),e,t.nested)}})},escapeHTML:function(e){return C("").text(e).html()},activeKeyboard:function(s){var l=this;s.on("focus",function(){C(this).addClass("ms-focus")}).on("blur",function(){C(this).removeClass("ms-focus")}).on("keydown",function(e){switch(e.which){case 40:case 38:return e.preventDefault(),e.stopPropagation(),void l.moveHighlight(C(this),38===e.which?-1:1);case 37:case 39:return e.preventDefault(),e.stopPropagation(),void l.switchList(s);case 9:if(l.$element.is("[tabindex]")){e.preventDefault();var t=parseInt(l.$element.attr("tabindex"),10);return t=e.shiftKey?t-1:t+1,void C('[tabindex="'+t+'"]').focus()}e.shiftKey&&l.$element.trigger("focus")}if(-1