!function(F){var o={method:"GET",contentType:"json",queryParam:"q",searchDelay:300,minChars:1,propertyToSearch:"name",jsonContainer:null,hintText:"Type in a search term",noResultsText:"No results",searchingText:"Searching...",deleteText:"×",animateDropdown:!0,tokenLimit:null,tokenDelimiter:",",preventDuplicates:!1,tokenValue:"id",prePopulate:null,processPrePopulate:!1,idPrefix:"token-input-",resultsFormatter:function(e){return"
  • "+e[this.propertyToSearch]+"
  • "},tokenFormatter:function(e){return"
  • "+e[this.propertyToSearch]+"

  • "},onResult:null,onAdd:null,onDelete:null,onReady:null},P={tokenList:"token-input-list",token:"token-input-token",tokenDelete:"token-input-delete-token",selectedToken:"token-input-selected-token",highlightedToken:"token-input-highlighted-token",dropdown:"token-input-dropdown",dropdownItem:"token-input-dropdown-item",dropdownItem2:"token-input-dropdown-item2",selectedDropdownItem:"token-input-selected-dropdown-item",inputToken:"token-input-input-token"},O=0,A=1,z=2,_=8,q=13,B=27,E=37,V=38,W=39,G=40,H=108,N=188,t={init:function(e,t){var n=F.extend({},o,t||{});return this.each(function(){F(this).data("tokenInputObject",new F.TokenList(this,e,n))})},clear:function(){return this.data("tokenInputObject").clear(),this},add:function(e){return this.data("tokenInputObject").add(e),this},remove:function(e){return this.data("tokenInputObject").remove(e),this},get:function(){return this.data("tokenInputObject").getTokens()}};F.fn.tokenInput=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):t.init.apply(this,arguments)},F.TokenList=function(e,t,c){var n;"string"===F.type(t)||"function"===F.type(t)?(c.url=t,n=I(),void 0===c.crossDomain&&(-1===n.indexOf("://")?c.crossDomain=!1:c.crossDomain=location.href.split(/\/+/g)[1]!==n.split(/\/+/g)[1])):"object"==typeof t&&(c.local_data=t),c.classes?c.classes=F.extend({},P,c.classes):c.theme?(c.classes={},F.each(P,function(e,t){c.classes[e]=t+"-"+c.theme})):c.classes=P;var o,i=[],a=0,u=new F.TokenList.Cache,d=F('').css({outline:"none"}).attr("id",c.idPrefix+e.id).focus(function(){null!==c.tokenLimit&&c.tokenLimit===a||c.hintText&&(k.html("

    "+c.hintText+"

    "),L())}).blur(function(){D(),F(this).val("")}).keydown(function(e){var t,n;switch(e.keyCode){case E:case W:case V:case G:if(F(this).val()){var o=null;return(o=e.keyCode===G||e.keyCode===W?F(r).next():F(r).prev()).length&&R(o),!1}t=f.prev(),n=f.next(),t.length&&t.get(0)===s||n.length&&n.get(0)===s?e.keyCode===E||e.keyCode===V?C(F(s),O):C(F(s),A):e.keyCode!==E&&e.keyCode!==V||!t.length?e.keyCode!==W&&e.keyCode!==G||!n.length||y(F(n.get(0))):y(F(t.get(0)));break;case _:if(t=f.prev(),!F(this).val().length)return s?(w(F(s)),p.change()):t.length&&y(F(t.get(0))),!1;1===F(this).val().length?D():setTimeout(function(){S()},5);break;case q:case H:case N:return r?(T(F(r).data("tokeninput")),p.change()):T(null),!1;case B:return D(),!0;default:String.fromCharCode(e.which)&&setTimeout(function(){S()},5)}}),p=F(e).hide().val("").focus(function(){d.focus()}).blur(function(){d.blur()}),s=null,l=0,r=null,h=F("