!function(e){var t,o;"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():(t=window.Cookies,(o=window.Cookies=e()).noConflict=function(){return window.Cookies=t,o})}(function(){function f(){for(var e=0,t={};e<arguments.length;e++){var o=arguments[e];for(var n in o)t[n]=o[n]}return t}return function e(p){function u(e,t,o){var n,i;if(1<arguments.length){"number"==typeof(o=f({path:"/"},u.defaults,o)).expires&&((i=new Date).setMilliseconds(i.getMilliseconds()+864e5*o.expires),o.expires=i);try{n=JSON.stringify(t),/^[\{\[]/.test(n)&&(t=n)}catch(e){}return t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[e,"=",t,o.expires&&"; expires="+o.expires.toUTCString(),o.path&&"; path="+o.path,o.domain&&"; domain="+o.domain,o.secure?"; secure":""].join("")}e||(n={});for(var a=document.cookie?document.cookie.split("; "):[],s=/(%[0-9A-Z]{2})+/g,r=0;r<a.length;r++){var c=a[r].split("="),l=c[0].replace(s,decodeURIComponent),d=c.slice(1).join("=");'"'===d.charAt(0)&&(d=d.slice(1,-1));try{if(d=p&&p(d,l)||d.replace(s,decodeURIComponent),this.json)try{d=JSON.parse(d)}catch(e){}if(e===l){n=d;break}e||(n[l]=d)}catch(e){}}return n}return(u.get=u.set=u).getJSON=function(){return u.apply({json:!0},[].slice.call(arguments))},u.defaults={},u.remove=function(e,t){u(e,"",f(t,{expires:-1}))},u.withConverter=e,u}()}),jQuery(document).ready(function(){$('[data-toggle="offcanvas"]').click(function(){$this=$(this),$(".qa-main-wrapper").toggleClass("active"),$this.find("i.toggle-icon").toggleClass("fa-chevron-left fa-chevron-right")});var e=$("a.qa-nav-sub-link.qa-nav-sub-selected");e.length&&e.parent("li.qa-nav-sub-item").addClass("active"),$(".qa-logo-link").removeAttr("title"),$("[title]").not('[class|="qa-vote"]').tooltip({placement:"bottom"});var t=$(".qa-part-q-view"),o=t.children(".qa-q-closed"),n=$("#a_list").children(".qa-a-list-item-selected");0<o.length&&t.addClass("qa-part-q-view-closed"),0<n.length&&t.addClass("qa-part-q-view-solved");var i=$(".donut-top");$(window).scroll(function(){300<$(this).scrollTop()?i.addClass("is-visible"):i.removeClass("is-visible fade-out"),1200<$(this).scrollTop()&&i.addClass("fade-out")}),i.on("click",function(e){e.preventDefault(),$("body,html").animate({scrollTop:0},700)}),$("#hide-site-header").on("click",function(e){$("#site-header").fadeOut("slow"),Cookies.set("donut_hide_site_header","yes")})});