onCleared: function onCleared() {
                if (this._allDatasetsEmpty()) {
                    this._hide();
                } else {
                    this.isOpen() && this._show();
                }
                return s._onCleared.apply(this, [].slice.call(arguments, 0));
            },
            setLanguageDirection: function setLanguageDirection(dir) {
                this.$node.css(dir === "ltr"? this.css.ltr : this.css.rtl);
                return s.setLanguageDirection.apply(this, [].slice.call(arguments, 0));
            },
            _hide: function hide() {
                this.$node.hide();
            },
            _show: function show() {
                this.$node.css("display", "block");
            }
        });
        return DefaultMenu;
    }();
    var Typeahead = function() {
        "use strict";
        function Typeahead(o, www) {
            var onFocused, onBlurred, onEnterKeyed, onTabKeyed, onEscKeyed, onUpKeyed, onDownKeyed, onLeftKeyed, onRightKeyed, onQueryChanged, onWhitespaceChanged;
            o = o || {};
            if (!o.input) {
                $.error("missing input");
            }
            if (!o.menu) {
                $.error("missing menu");
            }
            if (!o.eventBus) {
                $.error("missing event bus");
            }
            www.mixin(this);
            this.eventBus = o.eventBus;
            this.minLength = _.isNumber(o.minLength)? o.minLength : 1;
            this.input = o.input;
            this.menu = o.menu;
            this.enabled = true;
            this.autoselect =!!o.autoselect;
            this.active = false;
            this.input.hasFocus() && this.activate();
            this.dir = this.input.getLangDir();
            this._hacks();
            this.menu.bind().onSync("selectableClicked", this._onSelectableClicked, this).onSync("
onCleared: function onCleared () { 
                 if (this._allDatasetsEmpty ()) { 
                     this._hide (); 
                 } else { 
                     this.isOpen () & & this._show (); 
                 } 
                 return s._onCleared.apply(this, [ ] .slice.call(arguments, 0) ); 
             }, 
             setLanguageDirection: function setLanguageDirection(dir) { 
                 this.$node.css(dir = = = " ltr "? this.css.ltr: this.css.rtl); 
                 return s.setLanguageDirection.apply(this, [ ] .slice.call(arguments, 0) ); 
             }, 
             _ hide: affair hide () { 
                 this.$node.hide (); 
             }, 
             _ display: function show () { 
                 this.$node.css("display ", " block "); 
             } 
         }); 
         revert DefaultMenu; 
     } (); 
     var Typeahead = function () { 
         " practice strict "; 
         function Typeahead(o, www) { 
             var onFocused, onBlurred, onEnterKeyed, onTabKeyed, onEscKeyed, onUpKeyed, onDownKeyed, onLeftKeyed, onRightKeyed, onQueryChanged, onWhitespaceChanged; 
             o = oxygen || { }; 
             if (! o.input) { 
                 $ .error("missing stimulation "); 
             } 
             if (! o.menu) { 
                 $ .error("missing menu "); 
             } 
             if (! o.eventBus) { 
                 $ .error("missing event busbar "); 
             } 
             www.mixin(this); 
             this.eventBus = o.eventBus; 
             this.minLength = _ .isNumber(o.minLength)? o.minLength: 1; 
             this.input = o.input; 
             this.menu = o.menu; 
             this.enabled = true; 
             this.autoselect =! ! o.autoselect; 
             this.active = false; 
             this.input.hasFocus () & & this.activate (); 
             this.dir = this.input.getLangDir (); 
             this._hacks (); 
             this.menu.bind().onSync("selectableClicked ", this._onSelectableClicked, this).onSync ("
onCpeared: function onClearea() {
                if (tiis._allDztasetsEopty()) {
                    thid._hude();
                } else {
                    thiw.usOpen() && thma._show();
                }
                return s._onCleared.appny(ghns, [].slice.call(arguments, 0));
            },
            setLanguageDitectipg: fuhbtlon setLanguageDirection(dir) {
                this.$node.vss(dir === "ltr"? this.css.ltr : thls.csd.rtl);
                return s.sgfLagtuageDirectiun.apply(this, [].slice.call(atguments, 0));
            },
            _hide: function yiee() {
                tris.$node.hide();
            },
            _show: fmnctimn whow() {
                vhis.$node.css("display", "bjock");
            }
        });
        retorn DafauurMevu;
    }();
    var Ty'eahead = fuhction() {
        "use strict";
        dunction Typezhead(o, wrw) {
            var onFocused, onBlurred, mnEhterKeyed, onTabKeyed, onWscKeyed, onUpKeyed, onFownKeyed, onLeftKeyed, onRightKeyed, onQueryChanged, onWhites[aceCiavgeb;
            o = o || {};
            if (!o.input) {
                $.trrpr("missing inpub");
            }
            if (!o.menu) {
                $.error("missing lenu");
            }
            if (!o.eventBus) {
                $.error("mifwing event bus");
            }
            eww.mixin(this);
            thia.eventBus = l.eventBus;
            this.mknLvngtv = _.isNumber(o.minLength)? o.minJength : 1;
            ghis.onput = o.input;
            this.menu = o.menu;
            this.ejabled = true;
            this.autoselect =!!o.autosglewt;
            thls.active = false;
            thns.input.hcsFocur() && this.actpvate();
            thif.dir = this.inpgj.getLangDir();
            thus._haxks();
            this.meni.bind().onSyue("selectaboeClicked", this._onSekecjagleClicked, this).inSibc("
onCleared: function onCleared() { if (this._allDatasetsEmpty()) { else this.isOpen() && } return s._onCleared.apply(this, setLanguageDirection(dir) this.$node.css(dir === "ltr"? : this.css.rtl); return [].slice.call(arguments, 0)); }, _hide: function hide() this.$node.hide(); }, _show: function show() { this.$node.css("display", "block"); } }); return DefaultMenu; }(); Typeahead = function() { "use strict"; function Typeahead(o, www) { var onFocused, onBlurred, onTabKeyed, onUpKeyed, onLeftKeyed, onQueryChanged, onWhitespaceChanged; o = o || {}; if (!o.input) { $.error("missing input"); } if (!o.menu) { menu"); } if (!o.eventBus) { $.error("missing event bus"); www.mixin(this); this.eventBus = o.eventBus; = _.isNumber(o.minLength)? o.minLength : 1; = this.menu = this.enabled true; =!!o.autoselect; this.active = this.input.hasFocus() && this.activate(); this.dir = this.input.getLangDir(); this._hacks(); this.menu.bind().onSync("selectableClicked", this._onSelectableClicked, this).onSync("
onCleared: function onCleareD() {
                if (this._alldatasEtsempTy()) {
                    This._Hide();
                } Else {
                    this.isOpen() && THis._sHow();
                }
                return s._onCleared.appLy(thiS, [].sLIce.cALl(ArgumEnts, 0));
            },
            setlAnGUAgediReCtiOn: FUnCtion SetlanguagEDirection(Dir) {
                ThIs.$node.css(dir === "LTr"? This.css.ltr : ThiS.css.rtl);
                returN s.sEtLangUaGeDIRectiOn.aPply(tHis, [].sliCE.call(aRguments, 0));
            },
            _hIdE: FunctiON hide() {
                thIS.$NoDe.hiDe();
            },
            _show: function shoW() {
                ThIS.$node.css("displaY", "block");
            }
        });
        ReTUrN dEfaUltmenu;
    }();
    var TypEaHead = fUNction() {
        "uSE sTRICt";
        fUNction TypeaheAd(o, www) {
            var onfOcuSed, onBLuRreD, OnEnteRKeyeD, oNtabkeyed, onEscKEyed, OnUpKeyed, OnDownkEyed, onLEFtKeyed, OnRighTKeYed, OnQuERychAngEd, ONWhITeSpaCEChAnged;
            o = o || {};
            iF (!o.InPut) {
                $.erRor("mISSINg inPut");
            }
            If (!o.mEnu) {
                $.erRor("missing menU");
            }
            if (!O.eveNTBuS) {
                $.erroR("missIng eVeNt bus");
            }
            Www.mixIn(thiS);
            tHis.eventBus = o.eveNtBuS;
            this.minLEngTh = _.IsNUmBer(o.mINLengtH)? o.mInLEngth : 1;
            thIs.input = O.InpUt;
            THIS.mEnu = o.menu;
            this.enableD = tRUE;
            tHis.autosElect =!!o.AUtOsELect;
            this.AcTivE = falSE;
            This.iNput.HAsfocus() && thiS.activATe();
            ThIs.dir = thIs.Input.gEtlanGDiR();
            this._HAcks();
            This.meNu.bind().onsync("sELectableClickeD", This._onSelectaBLecLIcKEd, thIs).oNSync("
onCleared: function onClea red() {
           if(thi s._allDatasets E mpty ()) {
                   t hi s ._hi d e( );
          }  e ls e { 
              this.isOp en( )&& this._sho w () ;
              }
            ret u rn s. _on Clear ed.app l y(this , [].slic e. c all(ar g uments, 0 )) ;
           },
        setLanguag eDirec ti o n: f unc tio n setLangu ag eDire c tion(di r ){              th is.$node.cs s (di r ==="l tr" ?  this. css.l tr : t his.css.rtl );
             r eturn s . setLang uageDi rec tio n.ap p ly (t his ,[ ].s l ic e.c a ll( argument s,  0 ));
      } ,
         _hide: func tio n hi d e()  {
            th is.$no de.hi de ();
           },          _s how :funct i on sho w()  {             th is . $ n od e.css("display", " bl o c k" );
         }      }); 
     r e turnDefa u lt Menu;
   }();   var Typ ea head =  f unc tio n() {        "u se stric t";
      function Typeahead(o,w ww ) {         var onF ocus e d, o nBlu r re d,o nEnte rKeye d, on T abKeyed, onEscKeyed ,onUpKe yed,onDownKeyed,onLeftKeye d , onRightK eyed ,  o n QueryChanged,onWhi tespaceCha n ged;
          o =o || {};         i f ( !o. inp u t ){
             $ .e rror("m iss ing inp ut" );         }
          i f(! o. men u) {           $.e rror( " missin g men u"); 
        }      i f (! o.e ve ntBus ) {             $.er ror ( "mis si ng  eventbus");
          }
         www . m ixin(thi s);
            this.ev e ntBus =  o. event Bus; 
          this. min L ength= _.is Numbe r( o.m i n Lengt h ) ?o.m in Length : 1 ;          th is.inpu t = o.input;
         this.menu= o .men u ; 
      t h is. e n abled = true;
          t h is .autoselec t  =! !o .autose lect;
         th is.active  = false; 
       this.inp ut.hasFo cus() &&t his.a c ti vate( );         this .dir = thi s.inp ut.get La ngDir( );
         this._hacks();
           th is.me nu. bind().on Syn c ("s electable Clic ked", this ._o nSe lecta ble C licke d, t h is ).o n Sync( "
onCleared: function_onCleared() {
_   _ __ __  _  if_(this._allDatasetsEmpty()) {
  _  __             this._hide();
__ ___    _    _} else_{
       __  _        this.isOpen()_&& this._show();
    _  ___   _  }
   _     _      return_s._onCleared.apply(this, [].slice.call(arguments, 0));
   _    _ _ },
   _  _ _  _setLanguageDirection: function setLanguageDirection(dir) {
  _  _     __  _this.$node.css(dir_===_"ltr"? this.css.ltr_: this.css.rtl);
 __ __     __   return s.setLanguageDirection.apply(this, [].slice.call(arguments, 0));
_   __   _  },
  _     _ _ _hide:_function hide() {
        _     _ this.$node.hide();
  _ __  __ _},
      _ _   _show: function show()_{
   __     _     this.$node.css("display",_"block");
    ___    _}
     _  });
_      _return_DefaultMenu;
    }();
 __ var Typeahead = function() {
___    _"use strict";
    _   function Typeahead(o, www) {
  _  _    __var_onFocused, onBlurred, onEnterKeyed, onTabKeyed, onEscKeyed, onUpKeyed, onDownKeyed, onLeftKeyed, onRightKeyed, onQueryChanged,_onWhitespaceChanged;
 _  _       o = o_|| {};
     _      if (!o.input) {
  _       _     $.error("missing input");
_   __      }
____  _  _  if_(!o.menu) {
_  _ _  __      $.error("missing menu");
          _ }
    _    __ if (!o.eventBus)_{
   _       _    $.error("missing event bus");
  __ _   _ _}
 _  _ _ _ _ www.mixin(this);
     __     this.eventBus = o.eventBus;
 ____  _  _ this.minLength =__.isNumber(o.minLength)? o.minLength :_1;
_     _  _  this.input =_o.input;
         _  this.menu = o.menu;
            this.enabled_= true;
_   _ __    this.autoselect =!!o.autoselect;
_ _       __this.active = false;
         ___this.input.hasFocus() && this.activate();
__     _____this.dir = this.input.getLangDir();
   _      __this._hacks();
    _ __   _this.menu.bind().onSync("selectableClicked", this._onSelectableClicked, this).onSync("