text: !function(){const t=!0,e=!1,n=document,i=["top","right","bottom","left","width","height","minWidth","minHeight","maxWidth","maxHeight","fontSize"],s=["border","padding","margin"],l=[],o=/^\.[\w-]*$/,r=/^\w+$/;let u=[],c=!1;function h(t){return t&&this.push(f(document,t)),this}function f(t,e){if(null==t)return[];let i=[];if(b(e,4))i=b(e,5)?e:[e];else if(null!=e&&""!=e){t=t||n;const s=o.test(e)?t.getElementsByClassName(e.slice(1)):r.test(e)?t.getElementsByTagName(e):t.querySelectorAll(e);for(let t=s.length;t--;i.unshift(s[t]));}return i}function a(t){if(t.indexOf("-")<0)return t;const e=t.split("-");return e.length>1&&(e[1]=e[1][0].toUpperCase()+e[1].substr(1)),e.join("")}function d(t,e,n){if("#text"==t.nodeName)return;let l=n;""!==l&&null!==l?((Number(l)==l||0===l)&&l.toString().indexOf("%")<0&&(i.indexOf(e)>=0?l=n+"px":!0===s.some(function(t){return 0==e.indexOf(t)})&&(l=n+"px")),t.style[e]=l):t.style[e]=""==l?null:l}function p(t){return null==t?null:b(t,1)?t:b(t,5)?t[0]:b(t,6)?p(t()):t}function m(t,e){return t.filter(function(t){return!e.includes(t)})}function g(n,i){if(b(n,5)){for(let t in n)i.call(this,n[t]);return t}return e}function b(n,i){if(null!=n)switch(i){case 0:return t;case 1:return"string"==typeof n;case 2:return"boolean"==typeof n;case 3:return!isNaN(parseFloat(n))&&isFinite(n);case 4:return"object"==typeof n;case 5:return"function"==typeof n.splice;case 6:return"function"==typeof n}return e}function y(n,i){let s,l,o=[],r=[].slice.call(i),u=n.length-1;for(let i=r.length-1;i>=0;i--)for(let c=u;c>=0;c--){if(l=e,n[c].o==t){s=0;for(let t=0;t<=c;t++)n[t].o==e&&s++;l=s>i}if(l==e&&(l=!b(r[i],n[c].t)&&null!=r[i]),o[c]=l?null:r[i],u=c-1,!l||null==r[i])break}return o}function v(e,n,i,s){if(b(e,1)==t)for(let t=0;t<n.length;t++)i(n[t]);else for(let t=0;t<n.length;t++)s(n[t]);return this}function x(t){return new h(null).push(t)}function N(){if(1==c)return;if(0==u.length)return;c=!0;let t=u[u.length-1],e=t.req,n=t.opt;u.pop(),e.open(n.method,n.url,n.async,n.username,n.password),e.setRequestHeader("Content-Type",n.contentType),e.send(n.data)}h.prototype={add:function(t){let e=p(t);if(!e)return this;e.elements&&(e=e.elements);for(let t in e)this.indexOf(e[t])<0&&this.push(e[t]);return this},addClass:function(t){if(this.length>0){const e=t.split(" ");for(let n=0;n<this.length;n++){let i=this[n];if(i.className){let t=i.className;const n=t.split(" ");for(let i in e)n.indexOf(e[i])<0&&(t+=" "+e[i]);i.className=t}else i.className=t}}return this},after:function(t){let e=p(t);return g(e,this.after)||null==e?this:(v(e,this,function(t){t.insertAdjacentHTML("afterend",e)},function(t){t.parentNode.insertBefore(e,t.nextSibling)}),this)},animate:function(t,e){return"undefined"!=typeof Velocity&&Velocity(this,t,e),this},append:function(t){let e=p(t);return g.call(this,e,this.append)||null==e?this:(v(e,this,function(t){t.insertAdjacentHTML("beforeend",e)},function(t){t.appendChild(e)}),this)},attr:function(t,e){let n=p(t),i=p(e);if(b(n,5)){let t={};for(let e in n)t[n[e]]=this.length>0?this[0].getAttribute(n[e]):t[n[e]]="";return t}if(null==i)return this.length>0?this[0].getAttribute(n):"";for(let t=0;t<this.length;t++)this[t].setAttribute(n,i);return this},before:function(t){let e=p(t);return g(e,this.before)||null==e?this:(v(e,this,function(t){t.insertAdjacentHTML("beforebegin",e)},function(t){t.parentNode.insertBefore(e,t)}),this)},children:function(t){let e=[],n=0;return null!=t&&(n=b(t,3)?1:2),this.each(function(i){if(1==n)e.push(i.children[t]);else for(let s=0;s<i.children.length;s++)n?2==n&&i.matches(t)&&e.push(i.children[s]):e.push(i.children[s])}),x(e)},closest:function(t){return this},css:function(n){if(b(n,4)){let i=e;for(let e in n)i=t,this.each(function(t){d(t,e,n[e])});if(i)return this;if(b(n,5)){let t=[];return this.each(function(e){let i=new Object;n.forEach(function(t){const n=e.style[a(t)];n&&(i[t]=n)}),t.push(i)}),t}}else if(b(n,1)){const t=a(n),e=arguments[1];if(b(e,1))this.each(function(n){d(n,t,e)});else if(this.length>0){if(1==this.length)return this[0].style[t];{let e=[];return this.each(function(n){let i=n.style[t];null==i&&(i=""),e.push(i)}),e}}}return this},each:function(t){for(let e=0;e<this.length;e++)t.call(this,this[e]);return this},empty:function(t){return this.each(function(t){t.innerHTML=""}),this},eq:function(t){let e=[];return x(e=t>this.length-1?[]:t<0?-1*t>=this.length?[]:[this[this.length-1+t]]:[this[t]])},filter:function(e){let n=[];if(b(e,6))for(let i=0;i<this.length;i++)e.call(this[i],i,this[i])==t&&n.push(this[i]);else{const t=f(document,e);t.length>0&&this.each(function(e){t.indexOf(e)>=0&&n.indexOf(e)<0&&n.push(e)})}return x(n)},find:function(t){let e=[];return this.length>0&&this.each(function(n){const i=f(n,t);i.length>0&&i.forEach(function(t){e.indexOf(t)<0&&e.push(t)})}),x(e)},first:function(){let t=[];return this.length>0&&(t=[this[0]]),x(t)},get:function(t){return this[t||0]},has:function(t){let e=[];return this.length>0&&this.each(function(n){f(n,t).length>0&&e.indexOf(n)<0&&e.push(n)}),x(e)},hasClass:function(n){let i;b(n,5)?i=n:b(n,1)&&(i=n.split(" "));for(let e=0;e<this.length;e++){const n=this[e].className||"";if(b(n,1)){const e=n.split(" ");if(e.length>0&&i.every(function(t){return e.some(function(e){return t==e})}))return t}}return e},height:function(t){let e=p(t);if(b(e,1)){const t=parseFloat(e);if(isNaN(t))return this.each(function(t){t!=window&&t!=document&&(t.style.height=e)}),this;e=t}else if(null==e){if(this.length>0){const t=this[0];if(t==window)return window.innerHeight;if(t==document){const t=document.body,e=document.documentElement;return Math.max(t.offsetHeight,t.scrollHeight,e.clientHeight,e.offsetHeight,e.scrollHeight)}return t.clientHeight}}else 0==e?this.each(function(t){t.style.height=0}):this.each(function(t){t.style.height=e+"px"});return this},hide:function(){return this.each(function(t){t.style.display="none"}),this},hover:function(){const n=y([{t:1,o:t},{t:0,o:t},{t:6,o:e},{t:6,o:e}],arguments);let i=e;this.on("mouseenter",n[0],n[1],function(e){i||(n[2]&&n[2](e),i=t)});var s=this;this.on("mouseleave",n[0],n[1],function(l){let o=l,r=e;for(;null!=o;){if(s.filter(t=>t==o).length>0){r=t;break}o=o.parentNode}r||(i=e,n[3]&&n[3](l))})},html:function(t){let e=p(t);return null==e?this.length>0?this[0].innerHTML:"":(this.each(function(t){t.innerHTML=e}),this)},index:function(t){if(this.length>0){const e=t||this[0],n=e.parentNode;let i;if(n){if(i=n.children,[].indexOf)return[].indexOf.call(i,e);for(let t=0;t<i.length;t++)if(i[t]==e)return t}}return-1},innerHeight:function(t){if(null!=p(t))return this.height(t);if(this.length>0){const t=this[0],e=getComputedStyle(t);let n=parseFloat(e.paddingTop),i=parseFloat(e.paddingBottom);return isNaN(n)&&(n=0),isNaN(i)&&(i=0),t.clientHeight-(n+i)}},innerWidth:function(t){if(null!=p(t))return this.width(t);if(this.length>0){const t=this[0],e=getComputedStyle(t);let n=parseFloat(e.paddingRight),i=parseFloat(e.paddingLeft);return isNaN(n)&&(n=0),isNaN(i)&&(i=0),t.clientWidth-(n+i)}},is:function(n){if(this.length>0){const e=this;let i=p(n);for(let n=0;n<this.length;n++)switch(i){case":focus":if(this[n]==document.activeElement)return t;break;default:if(f(this[n].parentNode,i).some(function(t){return t==e[0]}))return t}}return e},last:function(){let t=[];return this.length>0&&(t=[this[this.length-1]]),x(t)},map:function(t){let e=[];for(let n=0;n<this.length;n++)e.push(t(n,this[n]));return e},next:function(t){let e=[];return this.each(function(n){let i=n.nextSibling;if(t&&i){const s=f(n.parentNode,t);for(;null!=i;){if("#text"!=i.nodeName&&s.some(function(t){return t==i})){e.push(i);break}i=i.nextSibling}}else if(i)for(;null!=i;){if("#text"!=i.nodeName){e.push(i);break}i=i.nextSibling}}),x(e)},nextAll:function(t){let e=[];return t?this.each(function(n){const i=f(n,t);let s=n.nextSibling;for(;s;){for(;"#text"==s.nodeName&&(s=s.nextSibling););if(!s)break;i.some(function(t){return t==s})&&e.push(s),s=s.nextSibling}}):this.each(function(t){let n=t.nextSibling;for(;n;){for(;"#text"==n.nodeName&&(n=n.nextSibling););if(!n)break;e.push(n),n=n.nextSibling}}),x(e)},not:function(t){const e=p(t);let n=this;return b(e,5)?(e.forEach(function(t){const e=f(document,t);n=m(n,e)}),this.push(n),this):x(m(n,f(document,e)))},off:function(){let n=y([{t:1,o:e},{t:1,o:t},{t:6,o:e}],arguments);return this.each(function(e){for(let i=0;i<l.length;i++)if(l[i].elem==e){const s=l[i];if(null==n[2]){if(null==n[0]){for(let n=0;n<s.events.length;n++){const i=s.events[n];for(let n=0;n<i.list.length;n++)e.removeEventListener(i.name,i.list[n][1],t)}l.splice(i,1)}else for(let o=0;o<s.events.length;o++)if(s.events[o].name==n[0]){const r=s.events[o];for(let i=0;i<r.list.length;i++)e.removeEventListener(n[0],r.list[i][1],t);l[i].events.splice(o,1),0==l[i].events.length&&l.splice(i,1);break}}else for(let o=0;o<s.events.length;o++)if(s.events[o].name==n[0]){const r=s.events[o];for(let s=0;s<r.list.length;s++)if(r.list[s][1].toString()===n[2].toString()&&r.list[s][0]==n[1]){e.removeEventListener(n[0],n[2],t),l[i].events[o].list.splice(s,1);break}0==l[i].events[o].list.length&&(l[i].events.splice(o,1),0==l[i].events.length&&l.splice(i,1));break}break}}),this},offset:function(){if(this.length>0){const t=this[0].getBoundingClientRect();return{left:t.left+document.body.scrollLeft,top:t.top+document.body.scrollTop}}return{left:0,top:0}},offsetParent:function(){return this.length>0?this[0].offsetParent:null},on:function(){let n=y([{t:1,o:e},{t:1,o:t},{t:0,o:t},{t:6,o:e}],arguments);const i=n[0].replace(/\s/g,"").split(",");for(let s=0;s<i.length;s++){const o=i[s];"hover"==o?this.hover(n[1],n[2],n[3],n[3]):this.each(function(i){let s=[n[1],n[3]];if(null!=n[1]&&""!=n[1]){function r(t){const e=f(i,n[1]);for(let i=0;i<e.length;i++)t.target==e[i]&&n[3].apply(e[i],[].slice.call(arguments))}s=[n[1],r],i.addEventListener(o,r,t)}else i.addEventListener(o,n[3],t);let u=e;for(let n=0;n<l.length;n++)if(l[n].elem==i){const i=l[n].events;let r=e;for(let e=0;e<i.length;e++)if(i[e].name==o){l[n].events[e].list.push(s),r=t;break}r==e&&l[n].events.push({name:o,list:[s]}),u=t;break}u==e&&l.push({elem:i,events:[{name:o,list:[s]}]})})}return this},one:function(t,e){},outerHeight:function(){},outerWidth:function(){},parent:function(t){let e=[];return this.each(function(n){const i=n.parentNode;null==t||""==t?e.indexOf(i)<0&&e.push(i):i.matches(t)&&e.indexOf(i)<0&&e.push(i)}),x(e)},parents:function(t){let e=[];return this.each(function(n){let i=n.parentNode;for(;i;)null==t||""==t?e.indexOf(i)<0&&e.push(i):i.matches?i.matches(t)&&e.indexOf(i)<0&&e.push(i):i.matchesSelector&&i.matchesSelector(t)&&e.indexOf(i)<0&&e.push(i),i=i.parentNode}),x(e)},position:function(){return this.length>0?{left:this[0].offsetLeft,top:this[0].offsetTop}:{left:0,top:0}},prepend:function(t){let e=p(t);return g(e,this.append)||null==e?this:(v(e,this,function(t){t.insertAdjacentHTML("afterbegin",e)},function(t){t.insertBefore(e,t.firstChild)}),this)},prev:function(t){let e=[];return this.each(function(n){let i=n.previousSibling;if(t&&i){const s=f(n.parentNode,t);for(;null!=i;){if("#text"!=i.nodeName&&s.some(function(t){return t==i})){e.push(i);break}i=i.previousSibling}}else if(i)for(;null!=i;){if("#text"!=i.nodeName){e.push(i);break}i=i.previousSibling}}),x(e)},prop:function(n,i){const s=p(n);let l=p(i);if(b(s,5)){let t={};return s.forEach(function(e){t[e]=this.prop(e)}),t}const o=function(t,n){if(null!=l)"--"==l?this.each(function(e){e.removeAttribute(t)}):l==e?this.each(function(e){e.removeAttribute(t)}):this.attr(t,n);else if(this.length>0)return this[0].getAttribute(t)||""},r=function(n){if(null!=l)"--"==l?this.each(function(t){t.style.removeProperty(n)}):(l=0==l?e:t,this.each(function(t){t.style.setProperty(n,l)}));else if(this.length>0){let i=this[0],s=i[n];return null==s&&(s=null!=i.getAttribute(n)?t:e,i[n]=s),s}};let u="";switch(s){case"defaultChecked":u="checked";break;case"checked":if(!l&&this.length>0)return this[0].checked;break;case"defaultSelected":u="selected";break;case"selected":break;case"defaultDisabled":u="disabled";break;case"disabled":break;case"selectedIndex":null!=l&&l===parseInt(l,10)&&this.each(function(t){"SELECT"==t.nodeType&&(t.selectedIndex=l)});break;case"nodeName":return null!=i?void 0:this.length>0?this[0].nodeName:"";case"tagName":return null!=i?void 0:this.length>0?this[0].tagName:"";default:let t=r.call(this,s);if(null!=t&&void 0!==t)return t;if(null!=(t=o.call(this,s,l)))return t}if(""!=u){const t=o.call(this,u,u);if(null!=t)return t}else{const t=r.call(this,s);if(null!=t)return t}return this},push:function(t){return[].push.apply(this,t),this},ready:function(t){1==this.length&&this[0]==document&&("loading"!=document.readyState?t():document.addEventListener("DOMContentLoaded",t))},remove:function(t){return this.each(function(t){t.parentNode.removeChild(t)}),this.push([]),this},removeAttr:function(t){let e=p(t);return b(e,5)?e.forEach(function(t){this.each(function(e){e.removeAttribute(t)})}):"string"==typeof e&&this.each(function(t){t.removeAttribute(e)}),this},removeClass:function(t){let e=p(t);return"string"==typeof e&&(e=e.replace(/\,/g," ").replace(/\s\s/g," ")).indexOf(" ")>0&&(e=e.split(" ")),b(e,5)?this.each(function(t){e.forEach(function(e){t.className&&(t.className=t.className.split(" ").filter(function(t){return""!=t&&t!=e}).join(" "))})}):"string"==typeof e&&this.each(function(t){t.className&&(t.className=t.className.split(" ").filter(function(t){return""!=t&&t!=e}).join(" "))}),this},removeProp:function(t){return this.prop(t,"--"),this},serialize:function(){if(0==this.length)return"";let t=this[0];if(!t||"FORM"!==t.nodeName)return"";let e,n,i=[];for(e=t.elements.length-1;e>=0;e-=1)if(""!==t.elements[e].name)switch(t.elements[e].nodeName){case"INPUT":switch(t.elements[e].type){case"text":case"hidden":case"password":case"button":case"reset":case"submit":i.push(t.elements[e].name+"="+encodeURIComponent(t.elements[e].value));break;case"checkbox":case"radio":t.elements[e].checked&&i.push(t.elements[e].name+"="+encodeURIComponent(t.elements[e].value))}break;case"file":break;case"TEXTAREA":i.push(t.elements[e].name+"="+encodeURIComponent(t.elements[e].value));break;case"SELECT":switch(t.elements[e].type){case"select-one":i.push(t.elements[e].name+"="+encodeURIComponent(t.elements[e].value));break;case"select-multiple":for(n=t.elements[e].options.length-1;n>=0;n-=1)t.elements[e].options[n].selected&&i.push(t.elements[e].name+"="+encodeURIComponent(t.elements[e].options[n].value))}break;case"BUTTON":switch(t.elements[e].type){case"reset":case"submit":case"button":i.push(t.elements[e].name+"="+encodeURIComponent(t.elements[e].value))}}return i.join("&")},show:function(){return this.removeClass("hide"),this.each(function(t){t.style.display="block"}),this},siblings:function(t){let e=[],n=[],i=[];const s=p(t),l=function(t){e.some(function(e){return e==t})||e.push(t)},o=function(t,e){null!=e&&(i=f(t.parentNode,e)),n=t.parentNode.children;for(let s=0;s<n.length;s++){const o=n[s];o!=t&&(null!=e?i.some(function(t){return t==o})&&l(o):l(o))}};return null!=s?b(s,5)?this.each(function(t){s.forEach(function(e){o(t,e)})}):this.each(function(t){o(t,s)}):this.each(function(t){o(t,null)}),x(e)},slice:function(){return[].slice.apply(this,arguments),this},splice:function(){[].splice.apply(this,arguments)},stop:function(){return"undefined"!=typeof Velocity&&Velocity(this,"stop"),this},text:function(){return""},toggle:function(){return this.each(function(t){"none"==t.style.display?t.style.display="":t.style.display="none"}),this},toggleClass:function(t){let e=p(t);"string"==typeof e&&(e=e.split(" ")),b(e,5)&&this.each(function(n){let i=n.className,s=-1;if(null!=i&&""!=i){i=i.split(" ");for(var l=0;l<e.length;l++){var o=e[l];(s=i.indexOf(o))>=0?i.splice(s,1):i.push(o)}n.className=i.join(" ")}else n.className=t})},val:function(t){return null==t?this.length>0?this[0].value:"":(this.each(function(e){e.value=t}),this)},width:function(t){let e=p(t);if(b(e,1)){const t=parseFloat(e);if(isNaN(t))return this.each(function(t){t!=window&&t!=document&&(t.style.width=e)}),this;e=t}else if(null==e){if(this.length>0){const t=this[0];if(t==window)return window.innerWidth;if(t==document){const t=document.body,e=document.documentElement;return Math.max(t.offsetWidth,t.scrollWidth,e.clientWidth,e.offsetWidth,e.scrollWidth)}return t.clientWidth}}else 0==e?this.each(function(t){t.style.width=0}):this.each(function(t){t.style.width=e+"px"});return this},wrap:function(t){return this},wrapAll:function(t){return this},wrapInner:function(t){return this}},window.$=function(t){return new h(t)},window.$.ajax=function(){let n=y([{t:1,o:t},{t:4,o:t}],arguments);n[1]=p(n[1]);var i=n[1]||{url:n[0]};i.url=n[0]||i.url,i.async=i.async||t,i.cache=i.cache||e,i.contentType=i.contentType||"application/x-www-form-urlencoded; charset=UTF-8",i.data=i.data||"",i.dataType=i.dataType||"",i.method=i.method||"GET",i.type=i.method||i.type;var s=new XMLHttpRequest;if(s.onload=function(){if(s.status>=200&&s.status<400){let t=s.responseText;"json"==i.dataType.toLowerCase()&&(t=JSON.parse(t)),i.success&&i.success(t,s.statusText,s),i.complete&&i.complete(t,s.statusText,s)}else i.error&&i.error(s,s.statusText);c=!1,N()},s.onerror=function(){i.error&&i.error(s,s.statusText),c=!1,N()},i.beforeSend&&i.beforeSend(s,i)==e)return e;u.unshift({req:s,opt:i}),N()},window.$.getJSON=function(t,e,n){$.ajax(t,{dataType:"json",complete:e,error:n})},window.$.extend=function(t){let n={},i=e,s=0;const l=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(i=arguments[0],s++);const o=function(t){for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i&&"[object Object]"===Object.prototype.toString.call(t[e])?n[e]=window.$.extend(1,n[e],t[e]):n[e]=t[e])};for(;s<l;s++){o(arguments[s])}return n}}();