server/aspnetapp/wwwroot/min/base.min.js

(开头部分) 565KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*!
 * jQuery JavaScript Library v3.3.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2018-01-20T17:24Z
 */
function fuzzySearch(n,t,i,r){function c(n,t){function u(u){var e,o;return(u&&u.oldname&&u.oldname.length>0&&(u[f]=u.oldname),n.updateNode(u),t.length==0)?(n.showNode(u),n.expandNode(u,r),!0):u[f]&&u[f].toLowerCase().indexOf(t.toLowerCase())!=-1?(i&&(e=t.replace(h,function(n){return"\\"+n}),u.oldname=u[f],o=new RegExp(e,"gi"),u[f]=u.oldname.replace(o,function(n){return'<span style="color: whitesmoke;background-color: darkred;">'+n+"<\/span>"}),n.updateNode(u)),n.showNode(u),!0):(n.hideNode(u),!1)}t||(t="");var e=n.getNodesByFilter(u);l(e,t)}function l(n,t){if(n&&n.length>0)if(t.length>0)$.each(n,function(n,t){var i=t.getPath(),r;if(i&&i.length>0)for(r=0;r<i.length-1;r++)u.showNode(i[r]),u.expandNode(i[r],!0)});else{var i=u.getNodesByParam("level","0");$.each(i,function(n,t){u.expandNode(t,!0)})}}function a(n){e&&clearTimeout(e);e=setTimeout(function(){o!==n&&(c(u,n),o=n)},500)}var u=$.fn.zTree.getZTreeObj(n),f,s,h,e,o;u||alert("fail to get ztree object");f=u.setting.data.key.name;i=i===!1?!1:!0;r=r?!0:!1;u.setting.view.nameIsHTML=i;s="[\\[\\]\\\\^\\$\\.\\|\\?\\*\\+\\(\\)]";h=new RegExp(s,"gi");$(t).bind("input propertychange",function(){var n=$(this).val();a(n)});e=null;o=""}function convertQueryStringToObject(n){var u={},i,r,f,e,t;if(n===undefined||n===null)return{};for(i=n.split("&"),t=0;t<i.length;t+=1)r=i[t].split("="),f=decodeURIComponent(r[0]),e=decodeURIComponent(r[1]),u[f]=e;return u}function clearInput(){$(".form-group").on("mouseenter",function(){var n=$(this);n.find(".clear").show()}).on("mouseleave",function(){var n=$(this);$(".clear").hide()});$(".clear").on("click",function(){$(this).siblings("input").val("")})}function windowClose(){var n=navigator.userAgent;confirm("您确定要关闭本页吗?")&&(n.indexOf("Firefox")!=-1||n.indexOf("Chrome")!=-1?location.href="about:blank":(window.opener=null,window.open("","_self")),window.close())}function changeNav(){$(".level1").on("click",function(){var n=$(this);n.addClass("active").siblings().removeClass("active")})}function listtab(n){var t;$(".nav-box .level1").each(function(i){$(this).hasClass(n)&&(t=i)});$(".nav-box .level1").removeClass("active");$(".nav-box .level1").eq(t).addClass("active")}function setHeight(n,t){if(n.length>0){var i=n.offset().top!=null&&n.offset().top!=undefined?$(window).height()-n.offset().top:$(window).height();n.css("min-height",i-t)}}function getHeight(n,t){if(n.length>0){var i=n.offset().top!=null&&n.offset().top!=undefined?$(window).height()-n.offset().top:$(window).height();n.css("height",i-t)}}function selectAll(){var n=$(".select-all-item");n.on("change",function(){var n=$(this).closest(".select-box").find(".checkbox-item");$(this).prop("checked")?n.each(function(){$(this).prop("checked",!0)}):($(this).prop("checked",!1),n.each(function(){$(this).prop("checked",!1)}))});$(document).on("change",".checkbox-item",function(){var n=$(this).closest(".select-box"),t=n.find(".select-all-item");$(this).prop("checked")||t.prop("checked",!1);n.find(".checkbox-item:checked").length===n.find(".checkbox-item").length&&t.prop("checked",!0)})}function getFile(){$(".file").on("change",function(){var n=$(this).siblings(".btn-name"),i=n.data("name"),t;n.length>0&&window.File&&window.FileList&&(t=this.files.length,t>0?n.html(t+"个文件"):n.html(i))})}function penScroll(n){n.bind("mousedown",function(n){$(this).off("mousemove").off("mouseup").off("mouseout");this.scrollTopStart=$(this).scrollTop();this.clientYStart=n.clientY;n.preventDefault();n.stopPropagation();$(this).on("mousemove",function(n){var t=n.clientY-this.clientYStart,i=this.scrollTopStart-t;$(this).scrollTop(i)});$(this).on("mouseup",function(){$(this).off("mousemove").off("mouseup").off("mouseout")});$(this).on("mouseout",function(){$(this).off("mousemove").off("mouseup").off("mouseout")})})}function setZoomScroll(n,t){n.getNiceScroll().show().resize();n.niceScroll(t,{cursorcolor:"#618fcb",touchbehavior:!0,cursorborder:"none",cursorwidth:"25px",boxzoom:!0,autohidemode:!1,zindex:99,cursordragontouch:!0,cursorborderradius:"8px",scrollspeed:60})}function setNoZoomScroll(n,t){n.niceScroll(t,{cursorcolor:"#618fcb",touchbehavior:!1,cursorborder:"none",autohidemode:!1,cursorwidth:"25px",boxzoom:!1,zindex:99,cursordragontouch:!1,cursorborderradius:"8px",scrollspeed:60})}function isIE(){return!!window.ActiveXObject||"ActiveXObject"in window?!0:!1}function isFireFox(){return(isFirefox=navigator.userAgent.indexOf("Firefox")>0)?!0:!1}function dragModel(){var t=0,i=0,n=!1;$(document).unbind(".click").on("mousedown",".lywrap div:eq(0)",function(r){t=r.clientX-$(".lywrap div:eq(0)").offset().left;i=r.clientY-$(".lywrap div:eq(0)").offset().top;n=!0});$(document).unbind(".click").on("mousedown",".lywrap .loading-wrap",function(){return n=!1,!1});$(document).unbind(".click").on("mousemove",function(r){var s=r.clientX,h=r.clientY,u=0,f=0,e,o;n===!0&&(u=s-t,f=h-i,e=$(window).outerWidth(!1)-$(".lywrap").outerWidth(!1),o=$(window).outerHeight(!1)-$(".lywrap").outerHeight(!1),u=Math.min(e,Math.max(0,u)),f=Math.min(o,Math.max(0,f)),$(".lywrap").css({left:u,top:f}))});$(document).unbind(".click").on("mouseup",function(){n=!1})}(function(n,t){"use strict";typeof module=="object"&&typeof module.exports=="object"?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)})(typeof window!="undefined"?window:this,function(n,t){"use strict";function hr(n,t,i){t=t||f;var r,u=t.createElement("script");if(u.text=n,i)for(r in ne)i[r]&&(u[r]=i[r]);t.head.appendChild(u).parentNode.removeChild(u)}function it(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?bt[or.call(n)]||"object":typeof n}function hi(n){var t=!!n&&"length"in n&&n.length,i=it(n);return u(n)||tt(n)?!1:i==="array"||t===0||typeof t=="number"&&t>0&&t-1 in n}function v(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function li(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}):typeof t!="string"?i.grep(n,function(n){return wt.call(t,n)>-1!==r}):i.filter(t,n,r)}function kr(n,t){while((n=n[t])&&n.nodeType!==1);return n}function ie(n){var t={};return i.each(n.match(l)||[],function(n,i){t[i]=!0}),t}function ut(n){return n}function dt(n){throw n;}function dr(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(undefined,[n].slice(r))}catch(n){i.apply(undefined,[n])}}function ni(){f.removeEventListener("DOMContentLoaded",ni);n.removeEventListener("load",ni);i.ready()}function fe(n,t){return t.toUpperCase()}function y(n){return n.replace(re,"ms-").replace(ue,fe)}function at(){this.expando=i.expando+at.uid++}function se(n){return n==="true"?!0:n==="false"?!1:n==="null"?null:n===+n+""?+n:ee.test(n)?JSON.parse(n):n}function nu(n,t,i){var r;if(i===undefined&&n.nodeType===1)if(r="data-"+t.replace(oe,"-$&").toLowerCase(),i=n.getAttribute(r),typeof i=="string"){try{i=se(i)}catch(u){}o.set(n,t,i)}else i=undefined;return i}function ru(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=(i.cssNumber[t]||e!=="px"&&+o)&&vt.exec(i.css(n,t));if(f&&f[3]!==e){for(o=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=f/h;f=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 he(n){var r,f=n.ownerDocument,u=n.nodeName,t=ai[u];return t?t:(r=f.body.appendChild(f.createElement(u)),t=i.css(r,"display"),r.parentNode.removeChild(r),t==="none"&&(t="block"),ai[u]=t,t)}function ft(n,t){for(var e,u,f=[],i=0,o=n.length;i<o;i++)(u=n[i],u.style)&&(e=u.style.display,t?(e==="none"&&(f[i]=r.get(u,"display")||null,f[i]||(u.style.display="")),u.style.display===""&&ti(u)&&(f[i]=he(u))):e!=="none"&&(f[i]="none",r.set(u,"display",e)));for(i=0;i<o;i++)f[i]!=null&&(n[i].style.display=f[i]);return n}function s(n,t){var r;return(r=typeof n.getElementsByTagName!="undefined"?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!="undefined"?n.querySelectorAll(t||"*"):[],t===undefined||t&&v(n,t))?i.merge([n],r):r}function vi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function su(n,t,r,u,f){for(var e,o,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if(e=n[l],e||e===0)if(it(e)==="object")i.merge(y,e.nodeType?[e]:e);else if(ou.test(e)){for(o=o||h.appendChild(t.createElement("div")),p=(fu.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,o.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)o=o.lastChild;i.merge(y,o.childNodes);o=h.firstChild;o.textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];){if(u&&i.inArray(e,u)>-1){f&&f.push(e);continue}if(w=i.contains(e.ownerDocument,e),o=s(h.appendChild(e),"script"),w&&vi(o),r)for(v=0;e=o[v++];)eu.test(e.type||"")&&r.push(e)}return h}function ri(){return!0}function et(){return!1}function cu(){try{return f.activeElement}catch(n){}}function yi(n,t,r,u,f,e){var o,s;if(typeof t=="object"){typeof r!="string"&&(u=u||r,r=undefined);for(s in t)yi(n,s,r,u,t[s],e);return n}if(u==null&&f==null?(f=r,u=r=undefined):f==null&&(typeof r=="string"?(f=u,u=undefined):(f=u,u=r,r=undefined)),f===!1)f=et;else if(!f)return n;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function lu(n,t){return v(n,"table")&&v(t.nodeType!==11?t:t.firstChild,"tr")?i(n).children("tbody")[0]||n:n}function we(n){return n.type=(n.getAttribute("type")!==null)+"/"+n.type,n}function be(n){return(n.type||"").slice(0,5)==="true/"?n.type=n.type.slice(5):n.removeAttribute("type"),n}function au(n,t){var f,c,e,s,h,l,a,u;if(t.nodeType===1){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),u=s.events,u)){delete h.handle;h.events={};for(e in u)for(f=0,c=u[e].length;f<c;f++)i.event.add(t,e,u[e][f])}o.hasData(n)&&(l=o.access(n),a=i.extend({},l),o.set(t,a))}}function ke(n,t){var i=t.nodeName.toLowerCase();i==="input"&&uu.test(n.type)?t.checked=n.checked:(i==="input"||i==="textarea")&&(t.defaultValue=n.defaultValue)}function ot(n,t,f,o){t=er.apply([],t);var a,w,l,v,h,b,c=0,y=n.length,d=y-1,p=t[0],k=u(p);if(k||y>1&&typeof p=="string"&&!e.checkClone&&ye.test(p))return n.each(function(i){var r=n.eq(i);k&&(t[0]=p.call(this,i,r.html()));ot(r,t,f,o)});if(y&&(a=su(t,n[0].ownerDocument,!1,n,o),w=a.firstChild,a.childNodes.length===1&&(a=w),w||o)){for(l=i.map(s(a,"script"),we),v=l.length;c<y;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(b=l[l.length-1].ownerDocument,i.map(l,be),c=0;c<v;c++)h=l[c],eu.test(h.type||"")&&!r.access(h,"globalEval")&&i.contains(b,h)&&(h.src&&(h.type||"").toLowerCase()!=="module"?i._evalUrl&&i._evalUrl(h.src):hr(h.textContent.replace(pe,""),b,h))}return n}function vu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;(u=e[f])!=null;f++)r||u.nodeType!==1||i.cleanData(s(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&vi(s(u,"script")),u.parentNode.removeChild(u));return n}function yt(n,t,r){var o,s,h,u,f=n.style;return r=r||ui(n),r&&(u=r.getPropertyValue(t)||r[t],u!==""||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),!e.pixelBoxStyles()&&pi.test(u)&&de.test(t)&&(o=f.width,s=f.minWidth,h=f.maxWidth,f.minWidth=f.maxWidth=f.width=u,u=r.width,f.width=o,f.minWidth=s,f.maxWidth=h)),u!==undefined?u+"":u}function yu(n,t){return{get:function(){if(n()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}function to(n){if(n in ku)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=bu.length;t--;)if(n=bu[t]+i,n in ku)return n}function du(n){var t=i.cssProps[n];return t||(t=i.cssProps[n]=to(n)||n),t}function gu(n,t,i){var r=vt.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function wi(n,t,r,u,f,e){var o=t==="width"?1:0,h=0,s=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)r==="margin"&&(s+=i.css(n,r+w[o],!0,f)),u?(r==="content"&&(s-=i.css(n,"padding"+w[o],!0,f)),r!=="margin"&&(s-=i.css(n,"border"+w[o]+"Width",!0,f))):(s+=i.css(n,"padding"+w[o],!0,f),r!=="padding"?s+=i.css(n,"border"+w[o]+"Width",!0,f):h+=i.css(n,"border"+w[o]+"Width",!0,f));return!u&&e>=0&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))),s}function nf(n,t,r){var f=ui(n),u=yt(n,t,f),s=i.css(n,"boxSizing",!1,f)==="border-box",o=s;if(pi.test(u)){if(!r)return u;u="auto"}return o=o&&(e.boxSizingReliable()||u===n.style[t]),u!=="auto"&&(parseFloat(u)||i.css(n,"display",!1,f)!=="inline")||(u=n["offset"+t[0].toUpperCase()+t.slice(1)],o=!0),u=parseFloat(u)||0,u+wi(n,t,r||(s?"border":"content"),o,f,u)+"px"}function h(n,t,i,r,u){return new h.prototype.init(n,t,i,r,u)}function bi(){fi&&(f.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(bi):n.setTimeout(bi,i.fx.interval),i.fx.tick())}function uf(){return n.setTimeout(function(){st=undefined}),st=Date.now()}function ei(n,t){var r,u=0,i={height:n};for(t=t?1:0;u<4;u+=2-t)r=w[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function ff(n,t,i){for(var u,f=(a.tweeners[t]||[]).concat(a.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function io(n,t,u){var f,y,w,c,b,s,o,l,k="width"in t||"height"in t,v=this,p={},h=n.style,a=n.nodeType&&ti(n),e=r.get(n,"fxshow");u.queue||(c=i._queueHooks(n,"fx"),c.unqueued==null&&(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()})}));for(f in t)if(y=t[f],tf.test(y)){if(delete t[f],w=w||y==="toggle",y===(a?"hide":"show"))if(y==="show"&&e&&e[f]!==undefined)a=!0;else continue;p[f]=e&&e[f]||i.style(n,f)}if(s=!i.isEmptyObject(t),s||!i.isEmptyObject(p)){k&&n.nodeType===1&&(u.overflow=[h.overflow,h.overflowX,h.overflowY],o=e&&e.display,o==null&&(o=r.get(n,"display")),l=i.css(n,"display"),l==="none"&&(o?l=o:(ft([n],!0),o=n.style.display||o,l=i.css(n,"display"),ft([n]))),(l==="inline"||l==="inline-block"&&o!=null)&&i.css(n,"float")==="none"&&(s||(v.done(function(){h.display=o}),o==null&&(l=h.display,o=l==="none"?"":l)),h.display="inline-block"));u.overflow&&(h.overflow="hidden",v.always(function(){h.overflow=u.overflow[0];h.overflowX=u.overflow[1];h.overflowY=u.overflow[2]}));s=!1;for(f in p)s||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&ft([n],!0),v.done(function(){a||ft([n]);r.remove(n,"fxshow");for(f in p)i.style(n,f,p[f])})),s=ff(a?e[f]:0,f,v),f in e||(e[f]=s.start,a&&(s.end=s.start,s.start=0))}}function ro(n,t){var r,f,e,u,o;for(r in n)if(f=y(r),e=t[f],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],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function a(n,t,r){var o,s,h=0,v=a.prefilters.length,e=i.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=st||uf(),t=Math.max(0,f.startTime+f.duration-o),h=t/f.duration||0,i=1-h,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:st||uf(),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(ro(c,f.opts.specialEasing);h<v;h++)if(o=a.prefilters[h].call(f,n,c,f.opts),o)return u(o.stop)&&(i._queueHooks(f.elem,f.opts.queue).stop=o.stop.bind(o)),o;return i.map(c,ff,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 g(n){var t=n.match(l)||[];return t.join(" ")}function nt(n){return n.getAttribute&&n.getAttribute("class")||""}function ki(n){return Array.isArray(n)?n:typeof n=="string"?n.match(l)||[]:[]}function tr(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||uo.test(n)?u(n,i):tr(n+"["+(typeof i=="object"&&i!=null?t:"")+"]",i,r,u)});else if(r||it(t)!=="object")u(n,t);else for(f in t)tr(n+"["+f+"]",t[f],r,u)}function yf(n){return function(t,i){typeof t!="string"&&(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 pf(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);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===ir;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ur(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function vo(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;r[0]==="*";)r.shift(),e===undefined&&(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]}function yo(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(),u)if(u==="*")u=e;else if(e!=="*"&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]],f)){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}var k=[],f=n.document,df=Object.getPrototypeOf,d=k.slice,er=k.concat,si=k.push,wt=k.indexOf,bt={},or=bt.toString,kt=bt.hasOwnProperty,sr=kt.toString,gf=sr.call(Object),e={},u=function(n){return typeof n=="function"&&typeof n.nodeType!="number"},tt=function(n){return n!=null&&n===n.window},ne={type:!0,src:!0,noModule:!0},cr="3.3.1",i=function(n,t){return new i.fn.init(n,t)},te=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,b,ci,vr,yr,pr,wr,br,l,gr,gt,lt,ai,ou,st,fi,tf,rf,ef,ht,of,sf,hf,di,gi,wf,ct,fr,oi,bf,kf;i.fn=i.prototype={jquery:cr,constructor:i,length:0,toArray:function(){return d.call(this)},get:function(n){return n==null?d.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(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:si,sort:k.sort,splice:k.splice};i.extend=i.fn.extend=function(){var o,e,r,t,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for(typeof n=="boolean"&&(c=n,n=arguments[f]||{},f++),typeof n=="object"||u(n)||(n={}),f===l&&(n=this,f--);f<l;f++)if((o=arguments[f])!=null)for(e in o)(r=n[e],t=o[e],n!==t)&&(c&&t&&(i.isPlainObject(t)||(s=Array.isArray(t)))?(s?(s=!1,h=r&&Array.isArray(r)?r:[]):h=r&&i.isPlainObject(r)?r:{},n[e]=i.extend(c,h,t)):t!==undefined&&(n[e]=t));return n};i.extend({expando:"jQuery"+(cr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){var t,i;return!n||or.call(n)!=="[object Object]"?!1:(t=df(n),!t)?!0:(i=kt.call(t,"constructor")&&t.constructor,typeof i=="function"&&sr.call(i)===gf)},isEmptyObject:function(n){for(var t in n)return!1;return!0},globalEval:function(n){hr(n)},each:function(n,t){var r,i=0;if(hi(n)){for(r=n.length;i<r;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return n==null?"":(n+"").replace(te,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(hi(Object(n))?i.merge(r,typeof n=="string"?[n]:n):si.call(r,n)),r},inArray:function(n,t,i){return t==null?-1:wt.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,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(hi(n))for(e=n.length;r<e;r++)u=t(n[r],r,i),u!=null&&f.push(u);else for(r in n)u=t(n[r],r,i),u!=null&&f.push(u);return er.apply([],f)},guid:1,support:e});typeof Symbol=="function"&&(i.fn[Symbol.iterator]=k[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){bt["[object "+t+"]"]=t.toLowerCase()});b=function(n){function u(n,t,r,u){var s,w,l,a,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],typeof n!="string"||!n||v!==1&&v!==9&&v!==11)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(v!==11&&(d=cr.exec(n)))if(s=d[1]){if(v===9)if(l=t.getElementById(s)){if(l.id===s)return r.push(l),r}else return r;else if(p&&(l=p.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=d[3])&&e.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(e.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(v!==1)p=t,g=n;else if(t.nodeName.toLowerCase()!=="object"){for((a=t.getAttribute("id"))?a=a.replace(vi,yi):t.setAttribute("id",a=f),y=ft(n),w=y.length;w--;)y[w]="#"+a+" "+yt(y[w]);g=y.join(",");p=ni.test(n)&&ri(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(nt){}finally{a===f&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ti(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[f]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(r){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 wi(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function vr(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function bi(n){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&lr(t)===n:t.disabled===n:"label"in t?t.disabled===n:!1}}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&&typeof n.getElementsByTagName!="undefined"&&n}function ki(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function pt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&e==="parentNode",s=di++;return t.first?function(t,i,u){while(t=t[r])if(t.nodeType===1||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((t.nodeType===1||o)&&n(t,i,h))return!0}else while(t=t[r])if(t.nodeType===1||o)if(a=t[f]||(t[f]={}),l=a[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[e])&&c[0]===v&&c[1]===s)return y[2]=c[2];if(l[e]=y,y[2]=n(t,i,h))return!0}return!1}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function yr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function wt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;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,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||yr(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?wt(b,p,n,o,s):b,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=wt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=wt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}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=pt(function(n){return n===o},c,!0),a=pt(function(n){return nt(o,n)>-1},c,!0),e=[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])e=[pt(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(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&&yt(n))}e.push(u)}return ui(e)}function pr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=it==null?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&(y=rt[p])!=null;p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=nr.call(l));w=wt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,e,t,st,oi,ft,bt,si,ht,w,ut,b,i,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,di=0,hi=ti(),ci=ti(),lt=ti(),kt=function(n,t){return n===t&&(ut=!0),0},gi={}.hasOwnProperty,g=[],nr=g.pop,tr=g.push,k=g.push,li=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},dt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ai="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",gt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ai+")*)|.*)\\)|)",ir=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),rr=new RegExp("^"+r+"*,"+r+"*"),ur=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),fr=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),er=new RegExp(gt),or=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+ai),PSEUDO:new RegExp("^"+gt),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("^(?:"+dt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,cr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ni=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)},vi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yi=function(n,t){return t?n==="\0"?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},pi=function(){b()},lr=pt(function(n){return n.disabled===!0&&("form"in n||"label"in n)},{dir:"parentNode",next:"legend"});try{k.apply(g=li.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(wr){k={apply:g.length?function(n,t){tr.apply(n,li.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}e=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l===i||l.nodeType!==9||!l.documentElement?i:(i=l,s=i.documentElement,h=!oi(i),c!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),e.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=ot.test(i.getElementsByClassName),e.getById=a(function(n){return s.appendChild(n).id=f,!i.getElementsByName||!i.getElementsByName(f).length}),e.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(typeof t.getElementById!="undefined"&&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=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&h){var i,u,f,r=t.getElementById(n);if(r){if(i=r.getAttributeNode("id"),i&&i.value===n)return[r];for(f=t.getElementsByName(n),u=0;r=f[u++];)if(i=r.getAttributeNode("id"),i&&i.value===n)return[r]}return[]}}),t.find.TAG=e.getElementsByTagName?function(n,t){return typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName(n):e.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},t.find.CLASS=e.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!="undefined"&&h)return t.getElementsByClassName(n)},d=[],o=[],(e.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+dt+")");n.querySelectorAll("[id~="+f+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+f+"+*").length||o.push(".#.+[+~]")}),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+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length!==2&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;n.querySelectorAll(":disabled").length!==2&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(e.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){e.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",gt)}),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=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},kt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,r&1||!e.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:r&4?-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){if(o===s)return wi(n,t)}else return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;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?wi(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((n.ownerDocument||n)!==i&&b(n),t=t.replace(fr,"='$1']"),e.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||e.disconnectedMatch||n.document&&n.document.nodeType!==11)return r}catch(f){}return u(t,i,null,[n]).length>0};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 f=t.attrHandle[r.toLowerCase()],u=f&&gi.call(t.attrHandle,r.toLowerCase())?f(n,r,!h):undefined;return u!==undefined?u:e.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.escape=function(n){return(n+"").replace(vi,yi)};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=!e.detectDuplicates,w=!e.sortStable&&n.slice(0),n.sort(kt),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(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(t===3||t===4)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(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):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&&er.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(typeof n.className=="string"&&n.className||typeof n.getAttribute!="undefined"&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f.replace(ir," ")+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",o=n.slice(-4)!=="last",e=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(e?c.nodeName.toLowerCase()===nt:c.nodeType===1)return!1;b=k=n==="only"&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(c.nodeType===1&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((e?c.nodeName.toLowerCase()===nt:c.nodeType===1)&&++l&&(g&&(y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):r.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=bt(n.replace(at,"$1"));return i[f]?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 u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return or.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(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);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:bi(!1),disabled:bi(!0),checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},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 hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()==="text")},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:i;--r>=0;)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})}};t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=ar(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=vr(rt);return ki.prototype=t.filters=t.pseudos,t.setFilters=new ki,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;){(!e||(f=rr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=ur.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in 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)},bt=u.compile=function(n,t){var r,u=[],e=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=lt(n,pr(e,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var o,f,e,l,a,c=typeof n=="function"&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],s.length===1){if(f=s[0]=s[0].slice(0),f.length>2&&(e=f[0]).type==="ID"&&i.nodeType===9&&h&&t.relative[f[1].type]){if(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0],i)c&&(i=i.parentNode);else return r;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),ni.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),n=u.length&&yt(f),!n)return k.apply(r,u),r;break}}}return(c||bt(n,s))(u,i,!h,r,!i||ni.test(n)&&ri(i.parentNode)||i),r},e.sortStable=f.split("").sort(kt).join("")===f,e.detectDuplicates=!!ut,b(),e.sortDetached=a(function(n){return n.compareDocumentPosition(i.createElement("fieldset"))&1}),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,t.toLowerCase()==="type"?1:2)}),e.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ii("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue}),a(function(n){return n.getAttribute("disabled")==null})||ii(dt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=b;i.expr=b.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=b.uniqueSort;i.text=b.getText;i.isXMLDoc=b.isXML;i.contains=b.contains;i.escapeSelector=b.escape;var rt=function(n,t,r){for(var u=[],f=r!==undefined;(n=n[t])&&n.nodeType!==9;)if(n.nodeType===1){if(f&&i(n).is(r))break;u.push(n)}return u},lr=function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i},ar=i.expr.match.needsContext;ci=/^<([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+")"),t.length===1&&u.nodeType===1)?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if(typeof n!="string")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 u>1?i.uniqueSort(r):r},filter:function(n){return this.pushStack(li(this,n||[],!1))},not:function(n){return this.pushStack(li(this,n||[],!0))},is:function(n){return!!li(this,typeof n=="string"&&ar.test(n)?i(n):n||[],!1).length}});yr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;pr=i.fn.init=function(n,t,r){var e,o;if(!n)return this;if(r=r||vr,typeof n=="string"){if(e=n[0]==="<"&&n[n.length-1]===">"&&n.length>=3?[null,n,null]:yr.exec(n),e&&(e[1]||!t)){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)),ci.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]),o&&(this[0]=o,this.length=1),this}return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n)}return n.nodeType?(this[0]=n,this.length=1,this):u(n)?r.ready!==undefined?r.ready(n):n(i):i.makeArray(n,this)};pr.prototype=i.fn;vr=i(f);wr=/^(?:parents|prev(?:Until|All))/;br={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=typeof n!="string"&&i(n);if(!ar.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?typeof n=="string"?wt.call(i(n),this[0]):wt.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(n==null?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return rt(n,"parentNode")},parentsUntil:function(n,t,i){return rt(n,"parentNode",i)},next:function(n){return kr(n,"nextSibling")},prev:function(n){return kr(n,"previousSibling")},nextAll:function(n){return rt(n,"nextSibling")},prevAll:function(n){return rt(n,"previousSibling")},nextUntil:function(n,t,i){return rt(n,"nextSibling",i)},prevUntil:function(n,t,i){return rt(n,"previousSibling",i)},siblings:function(n){return lr((n.parentNode||{}).firstChild,n)},children:function(n){return lr(n.firstChild)},contents:function(n){return v(n,"iframe")?n.contentDocument:(v(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 n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(br[n]||i.uniqueSort(f),wr.test(n)&&f.reverse()),this.pushStack(f)}});l=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){n=typeof n=="string"?ie(n):i.extend({},n);var o,r,c,f,t=[],s=[],e=-1,l=function(){for(f=f||n.once,c=o=!0;s.length;e=-1)for(r=s.shift();++e<t.length;)t[e].apply(r[0],r[1])===!1&&n.stopOnFalse&&(e=t.length,r=!1);n.memory||(r=!1);o=!1;f&&(t=r?[]:"")},h={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&&h.has(r)||t.push(r):r&&r.length&&it(r)!=="string"&&f(r)})}(arguments),r&&!o&&l()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),u<=e&&e--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},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=t||[],t=[n,t.slice?t.slice():t],s.push(t),o||l()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};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,a=function(){var n,i;if(!(t<o)){if(n=f.apply(h,c),n===r.promise())throw new TypeError("Thenable self-resolution");i=n&&(typeof n=="object"||typeof n=="function")&&n.then;u(i)?e?i.call(n,s(o,r,ut,e),s(o,r,dt,e)):(o++,i.call(n,s(o,r,ut,e),s(o,r,dt,e),s(o,r,ut,r.notifyWith))):(f!==ut&&(h=undefined,c=[n]),(e||r.resolveWith)(h,c))}},l=e?a:function(){try{a()}catch(n){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(n,l.stackTrace);t+1>=o&&(f!==dt&&(h=undefined,c=[n]),r.rejectWith(h,c))}};t?l():(i.Deferred.getStackHook&&(l.stackTrace=i.Deferred.getStackHook()),n.setTimeout(l))}}var o=0;return i.Deferred(function(n){f[0][3].add(s(0,n,u(e)?e:ut,n.notifyWith));f[1][3].add(s(0,n,u(t)?t:ut));f[2][3].add(s(0,n,u(r)?r:dt))}).promise()},promise:function(n){return n!=null?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?undefined: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=d.call(arguments),r=i.Deferred(),s=function(n){return function(t){o[n]=this;f[n]=arguments.length>1?d.call(arguments):t;--e||r.resolveWith(o,f)}};if(e<=1&&(dr(n,r.done(s(t)).resolve,r.reject,!e),r.state()==="pending"||u(f[t]&&f[t].then)))return r.then();while(t--)dr(f[t],s(t),r.reject);return r.promise()}});gr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&gr.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};gt=i.Deferred();i.fn.ready=function(n){return gt.then(n).catch(function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0)||gt.resolveWith(f,[i])}});i.ready.then=gt.then;f.readyState!=="complete"&&(f.readyState==="loading"||f.documentElement.doScroll)?(f.addEventListener("DOMContentLoaded",ni),n.addEventListener("load",ni)):n.setTimeout(i.ready);var p=function(n,t,r,f,e,o,s){var h=0,l=n.length,c=r==null;if(it(r)==="object"){e=!0;for(h in r)p(n,t,h,r[h],!0,o,s)}else if(f!==undefined&&(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},re=/^-ms-/,ue=/-([a-z])/g;lt=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType};at.uid=1;at.prototype={cache:function(n){var t=n[this.expando];return t||(t={},lt(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(typeof t=="string")u[y(t)]=i;else for(r in t)u[y(r)]=t[r];return u},get:function(n,t){return t===undefined?this.cache(n):n[this.expando]&&n[this.expando][y(t)]},access:function(n,t,i){return t===undefined||t&&typeof t=="string"&&i===undefined?this.get(n,t):(this.set(n,t,i),i!==undefined?i:t)},remove:function(n,t){var u,r=n[this.expando];if(r!==undefined){if(t!==undefined)for(Array.isArray(t)?t=t.map(y):(t=y(t),t=t in r?[t]:t.match(l)||[]),u=t.length;u--;)delete r[t[u]];(t===undefined||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=undefined:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return t!==undefined&&!i.isEmptyObject(t)}};var r=new at,o=new at,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,oe=/[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(n===undefined){if(this.length&&(e=o.get(i),i.nodeType===1&&!r.get(i,"hasDataAttrs"))){for(f=s.length;f--;)s[f]&&(u=s[f].name,u.indexOf("data-")===0&&(u=y(u.slice(5)),nu(i,u,e[u])));r.set(i,"hasDataAttrs",!0)}return e}return typeof n=="object"?this.each(function(){o.set(this,n)}):p(this,function(t){var r;if(i&&t===undefined)return(r=o.get(i,n),r!==undefined)?r:(r=nu(i,n),r!==undefined)?r:void 0;this.each(function(){o.set(this,n,t)})},null,t,arguments.length>1,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),o=function(){i.dequeue(n,t)};u==="inprogress"&&(u=r.shift(),e--);u&&(t==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(n,o,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(typeof n!="string"&&(t=n,n="fx",r--),arguments.length<r)?i.queue(this[0],n):t===undefined?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);n==="fx"&&r[0]!=="inprogress"&&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(typeof n!="string"&&(t=n,n=undefined),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var tu=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,vt=new RegExp("^(?:([+-])=|)("+tu+")([a-z%]*)$","i"),w=["Top","Right","Bottom","Left"],ti=function(n,t){return n=t||n,n.style.display==="none"||n.style.display===""&&i.contains(n.ownerDocument,n)&&i.css(n,"display")==="none"},iu=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};ai={};i.fn.extend({show:function(){return ft(this,!0)},hide:function(){return ft(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){ti(this)?i(this).show():i(this).hide()})}});var uu=/^(?:checkbox|radio)$/i,fu=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,eu=/^$|^module$|\/(?:java|ecma)script/i,c={option:[1,"<select multiple='multiple'>","<\/select>"],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,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;ou=/<|&#?\w+;/,function(){var i=f.createDocumentFragment(),n=i.appendChild(f.createElement("div")),t=f.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);e.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";e.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var ii=f.documentElement,ce=/^key/,le=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hu=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,h,s,c,o,k,d,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),e&&i.find.matchesSelector(ii,e),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){return typeof i!="undefined"&&i.event.triggered!==t.type?i.event.dispatch.apply(n,arguments):undefined}),t=(t||"").match(l)||[""],b=t.length;b--;)(w=hu.exec(t[b])||[],o=d=w[1],k=(w[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:k.join(".")},v),(c=p[o])||(c=p[o]=[],c.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y)),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,h,v,p,s,c,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(t=(t||"").match(l)||[""],p=t.length;p--;){if(h=hu.exec(t[p])||[],o=d=h[1],b=(h[2]||"").split(".").sort(),!o){for(o in v)i.event.remove(n,o+t[p],u,f,!0);continue}for(c=i.event.special[o]||{},o=(f?c.delegateType:c.bindType)||o,a=v[o]||[],h=h[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],(e||d===s.origType)&&(!u||u.guid===s.guid)&&(!h||h.test(s.namespace))&&(!f||f===s.selector||f==="**"&&s.selector)&&(a.splice(y,1),s.selector&&a.delegateCount--,c.remove&&c.remove.call(n,s));k&&!a.length&&(c.teardown&&c.teardown.call(n,b,w.handle)!==!1||i.removeEvent(n,o,w.handle),delete v[o])}i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var t=i.event.fix(n),u,c,s,e,f,l,h=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(h[0]=t,u=1;u<arguments.length;u++)h[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||o.preDispatch.call(this,t)!==!1){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!t.isImmediatePropagationStopped();)(!t.rnamespace||t.rnamespace.test(f.namespace))&&(t.handleObj=f,t.data=f.data,s=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),s!==undefined&&(t.result=s)===!1&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,e,u,o,s,c=[],h=t.delegateCount,r=n.target;if(h&&r.nodeType&&!(n.type==="click"&&n.button>=1))for(;r!==this;r=r.parentNode||this)if(r.nodeType===1&&!(n.type==="click"&&r.disabled===!0)){for(o=[],s={},f=0;f<h;f++)e=t[f],u=e.selector+" ",s[u]===undefined&&(s[u]=e.needsContext?i(u,this).index(r)>-1:i.find(u,this,null,[r]).length),s[u]&&o.push(e);o.length&&c.push({elem:r,handlers:o})}return r=this,h<t.length&&c.push({elem:r,handlers:t.slice(h)}),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},focus:{trigger:function(){if(this!==cu()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===cu()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&v(this,"input"))return this.click(),!1},_default:function(n){return v(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==undefined&&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||n.defaultPrevented===undefined&&n.returnValue===!1?ri:et,this.target=n.target&&n.target.nodeType===3?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:et,isPropagationStopped:et,isImmediatePropagationStopped:et,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ri;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ri;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=ri;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,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 n.which==null&&ce.test(n.type)?n.charCode!=null?n.charCode:n.keyCode:!n.which&&t!==undefined&&le.test(n.type)?t&1?1:t&2?3:t&4?2:0:n.which}},i.event.addProp);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,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return yi(this,n,t,i,r)},one:function(n,t,i,r){return yi(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(typeof n=="object"){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||typeof t=="function")&&(r=t,t=undefined),r===!1&&(r=et),this.each(function(){i.event.remove(this,n,r,t)})}});var ae=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ve=/<script|<style|<link/i,ye=/checked\s*(?:[^=]|=\s*.checked.)/i,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(ae,"<$1><\/$2>")},clone:function(n,t,r){var u,c,o,f,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!e.noCloneChecked&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(f=s(h),o=s(n),u=0,c=o.length;u<c;u++)ke(o[u],f[u]);if(t)if(r)for(o=o||s(n),f=f||s(h),u=0,c=o.length;u<c;u++)au(o[u],f[u]);else au(n,h);return f=s(h,"script"),f.length>0&&vi(f,!l&&s(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,e=0;(t=n[e])!==undefined;e++)if(lt(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]=undefined}t[o.expando]&&(t[o.expando]=undefined)}}});i.fn.extend({detach:function(n){return vu(this,n,!0)},remove:function(n){return vu(this,n)},text:function(n){return p(this,function(n){return n===undefined?i.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=n)})},null,n,arguments.length)},append:function(){return ot(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=lu(this,n);t.appendChild(n)}})},prepend:function(){return ot(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=lu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return ot(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return ot(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;(n=this[t])!=null;t++)n.nodeType===1&&(i.cleanData(s(n,!1)),n.textContent="");return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return p(this,function(n){var t=this[0]||{},r=0,u=this.length;if(n===undefined&&t.nodeType===1)return t.innerHTML;if(typeof n=="string"&&!ve.test(n)&&!c[(fu.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)t=this[r]||{},t.nodeType===1&&(i.cleanData(s(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return ot(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),si.apply(f,u.get());return this.pushStack(f)}});var pi=new RegExp("^("+tu+")(?!px)[a-z%]+$","i"),ui=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},de=new RegExp(w.join("|"),"i");(function(){function r(){if(t){o.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%";ii.appendChild(o).appendChild(t);var i=n.getComputedStyle(t);s=i.top!=="1%";a=u(i.marginLeft)===12;t.style.right="60%";l=u(i.right)===36;h=u(i.width)===36;t.style.position="absolute";c=t.offsetWidth===36||"absolute";ii.removeChild(o);t=null}}function u(n){return Math.round(parseFloat(n))}var s,h,c,l,a,o=f.createElement("div"),t=f.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle=t.style.backgroundClip==="content-box",i.extend(e,{boxSizingReliable:function(){return r(),h},pixelBoxStyles:function(){return r(),l},pixelPosition:function(){return r(),s},reliableMarginLeft:function(){return r(),a},scrollboxSize:function(){return r(),c}}))})();var ge=/^(none|table(?!-c[ea]).+)/,pu=/^--/,no={position:"absolute",visibility:"hidden",display:"block"},wu={letterSpacing:"0",fontWeight:"400"},bu=["Webkit","Moz","ms"],ku=f.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=yt(n,"opacity");return i===""?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,t,r,u){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var f,s,o,c=y(t),l=pu.test(t),h=n.style;if(l||(t=du(c)),o=i.cssHooks[t]||i.cssHooks[c],r!==undefined){if(s=typeof r,s==="string"&&(f=vt.exec(r))&&f[1]&&(r=ru(n,t,f),s="number"),r==null||r!==r)return;s==="number"&&(r+=f&&f[3]||(i.cssNumber[c]?"":"px"));e.clearCloneStyle||r!==""||t.indexOf("background")!==0||(h[t]="inherit");o&&"set"in o&&(r=o.set(n,r,u))===undefined||(l?h.setProperty(t,r):h[t]=r)}else return o&&"get"in o&&(f=o.get(n,!1,u))!==undefined?f:h[t]}},css:function(n,t,r,u){var f,o,e,s=y(t),h=pu.test(t);return(h||(t=du(s)),e=i.cssHooks[t]||i.cssHooks[s],e&&"get"in e&&(f=e.get(n,!0,r)),f===undefined&&(f=yt(n,t,u)),f==="normal"&&t in wu&&(f=wu[t]),r===""||r)?(o=parseFloat(f),r===!0||isFinite(o)?o||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return ge.test(i.css(n,"display"))&&(!n.getClientRects().length||!n.getBoundingClientRect().width)?iu(n,no,function(){return nf(n,t,u)}):nf(n,t,u)},set:function(n,r,u){var s,f=ui(n),h=i.css(n,"boxSizing",!1,f)==="border-box",o=u&&wi(n,t,u,h,f);return h&&e.scrollboxSize()===f.position&&(o-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(f[t])-wi(n,t,"border",!1,f)-.5)),o&&(s=vt.exec(r))&&(s[3]||"px")!=="px"&&(n.style[t]=r,r=i.css(n,t)),gu(n,r,o)}}});i.cssHooks.marginLeft=yu(e.reliableMarginLeft,function(n,t){if(t)return(parseFloat(yt(n,"marginLeft"))||n.getBoundingClientRect().left-iu(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=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};n!=="margin"&&(i.cssHooks[n+t].set=gu)});i.fn.extend({css:function(n,t){return p(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ui(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return r!==undefined?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)}});i.Tween=h;h.prototype={constructor:h,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=h.propHooks[this.prop];return n&&n.get?n.get(this):h.propHooks._default.get(this)},run:function(n){var t,r=h.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):h.propHooks._default.set(this),this}};h.prototype.init.prototype=h.prototype;h.propHooks={_default:{get:function(n){var t;return n.elem.nodeType!==1||n.elem[n.prop]!=null&&n.elem.style[n.prop]==null?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.nodeType===1&&(n.elem.style[i.cssProps[n.prop]]!=null||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};h.propHooks.scrollTop=h.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=h.prototype.init;i.fx.step={};tf=/^(?:toggle|show|hide)$/;rf=/queueHooks$/;i.Animation=i.extend(a,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return ru(i.elem,n,vt.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],a.tweeners[i]=a.tweeners[i]||[],a.tweeners[i].unshift(t)},prefilters:[io],prefilter:function(n,t){t?a.prefilters.unshift(n):a.prefilters.push(n)}});i.speed=function(n,t,r){var f=n&&typeof n=="object"?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:typeof f.duration!="number"&&(f.duration=f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default),(f.queue==null||f.queue===!0)&&(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(ti).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=a(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?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 typeof n!="string"&&(u=t,t=n,n=undefined),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=n!=null&&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&&rf.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem===this&&(n==null||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 n!==!1&&(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 n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(ei(t,!0),n,i,u)}});i.each({slideDown:ei("show"),slideUp:ei("hide"),slideToggle:ei("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(st=Date.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();st=undefined};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){fi||(fi=!0,bi())};i.fx.stop=function(){fi=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:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=f.createElement("input"),t=f.createElement("select"),i=t.appendChild(f.createElement("option"));n.type="checkbox";e.checkOn=n.value!=="";e.optSelected=i.selected;n=f.createElement("input");n.value="t";n.type="radio";e.radioValue=n.value==="t"}();ht=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return p(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(e!==3&&e!==8&&e!==2){if(typeof n.getAttribute=="undefined")return i.prop(n,t,r);if(e===1&&i.isXMLDoc(n)||(f=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?ef:undefined)),r!==undefined){if(r===null){i.removeAttr(n,t);return}return f&&"set"in f&&(u=f.set(n,r,t))!==undefined?u:(n.setAttribute(t,r+""),r)}return f&&"get"in f&&(u=f.get(n,t))!==null?u:(u=i.find.attr(n,t),u==null?undefined:u)}},attrHooks:{type:{set:function(n,t){if(!e.radioValue&&t==="radio"&&v(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&&n.nodeType===1)while(i=r[u++])n.removeAttribute(i)}});ef={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=ht[t]||i.find.attr;ht[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=ht[u],ht[u]=f,f=r(n,t,i)!=null?u:null,ht[u]=e),f}});of=/^(?:input|select|textarea|button)$/i;sf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return p(this,i.prop,n,t,arguments.length>1)},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(e!==3&&e!==8&&e!==2)return(e===1&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),r!==undefined)?u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:n[t]=r:u&&"get"in u&&(f=u.get(n,t))!==null?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):of.test(n.nodeName)||sf.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 f,r,t,e,o,h,s,c=0;if(u(n))return this.each(function(t){i(this).addClass(n.call(this,t,nt(this)))});if(f=ki(n),f.length)while(r=this[c++])if(e=nt(r),t=r.nodeType===1&&" "+g(e)+" ",t){for(h=0;o=f[h++];)t.indexOf(" "+o+" ")<0&&(t+=o+" ");s=g(t);e!==s&&r.setAttribute("class",s)}return this},removeClass:function(n){var f,r,t,e,o,h,s,c=0;if(u(n))return this.each(function(t){i(this).removeClass(n.call(this,t,nt(this)))});if(!arguments.length)return this.attr("class","");if(f=ki(n),f.length)while(r=this[c++])if(e=nt(r),t=r.nodeType===1&&" "+g(e)+" ",t){for(h=0;o=f[h++];)while(t.indexOf(" "+o+" ")>-1)t=t.replace(" "+o+" "," ");s=g(t);e!==s&&r.setAttribute("class",s)}return this},toggleClass:function(n,t){var f=typeof n,e=f==="string"||Array.isArray(n);return typeof t=="boolean"&&e?t?this.addClass(n):this.removeClass(n):u(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,nt(this),t),t)}):this.each(function(){var t,o,u,s;if(e)for(o=0,u=i(this),s=ki(n);t=s[o++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(n===undefined||f==="boolean")&&(t=nt(this),t&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||n===!1?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(t.nodeType===1&&(" "+g(nt(t))+" ").indexOf(i)>-1)return!0;return!1}});hf=/\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;this.nodeType===1&&(u=e?n.call(this,r,i(this).val()):n,u==null?u="":typeof u=="number"?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return n==null?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,u,"value")!==undefined||(this.value=u))})):f?(t=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()],t&&"get"in t&&(r=t.get(f,"value"))!==undefined)?r:(r=f.value,typeof r=="string")?r.replace(hf,""):r==null?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return t!=null?t:g(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f=n.type==="select-one",s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(t=o[r],(t.selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!v(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i.valHooks.option.get(r),e)>-1)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};e.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});e.focusin="onfocusin"in n;di=/^(?:focusinfocus|focusoutblur)$/;gi=function(n){n.stopPropagation()};i.extend(i.event,{trigger:function(t,e,o,s){var k,c,l,d,v,y,a,w,b=[o||f],h=kt.call(t,"type")?t.type:t,p=kt.call(t,"namespace")?t.namespace.split("."):[];if((c=w=l=o=o||f,o.nodeType!==3&&o.nodeType!==8)&&!di.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(p=h.split("."),h=p.shift(),p.sort()),v=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,typeof t=="object"&&t),t.isTrigger=s?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=o),e=e==null?[t]:i.makeArray(e,[t]),a=i.event.special[h]||{},s||!a.trigger||a.trigger.apply(o,e)!==!1)){if(!s&&!a.noBubble&&!tt(o)){for(d=a.delegateType||h,di.test(d+h)||(c=c.parentNode);c;c=c.parentNode)b.push(c),l=c;l===(o.ownerDocument||f)&&b.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=b[k++])&&!t.isPropagationStopped();)w=c,t.type=k>1?d:a.bindType||h,y=(r.get(c,"events")||{})[t.type]&&r.get(c,"handle"),y&&y.apply(c,e),y=v&&c[v],y&&y.apply&&lt(c)&&(t.result=y.apply(c,e),t.result===!1&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||(!a._default||a._default.apply(b.pop(),e)===!1)&&lt(o)&&v&&u(o[h])&&!tt(o)&&(l=o[v],l&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&w.addEventListener(h,gi),o[h](),t.isPropagationStopped()&&w.removeEventListener(h,gi),i.event.triggered=undefined,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,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,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var pt=n.location,cf=Date.now(),nr=/\?/;i.parseXML=function(t){var r;if(!t||typeof t!="string")return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(u){r=undefined}return(!r||r.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+t),r};var uo=/\[\]$/,lf=/\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(i==null?"":i)};if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(r in n)tr(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||!uu.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(lf,"\r\n")}}):{name:t.name,value:r.replace(lf,"\r\n")}}).get()}});var oo=/%20/g,so=/#.*$/,ho=/([?&])_=[^&]*/,co=/^(.*?):[ \t]*([^\r\n]*)$/mg,lo=/^(?:GET|HEAD)$/,ao=/^\/\//,af={},ir={},vf="*/".concat("*"),rr=f.createElement("a");return rr.href=pt.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:pt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(pt.protocol),global:!0,processData:!0,"async":!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":vf,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?ur(ur(n,i.ajaxSettings),t):ur(i.ajaxSettings,n)},ajaxPrefilter:yf(af),ajaxTransport:yf(ir),ajax:function(t,r){function b(t,r,f,l){var y,rt,g,p,b,a=r;s||(s=!0,d&&n.clearTimeout(d),c=undefined,k=l||"",e.readyState=t>0?4:0,y=t>=200&&t<300||t===304,f&&(p=vo(u,e,f)),p=yo(u,p,e,y),y?(u.ifModified&&(b=e.getResponseHeader("Last-Modified"),b&&(i.lastModified[o]=b),b=e.getResponseHeader("etag"),b&&(i.etag[o]=b)),t===204||u.type==="HEAD"?a="nocontent":t===304?a="notmodified":(a=p.state,rt=p.data,g=p.error,y=!g)):(g=a,(t||!a)&&(a="error",t<0&&(t=0))),e.status=t,e.statusText=(r||a)+"",y?tt.resolveWith(h,[rt,a,e]):tt.rejectWith(h,[e,a,g]),e.statusCode(w),w=undefined,v&&nt.trigger(y?"ajaxSuccess":"ajaxError",[e,u,y?rt:g]),it.fireWith(h,[e,a]),v&&(nt.trigger("ajaxComplete",[e,u]),--i.active||i.event.trigger("ajaxStop")))}typeof t=="object"&&(r=t,t=undefined);r=r||{};var c,o,k,y,d,a,s,v,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(!y)for(y={};t=co.exec(k);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return s==null&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return s==null&&(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 c&&c.abort(t),b(0,t),this}};if(tt.promise(e),u.url=((t||u.url||pt.href)+"").replace(ao,pt.protocol+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(l)||[""],u.crossDomain==null){a=f.createElement("a");try{a.href=u.url;a.href=a.href;u.crossDomain=rr.protocol+"//"+rr.host!=a.protocol+"//"+a.host}catch(et){u.crossDomain=!0}}if(u.data&&u.processData&&typeof u.data!="string"&&(u.data=i.param(u.data,u.traditional)),pf(af,u,r,e),s)return e;v=i.event&&u.global;v&&i.active++==0&&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&&(u.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(u.data=u.data.replace(oo,"+")):(p=u.url.slice(o.length),u.data&&(u.processData||typeof u.data=="string")&&(o+=(nr.test(o)?"&":"?")+u.data,delete u.data),u.cache===!1&&(o=o.replace(ho,"$1"),p=(nr.test(o)?"&":"?")+"_="+cf+++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&&u.contentType!==!1||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]!=="*"?", "+vf+"; q=0.01":""):u.accepts["*"]);for(g in u.headers)e.setRequestHeader(g,u.headers[g]);if(u.beforeSend&&(u.beforeSend.call(h,e,u)===!1||s))return e.abort();if(ft="abort",it.add(u.complete),e.done(u.success),e.fail(u.error),c=pf(ir,u,r,e),c){if(e.readyState=1,v&&nt.trigger("ajaxSend",[e,u]),s)return e;u.async&&u.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},u.timeout));try{s=!1;c.send(rt,b)}catch(et){if(s)throw et;b(-1,et)}}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,undefined,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=undefined),i.ajax(i.extend({url:n,type:t,dataType:e,data:r,success:f},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,"async":!1,global:!1,throws:!0})},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){}},wf={0:200,1223:204},ct=i.ajaxSettings.xhr(),e.cors=!!ct&&"withCredentials"in ct,e.ajax=ct=!!ct,i.ajaxTransport(function(t){var i,r;if(e.cors||ct&&!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];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");for(o in 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,n==="abort"?e.abort():n==="error"?typeof e.status!="number"?f(0,"error"):f(e.status,e.statusText):f(wf[e.status]||e.status,e.statusText,(e.responseType||"text")!=="text"||typeof e.responseText!="string"?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=e.ontimeout=i("error");e.onabort!==undefined?e.onabort=r:e.onreadystatechange=function(){e.readyState===4&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s;}},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){n.cache===undefined&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(u,e){r=i("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e(n.type==="error"?404:200,n.type)});f.head.appendChild(r[0])},abort:function(){t&&t()}}}}),fr=[],oi=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=fr.pop()||i.expando+"_"+cf++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,f){var e,o,s,h=t.jsonp!==!1&&(oi.test(t.url)?"url":typeof t.data=="string"&&(t.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&oi.test(t.data)&&"data");if(h||t.dataTypes[0]==="jsonp")return e=t.jsonpCallback=u(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(oi,"$1"+e):t.jsonp!==!1&&(t.url+=(nr.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(){o===undefined?i(n).removeProp(e):n[e]=o;t[e]&&(t.jsonpCallback=r.jsonpCallback,fr.push(e));s&&u(o)&&o(s[0]);s=o=undefined}),"script"}),e.createHTMLDocument=function(){var n=f.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",n.childNodes.length===2}(),i.parseHTML=function(n,t,r){if(typeof n!="string")return[];typeof t=="boolean"&&(r=t,t=!1);var s,u,o;return(t||(e.createHTMLDocument?(t=f.implementation.createHTMLDocument(""),s=t.createElement("base"),s.href=f.location.href,t.head.appendChild(s)):t=f),u=ci.exec(n),o=!r&&[],u)?[t.createElement(u[1])]:(u=su([n],t,o),o&&o.length&&i(o).remove(),i.merge([],u.childNodes))},i.fn.load=function(n,t,r){var f,s,h,e=this,o=n.indexOf(" ");return o>-1&&(f=g(n.slice(o)),n=n.slice(0,o)),u(t)?(r=t,t=undefined):t&&typeof t=="object"&&(s="POST"),e.length>0&&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.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),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 o,s,h,c,f,l,y,a=i.css(n,"position"),v=i(n),e={};a==="static"&&(n.style.position="relative");f=v.offset();h=i.css(n,"top");l=i.css(n,"left");y=(a==="absolute"||a==="fixed")&&(h+l).indexOf("auto")>-1;y?(o=v.position(),c=o.top,s=o.left):(c=parseFloat(h)||0,s=parseFloat(l)||0);u(t)&&(t=t.call(n,r,i.extend({},f)));t.top!=null&&(e.top=t.top-f.top+c);t.left!=null&&(e.left=t.left-f.left+s);"using"in t?t.using.call(n,e):v.css(e)}},i.fn.extend({offset:function(n){if(arguments.length)return n===undefined?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,u,f,t=this[0],r={top:0,left:0};if(i.css(t,"position")==="fixed")u=t.getBoundingClientRect();else{for(u=this.offset(),f=t.ownerDocument,n=t.offsetParent||f.documentElement;n&&(n===f.body||n===f.documentElement)&&i.css(n,"position")==="static";)n=n.parentNode;n&&n!==t&&n.nodeType===1&&(r=i(n).offset(),r.top+=i.css(n,"borderTopWidth",!0),r.left+=i.css(n,"borderLeftWidth",!0))}return{top:u.top-r.top-i.css(t,"marginTop",!0),left:u.left-r.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&i.css(n,"position")==="static";)n=n.offsetParent;return n||ii})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return p(this,function(n,i,u){var f;if(tt(n)?f=n:n.nodeType===9&&(f=n.defaultView),u===undefined)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]=yu(e.pixelPosition,function(n,r){if(r)return r=yt(n,t),pi.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||typeof f!="boolean"),s=r||(f===!0||e===!0?"margin":"border");return p(this,function(t,r,f){var e;return tt(t)?u.indexOf("outer")===0?t["inner"+n]:t.document.documentElement["client"+n]:t.nodeType===9?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):f===undefined?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:undefined,o)}})}),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 arguments.length>0?this.on(t,null,n,i):this.trigger(t)}}),i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(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 arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)}}),i.proxy=function(n,t){var f,e,r;return(typeof t=="string"&&(f=n[t],t=n,n=f),!u(n))?undefined:(e=d.call(arguments,2),r=function(){return n.apply(t||this,e.concat(d.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r)},i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=v,i.isFunction=u,i.isWindow=tt,i.camelCase=y,i.type=it,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return(t==="number"||t==="string")&&!isNaN(n-parseFloat(n))},typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}),bf=n.jQuery,kf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=kf),t&&n.jQuery===i&&(n.jQuery=bf),i},t||(n.jQuery=n.$=i),i});
/*!
 * Bootstrap v3.3.7 (http://getbootstrap.com)
 * Copyright 2011-2016 Twitter, Inc.
 * Licensed under the MIT license
 */
