-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathq.min.js
1 lines (1 loc) · 32 KB
/
q.min.js
1
!function(t){function p(r,o){var s=this,t=s.length,a=0,u=[],c=!s.loopOn,l=(r=Array.prototype.slice.call(r)).slice(0);if(l.unshift(o),r.includes(z)||0===s.loopOn||s.withoutQueueOn)return!0;f(s,function(t,e){if(e){var n=U(e).uniqueId();if(Z[n]){var i=Z[n];if(i.skip_queue)return void a++;if(c||(W.call(s,l),c=!0),i.active)return a++,void i.sequence.push(l);i.skip_queue=!0,i.active=!0,U(e)[o].apply(s,r),i.active=!1,i.skip_queue=!1,s.loopOn||U.queueNext.call(s,e,!0)}u.push(e)}});var e=a!=t;return e&&0!=a&&s.put(u),a+t==0&&(e=!0),e}function l(t){return"function"==typeof t&&(t=t.call(this)),t}function s(t){for(this.length=t;this[t];)delete this[t++]}var U=window[t]=function(t){return X(d).put(t)},e=U.version=2.314,z=U.BYPASS_QUEUE="BYPASS_QUEUE_CONSTANT",X=U.copy=function(t){return a({},t)},o=U.isNode=function(t){return"object"==typeof Node?t instanceof Node:t&&"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},a=U.extend=function(t,e){for(var n=Object.keys(e),i=0;i<n.length;i+=1){var r=e[n[i]];t[n[i]]=-1==["object","array"].indexOf(typeof r)||o(r)?r:a(t[n[i]]||{},r||{})}return t},f=U.iterate=function(t,e,n){var i=t.length,r=n?i-1:0;if(o(t))e.call(t,0,t,2);else if(n)for(;0<=r&&!1!==e.call(t[r],r,t[r],r==i-1?2:r?1:0);)r--;else for(;r<i&&!1!==e.call(t[r],r,t[r],r==i-1?2:r?1:0);)r++;return!!i},n=U.riterate=function(t,e){return f(t,e,1)},F=U.camelToDash=function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},i=!1,r=[],W=function(t){this.loopBuffer[Object.keys(this.loopBuffer).length]=Object.values(X(t))},$=0,Y={},V={},J={scale:"1,1",scaleX:1,scaleY:1,scaleZ:1,scale3d:"1,1,1"},Z={},G={"transform-scaleX":1,"transform-scaleY":1,"transform-scale":1,"column-count":1,"fill-opacity":1,"font-weight":1,opacity:1,orphans:1,widows:1,"z-index":1,zoom:1,"background-color":1},u=["submit","click","mousedown","mouseup","mouseover","mousemove","mouseleave","mouseenter","change","load","dblclick","focus","focusin","focusout","blur","input","keydown","keypress","keyup","resize","reset","scroll","select","touchcancel","touchend","touchmove","touchstart","transitionend","unload","wheel","contextmenu"],c={},h={},d={length:0,is_q:1,is_qchain:1,version:e,layers:0,loopOn:!1,loopCount:0,loopBuffer:[],condition_count:0,conditions:[1],orFired:!1},K=U.hexToRgb=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,n,i){return e+e+n+n+i+i});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null},v=(U.type=function(t){var e=typeof t;if("object"!=e)return e;switch(t){case null:return"null";case window:return"window";case document:return"document";case window.event:return"event"}switch(t.constructor){case Array:return"array";case Boolean:return"boolean";case Date:return"date";case Object:return"object";case RegExp:return"regexp";case ReferenceError:case Error:return"error"}switch(t.nodeType){case 1:return"domelement";case 3:return"string"}return"Unknown"},U.error=function(t){return console.log(t),this},U.is_touch_device=function(){var t=" -webkit- -moz- -o- -ms- ".split(" ");if("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)return!0;var e,n=["(",t.join("touch-enabled),("),"heartz",")"].join("");return e=n,window.matchMedia(e).matches},U.plugin=function(t,n){f("string"==typeof t?[t]:t,function(t,e){d[e]=function(){var t=this;return t.orFired?t:("if"!=(t.caller=e)&&"else"!=e||p.call(t,arguments,e))&&("else"==e||t.conditions[t.condition_count])?n.apply(t,arguments):t}})}),m=U.easings={};function g(t){if(this[0]!=document)return this[0]["inner"+t]||this[0]["offset"+t]||this[0]["client"+t];var e=document.body,n=document.documentElement;return Math.max(e["scroll"+t],n["scroll"+t],e["offset"+t],n["offset"+t],e["client"+t],n["client"+t])}function tt(t){var e=[];for(var n in t){var i=t[n];e.push(n+"("+i+("string"==typeof i||G["transform-"+n]?"":"px")+")")}return e.join(" ")}function et(t){var e=t.split(/ /),n={};for(var i in e){var r=e[i].split(/[\(\)]/);n[r[0]]=r[1]}return n}for(var w in m.linear=function(t,e,n,i){return n*t/i+e},m.easeInQuad=function(t,e,n,i){return n*(t/=i)*t+e},m.easeOutQuad=function(t,e,n,i){return-n*(t/=i)*(t-2)+e},m.easeInOutQuad=function(t,e,n,i){return(t/=i/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},m.easeInCubic=function(t,e,n,i){return n*(t/=i)*t*t+e},m.easeOutCubic=function(t,e,n,i){return n*((t=t/i-1)*t*t+1)+e},m.easeInOutCubic=function(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t+e:n/2*((t-=2)*t*t+2)+e},m.easeInQuart=function(t,e,n,i){return n*(t/=i)*t*t*t+e},m.easeOutQuart=function(t,e,n,i){return-n*((t=t/i-1)*t*t*t-1)+e},m.easeInOutQuart=function(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t*t+e:-n/2*((t-=2)*t*t*t-2)+e},m.easeInQuint=function(t,e,n,i){return n*(t/=i)*t*t*t*t+e},m.easeOutQuint=function(t,e,n,i){return n*((t=t/i-1)*t*t*t*t+1)+e},m.easeInOutQuint=function(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},m.easeInSine=function(t,e,n,i){return-n*Math.cos(t/i*(Math.PI/2))+n+e},m.easeOutSine=function(t,e,n,i){return n*Math.sin(t/i*(Math.PI/2))+e},m.easeInOutSine=function(t,e,n,i){return-n/2*(Math.cos(Math.PI*t/i)-1)+e},m.easeInExpo=function(t,e,n,i){return 0==t?e:n*Math.pow(2,10*(t/i-1))+e},m.easeOutExpo=function(t,e,n,i){return t==i?e+n:n*(1-Math.pow(2,-10*t/i))+e},m.easeInOutExpo=function(t,e,n,i){return 0==t?e:t==i?e+n:(t/=i/2)<1?n/2*Math.pow(2,10*(t-1))+e:n/2*(2-Math.pow(2,-10*--t))+e},m.easeInCirc=function(t,e,n,i){return-n*(Math.sqrt(1-(t/=i)*t)-1)+e},m.easeOutCirc=function(t,e,n,i){return n*Math.sqrt(1-(t=t/i-1)*t)+e},m.easeInOutCirc=function(t,e,n,i){return(t/=i/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+e:n/2*(Math.sqrt(1-(t-=2)*t)+1)+e},m.easeInElastic=function(t,e,n,i){var r=0,o=n;if(0==t)return e;if(1==(t/=i))return e+n;if(r=r||.3*i,o<Math.abs(n)){o=n;var s=r/4}else s=r/(2*Math.PI)*Math.asin(n/o);return-o*Math.pow(2,10*(t-=1))*Math.sin((t*i-s)*(2*Math.PI)/r)+e},m.easeOutElastic=function(t,e,n,i){var r=0,o=n;if(0==t)return e;if(1==(t/=i))return e+n;if(r=r||.3*i,o<Math.abs(n)){o=n;var s=r/4}else s=r/(2*Math.PI)*Math.asin(n/o);return o*Math.pow(2,-10*t)*Math.sin((t*i-s)*(2*Math.PI)/r)+n+e},m.easeInOutElastic=function(t,e,n,i){var r=0,o=n;if(0==t)return e;if(2==(t/=i/2))return e+n;if(r=r||i*(.3*1.5),o<Math.abs(n)){o=n;var s=r/4}else s=r/(2*Math.PI)*Math.asin(n/o);return t<1?o*Math.pow(2,10*(t-=1))*Math.sin((t*i-s)*(2*Math.PI)/r)*-.5+e:o*Math.pow(2,-10*(t-=1))*Math.sin((t*i-s)*(2*Math.PI)/r)*.5+n+e},m.easeInBack=function(t,e,n,i,r){return null==r&&(r=1.70158),n*(t/=i)*t*((r+1)*t-r)+e},m.easeOutBack=function(t,e,n,i,r){return null==r&&(r=1.70158),n*((t=t/i-1)*t*((r+1)*t+r)+1)+e},m.easeInOutBack=function(t,e,n,i,r){return null==r&&(r=1.70158),(t/=i/2)<1?n/2*(t*t*((1+(r*=1.525))*t-r))+e:n/2*((t-=2)*t*((1+(r*=1.525))*t+r)+2)+e},m.easeInBounce=function(t,e,n,i){return n-m.easeOutBounce(i-t,0,n,i)+e},m.easeOutBounce=function(t,e,n,i){return(t/=i)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e},m.easeInOutBounce=function(t,e,n,i){return t<i/2?.5*m.easeInBounce(2*t,0,n,i)+e:.5*m.easeOutBounce(2*t-i,0,n,i)+.5*n+e},U.prototype=d,U.is_q=1,v("rtrim",function(t){return p.call(this,arguments,"rtrim")&&s.call(this),this}),v("if",function(t){return t=l.call(this,t),this.conditions[this.condition_count+1]=!!t,this.condition_count++,this}),v("else",function(t){var e,n=this;return e=void 0===t?!n.conditions[n.condition_count]:!!(t=l.call(n,t)),n.conditions[n.condition_count]=e,n}),v("or",function(t){var e=this;return!p.call(e,arguments,"or")||e.length?e:(e.orFired=!0,"function"==typeof t&&t.call(e),this)}),v("index",function(t){return this.length?[].slice.call(this.parent().children(t)).indexOf(this[0]):this}),v("ready",function(t){if("complete"===document.readyState)return t&&t(),!0;if(!t)return!1;if(r.push(t),!i){i=!0;function e(t){!document.addEventListener&&"load"!==t.type&&"complete"!==document.readyState||(n(),function(){for(var t in r)r[t]()}())}var n=function(){document.addEventListener?(document.removeEventListener("DOMContentLoaded",e,!1),window.removeEventListener("load",e,!1)):(document.detachEvent("onreadystatechange",e),window.detachEvent("onload",e))};document.addEventListener?(document.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1)):(document.attachEvent("onreadystatechange",e),window.attachEvent("onload",e))}}),v("put",function(t,e){var n=this,i=e||typeof t;if("undefined"==i)return n;if("function"==i)return n.ready(t);if("object"!=i)return"string"==i&&"<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length?n.make(t,z):d.find(t);var r=0;if(o(t))n[r++]=t;else{if(t.is_qchain)return t;Array.isArray(t)?f(t,function(){n[r++]=this}):n[r++]=t}return s.call(n,r),n}),v("make",function(t){var e=this;if(!p.call(e,arguments,"make"))return e;var n=document.createElement("div");n.innerHTML=t;for(var i=n.children,r=Math.max(i.length,e.length),o=0;o<r;)e[o]=i[o++];return e.length=o,s.call(e,o),e}),v("find",function(t){var e=this,n=e.length;if(0!=e.layers&&!n)return e;var i=X(d),r=[],o=0;i.layers=e.layers+1;var s=t.match(/^ *> *(.+)/);if(s)f(e.children(),function(t,e){"*"!=s[1]&&!U(e).is(s[1])||(i[o++]=e)});else{if(n)for(;o<n;){var a=[].slice.call(e[o++].querySelectorAll(t));r=r.concat(a)}else r=[].slice.call(document.querySelectorAll(t));for(n=r.length,o=0;o<n;)i[o]=r[o++]}return i.length=o,i}),v("is",function(n){var i=!0;return f(this,function(t,e){if(!(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,n))return i=!1}),i}),v("clone",function(n){if(!p.call(this,arguments,"clone"))return this;var i=X(this),r=0;return n=!1!==n,f(this,function(t,e){i[t]=e.cloneNode(n),r++}),s.call(i,r),i}),v("data",function(i,r){var o=void 0===r,s=[];return f(this,function(t,e){if(e){var n=U(e).uniqueId();o?s.push(c[n]&&void 0!==c[n][i]?c[n][i]:null):(c[n]||(c[n]={}),c[n][i]=r)}}),o?1==s.length?s[0]:s:this}),v("checked",function(n){if(void 0===n){if(!this.length)return null;var i=!0;return f(this,function(t,e){e.checked||(i=!1)}),i}f(this,function(t,e){e.checked=n})}),v("html",function(n,t){var e=this,i=t||"innerHTML";return null==n?(n="",f(e,function(t,e){n+=e[i]}),n):(p.call(e,arguments,"html")&&(n=l.call(e,n),f(e,function(t,e){e[i]=n})),e)}),v("tagName",function(t){var e=this;if(void 0===t)return e[0].tagName;var n=U(e[0].outerHTML.replace(new RegExp("^<"+e.tagName()+" ","i"),"<"+t+" ").replace(new RegExp(e.tagName()+">","i"),t+">"));return e.replace(n),e[0]=n[0],e}),v("children",function(o){var s=X(d),a=0,u=void 0!==o;return f(this,function(t,e){for(var n=e.childNodes,i=n.length,r=0;r!=i;r++)u&&!U(n[r]).is(o)||(s[a++]=n[r])}),s.length=a,s}),v("first",function(o){var s=X(d),a=void 0!==o;return f(this,function(t,e){for(var n=e.childNodes,i=n.length,r=0;r!=i;r++)if(!a||U(n[r]).is(o))return s[0]=n[r],s.length=1,s}),s}),v("last",function(r){var o=X(d),s=void 0!==r;return n(this,function(t,e){for(var n=e.childNodes,i=n.length-1;0<=i;i--)if(!s||U(n[i]).is(r))return o[0]=n[i],o.length=1,o}),o}),v("disableSelect",function(){if(!p.call(this,arguments,"disableSelect"))return this;var n="none";return f(this,function(t,e){U(e).css({"-webkit-touch-callout":n,"-webkit-user-select":n,"-khtml-user-select":n,"-moz-user-select":n,"-ms-user-select":n,"user-select":n},void 0,void 0,void 0,z)}),this}),v("outer",function(t){return this.html(t,"outerHTML")}),v("text",function(t){return this.html(t,"textContent")}),v("val",function(t){var e=this;return p.call(e,arguments,"val")?e[0]?null==t?e[0].value:(e[0].value=t,e):void 0:e}),v("position",function(){var t=this[0].getBoundingClientRect(),e=window.pageXOffset||document.documentElement.scrollLeft,n=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+n,left:t.left+e}}),v("left",function(){return this.position().left}),v("top",function(){return this.position().top}),v("bottom",function(){return this.position().top+this.height()}),v("right",function(){return this.position().left+this.width()}),v("inViewY",function(){var t=this.scrollTop(),e=this.height(),n=Math.max(0,Math.min(e,t+e));return n-=Math.max(0,Math.min(e,t-U.height()+e))}),v("inViewX",function(){var t=this.scrollLeft(),e=this.width(),n=Math.max(0,Math.min(e,t+e));return n-=Math.max(0,Math.min(e,t-U.width()+e))}),v("offset",function(){var t=this.position(),e=this.offsetParent().position();return{left:t.left-e.left,top:t.top-e.top}}),v("scrollTo",function(t,e,n){return p.call(this,arguments,"scrollTo")&&U("body").scrollTop(this.top(),t,e,n),this}),v("scrollTop",function(t,o,e,s){var a=this;if(!p.call(a,arguments,"scrollTop"))return a;var n=typeof t;if("undefined"==n)return a[0]==window?window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop:a.position().top-U(window).scrollTop();var i="number"==n?t:U(t).position().top;if(!o||"smooth"==o){var r={top:i};return"smooth"==o&&(r.behavior="smooth"),window.scroll(r)}var u=a.scrollTop(),c="now"in window.performance?performance.now():(new Date).getTime(),l=U(document).height(),f=U.height(),h=Math.round(l-i<f?l-f:i),d=m[e||"linear"];return void 0===o&&(o=0),function t(){var e="now"in window.performance?performance.now():(new Date).getTime(),n=Math.min(1,(e-c)/o),i=d(n,0,1,1),r=Math.ceil(i*(h-u)+u);window.scroll(0,r),a.scrollTop()!==h?requestAnimationFrame(t):s&&s()}(),a}),v("scrollLeft",function(t,o,e,s){var a=this;if(!p.call(a,arguments,"scrollLeft"))return a;var n=typeof t;if("undefined"==n)return a[0]==window?window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft:a.position().left-U(window).scrollLeft();var i="number"==n?t:U(t).position().left;if(!o||"smooth"==o){var r={left:i,block:"center",inline:"center"};return"smooth"==o&&(r.behavior="smooth"),window.scroll(r)}var u=a.scrollLeft(),c="now"in window.performance?performance.now():(new Date).getTime(),l=U(document).width(),f=U.width(),h=Math.round(l-i<f?l-f:i),d=m[e||"linear"];return void 0===o&&(o=0),function t(){var e="now"in window.performance?performance.now():(new Date).getTime(),n=Math.min(1,(e-c)/o),i=d(n,0,1,1),r=Math.ceil(i*(h-u)+u);window.scroll(r,0),a.scrollLeft()!==h?requestAnimationFrame(t):s&&s()}(),a}),v("width",function(t){return void 0!==t?this.css("width",t):g.call(this,"Width")}),U.width=function(){return U(window).width()},U.scrollWidth=function(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)},v("height",function(t){return void 0!==t?this.css("height",t):g.call(this,"Height")}),U.height=function(){return U(window).height()},U.scrollHeight=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},U.scrollTop=function(){return U(window).scrollTop()},U.scrollLeft=function(){return U(window).scrollLeft()},v("innerWidth",function(){return this[0]==window?document.documentElement.clientWidth||this.width():this[0].clientWidth||this.width()}),v("innerHeight",function(){return this[0]==window?document.documentElement.clientHeight||this.height():this[0].clientHeight||this.height()}),v("horizontalBorders",function(){return parseInt(this.css("border-top-width"))+parseInt(this.css("border-bottom-width"))}),v("verticalBorders",function(){return parseInt(this.css("border-left-width"))+parseInt(this.css("border-right-width"))}),U.addCSS=function(t,e){if("object"==typeof e){var n=t+" {";for(var i in e)n+=i+":"+e[i]+";";t=n+="}"}var r=document.styleSheets;void 0===r[r.length-1]&&(document.head.appendChild(document.createElement("style")),r=document.styleSheets);var o=r[r.length-1],s=o.cssRules.length;return o.insertRule?o.insertRule(t,s):o.addRule(t,-1),this},v("addRawCSS",function(t){var e=document.createElement("style");e.type="text/css",e.innerHTML=t,this.append(e)}),v("css",function(t,e){var n=this;if(!n.length)return n;var i=typeof t;try{if("undefined"==i)return getComputedStyle(n[0]);if("string"==i&&void 0===e){var r=getComputedStyle(n[0]);return t=l.call(n,t),r?r[F(t)]:0}}catch(t){return!1}if(!p.call(n,arguments,"css"))return n;if(t=l.call(n,t),void 0!==e){var o={};return o[t]=e,n.css(o)}for(var s in t){var a=t[s];"transform"==s&&"object"==typeof a&&(f(n,function(t,e){if(e){var n=U(e).uniqueId();V[n]||(V[n]={}),V[n]=a}}),a=tt(a));var u=F(s),c=/!important *$/.test(t[s])?"important":"";"string"==typeof a&&(a=a.replace(/ *!important *$/,"")),"number"!=typeof a&&!(a+"").match(/^[0-9\.]+$/)||G[u]||(a+="px"),f(n,function(t,e){e.style.setProperty(u,a,c)})}return n}),v("hasClass",function(t){for(var e=t.split(/\|/),n=0;n!=e.length;n++){var i=e[n].split(/ /),r=!0,o=i.length;if(!this.length)return!1;if(f(this,function(){for(var t=0;t!=o;t++){var e=i[t];this.classList.contains(e)||(r=!1)}}),r)return!0}return!1}),v("withoutClass",function(t){var e=[];return f(this,function(){U(this).hasClass(t)||e.push(this)}),this.put(e),this}),v("withClass",function(t){var e=[];return f(this,function(){U(this).hasClass(t)&&e.push(this)}),this.put(e),this}),v("filter",function(t){var e=[];return f(this,function(){U(this).is(t)&&e.push(this)}),this.put(e),this}),v("addClass",function(t,e){var n=this;if(!p.call(n,arguments,"addClass"))return n;var i=e?"remove":"add",r=t.split(/ /);return f(r,function(t,e){f(n,function(){this.classList[i](e)})}),n}),v("removeClass",function(t){return p.call(this,arguments,"removeClass")?this.addClass(t,1):this}),v("attr",function(t,e,n){var i=this;return p.call(i,arguments,"attr")?void 0===e?i[0].getAttribute(t):(f(i,function(){this.setAttribute(t,e)}),i):i}),v("removeAttr",function(t){return p.call(this,arguments,"removeAttr")&&f(this,function(){this.removeAttribute(t)}),this}),v("get",function(t){return t<0&&(t=this.length+t),void 0===t?Array.prototype.slice.call(this):this[t]?this[t]:void 0}),v("become",function(t){return U(this.get(t))}),v("each",function(i){if(!p.call(this,arguments,"each"))return this;f(this,function(t,e,n){return i.call(this,t,e,n)})}),v("reach",function(i){if(!p.call(this,arguments,"reach"))return this;n(this,function(t,e,n){return i.call(this,t,e,n)})}),U.each=function(t,i){f(t,function(t,e,n){return i.call(this,t,e,n)})},v("on",function(t,e){if(!p.call(this,arguments,"on"))return this;var n=t.split(/ /);return f(this,function(t,i){if(i){function r(t){return(t=t||window.event).target=t.target||t.srcElement,3==t.target.nodeType&&(t.target=t.target.parentNode),e.call(i,t)}var o=U(i).uniqueId();U.each(n,function(){var t=this.split(/\./),e=t[0],n=t[1];window.addEventListener?i.addEventListener(e,r,!0):i.attachEvent(u[e]?"on"+e:e,r),h[o]||(h[o]={}),h[o][e]||(h[o][e]={}),h[o][e][n]=r})}}),this}),v("bind",function(){return this.on.apply(this,arguments)}),u){var y=u[w];v(y,function(e){return function(t){return t||"focus"!=e&&"blur"!=e&&"select"!=e&&"submit"!=e?this[t?"bind":"trigger"](e,t):(this[0]&&this[0][e](),this)}}(y))}v("unbind",function(t){if(!p.call(this,arguments,"unbind"))return this;var e=t.split(/ /);return f(this,function(t,s){if(s){var a=U(s).uniqueId();f(e,function(){var t=this.split(/\./),e=t[0],n=t[1];if(h[a])if(n){var i=h[a][e][n];window.addEventListener?s.removeEventListener(e,i,!0):s.detachEvent(u[e]?"on"+e:e,i),delete h[a][e][n]}else{var r=h[a][e];if(!r)return;for(var o in r){i=r[o];window.addEventListener?s.removeEventListener(e,i,!0):s.detachEvent(u[e]?"on"+e:e,i),delete h[a][e][o]}}})}}),this}),v("trigger",function(t){if(!p.call(this,arguments,"trigger"))return this;var n=document.createEvent("HTMLEvents");return n.initEvent(t,!0,!1),f(this,function(t,e){e.dispatchEvent(n)}),this}),v("serialize",function(t,e,n){var i=[];if(t=t||"=",e=e||"&","FORM"==this[0].tagName){for(var r,o=this[0],s=0;s<o.elements.length;s++)if(""!==o.elements[s].name)switch(o.elements[s].nodeName){case"INPUT":switch(o.elements[s].type){case"text":case"hidden":case"password":case"button":case"reset":case"submit":i.push(o.elements[s].name+t+encodeURIComponent(o.elements[s].value));break;case"checkbox":case"radio":o.elements[s].checked&&i.push(o.elements[s].name+t+encodeURIComponent(o.elements[s].value))}break;case"TEXTAREA":i.push(o.elements[s].name+t+encodeURIComponent(o.elements[s].value));break;case"SELECT":switch(o.elements[s].type){case"select-one":i.push(o.elements[s].name+t+encodeURIComponent(o.elements[s].value));break;case"select-multiple":for(r=o.elements[s].options.length-1;0<=r;r-=1)o.elements[s].options[r].selected&&i.push(o.elements[s].name+t+encodeURIComponent(o.elements[s].options[r].value))}break;case"BUTTON":switch(o.elements[s].type){case"reset":case"submit":case"button":i.push(o.elements[s].name+t+encodeURIComponent(o.elements[s].value))}}}else for(var a in this[0])this[0].hasOwnProperty(a)&&i.push((n?encodeURIComponent(a):a)+t+(n?encodeURIComponent(this[0][a]):this[0][a]));return i.join(e)}),v("replace",function(t){"string"==typeof t&&(t=U(t));var e=this,n=t.is_qchain?t[0]:t;return e.parent()[0].replaceChild(n,e[0]),e[0]=n,e.length=1,e}),v("append",function(t,e){if(!p.call(this,arguments,"append"))return this;var n="string"==typeof t?"<"==t[0]?U(t):[document.createTextNode(t)]:t,i=e||"appendChild";return f(this,function(){var t=this;f(n,function(){t[i](this,t.firstChild)})}),this}),v("prepend",function(t){return p.call(this,arguments,"prepend")?this.append(t,"insertBefore",z):this}),v("prependTo",function(t){return p.call(this,arguments,"prependTo")&&(t=U(t)).prepend(this,null,z),this}),v("appendTo",function(t){return p.call(this,arguments,"appendTo")&&(t=U(t)).append(this,null,z),this}),v("appendAfter",function(t,e){var n=this;if(!p.call(n,arguments,"appendAfter"))return n;var i=U(t),r=e?i[0]:i.next()[0],o=i.parent();return r?o[0].insertBefore(n[0],r):o[e?"prepend":"append"](n,null,z),n}),v("appendBefore",function(t){return this.appendAfter(t,1)}),v("remove",function(){return p.call(this,arguments,"remove")&&f(this,function(){this.parentNode&&this.parentNode.removeChild(this)}),this}),v("prop",function(t){var e=X(d),n=0;return f(this,function(){this[t]&&(e[n++]=this[t])}),e.length=n,e}),v("next",function(t){var e=this;if(void 0===t)return e.prop("nextElementSibling");for(;(e=e.next()).length&&!e.is(t););return e}),v("prev",function(t){var e=this;if(void 0===t)return this.prop("previousElementSibling");for(;(e=e.prev()).length&&!e.is(t););return e}),v("searchUp",function(t){for(var e=this;;){var n=e;if((e=e.prev()).length){if(e.is(t))return e;var i=e.find(t);if(i.length)return i.become(-1)}else if(!(e=n.parent())[0]||"body"==e[0].tagName&&!e.is(t))return X(d)}return e}),v("searchDown",function(t){var e=this;if((i=e.find(t)).length)return i.become(0);for(;;){var n=e;if((e=e.next()).length){if(e.is(t))return e;var i;if((i=e.find(t)).length)return i.become(0)}else if(!(e=n.parent())[0]||"body"==e[0].tagName)return X(d)}return e}),v("parent",function(){return this.prop("parentNode")}),U.mstime=function(){return(new Date).getTime()},U.time=function(){return Math.floor(U.mstime()/1e3)},v("closest",function(t){var e=U(this[0]);return e.is(t)?e:e.is("body")?{}:e.parent().closest(t)});var b=1,M=[];U.uniqueId=d.uniqueId=function(t){if(null!=t)return M[t]||void 0;if(!this[0])return console.error("Error: The Q selection is empty when it was expected not to be.");var e=this[0];return e.__q_uid||(e.__q_uid=b++,M.push(e)),e.__q_uid},U.rand=function(t,e){if(void 0===e&&(e=t,t=0),e<t){var n=t;t=e,e=n}for(var i=1;0<t&&t<1;)t*=10,e*=10,i*=10;var r=t;return t=0,e-=r-1,(Math.floor(Math.random()*e)+r)/i},v("request",function(t){return p.call(this,arguments,"request")&&U.request.call(this,t),this});var q={};U.request=function(e,t){function n(t,e,n){e.sync&&(q[e.sync].shift(),q[e.sync].length&&U.request(q[e.sync][0],!0)),e.response&&e.response.call(i,t,e,n)}if(!(e.sync&&!t&&(q[e.sync]||(q[e.sync]=[]),q[e.sync].push(e),1<q[e.sync].length))){var i=this;"undefined"==typeof XMLHttpRequest&&(XMLHttpRequest=function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}throw new Error("This browser does not support XMLHttpRequest.")});var r=new XMLHttpRequest;return r.open(e.post||e.formData?"POST":"GET",e.url),e.cross&&(r.withCredentials=!0),!1!==e.encoding&&r.setRequestHeader("Content-type",e.encoding?e.encoding:"application/x-www-form-urlencoded; charset="+(e.charset||"UTF-8")),r.setRequestHeader("Accept",e.accept||"text/html"),r.onreadystatechange=function(){if(4==r.readyState)if(200==r.status){var t=r.responseText;e.json&&(t=JSON.parse(t)),e.success&&e.success.call(i,t),n(t,e,r.status)}else e.failure&&e.failure.call(i,r.responseText,r.status),n(null,e,r.status)},e.preRequest&&e.preRequest.call(i,e),e.formData?r.send(e.formData):r.send(e.post?U(e.post).serialize("=","&",!0).replace(/%20/g,"+"):null),r}},U.fileUpload=function(r){var o=this,s=U("<form>").css({display:"none"}).appendTo("body"),t=U("<input type='file' name='file'>").appendTo(s),e=U("<input type='submit'>").appendTo(s);r.accept&&t.attr("accept",r.accept),s.bind("submit",function(t){t.preventDefault();var e=new FormData(s[0]);if(r.selected&&r.selected.call(o,e.get("file"),t),r.post)for(var n in r.post)e.append(n,r.post[n]);delete r.post;var i={url:r.url,formData:e,encoding:!1};a(i,r),o.request?o.request(i):U.request(i),s.remove()}),t.change(function(t){e[0].click()}),t[0].click()},v("fileUpload",function(t){var e,n=this;n.click((e=t,function(){U.fileUpload.call(n,X(e))}))}),v("fixedParent",function(){for(var t=this.parent();t.length;){if("fixed"==t.css("position"))return t;if(!(t=t.parent()).length)return X(d);if("BODY"==t[0].tagName)return X(d)}return X(d)}),v("offsetParent",function(){for(var t=this.parent();t.length;){var e=t.css("position");if("relative"==e||"absolute"==e||"fixed"==e)return t;if(!(t=t.parent()).length)return X(d);if("BODY"==t[0].tagName)return t}return X(d)}),v("withoutQueue",function(){return this.withoutQueueOn=!0,this}),v("withQueue",function(){return this.withoutQueueOn=!1,this}),v("queue",function(t){return f(this,t?function(t,e){if(e){var n=U(e).uniqueId();delete Z[n]}}:function(t,e){if(e){var n=U(e).uniqueId();Z[n]||(Z[n]={on:!0,sequence:[]})}}),this}),U.queueNext=function(t,o){var s=this;if(s.is_qchain&&s.withoutQueueOn)return s;function n(t){if(t){var e=U(t).uniqueId();if(Z[e]){var n=Z[e];if(n.sequence.length){var i=n.sequence.shift(),r=(i=Object.values(X(i))).shift();o&&i.push(void 0,void 0,void 0,void 0,void 0,z),s[r].apply(s,i),["animate","delay"].indexOf(r)<0&&U.queueNext.call(s,t,!0)}else s.loopOn&&(Object.keys(s.loopBuffer).length&&s.loopOn>s.loopCount+1?(s.loopCount++,n.sequence=Object.values(s.loopBuffer),U.queueNext.call(s,t,!0)):(s.loopOn=s.loopCount=0,s.loopBuffer={}))}}}return t?n(t):s.length&&f(s,function(t,e){n(e)}),s},v("loop",function(){return this.queue(),U.loop.apply(this,arguments)}),U.loop=function(t){var e=this.is_qchain?this:U("<div>");return e.queue(),e.loopOn=void 0===t?1/0:t,e},v(["queueNext","endLoop"],function(){return U.queueNext(this,arguments)}),v("dequeue",function(){return f(this,function(t,e){if(e){var n=U(e).uniqueId();Z[n]&&(Z[n].sequence=[])}}),this}),v("pause",function(){return p.call(this,arguments,"pause")?this.css({"animation-play-state":"paused"},void 0,void 0,void 0,z):this}),v("play",function(){return p.call(this,arguments,"play")?this.css({"animation-play-state":"running"},void 0,void 0,void 0,z):this}),v("stop",function(){return p.call(this,arguments,"stop")?(f(this,function(t,e){if(e){var n=Y,i=U(e).uniqueId();n[i]&&n[i].stop()}}),this.css({"animation-play-state":"paused"},void 0,void 0,void 0,z).dequeue()):this}),U.clear=function(t){window.clearTimeout(t)},U.delay=function(r,o){var s=this;if(!s.is_qchain)return window.setTimeout(function(){o()},r);if(s.length){var t=Array.prototype.slice.call(arguments),a=t.slice(0),u=t.includes(z),c=!s.loopOn;a.unshift("delay"),f(this,function(t,e){if(e){var n=U(e).uniqueId(),i=Z[n];if(i&&!s.withoutQueueOn){if(!u&&(c||(W.call(s,a),c=!0),i.active))return i.sequence.push(["delay",r,o]),!1;i.active=!0}U.delay(r,function(){o&&o.call(s),i&&!s.withoutQueueOn&&(i.active=!1,U.queueNext.call(s,e,!0))})}})}else U.delay(r,function(){o&&o(),s.queueNext()});return this},v("delay",function(){return this.queue(),U.delay.apply(this,arguments)}),v("sync",function(){if(!p.call(this,arguments,"sync"))return this;var t=Array.prototype.slice.call(arguments);return 0==t.shift().apply(this,t)?X(d):this}),v("async",function(t){return p.call(this,arguments,"sync")?this.delay(0,t):this});v("animate",function(L){var N=this,t=arguments.length,k=750,S=m.linear,_=!N.loopOn,R={stopped:function(){},finished:function(){},ended:function(){}},H=function(){},e=Array.prototype.slice.call(arguments),j=e.includes(z);if(j&&delete e[e.indexOf(z)],0===N.loopOn)return N;for(var n=1;n<t;n++){var i=e[n],r=typeof i;"number"==r||"float"==r?k=i:"string"==r?S=m[i]||m.linear:"function"==r?H=i:"object"==r&&a(R,i)}L=l.call(N,L);var B=e.slice(0),P=Math.ceil(k/10),Q=/(\-?[0-9]+(?:\.[0-9]+)?(?:[a-z]{2}?|%)?)/gi,D=/\-?[0-9]+(?:\.[0-9]+)?(?:[a-z]{2}?|%)?/gi;return B.unshift("animate"),f(N,function(t,u){if(u){var w=U(u).uniqueId();if(Z[w]&&!N.withoutQueueOn){if(!j&&(_||(W.call(N,B),_=!0),Z[w].active))return void Z[w].sequence.push(B);Z[w].active=!0}var y,b="qStepAnim"+U.id+"n"+$++,e=V[w],M=[],n=getComputedStyle(u),i=!1;for(var r in e||(V[w]={},e=V[w]),L){var o=L[r],c=F(r);if("transform"==c)for(var s in e&&(L[r]=o=U.extend(X(e),o)),i=!0,o){var a=o[s],l=e&&void 0!==e[s]?e[s]:J[s]||0;A(c+"-"+s,c+"-"+s,parseFloat(l),parseFloat(a))}else{var f=n[F(r)]||0;A(r,c,f,o)}}if(i){var h=/transform\-([a-z]+):([^;]+)(;?)/i;for(var d in M){for(var p,v=M[d],m=!1;p=v.match(h);)v=v.replace(h,(m?"":"transform:")+p[1]+"("+p[2]+")"+(";"==p[3]?" ":"")),m=!0;m&&(v=v.replace(/(transform:.+?) ([a-z]+:)/i,"$1;$2"),M[d]=v)}}var g="@keyframes "+b+" {"+M.join("}\n")+"}",q=document.createElement("style");q.type="text/css",q.innerHTML=g,document.getElementsByTagName("body")[0].appendChild(q);var T=function(r,t,e){var o=[];Y[r]||(Y[r]={animationAttributes:{},arrInstanceNameList:o,getAnimationAttributes:function(){var t=[];for(var e in o){var n=o[e],i=Y[r][n];i.strAnimationAtrribute&&t.push(i.strAnimationAtrribute)}return t},stop:function(t){if(t)o.splice(o.indexOf(t),1),Y[r][t].stop(),delete Y[r][t],!o.length&&Y[r]&&delete Y[r];else{for(var e in o){var n=o[e];Y[r].stop(n)}delete Y[r]}}}),(o=Y[r].arrInstanceNameList).push(t);var n={objCssTo:e,strKeyFrameName:t};return Y[r][t]=n}(w,b,L),E=Y[w],O=T.done=function(){return t=b,n=u,i=c,r=O,o=q,s=w,a=R,(e=L).transform&&(V[s]=e.transform,e.transform=tt(e.transform)),U(n).css(e,void 0,void 0,void 0,z),C(n,r,o,s,t),H(),y=i,U.queueNext.call(N,n,!0),a.ended(),void a.finished();var t,e,n,i,r,o,s,a};T.stop=function(){return c=T,l=k,f=M,h=O,d=u,p=q,v=w,m=R,g=b,function(){window.clearTimeout(c.timeout);var t=(U.mstime()-c.startTime)/l*100,e="";for(var n in f){var i=f[n];if(t<i.match(/^([0-9\.]+)/)[1]){e=i.replace(/^[^\{]+\{/,"");break}}var r=e.split(/;/);for(var o in r){var s=r[o].split(/:/),a=s[0],u=s[1];"transform"==a&&(V[v]=et(u)),d.style.setProperty(a,u)}C(d,h,p,v,g,1),m.ended(),m.stopped()}();var c,l,f,h,d,p,v,m,g},T.startTime=U.mstime();var I=E.getAnimationAttributes().join(",");I=I.length?I+",":"";var x=b+" "+k+"ms forwards linear";T.strAnimationAtrribute=x,u.style.setProperty("animation",I+x),U(u).play(z),T.timeout=U.delay(k,O)}function A(t,e,n,i){var r=1,o="rgba"==e||"opacity"==e||"background-color"==e?1:0,s=[i],a=[n],u=[],c=[];if("string"==typeof n&&(c=n.split(Q),a=n.match(Q)),a=a||[o],"#"==i[0]?i=K(i):"string"==typeof i&&(u=i.split(D),r=(s=i.match(Q)).length),3==r&&"background-color"==e&&(r++,s[3]=1,u[3]=", ",u[4]=")",u[0]="rgba("),"box-shadow"==e){var l=c[4].replace(/^ /,"")+a[4]+c[5]+a[5]+c[6]+a[6]+c[7]+a[7]+c[8]+" "+a[0]+c[1]+a[1]+c[2]+a[1]+c[2]+a[2]+c[3].replace(/ $/,"");c=l.split(D),a=l.match(Q)}for(var f=0;f!=r;f++){var h=((a[f]||o)+"").replace(/[a-z%]+/,""),d=s[f],p="string"==typeof d?d.match(/([a-z%]+)/):"",v=p?p[1]:"string"==typeof d||G[e]?"":"px",m=0;1*h==h&&(h*=1,"string"==typeof d&&(d=1*d.replace(/[a-z%]+/,"")),m=d-h);for(var g=0;g!=P;g++){0==f&&(M[g]?y!=e&&(M[g]+=";"+e+":"):M[g]=Math.round((g+1)/P*1e4)/100+"% {"+e+":");var w=m?Math.floor(1e4*S(g+1,h,m,P))/1e4:h;u[f]&&(M[g]+=u[f]),M[g]+=w+v,f==r-1&&u[f+1]&&(M[g]+=u[f+1])}}}function C(t,e,n,i,r,o){Z[i]&&(Z[i].active=!1),o||Y[i].stop(r),t.style.setProperty("animation",Y[i]?Y[i].getAnimationAttributes().join(","):"none"),U(n).remove(z),n=void 0}}),this}),U.id=U.rand(0,99999999)}("undefined"==typeof JAVASCRIPT_Q_HANDLE?"$":JAVASCRIPT_Q_HANDLE);