"+n+" "+t.config.saAria.shownText+"")),s.notify(B)},show:function(){var e=this,t=e.config,i=e.elems.sbInput.value,s=i.length;e.updateRows(),e.app.notify(P),e.shown&&e.sameQuery()||(e.lastInput=i,st.maxInput?e.hide():(e.model.fetch(),e.triggered=!0))},hide:function(){var e=this,t=(s=e.elems).sbInput,i=s.saAria,s=s.sbForm,n=e.config,a=e.app;a.notify(M),T.removeClass(w.body,n.typingClass),s&&s.parentElement&&T.removeClass(s.parentElement,n.typingClass),T.removeClass(s,n.noResultClass),e.clearAssist(),e.shown=!1,e.triggered=!1,n.restoreScrollPosition&&window.scroll({top:e.previousScrollY}),t&&(T.set(t,"aria-expanded","false"),e.useTextArea)&&T.set(t,"rows","1"),i&&(T.set(i,"aria-expanded","false"),i.innerHTML=T.cleanHTML("
"+e.config.saAria.closedText+"")),a.notify(O)},autoSelect:function(e){var t,i=this.config.autoSelect;i&&(!0===i&&0===e.idx||"[object Object]"===Object.prototype.toString.call(i)&&(t=e.data).m==i.m&&i.exact&&t.k.toLowerCase()===t.q.toLowerCase())&&(this.assistItem=e)},clearAssist:function(){var e=this.elems;e.saTray.innerHTML="",this.items.splice(0,this.items.length),this.assistItem=null,T.set(e.sbInput,oe,"")},createItem:function(e){var t=e.idx,i={idx:t,data:e.origData},s=T.htmlEncode,n=this.config,a=this.app.createElem,o={},r=(n.highlight&&T.merge(o,n.highlight),e.highlight&&T.merge(o,e.highlight),a(n.saItem,"li"));return(t=(T.set(r,"pos",t),r.id+=t,a(n.saTitle,"span"))).innerHTML=T.cleanHTML(e.t||(n.boldTag&&e.k&&e.q?T.bold(n.boldTag,s(e.k),s(e.q),o):s(e.k))),r.appendChild(t),i.li=r,i.title=t,i},resetQuery:function(){this.elems.sbInput.value=this.origQuery},reset:function(){var e=this,t=e.config,i=e.elems.sbForm;t.resetQuery&&e.resetQuery(),e.hide(),i.action=e.origAction,e.app.notify(H)},sameQuery:function(){return this.elems.sbInput.value==this.lastInput},updateRows:function(){var e=this,t=e.config,i=e.elems.sbInput,s=e.app.getElemStyleValue;e.useTextArea&&(e.rowHeight||(e.rowHeight=t.inputRowHeight||i.clientHeight-parseInt(s(i,"padding-top"),10)-parseInt(s(i,"padding-bottom"),10)),i.style.height=0,T.set(i,"rows",Math.min(Math.floor(i.scrollHeight/e.rowHeight),t.inputMaxRows||5)),i.style.height="")}},ce),c.initConfig=function(){return{elems:{sbForm:"sb-form",sbInput:"sb-input",sbSubmit:"sb-search",sbClear:"sb-clr",sbCancel:"sb-cancel",saTray:"sa-tray"},customEvent:{},sa:{css:"sa",attrs:{type:"normal"}},saList:{css:"sa-list",attrs:{role:"listbox"},style:{cursor:"pointer"}},saItem:{css:"sa-item",attrs:{role:"option",id:"sa-item"}},saTitle:{css:"sa-item-title"},saAria:{shownText:"new suggestions shown",closedText:"Suggestion box closed",css:"sa-aria-live-region",attrs:{"aria-live":"polite"},style:{position:"absolute",left:"-9999px"}},saBE:{host:"",base:"/sugg/gossip/gossip-us-ura/",params:{l:1,bm:3,output:"sd1",nresults:10}},shBE:{host:"",base:"/history"},minInput:0,maxInput:255,boldTag:"{s}",ylc:{_r:2},ylcAssist:{use_case:""},hideOnOutsideClick:!0,noQueryClass:"sa-noQuery",typingClass:"typing",noResultClass:"sf-noResult"}},k.hideSbClr=(de.prototype={init:function(e){(this.app=e).on(P,pe,this),e.on(R,pe,this)}},de),k.entityFocus=(fe.prototype={init:function(e){(this.app=e).on(V,ue,this)}},fe),k.saFr2=(_e.prototype={init:function(e){var t=this;(t.app=e).on(R,me,t),e.on(I,ge,t),e.on(D,ve,t),e.on(K,ye,t),e.on(G,ye,t),e.on(H,be,t)}},_e),k.ipos=(Se.prototype={init:function(e){(this.app=e).on(P,Ce,this),e.on(I,Ee,this)}},Se),k.ylcEncode=(ke.prototype={init:function(e){(this.app=e).on(D,we,this),e.on(V,Te,this)}},ke),k.saTray=(xe.prototype={init:function(e){(this.app=e).on(x,Ie,this)}},xe),k.saFlvr=(Ae.prototype={init:function(e){e.on(F,Re,this)}},Ae),k.saOverlay=(Ne.prototype={init:function(e){e.on(R,Le,this)}},Ne),k.saPASF=(Me.prototype={init:function(e){var t=this;t.pasf=[],t.relatedStocks=[],t.beforeNode=null,(t.app=e).on(I,Fe,t),e.on(F,He,t),e.on(N,Pe,t)}},Me),k.saRelatedStocks=(qe.prototype={init:function(e){var t=this;t.pasf=[],t.relatedStocks=[],t.beforeNode=null,t.currentPos=0,(t.app=e).on(F,Oe,t),e.on(N,Be,t)}},qe),k.saShoppingRefinement=(Ke.prototype={init:function(e){var t=this;t.shoppingRefinement=[],t.beforeNode=null,t.currentPos=0,t.category="",(t.app=e).on(A,Ue,t),e.on(F,De,t),e.on(N,Ge,t)}},Ke),k.saWhatToWatch=(Qe.prototype={init:function(e){var t=this;t.whatToWatch=[],t.beforeNode=null,t.currentPos=0,(t.app=e).on(i,Ve,t),e.on(F,We,t),e.on(N,Ye,t)}},Qe),k.saEdit=(je.prototype={init:function(e){e.on(F,ze,this)}},je),k.saEmptyState=($e.prototype={init:function(e){var t=this;t.history=[],t.trending=[],t.beforeNode=null,(t.app=e).on(i,Xe,t),e.on(F,Ze,t),e.on(N,Je,t)}},$e),k.saAnnot=(tt.prototype={init:function(e){e.on(F,et,this)}},tt),k.saStock=(nt.prototype={init:function(e){(this.app=e).on(L,it,this),e.on(F,st,this)}},nt),k.saSport=(rt.prototype={init:function(e){(this.app=e).on(L,at,this),e.on(F,ot,this)}},rt),k.saWeather=(pt.prototype={init:function(e){(this.app=e).on(L,lt,this),e.on(F,ct,this)}},pt),k.saEntertainments=(l="show_subtitle",p="year",d="genre",h="releaseDate",u="offer",f="tvNetwork",ht.prototype={init:function(e){(this.app=e).on(L,dt,this),e.fdToSH=e.fdToSH.concat([l,p,d,h,u,f])}},ht),k.saFlightStatus=(gt.prototype={init:function(e){(this.app=e).on(L,ft,this),e.on(F,mt,this)}},gt),k.saCurrencyConverter=(bt.prototype={init:function(e){(this.app=e).on(L,vt,this),e.on(F,yt,this)}},bt),k.saUnitConverter=(a="resultUnitAbbr",o="resultUnit",Et.prototype={init:function(e){(this.app=e).on(L,_t,this),e.on(F,Ct,this),e.fdToSH=e.fdToSH.concat([a,o,"num"])}},Et),k.saAI=(m=document,r="sa-ai",Rt.prototype={init:function(e){(this.app=e).on(q,St,this),e.on(L,wt,this),e.on(F,Tt,this),e.on(N,kt,this),e.on(U,It,this)}},Rt),k.saPreview=(g="short_desc",v="o_imgUrl",Bt.prototype={init:function(e){var t=this;t.disablePreview=!0,t.previewCol=null,t.firstItem=null,t.hoverDebounce=null,t.prevHoverIndex=-1,t.prevActiveIndex=-1,(t.app=e).on(i,At,t),e.on(F,Lt,t),e.on(N,Nt,t),e.on(J,Ft,t),e.on($,Pt,t),e.on(U,Ht,t),e.on(O,Mt,t),e.fdToSH=e.fdToSH.concat([g,v])}},Bt),k.saImg=(Ut.prototype={init:function(e){e.on(F,qt,this)}},Ut),k.saSubTray=(Wt.prototype={init:function(e){var t=this;t.app=e,t.sqpos=t.toleft=0,e.on(A,Dt,t),e.on(L,Gt,t),e.on(N,Kt,t),e.on(O,Vt,t)}},Wt),k.saGroup=(jt.prototype={init:function(e){var t=this;t.app=e,t.grps=[],t.mkrs={},e.on(F,Yt,t),e.on(N,zt,t)}},jt),k.saFts=(Zt.prototype={init:function(e){e.on(F,Xt,this)}},Zt),k.saPCActn=(ii.prototype={init:function(e){var t=this;t.app=e,t.selectedIndex=-1,e.on(i,Jt,t),e.on(q,$t,t),e.on(Y,ei,t),e.on(z,ti,t)}},ii),k.anykey=(ni.prototype={init:function(e){(this.app=e).on(q,si,this)}},ni),k.tapRmv=(oi.prototype={init:function(e){(this.app=e).on(U,ai,this)}},oi),k.tapClr=(li.prototype={init:function(e){(this.app=e).on(q,ri,this)}},li),k.feedback=(y=T,ci.prototype={appendFeedback:function(e){this.canReport&&e.parentNode.appendChild(this.reportLink)},populateList:function(e){for(var t=this.config.css.namespace,i=(this.fdata={query:e.q,gprid:e.l?e.l.gprid:"",suggestions:{results:[]}},this.createElem({tag:"ul"})),s={},n=(s[ee]=!0,s[ne]=!0,s[te]=!0,0),a=0;a