function convertNumberToPersian(n){return String(n).replace(new RegExp("0","g"),"۰").replace(new RegExp("1","g"),"۱").replace(new RegExp("2","g"),"۲").replace(new RegExp("3","g"),"۳").replace(new RegExp("4","g"),"۴").replace(new RegExp("5","g"),"۵").replace(new RegExp("6","g"),"۶").replace(new RegExp("7","g"),"۷").replace(new RegExp("8","g"),"۸").replace(new RegExp("9","g"),"۹")}function getWatchedTime(n){if(typeof localStorage!="undefined"&&typeof JSON!="undefined"){var i=$("#account-btn").attr("data-id"),t=typeof i=="undefined"?sessionStorage["n-wt-"+n]:localStorage["n-wt-"+i+"-"+n];if(typeof t!="undefined")return t=JSON.parse(t),{position:t.p,duration:t.d}}return null}function storeWatchedTime(n,t,i){if(typeof localStorage!="undefined"&&typeof JSON!="undefined")try{if(t=parseInt(t),i=parseInt(i),t>0&&i>0){var r=$("#account-btn").attr("data-id");typeof r=="undefined"?sessionStorage.setItem("n-wt-"+n,JSON.stringify({p:t,d:i,wd:(new Date).getTime()})):localStorage.setItem("n-wt-"+r+"-"+n,JSON.stringify({p:t,d:i,wd:(new Date).getTime()}))}}catch(u){}}function deleteWatchedTime(n){if(typeof localStorage!="undefined")try{var t=$("#account-btn").attr("data-id");typeof t=="undefined"?sessionStorage.removeItem("n-wt-"+n):localStorage.removeItem("n-wt-"+t+"-"+n)}catch(i){}}function toast(n,t,i){var e,r,o;if(!document.getElementById("toast-message")){var u=document.createElement("div"),s=document.createElement("span"),f=document.createElement("button");for(classes=["toast-message","position-fixed","bg-dark","text-light","font-size-sm","font-size-lg-base","p-4","pl-5","py-lg-3"],e=0;e<classes.length;e++)u.classList.add(classes[e]);u.id="toast-message";s.id="toast-text";f.type="button";f.classList.add("close");f.setAttribute("aria-label","close");u.appendChild(s);u.appendChild(f);document.body.appendChild(u)}r=document.getElementById("toast-message");t==="all"?r.classList.remove("d-none","d-lg-block","d-lg-none"):t==="desktop"?(r.classList.add("d-none","d-lg-block"),r.classList.remove("d-lg-none")):t==="mobile"&&r.classList.add("d-lg-none");setTimeout(function(){$("#toast-message").addClass("active")},100);o=setTimeout(function(){$("#toast-message").removeClass("active")},5e3);r.classList.contains("active")&&(r.classList.remove("active"),clearTimeout(o));r.querySelector("#toast-text").innerText=i;r.setAttribute("data-state",n);$("#toast-message").click(function(n){$(this).removeClass("active");clearTimeout(o);n.stopPropagation();n.preventDefault()})}function addToWatchLater(n){if(n.attr("disabled")!=="disabled"){var i=n.closest(".thumbnail").attr("data-id"),u=$("#account-btn").attr("data-watch-later-url"),r=n.hasClass("added"),t=$('[data-id="'+i+'"] .watch-later-btn');r?t.addClass("added"):t.removeClass("added");t.attr("disabled","disabled");$.post(u,{id:i,type:"WatchLater"}).done(function(i){r||i.status!=="removed"?t.toggleClass("added"):addToWatchLater(n)}).fail(function(){toast("error","all",resources.errorHasOccurred)}).always(function(){$('[data-popup-show="true"]').hidePopup();t.removeAttr("disabled")})}}function fixNotificationURL(n){var t=n.find(".notification-comment-link:not(.checked-link)"),i=location.href.substring(0,location.href.indexOf("#"));t.each(function(n,t){var r=$(t).attr("href").substring(0,$(t).attr("href").indexOf("#"));r===i&&$(t).attr("data-navigate-manually",!0);$(t).addClass("checked-link")})}function loadNotifications(n){var r=n.attr("data-url"),u=n.attr("data-id"),f=n.attr("data-count"),i=n.find(".notification-grid"),t=n.find(".loading");t.removeClass("d-none").addClass("d-block");n.find(".notification-error").remove();$(i).children().length===0&&$.get(r,{lastId:u,totalNew:0,newNotificationCount:f,page:1}).done(function(r){$('[data-popup-trigger="notification-menu"]').removeClass("new-badge");t.addClass("d-none").removeClass("d-block");$(i).html(r);fixNotificationURL(n)}).fail(function(){t.addClass("d-none").removeClass("d-block");t.after('<div class="notification-error d-flex flex-column align-items-center my-auto"><svg role="img" class="icon text-dynamic-half-dark size-xxxl mb-2" width="18" height="18"><use class="icon" xlink:href="#bxs-error-circle"><\/use><\/svg><span class="text-dynamic-half-dark">'+resources.errorHasOccurred+'<\/span><button id="retry-notifications" class="btn btn-retry mt-4" data-stop-propagation="true">'+resources.tryAgain+"<\/button><\/div>")})}function populatePlaylistsArray(n){n.hasClass("loaded-list")||n.hasClass("is-navigating")||(playlistsArray=[],n.find(".action-menu-item").each(function(n,t){$(t).hasClass("playlist-watch-later-item")||playlistsArray.push({id:$(t).attr("data-id"),name:$(t).find("span").text()})}),n.addClass("loaded-list"),fuse=new Fuse(playlistsArray,{keys:["name"],threshold:.3}))}function submitPlaylistForm(n){n.addClass("is-navigating");$(".playlist-search-results").remove();$(".playlist-form").removeClass("list-open");n.find(".playlist-submit-btn").trigger("click")}function generatePreview(n,t,i,r,u){return new Promise(function(f,e){var o=new FormData;o.append(i,r);u&&o.append("previewId",Math.random().toString(36).substr(2));$.ajax({method:"post",processData:!1,data:o,url:n+"/generatePreview?id="+t,dataType:"json",contentType:!1,success:function(n){n.success==!0?f({src:"data:image/jpeg;base64,"+n.src,previewId:n.previewId}):n.success=="AccessDenied"?e("AccessDenied"):n.success||e("Error!")},error:function(){e("Error!")}})})}var resources,clickTarget,hostParams,host,parser,playlistsArray,fuse,isKeyDown,newPlaylistArray;!function(n,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){"use strict";function br(n,t,i){var r,e,u=(i=i||f).createElement("script");if(u.text=n,t)for(r in oe)(e=t[r]||t.getAttribute&&t.getAttribute(r))&&u.setAttribute(r,e);i.head.appendChild(u).parentNode.removeChild(u)}function ut(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ri[pr.call(n)]||"object":typeof n}function pi(n){var t=!!n&&"length"in n&&n.length,i=ut(n);return!u(n)&&!rt(n)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in n)}function c(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function bi(n,t,r){return u(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):"string"!=typeof t?i.grep(n,function(n){return-1<ii.call(t,n)!==r}):i.filter(t,n,r)}function uu(n,t){while((n=n[t])&&1!==n.nodeType);return n}function et(n){return n}function fi(n){throw n;}function fu(n,t,i,r){var f;try{n&&u(f=n.promise)?f.call(n).done(t).fail(i):n&&u(f=n.then)?f.call(n,t,i):t.apply(void 0,[n].slice(r))}catch(n){i.apply(void 0,[n])}}function oi(){f.removeEventListener("DOMContentLoaded",oi);n.removeEventListener("load",oi);i.ready()}function ce(n,t){return t.toUpperCase()}function y(n){return n.replace(se,"ms-").replace(he,ce)}function bt(){this.expando=i.expando+bt.uid++}function ou(n,t,i){var u,r;if(void 0===i&&1===n.nodeType)if(u="data-"+t.replace(ae,"-$&").toLowerCase(),"string"==typeof(i=n.getAttribute(u))){try{i="true"===(r=i)||"false"!==r&&("null"===r?null:r===+r+""?+r:le.test(r)?JSON.parse(r):r)}catch(n){}o.set(n,t,i)}else i=void 0;return i}function hu(n,t,r,u){var s,h,c=20,l=u?function(){return u.cur()}:function(){return i.css(n,t,"")},o=l(),e=r&&r[3]||(i.cssNumber[t]?"":"px"),f=n.nodeType&&(i.cssNumber[t]||"px"!==e&&+o)&&kt.exec(i.css(n,t));if(f&&f[3]!==e){for(o/=2,e=e||f[3],f=+o||1;c--;)i.style(n,t,f+e),(1-h)*(1-(h=l()/o||.5))<=0&&(c=0),f/=h;f*=2;i.style(n,t,f+e);r=r||[]}return r&&(f=+f||+o||0,s=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=e,u.start=f,u.end=s)),s}function ht(n,t){for(var h,f,a,s,c,l,e,o=[],u=0,v=n.length;u<v;u++)(f=n[u]).style&&(h=f.style.display,t?("none"===h&&(o[u]=r.get(f,"display")||null,o[u]||(f.style.display="")),""===f.style.display&&dt(f)&&(o[u]=(e=c=s=void 0,c=(a=f).ownerDocument,l=a.nodeName,(e=ki[l])||(s=c.body.appendChild(c.createElement(l)),e=i.css(s,"display"),s.parentNode.removeChild(s),"none"===e&&(e="block"),ki[l]=e)))):"none"!==h&&(o[u]="none",r.set(f,"display",h)));for(u=0;u<v;u++)null!=o[u]&&(n[u].style.display=o[u]);return n}function s(n,t){var r;return r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&c(n,t)?i.merge([n],r):r}function di(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function vu(n,t,r,u,f){for(var e,o,p,a,w,v,c=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if((e=n[l])||0===e)if("object"===ut(e))i.merge(y,e.nodeType?[e]:e);else if(au.test(e)){for(o=o||c.appendChild(t.createElement("div")),p=(cu.exec(e)||["",""])[1].toLowerCase(),a=h[p]||h._default,o.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)o=o.lastChild;i.merge(y,o.childNodes);(o=c.firstChild).textContent=""}else y.push(t.createTextNode(e));for(c.textContent="",l=0;e=y[l++];)if(u&&-1<i.inArray(e,u))f&&f.push(e);else if(w=st(e),o=s(c.appendChild(e),"script"),w&&di(o),r)for(v=0;e=o[v++];)lu.test(e.type||"")&&r.push(e);return c}function ct(){return!0}function lt(){return!1}function we(n,t){return n===function(){try{return f.activeElement}catch(n){}}()==("focus"===t)}function gi(n,t,r,u,f,e){var o,s;if("object"==typeof t){for(s in"string"!=typeof r&&(u=u||r,r=void 0),t)gi(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),!1===f)f=lt;else if(!f)return n;return 1===e&&(o=f,(f=function(n){return i().off(n),o.apply(this,arguments)}).guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function hi(n,t,u){u?(r.set(n,t,!1),i.event.add(n,t,{namespace:!1,handler:function(n){var o,e,f=r.get(this,t);if(1&n.isTrigger&&this[t]){if(f.length)(i.event.special[t]||{}).delegateType&&n.stopPropagation();else if(f=k.call(arguments),r.set(this,t,f),o=u(this,t),this[t](),f!==(e=r.get(this,t))||o?r.set(this,t,!1):e={},f!==e)return n.stopImmediatePropagation(),n.preventDefault(),e.value}else f.length&&(r.set(this,t,{value:i.event.trigger(i.extend(f[0],i.Event.prototype),f.slice(1),this)}),n.stopImmediatePropagation())}})):void 0===r.get(n,t)&&i.event.add(n,t,ct)}function pu(n,t){return c(n,"table")&&c(11!==t.nodeType?t:t.firstChild,"tr")&&i(n).children("tbody")[0]||n}function ge(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function no(n){return"true/"===(n.type||"").slice(0,5)?n.type=n.type.slice(5):n.removeAttribute("type"),n}function wu(n,t){var u,s,f,h,c,e;if(1===t.nodeType){if(r.hasData(n)&&(e=r.get(n).events))for(f in r.remove(t,"handle events"),e)for(u=0,s=e[f].length;u<s;u++)i.event.add(t,f,e[f][u]);o.hasData(n)&&(h=o.access(n),c=i.extend({},h),o.set(t,c))}}function at(n,t,f,o){t=yr(t);var a,b,l,v,h,y,c=0,p=n.length,d=p-1,w=t[0],k=u(w);if(k||1<p&&"string"==typeof w&&!e.checkClone&&ke.test(w))return n.each(function(i){var r=n.eq(i);k&&(t[0]=w.call(this,i,r.html()));at(r,t,f,o)});if(p&&(b=(a=vu(t,n[0].ownerDocument,!1,n,o)).firstChild,1===a.childNodes.length&&(a=b),b||o)){for(v=(l=i.map(s(a,"script"),ge)).length;c<p;c++)h=a,c!==d&&(h=i.clone(h,!0,!0),v&&i.merge(l,s(h,"script"))),f.call(n[c],h,c);if(v)for(y=l[l.length-1].ownerDocument,i.map(l,no),c=0;c<v;c++)h=l[c],lu.test(h.type||"")&&!r.access(h,"globalEval")&&i.contains(y,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?i._evalUrl&&!h.noModule&&i._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")},y):br(h.textContent.replace(de,""),h,y))}return n}function bu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;null!=(u=e[f]);f++)r||1!==u.nodeType||i.cleanData(s(u)),u.parentNode&&(r&&st(u)&&di(s(u,"script")),u.parentNode.removeChild(u));return n}function ni(n,t,r){var o,s,h,f,u=n.style;return(r=r||ci(n))&&(""!==(f=r.getPropertyValue(t)||r[t])||st(n)||(f=i.style(n,t)),!e.pixelBoxStyles()&&nr.test(f)&&to.test(t)&&(o=u.width,s=u.minWidth,h=u.maxWidth,u.minWidth=u.maxWidth=u.width=f,f=r.width,u.width=o,u.minWidth=s,u.maxWidth=h)),void 0!==f?f+"":f}function du(n,t){return{get:function(){if(!n())return(this.get=t).apply(this,arguments);delete this.get}}}function tr(n){var t=i.cssProps[n]||tf[n];return t||(n in nf?n:tf[n]=function(n){for(var i=n[0].toUpperCase()+n.slice(1),t=gu.length;t--;)if((n=gu[t]+i)in nf)return n}(n)||n)}function ff(n,t,i){var r=kt.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function ir(n,t,r,u,f,e){var o="width"===t?1:0,h=0,s=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)"margin"===r&&(s+=i.css(n,r+b[o],!0,f)),u?("content"===r&&(s-=i.css(n,"padding"+b[o],!0,f)),"margin"!==r&&(s-=i.css(n,"border"+b[o]+"Width",!0,f))):(s+=i.css(n,"padding"+b[o],!0,f),"padding"!==r?s+=i.css(n,"border"+b[o]+"Width",!0,f):h+=i.css(n,"border"+b[o]+"Width",!0,f));return!u&&0<=e&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))||0),s}function ef(n,t,r){var f=ci(n),o=(!e.boxSizingReliable()||r)&&"border-box"===i.css(n,"boxSizing",!1,f),s=o,u=ni(n,t,f),h="offset"+t[0].toUpperCase()+t.slice(1);if(nr.test(u)){if(!r)return u;u="auto"}return(!e.boxSizingReliable()&&o||!e.reliableTrDimensions()&&c(n,"tr")||"auto"===u||!parseFloat(u)&&"inline"===i.css(n,"display",!1,f))&&n.getClientRects().length&&(o="border-box"===i.css(n,"boxSizing",!1,f),(s=h in n)&&(u=n[h])),(u=parseFloat(u)||0)+ir(n,t,r||(o?"border":"content"),s,f,u)+"px"}function a(n,t,i,r,u){return new a.prototype.init(n,t,i,r,u)}function rr(){li&&(!1===f.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(rr):n.setTimeout(rr,i.fx.interval),i.fx.tick())}function cf(){return n.setTimeout(function(){vt=void 0}),vt=Date.now()}function ai(n,t){var u,r=0,i={height:n};for(t=t?1:0;r<4;r+=2-t)i["margin"+(u=b[r])]=i["padding"+u]=n;return t&&(i.opacity=i.width=n),i}function lf(n,t,i){for(var u,f=(v.tweeners[t]||[]).concat(v.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function v(n,t,r){var o,s,h=0,a=v.prefilters.length,e=i.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=vt||cf(),t=Math.max(0,f.startTime+f.duration-o),i=1-(t/f.duration||0),r=0,u=f.tweens.length;r<u;r++)f.tweens[r].run(i);return e.notifyWith(n,[f,i,t]),i<1&&u?t:(u||e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f]),!1)},f=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:vt||cf(),duration:r.duration,tweens:[],createTween:function(t,r){var u=i.Tween(n,f.opts,t,r,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(u),u},stop:function(t){var i=0,r=t?f.tweens.length:0;if(s)return this;for(s=!0;i<r;i++)f.tweens[i].run(1);return t?(e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f,t])):e.rejectWith(n,[f,t]),this}}),c=f.props;for(!function(n,t){var r,f,e,u,o;for(r in n)if(e=t[f=y(r)],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),(o=i.cssHooks[f])&&"expand"in o)for(r in u=o.expand(u),delete n[f],u)r in n||(n[r]=u[r],t[r]=e);else t[f]=e}(c,f.opts.specialEasing);h<a;h++)if(o=v.prefilters[h].call(f,n,c,f.opts))return u(o.stop)&&(i._queueHooks(f.elem,f.opts.queue).stop=o.stop.bind(o)),o;return i.map(c,lf,f),u(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),i.fx.timer(i.extend(l,{elem:n,anim:f,queue:f.opts.queue})),f}function tt(n){return(n.match(l)||[]).join(" ")}function it(n){return n.getAttribute&&n.getAttribute("class")||""}function ur(n){return Array.isArray(n)?n:"string"==typeof n&&n.match(l)||[]}function sr(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||uo.test(n)?u(n,i):sr(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==ut(t))u(n,t);else for(f in t)sr(n+"["+f+"]",t[f],r,u)}function gf(n){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,f=0,e=t.toLowerCase().match(l)||[];if(u(i))while(r=e[f++])"+"===r[0]?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(i)):(n[r]=n[r]||[]).push(i)}}function ne(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===hr;return e(t.dataTypes[0])||!f["*"]&&e("*")}function lr(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}var p=[],vr=Object.getPrototypeOf,k=p.slice,yr=p.flat?function(n){return p.flat.call(n)}:function(n){return p.concat.apply([],n)},yi=p.push,ii=p.indexOf,ri={},pr=ri.toString,ui=ri.hasOwnProperty,wr=ui.toString,ee=wr.call(Object),e={},u=function(n){return"function"==typeof n&&"number"!=typeof n.nodeType},rt=function(n){return null!=n&&n===n.window},f=n.document,oe={type:!0,src:!0,nonce:!0,noModule:!0},kr="3.5.1",i=function(n,t){return new i.fn.init(n,t)},d,wi,nu,tu,iu,ru,l,eu,ei,ot,dt,ki,h,au,vt,li,yt,of,sf,hf,af,pt,vf,yf,pf,fr,er,te,wt,ie,ar,vi,re,ue,fe;i.fn=i.prototype={jquery:kr,constructor:i,length:0,toArray:function(){return k.call(this)},get:function(n){return null==n?k.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(k.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(i.grep(this,function(n,t){return(t+1)%2}))},odd:function(){return this.pushStack(i.grep(this,function(n,t){return t%2}))},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(0<=t&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:yi,sort:p.sort,splice:p.splice};i.extend=i.fn.extend=function(){var s,f,e,t,o,c,n=arguments[0]||{},r=1,l=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[r]||{},r++),"object"==typeof n||u(n)||(n={}),r===l&&(n=this,r--);r<l;r++)if(null!=(s=arguments[r]))for(f in s)t=s[f],"__proto__"!==f&&n!==t&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(e=n[f],c=o&&!Array.isArray(e)?[]:o||i.isPlainObject(e)?e:{},o=!1,n[f]=i.extend(h,c,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(kr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){var t,i;return!(!n||"[object Object]"!==pr.call(n))&&(!(t=vr(n))||"function"==typeof(i=ui.call(t,"constructor")&&t.constructor)&&wr.call(i)===ee)},isEmptyObject:function(n){for(var t in n)return!1;return!0},globalEval:function(n,t,i){br(n,{nonce:t&&t.nonce},i)},each:function(n,t){var r,i=0;if(pi(n)){for(r=n.length;i<r;i++)if(!1===t.call(n[i],i,n[i]))break}else for(i in n)if(!1===t.call(n[i],i,n[i]))break;return n},makeArray:function(n,t){var r=t||[];return null!=n&&(pi(Object(n))?i.merge(r,"string"==typeof n?[n]:n):yi.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:ii.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u=[],r=0,f=n.length,e=!i;r<f;r++)!t(n[r],r)!==e&&u.push(n[r]);return u},map:function(n,t,i){var e,u,r=0,f=[];if(pi(n))for(e=n.length;r<e;r++)null!=(u=t(n[r],r,i))&&f.push(u);else for(r in n)null!=(u=t(n[r],r,i))&&f.push(u);return yr(f)},guid:1,support:e});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=p[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){ri["[object "+t+"]"]=t.toLowerCase()});d=function(n){function u(n,t,r,u){var s,y,c,l,p,w,d,v=t&&t.ownerDocument,a=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==a&&9!==a&&11!==a)return r;if(!u&&(b(t),t=t||i,h)){if(11!==a&&(p=ar.exec(n)))if(s=p[1]){if(9===a){if(!(c=t.getElementById(s)))return r;if(c.id===s)return r.push(c),r}else if(v&&(c=v.getElementById(s))&&et(t,c)&&c.id===s)return r.push(c),r}else{if(p[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=p[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(f.qsa&&!lt[n+" "]&&(!o||!o.test(n))&&(1!==a||"object"!==t.nodeName.toLowerCase())){if(d=n,v=t,1===a&&(er.test(n)||yi.test(n))){for((v=ti.test(n)&&ri(t.parentNode)||t)===t&&f.scope||((l=t.getAttribute("id"))?l=l.replace(pi,wi):t.setAttribute("id",l=e)),y=(w=ft(n)).length;y--;)w[y]=(l?"#"+l:":scope")+" "+pt(w[y]);d=w.join(",")}try{return k.apply(r,v.querySelectorAll(d)),r}catch(t){lt(n,!0)}finally{l===e&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function yt(){var n=[];return function i(r,u){return n.push(r+" ")>t.cacheLength&&delete i[n.shift()],i[r+" "]=u}}function l(n){return n[e]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function ki(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function yr(n){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===n}}function pr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function di(n){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&vr(t)===n:t.disabled===n:"label"in t&&t.disabled===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function gi(){}function pt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function wt(n,t,i){var r=t.dir,u=t.next,f=u||r,o=i&&"parentNode"===f,s=nr++;return t.first?function(t,i,u){while(t=t[r])if(1===t.nodeType||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((1===t.nodeType||o)&&n(t,i,h))return!0}else while(t=t[r])if(1===t.nodeType||o)if(l=(a=t[e]||(t[e]={}))[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[f])&&c[0]===v&&c[1]===s)return y[2]=c[2];if((l[f]=y)[2]=n(t,i,h))return!0}return!1}}function ui(n){return 1<n.length?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function fi(n,t,i,r,f,o){return r&&!r[e]&&(r=fi(r)),f&&!f[e]&&(f=fi(f,o)),l(function(e,o,s,h){var a,l,v,w=[],p=[],b=o.length,d=e||function(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}(t||"*",s.nodeType?[s]:s,[]),y=!n||!e&&t?d:bt(d,w,n,s,h),c=i?f||(e?n:b||r)?[]:o:y;if(i&&i(y,c,s,h),r)for(a=bt(c,p),r(a,[],s,h),l=a.length;l--;)(v=a[l])&&(c[p[l]]=!(y[p[l]]=v));if(e){if(f||n){if(f){for(a=[],l=c.length;l--;)(v=c[l])&&a.push(y[l]=v);f(null,c=[],a,h)}for(l=c.length;l--;)(v=c[l])&&-1<(a=f?nt(e,v):w[l])&&(e[a]=!(o[a]=v))}}else c=bt(c===o?c.splice(b,c.length):c),f?f(null,o,c,h):k.apply(o,c)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=wt(function(n){return n===o},c,!0),a=wt(function(n){return-1<nt(o,n)},c,!0),f=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])f=[wt(ui(f),u)];else{if((u=t.filter[n[i].type].apply(null,n[i].matches))[e]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(1<i&&ui(f),1<i&&pt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&pt(n))}f.push(u)}return ui(f)}var rt,f,t,st,oi,ft,kt,si,ht,w,ut,b,i,s,h,o,d,ct,et,e="sizzle"+1*new Date,c=n.document,v=0,nr=0,hi=yt(),ci=yt(),li=yt(),lt=yt(),dt=function(n,t){return n===t&&(ut=!0),0},tr={}.hasOwnProperty,g=[],ir=g.pop,rr=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",ni=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",ur=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),fr=new RegExp("^"+r+"*,"+r+"*"),yi=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),er=new RegExp(r+"|>"),or=new RegExp(ni),sr=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+ni),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+gt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},hr=/HTML$/i,cr=/^(?:input|select|textarea|button)$/i,lr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,ar=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ti=/[+~]/,y=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),p=function(n,t){var i="0x"+n.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},pi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wi=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},bi=function(){b()},vr=wt(function(n){return!0===n.disabled&&"fieldset"===n.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{k.apply(g=ai.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(rt){k={apply:g.length?function(n,t){rr.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}for(rt in f=u.support={},oi=u.isXML=function(n){var i=n.namespaceURI,t=(n.ownerDocument||n).documentElement;return!hr.test(i||t&&t.nodeName||"HTML")},b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!=i&&9===l.nodeType&&l.documentElement&&(s=(i=l).documentElement,h=!oi(i),c!=i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",bi,!1):u.attachEvent&&u.attachEvent("onunload",bi)),f.scope=a(function(n){return s.appendChild(n).appendChild(i.createElement("div")),"undefined"!=typeof n.querySelectorAll&&!n.querySelectorAll(":scope fieldset div").length}),f.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),f.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),f.getElementsByClassName=ot.test(i.getElementsByClassName),f.getById=a(function(n){return s.appendChild(n).id=e,!i.getElementsByName||!i.getElementsByName(e).length}),f.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var r,u,f,i=t.getElementById(n);if(i){if((r=i.getAttributeNode("id"))&&r.value===n)return[i];for(f=t.getElementsByName(n),u=0;i=f[u++];)if((r=i.getAttributeNode("id"))&&r.value===n)return[i]}return[]}}),t.find.TAG=f.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):f.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=f.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(f.qsa=ot.test(i.querySelectorAll))&&(a(function(n){var t;s.appendChild(n).innerHTML="<a id='"+e+"'><\/a><select id='"+e+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+gt+")");n.querySelectorAll("[id~="+e+"-]").length||o.push("~=");(t=i.createElement("input")).setAttribute("name","");n.appendChild(t);n.querySelectorAll("[name='']").length||o.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+e+"+*").length||o.push(".#.+[+~]");n.querySelectorAll("\\\f");o.push("[\\r\\n\\f]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");2!==n.querySelectorAll(":enabled").length&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;2!==n.querySelectorAll(":disabled").length&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(f.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){f.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",ni)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},dt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(n.ownerDocument||n)==(t.ownerDocument||t)?n.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(n)===r?n==i||n.ownerDocument==c&&et(c,n)?-1:t==i||t.ownerDocument==c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n==i?-1:t==i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return ki(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?ki(f[u],e[u]):f[u]==c?-1:e[u]==c?1:0}),i},u.matches=function(n,t){return u(n,null,null,t)},u.matchesSelector=function(n,t){if(b(n),f.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||f.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(n){lt(t,!0)}return 0<u(t,i,null,[n]).length},u.contains=function(n,t){return(n.ownerDocument||n)!=i&&b(n),et(n,t)},u.attr=function(n,r){(n.ownerDocument||n)!=i&&b(n);var e=t.attrHandle[r.toLowerCase()],u=e&&tr.call(t.attrHandle,r.toLowerCase())?e(n,r,!h):void 0;return void 0!==u?u:f.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null},u.escape=function(n){return(n+"").replace(pi,wi)},u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);},u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!f.detectDuplicates,w=!f.sortStable&&n.slice(0),n.sort(dt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n},st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i},(t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&or.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:!t||(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&-1<f.indexOf(i):"$="===t?i&&f.slice(-i.length)===i:"~="===t?-1<(" "+f.replace(ur," ")+" ").indexOf(i):"|="===t&&(f===i||f.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,d,y,c,a,w,b=s!==o?"nextSibling":"previousSibling",k=t.parentNode,nt=f&&t.nodeName.toLowerCase(),g=!h&&!f,l=!1;if(k){if(s){while(b){for(c=t;c=c[b];)if(f?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?k.firstChild:k.lastChild],o&&g){for(l=(a=(p=(d=(y=(c=k)[e]||(c[e]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1])&&p[2],c=a&&k.childNodes[a];c=++a&&c&&c[b]||(l=a=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){d[n]=[v,a,l];break}}else if(g&&(l=a=(p=(d=(y=(c=t)[e]||(c[e]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1]),!1===l)while(c=++a&&c&&c[b]||(l=a=0)||w.pop())if((f?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&((d=(y=c[e]||(c[e]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]=[v,l]),c===t))break;return(l-=u)===r||l%r==0&&0<=l/r}}},PSEUDO:function(n,i){var f,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[e]?r(i):1<r.length?(f=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var e,u=r(n,i),f=u.length;f--;)n[e=nt(n,u[f])]=!(t[e]=u[f])}):function(n){return r(n,0,f)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=kt(n.replace(at,"$1"));return i[e]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return 0<u(n,t).length}}),contains:l(function(n){return n=n.replace(y,p),function(t){return-1<(t.textContent||st(t)).indexOf(n)}}),lang:l(function(n){return sr.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:di(!1),disabled:di(!0),checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,!0===n.selected},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return lr.test(n.nodeName)},input:function(n){return cr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:t<i?t:i;0<=--r;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=yr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=pr(rt);return gi.prototype=t.filters=t.pseudos,t.setFilters=new gi,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){for(o in e&&!(f=fr.exec(r))||(f&&(r=r.slice(f[0].length)||r),h.push(s=[])),e=!1,(f=yi.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length)),t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},kt=u.compile=function(n,r){var s,c,a,o,y,p,w=[],d=[],f=li[n+" "];if(!f){for(r||(r=ft(n)),s=r.length;s--;)(f=ei(r[s]))[e]?w.push(f):d.push(f);(f=li(n,(c=d,o=0<(a=w).length,y=0<c.length,p=function(n,r,f,e,s){var l,nt,d,g=0,p="0",tt=n&&[],w=[],it=ht,rt=n||y&&t.find.TAG("*",s),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(s&&(ht=r==i||r||s);p!==ft&&null!=(l=rt[p]);p++){if(y&&l){for(nt=0,r||l.ownerDocument==i||(b(l),f=!h);d=c[nt++];)if(d(l,r||i,f)){e.push(l);break}s&&(v=ut)}o&&((l=!d&&l)&&g--,n&&tt.push(l))}if(g+=p,o&&p!==g){for(nt=0;d=a[nt++];)d(tt,w,r,f);if(n){if(0<g)while(p--)tt[p]||w[p]||(w[p]=ir.call(e));w=bt(w)}k.apply(e,w);s&&!n&&0<w.length&&1<g+a.length&&u.uniqueSort(e)}return s&&(v=ut,ht=it),tt},o?l(p):p))).selector=n}return f},si=u.select=function(n,i,r,u){var o,f,e,l,a,c="function"==typeof n&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],1===s.length){if(2<(f=s[0]=s[0].slice(0)).length&&"ID"===(e=f[0]).type&&9===i.nodeType&&h&&t.relative[f[1].type]){if(!(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0]))return r;c&&(i=i.parentNode);n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[l=e.type])break;if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ti.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),!(n=u.length&&pt(f)))return k.apply(r,u),r;break}}}return(c||kt(n,s))(u,i,!h,r,!i||ti.test(n)&&ri(i.parentNode)||i),r},f.sortStable=e.split("").sort(dt).join("")===e,f.detectDuplicates=!!ut,b(),f.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("fieldset"))}),a(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ii("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||ii(gt,function(n,t,i){var r;if(!i)return!0===n[t]?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=d;i.expr=d.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=d.uniqueSort;i.text=d.getText;i.isXMLDoc=d.isXML;i.contains=d.contains;i.escapeSelector=d.escape;var ft=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},dr=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},gr=i.expr.match.needsContext;wi=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return 1<u?i.uniqueSort(r):r},filter:function(n){return this.pushStack(bi(this,n||[],!1))},not:function(n){return this.pushStack(bi(this,n||[],!0))},is:function(n){return!!bi(this,"string"==typeof n&&gr.test(n)?i(n):n||[],!1).length}});tu=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(i.fn.init=function(n,t,r){var e,o;if(!n)return this;if(r=r||nu,"string"==typeof n){if(!(e="<"===n[0]&&">"===n[n.length-1]&&3<=n.length?[null,n,null]:tu.exec(n))||!e[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(e[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(e[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),wi.test(e[1])&&i.isPlainObject(t))for(e in t)u(this[e])?this[e](t[e]):this.attr(e,t[e]);return this}return(o=f.getElementById(e[2]))&&(this[0]=o,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):u(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this)}).prototype=i.fn;nu=i(f);iu=/^(?:parents|prev(?:Until|All))/;ru={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e="string"!=typeof n&&i(n);if(!gr.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?-1<e.index(r):1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(1<u.length?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?ii.call(i(n),this[0]):ii.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return ft(n,"parentNode")},parentsUntil:function(n,t,i){return ft(n,"parentNode",i)},next:function(n){return uu(n,"nextSibling")},prev:function(n){return uu(n,"previousSibling")},nextAll:function(n){return ft(n,"nextSibling")},prevAll:function(n){return ft(n,"previousSibling")},nextUntil:function(n,t,i){return ft(n,"nextSibling",i)},prevUntil:function(n,t,i){return ft(n,"previousSibling",i)},siblings:function(n){return dr((n.parentNode||{}).firstChild,n)},children:function(n){return dr(n.firstChild)},contents:function(n){return null!=n.contentDocument&&vr(n.contentDocument)?n.contentDocument:(c(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),1<this.length&&(ru[n]||i.uniqueSort(f),iu.test(n)&&f.reverse()),this.pushStack(f)}});l=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){var a,h;n="string"==typeof n?(a=n,h={},i.each(a.match(l)||[],function(n,t){h[t]=!0}),h):i.extend({},n);var o,r,v,f,t=[],s=[],e=-1,y=function(){for(f=f||n.once,v=o=!0;s.length;e=-1)for(r=s.shift();++e<t.length;)!1===t[e].apply(r[0],r[1])&&n.stopOnFalse&&(e=t.length,r=!1);n.memory||(r=!1);o=!1;f&&(t=r?[]:"")},c={add:function(){return t&&(r&&!o&&(e=t.length-1,s.push(r)),function f(r){i.each(r,function(i,r){u(r)?n.unique&&c.has(r)||t.push(r):r&&r.length&&"string"!==ut(r)&&f(r)})}(arguments),r&&!o&&y()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;-1<(u=i.inArray(r,t,u));)t.splice(u,1),u<=e&&e--}),this},has:function(n){return n?-1<i.inArray(n,t):0<t.length},empty:function(){return t&&(t=[]),this},disable:function(){return f=s=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=s=[],r||o||(t=r=""),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=[n,(t=t||[]).slice?t.slice():t],s.push(t),o||y()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!v}};return c};i.extend({Deferred:function(t){var f=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],o="pending",e={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return e.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(f,function(i,f){var e=u(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&u(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,e){function s(t,r,f,e){return function(){var h=this,c=arguments,l=function(){var n,i;if(!(t<o)){if((n=f.apply(h,c))===r.promise())throw new TypeError("Thenable self-resolution");i=n&&("object"==typeof n||"function"==typeof n)&&n.then;u(i)?e?i.call(n,s(o,r,et,e),s(o,r,fi,e)):(o++,i.call(n,s(o,r,et,e),s(o,r,fi,e),s(o,r,et,r.notifyWith))):(f!==et&&(h=void 0,c=[n]),(e||r.resolveWith)(h,c))}},a=e?l:function(){try{l()}catch(l){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(l,a.stackTrace);o<=t+1&&(f!==fi&&(h=void 0,c=[l]),r.rejectWith(h,c))}};t?a():(i.Deferred.getStackHook&&(a.stackTrace=i.Deferred.getStackHook()),n.setTimeout(a))}}var o=0;return i.Deferred(function(n){f[0][3].add(s(0,n,u(e)?e:et,n.notifyWith));f[1][3].add(s(0,n,u(t)?t:et));f[2][3].add(s(0,n,u(r)?r:fi))}).promise()},promise:function(n){return null!=n?i.extend(n,e):e}},r={};return i.each(f,function(n,t){var i=t[2],u=t[5];e[t[1]]=i.add;u&&i.add(function(){o=u},f[3-n][2].disable,f[3-n][3].disable,f[0][2].lock,f[0][3].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this};r[t[0]+"With"]=i.fireWith}),e.promise(r),t&&t.call(r,r),r},when:function(n){var e=arguments.length,t=e,o=Array(t),f=k.call(arguments),r=i.Deferred(),s=function(n){return function(t){o[n]=this;f[n]=1<arguments.length?k.call(arguments):t;--e||r.resolveWith(o,f)}};if(e<=1&&(fu(n,r.done(s(t)).resolve,r.reject,!e),"pending"===r.state()||u(f[t]&&f[t].then)))return r.then();while(t--)fu(f[t],s(t),r.reject);return r.promise()}});eu=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&eu.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};ei=i.Deferred();i.fn.ready=function(n){return ei.then(n)["catch"](function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(!0===n?--i.readyWait:i.isReady)||(i.isReady=!0)!==n&&0<--i.readyWait||ei.resolveWith(f,[i])}});i.ready.then=ei.then;"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll?n.setTimeout(i.ready):(f.addEventListener("DOMContentLoaded",oi),n.addEventListener("load",oi));var w=function(n,t,r,f,e,o,s){var h=0,l=n.length,c=null==r;if("object"===ut(r))for(h in e=!0,r)w(n,t,h,r[h],!0,o,s);else if(void 0!==f&&(e=!0,u(f)||(s=!0),c&&(s?(t.call(n,f),t=null):(c=t,t=function(n,t,r){return c.call(i(n),r)})),t))for(;h<l;h++)t(n[h],r,s?f:f.call(n[h],h,t(n[h],r)));return e?n:c?t.call(n):l?t(n[0],r):o},se=/^-ms-/,he=/-([a-z])/g;ot=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};bt.uid=1;bt.prototype={cache:function(n){var t=n[this.expando];return t||(t={},ot(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if("string"==typeof t)u[y(t)]=i;else for(r in t)u[y(r)]=t[r];return u},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][y(t)]},access:function(n,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(n,t):(this.set(n,t,i),void 0!==i?i:t)},remove:function(n,t){var u,r=n[this.expando];if(void 0!==r){if(void 0!==t)for(u=(t=Array.isArray(t)?t.map(y):(t=y(t))in r?[t]:t.match(l)||[]).length;u--;)delete r[t[u]];(void 0===t||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return void 0!==t&&!i.isEmptyObject(t)}};var r=new bt,o=new bt,le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ae=/[A-Z]/g;i.extend({hasData:function(n){return o.hasData(n)||r.hasData(n)},data:function(n,t,i){return o.access(n,t,i)},removeData:function(n,t){o.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var f,u,e,i=this[0],s=i&&i.attributes;if(void 0===n){if(this.length&&(e=o.get(i),1===i.nodeType&&!r.get(i,"hasDataAttrs"))){for(f=s.length;f--;)s[f]&&0===(u=s[f].name).indexOf("data-")&&(u=y(u.slice(5)),ou(i,u,e[u]));r.set(i,"hasDataAttrs",!0)}return e}return"object"==typeof n?this.each(function(){o.set(this,n)}):w(this,function(t){var r;if(i&&void 0===t)return void 0!==(r=o.get(i,n))?r:void 0!==(r=ou(i,n))?r:void 0;this.each(function(){o.set(this,n,t)})},null,t,1<arguments.length,null,!0)},removeData:function(n){return this.each(function(){o.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t);"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,function(){i.dequeue(n,t)},f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)(u=r.get(f[s],n+"queueHooks"))&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var su=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,kt=new RegExp("^(?:([+-])=|)("+su+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],g=f.documentElement,st=function(n){return i.contains(n.ownerDocument,n)},ve={composed:!0};g.getRootNode&&(st=function(n){return i.contains(n.ownerDocument,n)||n.getRootNode(ve)===n.ownerDocument});dt=function(n,t){return"none"===(n=t||n).style.display||""===n.style.display&&st(n)&&"none"===i.css(n,"display")};ki={};i.fn.extend({show:function(){return ht(this,!0)},hide:function(){return ht(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){dt(this)?i(this).show():i(this).hide()})}});var nt,si,gt=/^(?:checkbox|radio)$/i,cu=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,lu=/^$|^module$|\/(?:java|ecma)script/i;nt=f.createDocumentFragment().appendChild(f.createElement("div"));(si=f.createElement("input")).setAttribute("type","radio");si.setAttribute("checked","checked");si.setAttribute("name","t");nt.appendChild(si);e.checkClone=nt.cloneNode(!0).cloneNode(!0).lastChild.checked;nt.innerHTML="<textarea>x<\/textarea>";e.noCloneChecked=!!nt.cloneNode(!0).lastChild.defaultValue;nt.innerHTML="<option><\/option>";e.option=!!nt.lastChild;h={thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};h.tbody=h.tfoot=h.colgroup=h.caption=h.thead;h.th=h.td;e.option||(h.optgroup=h.option=[1,"<select multiple='multiple'>","<\/select>"]);au=/<|&#?\w+;/;var ye=/^key/,pe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,yu=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var p,a,k,v,w,h,s,c,o,b,d,y=r.get(n);if(ot(n))for(u.handler&&(u=(p=u).handler,e=p.selector),e&&i.find.matchesSelector(g,e),u.guid||(u.guid=i.guid++),(v=y.events)||(v=y.events=Object.create(null)),(a=y.handle)||(a=y.handle=function(t){if("undefined"!=typeof i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),w=(t=(t||"").match(l)||[""]).length;w--;)o=d=(k=yu.exec(t[w])||[])[1],b=(k[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:b.join(".")},p),(c=v[o])||((c=v[o]=[]).delegateCount=0,s.setup&&!1!==s.setup.call(n,f,b,a)||n.addEventListener&&n.addEventListener(o,a)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,h):c.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,h,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(p=(t=(t||"").match(l)||[""]).length;p--;)if(o=d=(c=yu.exec(t[p])||[])[1],b=(c[2]||"").split(".").sort(),o){for(h=i.event.special[o]||{},a=v[o=(f?h.delegateType:h.bindType)||o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],!e&&d!==s.origType||u&&u.guid!==s.guid||c&&!c.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(a.splice(y,1),s.selector&&a.delegateCount--,h.remove&&h.remove.call(n,s));k&&!a.length&&(h.teardown&&!1!==h.teardown.call(n,b,w.handle)||i.removeEvent(n,o,w.handle),delete v[o])}else for(o in v)i.event.remove(n,o+t[p],u,f,!0);i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var u,h,c,e,f,l,s=new Array(arguments.length),t=i.event.fix(n),a=(r.get(this,"events")||Object.create(null))[t.type]||[],o=i.event.special[t.type]||{};for(s[0]=t,u=1;u<arguments.length;u++)s[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||!1!==o.preDispatch.call(this,t)){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,h=0;(f=e.handlers[h++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!1!==f.namespace&&!t.rnamespace.test(f.namespace)||(t.handleObj=f,t.data=f.data,void 0!==(c=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,s))&&!1===(t.result=c)&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,h,u,e,o,c=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&!("click"===n.type&&1<=n.button))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||!0!==r.disabled)){for(e=[],o={},f=0;f<s;f++)void 0===o[u=(h=t[f]).selector+" "]&&(o[u]=h.needsContext?-1<i(u,this).index(r):i.find(u,this,null,[r]).length),o[u]&&e.push(h);e.length&&c.push({elem:r,handlers:e})}return r=this,s<t.length&&c.push({elem:r,handlers:t.slice(s)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:u(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},click:{setup:function(n){var t=this||n;return gt.test(t.type)&&t.click&&c(t,"input")&&hi(t,"click",ct),!1},trigger:function(n){var t=this||n;return gt.test(t.type)&&t.click&&c(t,"input")&&hi(t,"click"),!0},_default:function(n){var t=n.target;return gt.test(t.type)&&t.click&&c(t,"input")&&r.get(t,"click")||c(t,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&!1===n.returnValue?ct:lt,this.target=n.target&&3===n.target.nodeType?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||Date.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:lt,isPropagationStopped:lt,isImmediatePropagationStopped:lt,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ct;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ct;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=ct;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(n){var t=n.button;return null==n.which&&ye.test(n.type)?null!=n.charCode?n.charCode:n.keyCode:!n.which&&void 0!==t&&pe.test(n.type)?1&t?1:2&t?3:4&t?2:0:n.which}},i.event.addProp);i.each({focus:"focusin",blur:"focusout"},function(n,t){i.event.special[n]={setup:function(){return hi(this,n,we),!1},trigger:function(){return hi(this,n),!0},delegateType:t}});i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,r=n.relatedTarget,f=n.handleObj;return r&&(r===this||i.contains(this,r))||(n.type=f.origType,u=f.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return gi(this,n,t,i,r)},one:function(n,t,i,r){return gi(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=lt),this.each(function(){i.event.remove(this,n,r,t)})}});var be=/<script|<style|<link/i,ke=/checked\s*(?:[^=]|=\s*.checked.)/i,de=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n},clone:function(n,t,r){var u,c,o,f,l,a,v,h=n.cloneNode(!0),y=st(n);if(!(e.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=s(h),u=0,c=(o=s(n)).length;u<c;u++)l=o[u],a=f[u],void 0,"input"===(v=a.nodeName.toLowerCase())&&gt.test(l.type)?a.checked=l.checked:"input"!==v&&"textarea"!==v||(a.defaultValue=l.defaultValue);if(t)if(r)for(o=o||s(n),f=f||s(h),u=0,c=o.length;u<c;u++)wu(o[u],f[u]);else wu(n,h);return 0<(f=s(h,"script")).length&&di(f,!y&&s(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,e=0;void 0!==(t=n[e]);e++)if(ot(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=void 0}t[o.expando]&&(t[o.expando]=void 0)}}});i.fn.extend({detach:function(n){return bu(this,n,!0)},remove:function(n){return bu(this,n)},text:function(n){return w(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)})},null,n,arguments.length)},append:function(){return at(this,arguments,function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||pu(this,n).appendChild(n)})},prepend:function(){return at(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return at(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return at(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(s(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null!=n&&n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return w(this,function(n){var t=this[0]||{},r=0,u=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!be.test(n)&&!h[(cu.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)1===(t=this[r]||{}).nodeType&&(i.cleanData(s(t,!1)),t.innerHTML=n);t=0}catch(n){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return at(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(s(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),yi.apply(f,u.get());return this.pushStack(f)}});var nr=new RegExp("^("+su+")(?!px)[a-z%]+$","i"),ci=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},ku=function(n,t,i){var u,r,f={};for(r in t)f[r]=n.style[r],n.style[r]=t[r];for(r in u=i.call(n),t)n.style[r]=f[r];return u},to=new RegExp(b.join("|"),"i");!function(){function r(){if(t){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";g.appendChild(s).appendChild(t);var i=n.getComputedStyle(t);h="1%"!==i.top;v=12===u(i.marginLeft);t.style.right="60%";a=36===u(i.right);c=36===u(i.width);t.style.position="absolute";l=12===u(t.offsetWidth/3);g.removeChild(s);t=null}}function u(n){return Math.round(parseFloat(n))}var h,c,l,a,o,v,s=f.createElement("div"),t=f.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===t.style.backgroundClip,i.extend(e,{boxSizingReliable:function(){return r(),c},pixelBoxStyles:function(){return r(),a},pixelPosition:function(){return r(),h},reliableMarginLeft:function(){return r(),v},scrollboxSize:function(){return r(),l},reliableTrDimensions:function(){var t,i,r,u;return null==o&&(t=f.createElement("table"),i=f.createElement("tr"),r=f.createElement("div"),t.style.cssText="position:absolute;left:-11111px",i.style.height="1px",r.style.height="9px",g.appendChild(t).appendChild(i).appendChild(r),u=n.getComputedStyle(i),o=3<parseInt(u.height),g.removeChild(t)),o}}))}();var gu=["Webkit","Moz","ms"],nf=f.createElement("div").style,tf={};var io=/^(none|table(?!-c[ea]).+)/,rf=/^--/,ro={position:"absolute",visibility:"hidden",display:"block"},uf={letterSpacing:"0",fontWeight:"400"};i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=ni(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var f,h,o,c=y(t),l=rf.test(t),s=n.style;if(l||(t=tr(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r)return o&&"get"in o&&void 0!==(f=o.get(n,!1,u))?f:s[t];"string"==(h=typeof r)&&(f=kt.exec(r))&&f[1]&&(r=hu(n,t,f),h="number");null!=r&&r==r&&("number"!==h||l||(r+=f&&f[3]||(i.cssNumber[c]?"":"px")),e.clearCloneStyle||""!==r||0!==t.indexOf("background")||(s[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?s.setProperty(t,r):s[t]=r))}},css:function(n,t,r,u){var f,e,o,s=y(t);return rf.test(t)||(t=tr(s)),(o=i.cssHooks[t]||i.cssHooks[s])&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=ni(n,t,u)),"normal"===f&&t in uf&&(f=uf[t]),""===r||r?(e=parseFloat(f),!0===r||isFinite(e)?e||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!io.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?ef(n,t,u):ku(n,ro,function(){return ef(n,t,u)})},set:function(n,r,u){var s,f=ci(n),h=!e.scrollboxSize()&&"absolute"===f.position,c=(h||u)&&"border-box"===i.css(n,"boxSizing",!1,f),o=u?ir(n,t,u,c,f):0;return c&&h&&(o-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(f[t])-ir(n,t,"border",!1,f)-.5)),o&&(s=kt.exec(r))&&"px"!==(s[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),ff(0,r,o)}}});i.cssHooks.marginLeft=du(e.reliableMarginLeft,function(n,t){if(t)return(parseFloat(ni(n,"marginLeft"))||n.getBoundingClientRect().left-ku(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];r<4;r++)f[n+b[r]+t]=u[r]||u[r-2]||u[0];return f}};"margin"!==n&&(i.cssHooks[n+t].set=ff)});i.fn.extend({css:function(n,t){return w(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ci(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,1<arguments.length)}});((i.Tween=a).prototype={constructor:a,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=a.propHooks[this.prop];return n&&n.get?n.get(this):a.propHooks._default.get(this)},run:function(n){var t,r=a.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):a.propHooks._default.set(this),this}}).init.prototype=a.prototype;(a.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""))&&"auto"!==t?t:0},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||!i.cssHooks[n.prop]&&null==n.elem.style[tr(n.prop)]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}}).scrollTop=a.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=a.prototype.init;i.fx.step={};sf=/^(?:toggle|show|hide)$/;hf=/queueHooks$/;i.Animation=i.extend(v,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return hu(i.elem,n,kt.exec(t),i),i}]},tweener:function(n,t){u(n)?(t=n,n=["*"]):n=n.match(l);for(var i,r=0,f=n.length;r<f;r++)i=n[r],v.tweeners[i]=v.tweeners[i]||[],v.tweeners[i].unshift(t)},prefilters:[function(n,t,u){var f,y,w,c,b,h,o,l,k="width"in t||"height"in t,v=this,p={},s=n.style,a=n.nodeType&&dt(n),e=r.get(n,"fxshow");for(f in u.queue||(null==(c=i._queueHooks(n,"fx")).unqueued&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})})),t)if(y=t[f],sf.test(y)){if(delete t[f],w=w||"toggle"===y,y===(a?"hide":"show")){if("show"!==y||!e||void 0===e[f])continue;a=!0}p[f]=e&&e[f]||i.style(n,f)}if((h=!i.isEmptyObject(t))||!i.isEmptyObject(p))for(f in k&&1===n.nodeType&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],null==(o=e&&e.display)&&(o=r.get(n,"display")),"none"===(l=i.css(n,"display"))&&(o?l=o:(ht([n],!0),o=n.style.display||o,l=i.css(n,"display"),ht([n]))),("inline"===l||"inline-block"===l&&null!=o)&&"none"===i.css(n,"float")&&(h||(v.done(function(){s.display=o}),null==o&&(l=s.display,o="none"===l?"":l)),s.display="inline-block")),u.overflow&&(s.overflow="hidden",v.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]})),h=!1,p)h||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&ht([n],!0),v.done(function(){for(f in a||ht([n]),r.remove(n,"fxshow"),p)i.style(n,f,p[f])})),h=lf(a?e[f]:0,f,v),f in e||(e[f]=h.start,a&&(h.end=h.start,h.start=0))}],prefilter:function(n,t){t?v.prefilters.unshift(n):v.prefilters.push(n)}});i.speed=function(n,t,r){var f=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||u(n)&&n,duration:n,easing:r&&t||t&&!u(t)&&t};return i.fx.off?f.duration=0:"number"!=typeof f.duration&&(f.duration=f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default),null!=f.queue&&!0!==f.queue||(f.queue="fx"),f.old=f.complete,f.complete=function(){u(f.old)&&f.old.call(this);f.queue&&i.dequeue(this,f.queue)},f};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(dt).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=v(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||!1===o.queue?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&hf.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));!s&&u||i.dequeue(this,n)})},finish:function(n){return!1!==n&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(ai(t,!0),n,i,u)}});i.each({slideDown:ai("show"),slideUp:ai("hide"),slideToggle:ai("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(vt=Date.now();n<t.length;n++)(r=t[n])()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();vt=void 0};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){li||(li=!0,rr())};i.fx.stop=function(){li=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx&&i.fx.speeds[t]||t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})};yt=f.createElement("input");of=f.createElement("select").appendChild(f.createElement("option"));yt.type="checkbox";e.checkOn=""!==yt.value;e.optSelected=of.selected;(yt=f.createElement("input")).value="t";yt.type="radio";e.radioValue="t"===yt.value;pt=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return w(this,i.attr,n,t,1<arguments.length)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(u=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?af:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):u&&"get"in u&&null!==(f=u.get(n,t))?f:null==(f=i.find.attr(n,t))?void 0:f)},attrHooks:{type:{set:function(n,t){if(!e.radioValue&&"radio"===t&&c(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(l);if(r&&1===n.nodeType)while(i=r[u++])n.removeAttribute(i)}});af={set:function(n,t,r){return!1===t?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=pt[t]||i.find.attr;pt[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=pt[u],pt[u]=f,f=null!=r(n,t,i)?u:null,pt[u]=e),f}});vf=/^(?:input|select|textarea|button)$/i;yf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return w(this,i.prop,n,t,1<arguments.length)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):vf.test(n.nodeName)||yf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});e.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var o,t,r,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).addClass(n.call(this,t,it(this)))});if((o=ur(n)).length)while(t=this[c++])if(f=it(t),r=1===t.nodeType&&" "+tt(f)+" "){for(s=0;e=o[s++];)r.indexOf(" "+e+" ")<0&&(r+=e+" ");f!==(h=tt(r))&&t.setAttribute("class",h)}return this},removeClass:function(n){var o,r,t,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).removeClass(n.call(this,t,it(this)))});if(!arguments.length)return this.attr("class","");if((o=ur(n)).length)while(r=this[c++])if(f=it(r),t=1===r.nodeType&&" "+tt(f)+" "){for(s=0;e=o[s++];)while(-1<t.indexOf(" "+e+" "))t=t.replace(" "+e+" "," ");f!==(h=tt(t))&&r.setAttribute("class",h)}return this},toggleClass:function(n,t){var f=typeof n,e="string"===f||Array.isArray(n);return"boolean"==typeof t&&e?t?this.addClass(n):this.removeClass(n):u(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,it(this),t),t)}):this.each(function(){var t,o,u,s;if(e)for(o=0,u=i(this),s=ur(n);t=s[o++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else void 0!==n&&"boolean"!==f||((t=it(this))&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===n?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&-1<(" "+tt(it(t))+" ").indexOf(i))return!0;return!1}});pf=/\r/g;i.fn.extend({val:function(n){var t,r,e,f=this[0];return arguments.length?(e=u(n),this.each(function(r){var u;1===this.nodeType&&(null==(u=e?n.call(this,r,i(this).val()):n)?u="":"number"==typeof u?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),(t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):f?(t=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(f,"value"))?r:"string"==typeof(r=f.value)?r.replace(pf,""):null==r?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:tt(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f="select-one"===n.type,s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(((t=o[r]).selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!c(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var r,u,f=n.options,e=i.makeArray(t),o=f.length;o--;)((u=f[o]).selected=-1<i.inArray(i.valHooks.option.get(u),e))&&(r=!0);return r||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=-1<i.inArray(i(n).val(),t)}};e.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});e.focusin="onfocusin"in n;fr=/^(?:focusinfocus|focusoutblur)$/;er=function(n){n.stopPropagation()};i.extend(i.event,{trigger:function(t,e,o,s){var k,c,l,d,v,y,a,p,w=[o||f],h=ui.call(t,"type")?t.type:t,b=ui.call(t,"namespace")?t.namespace.split("."):[];if(c=p=l=o=o||f,3!==o.nodeType&&8!==o.nodeType&&!fr.test(h+i.event.triggered)&&(-1<h.indexOf(".")&&(h=(b=h.split(".")).shift(),b.sort()),v=h.indexOf(":")<0&&"on"+h,(t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),e=null==e?[t]:i.makeArray(e,[t]),a=i.event.special[h]||{},s||!a.trigger||!1!==a.trigger.apply(o,e))){if(!s&&!a.noBubble&&!rt(o)){for(d=a.delegateType||h,fr.test(d+h)||(c=c.parentNode);c;c=c.parentNode)w.push(c),l=c;l===(o.ownerDocument||f)&&w.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=w[k++])&&!t.isPropagationStopped();)p=c,t.type=1<k?d:a.bindType||h,(y=(r.get(c,"events")||Object.create(null))[t.type]&&r.get(c,"handle"))&&y.apply(c,e),(y=v&&c[v])&&y.apply&&ot(c)&&(t.result=y.apply(c,e),!1===t.result&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(w.pop(),e)||!ot(o)||v&&u(o[h])&&!rt(o)&&((l=o[v])&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,er),o[h](),t.isPropagationStopped()&&p.removeEventListener(h,er),i.event.triggered=void 0,l&&(o[v]=l)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});e.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var ti=n.location,wf={guid:Date.now()},or=/\?/;i.parseXML=function(t){var r;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){r=void 0}return r&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var uo=/\[\]$/,bf=/\r?\n/g,fo=/^(?:submit|button|image|reset|file)$/i,eo=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,f=[],e=function(n,t){var i=u(t)?t():t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==i?"":i)};if(null==n)return"";if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(r in n)sr(r,n[r],t,e);return f.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&eo.test(this.nodeName)&&!fo.test(n)&&(this.checked||!gt.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(bf,"\r\n")}}):{name:t.name,value:r.replace(bf,"\r\n")}}).get()}});var oo=/%20/g,so=/#.*$/,ho=/([?&])_=[^&]*/,co=/^(.*?):[ \t]*([^\r\n]*)$/gm,lo=/^(?:GET|HEAD)$/,ao=/^\/\//,kf={},hr={},df="*/".concat("*"),cr=f.createElement("a");return cr.href=ti.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ti.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ti.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":df,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?lr(lr(n,i.ajaxSettings),t):lr(i.ajaxSettings,n)},ajaxPrefilter:gf(kf),ajaxTransport:gf(hr),ajax:function(t,r){function b(t,r,f,c){var v,rt,b,p,g,l=r;s||(s=!0,d&&n.clearTimeout(d),a=void 0,k=c||"",e.readyState=0<t?4:0,v=200<=t&&t<300||304===t,f&&(p=function(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}(u,e,f)),!v&&-1<i.inArray("script",u.dataTypes)&&(u.converters["text script"]=function(){}),p=function(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(!(f=o[e+" "+u]||o["* "+u]))for(h in o)if((s=h.split(" "))[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){!0===f?f=o[h]:!0!==o[h]&&(u=s[0],c.unshift(s[1]));break}if(!0!==f)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(n){return{state:"parsererror",error:f?n:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}(u,p,e,v),v?(u.ifModified&&((g=e.getResponseHeader("Last-Modified"))&&(i.lastModified[o]=g),(g=e.getResponseHeader("etag"))&&(i.etag[o]=g)),204===t||"HEAD"===u.type?l="nocontent":304===t?l="notmodified":(l=p.state,rt=p.data,v=!(b=p.error))):(b=l,!t&&l||(l="error",t<0&&(t=0))),e.status=t,e.statusText=(r||l)+"",v?tt.resolveWith(h,[rt,l,e]):tt.rejectWith(h,[e,l,b]),e.statusCode(w),w=void 0,y&&nt.trigger(v?"ajaxSuccess":"ajaxError",[e,u,v?rt:b]),it.fireWith(h,[e,l]),y&&(nt.trigger("ajaxComplete",[e,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var a,o,k,v,d,c,s,y,g,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=u.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!v)for(v={};t=co.exec(k);)v[t[1].toLowerCase()+" "]=(v[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=v[n.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return null==s&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return null==s&&(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return a&&a.abort(t),b(0,t),this}};if(tt.promise(e),u.url=((t||u.url||ti.href)+"").replace(ao,ti.protocol+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(l)||[""],null==u.crossDomain){c=f.createElement("a");try{c.href=u.url;c.href=c.href;u.crossDomain=cr.protocol+"//"+cr.host!=c.protocol+"//"+c.host}catch(t){u.crossDomain=!0}}if(u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),ne(kf,u,r,e),s)return e;for(g in(y=i.event&&u.global)&&0==i.active++&&i.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!lo.test(u.type),o=u.url.replace(so,""),u.hasContent?u.data&&u.processData&&0===(u.contentType||"").indexOf("application/x-www-form-urlencoded")&&(u.data=u.data.replace(oo,"+")):(p=u.url.slice(o.length),u.data&&(u.processData||"string"==typeof u.data)&&(o+=(or.test(o)?"&":"?")+u.data,delete u.data),!1===u.cache&&(o=o.replace(ho,"$1"),p=(or.test(o)?"&":"?")+"_="+wf.guid+++p),u.url=o+p),u.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o])),(u.data&&u.hasContent&&!1!==u.contentType||r.contentType)&&e.setRequestHeader("Content-Type",u.contentType),e.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+df+"; q=0.01":""):u.accepts["*"]),u.headers)e.setRequestHeader(g,u.headers[g]);if(u.beforeSend&&(!1===u.beforeSend.call(h,e,u)||s))return e.abort();if(ft="abort",it.add(u.complete),e.done(u.success),e.fail(u.error),a=ne(hr,u,r,e)){if(e.readyState=1,y&&nt.trigger("ajaxSend",[e,u]),s)return e;u.async&&0<u.timeout&&(d=n.setTimeout(function(){e.abort("timeout")},u.timeout));try{s=!1;a.send(rt,b)}catch(t){if(s)throw t;b(-1,t)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,f,e){return u(r)&&(e=e||f,f=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:e,data:r,success:f},i.isPlainObject(n)&&n))}}),i.ajaxPrefilter(function(n){for(var t in n.headers)"content-type"===t.toLowerCase()&&(n.contentType=n.headers[t]||"")}),i._evalUrl=function(n,t,r){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(n){i.globalEval(n,t,r)}})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(u(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return u(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=u(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},te={0:200,1223:204},wt=i.ajaxSettings.xhr(),e.cors=!!wt&&"withCredentials"in wt,e.ajax=wt=!!wt,i.ajaxTransport(function(t){var i,r;if(e.cors||wt&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];for(o in t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType),t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest"),u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.ontimeout=e.onreadystatechange=null,"abort"===n?e.abort():"error"===n?"number"!=typeof e.status?f(0,"error"):f(e.status,e.statusText):f(te[e.status]||e.status,e.statusText,"text"!==(e.responseType||"text")||"string"!=typeof e.responseText?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=e.ontimeout=i("error");void 0!==e.onabort?e.onabort=r:e.onreadystatechange=function(){4===e.readyState&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(u){if(i)throw u;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){var r,t;if(n.crossDomain||n.scriptAttrs)return{send:function(u,e){r=i("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});f.head.appendChild(r[0])},abort:function(){t&&t()}}}),ar=[],vi=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=ar.pop()||i.expando+"_"+wf.guid++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,f){var e,o,s,h=!1!==t.jsonp&&(vi.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&vi.test(t.data)&&"data");if(h||"jsonp"===t.dataTypes[0])return e=t.jsonpCallback=u(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(vi,"$1"+e):!1!==t.jsonp&&(t.url+=(or.test(t.url)?"&":"?")+t.jsonp+"="+e),t.converters["script json"]=function(){return s||i.error(e+" was not called"),s[0]},t.dataTypes[0]="json",o=n[e],n[e]=function(){s=arguments},f.always(function(){void 0===o?i(n).removeProp(e):n[e]=o;t[e]&&(t.jsonpCallback=r.jsonpCallback,ar.push(e));s&&u(o)&&o(s[0]);s=o=void 0}),"script"}),e.createHTMLDocument=((ie=f.implementation.createHTMLDocument("").body).innerHTML="<form><\/form><form><\/form>",2===ie.childNodes.length),i.parseHTML=function(n,t,r){return"string"!=typeof n?[]:("boolean"==typeof t&&(r=t,t=!1),t||(e.createHTMLDocument?((s=(t=f.implementation.createHTMLDocument("")).createElement("base")).href=f.location.href,t.head.appendChild(s)):t=f),u=!r&&[],(o=wi.exec(n))?[t.createElement(o[1])]:(o=vu([n],t,u),u&&u.length&&i(u).remove(),i.merge([],o.childNodes)));var s,o,u},i.fn.load=function(n,t,r){var f,s,h,e=this,o=n.indexOf(" ");return-1<o&&(f=tt(n.slice(o)),n=n.slice(0,o)),u(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),0<e.length&&i.ajax({url:n,type:s||"GET",dataType:"html",data:t}).done(function(n){h=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){e.each(function(){r.apply(this,h||[n.responseText,t,n])})}),this},i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var v,o,s,h,e,c,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");e=a.offset();s=i.css(n,"top");c=i.css(n,"left");("absolute"===l||"fixed"===l)&&-1<(s+c).indexOf("auto")?(h=(v=a.position()).top,o=v.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);u(t)&&(t=t.call(n,r,i.extend({},e)));null!=t.top&&(f.top=t.top-e.top+h);null!=t.left&&(f.left=t.left-e.left+o);"using"in t?t.using.call(n,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),a.css(f))}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,t=this[0];if(t)return t.getClientRects().length?(r=t.getBoundingClientRect(),u=t.ownerDocument.defaultView,{top:r.top+u.pageYOffset,left:r.left+u.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,r,u,t=this[0],f={top:0,left:0};if("fixed"===i.css(t,"position"))r=t.getBoundingClientRect();else{for(r=this.offset(),u=t.ownerDocument,n=t.offsetParent||u.documentElement;n&&(n===u.body||n===u.documentElement)&&"static"===i.css(n,"position");)n=n.parentNode;n&&n!==t&&1===n.nodeType&&((f=i(n).offset()).top+=i.css(n,"borderTopWidth",!0),f.left+=i.css(n,"borderLeftWidth",!0))}return{top:r.top-f.top-i.css(t,"marginTop",!0),left:r.left-f.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||g})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return w(this,function(n,i,u){var f;if(rt(n)?f=n:9===n.nodeType&&(f=n.defaultView),void 0===u)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=du(e.pixelPosition,function(n,r){if(r)return r=ni(n,t),nr.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||"boolean"!=typeof f),s=r||(!0===f||!0===e?"margin":"border");return w(this,function(t,r,f){var e;return rt(t)?0===u.indexOf("outer")?t["inner"+n]:t.document.documentElement["client"+n]:9===t.nodeType?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):void 0===f?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:void 0,o)}})}),i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)},hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),i.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return 0<arguments.length?this.on(t,null,n,i):this.trigger(t)}}),re=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,i.proxy=function(n,t){var r,f,e;if("string"==typeof t&&(r=n[t],t=n,n=r),u(n))return f=k.call(arguments,2),(e=function(){return n.apply(t||this,f.concat(k.call(arguments)))}).guid=n.guid=n.guid||i.guid++,e},i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=c,i.isFunction=u,i.isWindow=rt,i.camelCase=y,i.type=ut,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},i.trim=function(n){return null==n?"":(n+"").replace(re,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),ue=n.jQuery,fe=n.$,i.noConflict=function(t){return n.$===i&&(n.$=fe),t&&n.jQuery===i&&(n.jQuery=ue),i},"undefined"==typeof t&&(n.jQuery=n.$=i),i});resources={accessDenied:"دسترسی غیرمجاز",pleaseCheckYourInternetAccess:"لطفا دسترسی خود به اینترنت را بررسی کنید.",tryAgain:"تلاش مجدد",errorHasOccurred:"خطایی در برنامه رخ داده است.",operationWasDoneSuccessfully:"عملیات با موفقیت انجام شد.",xIsRequired:"وارد کردن {0} الزامی است.",xIsLongerThanMaxLength:"{0} نمی‌تواند بیش از {1} کاراکتر باشد.",playlistName:"نام لیست پخش",isAddedNewPlaylist:"لیست پخش جدید اضافه شد.",unfollow:"دنبال نکردن",unfollowThisChannel:"دنبال نکردن این کانال",unfollowedThisChannel:"این کانال دنبال نمی‌شود.",unfollowPlaylist:"حذف لیست پخش از ذخیره‌شده‌ها",unfollowedThisPlaylist:"این لیست پخش از ذخیره‌شده‌ها حذف شد.",followThisChannel:"دنبال کردن این کانال",followedThisChannel:"این کانال دنبال شد.",followPlaylist:"ذخیره کردن لیست پخش",followedThisPlaylist:"این لیست پخش ذخیره شد.",youAreFollowingThisChannel:"این کانال را دنبال می‌کنید",yourRequestCouldNotBeProcessed:"در حال حاضر امکان انجام درخواست شما امکان پذیر نیست.",restore:"بازیافت","delete":"حذف"},function(n,t){typeof exports=="object"&&typeof module=="object"?module.exports=t():typeof define=="function"&&define.amd?define([],t):typeof exports=="object"?exports.scrollLock=t():n.scrollLock=t()}(this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:r})},t.r=function(n){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,i){var r,u;if((i&1&&(n=t(n)),i&8)||i&4&&typeof n=="object"&&n&&n.__esModule)return n;if(r=Object.create(null),t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),i&2&&typeof n!="string")for(u in n)t.d(r,u,function(t){return n[t]}.bind(null,u));return r},t.n=function(n){var i=n&&n.__esModule?function(){return n["default"]}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=0)}([function(n,t,i){"use strict";function ei(n){for(var i,r,t=1;t<arguments.length;t++)i=arguments[t]!=null?arguments[t]:{},r=Object.keys(i),typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable}))),r.forEach(function(t){oi(n,t,i[t])});return n}function oi(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}i.r(t);var e=function(n){return Array.isArray(n)?n:[n]},f=function(n){return n instanceof Node},ri=function(n){return n instanceof NodeList},o=function(n,t){if(n&&t){n=ri(n)?n:[n];for(var i=0;i<n.length;i++)if(t(n[i],i,n.length)===!0)break}},u=function(n){return console.error("[scroll-lock] ".concat(n))},c=function(n){if(Array.isArray(n))return n.join(", ")},d=function(n){var t=[];return o(n,function(n){return t.push(n)}),t},g=function(n,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!0,i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:document;if(r&&d(i.querySelectorAll(t)).indexOf(n)!==-1)return n;while((n=n.parentElement)&&d(i.querySelectorAll(t)).indexOf(n)===-1);return n},nt=function(n,t){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:document;return d(i.querySelectorAll(t)).indexOf(n)!==-1},l=function(n){if(n){var t=getComputedStyle(n);return t.overflow==="hidden"}},tt=function(n){if(n){if(l(n))return!0;var t=n.scrollTop;return t<=0}},it=function(n){if(n){if(l(n))return!0;var t=n.scrollTop,i=n.scrollHeight,r=t+n.offsetHeight;return r>=i}},rt=function(n){if(n){if(l(n))return!0;var t=n.scrollLeft;return t<=0}},ut=function(n){if(n){if(l(n))return!0;var t=n.scrollLeft,i=n.scrollWidth,r=t+n.offsetWidth;return r>=i}},ui=function(n){return nt(n,'textarea, [contenteditable="true"]')},fi=function(n){return nt(n,'input[type="range"]')};i.d(t,"disablePageScroll",function(){return v});i.d(t,"enablePageScroll",function(){return y});i.d(t,"getScrollState",function(){return s});i.d(t,"clearQueueScrollLocks",function(){return et});i.d(t,"getTargetScrollBarWidth",function(){return h});i.d(t,"getCurrentTargetScrollBarWidth",function(){return p});i.d(t,"getPageScrollBarWidth",function(){return ot});i.d(t,"getCurrentPageScrollBarWidth",function(){return st});i.d(t,"addScrollableTarget",function(){return w});i.d(t,"removeScrollableTarget",function(){return ht});i.d(t,"addScrollableSelector",function(){return vt});i.d(t,"removeScrollableSelector",function(){return yt});i.d(t,"addLockableTarget",function(){return pt});i.d(t,"addLockableSelector",function(){return wt});i.d(t,"setFillGapMethod",function(){return bt});i.d(t,"addFillGapTarget",function(){return ct});i.d(t,"removeFillGapTarget",function(){return kt});i.d(t,"addFillGapSelector",function(){return b});i.d(t,"removeFillGapSelector",function(){return dt});i.d(t,"refillGaps",function(){return k});var ft=["padding","margin","width","max-width","none"],a=3,r={scroll:!0,queue:0,scrollableSelectors:["[data-scroll-lock-scrollable]"],lockableSelectors:["body","[data-scroll-lock-lockable]"],fillGapSelectors:["body","[data-scroll-lock-fill-gap]","[data-scroll-lock-lockable]"],fillGapMethod:ft[0],startTouchY:0,startTouchX:0},v=function(n){r.queue<=0&&(r.scroll=!1,lt(),gt());w(n);r.queue++},y=function(n){r.queue>0&&r.queue--;r.queue<=0&&(r.scroll=!0,si(),vi());ht(n)},s=function(){return r.scroll},et=function(){r.queue=0},h=function(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1,t,i;return f(n)?(t=n.style.overflowY,r?s()||(n.style.overflowY=n.dataset.scrollLockSavedOverflowYProperty):n.style.overflowY="scroll",i=p(n),n.style.overflowY=t,i):0},p=function(n){var t,i,r;if(f(n)){if(n===document.body){var u=document.documentElement.clientWidth,e=window.innerWidth;return e-u}return t=n.style.borderLeftWidth,i=n.style.borderRightWidth,n.style.borderLeftWidth="0px",n.style.borderRightWidth="0px",r=n.offsetWidth-n.clientWidth,n.style.borderLeftWidth=t,n.style.borderRightWidth=i,r}return 0},ot=function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;return h(document.body,n)},st=function(){return p(document.body)},w=function(n){if(n){var t=e(n);t.map(function(n){o(n,function(n){f(n)?n.dataset.scrollLockScrollable="":u('"'.concat(n,'" is not a Element.'))})})}},ht=function(n){if(n){var t=e(n);t.map(function(n){o(n,function(n){f(n)?delete n.dataset.scrollLockScrollable:u('"'.concat(n,'" is not a Element.'))})})}},vt=function(n){if(n){var t=e(n);t.map(function(n){r.scrollableSelectors.push(n)})}},yt=function(n){if(n){var t=e(n);t.map(function(n){r.scrollableSelectors=r.scrollableSelectors.filter(function(t){return t!==n})})}},pt=function(n){if(n){var t=e(n);t.map(function(n){o(n,function(n){f(n)?n.dataset.scrollLockLockable="":u('"'.concat(n,'" is not a Element.'))})});s()||lt()}},wt=function(n){if(n){var t=e(n);t.map(function(n){r.lockableSelectors.push(n)});s()||lt();b(n)}},bt=function(n){if(n)if(ft.indexOf(n)!==-1)r.fillGapMethod=n,k();else{var t=ft.join(", ");u('"'.concat(n,'" method is not available!\nAvailable fill gap methods: ').concat(t,"."))}},ct=function(n){if(n){var t=e(n);t.map(function(n){o(n,function(n){f(n)?(n.dataset.scrollLockFillGap="",r.scroll||ti(n)):u('"'.concat(n,'" is not a Element.'))})})}},kt=function(n){if(n){var t=e(n);t.map(function(n){o(n,function(n){f(n)?(delete n.dataset.scrollLockFillGap,r.scroll||at(n)):u('"'.concat(n,'" is not a Element.'))})})}},b=function(n){if(n){var t=e(n);t.map(function(n){r.fillGapSelectors.push(n);r.scroll||ni(n)})}},dt=function(n){if(n){var t=e(n);t.map(function(n){r.fillGapSelectors=r.fillGapSelectors.filter(function(t){return t!==n});r.scroll||ii(n)})}},k=function(){r.scroll||gt()},lt=function(){var n=c(r.lockableSelectors);hi(n)},si=function(){var n=c(r.lockableSelectors);ci(n)},hi=function(n){var t=document.querySelectorAll(n);o(t,function(n){li(n)})},ci=function(n){var t=document.querySelectorAll(n);o(t,function(n){ai(n)})},li=function(n){if(f(n)&&n.dataset.scrollLockLocked!=="true"){var t=window.getComputedStyle(n);n.dataset.scrollLockSavedOverflowYProperty=t.overflowY;n.dataset.scrollLockSavedInlineOverflowProperty=n.style.overflow;n.dataset.scrollLockSavedInlineOverflowYProperty=n.style.overflowY;n.style.overflow="hidden";n.dataset.scrollLockLocked="true"}},ai=function(n){f(n)&&n.dataset.scrollLockLocked==="true"&&(n.style.overflow=n.dataset.scrollLockSavedInlineOverflowProperty,n.style.overflowY=n.dataset.scrollLockSavedInlineOverflowYProperty,delete n.dataset.scrollLockSavedOverflowYProperty,delete n.dataset.scrollLockSavedInlineOverflowProperty,delete n.dataset.scrollLockSavedInlineOverflowYProperty,delete n.dataset.scrollLockLocked)},gt=function(){r.fillGapSelectors.map(function(n){ni(n)})},vi=function(){r.fillGapSelectors.map(function(n){ii(n)})},ni=function(n){var t=document.querySelectorAll(n),i=r.lockableSelectors.indexOf(n)!==-1;o(t,function(n){ti(n,i)})},ti=function(n){var s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1,t,u,i,e,o;f(n)&&(n.dataset.scrollLockLockable===""||s?t=h(n,!0):(u=g(n,c(r.lockableSelectors)),t=h(u,!0)),n.dataset.scrollLockFilledGap==="true"&&at(n),i=window.getComputedStyle(n),n.dataset.scrollLockFilledGap="true",n.dataset.scrollLockCurrentFillGapMethod=r.fillGapMethod,r.fillGapMethod==="margin"?(e=parseFloat(i.marginRight),n.style.marginRight="".concat(e+t,"px")):r.fillGapMethod==="width"?n.style.width="calc(100% - ".concat(t,"px)"):r.fillGapMethod==="max-width"?n.style.maxWidth="calc(100% - ".concat(t,"px)"):r.fillGapMethod==="padding"&&(o=parseFloat(i.paddingRight),n.style.paddingRight="".concat(o+t,"px")))},ii=function(n){var t=document.querySelectorAll(n);o(t,function(n){at(n)})},at=function(n){if(f(n)&&n.dataset.scrollLockFilledGap==="true"){var t=n.dataset.scrollLockCurrentFillGapMethod;delete n.dataset.scrollLockFilledGap;delete n.dataset.scrollLockCurrentFillGapMethod;t==="margin"?n.style.marginRight="":t==="width"?n.style.width="":t==="max-width"?n.style.maxWidth="":t==="padding"&&(n.style.paddingRight="")}},yi=function(){k()},pi=function(n){r.scroll||(r.startTouchY=n.touches[0].clientY,r.startTouchX=n.touches[0].clientX)},wi=function(n){if(!r.scroll){var t=r.startTouchY,i=r.startTouchX,u=n.touches[0].clientY,f=n.touches[0].clientX;if(n.touches.length<2){var s=c(r.scrollableSelectors),e={up:t<u,down:t>u,left:i<f,right:i>f},o={up:t+a<u,down:t-a>u,left:i+a<f,right:i-a>f},h=function h(t){var u=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1,r,i;if(t){if(r=g(t,s,!1),fi(t))return!1;u||ui(t)&&g(t,s)||nt(t,s)?(i=!1,rt(t)&&ut(t)?(e.up&&tt(t)||e.down&&it(t))&&(i=!0):tt(t)&&it(t)?(e.left&&rt(t)||e.right&&ut(t))&&(i=!0):(o.up&&tt(t)||o.down&&it(t)||o.left&&rt(t)||o.right&&ut(t))&&(i=!0),i&&(r?h(r,!0):n.preventDefault())):h(r)}else n.preventDefault()};h(n.target)}}},bi=function(){r.scroll||(r.startTouchY=0,r.startTouchX=0)};typeof window!="undefined"&&window.addEventListener("resize",yi);typeof document!="undefined"&&(document.addEventListener("touchstart",pi),document.addEventListener("touchmove",wi,{passive:!1}),document.addEventListener("touchend",bi));var ki={hide:function(n){u('"hide" is deprecated! Use "disablePageScroll" instead. \n https://github.com/FL3NKEY/scroll-lock#disablepagescrollscrollabletarget');v(n)},show:function(n){u('"show" is deprecated! Use "enablePageScroll" instead. \n https://github.com/FL3NKEY/scroll-lock#enablepagescrollscrollabletarget');y(n)},toggle:function(n){u('"toggle" is deprecated! Do not use it.');s()?v():y(n)},getState:function(){return u('"getState" is deprecated! Use "getScrollState" instead. \n https://github.com/FL3NKEY/scroll-lock#getscrollstate'),s()},getWidth:function(){return u('"getWidth" is deprecated! Use "getPageScrollBarWidth" instead. \n https://github.com/FL3NKEY/scroll-lock#getpagescrollbarwidth'),ot()},getCurrentWidth:function(){return u('"getCurrentWidth" is deprecated! Use "getCurrentPageScrollBarWidth" instead. \n https://github.com/FL3NKEY/scroll-lock#getcurrentpagescrollbarwidth'),st()},setScrollableTargets:function(n){u('"setScrollableTargets" is deprecated! Use "addScrollableTarget" instead. \n https://github.com/FL3NKEY/scroll-lock#addscrollabletargetscrollabletarget');w(n)},setFillGapSelectors:function(n){u('"setFillGapSelectors" is deprecated! Use "addFillGapSelector" instead. \n https://github.com/FL3NKEY/scroll-lock#addfillgapselectorfillgapselector');b(n)},setFillGapTargets:function(n){u('"setFillGapTargets" is deprecated! Use "addFillGapTarget" instead. \n https://github.com/FL3NKEY/scroll-lock#addfillgaptargetfillgaptarget');ct(n)},clearQueue:function(){u('"clearQueue" is deprecated! Use "clearQueueScrollLocks" instead. \n https://github.com/FL3NKEY/scroll-lock#clearqueuescrolllocks');et()}},di=ei({disablePageScroll:v,enablePageScroll:y,getScrollState:s,clearQueueScrollLocks:et,getTargetScrollBarWidth:h,getCurrentTargetScrollBarWidth:p,getPageScrollBarWidth:ot,getCurrentPageScrollBarWidth:st,addScrollableSelector:vt,removeScrollableSelector:yt,addScrollableTarget:w,removeScrollableTarget:ht,addLockableSelector:wt,addLockableTarget:pt,addFillGapSelector:b,removeFillGapSelector:dt,addFillGapTarget:ct,removeFillGapTarget:kt,setFillGapMethod:bt,refillGaps:k,_state:r},ki),au=t["default"]=di}])["default"]}),function(n,t){typeof exports=="object"?module.exports=t(n):typeof define=="function"&&define.amd?define([],t):n.LazyLoad=t(n)}(typeof global!="undefined"?global:this.window||this.global,function(n){"use strict";function t(n,t){this.settings=i(r,t||{});this.images=n||document.querySelectorAll(this.settings.selector);this.observer=null;this.init()}typeof define=="function"&&define.amd&&(n=window);const r={src:"data-src",srcset:"data-srcset",selector:".lazyload",root:null,rootMargin:"0px",threshold:0},i=function(){let n={},r=!1,t=0,u=arguments.length;Object.prototype.toString.call(arguments[0])==="[object Boolean]"&&(r=arguments[0],t++);let f=function(t){for(let u in t)Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=r&&Object.prototype.toString.call(t[u])==="[object Object]"?i(!0,n[u],t[u]):t[u])};for(;t<u;t++){let n=arguments[t];f(n)}return n};if(t.prototype={init:function(){if(!n.IntersectionObserver){this.loadImages();return}let t=this,i={root:this.settings.root,rootMargin:this.settings.rootMargin,threshold:[this.settings.threshold]};this.observer=new IntersectionObserver(function(n){Array.prototype.forEach.call(n,function(n){if(n.isIntersecting){t.observer.unobserve(n.target);let i=n.target.getAttribute(t.settings.src),r=n.target.getAttribute(t.settings.srcset);"img"===n.target.tagName.toLowerCase()?(i&&(n.target.src=i),r&&(n.target.srcset=r)):n.target.style.backgroundImage="url("+i+")"}})},i);Array.prototype.forEach.call(this.images,function(n){t.observer.observe(n)})},loadAndDestroy:function(){this.settings&&(this.loadImages(),this.destroy())},loadImages:function(){if(this.settings){let n=this;Array.prototype.forEach.call(this.images,function(t){let i=t.getAttribute(n.settings.src),r=t.getAttribute(n.settings.srcset);"img"===t.tagName.toLowerCase()?(i&&(t.src=i),r&&(t.srcset=r)):t.style.backgroundImage="url('"+i+"')"})}},destroy:function(){this.settings&&(this.observer.disconnect(),this.settings=null)}},n.lazyload=function(n,i){return new t(n,i)},n.jQuery){const i=n.jQuery;i.fn.lazyload=function(n){return n=n||{},n.attribute=n.attribute||"data-src",new t(i.makeArray(this),n),this}}return t}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n=n||self,n.Fuse=t())}(this,function(){"use strict";function v(n){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},v(n)}function t(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function et(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function i(n,t,i){return t&&et(n.prototype,t),i&&et(n,i),n}function b(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function ot(n,t){var r=Object.keys(n),i;return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(n),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})),r.push.apply(r,i)),r}function st(n){for(var i,t=1;t<arguments.length;t++)i=arguments[t]!=null?arguments[t]:{},t%2?ot(Object(i),!0).forEach(function(t){b(n,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):ot(Object(i)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))});return n}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}});t&&k(n,t)}function y(n){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},y(n)}function k(n,t){return k=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n},k(n,t)}function ii(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(n){return!1}}function ri(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ui(n,t){return t&&(typeof t=="object"||typeof t=="function")?t:ri(n)}function o(n){var t=ii();return function(){var r=y(n),i,u;return t?(u=y(this).constructor,i=Reflect.construct(r,arguments,u)):i=r.apply(this,arguments),ui(this,i)}}function s(n){return fi(n)||ei(n)||oi(n)||si()}function fi(n){if(Array.isArray(n))return d(n)}function ei(n){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(n))return Array.from(n)}function oi(n,t){if(n){if(typeof n=="string")return d(n,t);var i=Object.prototype.toString.call(n).slice(8,-1);return(i==="Object"&&n.constructor&&(i=n.constructor.name),i==="Map"||i==="Set")?Array.from(n):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?d(n,t):void 0}}function d(n,t){(t==null||t>n.length)&&(t=n.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=n[i];return r}function si(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function u(n){return Array.isArray?Array.isArray(n):lt(n)==="[object Array]"}function ci(n){if(typeof n=="string")return n;var t=n+"";return t=="0"&&1/n==-hi?"-0":t}function li(n){return n==null?"":ci(n)}function f(n){return typeof n=="string"}function ht(n){return typeof n=="number"}function ai(n){return n===!0||n===!1||vi(n)&&lt(n)=="[object Boolean]"}function ct(n){return v(n)==="object"}function vi(n){return ct(n)&&n!==null}function r(n){return n!==undefined&&n!==null}function g(n){return!n.trim().length}function lt(n){return n==null?n===undefined?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}function vt(n){var i=null,r=null,e=null,o=1,t;if(f(n)||u(n))e=n,i=yt(n),r=nt(n);else{if(!at.call(n,"name"))throw new Error(ki("name"));if(t=n.name,e=t,at.call(n,"weight")&&(o=n.weight,o<=0))throw new Error(di(t));i=yt(t);r=nt(t)}return{path:i,id:r,weight:o,src:e}}function yt(n){return u(n)?n:n.split(".")}function nt(n){return u(n)?n.join("."):n}function nr(n,t){var i=[],o=!1,e=function e(n,t,s){var l,h,c,a;if(t[s]){if(l=t[s],h=n[l],!r(h))return;if(s===t.length-1&&(f(h)||ht(h)||ai(h)))i.push(li(h));else if(u(h))for(o=!0,c=0,a=h.length;c<a;c+=1)e(h[c],t,s+1);else t.length&&e(h,t,s+1)}else i.push(n)};return e(n,f(t)?t.split("."):t,0),o?i:i[0]}function ur(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:3,n=new Map;return{get:function(i){var r=i.match(rr).length,u;return n.has(r)?n.get(r):(u=parseFloat((1/Math.sqrt(r)).toFixed(t)),n.set(r,u),u)},clear:function(){n.clear()}}}function pt(t,i){var f=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},u=f.getFn,e=u===void 0?n.getFn:u,r=new tt({getFn:e});return r.setKeys(t.map(vt)),r.setSources(i),r.create(),r}function fr(t){var u=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r=u.getFn,f=r===void 0?n.getFn:r,e=t.keys,o=t.records,i=new tt({getFn:f});return i.setKeys(e),i.setIndexRecords(o),i}function er(n,t){var i=n.matches;(t.matches=[],r(i))&&i.forEach(function(n){if(r(n.indices)&&n.indices.length){var u=n.indices,f=n.value,i={indices:u,value:f};n.key&&(i.key=n.key.src);n.idx>-1&&(i.refIndex=n.idx);t.matches.push(i)}})}function or(n,t){t.score=n.score}function p(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},f=i.errors,l=f===void 0?0:f,e=i.currentLocation,a=e===void 0?0:e,o=i.expectedLocation,v=o===void 0?0:o,s=i.distance,h=s===void 0?n.distance:s,c=i.ignoreLocation,y=c===void 0?n.ignoreLocation:c,r=l/t.length,u;return y?r:(u=Math.abs(v-a),!h)?u?1:r:r+u/h}function sr(){for(var e,r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],o=arguments.length>1&&arguments[1]!==undefined?arguments[1]:n.minMatchCharLength,u=[],t=-1,f=-1,i=0,s=r.length;i<s;i+=1)e=r[i],e&&t===-1?t=i:e||t===-1||(f=i-1,f-t+1>=o&&u.push([t,f]),t=-1);return r[i-1]&&i-t>=o&&u.push([t,i-1]),u}function hr(t,i,r){var s=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{},ct=s.location,ii=ct===void 0?n.location:ct,lt=s.distance,k=lt===void 0?n.distance:lt,at=s.threshold,ri=at===void 0?n.threshold:at,vt=s.findAllMatches,ui=vt===void 0?n.findAllMatches:vt,yt=s.minMatchCharLength,pt=yt===void 0?n.minMatchCharLength:yt,wt=s.includeMatches,bt=wt===void 0?n.includeMatches:wt,kt=s.ignoreLocation,d=kt===void 0?n.ignoreLocation:kt,dt,tt,o,w,e,gt,f,b,st,ti,ft,ht;if(i.length>c)throw new Error(bi(c));for(var l=i.length,y=t.length,u=Math.max(0,Math.min(ii,y)),a=ri,h=u,g=pt>1||bt,et=g?Array(y):[],nt;(nt=t.indexOf(i,h))>-1;)if(dt=p(i,{currentLocation:nt,expectedLocation:u,distance:k,ignoreLocation:d}),a=Math.min(dt,a),h=nt+l,g)for(tt=0;tt<l;)et[nt+tt]=1,tt+=1;h=-1;var it=[],rt=1,ut=l+y,fi=1<<l-1;for(o=0;o<l;o+=1){for(w=0,e=ut;w<e;)gt=p(i,{errors:o,currentLocation:u+e,expectedLocation:u,distance:k,ignoreLocation:d}),gt<=a?w=e:ut=e,e=Math.floor((ut-w)/2+w);ut=e;var ni=Math.max(1,u-e+1),ot=ui?y:Math.min(u+e,y)+l,v=Array(ot+2);for(v[ot+1]=(1<<o)-1,f=ot;f>=ni;f-=1)if(b=f-1,st=r[t.charAt(b)],g&&(et[b]=+!!st),v[f]=(v[f+1]<<1|1)&st,o&&(v[f]|=(it[f+1]|it[f])<<1|1|it[f+1]),v[f]&fi&&(rt=p(i,{errors:o,currentLocation:b,expectedLocation:u,distance:k,ignoreLocation:d}),rt<=a)){if(a=rt,h=b,h<=u)break;ni=Math.max(1,2*u-h)}if(ti=p(i,{errors:o+1,currentLocation:u,expectedLocation:u,distance:k,ignoreLocation:d}),ti>a)break;it=v}return ft={isMatch:h>=0,score:Math.max(.001,rt)},g&&(ht=sr(et,pt),ht.length?bt&&(ft.indices=ht):ft.isMatch=!1),ft}function cr(n){for(var r,i={},t=0,u=n.length;t<u;t+=1)r=n.charAt(t),i[r]=(i[r]||0)|1<<u-t-1;return i}function bt(n,t){var i=n.match(t);return i?i[1]:null}function dr(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return n.split(kr).map(function(n){for(var e,o,s,h,c=n.trim().split(br).filter(function(n){return n&&!!n.trim()}),r=[],u=0,a=c.length;u<a;u+=1){for(var l=c[u],f=!1,i=-1;!f&&++i<gt;)e=it[i],o=e.isMultiMatch(l),o&&(r.push(new e(o,t)),f=!0);if(!f)for(i=-1;++i<gt;)if(s=it[i],h=s.isSingleMatch(l),h){r.push(new s(h,t));break}}return r})}function tu(){w.push.apply(w,arguments)}function rt(n,t){for(var r,i=0,u=w.length;i<u;i+=1)if(r=w[i],r.condition(n,t))return new r(n,t);return new wt(n,t)}function ti(n,t){var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},r=e.auto,o=r===void 0?!0:r,i=function i(n){var r=Object.keys(n),h=iu(n),e,s,c,l;if(!h&&r.length>1&&!ft(n))return i(ni(n));if(ru(n)){if(e=h?n[ut.PATH]:r[0],s=h?n[ut.PATTERN]:n[e],!f(s))throw new Error(wi(e));return c={keyId:nt(e),pattern:s},o&&(c.searcher=rt(s,t)),c}return l={children:[],operator:r[0]},r.forEach(function(t){var r=n[t];u(r)&&r.forEach(function(n){l.children.push(i(n))})}),l};return ft(n)||(n=ni(n)),i(n)}function uu(t,i){var r=i.ignoreFieldNorm,u=r===void 0?n.ignoreFieldNorm:r;t.forEach(function(n){var t=1;n.matches.forEach(function(n){var i=n.key,e=n.norm,r=n.score,f=i?i.weight:null;t*=Math.pow(r===0&&f?Number.EPSILON:r,(f||1)*(u?1:e))});n.score=t})}function fu(t,i){var u=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},f=u.includeMatches,o=f===void 0?n.includeMatches:f,e=u.includeScore,s=e===void 0?n.includeScore:e,r=[];return o&&r.push(er),s&&r.push(or),t.map(function(n){var t=n.idx,u={item:i[t],refIndex:t};return r.length&&r.forEach(function(t){t(n,u)}),u})}var hi=1/0,yi="Extended search is not available",pi="Incorrect 'index' type",wi=function(n){return"Invalid value for key ".concat(n)},bi=function(n){return"Pattern length exceeds max of ".concat(n,".")},ki=function(n){return"Missing ".concat(n," property in key")},di=function(n){return"Property 'weight' in key '".concat(n,"' must be a positive integer")},at=Object.prototype.hasOwnProperty,gi=function(){function n(i){var u=this,r;t(this,n);this._keys=[];this._keyMap={};r=0;i.forEach(function(n){var t=vt(n);r+=t.weight;u._keys.push(t);u._keyMap[t.id]=t;r+=t.weight});this._keys.forEach(function(n){n.weight/=r})}return i(n,[{key:"get",value:function(n){return this._keyMap[n]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),n}(),tr={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(n,t){return n.score===t.score?n.idx<t.idx?-1:1:n.score<t.score?-1:1}},ir={useExtendedSearch:!1,getFn:nr,ignoreLocation:!1,ignoreFieldNorm:!1},n=st({},tr,{},{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},{},{location:0,threshold:.6,distance:100},{},ir),rr=/[^ ]+/g,tt=function(){function e(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},i=r.getFn,u=i===void 0?n.getFn:i;t(this,e);this.norm=ur(3);this.getFn=u;this.isCreated=!1;this.setIndexRecords()}return i(e,[{key:"setSources",value:function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];this.docs=n}},{key:"setIndexRecords",value:function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];this.records=n}},{key:"setKeys",value:function(){var t=this,n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];this.keys=n;this._keysMap={};n.forEach(function(n,i){t._keysMap[n.id]=i})}},{key:"create",value:function(){var n=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,f(this.docs[0])?this.docs.forEach(function(t,i){n._addString(t,i)}):this.docs.forEach(function(t,i){n._addObject(t,i)}),this.norm.clear())}},{key:"add",value:function(n){var t=this.size();f(n)?this._addString(n,t):this._addObject(n,t)}},{key:"removeAt",value:function(n){this.records.splice(n,1);for(var t=n,i=this.size();t<i;t+=1)this.records[t].i-=1}},{key:"getValueForItemAtKeyId",value:function(n,t){return n[this._keysMap[t]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(n,t){if(r(n)&&!g(n)){var i={v:n,i:t,n:this.norm.get(n)};this.records.push(i)}}},{key:"_addObject",value:function(n,t){var i=this,e={i:t,$:{}};this.keys.forEach(function(t,o){var s=i.getFn(n,t.path),h;r(s)&&(u(s)?function(){for(var h=[],t=[{nestedArrIndex:-1,value:s}],l;t.length;){var c=t.pop(),a=c.nestedArrIndex,n=c.value;r(n)&&(f(n)&&!g(n)?(l={v:n,i:a,n:i.norm.get(n)},h.push(l)):u(n)&&n.forEach(function(n,i){t.push({nestedArrIndex:i,value:n})}))}e.$[o]=h}():g(s)||(h={v:s,n:i.norm.get(s)},e.$[o]=h))});this.records.push(e)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}(),c=32,wt=function(){function r(i){var g=this,u=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},h=u.location,nt=h===void 0?n.location:h,l=u.threshold,tt=l===void 0?n.threshold:l,a=u.distance,it=a===void 0?n.distance:a,v=u.includeMatches,rt=v===void 0?n.includeMatches:v,y=u.findAllMatches,ut=y===void 0?n.findAllMatches:y,p=u.minMatchCharLength,ft=p===void 0?n.minMatchCharLength:p,w=u.isCaseSensitive,b=w===void 0?n.isCaseSensitive:w,k=u.ignoreLocation,et=k===void 0?n.ignoreLocation:k,e,f,s;if(t(this,r),this.options={location:nt,threshold:tt,distance:it,includeMatches:rt,findAllMatches:ut,minMatchCharLength:ft,isCaseSensitive:b,ignoreLocation:et},this.pattern=b?i:i.toLowerCase(),this.chunks=[],this.pattern.length)if(e=function(n,t){g.chunks.push({pattern:n,alphabet:cr(n),startIndex:t})},f=this.pattern.length,f>c){for(var o=0,d=f%c,ot=f-d;o<ot;)e(this.pattern.substr(o,c),o),o+=c;d&&(s=f-c,e(this.pattern.substr(s),s))}else e(this.pattern,0)}return i(r,[{key:"searchIn",value:function(n){var o=this.options,c=o.isCaseSensitive,r=o.includeMatches,u,e;if(c||(n=n.toLowerCase()),this.pattern===n)return u={isMatch:!0,score:0},r&&(u.indices=[[0,n.length-1]]),u;var t=this.options,l=t.location,a=t.distance,v=t.threshold,y=t.findAllMatches,p=t.minMatchCharLength,w=t.ignoreLocation,f=[],h=0,i=!1;return this.chunks.forEach(function(t){var c=t.pattern,b=t.alphabet,k=t.startIndex,u=hr(n,c,b,{location:l+k,distance:a,threshold:v,findAllMatches:y,minMatchCharLength:p,includeMatches:r,ignoreLocation:w}),e=u.isMatch,d=u.score,o=u.indices;e&&(i=!0);h+=d;e&&o&&(f=[].concat(s(f),s(o)))}),e={isMatch:i,score:i?h/this.chunks.length:1},i&&r&&(e.indices=f),e}}]),r}(),h=function(){function n(i){t(this,n);this.pattern=i}return i(n,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(n){return bt(n,this.multiRegex)}},{key:"isSingleMatch",value:function(n){return bt(n,this.singleRegex)}}]),n}(),lr=function(n){function r(n){return t(this,r),u.call(this,n)}e(r,n);var u=o(r);return i(r,[{key:"search",value:function(n){var t=n===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),r}(h),ar=function(n){function r(n){return t(this,r),u.call(this,n)}e(r,n);var u=o(r);return i(r,[{key:"search",value:function(n){var i=n.indexOf(this.pattern),t=i===-1;return{isMatch:t,score:t?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),r}(h),vr=function(n){function r(n){return t(this,r),u.call(this,n)}e(r,n);var u=o(r);return i(r,[{key:"search",value:function(n){var t=n.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),r}(h),yr=function(n){function r(n){return t(this,r),u.call(this,n)}e(r,n);var u=o(r);return i(r,[{key:"search",value:function(n){var t=!n.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),r}(h),pr=function(n){function r(n){return t(this,r),u.call(this,n)}e(r,n);var u=o(r);return i(r,[{key:"search",value:function(n){var t=n.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[n.length-this.pattern.length,n.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),r}(h),wr=function(n){function r(n){return t(this,r),u.call(this,n)}e(r,n);var u=o(r);return i(r,[{key:"search",value:function(n){var t=!n.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),r}(h),kt=function(r){function u(i){var e,r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},o=r.location,y=o===void 0?n.location:o,s=r.threshold,p=s===void 0?n.threshold:s,h=r.distance,w=h===void 0?n.distance:h,c=r.includeMatches,b=c===void 0?n.includeMatches:c,l=r.findAllMatches,k=l===void 0?n.findAllMatches:l,a=r.minMatchCharLength,d=a===void 0?n.minMatchCharLength:a,v=r.isCaseSensitive,g=v===void 0?n.isCaseSensitive:v;return t(this,u),e=f.call(this,i),e._bitapSearch=new wt(i,{location:y,threshold:p,distance:w,includeMatches:b,findAllMatches:k,minMatchCharLength:d,isCaseSensitive:g}),e}e(u,r);var f=o(u);return i(u,[{key:"search",value:function(n){return this._bitapSearch.searchIn(n)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),u}(h),dt=function(n){function r(n){return t(this,r),u.call(this,n)}e(r,n);var u=o(r);return i(r,[{key:"search",value:function(n){for(var t=0,i,r=[],f=this.pattern.length,u;(i=n.indexOf(this.pattern,t))>-1;)t=i+f,r.push([i,t-1]);return u=!!r.length,{isMatch:u,score:u?1:0,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),r}(h),it=[lr,dt,vr,yr,wr,pr,ar,kt],gt=it.length,br=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/,kr="|",gr=new Set([kt.type,dt.type]),nu=function(){function r(i){var u=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},f=u.isCaseSensitive,e=f===void 0?n.isCaseSensitive:f,o=u.includeMatches,v=o===void 0?n.includeMatches:o,s=u.minMatchCharLength,y=s===void 0?n.minMatchCharLength:s,h=u.findAllMatches,p=h===void 0?n.findAllMatches:h,c=u.location,w=c===void 0?n.location:c,l=u.threshold,b=l===void 0?n.threshold:l,a=u.distance,k=a===void 0?n.distance:a;t(this,r);this.query=null;this.options={isCaseSensitive:e,includeMatches:v,minMatchCharLength:y,findAllMatches:p,location:w,threshold:b,distance:k};this.pattern=e?i:i.toLowerCase();this.query=dr(this.pattern,this.options)}return i(r,[{key:"searchIn",value:function(n){var f=this.query,r,v,o,u,y,b,c;if(!f)return{isMatch:!1,score:1};var l=this.options,a=l.includeMatches,k=l.isCaseSensitive;n=k?n:n.toLowerCase();var i=0,t=[],e=0;for(r=0,v=f.length;r<v;r+=1){for(o=f[r],t.length=0,i=0,u=0,y=o.length;u<y;u+=1){var p=o[u],h=p.search(n),d=h.isMatch,w=h.indices,g=h.score;if(d)i+=1,e+=g,a&&(b=p.constructor.type,gr.has(b)?t=[].concat(s(t),s(w)):t.push(w));else{e=0;i=0;t.length=0;break}}if(i)return c={isMatch:!0,score:e/i},a&&(c.indices=t),c}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(n,t){return t.useExtendedSearch}}]),r}(),w=[],a={AND:"$and",OR:"$or"},ut={PATH:"$path",PATTERN:"$val"},ft=function(n){return!!(n[a.AND]||n[a.OR])},iu=function(n){return!!n[ut.PATH]},ru=function(n){return!u(n)&&ct(n)&&!ft(n)},ni=function(n){return b({},a.AND,Object.keys(n).map(function(t){return b({},t,n[t])}))},l=function(){function e(i){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},u=arguments.length>2?arguments[2]:undefined;if(t(this,e),this.options=st({},n,{},r),this.options.useExtendedSearch&&!1)throw new Error(yi);this._keyStore=new gi(this.options.keys);this.setCollection(i,u)}return i(e,[{key:"setCollection",value:function(n,t){if(this._docs=n,t&&!(t instanceof tt))throw new Error(pi);this._myIndex=t||pt(this.options.keys,this._docs,{getFn:this.options.getFn})}},{key:"add",value:function(n){r(n)&&(this._docs.push(n),this._myIndex.add(n))}},{key:"remove",value:function(){for(var t,r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:function(){return!1},i=[],n=0,u=this._docs.length;n<u;n+=1)t=this._docs[n],r(t,n)&&(this.removeAt(n),n-=1,i.push(t));return i}},{key:"removeAt",value:function(n){this._docs.splice(n,1);this._myIndex.removeAt(n)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(n){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},u=e.limit,r=u===void 0?-1:u,t=this.options,o=t.includeMatches,s=t.includeScore,h=t.shouldSort,c=t.sortFn,l=t.ignoreFieldNorm,i=f(n)?f(this._docs[0])?this._searchStringList(n):this._searchObjectList(n):this._searchLogical(n);return uu(i,{ignoreFieldNorm:l}),h&&i.sort(c),ht(r)&&r>-1&&(i=i.slice(0,r)),fu(i,this._docs,{includeMatches:o,includeScore:s})}},{key:"_searchStringList",value:function(n){var i=rt(n,this.options),u=this._myIndex.records,t=[];return u.forEach(function(n){var u=n.v,e=n.i,o=n.n;if(r(u)){var f=i.searchIn(u),s=f.isMatch,h=f.score,c=f.indices;s&&t.push({item:u,idx:e,matches:[{score:h,value:u,norm:o,indices:c}]})}}),t}},{key:"_searchLogical",value:function(n){var i=this,e=ti(n,this.options),u=function u(n,t,r){var f,e,p,w,l,o,h,b,k,v;if(!n.children){var y=n.keyId,d=n.searcher,c=i._findMatches({key:i._keyStore.get(y),value:i._myIndex.getValueForItemAtKeyId(t,y),searcher:d});return c&&c.length?[{idx:r,item:t,matches:c}]:[]}switch(n.operator){case a.AND:for(f=[],e=0,p=n.children.length;e<p;e+=1)if(w=n.children[e],l=u(w,t,r),l.length)f.push.apply(f,s(l));else return[];return f;case a.OR:for(o=[],h=0,b=n.children.length;h<b;h+=1)if(k=n.children[h],v=u(k,t,r),v.length){o.push.apply(o,s(v));break}return o}},o=this._myIndex.records,t={},f=[];return o.forEach(function(n){var o=n.$,i=n.i,h;r(o)&&(h=u(e,o,i),h.length&&(t[i]||(t[i]={idx:i,item:o,matches:[]},f.push(t[i])),h.forEach(function(n){var r,u=n.matches;(r=t[i].matches).push.apply(r,s(u))})))}),f}},{key:"_searchObjectList",value:function(n){var u=this,f=rt(n,this.options),t=this._myIndex,e=t.keys,o=t.records,i=[];return o.forEach(function(n){var o=n.$,h=n.i,t;r(o)&&(t=[],e.forEach(function(n,i){t.push.apply(t,s(u._findMatches({key:n,value:o[i],searcher:f})))}),t.length&&i.push({idx:h,item:o,matches:t}))}),i}},{key:"_findMatches",value:function(n){var e=n.key,t=n.value,o=n.searcher,i;if(!r(t))return[];if(i=[],u(t))t.forEach(function(n){var t=n.v,f=n.i,s=n.n;if(r(t)){var u=o.searchIn(t),h=u.isMatch,c=u.score,l=u.indices;h&&i.push({score:c,key:e,value:t,idx:f,norm:s,indices:l})}});else{var s=t.v,h=t.n,f=o.searchIn(s),c=f.isMatch,l=f.score,a=f.indices;c&&i.push({score:l,key:e,value:s,norm:h,indices:a})}return i}}]),e}();return l.version="6.4.1",l.createIndex=pt,l.parseIndex=fr,l.config=n,l.parseQuery=ti,tu(nu),l});var isMobileViewport=$(window).innerWidth()<576,isSMDownViewport=$(window).innerWidth()<768,SECONDS_IN_DAY=86400;Number.prototype.toByteFormat=function(){for(var t=this,n=0;t>=1024&&n<4;n++)t/=1024;return t.toFixed(2)+["B","KB","MB","GB","TB"][n]};Number.prototype.toTime=function(){var r=Math.floor(this),n=Math.floor(r/3600),t=Math.floor((r-n*3600)/60),i=r-n*3600-t*60;return n<10&&(n="0"+n),t<10&&(t="0"+t),i<10&&(i="0"+i),n+":"+t+":"+i};$.fn.loading=function(n,t){var i=$(this),r=i.attr("id")==="load-more-btn",u=r?i.closest("form"):i,f=r?i:i.find(".btn-text"),e="text-dynamic-half-dark",o;return t!=undefined&&(e=t),o='<div class="loading-wrapper position-absolute top-0 bottom-0 left-0 right-0 w-100 d-flex justify-content-center align-items-center"><div class="loading spinner-border '+(r?"":" spinner-border-sm ")+e+' d-block mx-auto my-3" role="status"><\/div><\/div>',n?(i.data("isLoading",!0),i.attr("disabled","disabled"),f.addClass("invisible"),u.addClass("position-relative").append(o)):(i.data("isLoading",!1),i.removeAttr("disabled"),f.removeClass("invisible"),u.find(".loading-wrapper").remove()),i};$('[data-popup="dashboard-menu"]').find(".context-menu-item").length>0?$('[data-popup-trigger="dashboard-menu"]').removeClass("d-none"):($('[data-popup-trigger="dashboard-menu"]').remove(),$('[data-popup="dashboard-menu"]').remove());$(".form-group-lg.form-text .form-input, .form-group-lg.form-list select").each(function(){!(this instanceof HTMLSelectElement)&&$(this).val()||this instanceof HTMLSelectElement&&$(this).find('option[value="'+$(this).val()+'"]').text()!=""?$(this).closest(".form-group-lg").addClass("active"):$(this).closest(".form-group-lg").removeClass("active")});$(document).on("input change load ready",".form-group-lg.form-text .form-input, .captcha-container .captcha-code",function(){$(this).val()?$(this).closest(".form-group-lg").addClass("active"):$(this).closest(".form-group-lg").removeClass("active")});$(document).on("focus",".form-group-lg .form-input, .captcha-container .captcha-code",function(){$(this).closest(".form-group-lg").addClass("focus")});$(document).on("blur",".form-group-lg .form-input, .captcha-container .captcha-code",function(){$(this).closest(".form-group-lg").removeClass("focus")});$(document).on("click",".form-group-lg.form-text",function(){$(this).attr("data-focus-input")?$(this).find($(this).attr("data-focus-input")).focus():$(this).find('input[type="text"]').focus()});$(document).on("dblclick",".form-group-lg.form-text",function(){$(this).find("input").focus();$(this).find("input").select()});$(document).on("dblclick",".form-group-lg.form-text input",function(n){n.stopPropagation()});$(document).on("change",".form-group-lg.form-list select",function(){$(this).val()?$(this).closest(".form-group-lg").addClass("active"):$(this).closest(".form-group-lg").removeClass("active")});$(document).on("click",'[data-stop-propagation="true"]',function(n){n.stopPropagation()});if(window.innerWidth<992)$(document).on("click",'[data-phone-stop-propagation="true"]',function(n){n.stopPropagation()});$(document).on("click",'[data-prevent-default="true"]',function(n){n.preventDefault()});$(document).on("input",".custom-form-group .form-control",function(){var n=$(this)[0];n.value.length>0?$(this).addClass("active"):$(this).removeClass("active")});$.fn.showPopup=function(n){var t,i,r,u;if(n=n||null,t=$(this),i={id:t.attr("data-popup"),dataId:t.attr("data-id")||n.attr("data-id")||null,title:t.attr("data-popup-title")||n.attr("data-popup-title")||n.closest(".thumbnail").find(".thumbnail-video-title").html()||$(".video-title").html()||null,content:t.attr("data-popup-content")||n.attr("data-popup-content")||null,url:t.attr("data-popup-url")||n.attr("data-popup-url")||null,reload:t.attr("data-reload")==="reload"||n.attr("data-reload")==="reload"||null,lockScroll:t.attr("data-lock-scroll")==="true",overlay:t.attr("data-overlay")==="true"},i.title!=null&&(i.title=i.title.trim()),(t.attr("data-share-type")==="native"||n.attr("data-share-type")==="native")&&"share"in navigator&&isMobileViewport){t.triggerHandler("popup:nativeShare");navigator.share({title:i.title,text:i.title,url:n.closest(".thumbnail").find(".thumbnail-url").attr("href")||location.href});return}if(t.triggerHandler("popup:beforeShow"),$('[data-popup-show="true"]').each(function(n,t){$(t).attr("data-overlay")!="true"&&$(t).hidePopup($('[data-popup-trigger="'+$(t).attr("data-popup")+'"]'))}),$(this).addClass("active").attr("aria-expanded",!0).attr("data-popup-show",!0),n!=null&&n.addClass("active"),i.title?t.find(".action-menu-title").html(i.title).removeClass("d-none"):t.find(".action-menu-title").addClass("d-none"),i.content?t.find(".action-menu-content").text(i.content).removeClass("d-none"):t.find(".action-menu-content").addClass("d-none"),r=t.find(".action-menu-container"),i.url==="PLAYLIST_URL"&&(i.url=$("#account-btn").attr("data-playlist-url"),r.removeClass("loaded loaded-list"),r.find(".until-here").before('<div class="spinner-border spinner-border-sm text-dynamic-half-dark mx-auto my-3" data-loading="true" data-dynamic-after="true" role="status"><span class="sr-only">Loading...<\/span><\/div>'),r.find(".playlist-modal-container").remove()),u=t.find('[data-dynamic-after="true"]'),u.length>0&&r.removeClass("loaded"),i.url&&!r.hasClass("loaded")){u.length>0?(u.removeClass("d-none"),u.nextUntil(".until-here").remove(),u.show(),u.attr("data-loading","true")):r.find(".loading").length>0?r.find(".loading").removeClass("d-none").addClass("d-flex").attr("data-dynamic-after","true").attr("data-loading","true"):r.append('<div class="spinner-border spinner-border-sm text-dynamic-half-dark mx-auto my-3" data-loading="true" data-dynamic-after="true" role="status"><span class="sr-only">Loading...<\/span><\/div>');function n(){r.find(".popup-error").remove();r.find(".loading").removeClass("d-none").addClass("d-flex");var u=i.dataId===null?{}:{id:i.dataId};$.get(i.url,u).done(function(n){r.find('[data-dynamic-after="true"]').attr("data-loading")==="true"&&(r.find('[data-dynamic-after="true"]').after(n),r.find('[data-dynamic-after="true"]').removeClass("d-flex d-block").addClass("d-none"),r.find('[data-dynamic-after="true"]').removeAttr("data-loading"),r.addClass("loaded"),i.reload||r.find('[data-dynamic-after="true"]').remove(),t.triggerHandler("popup:loadedcontent"))}).fail(function(){var t='<div class="popup-error d-flex flex-column align-items-center my-auto py-5"><svg role="img" class="icon text-dynamic-half-dark size-xxxl mb-2" width="18" height="18"><use class="icon" xlink:href="#bxs-error-circle"><\/use><\/svg><span class="text-dynamic-half-dark">'+resources.errorHasOccurred+'<\/span><button id="retry-content" class="btn btn-retry mt-4" data-stop-propagation="true">'+resources.tryAgain+"<\/button><\/div>";r.find(".loading").removeClass("d-flex").addClass("d-none");r.find('[data-dynamic-after="true"]').after(t);$(document).on("click","#retry-content",function(){n();$(document).off("click","#retry-content")})})}n()}i.dataId?t.attr("data-id",i.dataId):t.removeAttr("data-id");(window.innerWidth<992||i.lockScroll)&&scrollLock.disablePageScroll();t.trigger(new $.Event("popup:show"))};$.fn.hidePopup=function(){var n=$(this);n.trigger(new $.Event("popup:beforeHide"));$("body").removeClass("popup-shown");n.removeClass("active").attr("aria-expanded",!1).attr("data-popup-show",!1);$('[data-popup-trigger="'+n.attr("data-popup")+'"]').removeClass("active");scrollLock.enablePageScroll();setTimeout(function(){n.trigger(new $.Event("popup:hide"))},100)};$(document).on("click","[data-popup-trigger]",function(n){n.stopPropagation();var t=$(this),i=t.attr("data-popup-trigger"),u=$('[data-popup="'+i+'"]'),r=u.length>1&&t.next('[data-popup="'+i+'"]').length>0?$(this).next('[data-popup="'+i+'"]'):$('[data-popup="'+i+'"]').first();r.attr("data-popup-show")==="true"?r.hidePopup($(this)):(t.closest("[data-id]").length>0&&r.attr("data-id",t.closest("[data-id]").attr("data-id")),r.showPopup($(this)))});clickTarget={down:null,up:null};$(document).on("mousedown pointerdown",function(n){clickTarget.down=n.target});$(document).on("mouseup pointerup",function(n){clickTarget.up=n.target});$(document).on("click",function(n){$(n.target).closest("[data-popup]").length===0&&$(n.target).closest("[data-popup-trigger]").length===0?($(".context-menu, .action-menu").removeClass("preload"),$('[data-popup-show="true"]').hidePopup()):$(n.target).hasClass("action-menu")&&clickTarget.up===clickTarget.down&&!$('[data-popup="'+$(n.target).attr("data-popup")+'"]').hasClass("prevent-close")&&$('[data-popup="'+$(n.target).attr("data-popup")+'"]').hidePopup()});$(document).on("click",'[data-close-popups="true"]',function(){$(this).closest("[data-popup]").hidePopup()});$(document).on("keyup",function(n){var t=n?n.which?n.which:n.keyCode:event.keyCode;t==27&&$('[data-popup-show="true"]').hidePopup()});$(document).on("click",".action-menu-container",function(n){n.stopPropagation()});if($("main").length>0){new MutationObserver(function(){var n,t,i;this.disconnect();$(".thumbnail-image").each(function(n,t){$(t).attr("src")!=$(t).attr("data-src")&&t.addEventListener("error",function(){var n=$(t),i=n.innerWidth(),r=9*i/16;n.css("height",r+"px")})});$(".thumbnail[data-id]:not(.deleted):not(.exerted-watch-time):not(.no-watch-time)").each(function(n,t){var r,i;if(typeof localStorage!="undefined"&&typeof JSON!="undefined"){var u=$("#account-btn").attr("data-id"),f=$(t).attr("data-id"),e=typeof u=="undefined"?sessionStorage["n-wt-"+f]:localStorage["n-wt-"+u+"-"+f];typeof e!="undefined"&&(r=JSON.parse(e),i=r.p/r.d*100,i<0?i=0:i>100&&(i=100),$(t).find(".thumbnail-image-wrapper").append('<div class="thumbnail-progress"><div class="thumbnail-progress-fill" style="width: '+i+'%;"><\/div><\/div>'))}$(t).addClass("exerted-watch-time")});$("#more-menu-template").length>0&&(n=function(n){var l=$("#more-menu-template")[0],s=n.find(".more-menu-placeholder"),i,t=l.content.cloneNode(!0),h=n.attr("data-id"),a=n.attr("data-address"),u,r,e,o,f,c;if(i=n.hasClass("playlist-thumbnail")?"playlist":n.hasClass("thumbnail")?"thumbnail":"comment",i==="thumbnail"||i==="playlist")u=n.find(".thumbnail-video-title").text(),r=n.find(".thumbnail-channel-title").text()||$(".channel-title").contents().not($(".channel-title").children()).text().trim(),e=n.find(".thumbnail-verified-channel").length>0,o=n.find(".thumbnail-image").attr("data-src")||n.find(".thumbnail-image").attr("src"),n.hasClass("deleted")&&($(t).find(".watch-later-btn").remove(),$(t).find('[data-popup-trigger="playlist-prompt"]').remove(),$(t).find('[data-popup-trigger="video-share-prompt"]').remove(),$(t).find('[data-popup-trigger="playlist-share-prompt"]').remove()),n.hasClass("subscribed")&&(f=$(t).find(".playlist-subscribe-btn"),f.addClass("subscribed"),f.find(".icon use").attr("xlink:href","#bxs-bookmark"),f.find("span").text(resources.unfollowPlaylist));else if(i==="comment"){u=n.find(".comment-text").html().replace("<br />"," ");r=n.find(".comment-channel-title").text();e=n.find(".comment-verified-channel").length>0;o=n.find(".comment-avatar").attr("data-src")||n.find(".comment-avatar").attr("src");$(t).find(".more-btn").removeClass("clickable");n.hasClass("comment-unapproved")||$(t).find(".comment-approve-btn").remove();$(t).find('[data-popup="more-drop"]').on("popup:show",function(){$(".ph-comment-form").addClass("d-none")});$(t).find('[data-popup="more-drop"]').on("popup:hide",function(){$(".ph-comment-form").attr("data-has-comment")!="true"&&$(".ph-comment-form").removeClass("d-none")});$(t).find(".action-menu-video-title").addClass("clamp-text single-line")}$(t).find("[data-menu-button-type]").each(function(n,t){$(t).attr("data-menu-button-type")!=i&&$(t).remove()});$(t).find('[data-popup="more-drop"]').on("popup:show",function(){$(this).find(".action-menu-header").removeClass("d-none").addClass("d-flex")});$(t).find('[data-popup="more-drop"]').on("popup:hide",function(){var n=$(this);setTimeout(function(){n.find(".action-menu-header").removeClass("d-flex").addClass("d-none")},100)});$(t).find(".action-menu").attr("data-id",h);$(t).find(".action-menu-video-title").html(u);$(t).find(".action-menu-channel-title").text(r);e&&r!=""||$(t).find(".action-menu-verified-channel").remove();$(t).find(".action-menu-thumbnail").attr("data-src",o).attr("alt",i==="thumbnail"||i==="playlist"?u:r).addClass(i==="thumbnail"||i==="playlist"?"rounded-lg":"rounded-circle");$(t).find(".dynamic-href").length>0&&(c=$(t).find(".dynamic-href"),c.each(function(t,i){!n.closest(".thumbnail").hasClass("Completed")&&$(i).hasClass("download")?$(i).remove():$(i).attr("href").indexOf("{VideoId}")>-1?$(i).attr("href",$(i).attr("href").replace("{VideoId}",h)):$(i).attr("href").indexOf("{PlaylistAddress}")>-1&&$(i).attr("href",$(i).attr("href").replace("{PlaylistAddress}",a))}));$(t).find(".action-menu-item").length>0&&(s.after(t),s.remove())},$('[data-has-menu="true"]').each(function(t,i){$(i).find(".more-menu-placeholder").length>0&&n($(i))}));t=$("#watch-later-template")[0];$("#watch-later-template").length>0&&(i=$(".thumbnail:not(.playlist-thumbnail):not(.no-watch-later)"),i.each(function(n,i){var u=$(i).find(".thumbnail-image-wrapper .watch-later-btn").length>0,r;u||$(i).hasClass("deleted")||(r=t.content.cloneNode(!0),$(i).find(".thumbnail-image").after(r))}));$(".lazy").each(function(n,t){$(t).attr("src")===$(t).attr("data-src")&&$(t).removeAttr("data-src").removeClass("lazy")});$(".lazy:not(.added-to-lazy)").length>0&&$(".lazy:not(.added-to-lazy)").lazyload().addClass("added-to-lazy");this.observe($("main")[0],{childList:!0,subtree:!0})}).observe($("main")[0],{childList:!0,subtree:!0});$("main").append('<span class="d-none"><\/span>');var MainHeaderHeight=$(".main-header").outerHeight(),MainFooterHeight=$(".main-footer").outerHeight(),contentMargin=parseInt($("main.content-section").css("margin-top").replace("px",""))+parseInt($("main.content-section").css("margin-bottom").replace("px",""));$("main.content-section").css("min-height","calc(100vh - "+(MainHeaderHeight+MainFooterHeight+contentMargin)+"px)")}$(document).ready(function(){setTimeout(function(){var t,n,i;if(typeof localStorage!="undefined"&&typeof JSON!="undefined"&&(t=(new Date).getTime(),typeof localStorage["n-wtcd"]=="undefined"||t-Number(localStorage["n-wtcd"])>SECONDS_IN_DAY*1e3)){for(n in localStorage)/^n-wt-[0-9]{10}-[0-9]{10}$/i.test(n)&&(i=JSON.parse(localStorage[n]),t-Number(i.wd)>1e5*SECONDS_IN_DAY&&localStorage.removeItem(n));for(n in sessionStorage)/^n-wt-[0-9]{10}$/gi.test(n)&&(i=JSON.parse(sessionStorage[n]),t-Number(i.ed)>SECONDS_IN_DAY*1e3&&sessionStorage.removeItem(n));localStorage.setItem("n-wtcd",t)}},5e3)});$(document).on("click",'[data-select-text="true"]',function(){$(this).focus();$(this).get(0).setSelectionRange(0,9999)});window.addEventListener("offline",function(){this.document.body.setAttribute("data-network-status","offline");toast("error","all",resources.pleaseCheckYourInternetAccess)});window.addEventListener("online",function(){this.document.body.setAttribute("data-network-status","online")});$(document).on("click","[data-toggle-class]",function(){var n="#"+$(this).attr("data-toggle-id"),t=$(this).attr("data-toggle-class");$(n).toggleClass(t);$(this).hasClass("fixed-state")||$(this).toggleClass("active");$(n).trigger(new $.Event("class:toggled"))});$(document).on("click",'[data-toggle="true"]',function(){$(this).toggleClass("active")});$(document).on("click",".watch-later-btn",function(){$(this).attr("data-authenticated")!=="false"&&addToWatchLater($(this))});$(document).on("click",".channel-subscribe-btn",function(){if($(this).attr("disabled")!=="disabled"&&$(this).attr("data-authenticated")!=="false"){var t=$(this).attr("data-id"),r=$("#account-btn").attr("data-channel-subscribe-url"),i=$(this).hasClass("subscribed")?"unsubscribe":"subscribe",n=$('.channel-subscribe-btn[data-id="'+t+'"]');n.attr("disabled","disabled");$.post(r,{id:t,status:i}).done(function(t){i=="subscribe"?(n.addClass("subscribed"),n.filter($(".subscribe-btn-icon")).attr("title",resources.youAreFollowingThisChannel),toast("success","all",resources.followedThisChannel)):(n.removeClass("subscribed"),n.filter($(".subscribe-btn-icon")).attr("title",resources.followThisChannel),n.removeAttr("disabled"),toast("success","all",resources.unfollowedThisChannel));$(".subscribe-channel-btn").removeAttr("disabled");$(".subscription-video-count").text(t.count)}).fail(function(){subscribeBtn.removeAttr("disabled");channelSubscribeBtn.removeAttr("disabled");toast("error","all",resources.errorHasOccurred)})}});$(document).on("click",".playlist-subscribe-btn",function(){var n=$(this),i;if(n.attr("data-authenticated")!=="false"&&(i=n.attr("data-id")||n.closest(".action-menu").attr("data-id"),$('.action-menu[data-id="'+i+'"]').hidePopup(),n.attr("disabled")!=="disabled")){n.attr("disabled","disabled");var u=$("#account-btn").attr("data-playlist-subscribe-url"),r=n.hasClass("subscribed")?"unsubscribe":"subscribe",t=n.closest(".thumbnail");$.post(u,{id:i,status:r}).done(function(){t.hasClass("subscribed-page")&&(r=="subscribe"?t.removeClass("disabled"):t.addClass("disabled"));t.hasClass("deleted")?t.find(".more-btn").remove():r=="subscribe"?(n.addClass("subscribed"),n.find("span").length>0?n.find("span").text(resources.unfollowPlaylist):n.attr("title",resources.unfollowPlaylist),n.find(".icon use").attr("xlink:href","#bxs-bookmark"),toast("success","all",resources.followedThisPlaylist)):(n.removeClass("subscribed"),n.find("span").length>0?n.find("span").text(resources.followPlaylist):n.attr("title",resources.followPlaylist),n.find(".icon use").attr("xlink:href","#bx-bookmark"),toast("success","all",resources.unfollowedThisPlaylist))}).fail(function(){toast("error","all",resources.errorHasOccurred)}).always(function(){n.removeAttr("disabled")})}});$(document).on("click",'[data-navigate-manually="true"]',function(n){n.preventDefault();location.href=$(this).attr("href");location.reload()});$(document).on("click","#retry-notifications",function(){loadNotifications($("#notification-menu"))});$("#notification-menu").on("popup:show",function(){loadNotifications($(this))});$(document).on("click","#load-more-notification-btn",function(){var n=$(this),t=$("#notification-menu .loading");t.removeClass("d-none").addClass("d-block");$("#load-more-notification-btn").addClass("d-none").removeClass("d-block");var i=$("#notification-menu").attr("data-url"),r=n.attr("data-lid"),u=$("#notification-menu").attr("data-count"),f=$(".notification-grid .context-menu-item.new-badge").length;$.get(i,{lastId:r,totalNew:f,newNotificationCount:u}).done(function(t){var i=n.closest("[data-popup]");$("#load-more-notification-box").replaceWith(t);$("#notification-menu").removeClass("failed");fixNotificationURL(i)}).fail(function(){$("#notification-menu").addClass("failed");$("#load-more-notification-btn").removeClass("d-none")}).always(function(){t.addClass("d-none").removeClass("d-block")})});$("#notification-menu").on("scroll",function(){if($(this).find("#load-more-notification-box").length>0&&$("#load-more-notification-box").isInViewport()&&!$("#notification-menu").hasClass("failed")){var n=$("body").attr("data-notification-loading")==="true";n||($("body").attr("data-notification-loading","true"),$(this).find("#load-more-notification-btn").click(),setTimeout(function(){$("body").attr("data-notification-loading","false")},1e3))}});$('[data-popup="search-box"]').on("popup:show",function(){$(this).find(".search-input").focus()});hostParams=location.hostname.toLowerCase().split(".");host=hostParams.length==1?hostParams[0]:hostParams[hostParams.length-2]+"."+hostParams[hostParams.length-1];$.ajaxSetup({beforeSend:function(n,t){var i,u,f;if(window.navigator.onLine!==!1){var e=new URL(t.url,window.location.origin),r=e.hostname.toLowerCase().split("."),o=r.length==1?r[0]:r[r.length-2]+"."+r[r.length-1];host==o&&(t.xhrFields=t.xhrFields||{},t.xhrFields.withCredentials=!0,n.setRequestHeader("X-Requested-With","XMLHttpRequest"));t.type=="POST"&&(i="__RequestVerificationToken",u=$('input[name="'+i+'"]'),u.length>0&&(requestVerificationTokenValue=u.val(),typeof t.data=="undefined"||t.data==""?(f=new FormData,f.append(i,requestVerificationTokenValue),t.data=f):t.data instanceof FormData?t.data.has(i)||t.data.append(i,requestVerificationTokenValue):t.data.indexOf(i+"=")==-1&&(t.data+="&"+i+"="+requestVerificationTokenValue)))}},statusCode:{401:function(){location.reload()},403:function(){toast("error","all",resources.yourRequestCouldNotBeProcessed)}}});$.fn.isInViewport=function(n=100){var t=$(this).offset().top-n,r=t+$(this).outerHeight(),i=$(window).scrollTop(),u=i+$(window).height();return r>i&&t<u};parser=document.createElement("a");parser.href=$("link").attr("href");$.get(parser.protocol+"//"+parser.host+"/images/sprite.svg?v=1.29",function(n){var t=document.createElement("div");t.classList.add("d-none");t.innerHTML=(new XMLSerializer).serializeToString(n.documentElement);document.body.insertBefore(t,document.body.childNodes[0])});$(document).on("change","#dark-mode-checkbox",function(){$(this).is(":checked")?($("body").addClass("dark-mode"),$('meta[name="theme-color"]').attr("content","#212529")):($("body").removeClass("dark-mode"),$('meta[name="theme-color"]').attr("content","#ffffff"));var t=$(this).is(":checked")?365:-1,n=new Date;n.setTime(n.getTime()+t*SECONDS_IN_DAY*1e3);document.cookie=".dmws="+$(this).val()+";expires="+n.toUTCString()+";path=/"});$(".context-menu").on("popup:beforeShow",function(){$(".context-menu.active").length>0?$(".context-menu").addClass("preload"):$(".context-menu").removeClass("preload")});$(document).on("change",".playlist-checkbox",function(){function u(t,f){n.attr("disabled")!=="disabled"&&(n.attr("disabled","disabled"),$.post(e,{id:t,playlistId:f}).done(function(n){var e=n.status==="added",s;e===r?(o&&(e?i.addClass("added"):i.removeClass("added")),typeof removeVideoFromPlaylist=="undefined"||e||(s=$("[data-current-id]").attr("data-current-id"),s==f&&(removeVideoFromPlaylist(t,n),$('[data-popup="playlist-prompt"]').hidePopup())),toast("success","all",resources.operationWasDoneSuccessfully)):u(t,f)}).fail(function(){n.prop("checked",r?!1:!0);toast("error","all",resources.errorHasOccurred)}).always(function(){n.removeAttr("disabled")}))}var n=$(this),t=n.closest(".action-menu").attr("data-id")||n.closest(".accordion-menu").attr("data-id"),f=n.closest(".action-menu-item").attr("data-id"),e=$("#account-btn").attr("data-toggle-playlist-url"),o=n.closest(".action-menu-item").hasClass("playlist-watch-later-item"),s=n.closest(".action-menu").attr("data-requires-submit")==="true"||n.closest(".accordion-menu").attr("data-requires-submit")==="true",h=$('.thumbnail[data-id="'+t+'"]'),i=h.find(".watch-later-btn"),r=n.is(":checked");s||u(t,f)});playlistsArray=[];$(document).on("input",".playlist-input",function(){var t,r,n,i;t=$(this).closest("[data-playlist-id]").length>0?$(this).closest("[data-playlist-id]").attr("data-playlist-id"):$(this).closest("[data-playlist-target]").length>0?$(this).closest("[data-playlist-target]").attr("data-playlist-target"):null;r=t?$('[data-playlist-id="'+t+'"]').closest(".playlist-modal-container"):$(".playlist-modal-container");populatePlaylistsArray(r);n=$(this).closest(".playlist-form");$(this).val().length>0?(n.find(".playlist-search-results").length===0&&n.append('<div class="playlist-search-results list-group"><\/div>'),n.find(".playlist-search-results").html(""),i=fuse.search($(this).val()),i.forEach(function(t){n.find(".playlist-search-results").append('<button class="search-result-item list-group-item list-group-item-action btn-dynamic-bw px-3 py-2">'+t.item.name+"<\/button>")}),i.length>0?n.addClass("list-open"):n.removeClass("list-open")):(n.removeClass("list-open"),n.find(".playlist-search-results").remove())});isKeyDown=!1;$(document).on("keydown",".playlist-form .playlist-input",function(n){var f,r,u;if(f=$(this).closest("[data-playlist-id]").length>0?$(this).closest("[data-playlist-id]").attr("data-playlist-id"):$(this).closest("[data-playlist-target]").length>0?$(this).closest("[data-playlist-target]").attr("data-playlist-target"):null,r=f?$('[data-playlist-id="'+f+'"]').closest(".playlist-modal-container"):$(".playlist-modal-container"),u=$(this),(n.key==="Enter"||n.keyCode===13)&&(n.preventDefault(),n.stopPropagation(),submitPlaylistForm(r)),(n.keyCode===38||n.keyCode===40)&&!isKeyDown){n.preventDefault();var i=$(".playlist-search-results"),t=i.find(".active").length>0?i.find(".active"):null,e=t!=null&&t.is(":last-child"),o=t!=null&&t.is(":first-child");n.keyCode===40?(isKeyDown=!0,t?e||(t.removeClass("active").next().addClass("active"),t[0].scrollIntoView({block:"center",behavior:"smooth"})):(r.addClass("is-navigating"),r.attr("data-init-value",u.val()),i.find(".search-result-item").first().addClass("active"),i.find(".search-result-item").first()[0].scrollIntoView({block:"center",behavior:"smooth"})),u.val(i.find(".active").text())):n.keyCode===38&&(isKeyDown=!0,t?o?(u.val(r.attr("data-init-value")),$(".playlist-search-results .search-result-item").removeClass("active"),r.removeAttr("data-init-value").removeClass("is-navigating"),u.trigger("input")):(t.removeClass("active").prev().addClass("active"),t[0].scrollIntoView({block:"center",behavior:"smooth"})):(r.attr("data-init-value",u.val()),r.addClass("is-navigating"),i.find(".search-result-item").last().addClass("active"),i.find(".search-result-item").last()[0].scrollIntoView({block:"center",behavior:"smooth"})),i.find(".active").length>0&&u.val(i.find(".active").text()));setTimeout(function(){isKeyDown=!1},100)}});$(document).on("click",".search-result-item",function(n){var t,i;n.preventDefault();n.stopPropagation();t=$(this).closest("[data-playlist-id]").length>0?$(this).closest("[data-playlist-id]").attr("data-playlist-id"):$(this).closest("[data-playlist-target]").length>0?$(this).closest("[data-playlist-target]").attr("data-playlist-target"):null;i=t?$('[data-playlist-id="'+t+'"]').closest(".playlist-modal-container"):$(".playlist-modal-container");$(".playlist-form .playlist-input").val($(this).text());submitPlaylistForm(i)});$(document).on("click",".playlist-form:not(.mobile-mode) .playlist-input",function(){var r=$(this),t,i,n;t=$(this).closest("[data-playlist-id]").length>0?$(this).closest("[data-playlist-id]").attr("data-playlist-id"):$(this).closest("[data-playlist-target]").length>0?$(this).closest("[data-playlist-target]").attr("data-playlist-target"):null;i=t?$('[data-playlist-id="'+t+'"]').closest(".playlist-modal-container"):$(".playlist-modal-container");$(".playlist-search-results .search-result-item").removeClass("active");i.removeAttr("data-init-value").removeClass("is-navigating");$(this).closest(".playlist-form").hasClass("mobile-mode")||window.innerWidth<992&&($("body").append('<div class="mobile-playlist-wrapper bg-dynamic" data-stop-propagation="true"><\/div>'),n=$(".playlist-form").clone(),n.addClass("mobile-mode d-flex flex-column p-3"),n.attr("data-stop-propagation","true"),n.find(".input-group").addClass("form-group border-bottom border-dynamic flex-shrink-0 mb-2 pb-2").removeClass("input-group").append('<button type="button" class="back-btn btn btn-dynamic d-none" aria-label="@Resources.Close"><svg role="img" class="icon size-xl" width="18" height="18"><use xlink:href="#bx-right-arrow-alt"><\/use><\/svg><\/button>'),n.find(".back-btn").removeClass("d-none"),n.find(".playlist-input").addClass("bg-transparent border-0"),n.find('button[type="submit"]').removeClass("btn-primary").addClass("btn-link btn-sm"),n.appendTo(".mobile-playlist-wrapper"),n.attr("data-playlist-target",$(this).closest("[data-playlist-id]").attr("data-playlist-id")).removeAttr("data-playlist-id"),r.blur(),$(".mobile-playlist-wrapper").css("display","block"),$(".playlist-form.mobile-mode").find(".playlist-input").focus())});$(document).on("click",".playlist-form.mobile-mode .back-btn",function(){$(".mobile-playlist-wrapper").remove()});newPlaylistArray=[];$(document).on("click",".playlist-submit-btn",function(n){function h(n){var t=i.find('.action-menu-item[data-id="'+n+'"]'),r;t[0].scrollIntoView({block:"center"});t.addClass("highlight-fade");setTimeout(function(){t.removeClass("highlight-fade")},2e3);r=t.find(".playlist-checkbox");r.is(":checked")||r.click();$(".playlist-input").val("")}var t,u,f;if(n.preventDefault(),t=$(this),t.attr("disabled")!=="disabled"){u=t.closest("[data-playlist-id]").length>0?t.closest("[data-playlist-id]").attr("data-playlist-id"):t.closest("[data-playlist-target]").length>0?t.closest("[data-playlist-target]").attr("data-playlist-target"):null;var i=u?$('[data-playlist-id="'+u+'"]').closest(".playlist-modal-container"):$(".playlist-modal-container"),e=t.closest(".playlist-form"),c=e.attr("data-url"),o=e.find(".playlist-input"),r=o.val(),s=parseInt($('[data-popup="playlist-prompt"]').attr("data-max-length")||$(".playlist-accordion").attr("data-max-length"));if(r.length===0){toast("error","all",resources.xIsRequired.replace("{0}",resources.playlistName));return}r.length<=s?(f=playlistsArray.filter(function(n){return n.name===r}),f.length>0?($(".mobile-playlist-wrapper").remove(),h(f[0].id)):(t.attr("disabled","disabled"),$.post(c,{name:r}).done(function(n){var r,t;n.success?(o.val(""),i.removeClass("searching"),i.find(".action-menu-item").removeClass("show"),i.find("#playlist-"+n.id).length===0&&($(".playlist-modal-container .action-menu-item").length>0?(r=$(".playlist-modal-container .action-menu-item").first(),r.hasClass("border-bottom")?r.after(n.playlist):r.before(n.playlist)):$(".playlist-modal-container .playlist-form").after(n.playlist),t=i.find("#playlist-"+n.id).closest(".action-menu-item"),i.closest(".playlist-accordion").length>0&&(t.find(".form-checkbox").removeClass("font-size-xxl font-size-md-xl").addClass("font-size-lg font-sizemd-sm"),t.find(".checkbox-label").removeClass("py-2 pr").addClass("py-1"),t.find(".checkbox-text").removeClass("font-size-base").addClass("font-size-sm")),t[0].scrollIntoView(),i.removeClass("loaded-list"),populatePlaylistsArray(i),$(i).trigger("playlist:added")),$(".mobile-playlist-wrapper").remove(),h(n.id),toast("success","all",resources.isAddedNewPlaylist),newPlaylistArray.unshift(t.prop("outerHTML").replace("highlight-fade",""))):toast("error","all",resources.errorHasOccurred)}).fail(function(){toast("error","all",resources.errorHasOccurred)}).always(function(){t.removeAttr("disabled")}))):toast("error","all",resources.xIsLongerThanMaxLength.replace("{0}",resources.playlistName).replace("{1}",s))}});$(document).on("click",function(n){$(n.target).closest(".playlist-form").length===0&&($(".playlist-search-results").remove(),$(".playlist-form").removeClass("list-open").addClass("is-navigating"))});$('[data-popup="playlist-prompt"]').on("popup:loadedcontent",function(){var n=$(this),i=n.attr("data-id"),r=n.find(".playlist-watch-later-item .playlist-checkbox").is(":checked"),u=$('.thumbnail[data-id="'+i+'"]'),t=u.find(".watch-later-btn");r?t.addClass("added"):t.removeClass("added")});$(document).on("click","#load-more-btn",function(){var n=$(this),i,t,r;n.data("isLoading")||(n.loading(!0),$("body").attr("data-load-on-scroll","true"),i=n.attr("data-url")||location.href.split("?")[0],t={},r=typeof extendLoadMoreData!="function"?function(){return{}}:extendLoadMoreData,t=r(),n.attr("data-params").split(",").forEach(function(n){t[n.split(":")[0]]=n.split(":")[1]}),$.get(i,t).done(function(t){n.closest("#load-more-box").replaceWith(t)}).fail(function(){n.loading(!1);toast("error","all",resources.errorHasOccurred)}))});if($("#load-more-box").length>0)$(window).on("scroll",function(){if($("body").attr("data-load-on-scroll")&&$("#load-more-box").length>0&&$("#load-more-box").isInViewport()){var n=$("body").attr("data-infinite-loading")==="true";n||($("body").attr("data-infinite-loading","true"),$("#load-more-btn").click(),setTimeout(function(){$("body").attr("data-infinite-loading","false")},1e3))}});$(window).on("load",function(){$(".action-menu, .context-menu").removeClass("preload")})