if(typeof jQuery=="undefined")throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||t[0]==1&&t[1]==9&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4");}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(i.style[t]!==undefined)return{end:n[t]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){(n.support.transition=t(),n.support.transition)&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));typeof i=="string"&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.7";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;(u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,"")),r=n(u==="#"?[]:u),i&&i.preventDefault(),r.length||(r=f.closest(".alert")),r.trigger(i=n.Event("close.bs.alert")),i.isDefaultPrevented())||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f));i=="toggle"?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.7";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var i="disabled",r=this.$element,f=r.is("input")?"val":"html",u=r.data();t+="Text";u.resetText==null&&r.data("resetText",r[f]());setTimeout(n.proxy(function(){r[f](u[t]==null?this.options[t]:u[t]);t=="loadingText"?(this.isLoading=!0,r.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(i).removeAttr(i).prop(i,!1))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),n.prop("type")=="radio"?(n.prop("checked")&&(t=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):n.prop("type")=="checkbox"&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target).closest(".btn");i.call(r,"toggle");n(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),e=typeof i=="string"?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));typeof i=="number"?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));this.options.pause!="hover"||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.7";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f=n=="prev"&&i===0||n=="next"&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r=n=="prev"?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(n<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f=i=="next"?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),this.$element.trigger(s),s.isDefaultPrevented())?void 0:(this.sliding=!0,l&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.7";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!r||!r.length||(f=r.data("bs.collapse"),!f||!f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented())){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented())){if(i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},!n.support.transition)return u.call(this);this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":u.data();i.call(f,o)})}(jQuery);+function(n){"use strict";function r(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function u(t){t&&t.which===3||(n(e).remove(),n(i).each(function(){var u=n(this),i=r(u),f={relatedTarget:this};i.hasClass("open")&&(t&&t.type=="click"&&/input|textarea/i.test(t.target.tagName)&&n.contains(i[0],t.target)||(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented())||(u.attr("aria-expanded","false"),i.removeClass("open").trigger(n.Event("hidden.bs.dropdown",f))))}))}function o(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));typeof i=="string"&&u[i].call(r)})}var e=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.7";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=r(f),o=i.hasClass("open"),u(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length)n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",u);if(e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",e))}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,u;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=r(e),s=o.hasClass("open"),!s&&t.which!=27||s&&t.which==27)return t.which==27&&o.find(i).trigger("focus"),e.trigger("click");(h=" li:not(.disabled):visible a",f=o.find(".dropdown-menu"+h),f.length)&&(u=f.index(t.target),t.which==38&&u>0&&u--,t.which==40&&u<f.length-1&&u++,~u||(u=0),f.eq(u).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=o;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",u).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e));typeof i=="string"?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.7";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});if(this.$element.trigger(u),!this.isShown&&!u.isDefaultPrevented()){this.isShown=!0;this.checkScrollbar();this.setScrollbar();this.$body.addClass("modal-open");this.escape();this.resize();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})});this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in");r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)})}};t.prototype.hide=function(i){(i&&i.preventDefault(),i=n.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){document===n.target||this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){if(this.isShown)n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this));else n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){r=n.support.transition&&f;this.$backdrop=n(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body);this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus():this.hide())},this));if(r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.adjustDialog()};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left));this.bodyIsOverflowing=document.body.clientWidth<n;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){if(!n.isDefaultPrevented())u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.tooltip",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.7";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(n.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focusin";s=u=="hover"?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState[t.type=="focusin"?"focus":"hover"]=!0),i.tip().hasClass("in")||i.hoverState=="in"){i.hoverState="in";return}if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)};t.prototype.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState[t.type=="focusout"?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)}};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,e,w,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i=typeof this.options.placement=="function"?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;y&&(p=i,e=this.getPosition(this.$viewport),i=i=="bottom"&&f.bottom+s>e.bottom?"top":i=="top"&&f.top-s<e.top?"bottom":i=="right"&&f.right+o>e.width?"left":i=="left"&&f.left-o<e.left?"right":i,r.removeClass(p).addClass(i));w=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(w,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;n=="out"&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top+=o;t.left+=s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;i=="top"&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?u.left*2-l+h:u.top*2-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function e(){r.hoverState!="in"&&u.detach();r.$element&&r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type);i&&i()}var r=this,u=n(this.$tip),f=n.Event("hide.bs."+this.type);if(this.$element.trigger(f),!f.isDefaultPrevented())return u.removeClass("in"),n.support.transition&&u.hasClass("fade")?u.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e(),this.hoverState=null,this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var r=t[0],u=r.tagName=="BODY",i=r.getBoundingClientRect();i.width==null&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=window.SVGElement&&r instanceof window.SVGElement,e=u?{top:0,left:0}:f?null:t.offset(),o={scroll:u?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},s=u?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,o,s,e)};t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.right&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(Math.random()*1e6);while(document.getElementById(n));return n};t.prototype.tip=function(){if(!this.$tip&&(this.$tip=n(this.options.template),this.$tip.length!=1))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type);n.$tip&&n.$tip.detach();n.$tip=null;n.$arrow=null;n.$viewport=null;n.$element=null})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.popover",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.7";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?typeof t=="string"?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){this.$body=n(document.body);this.$scrollElement=n(i).is(document.body)?n(window):n(i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this));this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f=typeof i=="object"&&i;r||u.data("bs.scrollspy",r=new t(this,f));typeof i=="string"&&r[i]()})}t.VERSION="3.3.7";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var t=this,i="offset",r=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(t[n+1]===undefined||i<t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));typeof i=="string"&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.7";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function o(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);e?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),e=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&e?f.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&&i;r||u.data("bs.affix",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.7";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(i!=null&&this.affixed=="top")return u<i?"top":!1;if(this.affixed=="bottom")return i!=null?u+this.unpin<=f.top?!1:"bottom":u+e<=n-r?!1:"bottom";var o=this.affixed==null,s=o?u:f.top,h=o?e:t;return i!=null&&u<=i?"top":r!=null&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=Math.max(n(document).height(),n(document.body).height());if(typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top(this.$element)),typeof u=="function"&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(this.unpin!=null&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin=i=="bottom"?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}i=="bottom"&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};t.offsetBottom!=null&&(t.offset.bottom=t.offsetBottom);t.offsetTop!=null&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)}(function(n,t){function o(){var f,r,n,u,i,o,t,e;if(r=(new Date).toString(),n=((i=r.split("(")[1])!=null?i.slice(0,-1):0)||r.split(" "),n instanceof Array){for(u=[],t=0,e=n.length;t<e;t++)o=n[t],((f=(i=o.match(/\b[A-Z]+\b/))!=null)?i[0]:0)&&u.push(f);n=u.pop()}return n}function u(){return new Date(Date.UTC.apply(Date,arguments))}var f,e,r,i;"indexOf"in Array.prototype||(Array.prototype.indexOf=function(n,i){i===t&&(i=0);i<0&&(i+=this.length);i<0&&(i=0);for(var r=this.length;i<r;i++)if(i in this&&this[i]===n)return i;return-1});f=function(u,f){var h=this,e,s;for(this.element=n(u),this.container=f.container||"body",this.language=f.language||this.element.data("date-language")||"en",this.language=(this.language in r)?this.language:this.language.split("-")[0],this.language=(this.language in r)?this.language:"en",this.isRTL=r[this.language].rtl||!1,this.formatType=f.formatType||this.element.data("format-type")||"standard",this.format=i.parseFormat(f.format||this.element.data("date-format")||r[this.language].format||i.getDefaultFormat(this.formatType,"input"),this.formatType),this.isInline=!1,this.isVisible=!1,this.isInput=this.element.is("input"),this.fontAwesome=f.fontAwesome||this.element.data("font-awesome")||!1,this.bootcssVer=f.bootcssVer||(this.isInput?this.element.is(".form-control")?3:2:this.bootcssVer=this.element.is(".input-group")?3:2),this.component=this.element.is(".date")?this.bootcssVer===3?this.element.find(".input-group-addon .glyphicon-th, .input-group-addon .glyphicon-time, .input-group-addon .glyphicon-remove, .input-group-addon .glyphicon-calendar, .input-group-addon .fa-calendar, .input-group-addon .fa-clock-o").parent():this.element.find(".add-on .icon-th, .add-on .icon-time, .add-on .icon-calendar, .add-on .fa-calendar, .add-on .fa-clock-o").parent():!1,this.componentReset=this.element.is(".date")?this.bootcssVer===3?this.element.find(".input-group-addon .glyphicon-remove, .input-group-addon .fa-times").parent():this.element.find(".add-on .icon-remove, .add-on .fa-times").parent():!1,this.hasInput=this.component&&this.element.find("input").length,this.component&&this.component.length===0&&(this.component=!1),this.linkField=f.linkField||this.element.data("link-field")||!1,this.linkFormat=i.parseFormat(f.linkFormat||this.element.data("link-format")||i.getDefaultFormat(this.formatType,"link"),this.formatType),this.minuteStep=f.minuteStep||this.element.data("minute-step")||5,this.pickerPosition=f.pickerPosition||this.element.data("picker-position")||"bottom-right",this.showMeridian=f.showMeridian||this.element.data("show-meridian")||!1,this.initialDate=f.initialDate||new Date,this.zIndex=f.zIndex||this.element.data("z-index")||t,this.title=typeof f.title=="undefined"?!1:f.title,this.timezone=f.timezone||o(),this.icons={leftArrow:this.fontAwesome?"fa-arrow-left":this.bootcssVer===3?"glyphicon-arrow-left":"icon-arrow-left",rightArrow:this.fontAwesome?"fa-arrow-right":this.bootcssVer===3?"glyphicon-arrow-right":"icon-arrow-right"},this.icontype=this.fontAwesome?"fa":"glyphicon",this._attachEvents(),this.clickedOutside=function(t){n(t.target).closest(".datetimepicker").length===0&&h.hide()},this.formatViewType="datetime",("formatViewType"in f)?this.formatViewType=f.formatViewType:("formatViewType"in this.element.data())&&(this.formatViewType=this.element.data("formatViewType")),this.minView=0,("minView"in f)?this.minView=f.minView:("minView"in this.element.data())&&(this.minView=this.element.data("min-view")),this.minView=i.convertViewMode(this.minView),this.maxView=i.modes.length-1,("maxView"in f)?this.maxView=f.maxView:("maxView"in this.element.data())&&(this.maxView=this.element.data("max-view")),this.maxView=i.convertViewMode(this.maxView),this.wheelViewModeNavigation=!1,("wheelViewModeNavigation"in f)?this.wheelViewModeNavigation=f.wheelViewModeNavigation:("wheelViewModeNavigation"in this.element.data())&&(this.wheelViewModeNavigation=this.element.data("view-mode-wheel-navigation")),this.wheelViewModeNavigationInverseDirection=!1,("wheelViewModeNavigationInverseDirection"in f)?this.wheelViewModeNavigationInverseDirection=f.wheelViewModeNavigationInverseDirection:("wheelViewModeNavigationInverseDirection"in this.element.data())&&(this.wheelViewModeNavigationInverseDirection=this.element.data("view-mode-wheel-navigation-inverse-dir")),this.wheelViewModeNavigationDelay=100,("wheelViewModeNavigationDelay"in f)?this.wheelViewModeNavigationDelay=f.wheelViewModeNavigationDelay:("wheelViewModeNavigationDelay"in this.element.data())&&(this.wheelViewModeNavigationDelay=this.element.data("view-mode-wheel-navigation-delay")),this.startViewMode=2,("startView"in f)?this.startViewMode=f.startView:("startView"in this.element.data())&&(this.startViewMode=this.element.data("start-view")),this.startViewMode=i.convertViewMode(this.startViewMode),this.viewMode=this.startViewMode,this.viewSelect=this.minView,("viewSelect"in f)?this.viewSelect=f.viewSelect:("viewSelect"in this.element.data())&&(this.viewSelect=this.element.data("view-select")),this.viewSelect=i.convertViewMode(this.viewSelect),this.forceParse=!0,("forceParse"in f)?this.forceParse=f.forceParse:("dateForceParse"in this.element.data())&&(this.forceParse=this.element.data("date-force-parse")),e=this.bootcssVer===3?i.templateV3:i.template;e.indexOf("{iconType}")!==-1;)e=e.replace("{iconType}",this.icontype);while(e.indexOf("{leftArrow}")!==-1)e=e.replace("{leftArrow}",this.icons.leftArrow);while(e.indexOf("{rightArrow}")!==-1)e=e.replace("{rightArrow}",this.icons.rightArrow);if(this.picker=n(e).appendTo(this.isInline?this.element:this.container).on({click:n.proxy(this.click,this),mousedown:n.proxy(this.mousedown,this)}),this.wheelViewModeNavigation)if(n.fn.mousewheel)this.picker.on({mousewheel:n.proxy(this.mousewheel,this)});else console.log("Mouse Wheel event is not supported. Please include the jQuery Mouse Wheel plugin before enabling this option");this.isInline?this.picker.addClass("datetimepicker-inline"):this.picker.addClass("datetimepicker-dropdown-"+this.pickerPosition+" dropdown-menu");this.isRTL&&(this.picker.addClass("datetimepicker-rtl"),s=this.bootcssVer===3?".prev span, .next span":".prev i, .next i",this.picker.find(s).toggleClass(this.icons.leftArrow+" "+this.icons.rightArrow));n(document).on("mousedown touchend",this.clickedOutside);this.autoclose=!1;"autoclose"in f?this.autoclose=f.autoclose:"dateAutoclose"in this.element.data()&&(this.autoclose=this.element.data("date-autoclose"));this.keyboardNavigation=!0;"keyboardNavigation"in f?this.keyboardNavigation=f.keyboardNavigation:"dateKeyboardNavigation"in this.element.data()&&(this.keyboardNavigation=this.element.data("date-keyboard-navigation"));this.todayBtn=f.todayBtn||this.element.data("date-today-btn")||!1;this.clearBtn=f.clearBtn||this.element.data("date-clear-btn")||!1;this.todayHighlight=f.todayHighlight||this.element.data("date-today-highlight")||!1;this.weekStart=0;typeof f.weekStart!="undefined"?this.weekStart=f.weekStart:typeof this.element.data("date-weekstart")!="undefined"?this.weekStart=this.element.data("date-weekstart"):typeof r[this.language].weekStart!="undefined"&&(this.weekStart=r[this.language].weekStart);this.weekStart=this.weekStart%7;this.weekEnd=(this.weekStart+6)%7;this.onRenderDay=function(n){var t=(f.onRenderDay||function(){return[]})(n),i;return typeof t=="string"&&(t=[t]),i=["day"],i.concat(t?t:[])};this.onRenderHour=function(n){var t=(f.onRenderHour||function(){return[]})(n);return typeof t=="string"&&(t=[t]),["hour"].concat(t?t:[])};this.onRenderMinute=function(n){var t=(f.onRenderMinute||function(){return[]})(n),i=["minute"];return typeof t=="string"&&(t=[t]),n<this.startDate||n>this.endDate?i.push("disabled"):Math.floor(this.date.getUTCMinutes()/this.minuteStep)===Math.floor(n.getUTCMinutes()/this.minuteStep)&&i.push("active"),i.concat(t?t:[])};this.onRenderYear=function(n){var t=(f.onRenderYear||function(){return[]})(n),i=["year"],r,u;return typeof t=="string"&&(t=[t]),this.date.getUTCFullYear()===n.getUTCFullYear()&&i.push("active"),r=n.getUTCFullYear(),u=this.endDate.getUTCFullYear(),(n<this.startDate||r>u)&&i.push("disabled"),i.concat(t?t:[])};this.onRenderMonth=function(n){var t=(f.onRenderMonth||function(){return[]})(n);return typeof t=="string"&&(t=[t]),["month"].concat(t?t:[])};this.startDate=new Date(-8639968443048e3);this.endDate=new Date(8639968443048e3);this.datesDisabled=[];this.daysOfWeekDisabled=[];this.setStartDate(f.startDate||this.element.data("date-startdate"));this.setEndDate(f.endDate||this.element.data("date-enddate"));this.setDatesDisabled(f.datesDisabled||this.element.data("date-dates-disabled"));this.setDaysOfWeekDisabled(f.daysOfWeekDisabled||this.element.data("date-days-of-week-disabled"));this.setMinutesDisabled(f.minutesDisabled||this.element.data("date-minute-disabled"));this.setHoursDisabled(f.hoursDisabled||this.element.data("date-hour-disabled"));this.fillDow();this.fillMonths();this.update();this.showMode();this.isInline&&this.show()};f.prototype={constructor:f,_events:[],_attachEvents:function(){this._detachEvents();this.isInput?this._events=[[this.element,{focus:n.proxy(this.show,this),keyup:n.proxy(this.update,this),keydown:n.proxy(this.keydown,this)}]]:this.component&&this.hasInput?(this._events=[[this.element.find("input"),{focus:n.proxy(this.show,this),keyup:n.proxy(this.update,this),keydown:n.proxy(this.keydown,this)}],[this.component,{click:n.proxy(this.show,this)}]],this.componentReset&&this._events.push([this.componentReset,{click:n.proxy(this.reset,this)}])):this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:n.proxy(this.show,this)}]];for(var t=0,i,r;t<this._events.length;t++){i=this._events[t][0];r=this._events[t][1];i.on(r)}},_detachEvents:function(){for(var n=0,t,i;n<this._events.length;n++)t=this._events[n][0],i=this._events[n][1],t.off(i);this._events=[]},show:function(t){this.picker.show();this.height=this.component?this.component.outerHeight():this.element.outerHeight();this.forceParse&&this.update();this.place();n(window).on("resize",n.proxy(this.place,this));t&&(t.stopPropagation(),t.preventDefault());this.isVisible=!0;this.element.trigger({type:"show",date:this.date})},hide:function(){this.isVisible&&(this.isInline||(this.picker.hide(),n(window).off("resize",this.place),this.viewMode=this.startViewMode,this.showMode(),this.isInput||n(document).off("mousedown",this.hide),this.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this.isVisible=!1,this.element.trigger({type:"hide",date:this.date})))},remove:function(){this._detachEvents();n(document).off("mousedown",this.clickedOutside);this.picker.remove();delete this.picker;delete this.element.data().datetimepicker},getDate:function(){var n=this.getUTCDate();return n===null?null:new Date(n.getTime()+n.getTimezoneOffset()*6e4)},getUTCDate:function(){return this.date},getInitialDate:function(){return this.initialDate},setInitialDate:function(n){this.initialDate=n},setDate:function(n){this.setUTCDate(new Date(n.getTime()-n.getTimezoneOffset()*6e4))},setUTCDate:function(n){n>=this.startDate&&n<=this.endDate?(this.date=n,this.setValue(),this.viewDate=this.date,this.fill()):this.element.trigger({type:"outOfRange",date:n,startDate:this.startDate,endDate:this.endDate})},setFormat:function(n){this.format=i.parseFormat(n,this.formatType);var t;this.isInput?t=this.element:this.component&&(t=this.element.find("input"));t&&t.val()&&this.setValue()},setValue:function(){var t=this.getFormattedDate();this.isInput?this.element.val(t):(this.component&&this.element.find("input").val(t),this.element.data("date",t));this.linkField&&n("#"+this.linkField).val(this.getFormattedDate(this.linkFormat))},getFormattedDate:function(n){return n=n||this.format,i.formatDate(this.date,n,this.language,this.formatType,this.timezone)},setStartDate:function(n){this.startDate=n||this.startDate;this.startDate.valueOf()!==8639968443048e3&&(this.startDate=i.parseDate(this.startDate,this.format,this.language,this.formatType,this.timezone));this.update();this.updateNavArrows()},setEndDate:function(n){this.endDate=n||this.endDate;this.endDate.valueOf()!==8639968443048e3&&(this.endDate=i.parseDate(this.endDate,this.format,this.language,this.formatType,this.timezone));this.update();this.updateNavArrows()},setDatesDisabled:function(t){this.datesDisabled=t||[];n.isArray(this.datesDisabled)||(this.datesDisabled=this.datesDisabled.split(/,\s*/));var r=this;this.datesDisabled=n.map(this.datesDisabled,function(n){return i.parseDate(n,r.format,r.language,r.formatType,r.timezone).toDateString()});this.update();this.updateNavArrows()},setTitle:function(n,t){return this.picker.find(n).find("th:eq(1)").text(this.title===!1?t:this.title)},setDaysOfWeekDisabled:function(t){this.daysOfWeekDisabled=t||[];n.isArray(this.daysOfWeekDisabled)||(this.daysOfWeekDisabled=this.daysOfWeekDisabled.split(/,\s*/));this.daysOfWeekDisabled=n.map(this.daysOfWeekDisabled,function(n){return parseInt(n,10)});this.update();this.updateNavArrows()},setMinutesDisabled:function(t){this.minutesDisabled=t||[];n.isArray(this.minutesDisabled)||(this.minutesDisabled=this.minutesDisabled.split(/,\s*/));this.minutesDisabled=n.map(this.minutesDisabled,function(n){return parseInt(n,10)});this.update();this.updateNavArrows()},setHoursDisabled:function(t){this.hoursDisabled=t||[];n.isArray(this.hoursDisabled)||(this.hoursDisabled=this.hoursDisabled.split(/,\s*/));this.hoursDisabled=n.map(this.hoursDisabled,function(n){return parseInt(n,10)});this.update();this.updateNavArrows()},place:function(){var r,i,u,t,f,e;this.isInline||(this.zIndex||(r=0,n("div").each(function(){var t=parseInt(n(this).css("zIndex"),10);t>r&&(r=t)}),this.zIndex=r+10),f=this.container instanceof n?this.container.offset():n(this.container).offset(),this.component?(i=this.component.offset(),t=i.left,(this.pickerPosition==="bottom-left"||this.pickerPosition==="top-left")&&(t+=this.component.outerWidth()-this.picker.outerWidth())):(i=this.element.offset(),t=i.left,(this.pickerPosition==="bottom-left"||this.pickerPosition==="top-left")&&(t+=this.element.outerWidth()-this.picker.outerWidth())),e=document.body.clientWidth||window.innerWidth,t+220>e&&(t=e-220),u=this.pickerPosition==="top-left"||this.pickerPosition==="top-right"?i.top-this.picker.outerHeight():i.top+this.height,u=u-f.top,t=t-f.left,this.picker.css({top:u,left:t,zIndex:this.zIndex}))},hour_minute:"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]",update:function(){var n,t=!1;arguments&&arguments.length&&(typeof arguments[0]=="string"||arguments[0]instanceof Date)?(n=arguments[0],t=!0):(n=(this.isInput?this.element.val():this.element.find("input").val())||this.element.data("date")||this.initialDate,typeof n=="string"&&(n=n.replace(/^\s+|\s+$/g,"")));n||(n=new Date,t=!1);typeof n=="string"&&(new RegExp(this.hour_minute).test(n)||new RegExp(this.hour_minute+":[0-5][0-9]").test(n))&&(n=this.getDate());this.date=i.parseDate(n,this.format,this.language,this.formatType,this.timezone);t&&this.setValue();this.viewDate=this.date<this.startDate?new Date(this.startDate):this.date>this.endDate?new Date(this.endDate):new Date(this.date);this.fill()},fillDow:function(){for(var t=this.weekStart,n="<tr>";t<this.weekStart+7;)n+='<th class="dow">'+r[this.language].daysMin[t++%7]+"<\/th>";n+="<\/tr>";this.picker.find(".datetimepicker-days thead").append(n)},fillMonths:function(){for(var u,t="",i=new Date(this.viewDate),n=0;n<12;n++)i.setUTCMonth(n),u=this.onRenderMonth(i),t+='<span class="'+u.join(" ")+'">'+r[this.language].monthsShort[n]+"<\/span>";this.picker.find(".datetimepicker-months td").html(t)},fill:function(){var g,f,nt,p,s,h,tt,ut,ft,b,et,t;if(this.date&&this.viewDate){var c=new Date(this.viewDate),o=c.getUTCFullYear(),v=c.getUTCMonth(),k=c.getUTCDate(),w=c.getUTCHours(),it=this.startDate.getUTCFullYear(),ot=this.startDate.getUTCMonth(),rt=this.endDate.getUTCFullYear(),st=this.endDate.getUTCMonth()+1,ht=new u(this.date.getUTCFullYear(),this.date.getUTCMonth(),this.date.getUTCDate()).valueOf(),d=new Date;for(this.setTitle(".datetimepicker-days",r[this.language].months[v]+" "+o),this.formatViewType==="time"?(g=this.getFormattedDate(),this.setTitle(".datetimepicker-hours",g),this.setTitle(".datetimepicker-minutes",g)):(this.setTitle(".datetimepicker-hours",k+" "+r[this.language].months[v]+" "+o),this.setTitle(".datetimepicker-minutes",k+" "+r[this.language].months[v]+" "+o)),this.picker.find("tfoot th.today").text(r[this.language].today||r.en.today).toggle(this.todayBtn!==!1),this.picker.find("tfoot th.clear").text(r[this.language].clear||r.en.clear).toggle(this.clearBtn!==!1),this.updateNavArrows(),this.fillMonths(),f=u(o,v-1,28,0,0,0,0),nt=i.getDaysInMonth(f.getUTCFullYear(),f.getUTCMonth()),f.setUTCDate(nt),f.setUTCDate(nt-(f.getUTCDay()-this.weekStart+7)%7),p=new Date(f),p.setUTCDate(p.getUTCDate()+42),p=p.valueOf(),s=[];f.valueOf()<p;)f.getUTCDay()===this.weekStart&&s.push("<tr>"),h=this.onRenderDay(f),f.getUTCFullYear()<o||f.getUTCFullYear()===o&&f.getUTCMonth()<v?h.push("old"):(f.getUTCFullYear()>o||f.getUTCFullYear()===o&&f.getUTCMonth()>v)&&h.push("new"),this.todayHighlight&&f.getUTCFullYear()===d.getFullYear()&&f.getUTCMonth()===d.getMonth()&&f.getUTCDate()===d.getDate()&&h.push("today"),f.valueOf()===ht&&h.push("active"),(f.valueOf()+864e5<=this.startDate||f.valueOf()>this.endDate||n.inArray(f.getUTCDay(),this.daysOfWeekDisabled)!==-1||n.inArray(f.toDateString(),this.datesDisabled)!==-1)&&h.push("disabled"),s.push('<td class="'+h.join(" ")+'">'+f.getUTCDate()+"<\/td>"),f.getUTCDay()===this.weekEnd&&s.push("<\/tr>"),f.setUTCDate(f.getUTCDate()+1);this.picker.find(".datetimepicker-days tbody").empty().append(s.join(""));s=[];var a="",l="",y="",ct=this.hoursDisabled||[];for(c=new Date(this.viewDate),t=0;t<24;t++)c.setUTCHours(t),h=this.onRenderHour(c),ct.indexOf(t)!==-1&&h.push("disabled"),tt=u(o,v,k,t),tt.valueOf()+36e5<=this.startDate||tt.valueOf()>this.endDate?h.push("disabled"):w===t&&h.push("active"),this.showMeridian&&r[this.language].meridiem.length===2?(l=t<12?r[this.language].meridiem[0]:r[this.language].meridiem[1],l!==y&&(y!==""&&s.push("<\/fieldset>"),s.push('<fieldset class="hour"><legend>'+l.toUpperCase()+"<\/legend>")),y=l,a=t%12?t%12:12,t<12?h.push("hour_am"):h.push("hour_pm"),s.push('<span class="'+h.join(" ")+'">'+a+"<\/span>"),t===23&&s.push("<\/fieldset>")):(a=t+":00",s.push('<span class="'+h.join(" ")+'">'+a+"<\/span>"));for(this.picker.find(".datetimepicker-hours td").html(s.join("")),s=[],a="",l="",y="",ut=this.minutesDisabled||[],c=new Date(this.viewDate),t=0;t<60;t+=this.minuteStep)ut.indexOf(t)===-1&&(c.setUTCMinutes(t),c.setUTCSeconds(0),h=this.onRenderMinute(c),this.showMeridian&&r[this.language].meridiem.length===2?(l=w<12?r[this.language].meridiem[0]:r[this.language].meridiem[1],l!==y&&(y!==""&&s.push("<\/fieldset>"),s.push('<fieldset class="minute"><legend>'+l.toUpperCase()+"<\/legend>")),y=l,a=w%12?w%12:12,s.push('<span class="'+h.join(" ")+'">'+a+":"+(t<10?"0"+t:t)+"<\/span>"),t===59&&s.push("<\/fieldset>")):(a=t+":00",s.push('<span class="'+h.join(" ")+'">'+w+":"+(t<10?"0"+t:t)+"<\/span>")));for(this.picker.find(".datetimepicker-minutes td").html(s.join("")),ft=this.date.getUTCFullYear(),b=this.setTitle(".datetimepicker-months",o).end().find(".month").removeClass("active"),ft===o&&b.eq(this.date.getUTCMonth()).addClass("active"),(o<it||o>rt)&&b.addClass("disabled"),o===it&&b.slice(0,ot).addClass("disabled"),o===rt&&b.slice(st).addClass("disabled"),s="",o=parseInt(o/10,10)*10,et=this.setTitle(".datetimepicker-years",o+"-"+(o+9)).end().find("td"),o-=1,c=new Date(this.viewDate),t=-1;t<11;t++)c.setUTCFullYear(o),h=this.onRenderYear(c),(t===-1||t===10)&&h.push(e),s+='<span class="'+h.join(" ")+'">'+o+"<\/span>",o+=1;et.html(s);this.place()}},updateNavArrows:function(){var i=new Date(this.viewDate),n=i.getUTCFullYear(),t=i.getUTCMonth(),r=i.getUTCDate(),u=i.getUTCHours();switch(this.viewMode){case 0:n<=this.startDate.getUTCFullYear()&&t<=this.startDate.getUTCMonth()&&r<=this.startDate.getUTCDate()&&u<=this.startDate.getUTCHours()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});n>=this.endDate.getUTCFullYear()&&t>=this.endDate.getUTCMonth()&&r>=this.endDate.getUTCDate()&&u>=this.endDate.getUTCHours()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:n<=this.startDate.getUTCFullYear()&&t<=this.startDate.getUTCMonth()&&r<=this.startDate.getUTCDate()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});n>=this.endDate.getUTCFullYear()&&t>=this.endDate.getUTCMonth()&&r>=this.endDate.getUTCDate()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 2:n<=this.startDate.getUTCFullYear()&&t<=this.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});n>=this.endDate.getUTCFullYear()&&t>=this.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 3:case 4:n<=this.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});n>=this.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}},mousewheel:function(t){if(t.preventDefault(),t.stopPropagation(),!this.wheelPause){this.wheelPause=!0;var u=t.originalEvent,r=u.wheelDelta,i=r>0?1:r===0?0:-1;this.wheelViewModeNavigationInverseDirection&&(i=-i);this.showMode(i);setTimeout(n.proxy(function(){this.wheelPause=!1},this),this.wheelViewModeNavigationDelay)}},click:function(t){var r,l,e,v;if(t.stopPropagation(),t.preventDefault(),r=n(t.target).closest("span, td, th, legend"),r.is("."+this.icontype)&&(r=n(r).parent().closest("span, td, th, legend")),r.length===1){if(r.is(".disabled")){this.element.trigger({type:"outOfRange",date:this.viewDate,startDate:this.startDate,endDate:this.endDate});return}switch(r[0].nodeName.toLowerCase()){case"th":switch(r[0].className){case"switch":this.showMode(1);break;case"prev":case"next":l=i.modes[this.viewMode].navStep*(r[0].className==="prev"?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveHour(this.viewDate,l);break;case 1:this.viewDate=this.moveDate(this.viewDate,l);break;case 2:this.viewDate=this.moveMonth(this.viewDate,l);break;case 3:case 4:this.viewDate=this.moveYear(this.viewDate,l)}this.fill();this.element.trigger({type:r[0].className+":"+this.convertViewModeText(this.viewMode),date:this.viewDate,startDate:this.startDate,endDate:this.endDate});break;case"clear":this.reset();this.autoclose&&this.hide();break;case"today":e=new Date;e=u(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),0);e<this.startDate?e=this.startDate:e>this.endDate&&(e=this.endDate);this.viewMode=this.startViewMode;this.showMode(0);this._setDate(e);this.fill();this.autoclose&&this.hide()}break;case"span":if(!r.is(".disabled")){var s=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),h=this.viewDate.getUTCDate(),o=this.viewDate.getUTCHours(),c=this.viewDate.getUTCMinutes(),a=this.viewDate.getUTCSeconds();r.is(".month")?(this.viewDate.setUTCDate(1),f=r.parent().find("span").index(r),h=this.viewDate.getUTCDate(),this.viewDate.setUTCMonth(f),this.element.trigger({type:"changeMonth",date:this.viewDate}),this.viewSelect>=3&&this._setDate(u(s,f,h,o,c,a,0))):r.is(".year")?(this.viewDate.setUTCDate(1),s=parseInt(r.text(),10)||0,this.viewDate.setUTCFullYear(s),this.element.trigger({type:"changeYear",date:this.viewDate}),this.viewSelect>=4&&this._setDate(u(s,f,h,o,c,a,0))):r.is(".hour")?(o=parseInt(r.text(),10)||0,(r.hasClass("hour_am")||r.hasClass("hour_pm"))&&(o===12&&r.hasClass("hour_am")?o=0:o!==12&&r.hasClass("hour_pm")&&(o+=12)),this.viewDate.setUTCHours(o),this.element.trigger({type:"changeHour",date:this.viewDate}),this.viewSelect>=1&&this._setDate(u(s,f,h,o,c,a,0))):r.is(".minute")&&(c=parseInt(r.text().substr(r.text().indexOf(":")+1),10)||0,this.viewDate.setUTCMinutes(c),this.element.trigger({type:"changeMinute",date:this.viewDate}),this.viewSelect>=0&&this._setDate(u(s,f,h,o,c,a,0)));this.viewMode!==0?(v=this.viewMode,this.showMode(-1),this.fill(),v===this.viewMode&&this.autoclose&&this.hide()):(this.fill(),this.autoclose&&this.hide())}break;case"td":if(r.is(".day")&&!r.is(".disabled")){var h=parseInt(r.text(),10)||1,s=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),o=this.viewDate.getUTCHours(),c=this.viewDate.getUTCMinutes(),a=this.viewDate.getUTCSeconds();r.is(".old")?f===0?(f=11,s-=1):f-=1:r.is(".new")&&(f===11?(f=0,s+=1):f+=1);this.viewDate.setUTCFullYear(s);this.viewDate.setUTCMonth(f,h);this.element.trigger({type:"changeDay",date:this.viewDate});this.viewSelect>=2&&this._setDate(u(s,f,h,o,c,a,0))}v=this.viewMode;this.showMode(-1);this.fill();v===this.viewMode&&this.autoclose&&this.hide()}}},_setDate:function(n,t){t&&t!=="date"||(this.date=n);t&&t!=="view"||(this.viewDate=n);this.fill();this.setValue();var i;this.isInput?i=this.element:this.component&&(i=this.element.find("input"));i&&i.change();this.element.trigger({type:"changeDate",date:this.getDate()});n===null&&(this.date=this.viewDate)},moveMinute:function(n,t){if(!t)return n;var i=new Date(n.valueOf());return i.setUTCMinutes(i.getUTCMinutes()+t*this.minuteStep),i},moveHour:function(n,t){if(!t)return n;var i=new Date(n.valueOf());return i.setUTCHours(i.getUTCHours()+t),i},moveDate:function(n,t){if(!t)return n;var i=new Date(n.valueOf());return i.setUTCDate(i.getUTCDate()+t),i},moveMonth:function(n,t){var f;if(!t)return n;var i=new Date(n.valueOf()),e=i.getUTCDate(),o=i.getUTCMonth(),s=Math.abs(t),r,u;if(t=t>0?1:-1,s===1)u=t===-1?function(){return i.getUTCMonth()===o}:function(){return i.getUTCMonth()!==r},r=o+t,i.setUTCMonth(r),(r<0||r>11)&&(r=(r+12)%12);else{for(f=0;f<s;f++)i=this.moveMonth(i,t);r=i.getUTCMonth();i.setUTCDate(e);u=function(){return r!==i.getUTCMonth()}}while(u())i.setUTCDate(--e),i.setUTCMonth(r);return i},moveYear:function(n,t){return this.moveMonth(n,t*12)},dateWithinRange:function(n){return n>=this.startDate&&n<=this.endDate},keydown:function(n){var f,t,r,u,i,o,e;if(this.picker.is(":not(:visible)")){n.keyCode===27&&this.show();return}f=!1;switch(n.keyCode){case 27:this.hide();n.preventDefault();break;case 37:case 39:if(!this.keyboardNavigation)break;t=n.keyCode===37?-1:1;i=this.viewMode;n.ctrlKey?i+=2:n.shiftKey&&(i+=1);i===4?(r=this.moveYear(this.date,t),u=this.moveYear(this.viewDate,t)):i===3?(r=this.moveMonth(this.date,t),u=this.moveMonth(this.viewDate,t)):i===2?(r=this.moveDate(this.date,t),u=this.moveDate(this.viewDate,t)):i===1?(r=this.moveHour(this.date,t),u=this.moveHour(this.viewDate,t)):i===0&&(r=this.moveMinute(this.date,t),u=this.moveMinute(this.viewDate,t));this.dateWithinRange(r)&&(this.date=r,this.viewDate=u,this.setValue(),this.update(),n.preventDefault(),f=!0);break;case 38:case 40:if(!this.keyboardNavigation)break;t=n.keyCode===38?-1:1;i=this.viewMode;n.ctrlKey?i+=2:n.shiftKey&&(i+=1);i===4?(r=this.moveYear(this.date,t),u=this.moveYear(this.viewDate,t)):i===3?(r=this.moveMonth(this.date,t),u=this.moveMonth(this.viewDate,t)):i===2?(r=this.moveDate(this.date,t*7),u=this.moveDate(this.viewDate,t*7)):i===1?this.showMeridian?(r=this.moveHour(this.date,t*6),u=this.moveHour(this.viewDate,t*6)):(r=this.moveHour(this.date,t*4),u=this.moveHour(this.viewDate,t*4)):i===0&&(r=this.moveMinute(this.date,t*4),u=this.moveMinute(this.viewDate,t*4));this.dateWithinRange(r)&&(this.date=r,this.viewDate=u,this.setValue(),this.update(),n.preventDefault(),f=!0);break;case 13:this.viewMode!==0?(o=this.viewMode,this.showMode(-1),this.fill(),o===this.viewMode&&this.autoclose&&this.hide()):(this.fill(),this.autoclose&&this.hide());n.preventDefault();break;case 9:this.hide()}f&&(this.isInput?e=this.element:this.component&&(e=this.element.find("input")),e&&e.change(),this.element.trigger({type:"changeDate",date:this.getDate()}))},showMode:function(n){if(n){var t=Math.max(0,Math.min(i.modes.length-1,this.viewMode+n));t>=this.minView&&t<=this.maxView&&(this.element.trigger({type:"changeMode",date:this.viewDate,oldViewMode:this.viewMode,newViewMode:t}),this.viewMode=t)}this.picker.find(">div").hide().filter(".datetimepicker-"+i.modes[this.viewMode].clsName).css("display","block");this.updateNavArrows()},reset:function(){this._setDate(null,"date")},convertViewModeText:function(n){switch(n){case 4:return"decade";case 3:return"year";case 2:return"month";case 1:return"day";case 0:return"hour"}}};e=n.fn.datetimepicker;n.fn.datetimepicker=function(i){var u=Array.apply(null,arguments),r;return u.shift(),this.each(function(){var o=n(this),e=o.data("datetimepicker"),s=typeof i=="object"&&i;return e||o.data("datetimepicker",e=new f(this,n.extend({},n.fn.datetimepicker.defaults,s))),typeof i=="string"&&typeof e[i]=="function"&&(r=e[i].apply(e,u),r!==t)?!1:void 0}),r!==t?r:this};n.fn.datetimepicker.defaults={};n.fn.datetimepicker.Constructor=f;r=n.fn.datetimepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],today:"Today",clear:"Clear"}};i={modes:[{clsName:"minutes",navFnc:"Hours",navStep:1},{clsName:"hours",navFnc:"Date",navStep:1},{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(n){return n%4==0&&n%100!=0||n%400==0},getDaysInMonth:function(n,t){return[31,i.isLeapYear(n)?29:28,31,30,31,30,31,31,30,31,30,31][t]},getDefaultFormat:function(n,t){if(n==="standard")return t==="input"?"yyyy-mm-dd hh:ii":"yyyy-mm-dd hh:ii:ss";if(n==="php")return t==="input"?"Y-m-d H:i":"Y-m-d H:i:s";throw new Error("Invalid format type.");},validParts:function(n){if(n==="standard")return/t|hh?|HH?|p|P|z|Z|ii?|ss?|dd?|DD?|mm?|MM?|yy(?:yy)?/g;if(n==="php")return/[dDjlNwzFmMnStyYaABgGhHis]/g;throw new Error("Invalid format type.");},nonpunctuation:/[^ -\/:-@\[-`{-~\t\n\rTZ]+/g,parseFormat:function(n,t){var i=n.replace(this.validParts(t),'\0').split('\0'),r=n.match(this.validParts(t));if(!i||!i.length||!r||r.length===0)throw new Error("Invalid date format.");return{separators:i,parts:r}},parseDate:function(t,i,e,o,s){var k,d,l,a,y,nt,h,p;if(t instanceof Date)return k=new Date(t.valueOf()-t.getTimezoneOffset()*6e4),k.setMilliseconds(0),k;if(/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(t)&&(i=this.parseFormat("yyyy-mm-dd",o)),/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(t)&&(i=this.parseFormat("yyyy-mm-dd hh:ii",o)),/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(t)&&(i=this.parseFormat("yyyy-mm-dd hh:ii:ss",o)),/^[-+]\d+[dmwy]([\s,]+[-+]\d+[dmwy])*$/.test(t)){for(d=/([-+]\d+)([dmwy])/,l=t.match(/([-+]\d+)([dmwy])/g),t=new Date,h=0;h<l.length;h++){a=d.exec(l[h]);y=parseInt(a[1]);switch(a[2]){case"d":t.setUTCDate(t.getUTCDate()+y);break;case"m":t=f.prototype.moveMonth.call(f.prototype,t,y);break;case"w":t.setUTCDate(t.getUTCDate()+y*7);break;case"y":t=f.prototype.moveYear.call(f.prototype,t,y)}}return u(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0)}var l=t&&t.toString().match(this.nonpunctuation)||[],t=new Date(0,0,0,0,0,0,0),w={},g=["hh","h","ii","i","ss","s","yyyy","yy","M","MM","m","mm","D","DD","d","dd","H","HH","p","P","z","Z"],c={hh:function(n,t){return n.setUTCHours(t)},h:function(n,t){return n.setUTCHours(t)},HH:function(n,t){return n.setUTCHours(t===12?0:t)},H:function(n,t){return n.setUTCHours(t===12?0:t)},ii:function(n,t){return n.setUTCMinutes(t)},i:function(n,t){return n.setUTCMinutes(t)},ss:function(n,t){return n.setUTCSeconds(t)},s:function(n,t){return n.setUTCSeconds(t)},yyyy:function(n,t){return n.setUTCFullYear(t)},yy:function(n,t){return n.setUTCFullYear(2e3+t)},m:function(n,t){for(t-=1;t<0;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!==t;){if(isNaN(n.getUTCMonth()))return n;n.setUTCDate(n.getUTCDate()-1)}return n},d:function(n,t){return n.setUTCDate(t)},p:function(n,t){return n.setUTCHours(t===1?n.getUTCHours()+12:n.getUTCHours())},z:function(){return s}},v,b,a;if(c.M=c.MM=c.mm=c.m,c.dd=c.d,c.P=c.p,c.Z=c.z,t=u(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()),l.length===i.parts.length){for(h=0,nt=i.parts.length;h<nt;h++){if(v=parseInt(l[h],10),a=i.parts[h],isNaN(v))switch(a){case"MM":b=n(r[e].months).filter(function(){var n=this.slice(0,l[h].length),t=l[h].slice(0,n.length);return n===t});v=n.inArray(b[0],r[e].months)+1;break;case"M":b=n(r[e].monthsShort).filter(function(){var n=this.slice(0,l[h].length),t=l[h].slice(0,n.length);return n.toLowerCase()===t.toLowerCase()});v=n.inArray(b[0],r[e].monthsShort)+1;break;case"p":case"P":v=n.inArray(l[h].toLowerCase(),r[e].meridiem);break;case"z":case"Z":s}w[a]=v}for(h=0;h<g.length;h++)p=g[h],p in w&&!isNaN(w[p])&&c[p](t,w[p])}return t},formatDate:function(t,u,f,e,o){var s,t,h,c,l;if(t===null)return"";if(e==="standard")s={t:t.getTime(),yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear(),m:t.getUTCMonth()+1,M:r[f].monthsShort[t.getUTCMonth()],MM:r[f].months[t.getUTCMonth()],d:t.getUTCDate(),D:r[f].daysShort[t.getUTCDay()],DD:r[f].days[t.getUTCDay()],p:r[f].meridiem.length===2?r[f].meridiem[t.getUTCHours()<12?0:1]:"",h:t.getUTCHours(),i:t.getUTCMinutes(),s:t.getUTCSeconds(),z:o},s.H=r[f].meridiem.length===2?s.h%12==0?12:s.h%12:s.h,s.HH=(s.H<10?"0":"")+s.H,s.P=s.p.toUpperCase(),s.Z=s.z,s.hh=(s.h<10?"0":"")+s.h,s.ii=(s.i<10?"0":"")+s.i,s.ss=(s.s<10?"0":"")+s.s,s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m;else if(e==="php")s={y:t.getUTCFullYear().toString().substring(2),Y:t.getUTCFullYear(),F:r[f].months[t.getUTCMonth()],M:r[f].monthsShort[t.getUTCMonth()],n:t.getUTCMonth()+1,t:i.getDaysInMonth(t.getUTCFullYear(),t.getUTCMonth()),j:t.getUTCDate(),l:r[f].days[t.getUTCDay()],D:r[f].daysShort[t.getUTCDay()],w:t.getUTCDay(),N:t.getUTCDay()===0?7:t.getUTCDay(),S:t.getUTCDate()%10<=r[f].suffix.length?r[f].suffix[t.getUTCDate()%10-1]:"",a:r[f].meridiem.length===2?r[f].meridiem[t.getUTCHours()<12?0:1]:"",g:t.getUTCHours()%12==0?12:t.getUTCHours()%12,G:t.getUTCHours(),i:t.getUTCMinutes(),s:t.getUTCSeconds()},s.m=(s.n<10?"0":"")+s.n,s.d=(s.j<10?"0":"")+s.j,s.A=s.a.toString().toUpperCase(),s.h=(s.g<10?"0":"")+s.g,s.H=(s.G<10?"0":"")+s.G,s.i=(s.i<10?"0":"")+s.i,s.s=(s.s<10?"0":"")+s.s;else throw new Error("Invalid format type.");for(t=[],h=n.extend([],u.separators),c=0,l=u.parts.length;c<l;c++)h.length&&t.push(h.shift()),t.push(s[u.parts[c]]);return h.length&&t.push(h.shift()),t.join("")},convertViewMode:function(n){switch(n){case 4:case"decade":n=4;break;case 3:case"year":n=3;break;case 2:case"month":n=2;break;case 1:case"day":n=1;break;case 0:case"hour":n=0}return n},headTemplate:'<thead><tr><th class="prev"><i class="{iconType} {leftArrow}"/><\/th><th colspan="5" class="switch"><\/th><th class="next"><i class="{iconType} {rightArrow}"/><\/th><\/tr><\/thead>',headTemplateV3:'<thead><tr><th class="prev"><span class="{iconType} {leftArrow}"><\/span> <\/th><th colspan="5" class="switch"><\/th><th class="next"><span class="{iconType} {rightArrow}"><\/span> <\/th><\/tr><\/thead>',contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><tr><th colspan="7" class="clear"><\/th><\/tr><\/tfoot>'};i.template='<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datetimepicker-hours"><table class=" table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datetimepicker-days"><table class=" table-condensed">'+i.headTemplate+"<tbody><\/tbody>"+i.footTemplate+'<\/table><\/div><div class="datetimepicker-months"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datetimepicker-years"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+"<\/table><\/div><\/div>";i.templateV3='<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">'+i.headTemplateV3+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datetimepicker-hours"><table class=" table-condensed">'+i.headTemplateV3+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datetimepicker-days"><table class=" table-condensed">'+i.headTemplateV3+"<tbody><\/tbody>"+i.footTemplate+'<\/table><\/div><div class="datetimepicker-months"><table class="table-condensed">'+i.headTemplateV3+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datetimepicker-years"><table class="table-condensed">'+i.headTemplateV3+i.contTemplate+i.footTemplate+"<\/table><\/div><\/div>";n.fn.datetimepicker.DPGlobal=i;n.fn.datetimepicker.noConflict=function(){return n.fn.datetimepicker=e,this};n(document).on("focus.datetimepicker.data-api click.datetimepicker.data-api",'[data-provide="datetimepicker"]',function(t){var i=n(this);i.data("datetimepicker")||(t.preventDefault(),i.datetimepicker("show"))});n(function(){n('[data-provide="datetimepicker-inline"]').datetimepicker()})}),function(n){n.fn.datetimepicker.dates.fr={days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche"],daysShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam","Dim"],daysMin:["D","L","Ma","Me","J","V","S","D"],months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthsShort:["Jan","Fev","Mar","Avr","Mai","Jui","Jul","Aou","Sep","Oct","Nov","Dec"],today:"Aujourd'hui",suffix:[],meridiem:["am","pm"],weekStart:1,format:"dd/mm/yyyy hh:ii"}}(jQuery),function(n){var h={},c={},l={},a={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0,txtSelectedEnable:!1},data:{key:{isParent:"isParent",children:"children",name:"name",title:"",url:"url",icon:"icon"},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},"async":{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post",dataType:"text",headers:{},xhrFields:{},url:"",autoParam:[],otherParam:[],dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},y=function(n){var i=t.getRoot(n);i||(i={},t.setRoot(n,i));t.nodeChildren(n,i,[]);i.expandTriggerFlag=!1;i.curSelectedList=[];i.noSelection=!0;i.createdNodes=[];i.zId=0;i._ver=(new Date).getTime()},p=function(n){var i=t.getCache(n);i||(i={},t.setCache(n,i));i.nodes=[];i.doms=[]},w=function(n){var t=n.treeObj,r=i.event;t.bind(r.NODECREATED,function(t,i,r){u.apply(n.callback.onNodeCreated,[t,i,r])});t.bind(r.CLICK,function(t,i,r,f,e){u.apply(n.callback.onClick,[i,r,f,e])});t.bind(r.EXPAND,function(t,i,r){u.apply(n.callback.onExpand,[t,i,r])});t.bind(r.COLLAPSE,function(t,i,r){u.apply(n.callback.onCollapse,[t,i,r])});t.bind(r.ASYNC_SUCCESS,function(t,i,r,f){u.apply(n.callback.onAsyncSuccess,[t,i,r,f])});t.bind(r.ASYNC_ERROR,function(t,i,r,f,e,o){u.apply(n.callback.onAsyncError,[t,i,r,f,e,o])});t.bind(r.REMOVE,function(t,i,r){u.apply(n.callback.onRemove,[t,i,r])});t.bind(r.SELECTED,function(t,i,r){u.apply(n.callback.onSelected,[i,r])});t.bind(r.UNSELECTED,function(t,i,r){u.apply(n.callback.onUnSelected,[i,r])})},b=function(n){var r=n.treeObj,t=i.event;r.unbind(t.NODECREATED).unbind(t.CLICK).unbind(t.EXPAND).unbind(t.COLLAPSE).unbind(t.ASYNC_SUCCESS).unbind(t.ASYNC_ERROR).unbind(t.REMOVE).unbind(t.SELECTED).unbind(t.UNSELECTED)},k=function(n){var c=n.target,f=t.getSetting(n.data.treeId),e="",a=null,o="",h="",v=null,l=null,r=null,y;if(u.eqs(n.type,"mousedown")?h="mousedown":u.eqs(n.type,"mouseup")?h="mouseup":u.eqs(n.type,"contextmenu")?h="contextmenu":u.eqs(n.type,"click")?u.eqs(c.tagName,"span")&&c.getAttribute("treeNode"+i.id.SWITCH)!==null?(e=u.getNodeMainDom(c).id,o="switchNode"):(r=u.getMDom(f,c,[{tagName:"a",attrName:"treeNode"+i.id.A}]),r&&(e=u.getNodeMainDom(r).id,o="clickNode")):u.eqs(n.type,"dblclick")&&(h="dblclick",r=u.getMDom(f,c,[{tagName:"a",attrName:"treeNode"+i.id.A}]),r&&(e=u.getNodeMainDom(r).id,o="switchNode")),h.length>0&&e.length==0&&(r=u.getMDom(f,c,[{tagName:"a",attrName:"treeNode"+i.id.A}]),r&&(e=u.getNodeMainDom(r).id)),e.length>0){a=t.getNodeCache(f,e);switch(o){case"switchNode":y=t.nodeIsParent(f,a);y?u.eqs(n.type,"click")||u.eqs(n.type,"dblclick")&&u.apply(f.view.dblClickExpand,[f.treeId,a],f.view.dblClickExpand)?v=s.onSwitchNode:o="":o="";break;case"clickNode":v=s.onClickNode}}switch(h){case"mousedown":l=s.onZTreeMousedown;break;case"mouseup":l=s.onZTreeMouseup;break;case"dblclick":l=s.onZTreeDblclick;break;case"contextmenu":l=s.onZTreeContextmenu}return{stop:!1,node:a,nodeEventType:o,nodeEventCallback:v,treeEventType:h,treeEventCallback:l}},d=function(n,i,r,f,e,o){var h,c,s;r&&(h=t.getRoot(n),c=t.nodeChildren(n,r),r.level=i,r.tId=n.treeId+"_"+ ++h.zId,r.parentTId=f?f.tId:null,r.open=typeof r.open=="string"?u.eqs(r.open,"true"):!!r.open,s=t.nodeIsParent(n,r),u.isArray(c)?(t.nodeIsParent(n,r,!0),r.zAsync=!0):(s=t.nodeIsParent(n,r,s),r.open=s&&!n.async.enable?r.open:!1,r.zAsync=!s),r.isFirstNode=e,r.isLastNode=o,r.getParentNode=function(){return t.getNodeCache(n,r.parentTId)},r.getPreNode=function(){return t.getPreNode(n,r)},r.getNextNode=function(){return t.getNextNode(n,r)},r.getIndex=function(){return t.getNodeIndex(n,r)},r.getPath=function(){return t.getNodePath(n,r)},r.isAjaxing=!1,t.fixPIdKeyValue(n,r))},e={bind:[w],unbind:[b],caches:[p],nodes:[d],proxys:[k],roots:[y],beforeA:[],afterA:[],innerBeforeA:[],innerAfterA:[],zTreeTools:[]},t={addNodeCache:function(n,i){t.getCache(n).nodes[t.getNodeCacheId(i.tId)]=i},getNodeCacheId:function(n){return n.substring(n.lastIndexOf("_")+1)},addAfterA:function(n){e.afterA.push(n)},addBeforeA:function(n){e.beforeA.push(n)},addInnerAfterA:function(n){e.innerAfterA.push(n)},addInnerBeforeA:function(n){e.innerBeforeA.push(n)},addInitBind:function(n){e.bind.push(n)},addInitUnBind:function(n){e.unbind.push(n)},addInitCache:function(n){e.caches.push(n)},addInitNode:function(n){e.nodes.push(n)},addInitProxy:function(n,t){t?e.proxys.splice(0,0,n):e.proxys.push(n)},addInitRoot:function(n){e.roots.push(n)},addNodesData:function(n,i,u,f){var e=t.nodeChildren(n,i),o;e?u>=e.length&&(u=-1):(e=t.nodeChildren(n,i,[]),u=-1);e.length>0&&u===0?(e[0].isFirstNode=!1,r.setNodeLineIcos(n,e[0])):e.length>0&&u<0&&(e[e.length-1].isLastNode=!1,r.setNodeLineIcos(n,e[e.length-1]));t.nodeIsParent(n,i,!0);u<0?t.nodeChildren(n,i,e.concat(f)):(o=[u,0].concat(f),e.splice.apply(e,o))},addSelectedNode:function(n,i){var r=t.getRoot(n);t.isSelectedNode(n,i)||r.curSelectedList.push(i)},addCreatedNode:function(n,i){if(!!n.callback.onNodeCreated||!!n.view.addDiyDom){var r=t.getRoot(n);r.createdNodes.push(i)}},addZTreeTools:function(n){e.zTreeTools.push(n)},exSetting:function(t){n.extend(!0,a,t)},fixPIdKeyValue:function(n,t){n.data.simpleData.enable&&(t[n.data.simpleData.pIdKey]=t.parentTId?t.getParentNode()[n.data.simpleData.idKey]:n.data.simpleData.rootPId)},getAfterA:function(){for(var n=0,t=e.afterA.length;n<t;n++)e.afterA[n].apply(this,arguments)},getBeforeA:function(){for(var n=0,t=e.beforeA.length;n<t;n++)e.beforeA[n].apply(this,arguments)},getInnerAfterA:function(){for(var n=0,t=e.innerAfterA.length;n<t;n++)e.innerAfterA[n].apply(this,arguments)},getInnerBeforeA:function(){for(var n=0,t=e.innerBeforeA.length;n<t;n++)e.innerBeforeA[n].apply(this,arguments)},getCache:function(n){return l[n.treeId]},getNodeIndex:function(n,i){var f,u,r,e;if(!i)return null;for(f=i.parentTId?i.getParentNode():t.getRoot(n),u=t.nodeChildren(n,f),r=0,e=u.length-1;r<=e;r++)if(u[r]===i)return r;return-1},getNextNode:function(n,i){var e,u,r,f;if(!i)return null;for(e=i.parentTId?i.getParentNode():t.getRoot(n),u=t.nodeChildren(n,e),r=0,f=u.length-1;r<=f;r++)if(u[r]===i)return r==f?null:u[r+1];return null},getNodeByParam:function(n,i,r,u){var f,s,e,h,o;if(!i||!r)return null;for(f=0,s=i.length;f<s;f++){if(e=i[f],e[r]==u)return i[f];if(h=t.nodeChildren(n,e),o=t.getNodeByParam(n,h,r,u),o)return o}return null},getNodeCache:function(n,i){if(!i)return null;var r=l[n.treeId].nodes[t.getNodeCacheId(i)];return r?r:null},getNodePath:function(n,t){if(!t)return null;var i;return i=t.parentTId?t.getParentNode().getPath():[],i&&i.push(t),i},getNodes:function(n){return t.nodeChildren(n,t.getRoot(n))},getNodesByParam:function(n,i,r,u){var f,e,s,o,h;if(!i||!r)return[];for(f=[],e=0,s=i.length;e<s;e++)o=i[e],o[r]==u&&f.push(o),h=t.nodeChildren(n,o),f=f.concat(t.getNodesByParam(n,h,r,u));return f},getNodesByParamFuzzy:function(n,i,r,u){var f,e,s,o,h;if(!i||!r)return[];for(f=[],u=u.toLowerCase(),e=0,s=i.length;e<s;e++)o=i[e],typeof o[r]=="string"&&i[e][r].toLowerCase().indexOf(u)>-1&&f.push(o),h=t.nodeChildren(n,o),f=f.concat(t.getNodesByParamFuzzy(n,h,r,u));return f},getNodesByFilter:function(n,i,r,f,e){var o,c,l,s,a,h;if(!i)return f?null:[];for(o=f?null:[],c=0,l=i.length;c<l;c++){if(s=i[c],u.apply(r,[s,e],!1)){if(f)return s;o.push(s)}if(a=t.nodeChildren(n,s),h=t.getNodesByFilter(n,a,r,f,e),f&&!!h)return h;o=f?h:o.concat(h)}return o},getPreNode:function(n,i){var f,u,r,e;if(!i)return null;for(f=i.parentTId?i.getParentNode():t.getRoot(n),u=t.nodeChildren(n,f),r=0,e=u.length;r<e;r++)if(u[r]===i)return r==0?null:u[r-1];return null},getRoot:function(n){return n?c[n.treeId]:null},getRoots:function(){return c},getSetting:function(n){return h[n]},getSettings:function(){return h},getZTreeTools:function(n){var t=this.getRoot(this.getSetting(n));return t?t.treeTools:null},initCache:function(){for(var n=0,t=e.caches.length;n<t;n++)e.caches[n].apply(this,arguments)},initNode:function(){for(var n=0,t=e.nodes.length;n<t;n++)e.nodes[n].apply(this,arguments)},initRoot:function(){for(var n=0,t=e.roots.length;n<t;n++)e.roots[n].apply(this,arguments)},isSelectedNode:function(n,i){for(var u=t.getRoot(n),r=0,f=u.curSelectedList.length;r<f;r++)if(i===u.curSelectedList[r])return!0;return!1},nodeChildren:function(n,t,i){if(!t)return null;var r=n.data.key.children;return typeof i!="undefined"&&(t[r]=i),t[r]},nodeIsParent:function(n,t,i){if(!t)return!1;var r=n.data.key.isParent;return typeof i!="undefined"?(typeof i=="string"&&(i=u.eqs(i,"true")),i=!!i,t[r]=i):t[r]=typeof t[r]=="string"?u.eqs(t[r],"true"):!!t[r],t[r]},nodeName:function(n,t,i){var r=n.data.key.name;return typeof i!="undefined"&&(t[r]=i),""+t[r]},nodeTitle:function(n,t){var i=n.data.key.title===""?n.data.key.name:n.data.key.title;return""+t[i]},removeNodeCache:function(n,i){var u=t.nodeChildren(n,i),r,f;if(u)for(r=0,f=u.length;r<f;r++)t.removeNodeCache(n,u[r]);t.getCache(n).nodes[t.getNodeCacheId(i.tId)]=null},removeSelectedNode:function(n,r){for(var f=t.getRoot(n),u=0,e=f.curSelectedList.length;u<e;u++)r!==f.curSelectedList[u]&&t.getNodeCache(n,f.curSelectedList[u].tId)||(f.curSelectedList.splice(u,1),n.treeObj.trigger(i.event.UNSELECTED,[n.treeId,r]),u--,e--)},setCache:function(n,t){l[n.treeId]=t},setRoot:function(n,t){c[n.treeId]=t},setZTreeTools:function(){for(var n=0,t=e.zTreeTools.length;n<t;n++)e.zTreeTools[n].apply(this,arguments)},transformToArrayFormat:function(n,i){function s(i){r.push(i);var u=t.nodeChildren(n,i);u&&(r=r.concat(t.transformToArrayFormat(n,u)))}var r,f,e,o;if(!i)return[];if(r=[],u.isArray(i))for(f=0,e=i.length;f<e;f++)o=i[f],s(o);else s(i);return r},transformTozTreeFormat:function(n,i){var r,f,e=n.data.simpleData.idKey,l=n.data.simpleData.pIdKey,h,c,o,s;if(!e||e==""||!i)return[];if(u.isArray(i)){for(h=[],c={},r=0,f=i.length;r<f;r++)c[i[r][e]]=i[r];for(r=0,f=i.length;r<f;r++)o=c[i[r][l]],o&&i[r][e]!=i[r][l]?(s=t.nodeChildren(n,o),s||(s=t.nodeChildren(n,o,[])),s.push(i[r])):h.push(i[r]);return h}return[i]}},o={bindEvent:function(){for(var n=0,t=e.bind.length;n<t;n++)e.bind[n].apply(this,arguments)},unbindEvent:function(){for(var n=0,t=e.unbind.length;n<t;n++)e.unbind[n].apply(this,arguments)},bindTree:function(n){var i={treeId:n.treeId},t=n.treeObj;n.view.txtSelectedEnable||t.bind("selectstart",s.onSelectStart).css({"-moz-user-select":"-moz-none"});t.bind("click",i,o.proxy);t.bind("dblclick",i,o.proxy);t.bind("mouseover",i,o.proxy);t.bind("mouseout",i,o.proxy);t.bind("mousedown",i,o.proxy);t.bind("mouseup",i,o.proxy);t.bind("contextmenu",i,o.proxy)},unbindTree:function(n){var t=n.treeObj;t.unbind("selectstart",s.onSelectStart).unbind("click",o.proxy).unbind("dblclick",o.proxy).unbind("mouseover",o.proxy).unbind("mouseout",o.proxy).unbind("mousedown",o.proxy).unbind("mouseup",o.proxy).unbind("contextmenu",o.proxy)},doProxy:function(){for(var t,i=[],n=0,r=e.proxys.length;n<r;n++)if(t=e.proxys[n].apply(this,arguments),i.push(t),t.stop)break;return i},proxy:function(n){var c=t.getSetting(n.data.treeId),f,h,i;if(!u.uCanDo(c,n))return!0;var e=o.doProxy(n),r=!0,s=!1;for(f=0,h=e.length;f<h;f++)i=e[f],i.nodeEventCallback&&(s=!0,r=i.nodeEventCallback.apply(i,[n,i.node])&&r),i.treeEventCallback&&(s=!0,r=i.treeEventCallback.apply(i,[n,i.node])&&r);return r}},s={onSwitchNode:function(n,i){var f=t.getSetting(n.data.treeId);if(i.open){if(u.apply(f.callback.beforeCollapse,[f.treeId,i],!0)==!1)return!0;t.getRoot(f).expandTriggerFlag=!0;r.switchNode(f,i)}else{if(u.apply(f.callback.beforeExpand,[f.treeId,i],!0)==!1)return!0;t.getRoot(f).expandTriggerFlag=!0;r.switchNode(f,i)}return!0},onClickNode:function(n,f){var e=t.getSetting(n.data.treeId),o=e.view.autoCancelSelected&&(n.ctrlKey||n.metaKey)&&t.isSelectedNode(e,f)?0:e.view.autoCancelSelected&&(n.ctrlKey||n.metaKey)&&e.view.selectedMulti?2:1;return u.apply(e.callback.beforeClick,[e.treeId,f,o],!0)==!1?!0:(o===0?r.cancelPreSelectedNode(e,f):r.selectNode(e,f,o===2),e.treeObj.trigger(i.event.CLICK,[n,e.treeId,f,o]),!0)},onZTreeMousedown:function(n,i){var r=t.getSetting(n.data.treeId);return u.apply(r.callback.beforeMouseDown,[r.treeId,i],!0)&&u.apply(r.callback.onMouseDown,[n,r.treeId,i]),!0},onZTreeMouseup:function(n,i){var r=t.getSetting(n.data.treeId);return u.apply(r.callback.beforeMouseUp,[r.treeId,i],!0)&&u.apply(r.callback.onMouseUp,[n,r.treeId,i]),!0},onZTreeDblclick:function(n,i){var r=t.getSetting(n.data.treeId);return u.apply(r.callback.beforeDblClick,[r.treeId,i],!0)&&u.apply(r.callback.onDblClick,[n,r.treeId,i]),!0},onZTreeContextmenu:function(n,i){var r=t.getSetting(n.data.treeId);return u.apply(r.callback.beforeRightClick,[r.treeId,i],!0)&&u.apply(r.callback.onRightClick,[n,r.treeId,i]),typeof r.callback.onRightClick!="function"},onSelectStart:function(n){var t=n.originalEvent.srcElement.nodeName.toLowerCase();return t==="input"||t==="textarea"}},u={apply:function(n,t,i){return typeof n=="function"?n.apply(v,t?t:[]):i},canAsync:function(n,i){var r=t.nodeChildren(n,i),u=t.nodeIsParent(n,i);return n.async.enable&&i&&u&&!(i.zAsync||r&&r.length>0)},clone:function(n){var i,t;if(n===null)return null;i=u.isArray(n)?[]:{};for(t in n)i[t]=n[t]instanceof Date?new Date(n[t].getTime()):typeof n[t]=="object"?u.clone(n[t]):n[t];return i},eqs:function(n,t){return n.toLowerCase()===t.toLowerCase()},isArray:function(n){return Object.prototype.toString.apply(n)==="[object Array]"},isElement:function(n){return typeof HTMLElement=="object"?n instanceof HTMLElement:n&&typeof n=="object"&&n!==null&&n.nodeType===1&&typeof n.nodeName=="string"},$:function(t,i,r){return!i||typeof i=="string"||(r=i,i=""),typeof t=="string"?n(t,r?r.treeObj.get(0).ownerDocument:null):n("#"+t.tId+i,r?r.treeObj:null)},getMDom:function(n,t,i){if(!t)return null;while(t&&t.id!==n.treeId){for(var r=0,f=i.length;t.tagName&&r<f;r++)if(u.eqs(t.tagName,i[r].tagName)&&t.getAttribute(i[r].attrName)!==null)return t;t=t.parentNode}return null},getNodeMainDom:function(t){return n(t).parent("li").get(0)||n(t).parentsUntil("li").parent().get(0)},isChildOrSelf:function(t,i){return n(t).closest("#"+i).length>0},uCanDo:function(){return!0}},r={addNodes:function(n,e,o,s,h){var c=t.nodeIsParent(n,e);if(!n.data.keep.leaf||!e||c)if(u.isArray(s)||(s=[s]),n.data.simpleData.enable&&(s=t.transformTozTreeFormat(n,s)),e){var l=f(e,i.id.SWITCH,n),a=f(e,i.id.ICON,n),v=f(e,i.id.UL,n);e.open||(r.replaceSwitchClass(e,l,i.folder.CLOSE),r.replaceIcoClass(e,a,i.folder.CLOSE),e.open=!1,v.css({display:"none"}));t.addNodesData(n,e,o,s);r.createNodes(n,e.level+1,s,e,o);h||r.expandCollapseParentNode(n,e,!0)}else t.addNodesData(n,t.getRoot(n),o,s),r.createNodes(n,0,s,null,o)},appendNodes:function(n,i,u,f,e,o,s){var l,w,h;if(!u)return[];var c=[],k=f?f:t.getRoot(n),a=t.nodeChildren(n,k),y,p;for((!a||e>=a.length-u.length)&&(e=-1),l=0,w=u.length;l<w;l++){h=u[l];o&&(y=(e===0||a.length==u.length)&&l==0,p=e<0&&l==u.length-1,t.initNode(n,i,h,f,y,p,s),t.addNodeCache(n,h));var d=t.nodeIsParent(n,h),b=[],v=t.nodeChildren(n,h);v&&v.length>0&&(b=r.appendNodes(n,i+1,v,h,-1,o,s&&h.open));s&&(r.makeDOMNodeMainBefore(c,n,h),r.makeDOMNodeLine(c,n,h),t.getBeforeA(n,h,c),r.makeDOMNodeNameBefore(c,n,h),t.getInnerBeforeA(n,h,c),r.makeDOMNodeIcon(c,n,h),t.getInnerAfterA(n,h,c),r.makeDOMNodeNameAfter(c,n,h),t.getAfterA(n,h,c),d&&h.open&&r.makeUlHtml(n,h,c,b.join("")),r.makeDOMNodeMainAfter(c,n,h),t.addCreatedNode(n,h))}return c},appendParentULDom:function(n,u){var s=[],e=f(u,n),o,h,c;e.get(0)||!u.parentTId||(r.appendParentULDom(n,u.getParentNode()),e=f(u,n));o=f(u,i.id.UL,n);o.get(0)&&o.remove();h=t.nodeChildren(n,u);c=r.appendNodes(n,u.level+1,h,u,-1,!1,!0);r.makeUlHtml(n,u,s,c.join(""));e.append(s.join(""))},asyncNode:function(e,o,s,h){var c,y,g=t.nodeIsParent(e,o),d,v,p,l,w,a,b,k;if(o&&!g)return u.apply(h),!1;if(o&&o.isAjaxing)return!1;if(u.apply(e.callback.beforeAsync,[e.treeId,o],!0)==!1)return u.apply(h),!1;for(o&&(o.isAjaxing=!0,d=f(o,i.id.ICON,e),d.attr({style:"","class":i.className.BUTTON+" "+i.className.ICO_LOADING})),v={},p=u.apply(e.async.autoParam,[e.treeId,o],e.async.autoParam),c=0,y=p.length;o&&c<y;c++)l=p[c].split("="),w=l,l.length>1&&(w=l[1],l=l[0]),v[w]=o[l];if(a=u.apply(e.async.otherParam,[e.treeId,o],e.async.otherParam),u.isArray(a))for(c=0,y=a.length;c<y;c+=2)v[a[c]]=a[c+1];else for(b in a)v[b]=a[b];return k=t.getRoot(e)._ver,n.ajax({contentType:e.async.contentType,cache:!1,type:e.async.type,url:u.apply(e.async.url,[e.treeId,o],e.async.url),data:e.async.contentType.indexOf("application/json")>-1?JSON.stringify(v):v,dataType:e.async.dataType,headers:e.async.headers,xhrFields:e.async.xhrFields,success:function(n){if(k==t.getRoot(e)._ver){var f=[];try{f=n&&n.length!=0?typeof n=="string"?eval("("+n+")"):n:[]}catch(c){f=n}o&&(o.isAjaxing=null,o.zAsync=!0);r.setNodeLineIcos(e,o);f&&f!==""?(f=u.apply(e.async.dataFilter,[e.treeId,o,f],f),r.addNodes(e,o,-1,!f?[]:u.clone(f),!!s)):r.addNodes(e,o,-1,[],!!s);e.treeObj.trigger(i.event.ASYNC_SUCCESS,[e.treeId,o,n]);u.apply(h)}},error:function(n,u,f){k==t.getRoot(e)._ver&&(o&&(o.isAjaxing=null),r.setNodeLineIcos(e,o),e.treeObj.trigger(i.event.ASYNC_ERROR,[e.treeId,o,n,u,f]))}}),!0},cancelPreSelectedNode:function(n,r,u){for(var s=t.getRoot(n).curSelectedList,o,e=s.length-1;e>=0;e--)if(o=s[e],r===o||!r&&(!u||u!==o))if(f(o,i.id.A,n).removeClass(i.node.CURSELECTED),r){t.removeSelectedNode(n,r);break}else s.splice(e,1),n.treeObj.trigger(i.event.UNSELECTED,[n.treeId,o])},createNodeCallback:function(n){var r,f;if(!!n.callback.onNodeCreated||!!n.view.addDiyDom)for(r=t.getRoot(n);r.createdNodes.length>0;)f=r.createdNodes.shift(),u.apply(n.view.addDiyDom,[n.treeId,f]),!n.callback.onNodeCreated||n.treeObj.trigger(i.event.NODECREATED,[n.treeId,f])},createNodes:function(u,e,o,s,h){var y,p,l,c,a,v;o&&o.length!=0&&(y=t.getRoot(u),p=!s||s.open||!!f(t.nodeChildren(u,s)[0],u).get(0),y.createdNodes=[],l=r.appendNodes(u,e,o,s,h,!0,p),s?(v=f(s,i.id.UL,u),v.get(0)&&(c=v)):c=u.treeObj,c&&(h>=0&&(a=c.children()[h]),h>=0&&a?n(a).before(l.join("")):c.append(l.join(""))),r.createNodeCallback(u))},destroy:function(n){n&&(t.initCache(n),t.initRoot(n),o.unbindTree(n),o.unbindEvent(n),n.treeObj.empty(),delete h[n.treeId])},expandCollapseNode:function(n,e,o,s,h){var p=t.getRoot(n),w,a,c,v;if(!e){u.apply(h,[]);return}if(c=t.nodeChildren(n,e),v=t.nodeIsParent(n,e),p.expandTriggerFlag&&(a=h,w=function(){a&&a();e.open?n.treeObj.trigger(i.event.EXPAND,[n.treeId,e]):n.treeObj.trigger(i.event.COLLAPSE,[n.treeId,e])},h=w,p.expandTriggerFlag=!1),!e.open&&v&&(!f(e,i.id.UL,n).get(0)||c&&c.length>0&&!f(c[0],n).get(0))&&(r.appendParentULDom(n,e),r.createNodeCallback(n)),e.open==o){u.apply(h,[]);return}var l=f(e,i.id.UL,n),b=f(e,i.id.SWITCH,n),y=f(e,i.id.ICON,n);v?(e.open=!e.open,e.iconOpen&&e.iconClose&&y.attr("style",r.makeNodeIcoStyle(n,e)),e.open?(r.replaceSwitchClass(e,b,i.folder.OPEN),r.replaceIcoClass(e,y,i.folder.OPEN),s==!1||n.view.expandSpeed==""?(l.show(),u.apply(h,[])):c&&c.length>0?l.slideDown(n.view.expandSpeed,h):(l.show(),u.apply(h,[]))):(r.replaceSwitchClass(e,b,i.folder.CLOSE),r.replaceIcoClass(e,y,i.folder.CLOSE),s!=!1&&n.view.expandSpeed!=""&&c&&c.length>0?l.slideUp(n.view.expandSpeed,h):(l.hide(),u.apply(h,[])))):u.apply(h,[])},expandCollapseParentNode:function(n,t,i,u,f){if(t){if(t.parentTId)r.expandCollapseNode(n,t,i,u);else{r.expandCollapseNode(n,t,i,u,f);return}t.parentTId&&r.expandCollapseParentNode(n,t.getParentNode(),i,u,f)}},expandCollapseSonNode:function(n,i,u,f,e){var c=t.getRoot(n),s=i?t.nodeChildren(n,i):t.nodeChildren(n,c),l=i?!1:f,a=t.getRoot(n).expandTriggerFlag,o,h;if(t.getRoot(n).expandTriggerFlag=!1,s)for(o=0,h=s.length;o<h;o++)s[o]&&r.expandCollapseSonNode(n,s[o],u,l);t.getRoot(n).expandTriggerFlag=a;r.expandCollapseNode(n,i,u,f,e)},isSelectedNode:function(n,i){if(!i)return!1;for(var u=t.getRoot(n).curSelectedList,r=u.length-1;r>=0;r--)if(i===u[r])return!0;return!1},makeDOMNodeIcon:function(n,u,f){var e=t.nodeName(u,f),o=u.view.nameIsHTML?e:e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");n.push("<span id='",f.tId,i.id.ICON,"' title='' treeNode",i.id.ICON," class='",r.makeNodeIcoClass(u,f),"' style='",r.makeNodeIcoStyle(u,f),"'><\/span><span id='",f.tId,i.id.SPAN,"' class='",i.className.NAME,"'>",o,"<\/span>")},makeDOMNodeLine:function(n,t,u){n.push("<span id='",u.tId,i.id.SWITCH,"' title='' class='",r.makeNodeLineClass(t,u),"' treeNode",i.id.SWITCH,"><\/span>")},makeDOMNodeMainAfter:function(n){n.push("<\/li>")},makeDOMNodeMainBefore:function(n,t,r){n.push("<li id='",r.tId,"' class='",i.className.LEVEL,r.level,"' tabindex='0' hidefocus='true' treenode>")},makeDOMNodeNameAfter:function(n){n.push("<\/a>")},makeDOMNodeNameBefore:function(n,f,e){var s=t.nodeTitle(f,e),o=r.makeNodeUrl(f,e),h=r.makeNodeFontCss(f,e),c=[];for(var l in h)c.push(l,":",h[l],";");n.push("<a id='",e.tId,i.id.A,"' class='",i.className.LEVEL,e.level,"' treeNode",i.id.A,' onclick="',e.click||"",'" ',o!=null&&o.length>0?"href='"+o+"'":""," target='",r.makeNodeTarget(e),"' style='",c.join(""),"'");u.apply(f.view.showTitle,[f.treeId,e],f.view.showTitle)&&s&&n.push("title='",s.replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"'");n.push(">")},makeNodeFontCss:function(n,t){var i=u.apply(n.view.fontCss,[n.treeId,t],n.view.fontCss);return i&&typeof i!="function"?i:{}},makeNodeIcoClass:function(n,r){var u=["ico"],f;return r.isAjaxing||(f=t.nodeIsParent(n,r),u[0]=(r.iconSkin?r.iconSkin+"_":"")+u[0],f?u.push(r.open?i.folder.OPEN:i.folder.CLOSE):u.push(i.folder.DOCU)),i.className.BUTTON+" "+u.join("_")},makeNodeIcoStyle:function(n,i){var r=[],e,f;return i.isAjaxing||(e=t.nodeIsParent(n,i),f=e&&i.iconOpen&&i.iconClose?i.open?i.iconOpen:i.iconClose:i[n.data.key.icon],f&&r.push("background:url(",f,") 0 0 no-repeat;"),n.view.showIcon!=!1&&u.apply(n.view.showIcon,[n.treeId,i],!0)||r.push("display:none;")),r.join("")},makeNodeLineClass:function(n,u){var f=[];return n.view.showLine?u.level==0&&u.isFirstNode&&u.isLastNode?f.push(i.line.ROOT):u.level==0&&u.isFirstNode?f.push(i.line.ROOTS):u.isLastNode?f.push(i.line.BOTTOM):f.push(i.line.CENTER):f.push(i.line.NOLINE),t.nodeIsParent(n,u)?f.push(u.open?i.folder.OPEN:i.folder.CLOSE):f.push(i.folder.DOCU),r.makeNodeLineClassEx(u)+f.join("_")},makeNodeLineClassEx:function(n){return i.className.BUTTON+" "+i.className.LEVEL+n.level+" "+i.className.SWITCH+" "},makeNodeTarget:function(n){return n.target||"_blank"},makeNodeUrl:function(n,t){var i=n.data.key.url;return t[i]?t[i]:null},makeUlHtml:function(n,t,u,f){u.push("<ul id='",t.tId,i.id.UL,"' class='",i.className.LEVEL,t.level," ",r.makeUlLineClass(n,t),"' style='display:",t.open?"block":"none","'>");u.push(f);u.push("<\/ul>")},makeUlLineClass:function(n,t){return n.view.showLine&&!t.isLastNode?i.line.LINE:""},removeChildNodes:function(n,u){var e,o,s,h,c;if(u&&(e=t.nodeChildren(n,u),e)){for(o=0,s=e.length;o<s;o++)t.removeNodeCache(n,e[o]);t.removeSelectedNode(n);delete u[n.data.key.children];n.data.keep.parent?f(u,i.id.UL,n).empty():(t.nodeIsParent(n,u,!1),u.open=!1,h=f(u,i.id.SWITCH,n),c=f(u,i.id.ICON,n),r.replaceSwitchClass(u,h,i.folder.DOCU),r.replaceIcoClass(u,c,i.folder.DOCU),f(u,i.id.UL,n).remove())}},scrollIntoView:function(n,t){if(t){if(typeof Element=="undefined"||typeof HTMLElement=="undefined"){var i=n.treeObj.get(0).getBoundingClientRect(),r=t.getBoundingClientRect();(r.top<i.top||r.bottom>i.bottom||r.right>i.right||r.left<i.left)&&t.scrollIntoView();return}Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(n){"use strict";function i(n,t){return{start:n,length:t,end:n+t}}function e(t,i){return!1===n||i.start<t.end&&t.start<i.end?Math.max(t.end-i.length,Math.min(i.start,t.start)):(t.start+t.end-i.length)/2}function r(n,t){return{x:n,y:t,translate:function(i,u){return r(n+i,t+u)}}}function o(n,t){while(n)t=t.translate(n.offsetLeft,n.offsetTop),n=n.offsetParent;return t}for(var u=o(this,r(0,0)),s=r(this.offsetWidth,this.offsetHeight),t=this.parentNode,f;t instanceof HTMLElement;)f=o(t,r(t.clientLeft,t.clientTop)),t.scrollLeft=e(i(u.x-f.x,s.x),i(t.scrollLeft,t.clientWidth)),t.scrollTop=e(i(u.y-f.y,s.y),i(t.scrollTop,t.clientHeight)),u=u.translate(-t.scrollLeft,-t.scrollTop),t=t.parentNode});t.scrollIntoViewIfNeeded()}},setFirstNode:function(n,i){var r=t.nodeChildren(n,i);r.length>0&&(r[0].isFirstNode=!0)},setLastNode:function(n,i){var r=t.nodeChildren(n,i);r.length>0&&(r[r.length-1].isLastNode=!0)},removeNode:function(n,u){var y=t.getRoot(n),e=u.parentTId?u.getParentNode():y,o,c,p,l,h,v,a,s,w;if(u.isFirstNode=!1,u.isLastNode=!1,u.getPreNode=function(){return null},u.getNextNode=function(){return null},t.getNodeCache(n,u.tId)){for(f(u,n).remove(),t.removeNodeCache(n,u),t.removeSelectedNode(n,u),o=t.nodeChildren(n,e),c=0,p=o.length;c<p;c++)if(o[c].tId==u.tId){o.splice(c,1);break}r.setFirstNode(n,e);r.setLastNode(n,e);a=o.length;n.data.keep.parent||a!=0?n.view.showLine&&a>0&&(s=o[a-1],l=f(s,i.id.UL,n),h=f(s,i.id.SWITCH,n),v=f(s,i.id.ICON,n),e==y?o.length==1?r.replaceSwitchClass(s,h,i.line.ROOT):(w=f(o[0],i.id.SWITCH,n),r.replaceSwitchClass(o[0],w,i.line.ROOTS),r.replaceSwitchClass(s,h,i.line.BOTTOM)):r.replaceSwitchClass(s,h,i.line.BOTTOM),l.removeClass(i.line.LINE)):(t.nodeIsParent(n,e,!1),e.open=!1,delete e[n.data.key.children],l=f(e,i.id.UL,n),h=f(e,i.id.SWITCH,n),v=f(e,i.id.ICON,n),r.replaceSwitchClass(e,h,i.folder.DOCU),r.replaceIcoClass(e,v,i.folder.DOCU),l.css("display","none"))}},replaceIcoClass:function(n,t,r){var f,u;if(t&&!n.isAjaxing&&(f=t.attr("class"),f!=undefined)){u=f.split("_");switch(r){case i.folder.OPEN:case i.folder.CLOSE:case i.folder.DOCU:u[u.length-1]=r}t.attr("class",u.join("_"))}},replaceSwitchClass:function(n,t,u){var e,f;if(t&&(e=t.attr("class"),e!=undefined)){f=e.split("_");switch(u){case i.line.ROOT:case i.line.ROOTS:case i.line.CENTER:case i.line.BOTTOM:case i.line.NOLINE:f[0]=r.makeNodeLineClassEx(n)+u;break;case i.folder.OPEN:case i.folder.CLOSE:case i.folder.DOCU:f[1]=u}t.attr("class",f.join("_"));u!==i.folder.DOCU?t.removeAttr("disabled"):t.attr("disabled","disabled")}},selectNode:function(n,u,e){e||r.cancelPreSelectedNode(n,null,u);f(u,i.id.A,n).addClass(i.node.CURSELECTED);t.addSelectedNode(n,u);n.treeObj.trigger(i.event.SELECTED,[n.treeId,u])},setNodeFontCss:function(n,t){var e=f(t,i.id.A,n),u=r.makeNodeFontCss(n,t);u&&e.css(u)},setNodeLineIcos:function(n,u){if(u){var e=f(u,i.id.SWITCH,n),s=f(u,i.id.UL,n),o=f(u,i.id.ICON,n),h=r.makeUlLineClass(n,u);h.length==0?s.removeClass(i.line.LINE):s.addClass(h);e.attr("class",r.makeNodeLineClass(n,u));t.nodeIsParent(n,u)?e.removeAttr("disabled"):e.attr("disabled","disabled");o.removeAttr("style");o.attr("style",r.makeNodeIcoStyle(n,u));o.attr("class",r.makeNodeIcoClass(n,u))}},setNodeName:function(n,r){var o=t.nodeTitle(n,r),e=f(r,i.id.SPAN,n),s;e.empty();n.view.nameIsHTML?e.html(t.nodeName(n,r)):e.text(t.nodeName(n,r));u.apply(n.view.showTitle,[n.treeId,r],n.view.showTitle)&&(s=f(r,i.id.A,n),s.attr("title",o?o:""))},setNodeTarget:function(n,t){var u=f(t,i.id.A,n);u.attr("target",r.makeNodeTarget(t))},setNodeUrl:function(n,t){var e=f(t,i.id.A,n),u=r.makeNodeUrl(n,t);u==null||u.length==0?e.removeAttr("href"):e.attr("href",u)},switchNode:function(n,t){if(t.open||!u.canAsync(n,t))r.expandCollapseNode(n,t,!t.open);else if(n.async.enable){if(!r.asyncNode(n,t)){r.expandCollapseNode(n,t,!t.open);return}}else t&&r.expandCollapseNode(n,t,!t.open)}};n.fn.zTree={consts:{className:{BUTTON:"button",LEVEL:"level",ICO_LOADING:"ico_loading",SWITCH:"switch",NAME:"node_name"},event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error",REMOVE:"ztree_remove",SELECTED:"ztree_selected",UNSELECTED:"ztree_unselected"},id:{A:"_a",ICON:"_ico",SPAN:"_span",SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_z:{tools:u,view:r,event:o,data:t},getZTreeObj:function(n){var i=t.getZTreeTools(n);return i?i:null},destroy:function(n){if(!!n&&n.length>0)r.destroy(t.getSetting(n));else for(var i in h)r.destroy(h[i])},init:function(e,s,c){var l=u.clone(a),v,y,p;return n.extend(!0,l,s),l.treeId=e.attr("id"),l.treeObj=e,l.treeObj.empty(),h[l.treeId]=l,typeof document.body.style.maxHeight=="undefined"&&(l.view.expandSpeed=""),t.initRoot(l),v=t.getRoot(l),c=c?u.clone(u.isArray(c)?c:[c]):[],l.data.simpleData.enable?t.nodeChildren(l,v,t.transformTozTreeFormat(l,c)):t.nodeChildren(l,v,c),t.initCache(l),o.unbindTree(l),o.bindTree(l),o.unbindEvent(l),o.bindEvent(l),y={setting:l,addNodes:function(n,i,f,e){function c(){r.addNodes(l,n,i,s,e==!0)}var h,o,s;return(n||(n=null),h=t.nodeIsParent(l,n),n&&!h&&l.data.keep.leaf)?null:(o=parseInt(i,10),isNaN(o)?(e=!!f,f=i,i=-1):i=o,!f)?null:(s=u.clone(u.isArray(f)?f:[f]),u.canAsync(l,n)?r.asyncNode(l,n,e,c):c(),s)},cancelSelectedNode:function(n){r.cancelPreSelectedNode(l,n)},destroy:function(){r.destroy(l)},expandAll:function(n){return n=!!n,r.expandCollapseSonNode(l,null,n,!0),n},expandNode:function(n,i,e,o,s){function h(){var t=f(n,l).get(0);t&&o!==!1&&r.scrollIntoView(l,t)}return!n||!t.nodeIsParent(l,n)?null:(i!==!0&&i!==!1&&(i=!n.open),s=!!s,s&&i&&u.apply(l.callback.beforeExpand,[l.treeId,n],!0)==!1)?null:s&&!i&&u.apply(l.callback.beforeCollapse,[l.treeId,n],!0)==!1?null:(i&&n.parentTId&&r.expandCollapseParentNode(l,n.getParentNode(),i,!1),i===n.open&&!e)?null:(t.getRoot(l).expandTriggerFlag=s,!u.canAsync(l,n)&&e?r.expandCollapseSonNode(l,n,i,!0,h):(n.open=!i,r.switchNode(this.setting,n),h()),i)},getNodes:function(){return t.getNodes(l)},getNodeByParam:function(n,i,r){return n?t.getNodeByParam(l,r?t.nodeChildren(l,r):t.getNodes(l),n,i):null},getNodeByTId:function(n){return t.getNodeCache(l,n)},getNodesByParam:function(n,i,r){return n?t.getNodesByParam(l,r?t.nodeChildren(l,r):t.getNodes(l),n,i):null},getNodesByParamFuzzy:function(n,i,r){return n?t.getNodesByParamFuzzy(l,r?t.nodeChildren(l,r):t.getNodes(l),n,i):null},getNodesByFilter:function(n,i,r,u){return(i=!!i,!n||typeof n!="function")?i?null:[]:t.getNodesByFilter(l,r?t.nodeChildren(l,r):t.getNodes(l),n,i,u)},getNodeIndex:function(n){var u,r,i,f;if(!n)return null;for(u=n.parentTId?n.getParentNode():t.getRoot(l),r=t.nodeChildren(l,u),i=0,f=r.length;i<f;i++)if(r[i]==n)return i;return-1},getSelectedNodes:function(){for(var i=[],r=t.getRoot(l).curSelectedList,n=0,u=r.length;n<u;n++)i.push(r[n]);return i},isSelectedNode:function(n){return t.isSelectedNode(l,n)},reAsyncChildNodesPromise:function(n,t,i){return new Promise(function(r,u){try{y.reAsyncChildNodes(n,t,i,function(){r(n)})}catch(f){u(f)}})},reAsyncChildNodes:function(n,u,e,o){var s,h,c,a,v;if(this.setting.async.enable){if(s=!n,s&&(n=t.getRoot(l)),u=="refresh"){for(h=t.nodeChildren(l,n),c=0,a=h?h.length:0;c<a;c++)t.removeNodeCache(l,h[c]);t.removeSelectedNode(l);t.nodeChildren(l,n,[]);s?this.setting.treeObj.empty():(v=f(n,i.id.UL,l),v.empty())}r.asyncNode(this.setting,s?null:n,!!e,o)}},refresh:function(){this.setting.treeObj.empty();var n=t.getRoot(l),i=t.nodeChildren(l,n);t.initRoot(l);t.nodeChildren(l,n,i);t.initCache(l);r.createNodes(l,0,t.nodeChildren(l,n),null,-1)},removeChildNodes:function(n){if(!n)return null;var i=t.nodeChildren(l,n);return r.removeChildNodes(l,n),i?i:null},removeNode:function(n,t){n&&((t=!!t,t&&u.apply(l.callback.beforeRemove,[l.treeId,n],!0)==!1)||(r.removeNode(l,n),t&&this.setting.treeObj.trigger(i.event.REMOVE,[l.treeId,n])))},selectNode:function(n,t,i){function e(){if(!i){var t=f(n,l).get(0);r.scrollIntoView(l,t)}}if(n&&u.uCanDo(l)){if(t=l.view.selectedMulti&&t,n.parentTId)r.expandCollapseParentNode(l,n.getParentNode(),!0,!1,e);else if(!i)try{f(n,l).focus().blur()}catch(o){}r.selectNode(l,n,t)}},transformTozTreeNodes:function(n){return t.transformTozTreeFormat(l,n)},transformToArray:function(n){return t.transformToArrayFormat(l,n)},updateNode:function(n){if(n){var t=f(n,l);t.get(0)&&u.uCanDo(l)&&(r.setNodeName(l,n),r.setNodeTarget(l,n),r.setNodeUrl(l,n),r.setNodeLineIcos(l,n),r.setNodeFontCss(l,n))}}},v.treeTools=y,t.setZTreeTools(l,y),p=t.nodeChildren(l,v),p&&p.length>0?r.createNodes(l,0,p,null,-1):l.async.enable&&l.async.url&&l.async.url!==""&&r.asyncNode(l),y}};var v=n.fn.zTree,f=u.$,i=v.consts}(jQuery),function(n){var o={event:{CHECK:"ztree_check"},id:{CHECK:"_check"},checkbox:{STYLE:"checkbox",DEFAULT:"chk",DISABLED:"disable",FALSE:"false",TRUE:"true",FULL:"full",PART:"part",FOCUS:"focus"},radio:{STYLE:"radio",TYPE_ALL:"all",TYPE_LEVEL:"level"}},a={check:{enable:!1,autoCheckTrigger:!1,chkStyle:o.checkbox.STYLE,nocheckInherit:!1,chkDisabledInherit:!1,radioType:o.radio.TYPE_LEVEL,chkboxType:{Y:"ps",N:"ps"}},data:{key:{checked:"checked"}},callback:{beforeCheck:null,onCheck:null}},v=function(n){var i=t.getRoot(n);i.radioCheckedList=[]},y=function(){},p=function(n){var t=n.treeObj,i=r.event;t.bind(i.CHECK,function(t,i,r,f){t.srcEvent=i;u.apply(n.callback.onCheck,[t,r,f])})},w=function(n){var t=n.treeObj,i=r.event;t.unbind(i.CHECK)},b=function(n){var i=n.target,o=t.getSetting(n.data.treeId),e="",c=null,f="",h=null;if(u.eqs(n.type,"mouseover")?o.check.enable&&u.eqs(i.tagName,"span")&&i.getAttribute("treeNode"+r.id.CHECK)!==null&&(e=u.getNodeMainDom(i).id,f="mouseoverCheck"):u.eqs(n.type,"mouseout")?o.check.enable&&u.eqs(i.tagName,"span")&&i.getAttribute("treeNode"+r.id.CHECK)!==null&&(e=u.getNodeMainDom(i).id,f="mouseoutCheck"):u.eqs(n.type,"click")&&o.check.enable&&u.eqs(i.tagName,"span")&&i.getAttribute("treeNode"+r.id.CHECK)!==null&&(e=u.getNodeMainDom(i).id,f="checkNode"),e.length>0){c=t.getNodeCache(o,e);switch(f){case"checkNode":h=s.onCheckNode;break;case"mouseoverCheck":h=s.onMouseoverCheck;break;case"mouseoutCheck":h=s.onMouseoutCheck}}return{stop:f==="checkNode",node:c,nodeEventType:f,nodeEventCallback:h,treeEventType:"",treeEventCallback:null}},k=function(n,i,f,e){var o,s;f&&(o=t.nodeChecked(n,f),f.checkedOld=o,typeof f.nocheck=="string"&&(f.nocheck=u.eqs(f.nocheck,"true")),f.nocheck=!!f.nocheck||n.check.nocheckInherit&&e&&!!e.nocheck,typeof f.chkDisabled=="string"&&(f.chkDisabled=u.eqs(f.chkDisabled,"true")),f.chkDisabled=!!f.chkDisabled||n.check.chkDisabledInherit&&e&&!!e.chkDisabled,typeof f.halfCheck=="string"&&(f.halfCheck=u.eqs(f.halfCheck,"true")),f.halfCheck=!!f.halfCheck,f.check_Child_State=-1,f.check_Focus=!1,f.getCheckStatus=function(){return t.getCheckStatus(n,f)},n.check.chkStyle==r.radio.STYLE&&n.check.radioType==r.radio.TYPE_ALL&&o&&(s=t.getRoot(n),s.radioCheckedList.push(f)))},d=function(n,u,f){n.check.enable&&(t.makeChkFlag(n,u),f.push("<span ID='",u.tId,r.id.CHECK,"' class='",i.makeChkClass(n,u),"' treeNode",r.id.CHECK,u.nocheck===!0?" style='display:none;'":"","><\/span>"))},g=function(n,e){e.checkNode=function(e,o,s,h){var c=t.nodeChecked(n,e),l;if(e.chkDisabled!==!0){if(o!==!0&&o!==!1&&(o=!c),h=!!h,c!==o||s){if(h&&u.apply(this.setting.callback.beforeCheck,[this.setting.treeId,e],!0)==!1)return}else return;u.uCanDo(this.setting)&&this.setting.check.enable&&e.nocheck!==!0&&(t.nodeChecked(n,e,o),l=f(e,r.id.CHECK,this.setting),(s||this.setting.check.chkStyle===r.radio.STYLE)&&i.checkNodeRelation(this.setting,e),i.setChkClass(this.setting,l,e),i.repairParentChkClassWithSelf(this.setting,e),h&&this.setting.treeObj.trigger(r.event.CHECK,[null,this.setting.treeId,e]))}};e.checkAllNodes=function(n){i.repairAllChk(this.setting,!!n)};e.getCheckedNodes=function(i){i=i!==!1;var r=t.nodeChildren(n,t.getRoot(this.setting));return t.getTreeCheckedNodes(this.setting,r,i)};e.getChangeCheckedNodes=function(){var i=t.nodeChildren(n,t.getRoot(this.setting));return t.getTreeChangeCheckedNodes(this.setting,i)};e.setChkDisabled=function(n,t,r,u){t=!!t;r=!!r;u=!!u;i.repairSonChkDisabled(this.setting,n,t,u);i.repairParentChkDisabled(this.setting,n.getParentNode(),t,r)};var o=e.updateNode;e.updateNode=function(n,t){var s,h;(o&&o.apply(e,arguments),n&&this.setting.check.enable)&&(s=f(n,this.setting),s.get(0)&&u.uCanDo(this.setting)&&(h=f(n,r.id.CHECK,this.setting),(t==!0||this.setting.check.chkStyle===r.radio.STYLE)&&i.checkNodeRelation(this.setting,n),i.setChkClass(this.setting,h,n),i.repairParentChkClassWithSelf(this.setting,n)))}},nt={getRadioCheckedList:function(n){for(var r=t.getRoot(n).radioCheckedList,i=0,u=r.length;i<u;i++)t.getNodeCache(n,r[i].tId)||(r.splice(i,1),i--,u--);return r},getCheckStatus:function(n,i){if(!n.check.enable||i.nocheck||i.chkDisabled)return null;var u=t.nodeChecked(n,i);return{checked:u,half:i.halfCheck?i.halfCheck:n.check.chkStyle==r.radio.STYLE?i.check_Child_State===2:u?i.check_Child_State>-1&&i.check_Child_State<2:i.check_Child_State>0}},getTreeCheckedNodes:function(n,i,u,f){var s,o,h;if(!i)return[];for(s=u&&n.check.chkStyle==r.radio.STYLE&&n.check.radioType==r.radio.TYPE_ALL,f=f?f:[],o=0,h=i.length;o<h;o++){var e=i[o],c=t.nodeChildren(n,e),l=t.nodeChecked(n,e);if(e.nocheck!==!0&&e.chkDisabled!==!0&&l==u&&(f.push(e),s))break;if(t.getTreeCheckedNodes(n,c,u,f),s&&f.length>0)break}return f},getTreeChangeCheckedNodes:function(n,i,r){var f,e;if(!i)return[];for(r=r?r:[],f=0,e=i.length;f<e;f++){var u=i[f],o=t.nodeChildren(n,u),s=t.nodeChecked(n,u);u.nocheck!==!0&&u.chkDisabled!==!0&&s!=u.checkedOld&&r.push(u);t.getTreeChangeCheckedNodes(n,o,r)}return r},makeChkFlag:function(n,i){var f,s,o,h;if(i){if(f=-1,s=t.nodeChildren(n,i),s)for(o=0,h=s.length;o<h;o++){var u=s[o],c=t.nodeChecked(n,u),e=-1;if(n.check.chkStyle==r.radio.STYLE)if(e=u.nocheck===!0||u.chkDisabled===!0?u.check_Child_State:u.halfCheck===!0?2:c?2:u.check_Child_State>0?2:0,e==2){f=2;break}else e==0&&(f=0);else if(n.check.chkStyle==r.checkbox.STYLE)if(e=u.nocheck===!0||u.chkDisabled===!0?u.check_Child_State:u.halfCheck===!0?1:c?u.check_Child_State===-1||u.check_Child_State===2?2:1:u.check_Child_State>0?1:0,e===1){f=1;break}else if(e===2&&f>-1&&o>0&&e!==f){f=1;break}else if(f===2&&e>-1&&e<2){f=1;break}else e>-1&&(f=e)}i.check_Child_State=f}}},s={onCheckNode:function(n,e){var o,s,h;return e.chkDisabled===!0?!1:(o=t.getSetting(n.data.treeId),u.apply(o.callback.beforeCheck,[o.treeId,e],!0)==!1)?!0:(s=t.nodeChecked(o,e),t.nodeChecked(o,e,!s),i.checkNodeRelation(o,e),h=f(e,r.id.CHECK,o),i.setChkClass(o,h,e),i.repairParentChkClassWithSelf(o,e),o.treeObj.trigger(r.event.CHECK,[n,o.treeId,e]),!0)},onMouseoverCheck:function(n,u){if(u.chkDisabled===!0)return!1;var e=t.getSetting(n.data.treeId),o=f(u,r.id.CHECK,e);return u.check_Focus=!0,i.setChkClass(e,o,u),!0},onMouseoutCheck:function(n,u){if(u.chkDisabled===!0)return!1;var e=t.getSetting(n.data.treeId),o=f(u,r.id.CHECK,e);return u.check_Focus=!1,i.setChkClass(e,o,u),!0}},tt={checkNodeRelation:function(n,u){var e,o,l,v=r.radio,c=t.nodeChecked(n,u),s,y,a,h;if(n.check.chkStyle==v.STYLE){if(s=t.getRadioCheckedList(n),c)if(n.check.radioType==v.TYPE_ALL){for(o=s.length-1;o>=0;o--)e=s[o],a=t.nodeChecked(n,e),a&&e!=u&&(t.nodeChecked(n,e,!1),s.splice(o,1),i.setChkClass(n,f(e,r.id.CHECK,n),e),e.parentTId!=u.parentTId&&i.repairParentChkClassWithSelf(n,e));s.push(u)}else for(y=u.parentTId?u.getParentNode():t.getRoot(n),h=t.nodeChildren(n,y),o=0,l=h.length;o<l;o++)e=h[o],a=t.nodeChecked(n,e),a&&e!=u&&(t.nodeChecked(n,e,!1),i.setChkClass(n,f(e,r.id.CHECK,n),e));else if(n.check.radioType==v.TYPE_ALL)for(o=0,l=s.length;o<l;o++)if(u==s[o]){s.splice(o,1);break}}else h=t.nodeChildren(n,u),c&&(!h||h.length==0||n.check.chkboxType.Y.indexOf("s")>-1)&&i.setSonNodeCheckBox(n,u,!0),!c&&(!h||h.length==0||n.check.chkboxType.N.indexOf("s")>-1)&&i.setSonNodeCheckBox(n,u,!1),c&&n.check.chkboxType.Y.indexOf("p")>-1&&i.setParentNodeCheckBox(n,u,!0),!c&&n.check.chkboxType.N.indexOf("p")>-1&&i.setParentNodeCheckBox(n,u,!1)},makeChkClass:function(n,i){var u=r.checkbox,s=r.radio,e="",o=t.nodeChecked(n,i),f;return e=i.chkDisabled===!0?u.DISABLED:i.halfCheck?u.PART:n.check.chkStyle==s.STYLE?i.check_Child_State<1?u.FULL:u.PART:o?i.check_Child_State===2||i.check_Child_State===-1?u.FULL:u.PART:i.check_Child_State<1?u.FULL:u.PART,f=n.check.chkStyle+"_"+(o?u.TRUE:u.FALSE)+"_"+e,f=i.check_Focus&&i.chkDisabled!==!0?f+"_"+u.FOCUS:f,r.className.BUTTON+" "+u.DEFAULT+" "+f},repairAllChk:function(n,u){var s,o,e,h,f;if(n.check.enable&&n.check.chkStyle===r.checkbox.STYLE)for(s=t.getRoot(n),o=t.nodeChildren(n,s),e=0,h=o.length;e<h;e++)f=o[e],f.nocheck!==!0&&f.chkDisabled!==!0&&t.nodeChecked(n,f,u),i.setSonNodeCheckBox(n,f,u)},repairChkClass:function(n,u){if(u&&(t.makeChkFlag(n,u),u.nocheck!==!0)){var e=f(u,r.id.CHECK,n);i.setChkClass(n,e,u)}},repairParentChkClass:function(n,t){if(t&&t.parentTId){var r=t.getParentNode();i.repairChkClass(n,r);i.repairParentChkClass(n,r)}},repairParentChkClassWithSelf:function(n,r){if(r){var u=t.nodeChildren(n,r);u&&u.length>0?i.repairParentChkClass(n,u[0]):i.repairParentChkClass(n,r)}},repairSonChkDisabled:function(n,r,u,f){var e,o,s,h;if(r&&(r.chkDisabled!=u&&(r.chkDisabled=u),i.repairChkClass(n,r),e=t.nodeChildren(n,r),e&&f))for(o=0,s=e.length;o<s;o++)h=e[o],i.repairSonChkDisabled(n,h,u,f)},repairParentChkDisabled:function(n,t,r,u){t&&(t.chkDisabled!=r&&u&&(t.chkDisabled=r),i.repairChkClass(n,t),i.repairParentChkDisabled(n,t.getParentNode(),r,u))},setChkClass:function(n,t,r){t&&(r.nocheck===!0?t.hide():t.show(),t.attr("class",i.makeChkClass(n,r)))},setParentNodeCheckBox:function(n,u,e,o){var y=f(u,r.id.CHECK,n),c,l,h,a,s,v;if(o||(o=u),t.makeChkFlag(n,u),u.nocheck!==!0&&u.chkDisabled!==!0&&(t.nodeChecked(n,u,e),i.setChkClass(n,y,u),n.check.autoCheckTrigger&&u!=o&&n.treeObj.trigger(r.event.CHECK,[null,n.treeId,u])),u.parentTId){if(c=!0,!e)for(l=t.nodeChildren(n,u.getParentNode()),h=0,a=l.length;h<a;h++)if(s=l[h],v=t.nodeChecked(n,s),s.nocheck!==!0&&s.chkDisabled!==!0&&v||(s.nocheck===!0||s.chkDisabled===!0)&&s.check_Child_State>0){c=!1;break}c&&i.setParentNodeCheckBox(n,u.getParentNode(),e,o)}},setSonNodeCheckBox:function(n,u,e,o){var a,h,s,c,v,l;if(u){if(a=f(u,r.id.CHECK,n),o||(o=u),h=!1,s=t.nodeChildren(n,u),s)for(c=0,v=s.length;c<v;c++)l=s[c],i.setSonNodeCheckBox(n,l,e,o),l.chkDisabled===!0&&(h=!0);u!=t.getRoot(n)&&u.chkDisabled!==!0&&(h&&u.nocheck!==!0&&t.makeChkFlag(n,u),u.nocheck!==!0&&u.chkDisabled!==!0?(t.nodeChecked(n,u,e),h||(u.check_Child_State=s&&s.length>0?e?2:0:-1)):u.check_Child_State=-1,i.setChkClass(n,a,u),n.check.autoCheckTrigger&&u!=o&&u.nocheck!==!0&&u.chkDisabled!==!0&&n.treeObj.trigger(r.event.CHECK,[null,n.treeId,u]))}}},it={tools:{},view:tt,event:{},data:nt},h,c,l;n.extend(!0,n.fn.zTree.consts,o);n.extend(!0,n.fn.zTree._z,it);var e=n.fn.zTree,u=e._z.tools,r=e.consts,i=e._z.view,t=e._z.data,rt=e._z.event,f=u.$;t.nodeChecked=function(n,t,i){if(!t)return!1;var r=n.data.key.checked;return typeof i!="undefined"?(typeof i=="string"&&(i=u.eqs(i,"true")),i=!!i,t[r]=i):t[r]=typeof t[r]=="string"?u.eqs(t[r],"true"):!!t[r],t[r]};t.exSetting(a);t.addInitBind(p);t.addInitUnBind(w);t.addInitCache(y);t.addInitNode(k);t.addInitProxy(b,!0);t.addInitRoot(v);t.addBeforeA(d);t.addZTreeTools(g);h=i.createNodes;i.createNodes=function(n,t,r,u){(h&&h.apply(i,arguments),r)&&i.repairParentChkClassWithSelf(n,u)};c=i.removeNode;i.removeNode=function(n,t){var r=t.getParentNode();(c&&c.apply(i,arguments),t&&r)&&(i.repairChkClass(n,r),i.repairParentChkClass(n,r))};l=i.appendNodes;i.appendNodes=function(n,r,u,f){var e="";return l&&(e=l.apply(i,arguments)),f&&t.makeChkFlag(n,f),e}}(jQuery),function(n){var e={event:{DRAG:"ztree_drag",DROP:"ztree_drop",RENAME:"ztree_rename",DRAGMOVE:"ztree_dragmove"},id:{EDIT:"_edit",INPUT:"_input",REMOVE:"_remove"},move:{TYPE_INNER:"inner",TYPE_PREV:"prev",TYPE_NEXT:"next"},node:{CURSELECTED_EDIT:"curSelectedNode_Edit",TMPTARGET_TREE:"tmpTargetzTree",TMPTARGET_NODE:"tmpTargetNode"}},p=function(n){var t=r.getRoot(n),i=r.getRoots();t.curEditNode=null;t.curEditInput=null;t.curHoverNode=null;t.dragFlag=0;t.dragNodeShowBefore=[];t.dragMaskList=[];i.showHoverDom=!0},w=function(){},b=function(n){var i=n.treeObj,r=t.event;i.bind(r.RENAME,function(t,i,r,f){u.apply(n.callback.onRename,[t,i,r,f])});i.bind(r.DRAG,function(t,i,r,f){u.apply(n.callback.onDrag,[i,r,f])});i.bind(r.DRAGMOVE,function(t,i,r,f){u.apply(n.callback.onDragMove,[i,r,f])});i.bind(r.DROP,function(t,i,r,f,e,o,s){u.apply(n.callback.onDrop,[i,r,f,e,o,s])})},k=function(n){var i=n.treeObj,r=t.event;i.unbind(r.RENAME);i.unbind(r.DRAG);i.unbind(r.DRAGMOVE);i.unbind(r.DROP)},d=function(n){var c=n.target,o=r.getSetting(n.data.treeId),a=n.relatedTarget,f="",l=null,e="",h=null,i=null;if(u.eqs(n.type,"mouseover")?(i=u.getMDom(o,c,[{tagName:"a",attrName:"treeNode"+t.id.A}]),i&&(f=u.getNodeMainDom(i).id,e="hoverOverNode")):u.eqs(n.type,"mouseout")?(i=u.getMDom(o,a,[{tagName:"a",attrName:"treeNode"+t.id.A}]),i||(f="remove",e="hoverOutNode")):u.eqs(n.type,"mousedown")&&(i=u.getMDom(o,c,[{tagName:"a",attrName:"treeNode"+t.id.A}]),i&&(f=u.getNodeMainDom(i).id,e="mousedownNode")),f.length>0){l=r.getNodeCache(o,f);switch(e){case"mousedownNode":h=s.onMousedownNode;break;case"hoverOverNode":h=s.onHoverOverNode;break;case"hoverOutNode":h=s.onHoverOutNode}}return{stop:!1,node:l,nodeEventType:e,nodeEventCallback:h,treeEventType:"",treeEventCallback:null}},g=function(n,t,i){i&&(i.isHover=!1,i.editNameFlag=!1)},nt=function(n,e){e.cancelEditName=function(n){var t=r.getRoot(this.setting);t.curEditNode&&i.cancelCurEditNode(this.setting,n?n:null,!0)};e.copyNode=function(f,e,o,s){var c,l,h;if(!e||(c=r.nodeIsParent(n,f),f&&!c&&this.setting.data.keep.leaf&&o===t.move.TYPE_INNER))return null;if(l=this,h=u.clone(e),f||(f=null,o=t.move.TYPE_INNER),o==t.move.TYPE_INNER){function a(){i.addNodes(l.setting,f,-1,[h],s)}u.canAsync(this.setting,f)?i.asyncNode(this.setting,f,s,a):a()}else i.addNodes(this.setting,f.parentNode,-1,[h],s),i.moveNode(this.setting,f,h,o,!1,s);return h};e.editName=function(n){n&&n.tId&&n===r.getNodeCache(this.setting,n.tId)&&(n.parentTId&&i.expandCollapseParentNode(this.setting,n.getParentNode(),!0),i.editNode(this.setting,n))};e.moveNode=function(e,o,s,h){function a(){i.moveNode(l.setting,e,o,s,!1,h)}var c,l;return o?(c=r.nodeIsParent(n,e),e&&!c&&this.setting.data.keep.leaf&&s===t.move.TYPE_INNER)?null:e&&(o.parentTId==e.tId&&s==t.move.TYPE_INNER||f(o,this.setting).find("#"+e.tId).length>0)?null:(e||(e=null),l=this,u.canAsync(this.setting,e)&&s===t.move.TYPE_INNER?i.asyncNode(this.setting,e,h,a):a(),o):o};e.setEditable=function(n){return this.setting.edit.enable=n,this.refresh()}},tt={setSonNodeLevel:function(n,t,i){var u,f,e;if(i&&(u=r.nodeChildren(n,i),i.level=t?t.level+1:0,u))for(f=0,e=u.length;f<e;f++)u[f]&&r.setSonNodeLevel(n,i,u[f])}},s={onHoverOverNode:function(n,t){var u=r.getSetting(n.data.treeId),f=r.getRoot(u);if(f.curHoverNode!=t)s.onHoverOutNode(n);f.curHoverNode=t;i.addHoverDom(u,t)},onHoverOutNode:function(n){var u=r.getSetting(n.data.treeId),t=r.getRoot(u);t.curHoverNode&&!r.isSelectedNode(u,t.curHoverNode)&&(i.removeTreeDom(u,t.curHoverNode),t.curHoverNode=null)},onMousedownNode:function(o,s){function at(o){var s,ht,d,at,dt,gt,ni,ti,ci,ct,vt,ot,ui,wt,bt,bi;if(w.dragFlag==0&&Math.abs(yt-o.clientX)<h.edit.drag.minMoveSize&&Math.abs(pt-o.clientY)<h.edit.drag.minMoveSize)return!0;if(tt.css("cursor","pointer"),w.dragFlag==0){if(u.apply(h.callback.beforeDrag,[h.treeId,l],!0)==!1)return et(o),!0;for(s=0,ht=l.length;s<ht;s++)s==0&&(w.dragNodeShowBefore=[]),d=l[s],r.nodeIsParent(h,d)&&d.open?(i.expandCollapseNode(h,d,!d.open),w.dragNodeShowBefore[d.tId]=!0):w.dragNodeShowBefore[d.tId]=!1;if(w.dragFlag=1,st.showHoverDom=!1,u.showIfameMask(h,!0),gt=!0,ni=-1,l.length>1)for(ti=l[0].parentTId?r.nodeChildren(h,l[0].getParentNode()):r.getNodes(h),dt=[],s=0,ht=ti.length;s<ht;s++)if(w.dragNodeShowBefore[ti[s].tId]!==undefined&&(gt&&ni>-1&&ni+1!==s&&(gt=!1),dt.push(ti[s]),ni=s),l.length===dt.length){l=dt;break}for(gt&&(it=l[0].getPreNode(),rt=l[l.length-1].getNextNode()),k=f("<ul class='zTreeDragUL'><\/ul>",h),s=0,ht=l.length;s<ht;s++)(d=l[s],d.editNameFlag=!1,i.selectNode(h,d,s>0),i.removeTreeDom(h,d),s>h.edit.drag.maxShowNodeNum-1)||(at=f("<li id='"+d.tId+"_tmp'><\/li>",h),at.append(f(d,t.id.A,h).clone()),at.css("padding","0"),at.children("#"+d.tId+t.id.A).removeClass(t.node.CURSELECTED),k.append(at),s==h.edit.drag.maxShowNodeNum-1&&(at=f("<li id='"+d.tId+"_moretmp'><a>  ...  <\/a><\/li>",h),k.append(at)));k.attr("id",l[0].tId+t.id.UL+"_tmp");k.addClass(h.treeObj.attr("class"));k.appendTo(tt);p=f("<span class='tmpzTreeMove_arrow'><\/span>",h);p.attr("id","zTreeMove_arrow_tmp");p.appendTo(tt);h.treeObj.trigger(t.event.DRAG,[o,h.treeId,l])}if(w.dragFlag==1){a&&p.attr("id")==o.target.id&&v&&o.clientX+b.scrollLeft()+2>n("#"+v+t.id.A,a).offset().left?(ci=n("#"+v+t.id.A,a),o.target=ci.length>0?ci.get(0):o.target):a&&(a.removeClass(t.node.TMPTARGET_TREE),v&&n("#"+v+t.id.A,a).removeClass(t.node.TMPTARGET_NODE+"_"+t.move.TYPE_PREV).removeClass(t.node.TMPTARGET_NODE+"_"+e.move.TYPE_NEXT).removeClass(t.node.TMPTARGET_NODE+"_"+e.move.TYPE_INNER));a=null;v=null;g=!1;c=h;ct=r.getSettings();for(vt in ct)ct[vt].treeId&&ct[vt].edit.enable&&ct[vt].treeId!=h.treeId&&(o.target.id==ct[vt].treeId||n(o.target).parents("#"+ct[vt].treeId).length>0)&&(g=!0,c=ct[vt]);var ii=b.scrollTop(),li=b.scrollLeft(),ri=c.treeObj.offset(),fr=c.treeObj.get(0).scrollHeight,er=c.treeObj.get(0).scrollWidth,ai=o.clientY+ii-ri.top,vi=c.treeObj.height()+ri.top-o.clientY-ii,yi=o.clientX+li-ri.left,pi=c.treeObj.width()+ri.left-o.clientX-li,ki=ai<h.edit.drag.borderMax&&ai>h.edit.drag.borderMin,di=vi<h.edit.drag.borderMax&&vi>h.edit.drag.borderMin,gi=yi<h.edit.drag.borderMax&&yi>h.edit.drag.borderMin,nr=pi<h.edit.drag.borderMax&&pi>h.edit.drag.borderMin,or=ai>h.edit.drag.borderMin&&vi>h.edit.drag.borderMin&&yi>h.edit.drag.borderMin&&pi>h.edit.drag.borderMin,sr=ki&&c.treeObj.scrollTop()<=0,hr=di&&c.treeObj.scrollTop()+c.treeObj.height()+10>=fr,cr=gi&&c.treeObj.scrollLeft()<=0,lr=nr&&c.treeObj.scrollLeft()+c.treeObj.width()+10>=er;if(o.target&&u.isChildOrSelf(o.target,c.treeId)){for(ot=o.target;ot&&ot.tagName&&!u.eqs(ot.tagName,"li")&&ot.id!=c.treeId;)ot=ot.parentNode;for(ui=!0,s=0,ht=l.length;s<ht;s++)if(d=l[s],ot.id===d.tId){ui=!1;break}else if(f(d,h).find("#"+ot.id).length>0){ui=!1;break}ui&&o.target&&u.isChildOrSelf(o.target,ot.id+t.id.A)&&(a=n(ot),v=ot.id)}if(d=l[0],or&&u.isChildOrSelf(o.target,c.treeId)&&(!a&&(o.target.id==c.treeId||sr||hr||cr||lr)&&(g||!g&&d.parentTId)&&(a=c.treeObj),ki?c.treeObj.scrollTop(c.treeObj.scrollTop()-10):di&&c.treeObj.scrollTop(c.treeObj.scrollTop()+10),gi?c.treeObj.scrollLeft(c.treeObj.scrollLeft()-10):nr&&c.treeObj.scrollLeft(c.treeObj.scrollLeft()+10),a&&a!=c.treeObj&&a.offset().left<c.treeObj.offset().left&&c.treeObj.scrollLeft(c.treeObj.scrollLeft()+a.offset().left-c.treeObj.offset().left)),k.css({top:o.clientY+ii+3+"px",left:o.clientX+li+3+"px"}),wt=0,bt=0,a&&a.attr("id")!=c.treeId){var nt=v==null?null:r.getNodeCache(c,v),wi=(o.ctrlKey||o.metaKey)&&h.edit.drag.isMove&&h.edit.drag.isCopy||!h.edit.drag.isMove&&h.edit.drag.isCopy,ar=!!(it&&v===it.tId),vr=!!(rt&&v===rt.tId),yr=d.parentTId&&d.parentTId==v,fi=(wi||!vr)&&u.apply(c.edit.drag.prev,[c.treeId,l,nt],!!c.edit.drag.prev),ei=(wi||!ar)&&u.apply(c.edit.drag.next,[c.treeId,l,nt],!!c.edit.drag.next),oi=(wi||!yr)&&!(c.data.keep.leaf&&!r.nodeIsParent(h,nt))&&u.apply(c.edit.drag.inner,[c.treeId,l,nt],!!c.edit.drag.inner);function tr(){a=null;v="";y=t.move.TYPE_INNER;p.css({display:"none"});window.zTreeMoveTimer&&(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null)}if(fi||ei||oi){var kt=n("#"+v+t.id.A,a),ir=nt.isLastNode?null:n("#"+nt.getNextNode().tId+t.id.A,a.next()),si=kt.offset().top,pr=kt.offset().left,rr=fi?oi?.25:ei?.5:1:-1,ur=ei?oi?.75:fi?.5:0:-1,hi=(o.clientY+ii-si)/kt.height();(rr==1||hi<=rr&&hi>=-.2)&&fi?(wt=1-p.width(),bt=si-p.height()/2,y=t.move.TYPE_PREV):(ur==0||hi>=ur&&hi<=1.2)&&ei?(wt=1-p.width(),bt=ir==null||r.nodeIsParent(h,nt)&&nt.open?si+kt.height()-p.height()/2:ir.offset().top-p.height()/2,y=t.move.TYPE_NEXT):oi?(wt=5-p.width(),bt=si,y=t.move.TYPE_INNER):tr();a&&(p.css({display:"block",top:bt+"px",left:pr+wt+"px"}),kt.addClass(t.node.TMPTARGET_NODE+"_"+y),(ut!=v||ft!=y)&&(lt=(new Date).getTime()),nt&&r.nodeIsParent(h,nt)&&y==t.move.TYPE_INNER&&(bi=!0,window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId!==nt.tId?(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null):window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId===nt.tId&&(bi=!1),bi&&(window.zTreeMoveTimer=setTimeout(function(){y==t.move.TYPE_INNER&&nt&&r.nodeIsParent(h,nt)&&!nt.open&&(new Date).getTime()-lt>c.edit.drag.autoOpenTime&&u.apply(c.callback.beforeDragOpen,[c.treeId,nt],!0)&&(i.switchNode(c,nt),c.edit.drag.autoExpandTrigger&&c.treeObj.trigger(t.event.EXPAND,[c.treeId,nt]))},c.edit.drag.autoOpenTime+50),window.zTreeMoveTargetNodeTId=nt.tId)))}else tr()}else y=t.move.TYPE_INNER,a&&u.apply(c.edit.drag.inner,[c.treeId,l,null],!!c.edit.drag.inner)?a.addClass(t.node.TMPTARGET_TREE):a=null,p.css({display:"none"}),window.zTreeMoveTimer&&(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null);ut=v;ft=y;h.treeObj.trigger(t.event.DRAGMOVE,[o,h.treeId,l])}return!1}function et(o){var rt,ot,it,nt,s,d;if(window.zTreeMoveTimer&&(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null),ut=null,ft=null,b.unbind("mousemove",at),b.unbind("mouseup",et),b.unbind("selectstart",vt),tt.css("cursor",""),a&&(a.removeClass(t.node.TMPTARGET_TREE),v&&n("#"+v+t.id.A,a).removeClass(t.node.TMPTARGET_NODE+"_"+t.move.TYPE_PREV).removeClass(t.node.TMPTARGET_NODE+"_"+e.move.TYPE_NEXT).removeClass(t.node.TMPTARGET_NODE+"_"+e.move.TYPE_INNER)),u.showIfameMask(h,!1),st.showHoverDom=!0,w.dragFlag!=0){for(w.dragFlag=0,rt=0,ot=l.length;rt<ot;rt++)it=l[rt],r.nodeIsParent(h,it)&&w.dragNodeShowBefore[it.tId]&&!it.open&&(i.expandCollapseNode(h,it,!it.open),delete w.dragNodeShowBefore[it.tId]);if(k&&k.remove(),p&&p.remove(),nt=(o.ctrlKey||o.metaKey)&&h.edit.drag.isMove&&h.edit.drag.isCopy||!h.edit.drag.isMove&&h.edit.drag.isCopy,!nt&&a&&v&&l[0].parentTId&&v==l[0].parentTId&&y==t.move.TYPE_INNER&&(a=null),a){if(s=v==null?null:r.getNodeCache(c,v),u.apply(h.callback.beforeDrop,[c.treeId,l,s,y,nt],!0)==!1){i.selectNodes(ct,l);return}d=nt?u.clone(l):l;function ht(){var n,r,u;if(g){if(!nt)for(n=0,r=l.length;n<r;n++)i.removeNode(h,l[n]);y==t.move.TYPE_INNER?i.addNodes(c,s,-1,d):i.addNodes(c,s.getParentNode(),y==t.move.TYPE_PREV?s.getIndex():s.getIndex()+1,d)}else if(nt&&y==t.move.TYPE_INNER)i.addNodes(c,s,-1,d);else if(nt)i.addNodes(c,s.getParentNode(),y==t.move.TYPE_PREV?s.getIndex():s.getIndex()+1,d);else if(y!=t.move.TYPE_NEXT)for(n=0,r=d.length;n<r;n++)i.moveNode(c,s,d[n],y,!1);else for(n=-1,r=d.length-1;n<r;r--)i.moveNode(c,s,d[r],y,!1);i.selectNodes(c,d);u=f(d[0],h).get(0);i.scrollIntoView(h,u);h.treeObj.trigger(t.event.DROP,[o,c.treeId,d,s,y,nt])}y==t.move.TYPE_INNER&&u.canAsync(c,s)?i.asyncNode(c,s,!1,ht):ht()}else i.selectNodes(ct,l),h.treeObj.trigger(t.event.DROP,[o,h.treeId,l,null,null,null])}}function vt(){return!1}var d,ot,h=r.getSetting(o.data.treeId),w=r.getRoot(h),st=r.getRoots();if(o.button==2||!h.edit.enable||!h.edit.drag.isCopy&&!h.edit.drag.isMove)return!0;var ht=o.target,nt=r.getRoot(h).curSelectedList,l=[];if(r.isSelectedNode(h,s))for(d=0,ot=nt.length;d<ot;d++){if(nt[d].editNameFlag&&u.eqs(ht.tagName,"input")&&ht.getAttribute("treeNode"+t.id.INPUT)!==null)return!0;if(l.push(nt[d]),l[0].parentTId!==nt[d].parentTId){l=[s];break}}else l=[s];i.editNodeBlur=!0;i.cancelCurEditNode(h);var b=n(h.treeObj.get(0).ownerDocument),tt=n(h.treeObj.get(0).ownerDocument.body),k,p,a,g=!1,c=h,ct=h,it,rt,ut=null,ft=null,v=null,y=t.move.TYPE_INNER,yt=o.clientX,pt=o.clientY,lt=(new Date).getTime();return u.uCanDo(h)&&b.bind("mousemove",at),b.bind("mouseup",et),b.bind("selectstart",vt),!0}},it={getAbs:function(n){var t=n.getBoundingClientRect(),i=document.body.scrollTop+document.documentElement.scrollTop,r=document.body.scrollLeft+document.documentElement.scrollLeft;return[t.left+r,t.top+i]},inputFocus:function(n){n.get(0)&&(n.focus(),u.setCursorPosition(n.get(0),n.val().length))},inputSelect:function(n){n.get(0)&&(n.focus(),n.select())},setCursorPosition:function(n,t){if(n.setSelectionRange)n.focus(),n.setSelectionRange(t,t);else if(n.createTextRange){var i=n.createTextRange();i.collapse(!0);i.moveEnd("character",t);i.moveStart("character",t);i.select()}},showIfameMask:function(n,t){for(var e=r.getRoot(n),o,i,h;e.dragMaskList.length>0;)e.dragMaskList[0].remove(),e.dragMaskList.shift();if(t)for(o=f("iframe",n),i=0,h=o.length;i<h;i++){var s=o.get(i),c=u.getAbs(s),l=f("<div id='zTreeMask_"+i+"' class='zTreeMask' style='top:"+c[1]+"px; left:"+c[0]+"px; width:"+s.offsetWidth+"px; height:"+s.offsetHeight+"px;'><\/div>",n);l.appendTo(f("body",n));e.dragMaskList.push(l)}}},rt={addEditBtn:function(n,r){if(!r.editNameFlag&&!(f(r,t.id.EDIT,n).length>0)&&u.apply(n.edit.showRenameBtn,[n.treeId,r],n.edit.showRenameBtn)){var e=f(r,t.id.A,n),o="<span class='"+t.className.BUTTON+" edit' id='"+r.tId+t.id.EDIT+"' title='"+u.apply(n.edit.renameTitle,[n.treeId,r],n.edit.renameTitle)+"' treeNode"+t.id.EDIT+" style='display:none;'><\/span>";e.append(o);f(r,t.id.EDIT,n).bind("click",function(){return!u.uCanDo(n)||u.apply(n.callback.beforeEditName,[n.treeId,r],!0)==!1?!1:(i.editNode(n,r),!1)}).show()}},addRemoveBtn:function(n,r){if(!r.editNameFlag&&!(f(r,t.id.REMOVE,n).length>0)&&u.apply(n.edit.showRemoveBtn,[n.treeId,r],n.edit.showRemoveBtn)){var e=f(r,t.id.A,n),o="<span class='"+t.className.BUTTON+" remove' id='"+r.tId+t.id.REMOVE+"' title='"+u.apply(n.edit.removeTitle,[n.treeId,r],n.edit.removeTitle)+"' treeNode"+t.id.REMOVE+" style='display:none;'><\/span>";e.append(o);f(r,t.id.REMOVE,n).bind("click",function(){return!u.uCanDo(n)||u.apply(n.callback.beforeRemove,[n.treeId,r],!0)==!1?!1:(i.removeNode(n,r),n.treeObj.trigger(t.event.REMOVE,[n.treeId,r]),!1)}).bind("mousedown",function(){return!0}).show()}},addHoverDom:function(n,t){r.getRoots().showHoverDom&&(t.isHover=!0,n.edit.enable&&(i.addEditBtn(n,t),i.addRemoveBtn(n,t)),u.apply(n.view.addHoverDom,[n.treeId,t]))},cancelCurEditNode:function(n,e,o){var h=r.getRoot(n),s=h.curEditNode,c,l,a;if(s){if(c=h.curEditInput,l=e?e:o?r.nodeName(n,s):c.val(),u.apply(n.callback.beforeRename,[n.treeId,s,l,o],!0)===!1)return!1;r.nodeName(n,s,l);a=f(s,t.id.A,n);a.removeClass(t.node.CURSELECTED_EDIT);c.unbind();i.setNodeName(n,s);s.editNameFlag=!1;h.curEditNode=null;h.curEditInput=null;i.selectNode(n,s,!1);n.treeObj.trigger(t.event.RENAME,[n.treeId,s,o])}return h.noSelection=!0,!0},editNode:function(n,e){var s=r.getRoot(n),o;if(i.editNodeBlur=!1,r.isSelectedNode(n,e)&&s.curEditNode==e&&e.editNameFlag){setTimeout(function(){u.inputFocus(s.curEditInput)},0);return}e.editNameFlag=!0;i.removeTreeDom(n,e);i.cancelCurEditNode(n);i.selectNode(n,e,!1);f(e,t.id.SPAN,n).html("<input type=text class='rename' id='"+e.tId+t.id.INPUT+"' treeNode"+t.id.INPUT+" >");o=f(e,t.id.INPUT,n);o.attr("value",r.nodeName(n,e));n.edit.editNameSelectAll?u.inputSelect(o):u.inputFocus(o);o.bind("blur",function(){i.editNodeBlur||i.cancelCurEditNode(n)}).bind("keydown",function(t){t.keyCode=="13"?(i.editNodeBlur=!0,i.cancelCurEditNode(n)):t.keyCode=="27"&&i.cancelCurEditNode(n,null,!0)}).bind("click",function(){return!1}).bind("dblclick",function(){return!1});f(e,t.id.A,n).addClass(t.node.CURSELECTED_EDIT);s.curEditInput=o;s.noSelection=!1;s.curEditNode=e},moveNode:function(n,u,e,o,s,h){var it=r.getRoot(n),c,nt,ft,l,b,ut,w;if(u!=e&&(!n.data.keep.leaf||!u||r.nodeIsParent(n,u)||o!=t.move.TYPE_INNER)){c=e.parentTId?e.getParentNode():it;nt=u===null||u==it;nt&&u===null&&(u=it);nt&&(o=t.move.TYPE_INNER);ft=u.parentTId?u.getParentNode():it;o!=t.move.TYPE_PREV&&o!=t.move.TYPE_NEXT&&(o=t.move.TYPE_INNER);o==t.move.TYPE_INNER&&(nt?e.parentTId=null:(r.nodeIsParent(n,u)||(r.nodeIsParent(n,u,!0),u.open=!!u.open,i.setNodeLineIcos(n,u)),e.parentTId=u.tId));nt?(l=n.treeObj,b=l):(h||o!=t.move.TYPE_INNER?h||i.expandCollapseNode(n,u.getParentNode(),!0,!1):i.expandCollapseNode(n,u,!0,!1),l=f(u,n),b=f(u,t.id.UL,n),!l.get(0)||b.get(0)||(ut=[],i.makeUlHtml(n,u,ut,""),l.append(ut.join(""))),b=f(u,t.id.UL,n));w=f(e,n);w.get(0)?l.get(0)||w.remove():w=i.appendNodes(n,e.level,[e],null,-1,!1,!0).join("");b.get(0)&&o==t.move.TYPE_INNER?b.append(w):l.get(0)&&o==t.move.TYPE_PREV?l.before(w):l.get(0)&&o==t.move.TYPE_NEXT&&l.after(w);var a,rt,k=-1,tt=0,d=null,v=null,et=e.level,y=r.nodeChildren(n,c),g=r.nodeChildren(n,ft),p=r.nodeChildren(n,u);if(e.isFirstNode)k=0,y.length>1&&(d=y[1],d.isFirstNode=!0);else if(e.isLastNode)k=y.length-1,d=y[k-1],d.isLastNode=!0;else for(a=0,rt=y.length;a<rt;a++)if(y[a].tId==e.tId){k=a;break}if(k>=0&&y.splice(k,1),o!=t.move.TYPE_INNER)for(a=0,rt=g.length;a<rt;a++)g[a].tId==u.tId&&(tt=a);if(o==t.move.TYPE_INNER?(p||(p=r.nodeChildren(n,u,[])),p.length>0&&(v=p[p.length-1],v.isLastNode=!1),p.splice(p.length,0,e),e.isLastNode=!0,e.isFirstNode=p.length==1):u.isFirstNode&&o==t.move.TYPE_PREV?(g.splice(tt,0,e),v=u,v.isFirstNode=!1,e.parentTId=u.parentTId,e.isFirstNode=!0,e.isLastNode=!1):u.isLastNode&&o==t.move.TYPE_NEXT?(g.splice(tt+1,0,e),v=u,v.isLastNode=!1,e.parentTId=u.parentTId,e.isFirstNode=!1,e.isLastNode=!0):(o==t.move.TYPE_PREV?g.splice(tt,0,e):g.splice(tt+1,0,e),e.parentTId=u.parentTId,e.isFirstNode=!1,e.isLastNode=!1),r.fixPIdKeyValue(n,e),r.setSonNodeLevel(n,e.getParentNode(),e),i.setNodeLineIcos(n,e),i.repairNodeLevelClass(n,e,et),!n.data.keep.parent&&y.length<1){r.nodeIsParent(n,c,!1);c.open=!1;var ot=f(c,t.id.UL,n),st=f(c,t.id.SWITCH,n),ht=f(c,t.id.ICON,n);i.replaceSwitchClass(c,st,t.folder.DOCU);i.replaceIcoClass(c,ht,t.folder.DOCU);ot.css("display","none")}else d&&i.setNodeLineIcos(n,d);v&&i.setNodeLineIcos(n,v);!!n.check&&n.check.enable&&i.repairChkClass&&(i.repairChkClass(n,c),i.repairParentChkClassWithSelf(n,c),c!=e.parent&&i.repairParentChkClassWithSelf(n,e));h||i.expandCollapseParentNode(n,e.getParentNode(),!0,s)}},removeEditBtn:function(n,i){f(i,t.id.EDIT,n).unbind().remove()},removeRemoveBtn:function(n,i){f(i,t.id.REMOVE,n).unbind().remove()},removeTreeDom:function(n,t){t.isHover=!1;i.removeEditBtn(n,t);i.removeRemoveBtn(n,t);u.apply(n.view.removeHoverDom,[n.treeId,t])},repairNodeLevelClass:function(n,i,r){if(r!==i.level){var o=f(i,n),s=f(i,t.id.A,n),h=f(i,t.id.UL,n),u=t.className.LEVEL+r,e=t.className.LEVEL+i.level;o.removeClass(u);o.addClass(e);s.removeClass(u);s.addClass(e);h.removeClass(u);h.addClass(e)}},selectNodes:function(n,t){for(var r=0,u=t.length;r<u;r++)i.selectNode(n,t[r],r>0)}},ut={tools:it,view:rt,event:{},data:tt},h,c,y,l,a,v;n.extend(!0,n.fn.zTree.consts,e);n.extend(!0,n.fn.zTree._z,ut);var o=n.fn.zTree,u=o._z.tools,t=o.consts,i=o._z.view,r=o._z.data,ft=o._z.event,f=u.$;r.exSetting({edit:{enable:!1,editNameSelectAll:!1,showRemoveBtn:!0,showRenameBtn:!0,removeTitle:"remove",renameTitle:"rename",drag:{autoExpandTrigger:!1,isCopy:!0,isMove:!0,prev:!0,next:!0,inner:!0,minMoveSize:5,borderMax:10,borderMin:-5,maxShowNodeNum:5,autoOpenTime:500}},view:{addHoverDom:null,removeHoverDom:null},callback:{beforeDrag:null,beforeDragOpen:null,beforeDrop:null,beforeEditName:null,beforeRename:null,onDrag:null,onDragMove:null,onDrop:null,onRename:null}});r.addInitBind(b);r.addInitUnBind(k);r.addInitCache(w);r.addInitNode(g);r.addInitProxy(d);r.addInitRoot(p);r.addZTreeTools(nt);h=i.cancelPreSelectedNode;i.cancelPreSelectedNode=function(n,t){for(var f=r.getRoot(n).curSelectedList,u=0,e=f.length;u<e;u++)if((!t||t===f[u])&&(i.removeTreeDom(n,f[u]),t))break;h&&h.apply(i,arguments)};c=i.createNodes;i.createNodes=function(n,t,r,u){(c&&c.apply(i,arguments),r)&&i.repairParentChkClassWithSelf&&i.repairParentChkClassWithSelf(n,u)};y=i.makeNodeUrl;i.makeNodeUrl=function(n){return n.edit.enable?null:y.apply(i,arguments)};l=i.removeNode;i.removeNode=function(n,t){var u=r.getRoot(n);u.curEditNode===t&&(u.curEditNode=null);l&&l.apply(i,arguments)};a=i.selectNode;i.selectNode=function(n,t){var u=r.getRoot(n);return r.isSelectedNode(n,t)&&u.curEditNode==t&&t.editNameFlag?!1:(a&&a.apply(i,arguments),i.addHoverDom(n,t),!0)};v=u.uCanDo;u.uCanDo=function(n,t){var f=r.getRoot(n);return t&&(u.eqs(t.type,"mouseover")||u.eqs(t.type,"mouseout")||u.eqs(t.type,"mousedown")||u.eqs(t.type,"mouseup"))?!0:(f.curEditNode&&(i.editNodeBlur=!1,f.curEditInput.focus()),!f.curEditNode&&(v?v.apply(i,arguments):!0))}}(jQuery),function(n){var y=function(n,i,r){var u=t.isHidden(n,r);t.isHidden(n,r,u);t.initHideForExCheck(n,r)},p=function(){},w=function(n,r){r.showNodes=function(t,r){i.showNodes(n,t,r)};r.showNode=function(t,r){t&&i.showNodes(n,[t],r)};r.hideNodes=function(t,r){i.hideNodes(n,t,r)};r.hideNode=function(t,r){t&&i.hideNodes(n,[t],r)};var u=r.checkNode;u&&(r.checkNode=function(i){i&&t.isHidden(n,i)||u.apply(r,arguments)})},b={initHideForExCheck:function(n,r){var u=t.isHidden(n,r);u&&n.check&&n.check.enable&&(typeof r._nocheck=="undefined"&&(r._nocheck=!!r.nocheck,r.nocheck=!0),r.check_Child_State=-1,i.repairParentChkClassWithSelf&&i.repairParentChkClassWithSelf(n,r))},initShowForExCheck:function(n,r){var e=t.isHidden(n,r),u;!e&&n.check&&n.check.enable&&(typeof r._nocheck!="undefined"&&(r.nocheck=r._nocheck,delete r._nocheck),i.setChkClass&&(u=f(r,v.id.CHECK,n),i.setChkClass(n,u,r)),i.repairParentChkClassWithSelf&&i.repairParentChkClassWithSelf(n,r))}},k={clearOldFirstNode:function(n,t){for(var r=t.getNextNode();!!r;){if(r.isFirstNode){r.isFirstNode=!1;i.setNodeLineIcos(n,r);break}if(r.isLastNode)break;r=r.getNextNode()}},clearOldLastNode:function(n,t,r){for(var u=t.getPreNode();!!u;){if(u.isLastNode){u.isLastNode=!1;r&&i.setNodeLineIcos(n,u);break}if(u.isFirstNode)break;u=u.getPreNode()}},makeDOMNodeMainBefore:function(n,i,r){var u=t.isHidden(i,r);n.push("<li ",u?"style='display:none;' ":"","id='",r.tId,"' class='",v.className.LEVEL,r.level,"' tabindex='0' hidefocus='true' treenode>")},showNode:function(n,i){t.isHidden(n,i,!1);t.initShowForExCheck(n,i);f(i,n).show()},showNodes:function(n,r,u){var e,o,h,f,c,l,s;if(r&&r.length!=0){for(e={},o=0,h=r.length;o<h;o++)f=r[o],e[f.parentTId]||(c=f.getParentNode(),e[f.parentTId]=c===null?t.getRoot(n):f.getParentNode()),i.showNode(n,f,u);for(l in e)s=t.nodeChildren(n,e[l]),i.setFirstNodeForShow(n,s),i.setLastNodeForShow(n,s)}},hideNode:function(n,r){t.isHidden(n,r,!0);r.isFirstNode=!1;r.isLastNode=!1;t.initHideForExCheck(n,r);i.cancelPreSelectedNode(n,r);f(r,n).hide()},hideNodes:function(n,r,u){var e,o,h,f,c,l,s;if(r&&r.length!=0){for(e={},o=0,h=r.length;o<h;o++)f=r[o],(f.isFirstNode||f.isLastNode)&&!e[f.parentTId]&&(c=f.getParentNode(),e[f.parentTId]=c===null?t.getRoot(n):f.getParentNode()),i.hideNode(n,f,u);for(l in e)s=t.nodeChildren(n,e[l]),i.setFirstNodeForHide(n,s),i.setLastNodeForHide(n,s)}},setFirstNode:function(n,r){var u=t.nodeChildren(n,r),f=t.isHidden(n,u[0],!1);u.length>0&&!f?u[0].isFirstNode=!0:u.length>0&&i.setFirstNodeForHide(n,u)},setLastNode:function(n,r){var u=t.nodeChildren(n,r),f=t.isHidden(n,u[0]);u.length>0&&!f?u[u.length-1].isLastNode=!0:u.length>0&&i.setLastNodeForHide(n,u)},setFirstNodeForHide:function(n,r){for(var u,o,f=0,e=r.length;f<e;f++){if(u=r[f],u.isFirstNode)break;if(o=t.isHidden(n,u),o||u.isFirstNode)u=null;else{u.isFirstNode=!0;i.setNodeLineIcos(n,u);break}}return u},setFirstNodeForShow:function(n,r){for(var u,f,h,o,e=0,s=r.length;e<s;e++)if(u=r[e],o=t.isHidden(n,u),f||o||!u.isFirstNode)if(f||o||u.isFirstNode)if(f&&u.isFirstNode){u.isFirstNode=!1;h=u;i.setNodeLineIcos(n,u);break}else u=null;else u.isFirstNode=!0,f=u,i.setNodeLineIcos(n,u);else{f=u;break}return{"new":f,old:h}},setLastNodeForHide:function(n,r){for(var u,e,f=r.length-1;f>=0;f--){if(u=r[f],u.isLastNode)break;if(e=t.isHidden(n,u),e||u.isLastNode)u=null;else{u.isLastNode=!0;i.setNodeLineIcos(n,u);break}}return u},setLastNodeForShow:function(n,r){for(var u,f,s,o,e=r.length-1;e>=0;e--)if(u=r[e],o=t.isHidden(n,u),f||o||!u.isLastNode)if(f||o||u.isLastNode)if(f&&u.isLastNode){u.isLastNode=!1;s=u;i.setNodeLineIcos(n,u);break}else u=null;else u.isLastNode=!0,f=u,i.setNodeLineIcos(n,u);else{f=u;break}return{"new":f,old:s}}},d={view:k,data:b},e,o,s,h,c,l,a;n.extend(!0,n.fn.zTree._z,d);var r=n.fn.zTree,u=r._z.tools,v=r.consts,i=r._z.view,t=r._z.data,g=r._z.event,f=u.$;t.isHidden=function(n,t,i){if(!t)return!1;var r=n.data.key.isHidden;return typeof i!="undefined"?(typeof i=="string"&&(i=u.eqs(i,"true")),i=!!i,t[r]=i):t[r]=typeof t[r]=="string"?u.eqs(t[r],"true"):!!t[r],t[r]};t.exSetting({data:{key:{isHidden:"isHidden"}}});t.addInitNode(y);t.addBeforeA(p);t.addZTreeTools(w);e=t.initNode;t.initNode=function(n,r,u,f,o,s,h){var l=f?f:t.getRoot(n),c=l[n.data.key.children];t.tmpHideFirstNode=i.setFirstNodeForHide(n,c);t.tmpHideLastNode=i.setLastNodeForHide(n,c);h&&(i.setNodeLineIcos(n,t.tmpHideFirstNode),i.setNodeLineIcos(n,t.tmpHideLastNode));o=t.tmpHideFirstNode===u;s=t.tmpHideLastNode===u;e&&e.apply(t,arguments);h&&s&&i.clearOldLastNode(n,u,h)};o=t.makeChkFlag;!o||(t.makeChkFlag=function(n,i){i&&t.isHidden(n,i)||o.apply(t,arguments)});s=t.getTreeCheckedNodes;!s||(t.getTreeCheckedNodes=function(n,i){if(!!i&&i.length>0){var r=i[0].getParentNode();if(!!r&&!!t.isHidden(n,r))return[]}return s.apply(t,arguments)});h=t.getTreeChangeCheckedNodes;!h||(t.getTreeChangeCheckedNodes=function(n,i){if(!!i&&i.length>0){var r=i[0].getParentNode();if(!!r&&!!t.isHidden(n,r))return[]}return h.apply(t,arguments)});c=i.expandCollapseSonNode;!c||(i.expandCollapseSonNode=function(n,r){r&&t.isHidden(n,r)||c.apply(i,arguments)});l=i.setSonNodeCheckBox;!l||(i.setSonNodeCheckBox=function(n,r){r&&t.isHidden(n,r)||l.apply(i,arguments)});a=i.repairParentChkClassWithSelf;!a||(i.repairParentChkClassWithSelf=function(n,r){r&&t.isHidden(n,r)||a.apply(i,arguments)})}(jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";function tt(){var n=t.currentScript||function(){var n=t.getElementsByTagName("script");return n.length?n[n.length-1]:!1}(),i=n?n.src.split("?")[0]:"";return i.split("/").length>0?i.split("/").slice(0,-1).join("/")+"/":""}function ft(n,t,i){for(var r=0,u=t.length;r<u;r++)i(n,t[r])}var a=!1,p=!1,g=0,nt=2e3,s=0,i=n,t=document,r=window,f=i(r),h=[],e=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||!1,v=r.cancelAnimationFrame||r.webkitCancelAnimationFrame||r.mozCancelAnimationFrame||!1,w,c,l,d;e?r.cancelAnimationFrame||(v=function(){}):(w=0,e=function(n){var t=(new Date).getTime(),i=Math.max(0,16-(t-w)),u=r.setTimeout(function(){n(t+i)},i);return w=t+i,u},v=function(n){r.clearTimeout(n)});var o=r.MutationObserver||r.WebKitMutationObserver||!1,u=Date.now||function(){return(new Date).getTime()},k={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"6px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:40,mousescrollstep:27,touchbehavior:!1,emulatetouch:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,railhoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:"auto",cursordragontouch:!1,oneaxismousemode:"auto",scriptpath:tt(),preventmultitouchscrolling:!0,disablemutationobserver:!1,enableobserver:!0,scrollbarid:!1,scrollCLass:!1},b=!1,it=function(){function s(){var u=["grab","-webkit-grab","-moz-grab"],t,f,r;for((n.ischrome&&!n.ischrome38||n.isie)&&(u=[]),t=0,f=u.length;t<f;t++)if(r=u[t],i.cursor=r,i.cursor==r)return r;return"url(https://cdnjs.cloudflare.com/ajax/libs/slider-pro/1.3.0/css/images/openhand.cur),n-resize"}if(b)return b;var u=t.createElement("DIV"),i=u.style,e=navigator.userAgent,f=navigator.platform,n={};return n.haspointerlock="pointerLockElement"in t||"webkitPointerLockElement"in t||"mozPointerLockElement"in t,n.isopera="opera"in r,n.isopera12=n.isopera&&"getUserMedia"in navigator,n.isoperamini=Object.prototype.toString.call(r.operamini)==="[object OperaMini]",n.isie="all"in t&&"attachEvent"in u&&!n.isopera,n.isieold=n.isie&&!("msInterpolationMode"in i),n.isie7=n.isie&&!n.isieold&&(!("documentMode"in t)||t.documentMode===7),n.isie8=n.isie&&"documentMode"in t&&t.documentMode===8,n.isie9=n.isie&&"performance"in r&&t.documentMode===9,n.isie10=n.isie&&"performance"in r&&t.documentMode===10,n.isie11="msRequestFullscreen"in u&&t.documentMode>=11,n.ismsedge="msCredentials"in r,n.ismozilla="MozAppearance"in i,n.iswebkit=!n.ismsedge&&"WebkitAppearance"in i,n.ischrome=n.iswebkit&&"chrome"in r,n.ischrome38=n.ischrome&&"touchAction"in i,n.ischrome22=!n.ischrome38&&n.ischrome&&n.haspointerlock,n.ischrome26=!n.ischrome38&&n.ischrome&&"transition"in i,n.cantouch="ontouchstart"in t.documentElement||"ontouchstart"in r,n.hasw3ctouch=(r.PointerEvent||!1)&&(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),n.hasmstouch=!n.hasw3ctouch&&(r.MSPointerEvent||!1),n.ismac=/^mac$/i.test(f),n.isios=n.cantouch&&/iphone|ipad|ipod/i.test(f),n.isios4=n.isios&&!("seal"in Object),n.isios7=n.isios&&"webkitHidden"in t,n.isios8=n.isios&&"hidden"in t,n.isios10=n.isios&&r.Proxy,n.isandroid=/android/i.test(e),n.haseventlistener="addEventListener"in u,n.trstyle=!1,n.hastransform=!1,n.hastranslate3d=!1,n.transitionstyle=!1,n.hastransition=!1,n.transitionend=!1,n.trstyle="transform",n.hastransform="transform"in i||function(){for(var r=["msTransform","webkitTransform","MozTransform","OTransform"],t=0,u=r.length;t<u;t++)if(i[r[t]]!==undefined){n.trstyle=r[t];break}n.hastransform=!!n.trstyle}(),n.hastransform&&(i[n.trstyle]="translate3d(1px,2px,3px)",n.hastranslate3d=/translate3d/.test(i[n.trstyle])),n.transitionstyle="transition",n.prefixstyle="",n.transitionend="transitionend",n.hastransition="transition"in i||function(){var t,f;n.transitionend=!1;var r=["webkitTransition","msTransition","MozTransition","OTransition","OTransition","KhtmlTransition"],u=["-webkit-","-ms-","-moz-","-o-","-o","-khtml-"],e=["webkitTransitionEnd","msTransitionEnd","transitionend","otransitionend","oTransitionEnd","KhtmlTransitionEnd"];for(t=0,f=r.length;t<f;t++)if(r[t]in i){n.transitionstyle=r[t];n.prefixstyle=u[t];n.transitionend=e[t];break}n.ischrome26&&(n.prefixstyle=u[1]);n.hastransition=n.transitionstyle}(),n.cursorgrabvalue=s(),n.hasmousecapture="setCapture"in u,n.hasMutationObserver=o!==!1,u=null,b=n,n},rt=function(n,c){function pt(){var n=l.doc.css(w.trstyle);return n&&n.substr(0,6)=="matrix"?n.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1}function ti(){var n=l.win,t;if("zIndex"in n)return n.zIndex();while(n.length>0){if(n[0].nodeType==9)return!1;if(t=n.css("zIndex"),!isNaN(t)&&t!==0)return parseInt(t);n=n.parent()}return!1}function ft(n,t,i){var u=n.css(t),r=parseFloat(u),f;return isNaN(r)?(r=wt[u]||0,f=r==3?i?l.win.outerHeight()-l.win.innerHeight():l.win.outerWidth()-l.win.innerWidth():1,l.isie8&&r&&(r+=1),f?r:0):r}function bt(n,t,i,u){l._bind(n,t,function(u){u=u||r.event;var f={original:u,target:u.target||u.srcElement,type:"wheel",deltaMode:u.type=="MozMousePixelScroll"?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return u.preventDefault?u.preventDefault():u.returnValue=!1,!1},stopImmediatePropagation:function(){u.stopImmediatePropagation?u.stopImmediatePropagation():u.cancelBubble=!0}};return t=="mousewheel"?(u.wheelDeltaX&&(f.deltaX=-1/40*u.wheelDeltaX),u.wheelDeltaY&&(f.deltaY=-1/40*u.wheelDeltaY),f.deltaY||f.deltaX||(f.deltaY=-1/40*u.wheelDelta)):f.deltaY=u.detail,i.call(n,f)},u)}function yt(n,t,i,r){var s,e,h,f,o;if(l.scrollrunning||(l.newscrolly=l.getScrollTop(),l.newscrollx=l.getScrollLeft(),vt=u()),s=u()-vt,vt=u(),s>350?et=1:et+=(2-et)/10,n=n*et|0,t=t*et|0,n){if(r)if(n<0){if(l.getScrollLeft()>=l.page.maxw)return!0}else if(l.getScrollLeft()<=0)return!0;e=n>0?1:-1;gt!==e&&(l.scrollmom&&l.scrollmom.stop(),l.newscrollx=l.getScrollLeft(),gt=e);l.lastdeltax-=n}if(t){if(h=function(){var n=l.getScrollTop();if(t<0){if(n>=l.page.maxh)return!0}else if(n<=0)return!0}(),h){if(y.nativeparentscrolling&&i&&!l.ispage&&!l.zoomactive)return!0;f=l.view.h>>1;l.newscrolly<-f?(l.newscrolly=-f,t=-1):l.newscrolly>l.page.maxh+f?(l.newscrolly=l.page.maxh+f,t=1):t=0}o=t>0?1:-1;dt!==o&&(l.scrollmom&&l.scrollmom.stop(),l.newscrolly=l.getScrollTop(),dt=o);l.lastdeltay-=t}(t||n)&&l.synched("relativexy",function(){var t=l.lastdeltay+l.newscrolly,n;l.lastdeltay=0;n=l.lastdeltax+l.newscrollx;l.lastdeltax=0;l.rail.drag||l.doScrollPos(n,t)})}function ni(n,t,i){var r,u,f,e;if(!i&&ht)return!0;if(n.deltaMode===0?(r=-(n.deltaX*(y.mousescrollstep/54))|0,u=-(n.deltaY*(y.mousescrollstep/54))|0):n.deltaMode===1&&(r=-(n.deltaX*y.mousescrollstep*50/80)|0,u=-(n.deltaY*y.mousescrollstep*50/80)|0),t&&y.oneaxismousemode&&r===0&&u&&(r=u,u=0,i&&(f=r<0?l.getScrollLeft()>=l.page.maxw:l.getScrollLeft()<=0,f&&(u=r,r=0))),l.isrtlmode&&(r=-r),e=yt(r,u,i,!0),e)i&&(ht=!0);else return ht=!1,n.stopImmediatePropagation(),n.preventDefault()}var l=this,tt,y,ot,rt,b,w,st,lt,wt,d,at,kt,ht,ct;if(this.version="3.7.6",this.name="nicescroll",this.me=c,tt=i("body"),y=this.opt={doc:tt,win:!1},i.extend(y,k),y.snapbackspeed=80,n||!1)for(ot in y)n[ot]!==undefined&&(y[ot]=n[ot]);if(y.disablemutationobserver&&(o=!1),this.doc=y.doc,this.iddoc=this.doc&&this.doc[0]?this.doc[0].id||"":"",this.ispage=/^BODY|HTML/.test(y.win?y.win[0].nodeName:this.doc[0].nodeName),this.haswrapper=y.win!==!1,this.win=y.win||(this.ispage?f:this.doc),this.docscroll=this.ispage&&!this.haswrapper?f:this.win,this.body=tt,this.viewport=!1,this.isfixed=!1,this.iframe=!1,this.isiframe=this.doc[0].nodeName=="IFRAME"&&this.win[0].nodeName=="IFRAME",this.istextarea=this.win[0].nodeName=="TEXTAREA",this.forcescreen=!1,this.canshowonmouseevent=y.autohidemode!="scroll",this.onmousedown=!1,this.onmouseup=!1,this.onmousemove=!1,this.onmousewheel=!1,this.onkeypress=!1,this.ongesturezoom=!1,this.onclick=!1,this.onscrollstart=!1,this.onscrollend=!1,this.onscrollcancel=!1,this.onzoomin=!1,this.onzoomout=!1,this.view=!1,this.page=!1,this.scroll={x:0,y:0},this.scrollratio={x:0,y:0},this.cursorheight=20,this.scrollvaluemax=0,y.rtlmode=="auto"?(rt=this.win[0]==r?this.body:this.win,b=rt.css("writing-mode")||rt.css("-webkit-writing-mode")||rt.css("-ms-writing-mode")||rt.css("-moz-writing-mode"),b=="horizontal-tb"||b=="lr-tb"||b===""?(this.isrtlmode=rt.css("direction")=="rtl",this.isvertical=!1):(this.isrtlmode=b=="vertical-rl"||b=="tb"||b=="tb-rl"||b=="rl-tb",this.isvertical=b=="vertical-rl"||b=="tb"||b=="tb-rl")):(this.isrtlmode=y.rtlmode===!0,this.isvertical=!1),this.scrollrunning=!1,this.scrollmom=!1,this.observer=!1,this.observerremover=!1,this.observerbody=!1,y.scrollbarid!==!1)this.id=y.scrollbarid;else do this.id="ascrail"+nt++;while(t.getElementById(this.id));if(this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.railslocked=!1,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.wheelprevented=!1,this.overflowx=y.overflowx,this.overflowy=y.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=it(),w=i.extend({},this.detected),this.canhwscroll=w.hastransform&&y.hwacceleration,this.ishwscroll=this.canhwscroll&&l.haswrapper,this.hasreversehr=this.isrtlmode?this.isvertical?!(w.iswebkit||w.isie||w.isie11):!(w.iswebkit||w.isie&&!w.isie10&&!w.isie11):!1,this.istouchcapable=!1,!w.cantouch&&(w.hasw3ctouch||w.hasmstouch)?this.istouchcapable=!0:w.cantouch&&!w.isios&&!w.isandroid&&(w.iswebkit||w.ismozilla)&&(this.istouchcapable=!0),y.enablemouselockapi||(w.hasmousecapture=!1,w.haspointerlock=!1),this.debounced=function(n,t,i){if(l){var r=l.delaylist[n]||!1;r||(l.delaylist[n]={h:e(function(){l.delaylist[n].fn.call(l);l.delaylist[n]=!1},i)},t.call(l));l.delaylist[n].fn=t}},this.synched=function(n,t){l.synclist[n]?l.synclist[n]=t:(l.synclist[n]=t,e(function(){l&&(l.synclist[n]&&l.synclist[n].call(l),l.synclist[n]=null)}))},this.unsynched=function(n){l.synclist[n]&&(l.synclist[n]=!1)},this.css=function(n,t){for(var i in t)l.saved.css.push([n,i,n.css(i)]),n.css(i,t[i])},this.scrollTop=function(n){return n===undefined?l.getScrollTop():l.setScrollTop(n)},this.scrollLeft=function(n){return n===undefined?l.getScrollLeft():l.setScrollLeft(n)},st=function(n,t,i,r,f,e,o){this.st=n;this.ed=t;this.spd=i;this.p1=r||0;this.p2=f||1;this.p3=e||0;this.p4=o||1;this.ts=u();this.df=t-n},st.prototype={B2:function(n){return 3*(1-n)*(1-n)*n},B3:function(n){return 3*(1-n)*n*n},B4:function(n){return n*n*n},getPos:function(){return(u()-this.ts)/this.spd},getNow:function(){var n=(u()-this.ts)/this.spd,t=this.B2(n)+this.B3(n)+this.B4(n);return n>=1?this.ed:this.st+this.df*t|0},update:function(n,t){return this.st=this.getNow(),this.ed=n,this.spd=t,this.ts=u(),this.df=this.ed-this.st,this}},this.ishwscroll?(this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},w.hastranslate3d&&w.isios&&this.doc.css("-webkit-backface-visibility","hidden"),this.getScrollTop=function(n){if(!n){var t=pt();if(t)return t.length==16?-t[13]:-t[5];if(l.timerscroll&&l.timerscroll.bz)return l.timerscroll.bz.getNow()}return l.doc.translate.y},this.getScrollLeft=function(n){if(!n){var t=pt();if(t)return t.length==16?-t[12]:-t[4];if(l.timerscroll&&l.timerscroll.bh)return l.timerscroll.bh.getNow()}return l.doc.translate.x},this.notifyScrollEvent=function(n){var i=t.createEvent("UIEvents");i.initUIEvent("scroll",!1,!1,r,1);i.niceevent=!0;n.dispatchEvent(i)},lt=this.isrtlmode?1:-1,w.hastranslate3d&&y.enabletranslate3d?(this.setScrollTop=function(n,t){l.doc.translate.y=n;l.doc.translate.ty=n*-1+"px";l.doc.css(w.trstyle,"translate3d("+l.doc.translate.tx+","+l.doc.translate.ty+",0)");t||l.notifyScrollEvent(l.win[0])},this.setScrollLeft=function(n,t){l.doc.translate.x=n;l.doc.translate.tx=n*lt+"px";l.doc.css(w.trstyle,"translate3d("+l.doc.translate.tx+","+l.doc.translate.ty+",0)");t||l.notifyScrollEvent(l.win[0])}):(this.setScrollTop=function(n,t){l.doc.translate.y=n;l.doc.translate.ty=n*-1+"px";l.doc.css(w.trstyle,"translate("+l.doc.translate.tx+","+l.doc.translate.ty+")");t||l.notifyScrollEvent(l.win[0])},this.setScrollLeft=function(n,t){l.doc.translate.x=n;l.doc.translate.tx=n*lt+"px";l.doc.css(w.trstyle,"translate("+l.doc.translate.tx+","+l.doc.translate.ty+")");t||l.notifyScrollEvent(l.win[0])})):(this.getScrollTop=function(){return l.docscroll.scrollTop()},this.setScrollTop=function(n){l.docscroll.scrollTop(n)},this.getScrollLeft=function(){return l.hasreversehr?l.detected.ismozilla?l.page.maxw-Math.abs(l.docscroll.scrollLeft()):l.page.maxw-l.docscroll.scrollLeft():l.docscroll.scrollLeft()},this.setScrollLeft=function(n){return setTimeout(function(){if(l)return l.hasreversehr&&(n=l.detected.ismozilla?-(l.page.maxw-n):l.page.maxw-n),l.docscroll.scrollLeft(n)},1)}),this.getTarget=function(n){return n?n.target?n.target:n.srcElement?n.srcElement:!1:!1},this.hasParent=function(n,t){if(!n)return!1;for(var i=n.target||n.srcElement||n||!1;i&&i.id!=t;)i=i.parentNode||!1;return i!==!1},wt={thin:1,medium:3,thick:5},this.getDocumentScrollOffset=function(){return{top:r.pageYOffset||t.documentElement.scrollTop,left:r.pageXOffset||t.documentElement.scrollLeft}},this.getOffset=function(){var n,i,t,r;return l.isfixed?(n=l.win.offset(),i=l.getDocumentScrollOffset(),n.top-=i.top,n.left-=i.left,n):(t=l.win.offset(),!l.viewport)?t:(r=l.viewport.offset(),{top:t.top-r.top,left:t.left-r.left})},this.updateScrollBar=function(n){var t,i,r,u,f;l.ishwscroll?(l.rail.css({height:l.win.innerHeight()-(y.railpadding.top+y.railpadding.bottom)}),l.railh&&l.railh.css({width:l.win.innerWidth()-(y.railpadding.left+y.railpadding.right)})):(r=l.getOffset(),t={top:r.top,left:r.left-(y.railpadding.left+y.railpadding.right)},t.top+=ft(l.win,"border-top-width",!0),t.left+=l.rail.align?l.win.outerWidth()-ft(l.win,"border-right-width")-l.rail.width:ft(l.win,"border-left-width"),i=y.railoffset,i&&(i.top&&(t.top+=i.top),i.left&&(t.left+=i.left)),l.railslocked||l.rail.css({top:t.top,left:t.left,height:(n?n.h:l.win.innerHeight())-(y.railpadding.top+y.railpadding.bottom)}),l.zoom&&l.zoom.css({top:t.top+1,left:l.rail.align==1?t.left-20:t.left+l.rail.width+4}),l.railh&&!l.railslocked&&(t={top:r.top,left:r.left},i=y.railhoffset,i&&(i.top&&(t.top+=i.top),i.left&&(t.left+=i.left)),u=l.railh.align?t.top+ft(l.win,"border-top-width",!0)+l.win.innerHeight()-l.railh.height:t.top+ft(l.win,"border-top-width",!0),f=t.left+ft(l.win,"border-left-width"),l.railh.css({top:u-(y.railpadding.top+y.railpadding.bottom),left:f,width:l.railh.width})))},this.doRailClick=function(n,i,r){var u,e,f,o;l.railslocked||(l.cancelEvent(n),"pageY"in n||(n.pageX=n.clientX+t.documentElement.scrollLeft,n.pageY=n.clientY+t.documentElement.scrollTop),i?(u=r?l.doScrollLeft:l.doScrollTop,f=r?(n.pageX-l.railh.offset().left-l.cursorwidth/2)*l.scrollratio.x:(n.pageY-l.rail.offset().top-l.cursorheight/2)*l.scrollratio.y,l.unsynched("relativexy"),u(f|0)):(u=r?l.doScrollLeftBy:l.doScrollBy,f=r?l.scroll.x:l.scroll.y,o=r?n.pageX-l.railh.offset().left:n.pageY-l.rail.offset().top,e=r?l.view.w:l.view.h,u(f>=o?e:-e)))},l.newscrolly=l.newscrollx=0,l.hasanimationframe="requestAnimationFrame"in r,l.hascancelanimationframe="cancelAnimationFrame"in r,l.hasborderbox=!1,this.init=function(){var v,d,e,n,it,rt,ft,st,c,u,b,nt,at,ht,k,et,ct,lt,h,ot;if((l.saved.css=[],w.isoperamini)||w.isandroid&&!("hidden"in t))return!0;if(y.emulatetouch=y.emulatetouch||y.touchbehavior,l.hasborderbox=r.getComputedStyle&&r.getComputedStyle(t.body)["box-sizing"]==="border-box",v={"overflow-y":"hidden"},(w.isie11||w.isie10)&&(v["-ms-overflow-style"]="none"),l.ishwscroll&&(this.doc.css(w.transitionstyle,w.prefixstyle+"transform 0ms ease-out"),w.transitionend&&l.bind(l.doc,w.transitionend,l.onScrollTransitionEnd,!1)),l.zindex="auto",l.zindex=l.ispage||y.zindex!="auto"?y.zindex:ti()||"auto",!l.ispage&&l.zindex!="auto"&&l.zindex>s&&(s=l.zindex),l.isie&&l.zindex===0&&y.zindex=="auto"&&(l.zindex="auto"),!l.ispage||!w.isieold){d=l.docscroll;l.ispage&&(d=l.haswrapper?l.win:l.doc);l.css(d,v);l.ispage&&(w.isie11||w.isie)&&l.css(i("html"),v);!w.isios||l.ispage||l.haswrapper||l.css(tt,{"-webkit-overflow-scrolling":"touch"});e=i(t.createElement("div"));e.css({position:"relative",top:0,float:"right",width:y.cursorwidth,height:0,"background-color":y.cursorcolor,border:y.cursorborder,"background-clip":"padding-box","-webkit-border-radius":y.cursorborderradius,"-moz-border-radius":y.cursorborderradius,"border-radius":y.cursorborderradius});e.addClass("nicescroll-cursors");l.cursor=e;n=i(t.createElement("div"));n.attr("id",l.id);n.addClass("nicescroll-rails nicescroll-rails-vr");y.scrollCLass&&n.addClass(y.scrollCLass);ft=["left","right","top","bottom"];for(st in ft)rt=ft[st],it=y.railpadding[rt]||0,it&&n.css("padding-"+rt,it+"px");n.append(e);n.width=Math.max(parseFloat(y.cursorwidth),e.outerWidth());n.css({width:n.width+"px",zIndex:l.zindex,background:y.background,cursor:"default"});n.visibility=!0;n.scrollable=!0;n.align=y.railalign=="left"?0:1;l.rail=n;l.rail.drag=!1;c=!1;!y.boxzoom||l.ispage||w.isieold||(c=t.createElement("div"),l.bind(c,"click",l.doZoom),l.bind(c,"mouseenter",function(){l.zoom.css("opacity",y.cursoropacitymax)}),l.bind(c,"mouseleave",function(){l.zoom.css("opacity",y.cursoropacitymin)}),l.zoom=i(c),l.zoom.css({cursor:"pointer",zIndex:l.zindex,backgroundImage:"url("+y.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0 0"}),y.dblclickzoom&&l.bind(l.win,"dblclick",l.doZoom),w.cantouch&&y.gesturezoom&&(l.ongesturezoom=function(n){return n.scale>1.5&&l.doZoomIn(n),n.scale<.8&&l.doZoomOut(n),l.cancelEvent(n)},l.bind(l.win,"gestureend",l.ongesturezoom)));l.railh=!1;y.horizrailenabled&&(l.css(d,{overflowX:"hidden"}),e=i(t.createElement("div")),e.css({position:"absolute",top:0,height:y.cursorwidth,width:0,backgroundColor:y.cursorcolor,border:y.cursorborder,backgroundClip:"padding-box","-webkit-border-radius":y.cursorborderradius,"-moz-border-radius":y.cursorborderradius,"border-radius":y.cursorborderradius}),w.isieold&&e.css("overflow","hidden"),e.addClass("nicescroll-cursors"),l.cursorh=e,u=i(t.createElement("div")),u.attr("id",l.id+"-hr"),u.addClass("nicescroll-rails nicescroll-rails-hr"),y.scrollCLass&&u.addClass(y.scrollCLass),u.height=Math.max(parseFloat(y.cursorwidth),e.outerHeight()),u.css({height:u.height+"px",zIndex:l.zindex,background:y.background}),u.append(e),u.visibility=!0,u.scrollable=!0,u.align=y.railvalign=="top"?0:1,l.railh=u,l.railh.drag=!1);l.ispage?(n.css({position:"fixed",top:0,height:"100%"}),n.css(n.align?{right:0}:{left:0}),l.body.append(n),l.railh&&(u.css({position:"fixed",left:0,width:"100%"}),u.css(u.align?{bottom:0}:{top:0}),l.body.append(u))):(l.ishwscroll?(l.win.css("position")=="static"&&l.css(l.win,{position:"relative"}),b=l.win[0].nodeName=="HTML"?l.body:l.win,i(b).scrollTop(0).scrollLeft(0),l.zoom&&(l.zoom.css({position:"absolute",top:1,right:0,"margin-right":n.width+4}),b.append(l.zoom)),n.css({position:"absolute",top:0}),n.css(n.align?{right:0}:{left:0}),b.append(n),u&&(u.css({position:"absolute",left:0,bottom:0}),u.css(u.align?{bottom:0}:{top:0}),b.append(u))):(l.isfixed=l.win.css("position")=="fixed",nt=l.isfixed?"fixed":"absolute",l.isfixed||(l.viewport=l.getViewport(l.win[0])),l.viewport&&(l.body=l.viewport,/fixed|absolute/.test(l.viewport.css("position"))||l.css(l.viewport,{position:"relative"})),n.css({position:nt}),l.zoom&&l.zoom.css({position:nt}),l.updateScrollBar(),l.body.append(n),l.zoom&&l.body.append(l.zoom),l.railh&&(u.css({position:nt}),l.body.append(u))),w.isios&&l.css(l.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),y.disableoutline&&(w.isie&&l.win.attr("hideFocus","true"),w.iswebkit&&l.win.css("outline","none")));y.autohidemode===!1?(l.autohidedom=!1,l.rail.css({opacity:y.cursoropacitymax}),l.railh&&l.railh.css({opacity:y.cursoropacitymax})):y.autohidemode===!0||y.autohidemode==="leave"?(l.autohidedom=i().add(l.rail),w.isie8&&(l.autohidedom=l.autohidedom.add(l.cursor)),l.railh&&(l.autohidedom=l.autohidedom.add(l.railh)),l.railh&&w.isie8&&(l.autohidedom=l.autohidedom.add(l.cursorh))):y.autohidemode=="scroll"?(l.autohidedom=i().add(l.rail),l.railh&&(l.autohidedom=l.autohidedom.add(l.railh))):y.autohidemode=="cursor"?(l.autohidedom=i().add(l.cursor),l.railh&&(l.autohidedom=l.autohidedom.add(l.cursorh))):y.autohidemode=="hidden"&&(l.autohidedom=!1,l.hide(),l.railslocked=!1);(w.cantouch||l.istouchcapable||y.emulatetouch||w.hasmstouch)&&(l.scrollmom=new ut(l),at=null,l.ontouchstart=function(n){var t,e,o,r,u,c;if(l.locked||n.pointerType&&(n.pointerType==="mouse"||n.pointerType===n.MSPOINTER_TYPE_MOUSE))return!1;if(l.hasmoving=!1,l.scrollmom.timer&&(l.triggerScrollEnd(),l.scrollmom.stop()),!l.railslocked){if(t=l.getTarget(n),t&&(e=/INPUT/i.test(t.nodeName)&&/range/i.test(t.type),e))return l.stopPropagation(n);if(o=n.type==="mousedown",!("clientX"in n)&&"changedTouches"in n&&(n.clientX=n.changedTouches[0].clientX,n.clientY=n.changedTouches[0].clientY),l.forcescreen&&(r=n,n={original:n.original?n.original:n},n.clientX=r.screenX,n.clientY=r.screenY),l.rail.drag={x:n.clientX,y:n.clientY,sx:l.scroll.x,sy:l.scroll.y,st:l.getScrollTop(),sl:l.getScrollLeft(),pt:2,dl:!1,tg:t},l.ispage||!y.directionlockdeadzone)l.rail.drag.dl="f";else{var s={w:f.width(),h:f.height()},h=l.getContentSize(),a=h.h-s.h,v=h.w-s.w;l.rail.drag.ck=l.rail.scrollable&&!l.railh.scrollable?a>0?"v":!1:!l.rail.scrollable&&l.railh.scrollable?v>0?"h":!1:!1}if(y.emulatetouch&&l.isiframe&&w.isie&&(u=l.win.position(),l.rail.drag.x+=u.left,l.rail.drag.y+=u.top),l.hasmoving=!1,l.lastmouseup=!1,l.scrollmom.reset(n.clientX,n.clientY),t&&o){if(c=/INPUT|SELECT|BUTTON|TEXTAREA/i.test(t.nodeName),!c)return(w.hasmousecapture&&t.setCapture(),y.emulatetouch)?(!t.onclick||t._onclick||!1||(t._onclick=t.onclick,t.onclick=function(n){if(l.hasmoving)return!1;t._onclick.call(this,n)}),l.cancelEvent(n)):l.stopPropagation(n);/SUBMIT|CANCEL|BUTTON/i.test(i(t).attr("type"))&&(l.preventclick={tg:t,click:!1})}}},l.ontouchend=function(n){if(!l.rail.drag)return!0;if(l.rail.drag.pt==2){if(n.pointerType&&(n.pointerType==="mouse"||n.pointerType===n.MSPOINTER_TYPE_MOUSE))return!1;l.rail.drag=!1;var i=n.type==="mouseup";if(l.hasmoving&&(l.scrollmom.doMomentum(),l.lastmouseup=!0,l.hideCursor(),w.hasmousecapture&&t.releaseCapture(),i))return l.cancelEvent(n)}else if(l.rail.drag.pt==1)return l.onmouseup(n)},ht=y.emulatetouch&&l.isiframe&&!w.hasmousecapture,k=y.directionlockdeadzone*.3|0,l.ontouchmove=function(n,i){var c,a,v,r;if(!l.rail.drag||n.targetTouches&&y.preventmultitouchscrolling&&n.targetTouches.length>1||n.pointerType&&(n.pointerType==="mouse"||n.pointerType===n.MSPOINTER_TYPE_MOUSE))return!0;if(l.rail.drag.pt==2){"changedTouches"in n&&(n.clientX=n.changedTouches[0].clientX,n.clientY=n.changedTouches[0].clientY);a=c=0;ht&&!i&&(v=l.win.position(),a=-v.left,c=-v.top);var s=n.clientY+c,b=s-l.rail.drag.y,h=n.clientX+a,p=h-l.rail.drag.x,u=l.rail.drag.st-b;if(l.ishwscroll&&y.bouncescroll)u<0?u=Math.round(u/2):u>l.page.maxh&&(u=l.page.maxh+Math.round((u-l.page.maxh)/2));else if(u<0?(u=0,s=0):u>l.page.maxh&&(u=l.page.maxh,s=0),s===0&&!l.hasmoving)return l.ispage||(l.rail.drag=!1),!0;if(r

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。