text: !function(e,n){"use strict";function t(t){e.GenkiSearchTimeout&&e.clearTimeout(GenkiSearchTimeout),e.GenkiSearchTimeout=e.setTimeout(function(){var i,l=n.createDocumentFragment(),r=0,u=0;if(o.innerHTML="",t)for(;u<c;u++)-1!=s[u].innerText.toLowerCase().indexOf(t.toLowerCase())&&s[u].getElementsByTagName("A")[0]&&((i=s[u].cloneNode(!0)).dataset.lesson=i.getElementsByTagName("A")[0].href.replace(/.*?\/(lesson-\d+).*|.*?\/(study-tools).*|.*?\/(appendix).*/,function(e,n,t,i){return n?n.charAt(0).toUpperCase()+n.split("-").pop():t?"tool":i?"appendix":void 0}),i.title=s[u].innerText,/^file|^http/.test(i.dataset.lesson)||(l.appendChild(i),r++));l.childNodes.length?o.appendChild(l):o.innerHTML=t?'<li>No exercises found for "'+t+'".</li>':"",a.innerHTML=r?"("+r+') <a class="fa" style="color:#F60;" href="#copy-search-link" title="Copy the search link" onclick="GenkiModal.open({title : \'Copy Search Link\',content : \'<div class=&quot;center&quot;><p>You can copy the direct search link from the box below.</p><textarea id=&quot;copied-search-link&quot; onfocus=&quot;this.select();&quot; style=&quot;width:80%;height:100px;&quot;>'+e.location.protocol+"//"+e.location.host+e.location.pathname+"?search="+encodeURIComponent(t)+"#quick-search-exercises</textarea></div>',focus : '#copied-search-link'}); return false;\">&#xf0ea;</a>":"",delete e.GenkiSearchTimeout},300)}var i=n.getElementById("quick-search"),o=n.getElementById("quick-search-results"),a=n.getElementById("quick-search-hits"),s=n.querySelectorAll(".lesson-exercises li"),c=s.length;if(e.location.search)for(var l,r=e.location.search.slice(1).split("&"),u=0,d=r.length;u<d;u++)if(l=r[u].split("="),/^search$/i.test(l[0])){i.value=decodeURIComponent(l[1]);break}i.oninput=function(){t(this.value)},i.value&&t(i.value),AddJumpArrowsTo(".lesson-title","quick-nav","Jump to Quick Navigation"),e.GenkiAnn={msg:n.querySelectorAll(".announcement"),index:0,next:function(e,n){GenkiAnn.msg[GenkiAnn.index].className+=" announce-hidden","number"==typeof e?(GenkiAnn.index+=e,-1==GenkiAnn.index&&(GenkiAnn.index=GenkiAnn.msg.length-1)):GenkiAnn.index++,GenkiAnn.msg[GenkiAnn.index]||(GenkiAnn.index=0),GenkiAnn.msg[GenkiAnn.index].className=GenkiAnn.msg[GenkiAnn.index].className.replace(" announce-hidden","")},rotate:function(){GenkiAnn.rotator=e.setInterval(GenkiAnn.next,15e3)}},GenkiAnn.msg.length>1&&(n.getElementById("announcement-controls").style.display="")}(window,document);