text: if(!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=!!t&&"length"in t&&t.length,n=at.type(t);return"function"!==n&&!at.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function i(t,e,n){if(at.isFunction(e))return at.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return at.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(mt.test(e))return at.filter(e,t,n);e=at.filter(e,t)}return at.grep(t,function(t){return Z.call(e,t)>-1!==n})}function o(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function a(t){var e={};return at.each(t.match(wt)||[],function(t,n){e[n]=!0}),e}function r(){G.removeEventListener("DOMContentLoaded",r),t.removeEventListener("load",r),at.ready()}function s(){this.expando=at.expando+s.uid++}function l(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(Ft,"-$&").toLowerCase(),n=t.getAttribute(i),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:$t.test(n)?at.parseJSON(n):n)}catch(t){}Tt.set(t,e,n)}else n=void 0;return n}function c(t,e,n,i){var o,a=1,r=20,s=i?function(){return i.cur()}:function(){return at.css(t,e,"")},l=s(),c=n&&n[3]||(at.cssNumber[e]?"":"px"),d=(at.cssNumber[e]||"px"!==c&&+l)&&Et.exec(at.css(t,e));if(d&&d[3]!==c){c=c||d[3],n=n||[],d=+l||1;do a=a||".5",d/=a,at.style(t,e,d+c);while(a!==(a=s()/l)&&1!==a&&--r)}return n&&(d=+d||+l||0,o=n[1]?d+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=d,i.end=o)),o}function d(t,e){var n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&at.nodeName(t,e)?at.merge([t],n):n}function u(t,e){for(var n=0,i=t.length;i>n;n++)St.set(t[n],"globalEval",!e||St.get(e[n],"globalEval"))}function p(t,e,n,i,o){for(var a,r,s,l,c,p,f=e.createDocumentFragment(),h=[],m=0,g=t.length;g>m;m++)if(a=t[m],a||0===a)if("object"===at.type(a))at.merge(h,a.nodeType?[a]:a);else if(Lt.test(a)){for(r=r||f.appendChild(e.createElement("div")),s=(Rt.exec(a)||["",""])[1].toLowerCase(),l=Mt[s]||Mt._default,r.innerHTML=l[1]+at.htmlPrefilter(a)+l[2],p=l[0];p--;)r=r.lastChild;at.merge(h,r.childNodes),r=f.firstChild,r.textContent=""}else h.push(e.createTextNode(a));for(f.textContent="",m=0;a=h[m++];)if(i&&at.inArray(a,i)>-1)o&&o.push(a);else if(c=at.contains(a.ownerDocument,a),r=d(f.appendChild(a),"script"),c&&u(r),n)for(p=0;a=r[p++];)It.test(a.type||"")&&n.push(a);return f}function f(){return!0}function h(){return!1}function m(){try{return G.activeElement}catch(t){}}function g(t,e,n,i,o,a){var r,s;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(s in e)g(t,s,n,i,e[s],a);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),o===!1)o=h;else if(!o)return t;return 1===a&&(r=o,o=function(t){return at().off(t),r.apply(this,arguments)},o.guid=r.guid||(r.guid=at.guid++)),t.each(function(){at.event.add(this,e,o,i,n)})}function y(t,e){return at.nodeName(t,"table")&&at.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function v(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function b(t){var e=Ut.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function x(t,e){var n,i,o,a,r,s,l,c;if(1===e.nodeType){if(St.hasData(t)&&(a=St.access(t),r=St.set(e,a),c=a.events)){delete r.handle,r.events={};for(o in c)for(n=0,i=c[o].length;i>n;n++)at.event.add(e,o,c[o][n])}Tt.hasData(t)&&(s=Tt.access(t),l=at.extend({},s),Tt.set(e,l))}}function w(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Nt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function _(t,e,n,i){e=K.apply([],e);var o,a,r,s,l,c,u=0,f=t.length,h=f-1,m=e[0],g=at.isFunction(m);if(g||f>1&&"string"==typeof m&&!it.checkClone&&Bt.test(m))return t.each(function(o){var a=t.eq(o);g&&(e[0]=m.call(this,o,a.html())),_(a,e,n,i)});if(f&&(o=p(e,t[0].ownerDocument,!1,t,i),a=o.firstChild,1===o.childNodes.length&&(o=a),a||i)){for(r=at.map(d(o,"script"),v),s=r.length;f>u;u++)l=o,u!==h&&(l=at.clone(l,!0,!0),s&&at.merge(r,d(l,"script"))),n.call(t[u],l,u);if(s)for(c=r[r.length-1].ownerDocument,at.map(r,b),u=0;s>u;u++)l=r[u],It.test(l.type||"")&&!St.access(l,"globalEval")&&at.contains(c,l)&&(l.src?at._evalUrl&&at._evalUrl(l.src):at.globalEval(l.textContent.replace(Wt,"")))}return t}function k(t,e,n){for(var i,o=e?at.filter(e,t):t,a=0;null!=(i=o[a]);a++)n||1!==i.nodeType||at.cleanData(d(i)),i.parentNode&&(n&&at.contains(i.ownerDocument,i)&&u(d(i,"script")),i.parentNode.removeChild(i));return t}function C(t,e){var n=at(e.createElement(t)).appendTo(e.body),i=at.css(n[0],"display");return n.detach(),i}function S(t){var e=G,n=Vt[t];return n||(n=C(t,e),"none"!==n&&n||(qt=(qt||at("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=qt[0].contentDocument,e.write(),e.close(),n=C(t,e),qt.detach()),Vt[t]=n),n}function T(t,e,n){var i,o,a,r,s=t.style;return n=n||Qt(t),r=n?n.getPropertyValue(e)||n[e]:void 0,""!==r&&void 0!==r||at.contains(t.ownerDocument,t)||(r=at.style(t,e)),n&&!it.pixelMarginRight()&&Gt.test(r)&&Xt.test(e)&&(i=s.width,o=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=r,r=n.width,s.width=i,s.minWidth=o,s.maxWidth=a),void 0!==r?r+"":r}function $(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function F(t){if(t in ie)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=ne.length;n--;)if(t=ne[n]+e,t in ie)return t}function D(t,e,n){var i=Et.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function E(t,e,n,i,o){for(var a=n===(i?"border":"content")?4:"width"===e?1:0,r=0;4>a;a+=2)"margin"===n&&(r+=at.css(t,n+At[a],!0,o)),i?("content"===n&&(r-=at.css(t,"padding"+At[a],!0,o)),"margin"!==n&&(r-=at.css(t,"border"+At[a]+"Width",!0,o))):(r+=at.css(t,"padding"+At[a],!0,o),"padding"!==n&&(r+=at.css(t,"border"+At[a]+"Width",!0,o)));return r}function A(t,e,n){var i=!0,o="width"===e?t.offsetWidth:t.offsetHeight,a=Qt(t),r="border-box"===at.css(t,"boxSizing",!1,a);if(0>=o||null==o){if(o=T(t,e,a),(0>o||null==o)&&(o=t.style[e]),Gt.test(o))return o;i=r&&(it.boxSizingReliable()||o===t.style[e]),o=parseFloat(o)||0}return o+E(t,e,n||(r?"border":"content"),i,a)+"px"}function O(t,e){for(var n,i,o,a=[],r=0,s=t.length;s>r;r++)i=t[r],i.style&&(a[r]=St.get(i,"olddisplay"),n=i.style.display,e?(a[r]||"none"!==n||(i.style.display=""),""===i.style.display&&Ot(i)&&(a[r]=St.access(i,"olddisplay",S(i.nodeName)))):(o=Ot(i),"none"===n&&o||St.set(i,"olddisplay",o?n:at.css(i,"display"))));for(r=0;s>r;r++)i=t[r],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?a[r]||"":"none"));return t}function N(t,e,n,i,o){return new N.prototype.init(t,e,n,i,o)}function R(){return t.setTimeout(function(){oe=void 0}),oe=at.now()}function I(t,e){var n,i=0,o={height:t};for(e=e?1:0;4>i;i+=2-e)n=At[i],o["margin"+n]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function M(t,e,n){for(var i,o=(P.tweeners[e]||[]).concat(P.tweeners["*"]),a=0,r=o.length;r>a;a++)if(i=o[a].call(n,e,t))return i}function L(t,e,n){var i,o,a,r,s,l,c,d,u=this,p={},f=t.style,h=t.nodeType&&Ot(t),m=St.get(t,"fxshow");n.queue||(s=at._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,at.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],c=at.css(t,"display"),d="none"===c?St.get(t,"olddisplay")||S(t.nodeName):c,"inline"===d&&"none"===at.css(t,"float")&&(f.display="inline-block")),n.overflow&&(f.overflow="hidden",u.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}));for(i in e)if(o=e[i],re.exec(o)){if(delete e[i],a=a||"toggle"===o,o===(h?"hide":"show")){if("show"!==o||!m||void 0===m[i])continue;h=!0}p[i]=m&&m[i]||at.style(t,i)}else c=void 0;if(at.isEmptyObject(p))"inline"===("none"===c?S(t.nodeName):c)&&(f.display=c);else{m?"hidden"in m&&(h=m.hidden):m=St.access(t,"fxshow",{}),a&&(m.hidden=!h),h?at(t).show():u.done(function(){at(t).hide()}),u.done(function(){var e;St.remove(t,"fxshow");for(e in p)at.style(t,e,p[e])});for(i in p)r=M(h?m[i]:0,i,u),i in m||(m[i]=r.start,h&&(r.end=r.start,r.start="width"===i||"height"===i?1:0))}}function j(t,e){var n,i,o,a,r;for(n in t)if(i=at.camelCase(n),o=e[i],a=t[n],at.isArray(a)&&(o=a[1],a=t[n]=a[0]),n!==i&&(t[i]=a,delete t[n]),r=at.cssHooks[i],r&&"expand"in r){a=r.expand(a),delete t[i];for(n in a)n in t||(t[n]=a[n],e[n]=o)}else e[i]=o}function P(t,e,n){var i,o,a=0,r=P.prefilters.length,s=at.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=oe||R(),n=Math.max(0,c.startTime+c.duration-e),i=n/c.duration||0,a=1-i,r=0,l=c.tweens.length;l>r;r++)c.tweens[r].run(a);return s.notifyWith(t,[c,a,n]),1>a&&l?n:(s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:at.extend({},e),opts:at.extend(!0,{specialEasing:{},easing:at.easing._default},n),originalProperties:e,originalOptions:n,startTime:oe||R(),duration:n.duration,tweens:[],createTween:function(e,n){var i=at.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(o)return this;for(o=!0;i>n;n++)c.tweens[n].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),d=c.props;for(j(d,c.opts.specialEasing);r>a;a++)if(i=P.prefilters[a].call(c,t,d,c.opts))return at.isFunction(i.stop)&&(at._queueHooks(c.elem,c.opts.queue).stop=at.proxy(i.stop,i)),i;return at.map(d,M,c),at.isFunction(c.opts.start)&&c.opts.start.call(t,c),at.fx.timer(at.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function z(t){return t.getAttribute&&t.getAttribute("class")||""}function H(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,o=0,a=e.toLowerCase().match(wt)||[];if(at.isFunction(n))for(;i=a[o++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Y(t,e,n,i){function o(s){var l;return a[s]=!0,at.each(t[s]||[],function(t,s){var c=s(e,n,i);return"string"!=typeof c||r||a[c]?r?!(l=c):void 0:(e.dataTypes.unshift(c),o(c),!1)}),l}var a={},r=t===Te;return o(e.dataTypes[0])||!a["*"]&&o("*")}function B(t,e){var n,i,o=at.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i||(i={}))[n]=e[n]);return i&&at.extend(!0,t,i),t}function U(t,e,n){for(var i,o,a,r,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in s)if(s[o]&&s[o].test(i)){l.unshift(o);break}if(l[0]in n)a=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){a=o;break}r||(r=o)}a=a||r}return a?(a!==l[0]&&l.unshift(a),n[a]):void 0}function W(t,e,n,i){var o,a,r,s,l,c={},d=t.dataTypes.slice();if(d[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r];for(a=d.shift();a;)if(t.responseFields[a]&&(n[t.responseFields[a]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=a,a=d.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(r=c[l+" "+a]||c["* "+a],!r)for(o in c)if(s=o.split(" "),s[1]===a&&(r=c[l+" "+s[0]]||c["* "+s[0]])){r===!0?r=c[o]:c[o]!==!0&&(a=s[0],d.unshift(s[1]));break}if(r!==!0)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+a}}}return{state:"success",data:e}}function q(t,e,n,i){var o;if(at.isArray(e))at.each(e,function(e,o){n||Ee.test(t)?i(t,o):q(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,n,i)});else if(n||"object"!==at.type(e))i(t,e);else for(o in e)q(t+"["+o+"]",e[o],n,i)}function V(t){return at.isWindow(t)?t:9===t.nodeType&&t.defaultView}var X=[],G=t.document,Q=X.slice,K=X.concat,J=X.push,Z=X.indexOf,tt={},et=tt.toString,nt=tt.hasOwnProperty,it={},ot="2.2.4",at=function(t,e){return new at.fn.init(t,e)},rt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,st=/^-ms-/,lt=/-([\da-z])/gi,ct=function(t,e){return e.toUpperCase()};at.fn=at.prototype={jquery:ot,constructor:at,selector:"",length:0,toArray:function(){return Q.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:Q.call(this)},pushStack:function(t){var e=at.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return at.each(this,t)},map:function(t){return this.pushStack(at.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(Q.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:J,sort:X.sort,splice:X.splice},at.extend=at.fn.extend=function(){var t,e,n,i,o,a,r=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[s]||{},s++),"object"==typeof r||at.isFunction(r)||(r={}),s===l&&(r=this,s--);l>s;s++)if(null!=(t=arguments[s]))for(e in t)n=r[e],i=t[e],r!==i&&(c&&i&&(at.isPlainObject(i)||(o=at.isArray(i)))?(o?(o=!1,a=n&&at.isArray(n)?n:[]):a=n&&at.isPlainObject(n)?n:{},r[e]=at.extend(c,a,i)):void 0!==i&&(r[e]=i));return r},at.extend({expando:"jQuery"+(ot+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===at.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!at.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){var e;if("object"!==at.type(t)||t.nodeType||at.isWindow(t))return!1;if(t.constructor&&!nt.call(t,"constructor")&&!nt.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||nt.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?tt[et.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=at.trim(t),t&&(1===t.indexOf("use strict")?(e=G.createElement("script"),e.text=t,G.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(st,"ms-").replace(lt,ct)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var i,o=0;if(n(t))for(i=t.length;i>o&&e.call(t[o],o,t[o])!==!1;o++);else for(o in t)if(e.call(t[o],o,t[o])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(rt,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?at.merge(i,"string"==typeof t?[t]:t):J.call(i,t)),i},inArray:function(t,e,n){return null==e?-1:Z.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;n>i;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i,o=[],a=0,r=t.length,s=!n;r>a;a++)i=!e(t[a],a),i!==s&&o.push(t[a]);return o},map:function(t,e,i){var o,a,r=0,s=[];if(n(t))for(o=t.length;o>r;r++)a=e(t[r],r,i),null!=a&&s.push(a);else for(r in t)a=e(t[r],r,i),null!=a&&s.push(a);return K.apply([],s)},guid:1,proxy:function(t,e){var n,i,o;return"string"==typeof e&&(n=t[e],e=t,t=n),at.isFunction(t)?(i=Q.call(arguments,2),o=function(){return t.apply(e||this,i.concat(Q.call(arguments)))},o.guid=t.guid=t.guid||at.guid++,o):void 0},now:Date.now,support:it}),"function"==typeof Symbol&&(at.fn[Symbol.iterator]=X[Symbol.iterator]),at.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){tt["[object "+e+"]"]=e.toLowerCase()});var dt=function(t){function e(t,e,n,i){var o,a,r,s,l,c,u,f,h=e&&e.ownerDocument,m=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==m&&9!==m&&11!==m)return n;if(!i&&((e?e.ownerDocument||e:z)!==O&&A(e),e=e||O,R)){if(11!==m&&(c=yt.exec(t)))if(o=c[1]){if(9===m){if(!(r=e.getElementById(o)))return n;if(r.id===o)return n.push(r),n}else if(h&&(r=h.getElementById(o))&&j(e,r)&&r.id===o)return n.push(r),n}else{if(c[2])return J.apply(n,e.getElementsByTagName(t)),n;if((o=c[3])&&w.getElementsByClassName&&e.getElementsByClassName)return J.apply(n,e.getElementsByClassName(o)),n}if(w.qsa&&!W[t+" "]&&(!I||!I.test(t))){if(1!==m)h=e,f=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(bt,"\\$&"):e.setAttribute("id",s=P),u=S(t),a=u.length,l=pt.test(s)?"#"+s:"[id='"+s+"']";a--;)u[a]=l+" "+p(u[a]);f=u.join(","),h=vt.test(t)&&d(e.parentNode)||e}if(f)try{return J.apply(n,h.querySelectorAll(f)),n}catch(t){}finally{s===P&&e.removeAttribute("id")}}}return $(t.replace(st,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>_.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[P]=!0,t}function o(t){var e=O.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function a(t,e){for(var n=t.split("|"),i=n.length;i--;)_.attrHandle[n[i]]=e}function r(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||V)-(~t.sourceIndex||V);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function l(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function c(t){return i(function(e){return e=+e,i(function(n,i){for(var o,a=t([],n.length,e),r=a.length;r--;)n[o=a[r]]&&(n[o]=!(i[o]=n[o]))})})}function d(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function u(){}function p(t){for(var e=0,n=t.length,i="";n>e;e++)i+=t[e].value;return i}function f(t,e,n){var i=e.dir,o=n&&"parentNode"===i,a=Y++;return e.first?function(e,n,a){for(;e=e[i];)if(1===e.nodeType||o)return t(e,n,a)}:function(e,n,r){var s,l,c,d=[H,a];if(r){for(;e=e[i];)if((1===e.nodeType||o)&&t(e,n,r))return!0}else for(;e=e[i];)if(1===e.nodeType||o){if(c=e[P]||(e[P]={}),l=c[e.uniqueID]||(c[e.uniqueID]={}),(s=l[i])&&s[0]===H&&s[1]===a)return d[2]=s[2];if(l[i]=d,d[2]=t(e,n,r))return!0}}}function h(t){return t.length>1?function(e,n,i){for(var o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function m(t,n,i){for(var o=0,a=n.length;a>o;o++)e(t,n[o],i);return i}function g(t,e,n,i,o){for(var a,r=[],s=0,l=t.length,c=null!=e;l>s;s++)(a=t[s])&&(n&&!n(a,i,o)||(r.push(a),c&&e.push(s)));return r}function y(t,e,n,o,a,r){return o&&!o[P]&&(o=y(o)),a&&!a[P]&&(a=y(a,r)),i(function(i,r,s,l){var c,d,u,p=[],f=[],h=r.length,y=i||m(e||"*",s.nodeType?[s]:s,[]),v=!t||!i&&e?y:g(y,p,t,s,l),b=n?a||(i?t:h||o)?[]:r:v;if(n&&n(v,b,s,l),o)for(c=g(b,f),o(c,[],s,l),d=c.length;d--;)(u=c[d])&&(b[f[d]]=!(v[f[d]]=u));if(i){if(a||t){if(a){for(c=[],d=b.length;d--;)(u=b[d])&&c.push(v[d]=u);a(null,b=[],c,l)}for(d=b.length;d--;)(u=b[d])&&(c=a?tt(i,u):p[d])>-1&&(i[c]=!(r[c]=u))}}else b=g(b===r?b.splice(h,b.length):b),a?a(null,r,b,l):J.apply(r,b)})}function v(t){for(var e,n,i,o=t.length,a=_.relative[t[0].type],r=a||_.relative[" "],s=a?1:0,l=f(function(t){return t===e},r,!0),c=f(function(t){return tt(e,t)>-1},r,!0),d=[function(t,n,i){var o=!a&&(i||n!==F)||((e=n).nodeType?l(t,n,i):c(t,n,i));return e=null,o}];o>s;s++)if(n=_.relative[t[s].type])d=[f(h(d),n)];else{if(n=_.filter[t[s].type].apply(null,t[s].matches),n[P]){for(i=++s;o>i&&!_.relative[t[i].type];i++);return y(s>1&&h(d),s>1&&p(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(st,"$1"),n,i>s&&v(t.slice(s,i)),o>i&&v(t=t.slice(i)),o>i&&p(t))}d.push(n)}return h(d)}function b(t,n){var o=n.length>0,a=t.length>0,r=function(i,r,s,l,c){var d,u,p,f=0,h="0",m=i&&[],y=[],v=F,b=i||a&&_.find.TAG("*",c),x=H+=null==v?1:Math.random()||.1,w=b.length;for(c&&(F=r===O||r||c);h!==w&&null!=(d=b[h]);h++){if(a&&d){for(u=0,r||d.ownerDocument===O||(A(d),s=!R);p=t[u++];)if(p(d,r||O,s)){l.push(d);break}c&&(H=x)}o&&((d=!p&&d)&&f--,i&&m.push(d))}if(f+=h,o&&h!==f){for(u=0;p=n[u++];)p(m,y,r,s);if(i){if(f>0)for(;h--;)m[h]||y[h]||(y[h]=Q.call(l));y=g(y)}J.apply(l,y),c&&!i&&y.length>0&&f+n.length>1&&e.uniqueSort(l)}return c&&(H=x,F=v),m};return o?i(r):r}var x,w,_,k,C,S,T,$,F,D,E,A,O,N,R,I,M,L,j,P="sizzle"+1*new Date,z=t.document,H=0,Y=0,B=n(),U=n(),W=n(),q=function(t,e){return t===e&&(E=!0),0},V=1<<31,X={}.hasOwnProperty,G=[],Q=G.pop,K=G.push,J=G.push,Z=G.slice,tt=function(t,e){for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ot="\\["+nt+"*("+it+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+nt+"*\\]",at=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ot+")*)|.*)\\)|)",rt=new RegExp(nt+"+","g"),st=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),lt=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),dt=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ut=new RegExp(at),pt=new RegExp("^"+it+"$"),ft={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it+"|[*])"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},ht=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,vt=/[+~]/,bt=/'|\\/g,xt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),wt=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},_t=function(){A()};try{J.apply(G=Z.call(z.childNodes),z.childNodes),G[z.childNodes.length].nodeType}catch(t){J={apply:G.length?function(t,e){K.apply(t,Z.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}w=e.support={},C=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},A=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:z;return i!==O&&9===i.nodeType&&i.documentElement?(O=i,N=O.documentElement,R=!C(O),(n=O.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",_t,!1):n.attachEvent&&n.attachEvent("onunload",_t)),w.attributes=o(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=o(function(t){return t.appendChild(O.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=gt.test(O.getElementsByClassName),w.getById=o(function(t){return N.appendChild(t).id=P,!O.getElementsByName||!O.getElementsByName(P).length}),w.getById?(_.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&R){var n=e.getElementById(t);return n?[n]:[]}},_.filter.ID=function(t){var e=t.replace(xt,wt);return function(t){return t.getAttribute("id")===e}}):(delete _.find.ID,_.filter.ID=function(t){var e=t.replace(xt,wt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),_.find.TAG=w.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,a=e.getElementsByTagName(t);if("*"===t){for(;n=a[o++];)1===n.nodeType&&i.push(n);return i}return a},_.find.CLASS=w.getElementsByClassName&&function(t,e){return"undefined"!=typeof e.getElementsByClassName&&R?e.getElementsByClassName(t):void 0},M=[],I=[],(w.qsa=gt.test(O.querySelectorAll))&&(o(function(t){N.appendChild(t).innerHTML="<a id='"+P+"'></a><select id='"+P+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&I.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||I.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+P+"-]").length||I.push("~="),t.querySelectorAll(":checked").length||I.push(":checked"),t.querySelectorAll("a#"+P+"+*").length||I.push(".#.+[+~]")}),o(function(t){var e=O.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&I.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||I.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),I.push(",.*:")})),(w.matchesSelector=gt.test(L=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&o(function(t){w.disconnectedMatch=L.call(t,"div"),L.call(t,"[s!='']:x"),M.push("!=",at)}),I=I.length&&new RegExp(I.join("|")),M=M.length&&new RegExp(M.join("|")),e=gt.test(N.compareDocumentPosition),j=e||gt.test(N.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},q=e?function(t,e){if(t===e)return E=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!w.sortDetached&&e.compareDocumentPosition(t)===n?t===O||t.ownerDocument===z&&j(z,t)?-1:e===O||e.ownerDocument===z&&j(z,e)?1:D?tt(D,t)-tt(D,e):0:4&n?-1:1)}:function(t,e){if(t===e)return E=!0,0;var n,i=0,o=t.parentNode,a=e.parentNode,s=[t],l=[e];if(!o||!a)return t===O?-1:e===O?1:o?-1:a?1:D?tt(D,t)-tt(D,e):0;if(o===a)return r(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;s[i]===l[i];)i++;return i?r(s[i],l[i]):s[i]===z?-1:l[i]===z?1:0},O):O},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==O&&A(t),n=n.replace(dt,"='$1']"),w.matchesSelector&&R&&!W[n+" "]&&(!M||!M.test(n))&&(!I||!I.test(n)))try{var i=L.call(t,n);if(i||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,O,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==O&&A(t),j(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==O&&A(t);var n=_.attrHandle[e.toLowerCase()],i=n&&X.call(_.attrHandle,e.toLowerCase())?n(t,e,!R):void 0;return void 0!==i?i:w.attributes||!R?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,o=0;if(E=!w.detectDuplicates,D=!w.sortStable&&t.slice(0),t.sort(q),E){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)t.splice(n[i],1)}return D=null,t},k=e.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=k(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=k(e);return n},_=e.selectors={cacheLength:50,createPseudo:i,match:ft,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(xt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(xt,wt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ut.test(n)&&(e=S(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(xt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=B[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&B(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(o){var a=e.attr(o,t);return null==a?"!="===n:!n||(a+="","="===n?a===i:"!="===n?a!==i:"^="===n?i&&0===a.indexOf(i):"*="===n?i&&a.indexOf(i)>-1:"$="===n?i&&a.slice(-i.length)===i:"~="===n?(" "+a.replace(rt," ")+" ").indexOf(i)>-1:"|="===n&&(a===i||a.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,o){var a="nth"!==t.slice(0,3),r="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var c,d,u,p,f,h,m=a!==r?"nextSibling":"previousSibling",g=e.parentNode,y=s&&e.nodeName.toLowerCase(),v=!l&&!s,b=!1;if(g){if(a){for(;m;){for(p=e;p=p[m];)if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=m="only"===t&&!h&&"nextSibling"}return!0}if(h=[r?g.firstChild:g.lastChild],r&&v){for(p=g,u=p[P]||(p[P]={}),d=u[p.uniqueID]||(u[p.uniqueID]={}),c=d[t]||[],f=c[0]===H&&c[1],b=f&&c[2],p=f&&g.childNodes[f];p=++f&&p&&p[m]||(b=f=0)||h.pop();)if(1===p.nodeType&&++b&&p===e){d[t]=[H,f,b];break}}else if(v&&(p=e,u=p[P]||(p[P]={}),d=u[p.uniqueID]||(u[p.uniqueID]={}),c=d[t]||[],f=c[0]===H&&c[1],b=f),b===!1)for(;(p=++f&&p&&p[m]||(b=f=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++b||(v&&(u=p[P]||(p[P]={}),d=u[p.uniqueID]||(u[p.uniqueID]={}),d[t]=[H,b]),p!==e)););return b-=o,b===i||b%i===0&&b/i>=0}}},PSEUDO:function(t,n){var o,a=_.pseudos[t]||_.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return a[P]?a(n):a.length>1?(o=[t,t,"",n],_.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,o=a(t,n),r=o.length;r--;)i=tt(t,o[r]),t[i]=!(e[i]=o[r])}):function(t){return a(t,0,o)}):a}},pseudos:{not:i(function(t){var e=[],n=[],o=T(t.replace(st,"$1"));return o[P]?i(function(t,e,n,i){for(var a,r=o(t,null,i,[]),s=t.length;s--;)(a=r[s])&&(t[s]=!(e[s]=a))}):function(t,i,a){return e[0]=t,o(e,null,a,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(xt,wt),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:i(function(t){return pt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(xt,wt).toLowerCase(),function(e){var n;do if(n=R?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===N},focus:function(t){return t===O.activeElement&&(!O.hasFocus||O.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return ht.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,n){return[0>n?n+e:n]}),even:c(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:c(function(t,e){
  for(var n=1;e>n;n+=2)t.push(n);return t}),lt:c(function(t,e,n){for(var i=0>n?n+e:n;--i>=0;)t.push(i);return t}),gt:c(function(t,e,n){for(var i=0>n?n+e:n;++i<e;)t.push(i);return t})}},_.pseudos.nth=_.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[x]=s(x);for(x in{submit:!0,reset:!0})_.pseudos[x]=l(x);return u.prototype=_.filters=_.pseudos,_.setFilters=new u,S=e.tokenize=function(t,n){var i,o,a,r,s,l,c,d=U[t+" "];if(d)return n?0:d.slice(0);for(s=t,l=[],c=_.preFilter;s;){i&&!(o=lt.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(a=[])),i=!1,(o=ct.exec(s))&&(i=o.shift(),a.push({value:i,type:o[0].replace(st," ")}),s=s.slice(i.length));for(r in _.filter)!(o=ft[r].exec(s))||c[r]&&!(o=c[r](o))||(i=o.shift(),a.push({value:i,type:r,matches:o}),s=s.slice(i.length));if(!i)break}return n?s.length:s?e.error(t):U(t,l).slice(0)},T=e.compile=function(t,e){var n,i=[],o=[],a=W[t+" "];if(!a){for(e||(e=S(t)),n=e.length;n--;)a=v(e[n]),a[P]?i.push(a):o.push(a);a=W(t,b(o,i)),a.selector=t}return a},$=e.select=function(t,e,n,i){var o,a,r,s,l,c="function"==typeof t&&t,u=!i&&S(t=c.selector||t);if(n=n||[],1===u.length){if(a=u[0]=u[0].slice(0),a.length>2&&"ID"===(r=a[0]).type&&w.getById&&9===e.nodeType&&R&&_.relative[a[1].type]){if(e=(_.find.ID(r.matches[0].replace(xt,wt),e)||[])[0],!e)return n;c&&(e=e.parentNode),t=t.slice(a.shift().value.length)}for(o=ft.needsContext.test(t)?0:a.length;o--&&(r=a[o],!_.relative[s=r.type]);)if((l=_.find[s])&&(i=l(r.matches[0].replace(xt,wt),vt.test(a[0].type)&&d(e.parentNode)||e))){if(a.splice(o,1),t=i.length&&p(a),!t)return J.apply(n,i),n;break}}return(c||T(t,u))(i,e,!R,n,!e||vt.test(t)&&d(e.parentNode)||e),n},w.sortStable=P.split("").sort(q).join("")===P,w.detectDuplicates=!!E,A(),w.sortDetached=o(function(t){return 1&t.compareDocumentPosition(O.createElement("div"))}),o(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||a("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&o(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||a("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),o(function(t){return null==t.getAttribute("disabled")})||a(et,function(t,e,n){var i;return n?void 0:t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);at.find=dt,at.expr=dt.selectors,at.expr[":"]=at.expr.pseudos,at.uniqueSort=at.unique=dt.uniqueSort,at.text=dt.getText,at.isXMLDoc=dt.isXML,at.contains=dt.contains;var ut=function(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&at(t).is(n))break;i.push(t)}return i},pt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},ft=at.expr.match.needsContext,ht=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,mt=/^.[^:#\[\.,]*$/;at.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?at.find.matchesSelector(i,t)?[i]:[]:at.find.matches(t,at.grep(e,function(t){return 1===t.nodeType}))},at.fn.extend({find:function(t){var e,n=this.length,i=[],o=this;if("string"!=typeof t)return this.pushStack(at(t).filter(function(){for(e=0;n>e;e++)if(at.contains(o[e],this))return!0}));for(e=0;n>e;e++)at.find(t,o[e],i);return i=this.pushStack(n>1?at.unique(i):i),i.selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(i(this,t||[],!1))},not:function(t){return this.pushStack(i(this,t||[],!0))},is:function(t){return!!i(this,"string"==typeof t&&ft.test(t)?at(t):t||[],!1).length}});var gt,yt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,vt=at.fn.init=function(t,e,n){var i,o;if(!t)return this;if(n=n||gt,"string"==typeof t){if(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:yt.exec(t),!i||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof at?e[0]:e,at.merge(this,at.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:G,!0)),ht.test(i[1])&&at.isPlainObject(e))for(i in e)at.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return o=G.getElementById(i[2]),o&&o.parentNode&&(this.length=1,this[0]=o),this.context=G,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):at.isFunction(t)?void 0!==n.ready?n.ready(t):t(at):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),at.makeArray(t,this))};vt.prototype=at.fn,gt=at(G);var bt=/^(?:parents|prev(?:Until|All))/,xt={children:!0,contents:!0,next:!0,prev:!0};at.fn.extend({has:function(t){var e=at(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(at.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,i=0,o=this.length,a=[],r=ft.test(t)||"string"!=typeof t?at(t,e||this.context):0;o>i;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(r?r.index(n)>-1:1===n.nodeType&&at.find.matchesSelector(n,t))){a.push(n);break}return this.pushStack(a.length>1?at.uniqueSort(a):a)},index:function(t){return t?"string"==typeof t?Z.call(at(t),this[0]):Z.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(at.uniqueSort(at.merge(this.get(),at(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),at.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return ut(t,"parentNode")},parentsUntil:function(t,e,n){return ut(t,"parentNode",n)},next:function(t){return o(t,"nextSibling")},prev:function(t){return o(t,"previousSibling")},nextAll:function(t){return ut(t,"nextSibling")},prevAll:function(t){return ut(t,"previousSibling")},nextUntil:function(t,e,n){return ut(t,"nextSibling",n)},prevUntil:function(t,e,n){return ut(t,"previousSibling",n)},siblings:function(t){return pt((t.parentNode||{}).firstChild,t)},children:function(t){return pt(t.firstChild)},contents:function(t){return t.contentDocument||at.merge([],t.childNodes)}},function(t,e){at.fn[t]=function(n,i){var o=at.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=at.filter(i,o)),this.length>1&&(xt[t]||at.uniqueSort(o),bt.test(t)&&o.reverse()),this.pushStack(o)}});var wt=/\S+/g;at.Callbacks=function(t){t="string"==typeof t?a(t):at.extend({},t);var e,n,i,o,r=[],s=[],l=-1,c=function(){for(o=t.once,i=e=!0;s.length;l=-1)for(n=s.shift();++l<r.length;)r[l].apply(n[0],n[1])===!1&&t.stopOnFalse&&(l=r.length,n=!1);t.memory||(n=!1),e=!1,o&&(r=n?[]:"")},d={add:function(){return r&&(n&&!e&&(l=r.length-1,s.push(n)),function e(n){at.each(n,function(n,i){at.isFunction(i)?t.unique&&d.has(i)||r.push(i):i&&i.length&&"string"!==at.type(i)&&e(i)})}(arguments),n&&!e&&c()),this},remove:function(){return at.each(arguments,function(t,e){for(var n;(n=at.inArray(e,r,n))>-1;)r.splice(n,1),l>=n&&l--}),this},has:function(t){return t?at.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=s=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=s=[],n||(r=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=n||[],n=[t,n.slice?n.slice():n],s.push(n),e||c()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d},at.extend({Deferred:function(t){var e=[["resolve","done",at.Callbacks("once memory"),"resolved"],["reject","fail",at.Callbacks("once memory"),"rejected"],["notify","progress",at.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var t=arguments;return at.Deferred(function(n){at.each(e,function(e,a){var r=at.isFunction(t[e])&&t[e];o[a[1]](function(){var t=r&&r.apply(this,arguments);t&&at.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[a[0]+"With"](this===i?n.promise():this,r?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?at.extend(t,i):i}},o={};return i.pipe=i.then,at.each(e,function(t,a){var r=a[2],s=a[3];i[a[1]]=r.add,s&&r.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),o[a[0]]=function(){return o[a[0]+"With"](this===o?i:this,arguments),this},o[a[0]+"With"]=r.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e,n,i,o=0,a=Q.call(arguments),r=a.length,s=1!==r||t&&at.isFunction(t.promise)?r:0,l=1===s?t:at.Deferred(),c=function(t,n,i){return function(o){n[t]=this,i[t]=arguments.length>1?Q.call(arguments):o,i===e?l.notifyWith(n,i):--s||l.resolveWith(n,i)}};if(r>1)for(e=new Array(r),n=new Array(r),i=new Array(r);r>o;o++)a[o]&&at.isFunction(a[o].promise)?a[o].promise().progress(c(o,n,e)).done(c(o,i,a)).fail(l.reject):--s;return s||l.resolveWith(i,a),l.promise()}});var _t;at.fn.ready=function(t){return at.ready.promise().done(t),this},at.extend({isReady:!1,readyWait:1,holdReady:function(t){t?at.readyWait++:at.ready(!0)},ready:function(t){(t===!0?--at.readyWait:at.isReady)||(at.isReady=!0,t!==!0&&--at.readyWait>0||(_t.resolveWith(G,[at]),at.fn.triggerHandler&&(at(G).triggerHandler("ready"),at(G).off("ready"))))}}),at.ready.promise=function(e){return _t||(_t=at.Deferred(),"complete"===G.readyState||"loading"!==G.readyState&&!G.documentElement.doScroll?t.setTimeout(at.ready):(G.addEventListener("DOMContentLoaded",r),t.addEventListener("load",r))),_t.promise(e)},at.ready.promise();var kt=function(t,e,n,i,o,a,r){var s=0,l=t.length,c=null==n;if("object"===at.type(n)){o=!0;for(s in n)kt(t,e,s,n[s],!0,a,r)}else if(void 0!==i&&(o=!0,at.isFunction(i)||(r=!0),c&&(r?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(at(t),n)})),e))for(;l>s;s++)e(t[s],n,r?i:i.call(t[s],s,e(t[s],n)));return o?t:c?e.call(t):l?e(t[0],n):a},Ct=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};s.uid=1,s.prototype={register:function(t,e){var n=e||{};return t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!Ct(t))return{};var e=t[this.expando];return e||(e={},Ct(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[e]=n;else for(i in e)o[i]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var i;return void 0===e||e&&"string"==typeof e&&void 0===n?(i=this.get(t,e),void 0!==i?i:this.get(t,at.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i,o,a=t[this.expando];if(void 0!==a){if(void 0===e)this.register(t);else{at.isArray(e)?i=e.concat(e.map(at.camelCase)):(o=at.camelCase(e),e in a?i=[e,o]:(i=o,i=i in a?[i]:i.match(wt)||[])),n=i.length;for(;n--;)delete a[i[n]]}(void 0===e||at.isEmptyObject(a))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!at.isEmptyObject(e)}};var St=new s,Tt=new s,$t=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ft=/[A-Z]/g;at.extend({hasData:function(t){return Tt.hasData(t)||St.hasData(t)},data:function(t,e,n){return Tt.access(t,e,n)},removeData:function(t,e){Tt.remove(t,e)},_data:function(t,e,n){return St.access(t,e,n)},_removeData:function(t,e){St.remove(t,e)}}),at.fn.extend({data:function(t,e){var n,i,o,a=this[0],r=a&&a.attributes;if(void 0===t){if(this.length&&(o=Tt.get(a),1===a.nodeType&&!St.get(a,"hasDataAttrs"))){for(n=r.length;n--;)r[n]&&(i=r[n].name,0===i.indexOf("data-")&&(i=at.camelCase(i.slice(5)),l(a,i,o[i])));St.set(a,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each(function(){Tt.set(this,t)}):kt(this,function(e){var n,i;if(a&&void 0===e){if(n=Tt.get(a,t)||Tt.get(a,t.replace(Ft,"-$&").toLowerCase()),void 0!==n)return n;if(i=at.camelCase(t),n=Tt.get(a,i),void 0!==n)return n;if(n=l(a,i,void 0),void 0!==n)return n}else i=at.camelCase(t),this.each(function(){var n=Tt.get(this,i);Tt.set(this,i,e),t.indexOf("-")>-1&&void 0!==n&&Tt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Tt.remove(this,t)})}}),at.extend({queue:function(t,e,n){var i;return t?(e=(e||"fx")+"queue",i=St.get(t,e),n&&(!i||at.isArray(n)?i=St.access(t,e,at.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=at.queue(t,e),i=n.length,o=n.shift(),a=at._queueHooks(t,e),r=function(){at.dequeue(t,e)};"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete a.stop,o.call(t,r,a)),!i&&a&&a.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return St.get(t,n)||St.access(t,n,{empty:at.Callbacks("once memory").add(function(){St.remove(t,[e+"queue",n])})})}}),at.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?at.queue(this[0],t):void 0===e?this:this.each(function(){var n=at.queue(this,t,e);at._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&at.dequeue(this,t)})},dequeue:function(t){return this.each(function(){at.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,o=at.Deferred(),a=this,r=this.length,s=function(){--i||o.resolveWith(a,[a])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)n=St.get(a[r],t+"queueHooks"),n&&n.empty&&(i++,n.empty.add(s));return s(),o.promise(e)}});var Dt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Et=new RegExp("^(?:([+-])=|)("+Dt+")([a-z%]*)$","i"),At=["Top","Right","Bottom","Left"],Ot=function(t,e){return t=e||t,"none"===at.css(t,"display")||!at.contains(t.ownerDocument,t)},Nt=/^(?:checkbox|radio)$/i,Rt=/<([\w:-]+)/,It=/^$|\/(?:java|ecma)script/i,Mt={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,"",""]};Mt.optgroup=Mt.option,Mt.tbody=Mt.tfoot=Mt.colgroup=Mt.caption=Mt.thead,Mt.th=Mt.td;var Lt=/<|&#?\w+;/;!function(){var t=G.createDocumentFragment(),e=t.appendChild(G.createElement("div")),n=G.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),it.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",it.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var jt=/^key/,Pt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,zt=/^([^.]*)(?:\.(.+)|)/;at.event={global:{},add:function(t,e,n,i,o){var a,r,s,l,c,d,u,p,f,h,m,g=St.get(t);if(g)for(n.handler&&(a=n,n=a.handler,o=a.selector),n.guid||(n.guid=at.guid++),(l=g.events)||(l=g.events={}),(r=g.handle)||(r=g.handle=function(e){return"undefined"!=typeof at&&at.event.triggered!==e.type?at.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(wt)||[""],c=e.length;c--;)s=zt.exec(e[c])||[],f=m=s[1],h=(s[2]||"").split(".").sort(),f&&(u=at.event.special[f]||{},f=(o?u.delegateType:u.bindType)||f,u=at.event.special[f]||{},d=at.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&at.expr.match.needsContext.test(o),namespace:h.join(".")},a),(p=l[f])||(p=l[f]=[],p.delegateCount=0,u.setup&&u.setup.call(t,i,h,r)!==!1||t.addEventListener&&t.addEventListener(f,r)),u.add&&(u.add.call(t,d),d.handler.guid||(d.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,d):p.push(d),at.event.global[f]=!0)},remove:function(t,e,n,i,o){var a,r,s,l,c,d,u,p,f,h,m,g=St.hasData(t)&&St.get(t);if(g&&(l=g.events)){for(e=(e||"").match(wt)||[""],c=e.length;c--;)if(s=zt.exec(e[c])||[],f=m=s[1],h=(s[2]||"").split(".").sort(),f){for(u=at.event.special[f]||{},f=(i?u.delegateType:u.bindType)||f,p=l[f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=a=p.length;a--;)d=p[a],!o&&m!==d.origType||n&&n.guid!==d.guid||s&&!s.test(d.namespace)||i&&i!==d.selector&&("**"!==i||!d.selector)||(p.splice(a,1),d.selector&&p.delegateCount--,u.remove&&u.remove.call(t,d));r&&!p.length&&(u.teardown&&u.teardown.call(t,h,g.handle)!==!1||at.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)at.event.remove(t,f+e[c],n,i,!0);at.isEmptyObject(l)&&St.remove(t,"handle events")}},dispatch:function(t){t=at.event.fix(t);var e,n,i,o,a,r=[],s=Q.call(arguments),l=(St.get(this,"events")||{})[t.type]||[],c=at.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){for(r=at.event.handlers.call(this,t,l),e=0;(o=r[e++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,n=0;(a=o.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(a.namespace)||(t.handleObj=a,t.data=a.data,i=((at.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,s),void 0!==i&&(t.result=i)===!1&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,o,a,r=[],s=e.delegateCount,l=t.target;if(s&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==t.type)){for(i=[],n=0;s>n;n++)a=e[n],o=a.selector+" ",void 0===i[o]&&(i[o]=a.needsContext?at(o,this).index(l)>-1:at.find(o,this,null,[l]).length),i[o]&&i.push(a);i.length&&r.push({elem:l,handlers:i})}return s<e.length&&r.push({elem:this,handlers:e.slice(s)}),r},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,o,a=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||G,i=n.documentElement,o=n.body,t.pageX=e.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)),t.which||void 0===a||(t.which=1&a?1:2&a?3:4&a?2:0),t}},fix:function(t){if(t[at.expando])return t;var e,n,i,o=t.type,a=t,r=this.fixHooks[o];for(r||(this.fixHooks[o]=r=Pt.test(o)?this.mouseHooks:jt.test(o)?this.keyHooks:{}),i=r.props?this.props.concat(r.props):this.props,t=new at.Event(a),e=i.length;e--;)n=i[e],t[n]=a[n];return t.target||(t.target=G),3===t.target.nodeType&&(t.target=t.target.parentNode),r.filter?r.filter(t,a):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==m()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===m()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&at.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return at.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},at.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},at.Event=function(t,e){return this instanceof at.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?f:h):this.type=t,e&&at.extend(this,e),this.timeStamp=t&&t.timeStamp||at.now(),void(this[at.expando]=!0)):new at.Event(t,e)},at.Event.prototype={constructor:at.Event,isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=f,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=f,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=f,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},at.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){at.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,o=t.relatedTarget,a=t.handleObj;return o&&(o===i||at.contains(i,o))||(t.type=a.origType,n=a.handler.apply(this,arguments),t.type=e),n}}}),at.fn.extend({on:function(t,e,n,i){return g(this,t,e,n,i)},one:function(t,e,n,i){return g(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,at(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return e!==!1&&"function"!=typeof e||(n=e,e=void 0),n===!1&&(n=h),this.each(function(){at.event.remove(this,t,n,e)})}});var Ht=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Yt=/<script|<style|<link/i,Bt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ut=/^true\/(.*)/,Wt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;at.extend({htmlPrefilter:function(t){return t.replace(Ht,"<$1></$2>")},clone:function(t,e,n){var i,o,a,r,s=t.cloneNode(!0),l=at.contains(t.ownerDocument,t);if(!(it.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||at.isXMLDoc(t)))for(r=d(s),a=d(t),i=0,o=a.length;o>i;i++)w(a[i],r[i]);if(e)if(n)for(a=a||d(t),r=r||d(s),i=0,o=a.length;o>i;i++)x(a[i],r[i]);else x(t,s);return r=d(s,"script"),r.length>0&&u(r,!l&&d(t,"script")),s},cleanData:function(t){for(var e,n,i,o=at.event.special,a=0;void 0!==(n=t[a]);a++)if(Ct(n)){if(e=n[St.expando]){if(e.events)for(i in e.events)o[i]?at.event.remove(n,i):at.removeEvent(n,i,e.handle);n[St.expando]=void 0}n[Tt.expando]&&(n[Tt.expando]=void 0)}}}),at.fn.extend({domManip:_,detach:function(t){return k(this,t,!0)},remove:function(t){return k(this,t)},text:function(t){return kt(this,function(t){return void 0===t?at.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return _(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=y(this,t);e.appendChild(t)}})},prepend:function(){return _(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=y(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return _(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return _(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(at.cleanData(d(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return at.clone(this,t,e)})},html:function(t){return kt(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Yt.test(t)&&!Mt[(Rt.exec(t)||["",""])[1].toLowerCase()]){t=at.htmlPrefilter(t);try{for(;i>n;n++)e=this[n]||{},1===e.nodeType&&(at.cleanData(d(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return _(this,arguments,function(e){var n=this.parentNode;at.inArray(this,t)<0&&(at.cleanData(d(this)),n&&n.replaceChild(e,this))},t)}}),at.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){at.fn[t]=function(t){for(var n,i=[],o=at(t),a=o.length-1,r=0;a>=r;r++)n=r===a?this:this.clone(!0),at(o[r])[e](n),J.apply(i,n.get());return this.pushStack(i)}});var qt,Vt={HTML:"block",BODY:"block"},Xt=/^margin/,Gt=new RegExp("^("+Dt+")(?!px)[a-z%]+$","i"),Qt=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},Kt=function(t,e,n,i){var o,a,r={};for(a in e)r[a]=t.style[a],t.style[a]=e[a];o=n.apply(t,i||[]);for(a in e)t.style[a]=r[a];return o},Jt=G.documentElement;!function(){function e(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",Jt.appendChild(r);var e=t.getComputedStyle(s);n="1%"!==e.top,a="2px"===e.marginLeft,i="4px"===e.width,s.style.marginRight="50%",o="4px"===e.marginRight,Jt.removeChild(r)}var n,i,o,a,r=G.createElement("div"),s=G.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",it.clearCloneStyle="content-box"===s.style.backgroundClip,r.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",r.appendChild(s),at.extend(it,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return null==i&&e(),i},pixelMarginRight:function(){return null==i&&e(),o},reliableMarginLeft:function(){return null==i&&e(),a},reliableMarginRight:function(){var e,n=s.appendChild(G.createElement("div"));return n.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",s.style.width="1px",Jt.appendChild(r),e=!parseFloat(t.getComputedStyle(n).marginRight),Jt.removeChild(r),s.removeChild(n),e}}))}();var Zt=/^(none|table(?!-c[ea]).+)/,te={position:"absolute",visibility:"hidden",display:"block"},ee={letterSpacing:"0",fontWeight:"400"},ne=["Webkit","O","Moz","ms"],ie=G.createElement("div").style;at.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=T(t,"opacity");return""===n?"1":n}}}},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:{float:"cssFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,a,r,s=at.camelCase(e),l=t.style;return e=at.cssProps[s]||(at.cssProps[s]=F(s)||s),r=at.cssHooks[e]||at.cssHooks[s],void 0===n?r&&"get"in r&&void 0!==(o=r.get(t,!1,i))?o:l[e]:(a=typeof n,"string"===a&&(o=Et.exec(n))&&o[1]&&(n=c(t,e,o),a="number"),void(null!=n&&n===n&&("number"===a&&(n+=o&&o[3]||(at.cssNumber[s]?"":"px")),it.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),r&&"set"in r&&void 0===(n=r.set(t,n,i))||(l[e]=n))))}},css:function(t,e,n,i){var o,a,r,s=at.camelCase(e);return e=at.cssProps[s]||(at.cssProps[s]=F(s)||s),r=at.cssHooks[e]||at.cssHooks[s],r&&"get"in r&&(o=r.get(t,!0,n)),void 0===o&&(o=T(t,e,i)),"normal"===o&&e in ee&&(o=ee[e]),""===n||n?(a=parseFloat(o),n===!0||isFinite(a)?a||0:o):o}}),at.each(["height","width"],function(t,e){at.cssHooks[e]={get:function(t,n,i){return n?Zt.test(at.css(t,"display"))&&0===t.offsetWidth?Kt(t,te,function(){return A(t,e,i)}):A(t,e,i):void 0},set:function(t,n,i){var o,a=i&&Qt(t),r=i&&E(t,e,i,"border-box"===at.css(t,"boxSizing",!1,a),a);return r&&(o=Et.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=at.css(t,e)),D(t,n,r)}}}),at.cssHooks.marginLeft=$(it.reliableMarginLeft,function(t,e){return e?(parseFloat(T(t,"marginLeft"))||t.getBoundingClientRect().left-Kt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px":void 0}),at.cssHooks.marginRight=$(it.reliableMarginRight,function(t,e){return e?Kt(t,{display:"inline-block"},T,[t,"marginRight"]):void 0}),at.each({margin:"",padding:"",border:"Width"},function(t,e){at.cssHooks[t+e]={expand:function(n){for(var i=0,o={},a="string"==typeof n?n.split(" "):[n];4>i;i++)o[t+At[i]+e]=a[i]||a[i-2]||a[0];return o}},Xt.test(t)||(at.cssHooks[t+e].set=D)}),at.fn.extend({css:function(t,e){return kt(this,function(t,e,n){var i,o,a={},r=0;if(at.isArray(e)){for(i=Qt(t),o=e.length;o>r;r++)a[e[r]]=at.css(t,e[r],!1,i);return a}return void 0!==n?at.style(t,e,n):at.css(t,e)},t,e,arguments.length>1)},show:function(){return O(this,!0)},hide:function(){return O(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Ot(this)?at(this).show():at(this).hide()})}}),at.Tween=N,N.prototype={constructor:N,init:function(t,e,n,i,o,a){this.elem=t,this.prop=n,this.easing=o||at.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=a||(at.cssNumber[n]?"":"px")},cur:function(){var t=N.propHooks[this.prop];return t&&t.get?t.get(this):N.propHooks._default.get(this)},run:function(t){var e,n=N.propHooks[this.prop];return this.options.duration?this.pos=e=at.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):N.propHooks._default.set(this),this}},N.prototype.init.prototype=N.prototype,N.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=at.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){at.fx.step[t.prop]?at.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[at.cssProps[t.prop]]&&!at.cssHooks[t.prop]?t.elem[t.prop]=t.now:at.style(t.elem,t.prop,t.now+t.unit)}}},N.propHooks.scrollTop=N.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},at.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},at.fx=N.prototype.init,at.fx.step={};var oe,ae,re=/^(?:toggle|show|hide)$/,se=/queueHooks$/;at.Animation=at.extend(P,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return c(n.elem,t,Et.exec(e),n),n}]},tweener:function(t,e){at.isFunction(t)?(e=t,t=["*"]):t=t.match(wt);for(var n,i=0,o=t.length;o>i;i++)n=t[i],P.tweeners[n]=P.tweeners[n]||[],P.tweeners[n].unshift(e)},prefilters:[L],prefilter:function(t,e){e?P.prefilters.unshift(t):P.prefilters.push(t)}}),at.speed=function(t,e,n){var i=t&&"object"==typeof t?at.extend({},t):{complete:n||!n&&e||at.isFunction(t)&&t,duration:t,easing:n&&e||e&&!at.isFunction(e)&&e};return i.duration=at.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in at.fx.speeds?at.fx.speeds[i.duration]:at.fx.speeds._default,null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){at.isFunction(i.old)&&i.old.call(this),i.queue&&at.dequeue(this,i.queue)},i},at.fn.extend({fadeTo:function(t,e,n,i){return this.filter(Ot).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=at.isEmptyObject(t),a=at.speed(e,n,i),r=function(){var e=P(this,at.extend({},t),a);(o||St.get(this,"finish"))&&e.stop(!0)};return r.finish=r,o||a.queue===!1?this.each(r):this.queue(a.queue,r)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,o=null!=t&&t+"queueHooks",a=at.timers,r=St.get(this);if(o)r[o]&&r[o].stop&&i(r[o]);else for(o in r)r[o]&&r[o].stop&&se.test(o)&&i(r[o]);for(o=a.length;o--;)a[o].elem!==this||null!=t&&a[o].queue!==t||(a[o].anim.stop(n),e=!1,a.splice(o,1));!e&&n||at.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=St.get(this),i=n[t+"queue"],o=n[t+"queueHooks"],a=at.timers,r=i?i.length:0;for(n.finish=!0,at.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=a.length;e--;)a[e].elem===this&&a[e].queue===t&&(a[e].anim.stop(!0),a.splice(e,1));for(e=0;r>e;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),at.each(["toggle","show","hide"],function(t,e){var n=at.fn[e];at.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(I(e,!0),t,i,o)}}),at.each({slideDown:I("show"),slideUp:I("hide"),slideToggle:I("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){at.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),at.timers=[],at.fx.tick=function(){var t,e=0,n=at.timers;for(oe=at.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);
  n.length||at.fx.stop(),oe=void 0},at.fx.timer=function(t){at.timers.push(t),t()?at.fx.start():at.timers.pop()},at.fx.interval=13,at.fx.start=function(){ae||(ae=t.setInterval(at.fx.tick,at.fx.interval))},at.fx.stop=function(){t.clearInterval(ae),ae=null},at.fx.speeds={slow:600,fast:200,_default:400},at.fn.delay=function(e,n){return e=at.fx?at.fx.speeds[e]||e:e,n=n||"fx",this.queue(n,function(n,i){var o=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(o)}})},function(){var t=G.createElement("input"),e=G.createElement("select"),n=e.appendChild(G.createElement("option"));t.type="checkbox",it.checkOn=""!==t.value,it.optSelected=n.selected,e.disabled=!0,it.optDisabled=!n.disabled,t=G.createElement("input"),t.value="t",t.type="radio",it.radioValue="t"===t.value}();var le,ce=at.expr.attrHandle;at.fn.extend({attr:function(t,e){return kt(this,at.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){at.removeAttr(this,t)})}}),at.extend({attr:function(t,e,n){var i,o,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"==typeof t.getAttribute?at.prop(t,e,n):(1===a&&at.isXMLDoc(t)||(e=e.toLowerCase(),o=at.attrHooks[e]||(at.expr.match.bool.test(e)?le:void 0)),void 0!==n?null===n?void at.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(i=o.get(t,e))?i:(i=at.find.attr(t,e),null==i?void 0:i))},attrHooks:{type:{set:function(t,e){if(!it.radioValue&&"radio"===e&&at.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i,o=0,a=e&&e.match(wt);if(a&&1===t.nodeType)for(;n=a[o++];)i=at.propFix[n]||n,at.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)}}),le={set:function(t,e,n){return e===!1?at.removeAttr(t,n):t.setAttribute(n,n),n}},at.each(at.expr.match.bool.source.match(/\w+/g),function(t,e){var n=ce[e]||at.find.attr;ce[e]=function(t,e,i){var o,a;return i||(a=ce[e],ce[e]=o,o=null!=n(t,e,i)?e.toLowerCase():null,ce[e]=a),o}});var de=/^(?:input|select|textarea|button)$/i,ue=/^(?:a|area)$/i;at.fn.extend({prop:function(t,e){return kt(this,at.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[at.propFix[t]||t]})}}),at.extend({prop:function(t,e,n){var i,o,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&at.isXMLDoc(t)||(e=at.propFix[e]||e,o=at.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=at.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||ue.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),it.optSelected||(at.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),at.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){at.propFix[this.toLowerCase()]=this});var pe=/[\t\r\n\f]/g;at.fn.extend({addClass:function(t){var e,n,i,o,a,r,s,l=0;if(at.isFunction(t))return this.each(function(e){at(this).addClass(t.call(this,e,z(this)))});if("string"==typeof t&&t)for(e=t.match(wt)||[];n=this[l++];)if(o=z(n),i=1===n.nodeType&&(" "+o+" ").replace(pe," ")){for(r=0;a=e[r++];)i.indexOf(" "+a+" ")<0&&(i+=a+" ");s=at.trim(i),o!==s&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,o,a,r,s,l=0;if(at.isFunction(t))return this.each(function(e){at(this).removeClass(t.call(this,e,z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(wt)||[];n=this[l++];)if(o=z(n),i=1===n.nodeType&&(" "+o+" ").replace(pe," ")){for(r=0;a=e[r++];)for(;i.indexOf(" "+a+" ")>-1;)i=i.replace(" "+a+" "," ");s=at.trim(i),o!==s&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):at.isFunction(t)?this.each(function(n){at(this).toggleClass(t.call(this,n,z(this),e),e)}):this.each(function(){var e,i,o,a;if("string"===n)for(i=0,o=at(this),a=t.match(wt)||[];e=a[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||(e=z(this),e&&St.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":St.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+z(n)+" ").replace(pe," ").indexOf(e)>-1)return!0;return!1}});var fe=/\r/g,he=/[\x20\t\r\n\f]+/g;at.fn.extend({val:function(t){var e,n,i,o=this[0];return arguments.length?(i=at.isFunction(t),this.each(function(n){var o;1===this.nodeType&&(o=i?t.call(this,n,at(this).val()):t,null==o?o="":"number"==typeof o?o+="":at.isArray(o)&&(o=at.map(o,function(t){return null==t?"":t+""})),e=at.valHooks[this.type]||at.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))})):o?(e=at.valHooks[o.type]||at.valHooks[o.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:(n=o.value,"string"==typeof n?n.replace(fe,""):null==n?"":n)):void 0}}),at.extend({valHooks:{option:{get:function(t){var e=at.find.attr(t,"value");return null!=e?e:at.trim(at.text(t)).replace(he," ")}},select:{get:function(t){for(var e,n,i=t.options,o=t.selectedIndex,a="select-one"===t.type||0>o,r=a?null:[],s=a?o+1:i.length,l=0>o?s:a?o:0;s>l;l++)if(n=i[l],(n.selected||l===o)&&(it.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!at.nodeName(n.parentNode,"optgroup"))){if(e=at(n).val(),a)return e;r.push(e)}return r},set:function(t,e){for(var n,i,o=t.options,a=at.makeArray(e),r=o.length;r--;)i=o[r],(i.selected=at.inArray(at.valHooks.option.get(i),a)>-1)&&(n=!0);return n||(t.selectedIndex=-1),a}}}}),at.each(["radio","checkbox"],function(){at.valHooks[this]={set:function(t,e){return at.isArray(e)?t.checked=at.inArray(at(t).val(),e)>-1:void 0}},it.checkOn||(at.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var me=/^(?:focusinfocus|focusoutblur)$/;at.extend(at.event,{trigger:function(e,n,i,o){var a,r,s,l,c,d,u,p=[i||G],f=nt.call(e,"type")?e.type:e,h=nt.call(e,"namespace")?e.namespace.split("."):[];if(r=s=i=i||G,3!==i.nodeType&&8!==i.nodeType&&!me.test(f+at.event.triggered)&&(f.indexOf(".")>-1&&(h=f.split("."),f=h.shift(),h.sort()),c=f.indexOf(":")<0&&"on"+f,e=e[at.expando]?e:new at.Event(f,"object"==typeof e&&e),e.isTrigger=o?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:at.makeArray(n,[e]),u=at.event.special[f]||{},o||!u.trigger||u.trigger.apply(i,n)!==!1)){if(!o&&!u.noBubble&&!at.isWindow(i)){for(l=u.delegateType||f,me.test(l+f)||(r=r.parentNode);r;r=r.parentNode)p.push(r),s=r;s===(i.ownerDocument||G)&&p.push(s.defaultView||s.parentWindow||t)}for(a=0;(r=p[a++])&&!e.isPropagationStopped();)e.type=a>1?l:u.bindType||f,d=(St.get(r,"events")||{})[e.type]&&St.get(r,"handle"),d&&d.apply(r,n),d=c&&r[c],d&&d.apply&&Ct(r)&&(e.result=d.apply(r,n),e.result===!1&&e.preventDefault());return e.type=f,o||e.isDefaultPrevented()||u._default&&u._default.apply(p.pop(),n)!==!1||!Ct(i)||c&&at.isFunction(i[f])&&!at.isWindow(i)&&(s=i[c],s&&(i[c]=null),at.event.triggered=f,i[f](),at.event.triggered=void 0,s&&(i[c]=s)),e.result}},simulate:function(t,e,n){var i=at.extend(new at.Event,n,{type:t,isSimulated:!0});at.event.trigger(i,null,e)}}),at.fn.extend({trigger:function(t,e){return this.each(function(){at.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?at.event.trigger(t,e,n,!0):void 0}}),at.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){at.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),at.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),it.focusin="onfocusin"in t,it.focusin||at.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){at.event.simulate(e,t.target,at.event.fix(t))};at.event.special[e]={setup:function(){var i=this.ownerDocument||this,o=St.access(i,e);o||i.addEventListener(t,n,!0),St.access(i,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=St.access(i,e)-1;o?St.access(i,e,o):(i.removeEventListener(t,n,!0),St.remove(i,e))}}});var ge=t.location,ye=at.now(),ve=/\?/;at.parseJSON=function(t){return JSON.parse(t+"")},at.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||at.error("Invalid XML: "+e),n};var be=/#.*$/,xe=/([?&])_=[^&]*/,we=/^(.*?):[ \t]*([^\r\n]*)$/gm,_e=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ke=/^(?:GET|HEAD)$/,Ce=/^\/\//,Se={},Te={},$e="*/".concat("*"),Fe=G.createElement("a");Fe.href=ge.href,at.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ge.href,type:"GET",isLocal:_e.test(ge.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$e,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":at.parseJSON,"text xml":at.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?B(B(t,at.ajaxSettings),e):B(at.ajaxSettings,t)},ajaxPrefilter:H(Se),ajaxTransport:H(Te),ajax:function(e,n){function i(e,n,i,s){var c,u,v,b,w,k=n;2!==x&&(x=2,l&&t.clearTimeout(l),o=void 0,r=s||"",_.readyState=e>0?4:0,c=e>=200&&300>e||304===e,i&&(b=U(p,_,i)),b=W(p,b,_,c),c?(p.ifModified&&(w=_.getResponseHeader("Last-Modified"),w&&(at.lastModified[a]=w),w=_.getResponseHeader("etag"),w&&(at.etag[a]=w)),204===e||"HEAD"===p.type?k="nocontent":304===e?k="notmodified":(k=b.state,u=b.data,v=b.error,c=!v)):(v=k,!e&&k||(k="error",0>e&&(e=0))),_.status=e,_.statusText=(n||k)+"",c?m.resolveWith(f,[u,k,_]):m.rejectWith(f,[_,k,v]),_.statusCode(y),y=void 0,d&&h.trigger(c?"ajaxSuccess":"ajaxError",[_,p,c?u:v]),g.fireWith(f,[_,k]),d&&(h.trigger("ajaxComplete",[_,p]),--at.active||at.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=void 0),n=n||{};var o,a,r,s,l,c,d,u,p=at.ajaxSetup({},n),f=p.context||p,h=p.context&&(f.nodeType||f.jquery)?at(f):at.event,m=at.Deferred(),g=at.Callbacks("once memory"),y=p.statusCode||{},v={},b={},x=0,w="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!s)for(s={};e=we.exec(r);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?r:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=b[n]=b[n]||t,v[t]=e),this},overrideMimeType:function(t){return x||(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>x)for(e in t)y[e]=[y[e],t[e]];else _.always(t[_.status]);return this},abort:function(t){var e=t||w;return o&&o.abort(e),i(0,e),this}};if(m.promise(_).complete=g.add,_.success=_.done,_.error=_.fail,p.url=((e||p.url||ge.href)+"").replace(be,"").replace(Ce,ge.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=at.trim(p.dataType||"*").toLowerCase().match(wt)||[""],null==p.crossDomain){c=G.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=Fe.protocol+"//"+Fe.host!=c.protocol+"//"+c.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=at.param(p.data,p.traditional)),Y(Se,p,n,_),2===x)return _;d=at.event&&p.global,d&&0===at.active++&&at.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!ke.test(p.type),a=p.url,p.hasContent||(p.data&&(a=p.url+=(ve.test(a)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=xe.test(a)?a.replace(xe,"$1_="+ye++):a+(ve.test(a)?"&":"?")+"_="+ye++)),p.ifModified&&(at.lastModified[a]&&_.setRequestHeader("If-Modified-Since",at.lastModified[a]),at.etag[a]&&_.setRequestHeader("If-None-Match",at.etag[a])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&_.setRequestHeader("Content-Type",p.contentType),_.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+$e+"; q=0.01":""):p.accepts["*"]);for(u in p.headers)_.setRequestHeader(u,p.headers[u]);if(p.beforeSend&&(p.beforeSend.call(f,_,p)===!1||2===x))return _.abort();w="abort";for(u in{success:1,error:1,complete:1})_[u](p[u]);if(o=Y(Te,p,n,_)){if(_.readyState=1,d&&h.trigger("ajaxSend",[_,p]),2===x)return _;p.async&&p.timeout>0&&(l=t.setTimeout(function(){_.abort("timeout")},p.timeout));try{x=1,o.send(v,i)}catch(t){if(!(2>x))throw t;i(-1,t)}}else i(-1,"No Transport");return _},getJSON:function(t,e,n){return at.get(t,e,n,"json")},getScript:function(t,e){return at.get(t,void 0,e,"script")}}),at.each(["get","post"],function(t,e){at[e]=function(t,n,i,o){return at.isFunction(n)&&(o=o||i,i=n,n=void 0),at.ajax(at.extend({url:t,type:e,dataType:o,data:n,success:i},at.isPlainObject(t)&&t))}}),at._evalUrl=function(t){return at.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},at.fn.extend({wrapAll:function(t){var e;return at.isFunction(t)?this.each(function(e){at(this).wrapAll(t.call(this,e))}):(this[0]&&(e=at(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return at.isFunction(t)?this.each(function(e){at(this).wrapInner(t.call(this,e))}):this.each(function(){var e=at(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=at.isFunction(t);return this.each(function(n){at(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){at.nodeName(this,"body")||at(this).replaceWith(this.childNodes)}).end()}}),at.expr.filters.hidden=function(t){return!at.expr.filters.visible(t)},at.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var De=/%20/g,Ee=/\[\]$/,Ae=/\r?\n/g,Oe=/^(?:submit|button|image|reset|file)$/i,Ne=/^(?:input|select|textarea|keygen)/i;at.param=function(t,e){var n,i=[],o=function(t,e){e=at.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=at.ajaxSettings&&at.ajaxSettings.traditional),at.isArray(t)||t.jquery&&!at.isPlainObject(t))at.each(t,function(){o(this.name,this.value)});else for(n in t)q(n,t[n],e,o);return i.join("&").replace(De,"+")},at.fn.extend({serialize:function(){return at.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=at.prop(this,"elements");return t?at.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!at(this).is(":disabled")&&Ne.test(this.nodeName)&&!Oe.test(t)&&(this.checked||!Nt.test(t))}).map(function(t,e){var n=at(this).val();return null==n?null:at.isArray(n)?at.map(n,function(t){return{name:e.name,value:t.replace(Ae,"\r\n")}}):{name:e.name,value:n.replace(Ae,"\r\n")}}).get()}}),at.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Re={0:200,1223:204},Ie=at.ajaxSettings.xhr();it.cors=!!Ie&&"withCredentials"in Ie,it.ajax=Ie=!!Ie,at.ajaxTransport(function(e){var n,i;return it.cors||Ie&&!e.crossDomain?{send:function(o,a){var r,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)s[r]=e.xhrFields[r];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");for(r in o)s.setRequestHeader(r,o[r]);n=function(t){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Re[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout(function(){n&&i()})},n=n("abort");try{s.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}:void 0}),at.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return at.globalEval(t),t}}}),at.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),at.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(i,o){e=at("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&o("error"===t.type?404:200,t.type)}),G.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Me=[],Le=/(=)\?(?=&|$)|\?\?/;at.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Me.pop()||at.expando+"_"+ye++;return this[t]=!0,t}}),at.ajaxPrefilter("json jsonp",function(e,n,i){var o,a,r,s=e.jsonp!==!1&&(Le.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Le.test(e.data)&&"data");return s||"jsonp"===e.dataTypes[0]?(o=e.jsonpCallback=at.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Le,"$1"+o):e.jsonp!==!1&&(e.url+=(ve.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return r||at.error(o+" was not called"),r[0]},e.dataTypes[0]="json",a=t[o],t[o]=function(){r=arguments},i.always(function(){void 0===a?at(t).removeProp(o):t[o]=a,e[o]&&(e.jsonpCallback=n.jsonpCallback,Me.push(o)),r&&at.isFunction(a)&&a(r[0]),r=a=void 0}),"script"):void 0}),at.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||G;var i=ht.exec(t),o=!n&&[];return i?[e.createElement(i[1])]:(i=p([t],e,o),o&&o.length&&at(o).remove(),at.merge([],i.childNodes))};var je=at.fn.load;at.fn.load=function(t,e,n){if("string"!=typeof t&&je)return je.apply(this,arguments);var i,o,a,r=this,s=t.indexOf(" ");return s>-1&&(i=at.trim(t.slice(s)),t=t.slice(0,s)),at.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),r.length>0&&at.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){a=arguments,r.html(i?at("<div>").append(at.parseHTML(t)).find(i):t)}).always(n&&function(t,e){r.each(function(){n.apply(this,a||[t.responseText,e,t])})}),this},at.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){at.fn[e]=function(t){return this.on(e,t)}}),at.expr.filters.animated=function(t){return at.grep(at.timers,function(e){return t===e.elem}).length},at.offset={setOffset:function(t,e,n){var i,o,a,r,s,l,c,d=at.css(t,"position"),u=at(t),p={};"static"===d&&(t.style.position="relative"),s=u.offset(),a=at.css(t,"top"),l=at.css(t,"left"),c=("absolute"===d||"fixed"===d)&&(a+l).indexOf("auto")>-1,c?(i=u.position(),r=i.top,o=i.left):(r=parseFloat(a)||0,o=parseFloat(l)||0),at.isFunction(e)&&(e=e.call(t,n,at.extend({},s))),null!=e.top&&(p.top=e.top-s.top+r),null!=e.left&&(p.left=e.left-s.left+o),"using"in e?e.using.call(t,p):u.css(p)}},at.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){at.offset.setOffset(this,t,e)});var e,n,i=this[0],o={top:0,left:0},a=i&&i.ownerDocument;return a?(e=a.documentElement,at.contains(e,i)?(o=i.getBoundingClientRect(),n=V(a),{top:o.top+n.pageYOffset-e.clientTop,left:o.left+n.pageXOffset-e.clientLeft}):o):void 0},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===at.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),at.nodeName(t[0],"html")||(i=t.offset()),i.top+=at.css(t[0],"borderTopWidth",!0),i.left+=at.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-at.css(n,"marginTop",!0),left:e.left-i.left-at.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===at.css(t,"position");)t=t.offsetParent;return t||Jt})}}),at.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;at.fn[t]=function(i){return kt(this,function(t,i,o){var a=V(t);return void 0===o?a?a[e]:t[i]:void(a?a.scrollTo(n?a.pageXOffset:o,n?o:a.pageYOffset):t[i]=o)},t,i,arguments.length)}}),at.each(["top","left"],function(t,e){at.cssHooks[e]=$(it.pixelPosition,function(t,n){return n?(n=T(t,e),Gt.test(n)?at(t).position()[e]+"px":n):void 0})}),at.each({Height:"height",Width:"width"},function(t,e){at.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){at.fn[i]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),r=n||(i===!0||o===!0?"margin":"border");return kt(this,function(e,n,i){var o;return at.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?at.css(e,n,r):at.style(e,n,i,r)},e,a?i:void 0,a,null)}})}),at.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),at.fn.andSelf=at.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return at});var Pe=t.jQuery,ze=t.$;return at.noConflict=function(e){return t.$===at&&(t.$=ze),e&&t.jQuery===at&&(t.jQuery=Pe),at},e||(t.jQuery=t.$=at),at}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||3<e[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;return t(this).one("bsTransitionEnd",function(){n=!0}),setTimeout(function(){n||t(i).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',n=function(n){t(n).on("click",e,this.close)};n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function i(){r.detach().trigger("closed.bs.alert").remove()}var o=t(this),a=o.attr("data-target");a||(a=(a=o.attr("href"))&&a.replace(/.*(?=#[^\s]*$)/,"")),a="#"===a?[]:a;var r=t(document).find(a);e&&e.preventDefault(),r.length||(r=o.closest(".alert")),r.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var i=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var i=t(this),o=i.data("bs.alert");o||i.data("bs.alert",o=new n(this)),"string"==typeof e&&o[e].call(i)})},t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.bs.alert.data-api",e,n.prototype.close)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.button"),a="object"==typeof e&&e;o||i.data("bs.button",o=new n(this,a)),"toggle"==e?o.toggle():e&&o.setState(e)})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.4.1",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",i=this.$element,o=i.is("input")?"val":"html",a=i.data();e+="Text",null==a.resetText&&i.data("resetText",i[o]()),setTimeout(t.proxy(function(){i[o](null==a[e]?this.options[e]:a[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=t(n.target).closest(".btn");e.call(i,"toggle"),t(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.carousel"),a=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),r="string"==typeof e?e:a.slide;o||i.data("bs.carousel",o=new n(this,a)),"number"==typeof e?o.to(e):r?o[r]():a.interval&&o.pause().cycle()})}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};n.VERSION="3.4.1",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},n.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var i=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(i)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(n<t?"next":"prev",this.$items.eq(t))},n.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(e,i){var o=this.$element.find(".item.active"),a=i||this.getItemForDirection(e,o),r=this.interval,s="next"==e?"left":"right",l=this;if(a.hasClass("active"))return this.sliding=!1;var c=a[0],d=t.Event("slide.bs.carousel",{relatedTarget:c,direction:s});if(this.$element.trigger(d),!d.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=t(this.$indicators.children()[this.getItemIndex(a)]);u&&u.addClass("active")}var p=t.Event("slid.bs.carousel",{relatedTarget:c,direction:s});return t.support.transition&&this.$element.hasClass("slide")?(a.addClass(e),"object"==typeof a&&a.length&&a[0].offsetWidth,o.addClass(s),a.addClass(s),o.one("bsTransitionEnd",function(){a.removeClass([e,s].join(" ")).addClass("active"),o.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(p)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(o.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger(p)),r&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var o=function(n){var i=t(this),o=i.attr("href");o&&(o=o.replace(/.*(?=#[^\s]+$)/,""));var a=i.attr("data-target")||o,r=t(document).find(a);if(r.hasClass("carousel")){var s=t.extend({},r.data(),i.data()),l=i.attr("data-slide-to");l&&(s.interval=!1),e.call(r,s),l&&r.data("bs.carousel").to(l),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",o).on("click.bs.carousel.data-api","[data-slide-to]",o),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var n=t(this);e.call(n,n.data())})})}(jQuery),function(t){"use strict";function e(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(i)}function n(e){return this.each(function(){var n=t(this),o=n.data("bs.collapse"),a=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!o&&a.toggle&&/show|hide/.test(e)&&(a.toggle=!1),o||n.data("bs.collapse",o=new i(this,a)),"string"==typeof e&&o[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.4.1",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(e=o.data("bs.collapse"))&&e.transitioning)){var a=t.Event("show.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){o&&o.length&&(n.call(o,"hide"),e||o.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[r](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){
  var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return o.call(this);this.$element[n](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(i.TRANSITION_DURATION)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,i){var o=t(i);this.addAriaAndCollapsedClass(e(o),o)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var o=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var o=t(this);o.attr("data-target")||i.preventDefault();var a=e(o),r=a.data("bs.collapse")?"toggle":o.data();n.call(a,r)})}(jQuery),function(t){"use strict";function e(e){var n=e.attr("data-target");n||(n=(n=e.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i="#"!==n?t(document).find(n):null;return i&&i.length?i:e.parent()}function n(n){n&&3===n.which||(t(".dropdown-backdrop").remove(),t(i).each(function(){var i=t(this),o=e(i),a={relatedTarget:this};o.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(o[0],n.target)||(o.trigger(n=t.Event("hide.bs.dropdown",a)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),o.removeClass("open").trigger(t.Event("hidden.bs.dropdown",a)))))}))}var i='[data-toggle="dropdown"]',o=function(e){t(e).on("click.bs.dropdown",this.toggle)};o.VERSION="3.4.1",o.prototype.toggle=function(i){var o=t(this);if(!o.is(".disabled, :disabled")){var a=e(o),r=a.hasClass("open");if(n(),!r){"ontouchstart"in document.documentElement&&!a.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var s={relatedTarget:this};if(a.trigger(i=t.Event("show.bs.dropdown",s)),i.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),a.toggleClass("open").trigger(t.Event("shown.bs.dropdown",s))}return!1}},o.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var o=t(this);if(n.preventDefault(),n.stopPropagation(),!o.is(".disabled, :disabled")){var a=e(o),r=a.hasClass("open");if(!r&&27!=n.which||r&&27==n.which)return 27==n.which&&a.find(i).trigger("focus"),o.trigger("click");var s=a.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(n.target);38==n.which&&0<l&&l--,40==n.which&&l<s.length-1&&l++,~l||(l=0),s.eq(l).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new o(this)),"string"==typeof e&&i[e].call(n)})},t.fn.dropdown.Constructor=o,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",i,o.prototype.toggle).on("keydown.bs.dropdown.data-api",i,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(jQuery),function(t){"use strict";function e(e,i){return this.each(function(){var o=t(this),a=o.data("bs.modal"),r=t.extend({},n.DEFAULTS,o.data(),"object"==typeof e&&e);a||o.data("bs.modal",a=new n(this,r)),"string"==typeof e?a[e](i):r.show&&a.show(i)})}var n=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.4.1",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},n.prototype.show=function(e){var i=this,o=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(o),this.isShown||o.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"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var o=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),o&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var a=t.Event("shown.bs.modal",{relatedTarget:e});o?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(a)}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(a)}))},n.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(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"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(e){var i=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var a=t.support.transition&&o;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),a&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;a?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):r()}else e&&e()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var n=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",e+n),t(this.fixedContent).each(function(e,i){var o=i.style.paddingRight,a=t(i).css("padding-right");t(i).data("padding-right",o).css("padding-right",parseFloat(a)+n+"px")}))},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),t(this.fixedContent).each(function(e,n){var i=t(n).data("padding-right");t(n).removeData("padding-right"),n.style.paddingRight=i||""})},n.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=t(this),o=i.attr("href"),a=i.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,""),r=t(document).find(a),s=r.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(o)&&o},r.data(),i.data());i.is("a")&&n.preventDefault(),r.one("show.bs.modal",function(t){t.isDefaultPrevented()||r.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),e.call(r,s,this)})}(jQuery),function(t){"use strict";function e(e,n){var i=e.nodeName.toLowerCase();if(-1!==t.inArray(i,n))return-1===t.inArray(i,o)||Boolean(e.nodeValue.match(r)||e.nodeValue.match(s));for(var a=t(n).filter(function(t,e){return e instanceof RegExp}),l=0,c=a.length;l<c;l++)if(i.match(a[l]))return!0;return!1}function n(n,i,o){if(0===n.length)return n;if(o&&"function"==typeof o)return o(n);if(!document.implementation||!document.implementation.createHTMLDocument)return n;var a=document.implementation.createHTMLDocument("sanitization");a.body.innerHTML=n;for(var r=t.map(i,function(t,e){return e}),s=t(a.body).find("*"),l=0,c=s.length;l<c;l++){var d=s[l],u=d.nodeName.toLowerCase();if(-1!==t.inArray(u,r))for(var p=t.map(d.attributes,function(t){return t}),f=[].concat(i["*"]||[],i[u]||[]),h=0,m=p.length;h<m;h++)e(p[h],f)||d.removeAttribute(p[h].nodeName);else d.parentNode.removeChild(d)}return a.body.innerHTML}var i=["sanitize","whiteList","sanitizeFn"],o=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],a={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},r=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,s=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,l=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};l.VERSION="3.4.1",l.TRANSITION_DURATION=150,l.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},sanitize:!0,sanitizeFn:null,whiteList:a},l.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(document).find(t.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(var o=this.options.trigger.split(" "),a=o.length;a--;){var r=o[a];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var s="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(e){var o=this.$element.data();for(var a in o)o.hasOwnProperty(a)&&-1!==t.inArray(a,i)&&delete o[a];return(e=t.extend({},this.getDefaults(),o,e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e.sanitize&&(e.template=n(e.template,e.whiteList,e.sanitizeFn)),e},l.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},l.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},l.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},l.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var i=this,o=this.tip(),a=this.getUID(this.type);this.setContent(),o.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&o.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,c=s.test(r);c&&(r=r.replace(s,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?o.appendTo(t(document).find(this.options.container)):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var d=this.getPosition(),u=o[0].offsetWidth,p=o[0].offsetHeight;if(c){var f=r,h=this.getPosition(this.$viewport);r="bottom"==r&&d.bottom+p>h.bottom?"top":"top"==r&&d.top-p<h.top?"bottom":"right"==r&&d.right+u>h.width?"left":"left"==r&&d.left-u<h.left?"right":r,o.removeClass(f).addClass(r)}var m=this.getCalculatedOffset(r,d,u,p);this.applyPlacement(m,r);var g=function(){var t=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==t&&i.leave(i)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",g).emulateTransitionEnd(l.TRANSITION_DURATION):g()}},l.prototype.applyPlacement=function(e,n){var i=this.tip(),o=i[0].offsetWidth,a=i[0].offsetHeight,r=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(s)&&(s=0),e.top+=r,e.left+=s,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,c=i[0].offsetHeight;"top"==n&&c!=a&&(e.top=e.top+a-c);var d=this.getViewportAdjustedDelta(n,e,l,c);d.left?e.left+=d.left:e.top+=d.top;var u=/top|bottom/.test(n),p=u?2*d.left-o+l:2*d.top-a+c,f=u?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(p,i[0][f],u)},l.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},l.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=n(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},l.prototype.hide=function(e){function n(){"in"!=i.hoverState&&o.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),e&&e()}var i=this,o=t(this.$tip),a=t.Event("hide.bs."+this.type);if(this.$element.trigger(a),!a.isDefaultPrevented())return o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(l.TRANSITION_DURATION):n(),this.hoverState=null,this},l.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},l.prototype.hasContent=function(){return this.getTitle()},l.prototype.getPosition=function(e){var n=(e=e||this.$element)[0],i="BODY"==n.tagName,o=n.getBoundingClientRect();null==o.width&&(o=t.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var a=window.SVGElement&&n instanceof window.SVGElement,r=i?{top:0,left:0}:a?null:e.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},o,s,l,r)},l.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},l.prototype.getViewportAdjustedDelta=function(t,e,n,i){var o={top:0,left:0};if(!this.$viewport)return o;var a=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-a-r.scroll,l=e.top+a-r.scroll+i;s<r.top?o.top=r.top-s:l>r.top+r.height&&(o.top=r.top+r.height-l)}else{var c=e.left-a,d=e.left+a+n;c<r.left?o.left=r.left-c:d>r.right&&(o.left=r.left+r.width-d)}return o},l.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},l.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},l.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},l.prototype.sanitizeHtml=function(t){return n(t,this.options.whiteList,this.options.sanitizeFn)};var c=t.fn.tooltip;t.fn.tooltip=function(e){return this.each(function(){var n=t(this),i=n.data("bs.tooltip"),o="object"==typeof e&&e;!i&&/destroy|hide/.test(e)||(i||n.data("bs.tooltip",i=new l(this,o)),"string"==typeof e&&i[e]())})},t.fn.tooltip.Constructor=l,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=c,this}}(jQuery),function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.4.1",e.DEFAULTS=t.extend({},t.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>'}),((e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype)).constructor=e).prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();if(this.options.html){var i=typeof n;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===i&&(n=this.sanitizeHtml(n))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===i?"html":"append"](n)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(n);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=function(n){return this.each(function(){var i=t(this),o=i.data("bs.popover"),a="object"==typeof n&&n;!o&&/destroy|hide/.test(n)||(o||i.data("bs.popover",o=new e(this,a)),"string"==typeof n&&o[n]())})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=t(this),o=i.data("bs.scrollspy"),a="object"==typeof n&&n;o||i.data("bs.scrollspy",o=new e(this,a)),"string"==typeof n&&o[n]()})}e.VERSION="3.4.1",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),o=e.data("target")||e.attr("href"),a=/^#./.test(o)&&t(o);return a&&a.length&&a.is(":visible")&&[[a[n]().top+i,o]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,a=this.targets,r=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=e)return r!=(t=a[a.length-1])&&this.activate(t);if(r&&e<o[0])return this.activeTarget=null,this.clear();for(t=o.length;t--;)r!=a[t]&&e>=o[t]&&(void 0===o[t+1]||e<o[t+1])&&this.activate(a[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.tab");o||i.data("bs.tab",o=new n(this)),"string"==typeof e&&o[e]()})}var n=function(e){this.element=t(e)};n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var o=n.find(".active:last a"),a=t.Event("hide.bs.tab",{relatedTarget:e[0]}),r=t.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(a),e.trigger(r),!r.isDefaultPrevented()&&!a.isDefaultPrevented()){var s=t(document).find(i);this.activate(e.closest("li"),n),this.activate(s,s.parent(),function(){o.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:o[0]})})}}},n.prototype.activate=function(e,i,o){function a(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}var r=i.find("> .active"),s=o&&t.support.transition&&(r.length&&r.hasClass("fade")||!!i.find("> .fade").length);r.length&&s?r.one("bsTransitionEnd",a).emulateTransitionEnd(n.TRANSITION_DURATION):a(),r.removeClass("in")};var i=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var o=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.affix"),a="object"==typeof e&&e;o||i.data("bs.affix",o=new n(this,a)),"string"==typeof e&&o[e]()})}var n=function(e,i){this.options=t.extend({},n.DEFAULTS,i);var o=this.options.target===n.DEFAULTS.target?t(this.options.target):t(document).find(this.options.target);this.$target=o.on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.4.1",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,i){var o=this.$target.scrollTop(),a=this.$element.offset(),r=this.$target.height();if(null!=n&&"top"==this.affixed)return o<n&&"top";if("bottom"==this.affixed)return null!=n?!(o+this.unpin<=a.top)&&"bottom":!(o+r<=t-i)&&"bottom";var s=null==this.affixed,l=s?o:a.top;return null!=n&&o<=n?"top":null!=i&&t-i<=l+(s?r:e)&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),i=this.options.offset,o=i.top,a=i.bottom,r=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(a=o=i),"function"==typeof o&&(o=i.top(this.$element)),"function"==typeof a&&(a=i.bottom(this.$element));var s=this.getState(r,e,o,a);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:r-e-a})}};var i=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),e.call(n,i)})})}(jQuery),define("bootstrap",["jquery"],function(){}),require.config({urlArgs:"v="+requirejs.s.contexts._.config.config.site.version,packages:[{name:"moment",location:"../libs/moment",main:"moment"}],include:["css","layer","toastr","fast","backend","backend-init","table","form","dragsort","drag","drop","addtabs","selectpage"],paths:{lang:"empty:",form:"require-form",table:"require-table",upload:"require-upload",drag:"jquery.drag.min",drop:"jquery.drop.min",dropzone:"dropzone.min",echarts:"echarts.min","echarts-theme":"echarts-theme",adminlte:"adminlte","bootstrap-table-commonsearch":"bootstrap-table-commonsearch","bootstrap-table-template":"bootstrap-table-template",jquery:"../libs/jquery/dist/jquery.min",bootstrap:"../libs/bootstrap/dist/js/bootstrap.min","bootstrap-datetimepicker":"../libs/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min","bootstrap-daterangepicker":"../libs/bootstrap-daterangepicker/daterangepicker","bootstrap-select":"../libs/bootstrap-select/dist/js/bootstrap-select.min","bootstrap-select-lang":"../libs/bootstrap-select/dist/js/i18n/defaults-zh_CN","bootstrap-table":"../libs/bootstrap-table/dist/bootstrap-table.min","bootstrap-table-export":"../libs/bootstrap-table/dist/extensions/export/bootstrap-table-export.min","bootstrap-table-fixed-columns":"../libs/bootstrap-table/dist/extensions/fixed-columns/bootstrap-table-fixed-columns","bootstrap-table-mobile":"../libs/bootstrap-table/dist/extensions/mobile/bootstrap-table-mobile","bootstrap-table-lang":"../libs/bootstrap-table/dist/locale/bootstrap-table-zh-CN","bootstrap-table-jumpto":"../libs/bootstrap-table/dist/extensions/page-jumpto/bootstrap-table-jumpto","bootstrap-slider":"../libs/bootstrap-slider/bootstrap-slider",tableexport:"../libs/tableExport.jquery.plugin/tableExport.min",dragsort:"../libs/fastadmin-dragsort/jquery.dragsort",sortable:"../libs/Sortable/Sortable.min",addtabs:"../libs/fastadmin-addtabs/jquery.addtabs",slimscroll:"../libs/jquery-slimscroll/jquery.slimscroll",validator:"../libs/nice-validator/dist/jquery.validator","validator-lang":"../libs/nice-validator/dist/local/zh-CN",toastr:"../libs/toastr/toastr",jstree:"../libs/jstree/dist/jstree.min",layer:"../libs/fastadmin-layer/dist/layer",cookie:"../libs/jquery.cookie/jquery.cookie",cxselect:"../libs/fastadmin-cxselect/js/jquery.cxselect",template:"../libs/art-template/dist/template-native",selectpage:"../libs/fastadmin-selectpage/selectpage",citypicker:"../libs/fastadmin-citypicker/dist/js/city-picker.min",
  "citypicker-data":"../libs/fastadmin-citypicker/dist/js/city-picker.data"},shim:{addons:["backend"],bootstrap:["jquery"],"bootstrap-table":{deps:["bootstrap"],exports:"$.fn.bootstrapTable"},"bootstrap-table-lang":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-export":{deps:["bootstrap-table","tableexport"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-fixed-columns":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-mobile":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-advancedsearch":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-commonsearch":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-template":{deps:["bootstrap-table","template"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-jumpto":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},tableexport:{deps:["jquery"],exports:"$.fn.extend"},slimscroll:{deps:["jquery"],exports:"$.fn.extend"},adminlte:{deps:["bootstrap","slimscroll"],exports:"$.AdminLTE"},"bootstrap-daterangepicker":["moment/locale/zh-cn"],"bootstrap-datetimepicker":["moment/locale/zh-cn"],"bootstrap-select-lang":["bootstrap-select"],jstree:["css!../libs/jstree/dist/themes/default/style.css"],"validator-lang":["validator"],citypicker:["citypicker-data","css!../libs/fastadmin-citypicker/dist/css/city-picker.css"]},baseUrl:requirejs.s.contexts._.config.config.site.cdnurl+"/assets/js/",map:{"*":{css:"../libs/require-css/css.min"}},waitSeconds:30,charset:"utf-8"}),require(["jquery","bootstrap"],function(t,e){var n=requirejs.s.contexts._.config.config;window.Config=n;var i={};i.lang=n.moduleurl+"/ajax/lang?callback=define&controllername="+n.controllername+"&lang="+n.language+"&v="+n.site.version,i["backend/"]="backend/",require.config({paths:i}),t(function(){require(["fast"],function(t){require(["backend","backend-init","addons"],function(t,e,i){n.jsname&&require([n.jsname],function(t){t.hasOwnProperty(n.actionname)?t[n.actionname]():t.hasOwnProperty("_empty")&&t._empty()},function(t){console.error(t)})})})})}),define("require-backend",function(){}),define("../libs/require-css/css.min",[],function(){if("undefined"==typeof window)return{load:function(t,e,n){n()}};var t=document.getElementsByTagName("head")[0],e=window.navigator.userAgent.match(/Trident\/([^ ;]*)|AppleWebKit\/([^ ;]*)|Opera\/([^ ;]*)|rv\:([^ ;]*)(.*?)Gecko\/([^ ;]*)|MSIE\s([^ ;]*)|AndroidWebKit\/([^ ;]*)/)||0,n=!1,i=!0;e[1]||e[7]?n=parseInt(e[1])<6||parseInt(e[7])<=9:e[2]||e[8]?i=!1:e[4]&&(n=parseInt(e[4])<18);var o={};o.pluginBuilder="./css-builder";var a,r,s,l=function(){a=document.createElement("style"),t.appendChild(a),r=a.styleSheet||a.sheet},c=0,d=[],u=function(t){r.addImport(t),a.onload=function(){p()},c++,31==c&&(l(),c=0)},p=function(){s();var t=d.shift();return t?(s=t[1],void u(t[0])):void(s=null)},f=function(t,e){if(r&&r.addImport||l(),r&&r.addImport)s?d.push([t,e]):(u(t),s=e);else{a.textContent='@import "'+t+'";';var n=setInterval(function(){try{a.sheet.cssRules,clearInterval(n),e()}catch(t){}},10)}},h=function(e,n){var o=document.createElement("link");if(o.type="text/css",o.rel="stylesheet",i)o.onload=function(){o.onload=function(){},setTimeout(n,7)};else var a=setInterval(function(){for(var t=0;t<document.styleSheets.length;t++){var e=document.styleSheets[t];if(e.href==o.href)return clearInterval(a),n()}},10);o.href=e,t.appendChild(o)};return o.normalize=function(t,e){return".css"==t.substr(t.length-4,4)&&(t=t.substr(0,t.length-4)),e(t)},o.load=function(t,e,i,o){(n?f:h)(e.toUrl(t+".css"),i)},o}),!function(t,e){"use strict";var n,i,o=t.layui&&layui.define,a={getPath:function(){var t=document.currentScript?document.currentScript.src:function(){for(var t,e=document.scripts,n=e.length-1,i=n;i>0;i--)if("interactive"===e[i].readyState){t=e[i].src;break}return t||e[n].src}();return t.substring(0,t.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["&#x786E;&#x5B9A;","&#x53D6;&#x6D88;"],type:["dialog","page","iframe","loading","tips"],getStyle:function(e,n){var i=e.currentStyle?e.currentStyle:t.getComputedStyle(e,null);return i[i.getPropertyValue?"getPropertyValue":"getAttribute"](n)},link:function(e,n,i){if(r.path){var o=document.getElementsByTagName("head")[0],s=document.createElement("link");"string"==typeof n&&(i=n);var l=(i||e).replace(/\.|\//g,""),c="layuicss-"+l,d=0;s.rel="stylesheet",s.href=r.path+e,s.id=c,document.getElementById(c)||o.appendChild(s),"function"==typeof n&&!function e(){return++d>80?t.console&&console.error("layer.css: Invalid"):void(1989===parseInt(a.getStyle(document.getElementById(c),"width"))?n():setTimeout(e,100))}()}}},r={v:"3.1.5",ie:function(){var e=navigator.userAgent.toLowerCase();return!!(t.ActiveXObject||"ActiveXObject"in t)&&((e.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:t.layer&&t.layer.v?1e5:0,path:a.getPath,config:function(t,e){return t=t||{},c=r.cache=a.config=n.extend({},a.config,t),r.path=a.config.path||r.path,"string"==typeof t.extend&&(t.extend=[t.extend]),a.config.path&&r.ready(),t.extend?(o?layui.addcss("modules/layer/"+t.extend):a.link("theme/"+t.extend),this):this},ready:function(t){var e="layer",n="",i=(o?"modules/layer/":"theme/")+"default/layer.css?v="+r.v+n;return o?layui.addcss(i,t,e):a.link(i,t,e),this},alert:function(t,e,i){var o="function"==typeof e;return o&&(i=e),r.open(n.extend({content:t,yes:i},o?{}:e))},confirm:function(t,e,i,o){var s="function"==typeof e;return s&&(o=i,i=e),r.open(n.extend({content:t,btn:a.btn,yes:i,btn2:o},s?{}:e))},msg:function(t,i,o){var s="function"==typeof i,c=a.config.skin,d=(c?c+" "+c+"-msg":"")||"layui-layer-msg",u=l.anim.length-1;return s&&(o=i),r.open(n.extend({content:t,time:3e3,shade:!1,skin:d,title:!1,closeBtn:!1,btn:!1,resize:!1,end:o},s&&!a.config.skin?{skin:d+" layui-layer-hui",anim:u}:function(){return i=i||{},i.icon!==-1&&i.icon!==e||(i.skin=d+" "+(i.skin||"layui-layer-hui")),i}()))},load:function(t,e){return r.open(n.extend({type:3,icon:t||0,resize:!1,shade:.01},e))},tips:function(t,e,i){return r.open(n.extend({type:4,content:[t,e],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:210},i))}},s=function(t){var e=this;e.index=++r.index,e.config=n.extend({},e.config,a.config,t),document.body?e.creat():setTimeout(function(){e.creat()},30)};s.pt=s.prototype;var l=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];l.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],s.pt.config={type:0,shade:.3,fixed:!0,move:l[1],title:"&#x4FE1;&#x606F;",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,focusBtn:0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2},s.pt.vessel=function(t,e){var i=this,o=i.index,r=i.config,s=r.zIndex+o,c="object"==typeof r.title,d=r.maxmin&&(1===r.type||2===r.type),u=r.title?'<div class="layui-layer-title" style="'+(c?r.title[1]:"")+'">'+(c?r.title[0]:r.title)+"</div>":"";return r.zIndex=s,e([r.shade?'<div class="layui-layer-shade" id="layui-layer-shade'+o+'" times="'+o+'" style="'+("z-index:"+(s-1)+"; ")+'"></div>':"",'<div class="'+l[0]+(" layui-layer-"+a.type[r.type])+(0!=r.type&&2!=r.type||r.shade?"":" layui-layer-border")+" "+(r.skin||"")+'" id="'+l[0]+o+'" type="'+a.type[r.type]+'" times="'+o+'" showtime="'+r.time+'" conType="'+(t?"object":"string")+'" style="z-index: '+s+"; width:"+r.area[0]+";height:"+r.area[1]+(r.fixed?"":";position:absolute;")+'">'+(t&&2!=r.type?"":u)+'<div id="'+(r.id||"")+'" class="layui-layer-content'+(0==r.type&&r.icon!==-1?" layui-layer-padding":"")+(3==r.type?" layui-layer-loading"+r.icon:"")+'">'+(0==r.type&&r.icon!==-1?'<i class="layui-layer-ico layui-layer-ico'+r.icon+'"></i>':"")+(1==r.type&&t?"":r.content||"")+'</div><span class="layui-layer-setwin">'+function(){var t=d?'<a class="layui-layer-min" href="javascript:;"><cite></cite></a><a class="layui-layer-ico layui-layer-max" href="javascript:;"></a>':"";return r.closeBtn&&(t+='<a class="layui-layer-ico '+l[7]+" "+l[7]+(r.title?r.closeBtn:4==r.type?"1":"2")+'" href="javascript:;"></a>'),t}()+"</span>"+(r.btn?function(){var t="";"string"==typeof r.btn&&(r.btn=[r.btn]);for(var e=0,n=r.btn.length;e<n;e++)t+='<a class="'+l[6]+e+'" href="javascript:;">'+r.btn[e]+"</a>";return'<div class="'+l[6]+" layui-layer-btn-"+(r.btnAlign||"")+'">'+t+"</div>"}():"")+(r.resize?'<span class="layui-layer-resize"></span>':"")+"</div>"],u,n('<div class="layui-layer-move"></div>')),i},s.pt.creat=function(){var t=this,e=t.config,o=t.index,s=e.content,c="object"==typeof s,d=n("body");if(!e.id||!n("#"+e.id)[0]){switch("string"==typeof e.area&&(e.area="auto"===e.area?["",""]:[e.area,""]),e.shift&&(e.anim=e.shift),6==r.ie&&(e.fixed=!1),e.type){case 0:e.btn="btn"in e?e.btn:a.btn[0],r.closeAll("dialog");break;case 2:var s=e.content=c?e.content:[e.content||"http://layer.layui.com","auto"];e.content='<iframe scrolling="'+(e.content[1]||"auto")+'" allowtransparency="true" id="'+l[4]+o+'" name="'+l[4]+o+'" onload="this.className=\'\';" class="layui-layer-load" frameborder="0" src="'+e.content[0]+'"></iframe>';break;case 3:delete e.title,delete e.closeBtn,e.icon===-1&&0===e.icon,r.closeAll("loading");break;case 4:c||(e.content=[e.content,"body"]),e.follow=e.content[1],e.content=e.content[0]+'<i class="layui-layer-TipsG"></i>',delete e.title,e.tips="object"==typeof e.tips?e.tips:[e.tips,!0],e.tipsMore||r.closeAll("tips")}if(t.vessel(c,function(i,r,u){d.append(i[0]),c?function(){2==e.type||4==e.type?function(){n("body").append(i[1])}():function(){s.parents("."+l[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(i[1]),n("#"+l[0]+o).find("."+l[5]).before(r))}()}():d.append(i[1]),n(".layui-layer-move")[0]||d.append(a.moveElem=u),t.layero=n("#"+l[0]+o),e.scrollbar||l.html.css("overflow","hidden").attr("layer-full",o)}).auto(o),n("#layui-layer-shade"+t.index).css({"background-color":e.shade[1]||"#000",opacity:e.shade[0]||e.shade}),2==e.type&&6==r.ie&&t.layero.find("iframe").attr("src",s[0]),4==e.type?t.tips():t.offset(),e.fixed&&i.on("resize",function(){t.offset(),(/^\d+%$/.test(e.area[0])||/^\d+%$/.test(e.area[1]))&&t.auto(o),4==e.type&&t.tips()}),e.time<=0||setTimeout(function(){r.close(t.index)},e.time),t.move().callback(),l.anim[e.anim]){var u="layer-anim "+l.anim[e.anim];t.layero.addClass(u).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){n(this).removeClass(u)})}e.isOutAnim&&t.layero.data("isOutAnim",!0)}},s.pt.auto=function(t){var e=this,o=e.config,a=n("#"+l[0]+t);""===o.area[0]&&o.maxWidth>0&&(r.ie&&r.ie<8&&o.btn&&a.width(a.innerWidth()),a.outerWidth()>o.maxWidth&&a.width(o.maxWidth));var s=[a.innerWidth(),a.innerHeight()],c=a.find(l[1]).outerHeight()||0,d=a.find("."+l[6]).outerHeight()||0,u=function(t){t=a.find(t),t.height(s[1]-c-d-2*(0|parseFloat(t.css("padding-top"))))};switch(o.type){case 2:u("iframe");break;default:""===o.area[1]?o.maxHeight>0&&a.outerHeight()>o.maxHeight?(s[1]=o.maxHeight,u("."+l[5])):o.fixed&&s[1]>=i.height()&&(s[1]=i.height(),u("."+l[5])):u("."+l[5])}return e},s.pt.offset=function(){var t=this,e=t.config,n=t.layero,o=[n.outerWidth(),n.outerHeight()],a="object"==typeof e.offset;t.offsetTop=(i.height()-o[1])/2,t.offsetLeft=(i.width()-o[0])/2,a?(t.offsetTop=e.offset[0],t.offsetLeft=e.offset[1]||t.offsetLeft):"auto"!==e.offset&&("t"===e.offset?t.offsetTop=0:"r"===e.offset?t.offsetLeft=i.width()-o[0]:"b"===e.offset?t.offsetTop=i.height()-o[1]:"l"===e.offset?t.offsetLeft=0:"lt"===e.offset?(t.offsetTop=0,t.offsetLeft=0):"lb"===e.offset?(t.offsetTop=i.height()-o[1],t.offsetLeft=0):"rt"===e.offset?(t.offsetTop=0,t.offsetLeft=i.width()-o[0]):"rb"===e.offset?(t.offsetTop=i.height()-o[1],t.offsetLeft=i.width()-o[0]):t.offsetTop=e.offset),e.fixed||(t.offsetTop=/%$/.test(t.offsetTop)?i.height()*parseFloat(t.offsetTop)/100:parseFloat(t.offsetTop),t.offsetLeft=/%$/.test(t.offsetLeft)?i.width()*parseFloat(t.offsetLeft)/100:parseFloat(t.offsetLeft),t.offsetTop+=i.scrollTop(),t.offsetLeft+=i.scrollLeft()),n.attr("minLeft")&&(t.offsetTop=i.height()-(n.find(l[1]).outerHeight()||0),t.offsetLeft=n.css("left")),n.css({top:t.offsetTop,left:t.offsetLeft})},s.pt.tips=function(){var t=this,e=t.config,o=t.layero,a=[o.outerWidth(),o.outerHeight()],r=n(e.follow);r[0]||(r=n("body"));var s={width:r.outerWidth(),height:r.outerHeight(),top:r.offset().top,left:r.offset().left},c=o.find(".layui-layer-TipsG"),d=e.tips[0];e.tips[1]||c.remove(),s.autoLeft=function(){s.left+a[0]-i.width()>0?(s.tipLeft=s.left+s.width-a[0],c.css({right:12,left:"auto"})):s.tipLeft=s.left},s.where=[function(){s.autoLeft(),s.tipTop=s.top-a[1]-10,c.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",e.tips[1])},function(){s.tipLeft=s.left+s.width+10,s.tipTop=s.top,c.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",e.tips[1])},function(){s.autoLeft(),s.tipTop=s.top+s.height+10,c.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",e.tips[1])},function(){s.tipLeft=s.left-a[0]-10,s.tipTop=s.top,c.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",e.tips[1])}],s.where[d-1](),1===d?s.top-(i.scrollTop()+a[1]+16)<0&&s.where[2]():2===d?i.width()-(s.left+s.width+a[0]+16)>0||s.where[3]():3===d?s.top-i.scrollTop()+s.height+a[1]+16-i.height()>0&&s.where[0]():4===d&&a[0]+16-s.left>0&&s.where[1](),o.find("."+l[5]).css({"background-color":e.tips[1],"padding-right":e.closeBtn?"30px":""}),o.css({left:s.tipLeft-(e.fixed?i.scrollLeft():0),top:s.tipTop-(e.fixed?i.scrollTop():0)})},s.pt.move=function(){var t=this,e=t.config,o=n(document),s=t.layero,l=s.find(e.move),c=s.find(".layui-layer-resize"),d={};return e.move&&l.css("cursor","move"),l.on("mousedown",function(t){t.preventDefault(),e.move&&(d.moveStart=!0,d.offset=[t.clientX-parseFloat(s.css("left")),t.clientY-parseFloat(s.css("top"))],a.moveElem.css("cursor","move").show())}),c.on("mousedown",function(t){t.preventDefault(),d.resizeStart=!0,d.offset=[t.clientX,t.clientY],d.area=[s.outerWidth(),s.outerHeight()],a.moveElem.css("cursor","se-resize").show()}),o.on("mousemove",function(n){if(d.moveStart){var o=n.clientX-d.offset[0],a=n.clientY-d.offset[1],l="fixed"===s.css("position");if(n.preventDefault(),d.stX=l?0:i.scrollLeft(),d.stY=l?0:i.scrollTop(),!e.moveOut){var c=i.width()-s.outerWidth()+d.stX,u=i.height()-s.outerHeight()+d.stY;o<d.stX&&(o=d.stX),o>c&&(o=c),a<d.stY&&(a=d.stY),a>u&&(a=u)}s.css({left:o,top:a})}if(e.resize&&d.resizeStart){var o=n.clientX-d.offset[0],a=n.clientY-d.offset[1];n.preventDefault(),r.style(t.index,{width:d.area[0]+o,height:d.area[1]+a}),d.isResize=!0,e.resizing&&e.resizing(s)}}).on("mouseup",function(t){d.moveStart&&(delete d.moveStart,a.moveElem.hide(),e.moveEnd&&e.moveEnd(s)),d.resizeStart&&(delete d.resizeStart,a.moveElem.hide())}),t},s.pt.callback=function(){function t(){var t=o.cancel&&o.cancel(e.index,i);t===!1||r.close(e.index)}var e=this,i=e.layero,o=e.config;if(e.openLayer(),o.success&&(2==o.type?i.find("iframe").on("load",function(){o.success(i,e.index)}):o.success(i,e.index)),6==r.ie&&e.IE6(i),i.find("."+l[6]).children("a").on("click",function(){var t=n(this).index();if(0===t)o.yes?o.yes(e.index,i):o.btn1?o.btn1(e.index,i):r.close(e.index);else{var a=o["btn"+(t+1)]&&o["btn"+(t+1)](e.index,i);a===!1||r.close(e.index)}}),"number"==typeof o.focusBtn){var s=i.find("."+l[6]).children("a").eq(o.focusBtn);if(s.size()>0){i.find("."+l[6]).css("position","relative");var c=s.position(),d={width:s.outerWidth(),height:s.outerHeight(),left:c.left,top:c.top,marginTop:s.css("marginTop"),marginLeft:s.css("marginLeft")},u=n("<button class='layui-layer-confirm'></button>").css(d);if(o.resize){var p=o.resizing;o.resizing=function(t){p&&p(t);var e=s.position();u.size()>0&&u.css({left:e.left,top:e.top})}}i.find("."+l[6]).append(u),u.focus().click(function(){return s.trigger("click"),!1}).on("focus blur",function(t){s.toggleClass("focus","focus"===t.type),"blur"===t.type&&u.remove()})}}i.find("."+l[7]).on("click",t),o.shadeClose&&n("#layui-layer-shade"+e.index).on("click",function(){r.close(e.index)}),i.find(".layui-layer-min").on("click",function(){var t=o.min&&o.min(i);t===!1||r.min(e.index,o)}),i.find(".layui-layer-max").on("click",function(){n(this).hasClass("layui-layer-maxmin")?(r.restore(e.index),o.restore&&o.restore(i)):(r.full(e.index,o),setTimeout(function(){o.full&&o.full(i)},100))}),o.end&&(a.end[e.index]=o.end)},a.reselect=function(){n.each(n("select"),function(t,e){var i=n(this);i.parents("."+l[0])[0]||1==i.attr("layer")&&n("."+l[0]).length<1&&i.removeAttr("layer").show(),i=null})},s.pt.IE6=function(t){n("select").each(function(t,e){var i=n(this);i.parents("."+l[0])[0]||"none"===i.css("display")||i.attr({layer:"1"}).hide(),i=null})},s.pt.openLayer=function(){var t=this;r.zIndex=t.config.zIndex,r.setTop=function(t){var e=function(){r.zIndex++,t.css("z-index",r.zIndex+1)};return r.zIndex=parseInt(t[0].style.zIndex),t.on("mousedown",e),r.zIndex}},a.record=function(t){var e=[t.width(),t.height(),t.position().top,t.position().left+parseFloat(t.css("margin-left"))];t.find(".layui-layer-max").addClass("layui-layer-maxmin"),t.attr({area:e})},a.rescollbar=function(t){l.html.attr("layer-full")==t&&(l.html[0].style.removeProperty?l.html[0].style.removeProperty("overflow"):l.html[0].style.removeAttribute("overflow"),l.html.removeAttr("layer-full"))},t.layer=r,r.getChildFrame=function(t,e){return e=e||n("."+l[4]).attr("times"),n("#"+l[0]+e).find("iframe").contents().find(t)},r.getFrameIndex=function(t){return n("#"+t).parents("."+l[4]).attr("times")},r.iframeAuto=function(t){if(t){var e=r.getChildFrame("html",t).outerHeight(),i=n("#"+l[0]+t),o=i.find(l[1]).outerHeight()||0,a=i.find("."+l[6]).outerHeight()||0;i.css({height:e+o+a}),i.find("iframe").css({height:e})}},r.iframeSrc=function(t,e){n("#"+l[0]+t).find("iframe").attr("src",e)},r.style=function(t,e,i){var o=n("#"+l[0]+t),r=o.find(".layui-layer-content"),s=o.attr("type"),c=o.find(l[1]).outerHeight()||0,d=o.find("."+l[6]).outerHeight()||0;o.attr("minLeft"),s!==a.type[3]&&s!==a.type[4]&&(i||(parseFloat(e.width)<=260&&(e.width=260),parseFloat(e.height)-c-d<=64&&(e.height=64+c+d)),o.css(e),d=o.find("."+l[6]).outerHeight(),s===a.type[2]?o.find("iframe").css({height:parseFloat(e.height)-c-d}):r.css({height:parseFloat(e.height)-c-d}))},r.min=function(t,e){var o=n("#"+l[0]+t),s=o.find(l[1]).outerHeight()||0,c=o.attr("minLeft")||181*a.minIndex+"px",d=o.css("position");a.record(o),a.minLeft[0]&&(c=a.minLeft[0],a.minLeft.shift()),o.attr("position",d),r.style(t,{width:180,height:s,left:c,top:i.height()-s,position:"fixed",overflow:"hidden"},!0),o.find(".layui-layer-min").hide(),"page"===o.attr("type")&&o.find(l[4]).hide(),a.rescollbar(t),o.attr("minLeft")||a.minIndex++,o.attr("minLeft",c)},r.restore=function(t){var e=n("#"+l[0]+t),i=e.attr("area").split(",");e.attr("type"),r.style(t,{width:parseFloat(i[0]),height:parseFloat(i[1]),top:parseFloat(i[2]),left:parseFloat(i[3]),position:e.attr("position"),overflow:"visible"},!0),e.find(".layui-layer-max").removeClass("layui-layer-maxmin"),e.find(".layui-layer-min").show(),"page"===e.attr("type")&&e.find(l[4]).show(),a.rescollbar(t)},r.full=function(t){var e,o=n("#"+l[0]+t);a.record(o),l.html.attr("layer-full")||l.html.css("overflow","hidden").attr("layer-full",t),clearTimeout(e),e=setTimeout(function(){var e="fixed"===o.css("position");r.style(t,{top:e?0:i.scrollTop(),left:e?0:i.scrollLeft(),width:i.width(),height:i.height()},!0),o.find(".layui-layer-min").hide()},100)},r.title=function(t,e){var i=n("#"+l[0]+(e||r.index)).find(l[1]);i.html(t)},r.close=function(t){var e=n("#"+l[0]+t),i=e.attr("type"),o="layer-anim-close";if(e[0]){var s="layui-layer-wrap",c=function(){if(i===a.type[1]&&"object"===e.attr("conType")){e.children(":not(."+l[5]+")").remove();for(var o=e.find("."+s),r=0;r<2;r++)o.unwrap();o.css("display",o.data("display")).removeClass(s)}else{if(i===a.type[2])try{var c=n("#"+l[4]+t)[0];c.contentWindow.document.write(""),c.contentWindow.close(),e.find("."+l[5])[0].removeChild(c)}catch(t){}e[0].innerHTML="",e.remove()}"function"==typeof a.end[t]&&a.end[t](),delete a.end[t]};e.data("isOutAnim")&&e.addClass("layer-anim "+o),n("#layui-layer-moves, #layui-layer-shade"+t).remove(),6==r.ie&&a.reselect(),a.rescollbar(t),e.attr("minLeft")&&(a.minIndex--,a.minLeft.push(e.attr("minLeft"))),r.ie&&r.ie<10||!e.data("isOutAnim")?c():setTimeout(function(){c()},200)}},r.closeAll=function(t){n.each(n("."+l[0]),function(){var e=n(this),i=t?e.attr("type")===t:1;i&&r.close(e.attr("times")),i=null})};var c=r.cache||{},d=function(t){return c.skin?" "+c.skin+" "+c.skin+"-"+t:""};r.prompt=function(t,e){var o="";if(t=t||{},"function"==typeof t&&(e=t),t.area){var a=t.area;o='style="width: '+a[0]+"; height: "+a[1]+';"',delete t.area}var s,l=2==t.formType?'<textarea class="layui-layer-input"'+o+">"+(t.value||"")+"</textarea>":function(){return'<input type="'+(1==t.formType?"password":"text")+'" class="layui-layer-input" value="'+(t.value||"")+'">'}(),c=t.success;return delete t.success,r.open(n.extend({type:1,btn:["&#x786E;&#x5B9A;","&#x53D6;&#x6D88;"],content:l,skin:"layui-layer-prompt"+d("prompt"),maxWidth:i.width(),success:function(t){s=t.find(".layui-layer-input"),s.focus(),"function"==typeof c&&c(t)},resize:!1,yes:function(n){var i=s.val();""===i?s.focus():i.length>(t.maxlength||500)?r.tips("&#x6700;&#x591A;&#x8F93;&#x5165;"+(t.maxlength||500)+"&#x4E2A;&#x5B57;&#x6570;",s,{tips:1}):e&&e(i,n,s)}},t))},r.tab=function(t){t=t||{};var e=t.tab||{},i="layui-this",o=t.success;return delete t.success,r.open(n.extend({type:1,skin:"layui-layer-tab"+d("tab"),resize:!1,title:function(){var t=e.length,n=1,o="";if(t>0)for(o='<span class="'+i+'">'+e[0].title+"</span>";n<t;n++)o+="<span>"+e[n].title+"</span>";return o}(),content:'<ul class="layui-layer-tabmain">'+function(){var t=e.length,n=1,o="";if(t>0)for(o='<li class="layui-layer-tabli '+i+'">'+(e[0].content||"no content")+"</li>";n<t;n++)o+='<li class="layui-layer-tabli">'+(e[n].content||"no  content")+"</li>";return o}()+"</ul>",success:function(e){var a=e.find(".layui-layer-title").children(),r=e.find(".layui-layer-tabmain").children();a.on("mousedown",function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0;var o=n(this),a=o.index();o.addClass(i).siblings().removeClass(i),r.eq(a).show().siblings().hide(),"function"==typeof t.change&&t.change(a)}),"function"==typeof o&&o(e)}},t))},r.photos=function(e,i,o){function a(t,e,n){var i=new Image;return i.src=t,i.complete?e(i):(i.onload=function(){i.onload=null,e(i)},void(i.onerror=function(t){i.onerror=null,n(t)}))}var s={};if(e=e||{},e.photos){var l=e.photos.constructor===Object,c=l?e.photos:{},u=c.data||[],p=c.start||0;s.imgIndex=(0|p)+1,e.img=e.img||"img";var f=e.success;if(delete e.success,l){if(0===u.length)return r.msg("&#x6CA1;&#x6709;&#x56FE;&#x7247;")}else{var h=n(e.photos),m=function(){u=[],h.find(e.img).each(function(t){var e=n(this);e.attr("layer-index",t),u.push({alt:e.attr("alt"),pid:e.attr("layer-pid"),src:e.attr("layer-src")||e.attr("src"),thumb:e.attr("src")})})};if(m(),0===u.length)return;if(i||h.on("click",e.img,function(){var t=n(this),i=t.attr("layer-index");r.photos(n.extend(e,{photos:{start:i,data:u,tab:e.tab},full:e.full}),!0),m()}),!i)return}s.imgprev=function(t){s.imgIndex--,s.imgIndex<1&&(s.imgIndex=u.length),s.tabimg(t)},s.imgnext=function(t,e){s.imgIndex++,s.imgIndex>u.length&&(s.imgIndex=1,e)||s.tabimg(t)},s.keyup=function(t){if(!s.end){var e=t.keyCode;t.preventDefault(),37===e?s.imgprev(!0):39===e?s.imgnext(!0):27===e&&r.close(s.index)}},s.tabimg=function(t){if(!(u.length<=1))return c.start=s.imgIndex-1,r.close(s.index),r.photos(e,!0,t)},s.event=function(){s.bigimg.hover(function(){s.imgsee.show()},function(){s.imgsee.hide()}),s.bigimg.find(".layui-layer-imgprev").on("click",function(t){t.preventDefault(),s.imgprev()}),s.bigimg.find(".layui-layer-imgnext").on("click",function(t){t.preventDefault(),s.imgnext()}),n(document).on("keyup",s.keyup)},s.loadi=r.load(1,{shade:"shade"in e?e.shade:.9,scrollbar:"scrollbar"in e&&e.scrollbar}),a(u[p].src,function(i){r.close(s.loadi),s.index=r.open(n.extend({type:1,id:"layui-layer-photos",area:function(){var o=[i.width,i.height],a=[n(t).width()-100,n(t).height()-100];if(!e.full&&(o[0]>a[0]||o[1]>a[1])){var r=[o[0]/a[0],o[1]/a[1]];r[0]>r[1]?(o[0]=o[0]/r[0],o[1]=o[1]/r[0]):r[0]<r[1]&&(o[0]=o[0]/r[1],o[1]=o[1]/r[1])}return[o[0]+"px",o[1]+"px"]}(),title:!1,shade:.9,shadeClose:!0,closeBtn:!1,move:".layui-layer-phimg img",moveType:1,scrollbar:!1,moveOut:!0,isOutAnim:!1,skin:"layui-layer-photos"+d("photos"),content:'<div class="layui-layer-phimg"><img src="'+u[p].src+'" alt="'+(u[p].alt||"")+'" layer-pid="'+u[p].pid+'"><div class="layui-layer-imgsee">'+(u.length>1?'<span class="layui-layer-imguide"><a href="javascript:;" class="layui-layer-iconext layui-layer-imgprev"></a><a href="javascript:;" class="layui-layer-iconext layui-layer-imgnext"></a></span>':"")+'<div class="layui-layer-imgbar" style="display:'+(o?"block":"")+'"><span class="layui-layer-imgtit"><a href="javascript:;">'+(u[p].alt||"")+"</a><em>"+s.imgIndex+"/"+u.length+"</em></span></div></div></div>",success:function(t,n){s.bigimg=t.find(".layui-layer-phimg"),s.imgsee=t.find(".layui-layer-imguide,.layui-layer-imgbar"),s.event(t),e.tab&&e.tab(u[p],t),"function"==typeof f&&f(t)},end:function(){s.end=!0,n(document).off("keyup",s.keyup)}},e))},function(){r.close(s.loadi),r.msg("&#x5F53;&#x524D;&#x56FE;&#x7247;&#x5730;&#x5740;&#x5F02;&#x5E38;<br>&#x662F;&#x5426;&#x7EE7;&#x7EED;&#x67E5;&#x770B;&#x4E0B;&#x4E00;&#x5F20;&#xFF1F;",{time:3e4,btn:["&#x4E0B;&#x4E00;&#x5F20;","&#x4E0D;&#x770B;&#x4E86;"],yes:function(){u.length>1&&s.imgnext(!0,!0)}})})}},a.run=function(e){n=e,i=n(t),l.html=n("html"),r.open=function(t){var e=new s(t);return e.index}},t.layui&&layui.define?(r.ready(),layui.define("jquery",function(e){r.path=layui.cache.dir,a.run(layui.$),t.layer=r,e("layer",r)})):"function"==typeof define&&define.amd?define("layer",["jquery"],function(){return a.run(t.jQuery),r}):function(){a.run(t.jQuery),r.ready()}()}(window),function(t){t("toastr",["jquery"],function(t){return function(){function e(t,e,n){return h({type:w.error,iconClass:m().iconClasses.error,message:t,optionsOverride:n,title:e})}function n(e,n){return e||(e=m()),y=t("#"+e.containerId),y.length?y:(n&&(y=u(e)),y)}function i(t,e,n){return h({type:w.info,iconClass:m().iconClasses.info,message:t,optionsOverride:n,title:e})}function o(t){v=t}function a(t,e,n){return h({type:w.success,iconClass:m().iconClasses.success,message:t,optionsOverride:n,title:e})}function r(t,e,n){return h({type:w.warning,iconClass:m().iconClasses.warning,message:t,optionsOverride:n,title:e})}function s(t,e){var i=m();y||n(i),d(t,i,e)||c(i)}function l(e){var i=m();return y||n(i),e&&0===t(":focus",e).length?void g(e):void(y.children().length&&y.remove())}function c(e){for(var n=y.children(),i=n.length-1;i>=0;i--)d(t(n[i]),e)}function d(e,n,i){var o=!(!i||!i.force)&&i.force;return!(!e||!o&&0!==t(":focus",e).length)&&(e[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){g(e)}}),!0)}function u(e){return y=t("<div/>").attr("id",e.containerId).addClass(e.positionClass),y.appendTo(t(e.target)),y}function p(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1}}function f(t){v&&v(t)}function h(e){function i(t){return null==t&&(t=""),t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function o(){l(),d(),u(),p(),h(),v(),c(),a()}function a(){var t="";switch(e.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}D.attr("aria-live",t)}function r(){T.closeOnHover&&D.hover(C,k),!T.onclick&&T.tapToDismiss&&D.click(_),T.closeButton&&N&&N.click(function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&t.cancelBubble!==!0&&(t.cancelBubble=!0),T.onCloseClick&&T.onCloseClick(t),_(!0)}),T.onclick&&D.click(function(t){T.onclick(t),_()})}function s(){D.hide(),D[T.showMethod]({duration:T.showDuration,easing:T.showEasing,complete:T.onShown}),T.timeOut>0&&(F=setTimeout(_,T.timeOut),R.maxHideTime=parseFloat(T.timeOut),R.hideEta=(new Date).getTime()+R.maxHideTime,T.progressBar&&(R.intervalId=setInterval(S,10)))}function l(){e.iconClass&&D.addClass(T.toastClass).addClass($)}function c(){T.newestOnTop?y.prepend(D):y.append(D)}function d(){if(e.title){var t=e.title;T.escapeHtml&&(t=i(e.title)),E.append(t).addClass(T.titleClass),D.append(E)}}function u(){if(e.message){var t=e.message;T.escapeHtml&&(t=i(e.message)),A.append(t).addClass(T.messageClass),D.append(A)}}function p(){T.closeButton&&(N.addClass(T.closeClass).attr("role","button"),D.prepend(N))}function h(){T.progressBar&&(O.addClass(T.progressClass),D.prepend(O))}function v(){T.rtl&&D.addClass("rtl")}function w(t,e){if(t.preventDuplicates){if(e.message===b)return!0;b=e.message}return!1}function _(e){var n=e&&T.closeMethod!==!1?T.closeMethod:T.hideMethod,i=e&&T.closeDuration!==!1?T.closeDuration:T.hideDuration,o=e&&T.closeEasing!==!1?T.closeEasing:T.hideEasing;if(!t(":focus",D).length||e)return clearTimeout(R.intervalId),D[n]({duration:i,easing:o,complete:function(){g(D),clearTimeout(F),T.onHidden&&"hidden"!==I.state&&T.onHidden(),I.state="hidden",I.endTime=new Date,f(I)}})}function k(){(T.timeOut>0||T.extendedTimeOut>0)&&(F=setTimeout(_,T.extendedTimeOut),R.maxHideTime=parseFloat(T.extendedTimeOut),R.hideEta=(new Date).getTime()+R.maxHideTime)}function C(){clearTimeout(F),R.hideEta=0,D.stop(!0,!0)[T.showMethod]({duration:T.showDuration,easing:T.showEasing})}function S(){var t=(R.hideEta-(new Date).getTime())/R.maxHideTime*100;O.width(t+"%")}var T=m(),$=e.iconClass||T.iconClass;if("undefined"!=typeof e.optionsOverride&&(T=t.extend(T,e.optionsOverride),$=e.optionsOverride.iconClass||$),!w(T,e)){x++,y=n(T,!0);var F=null,D=t("<div/>"),E=t("<div/>"),A=t("<div/>"),O=t("<div/>"),N=t(T.closeHtml),R={intervalId:null,hideEta:null,maxHideTime:null},I={toastId:x,state:"visible",startTime:new Date,options:T,map:e};return o(),s(),r(),f(I),T.debug&&console&&console.log(I),D}}function m(){return t.extend({},p(),_.options)}function g(t){y||(y=n()),t.is(":visible")||(t.remove(),t=null,0===y.children().length&&(y.remove(),b=void 0))}var y,v,b,x=0,w={error:"error",info:"info",success:"success",warning:"warning"},_={clear:s,remove:l,error:e,getContainer:n,info:i,options:{},subscribe:o,success:a,version:"2.1.3",warning:r};return _}()})}("function"==typeof define&&define.amd?define:function(t,e){"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):window.toastr=e(window.jQuery)}),define("fast",["jquery","bootstrap","toastr","layer","lang"],function(t,e,n,i,o){var a={config:{toastr:{closeButton:!0,debug:!1,newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!1,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"1000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"}},events:{onAjaxSuccess:function(t,e){var i="undefined"!=typeof t.data?t.data:null,o="undefined"!=typeof t.msg&&t.msg?t.msg:__("Operation completed");
  if("function"==typeof e){var a=e.call(this,i,t);if(a===!1)return}n.success(o)},onAjaxError:function(t,e){var i="undefined"!=typeof t.data?t.data:null;if("function"==typeof e){var o=e.call(this,i,t);if(o===!1)return}n.error(t.msg)},onAjaxResponse:function(e){try{var n="object"==typeof e?e:JSON.parse(e);n.hasOwnProperty("code")||t.extend(n,{code:-2,msg:e,data:null})}catch(t){var n={code:-1,msg:t.message,data:null}}return n}},api:{ajax:function(e,n,o){e="string"==typeof e?{url:e}:e;var r;return("undefined"==typeof e.loading||e.loading)&&(r=i.load(e.loading||0)),e=t.extend({type:"POST",dataType:"json",xhrFields:{withCredentials:!0},success:function(t){r&&i.close(r),t=a.events.onAjaxResponse(t),1===t.code?a.events.onAjaxSuccess(t,n):a.events.onAjaxError(t,o)},error:function(t){r&&i.close(r);var e={code:t.status,msg:t.statusText,data:null};a.events.onAjaxError(e,o)}},e),t.ajax(e)},fixurl:function(t){if("/"!==t.substr(0,1)){var e=new RegExp("^(?:[a-z]+:)?//","i");e.test(t)||(t=Config.moduleurl+"/"+t)}else"/addons/"===t.substr(0,8)&&(t=Config.__PUBLIC__.replace(/(\/*$)/g,"")+t);return t},cdnurl:function(t,e){var n=new RegExp("^((?:[a-z]+:)?\\/\\/|data:image\\/)","i"),t=n.test(t)?t:Config.upload.cdnurl+t;return e&&!n.test(t)&&(e="string"==typeof e?e:location.origin,t=e+t),t},query:function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&/]"+t+"([=/]([^&#/?]*)|&|#|$)"),i=n.exec(e);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null},open:function(n,o,r){o=r&&r.title?r.title:o?o:"",n=a.api.fixurl(n),n=n+(n.indexOf("?")>-1?"&":"?")+"dialog=1";var s=a.config.openArea!=e?a.config.openArea:[t(window).width()>800?"800px":"95%",t(window).height()>600?"600px":"95%"];return r=t.extend({type:2,title:o,shadeClose:!0,shade:!1,maxmin:!0,moveOut:!0,area:s,content:n,zIndex:i.zIndex,success:function(e,n){var o=this;t(e).data("callback",o.callback),i.setTop(e);try{var r=i.getChildFrame("html",n),s=r.find(".layer-footer");if(a.api.layerfooter(e,n,o),s.size()>0){var l=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(l){var c=s[0],d=new l(function(t){a.api.layerfooter(e,n,o),t.forEach(function(t){})}),u={attributes:!0,childList:!0,characterData:!0,subtree:!0};d.observe(c,u)}}}catch(t){}t(e).height()>t(window).height()&&i.style(n,{top:0,height:t(window).height()})}},r?r:{}),(t(window).width()<480||/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&top.$(".tab-pane.active").size()>0)&&(r.area=[top.$(".tab-pane.active").width()+"px",top.$(".tab-pane.active").height()+"px"],r.offset=[top.$(".tab-pane.active").scrollTop()+"px","0px"]),i.open(r)},close:function(t){var n=parent.Layer.getFrameIndex(window.name),i=parent.$("#layui-layer"+n).data("callback");parent.Layer.close(n),"function"==typeof i&&i.call(e,t)},layerfooter:function(e,n,o){var a=i.getChildFrame("html",n),r=a.find(".layer-footer");if(r.size()>0){t(".layui-layer-footer",e).remove();var s=t("<div />").addClass("layui-layer-btn layui-layer-footer");s.html(r.html()),0===t(".row",s).size()&&t(">",s).wrapAll("<div class='row'></div>"),s.insertAfter(e.find(".layui-layer-content")),s.on("click",".btn",function(){if(!t(this).hasClass("disabled")&&!t(this).parent().hasClass("disabled")){var e=s.find(".btn").index(this);t(".btn:eq("+e+")",r).trigger("click")}});var l=e.find(".layui-layer-title").outerHeight()||0,c=e.find(".layui-layer-btn").outerHeight()||0;t("iframe",e).height(e.height()-l-c)}if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream){var l=e.find(".layui-layer-title").outerHeight()||0,c=e.find(".layui-layer-btn").outerHeight()||0;t("iframe",e).parent().css("height",e.height()-l-c),t("iframe",e).css("height","100%")}},success:function(e,n){var o="function"==typeof e;return o&&(n=e),i.msg(__("Operation completed"),t.extend({offset:0,icon:1},o?{}:e),n)},error:function(e,n){var o="function"==typeof e;return o&&(n=e),i.msg(__("Operation failed"),t.extend({offset:0,icon:2},o?{}:e),n)},msg:function(t,e){var n="function"==typeof e?e:function(){"undefined"!=typeof e&&e&&(location.href=e)};i.msg(t,{time:2e3},n)},toastr:n,layer:i},lang:function(){var t=arguments,e=t[0],n=1;if(e=e.toLowerCase(),"undefined"!=typeof o&&"undefined"!=typeof o[e]){if("object"==typeof o[e])return o[e];e=o[e]}else if(e.indexOf(".")!==-1,1)e=t[0];else{for(var i=e.split("."),a=o[i[0]],n=1;n<i.length&&(a="undefined"!=typeof a[i[n]]?a[i[n]]:"","object"==typeof a);n++);if("object"==typeof a)return a;e=a}return e.replace(/%((%)|s|d)/g,function(e){var i=null;if(e[2])i=e[2];else{switch(i=t[n],e){case"%d":i=parseFloat(i),isNaN(i)&&(i=0)}n++}return i})},init:function(){t.ajaxSetup({beforeSend:function(t,e){e.url=a.api.fixurl(e.url)}}),i.config({skin:"layui-layer-fast"}),t(window).keyup(function(e){if(27==e.keyCode&&t(".layui-layer").size()>0){var n=0;t(".layui-layer").each(function(){n=Math.max(n,parseInt(t(this).attr("times")))}),n&&i.close(n)}}),n.options=a.config.toastr}};return window.Layer=i,window.Toastr=n,window.__=a.lang,window.Fast=a,a.init(),a}),!function(){function t(t){return t.replace(b,"").replace(x,",").replace(w,"").replace(_,"").replace(k,"").split(C)}function e(t){return"'"+t.replace(/('|\\)/g,"\\$1").replace(/\r/g,"\\r").replace(/\n/g,"\\n")+"'"}function n(n,i){function o(t){return p+=t.split(/\n/).length-1,d&&(t=t.replace(/\s+/g," ").replace(/<!--[\w\W]*?-->/g,"")),t&&(t=v[1]+e(t)+v[2]+"\n"),t}function a(e){var n=p;if(c?e=c(e,i):r&&(e=e.replace(/\n/g,function(){return p++,"$line="+p+";"})),0===e.indexOf("=")){var o=u&&!/^=[=#]/.test(e);if(e=e.replace(/^=[=#]?|[\s;]*$/g,""),o){var a=e.replace(/\s*\([^\)]+\)/,"");f[a]||/^(include|print)$/.test(a)||(e="$escape("+e+")")}else e="$string("+e+")";e=v[1]+e+v[2]}return r&&(e="$line="+n+";"+e),y(t(e),function(t){if(t&&!m[t]){var e;e="print"===t?x:"include"===t?w:f[t]?"$utils."+t:h[t]?"$helpers."+t:"$data."+t,_+=t+"="+e+",",m[t]=!0}}),e+"\n"}var r=i.debug,s=i.openTag,l=i.closeTag,c=i.parser,d=i.compress,u=i.escape,p=1,m={$data:1,$filename:1,$utils:1,$helpers:1,$out:1,$line:1},g="".trim,v=g?["$out='';","$out+=",";","$out"]:["$out=[];","$out.push(",");","$out.join('')"],b=g?"$out+=text;return $out;":"$out.push(text);",x="function(){var text=''.concat.apply('',arguments);"+b+"}",w="function(filename,data){data=data||$data;var text=$utils.$include(filename,data,$filename);"+b+"}",_="'use strict';var $utils=this,$helpers=$utils.$helpers,"+(r?"$line=0,":""),k=v[0],C="return new String("+v[3]+");";y(n.split(s),function(t){t=t.split(l);var e=t[0],n=t[1];1===t.length?k+=o(e):(k+=a(e),n&&(k+=o(n)))});var S=_+k+C;r&&(S="try{"+S+"}catch(e){throw {filename:$filename,name:'Render Error',message:e.message,line:$line,source:"+e(n)+".split(/\\n/)[$line-1].replace(/^\\s+/,'')};}");try{var T=new Function("$data","$filename",S);return T.prototype=f,T}catch(t){throw t.temp="function anonymous($data,$filename) {"+S+"}",t}}var i=function(t,e){return"string"==typeof e?g(e,{filename:t}):r(t,e)};i.version="3.0.0",i.config=function(t,e){o[t]=e};var o=i.defaults={openTag:"<%",closeTag:"%>",escape:!0,cache:!0,compress:!1,parser:null},a=i.cache={};i.render=function(t,e){return g(t)(e)};var r=i.renderFile=function(t,e){var n=i.get(t)||m({filename:t,name:"Render Error",message:"Template not found"});return e?n(e):n};i.get=function(t){var e;if(a[t])e=a[t];else if("object"==typeof document){var n=document.getElementById(t);if(n){var i=(n.value||n.innerHTML).replace(/^\s*|\s*$/g,"");e=g(i,{filename:t})}}return e};var s=function(t,e){return"string"!=typeof t&&(e=typeof t,"number"===e?t+="":t="function"===e?s(t.call(t)):""),t},l={"<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","&":"&#38;"},c=function(t){return l[t]},d=function(t){return s(t).replace(/&(?![\w#]+;)|[<>"']/g,c)},u=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},p=function(t,e){var n,i;if(u(t))for(n=0,i=t.length;n<i;n++)e.call(t,t[n],n,t);else for(n in t)e.call(t,t[n],n)},f=i.utils={$helpers:{},$include:r,$string:s,$escape:d,$each:p};i.helper=function(t,e){h[t]=e};var h=i.helpers=f.$helpers;i.onerror=function(t){var e="Template Error\n\n";for(var n in t)e+="<"+n+">\n"+t[n]+"\n\n";"object"==typeof console&&console.error(e)};var m=function(t){return i.onerror(t),function(){return"{Template Error}"}},g=i.compile=function(t,e){function i(n){try{return new l(n,s)+""}catch(i){return e.debug?m(i)():(e.debug=!0,g(t,e)(n))}}e=e||{};for(var r in o)void 0===e[r]&&(e[r]=o[r]);var s=e.filename;try{var l=n(t,e)}catch(t){return t.filename=s||"anonymous",t.name="Syntax Error",m(t)}return i.prototype=l.prototype,i.toString=function(){return l.toString()},s&&e.cache&&(a[s]=i),i},y=f.$each,v="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,undefined",b=/\/\*[\w\W]*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|"(?:[^"\\]|\\[\w\W])*"|'(?:[^'\\]|\\[\w\W])*'|\s*\.\s*[$\w\.]+/g,x=/[^\w$]+/g,w=new RegExp(["\\b"+v.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),_=/^\d[^,]*|,\d[^,]*/g,k=/^,+|,+$/g,C=/^$|,+/;"object"==typeof exports&&"undefined"!=typeof module?module.exports=i:"function"==typeof define?define("template",[],function(){return i}):this.template=i}(),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("moment/moment",e):t.moment=e()}(this,function(){"use strict";function t(){return to.apply(null,arguments)}function e(t){to=t}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function i(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(o(t,e))return!1;return!0}function r(t){return void 0===t}function s(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function l(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function c(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function d(t,e){for(var n in e)o(e,n)&&(t[n]=e[n]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function u(t,e,n,i){return Se(t,e,n,i,!0).utc()}function p(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(t){return null==t._pf&&(t._pf=p()),t._pf}function h(t){if(null==t._isValid){var e=f(t),n=eo.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function m(t){var e=u(NaN);return null!=t?d(f(e),t):f(e).userInvalidated=!0,e}function g(t,e){var n,i,o;if(r(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),r(e._i)||(t._i=e._i),r(e._f)||(t._f=e._f),r(e._l)||(t._l=e._l),r(e._strict)||(t._strict=e._strict),r(e._tzm)||(t._tzm=e._tzm),r(e._isUTC)||(t._isUTC=e._isUTC),r(e._offset)||(t._offset=e._offset),r(e._pf)||(t._pf=f(e)),r(e._locale)||(t._locale=e._locale),no.length>0)for(n=0;n<no.length;n++)i=no[n],o=e[i],r(o)||(t[i]=o);return t}function y(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),io===!1&&(io=!0,t.updateOffset(this),io=!1)}function v(t){return t instanceof y||null!=t&&null!=t._isAMomentObject}function b(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,n){var i=!0;return d(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),i){var a,r,s,l=[];for(r=0;r<arguments.length;r++){if(a="","object"==typeof arguments[r]){a+="\n["+r+"] ";for(s in arguments[0])o(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[r];l.push(a)}b(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)},n)}function w(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),oo[e]||(b(n),oo[e]=!0)}function _(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function k(t){var e,n;for(n in t)o(t,n)&&(e=t[n],_(e)?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(t,e){var n,a=d({},t);for(n in e)o(e,n)&&(i(t[n])&&i(e[n])?(a[n]={},d(a[n],t[n]),d(a[n],e[n])):null!=e[n]?a[n]=e[n]:delete a[n]);for(n in t)o(t,n)&&!o(e,n)&&i(t[n])&&(a[n]=d({},a[n]));return a}function S(t){null!=t&&this.set(t)}function T(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return _(i)?i.call(e,n):i}function $(t,e,n){var i=""+Math.abs(t),o=e-i.length,a=t>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}function F(t,e,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),t&&(po[t]=o),e&&(po[e[0]]=function(){return $(o.apply(this,arguments),e[1],e[2])}),n&&(po[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function D(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function E(t){var e,n,i=t.match(lo);for(e=0,n=i.length;e<n;e++)po[i[e]]?i[e]=po[i[e]]:i[e]=D(i[e]);return function(e){var o,a="";for(o=0;o<n;o++)a+=_(i[o])?i[o].call(e,t):i[o];return a}}function A(t,e){return t.isValid()?(e=O(e,t.localeData()),uo[e]=uo[e]||E(e),uo[e](t)):t.localeData().invalidDate()}function O(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(co.lastIndex=0;i>=0&&co.test(t);)t=t.replace(co,n),co.lastIndex=0,i-=1;return t}function N(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(lo).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])}function R(){return this._invalidDate}function I(t){return this._ordinal.replace("%d",t)}function M(t,e,n,i){var o=this._relativeTime[n];return _(o)?o(t,e,n,i):o.replace(/%d/i,t)}function L(t,e){var n=this._relativeTime[t>0?"future":"past"];return _(n)?n(e):n.replace(/%s/i,e)}function j(t,e){var n=t.toLowerCase();vo[n]=vo[n+"s"]=vo[e]=t}function P(t){return"string"==typeof t?vo[t]||vo[t.toLowerCase()]:void 0}function z(t){var e,n,i={};for(n in t)o(t,n)&&(e=P(n),e&&(i[e]=t[n]));return i}function H(t,e){bo[t]=e}function Y(t){var e,n=[];for(e in t)o(t,e)&&n.push({unit:e,priority:bo[e]});return n.sort(function(t,e){return t.priority-e.priority}),n}function B(t){return t%4===0&&t%100!==0||t%400===0}function U(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function W(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=U(e)),n}function q(e,n){return function(i){return null!=i?(X(this,e,i),t.updateOffset(this,n),this):V(this,e)}}function V(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function X(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&B(t.year())&&1===t.month()&&29===t.date()?(n=W(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),at(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function G(t){return t=P(t),_(this[t])?this[t]():this}function Q(t,e){if("object"==typeof t){t=z(t);var n,i=Y(t);for(n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit])}else if(t=P(t),_(this[t]))return this[t](e);return this}function K(t,e,n){ro[t]=_(e)?e:function(t,i){return t&&n?n:e}}function J(t,e){return o(ro,t)?ro[t](e._strict,e._locale):new RegExp(Z(t))}function Z(t){return tt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,o){return e||n||i||o}))}function tt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function et(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),s(e)&&(i=function(t,n){n[e]=W(t)}),n=0;n<t.length;n++)jo[t[n]]=i}function nt(t,e){et(t,function(t,n,i,o){i._w=i._w||{},e(t,i._w,i,o)})}function it(t,e,n){null!=e&&o(jo,t)&&jo[t](e,n._a,n,t)}function ot(t,e){return(t%e+e)%e}function at(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=ot(e,12);return t+=(e-n)/12,1===n?B(t)?29:28:31-n%7%2}function rt(t,e){return t?n(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Qo).test(e)?"format":"standalone"][t.month()]:n(this._months)?this._months:this._months.standalone}function st(t,e){return t?n(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Qo.test(e)?"format":"standalone"][t.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(t,e,n){var i,o,a,r=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)a=u([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?(o=Lo.call(this._shortMonthsParse,r),o!==-1?o:null):(o=Lo.call(this._longMonthsParse,r),o!==-1?o:null):"MMM"===e?(o=Lo.call(this._shortMonthsParse,r),o!==-1?o:(o=Lo.call(this._longMonthsParse,r),o!==-1?o:null)):(o=Lo.call(this._longMonthsParse,r),o!==-1?o:(o=Lo.call(this._shortMonthsParse,r),o!==-1?o:null))}function ct(t,e,n){var i,o,a;if(this._monthsParseExact)return lt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=u([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function dt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=W(e);else if(e=t.localeData().monthsParse(e),!s(e))return t;return n=Math.min(t.date(),at(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function ut(e){return null!=e?(dt(this,e),t.updateOffset(this,!0),this):V(this,"Month")}function pt(){return at(this.year(),this.month())}function ft(t){return this._monthsParseExact?(o(this,"_monthsRegex")||mt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Ko),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function ht(t){return this._monthsParseExact?(o(this,"_monthsRegex")||mt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Jo),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function mt(){function t(t,e){return e.length-t.length}var e,n,i=[],o=[],a=[];for(e=0;e<12;e++)n=u([2e3,e]),i.push(this.monthsShort(n,"")),o.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(i.sort(t),o.sort(t),a.sort(t),e=0;e<12;e++)i[e]=tt(i[e]),o[e]=tt(o[e]);for(e=0;e<24;e++)a[e]=tt(a[e]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function gt(t){return B(t)?366:365}function yt(){return B(this.year())}function vt(t,e,n,i,o,a,r){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,i,o,a,r),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,o,a,r),s}function bt(t){var e,n;return t<100&&t>=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function xt(t,e,n){var i=7+e-n,o=(7+bt(t,0,i).getUTCDay()-e)%7;return-o+i-1}function wt(t,e,n,i,o){var a,r,s=(7+n-i)%7,l=xt(t,i,o),c=1+7*(e-1)+s+l;return c<=0?(a=t-1,r=gt(a)+c):c>gt(t)?(a=t+1,r=c-gt(t)):(a=t,r=c),{year:a,dayOfYear:r}}function _t(t,e,n){var i,o,a=xt(t.year(),e,n),r=Math.floor((t.dayOfYear()-a-1)/7)+1;return r<1?(o=t.year()-1,i=r+kt(o,e,n)):r>kt(t.year(),e,n)?(i=r-kt(t.year(),e,n),o=t.year()+1):(o=t.year(),i=r),{week:i,year:o}}function kt(t,e,n){var i=xt(t,e,n),o=xt(t+1,e,n);return(gt(t)-i+o)/7}function Ct(t){return _t(t,this._week.dow,this._week.doy).week}function St(){return this._week.dow}function Tt(){return this._week.doy}function $t(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ft(t){var e=_t(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Dt(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Et(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function At(t,e){return t.slice(e,7).concat(t.slice(0,e))}function Ot(t,e){var i=n(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?At(i,this._week.dow):t?i[t.day()]:i}function Nt(t){return t===!0?At(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Rt(t){return t===!0?At(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function It(t,e,n){var i,o,a,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=u([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?(o=Lo.call(this._weekdaysParse,r),o!==-1?o:null):"ddd"===e?(o=Lo.call(this._shortWeekdaysParse,r),o!==-1?o:null):(o=Lo.call(this._minWeekdaysParse,r),o!==-1?o:null):"dddd"===e?(o=Lo.call(this._weekdaysParse,r),o!==-1?o:(o=Lo.call(this._shortWeekdaysParse,r),o!==-1?o:(o=Lo.call(this._minWeekdaysParse,r),o!==-1?o:null))):"ddd"===e?(o=Lo.call(this._shortWeekdaysParse,r),o!==-1?o:(o=Lo.call(this._weekdaysParse,r),o!==-1?o:(o=Lo.call(this._minWeekdaysParse,r),o!==-1?o:null))):(o=Lo.call(this._minWeekdaysParse,r),o!==-1?o:(o=Lo.call(this._weekdaysParse,r),o!==-1?o:(o=Lo.call(this._shortWeekdaysParse,r),o!==-1?o:null)))}function Mt(t,e,n){var i,o,a;if(this._weekdaysParseExact)return It.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=u([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function Lt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Dt(t,this.localeData()),this.add(t-e,"d")):e}function jt(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Pt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Et(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function zt(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=oa),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ht(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=aa),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Yt(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ra),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Bt(){function t(t,e){return e.length-t.length}var e,n,i,o,a,r=[],s=[],l=[],c=[];for(e=0;e<7;e++)n=u([2e3,1]).day(e),i=tt(this.weekdaysMin(n,"")),o=tt(this.weekdaysShort(n,"")),a=tt(this.weekdays(n,"")),r.push(i),s.push(o),l.push(a),c.push(i),c.push(o),c.push(a);r.sort(t),s.sort(t),l.sort(t),c.sort(t),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ut(){return this.hours()%12||12}function Wt(){return this.hours()||24}function qt(t,e){F(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Vt(t,e){return e._meridiemParse}function Xt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Gt(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Qt(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n<i;n+=1)if(t[n]!==e[n])return n;return i}function Kt(t){return t?t.toLowerCase().replace("_","-"):t}function Jt(t){for(var e,n,i,o,a=0;a<t.length;){for(o=Kt(t[a]).split("-"),e=o.length,n=Kt(t[a+1]),n=n?n.split("-"):null;e>0;){if(i=Zt(o.slice(0,e).join("-")))return i;if(n&&n.length>=e&&Qt(o,n)>=e-1)break;e--}a++}return sa}function Zt(t){var e,n=null;if(void 0===ua[t]&&"undefined"!=typeof module&&module&&module.exports)try{n=sa._abbr,e=require,e("./locale/"+t),te(n)}catch(e){ua[t]=null}return ua[t]}function te(t,e){var n;return t&&(n=r(e)?ie(t):ee(t,e),n?sa=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),sa._abbr}function ee(t,e){if(null!==e){var n,i=da;if(e.abbr=t,null!=ua[t])w("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ua[t]._config;else if(null!=e.parentLocale)if(null!=ua[e.parentLocale])i=ua[e.parentLocale]._config;else{if(n=Zt(e.parentLocale),null==n)return pa[e.parentLocale]||(pa[e.parentLocale]=[]),pa[e.parentLocale].push({name:t,config:e}),null;i=n._config}return ua[t]=new S(C(i,e)),pa[t]&&pa[t].forEach(function(t){ee(t.name,t.config)}),te(t),ua[t]}return delete ua[t],null}function ne(t,e){if(null!=e){var n,i,o=da;null!=ua[t]&&null!=ua[t].parentLocale?ua[t].set(C(ua[t]._config,e)):(i=Zt(t),null!=i&&(o=i._config),e=C(o,e),null==i&&(e.abbr=t),n=new S(e),n.parentLocale=ua[t],ua[t]=n),te(t)}else null!=ua[t]&&(null!=ua[t].parentLocale?(ua[t]=ua[t].parentLocale,t===te()&&te(t)):null!=ua[t]&&delete ua[t]);return ua[t]}function ie(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return sa;if(!n(t)){if(e=Zt(t))return e;t=[t]}return Jt(t)}function oe(){return ao(ua)}function ae(t){var e,n=t._a;return n&&f(t).overflow===-2&&(e=n[zo]<0||n[zo]>11?zo:n[Ho]<1||n[Ho]>at(n[Po],n[zo])?Ho:n[Yo]<0||n[Yo]>24||24===n[Yo]&&(0!==n[Bo]||0!==n[Uo]||0!==n[Wo])?Yo:n[Bo]<0||n[Bo]>59?Bo:n[Uo]<0||n[Uo]>59?Uo:n[Wo]<0||n[Wo]>999?Wo:-1,f(t)._overflowDayOfYear&&(e<Po||e>Ho)&&(e=Ho),f(t)._overflowWeeks&&e===-1&&(e=qo),f(t)._overflowWeekday&&e===-1&&(e=Vo),f(t).overflow=e),t}function re(t){var e,n,i,o,a,r,s=t._i,l=fa.exec(s)||ha.exec(s);if(l){for(f(t).iso=!0,e=0,n=ga.length;e<n;e++)if(ga[e][1].exec(l[1])){o=ga[e][0],i=ga[e][2]!==!1;break}if(null==o)return void(t._isValid=!1);if(l[3]){for(e=0,n=ya.length;e<n;e++)if(ya[e][1].exec(l[3])){a=(l[2]||" ")+ya[e][0];break}if(null==a)return void(t._isValid=!1)}if(!i&&null!=a)return void(t._isValid=!1);if(l[4]){if(!ma.exec(l[4]))return void(t._isValid=!1);r="Z"}t._f=o+(a||"")+(r||""),ve(t)}else t._isValid=!1}function se(t,e,n,i,o,a){var r=[le(t),Go.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return a&&r.push(parseInt(a,10)),r}function le(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function ce(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function de(t,e,n){if(t){var i=na.indexOf(t),o=new Date(e[0],e[1],e[2]).getDay();if(i!==o)return f(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function ue(t,e,n){if(t)return xa[t];if(e)return 0;var i=parseInt(n,10),o=i%100,a=(i-o)/100;return 60*a+o}function pe(t){var e,n=ba.exec(ce(t._i));if(n){if(e=se(n[4],n[3],n[2],n[5],n[6],n[7]),!de(n[1],e,t))return;t._a=e,t._tzm=ue(n[8],n[9],n[10]),t._d=bt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function fe(e){var n=va.exec(e._i);return null!==n?void(e._d=new Date(+n[1])):(re(e),void(e._isValid===!1&&(delete e._isValid,pe(e),e._isValid===!1&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))))}function he(t,e,n){return null!=t?t:null!=e?e:n}function me(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ge(t){var e,n,i,o,a,r=[];if(!t._d){for(i=me(t),t._w&&null==t._a[Ho]&&null==t._a[zo]&&ye(t),null!=t._dayOfYear&&(a=he(t._a[Po],i[Po]),(t._dayOfYear>gt(a)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=bt(a,0,t._dayOfYear),t._a[zo]=n.getUTCMonth(),t._a[Ho]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=r[e]=i[e];for(;e<7;e++)t._a[e]=r[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Yo]&&0===t._a[Bo]&&0===t._a[Uo]&&0===t._a[Wo]&&(t._nextDay=!0,t._a[Yo]=0),t._d=(t._useUTC?bt:vt).apply(null,r),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Yo]=24),t._w&&"undefined"!=typeof t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}function ye(t){var e,n,i,o,a,r,s,l,c;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(a=1,r=4,n=he(e.GG,t._a[Po],_t(Te(),1,4).year),i=he(e.W,1),o=he(e.E,1),(o<1||o>7)&&(l=!0)):(a=t._locale._week.dow,r=t._locale._week.doy,c=_t(Te(),a,r),n=he(e.gg,t._a[Po],c.year),i=he(e.w,c.week),null!=e.d?(o=e.d,(o<0||o>6)&&(l=!0)):null!=e.e?(o=e.e+a,(e.e<0||e.e>6)&&(l=!0)):o=a),i<1||i>kt(n,a,r)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(s=wt(n,i,o,a,r),t._a[Po]=s.year,t._dayOfYear=s.dayOfYear)}function ve(e){if(e._f===t.ISO_8601)return void re(e);if(e._f===t.RFC_2822)return void pe(e);e._a=[],f(e).empty=!0;var n,i,o,a,r,s,l=""+e._i,c=l.length,d=0;for(o=O(e._f,e._locale).match(lo)||[],n=0;n<o.length;n++)a=o[n],i=(l.match(J(a,e))||[])[0],i&&(r=l.substr(0,l.indexOf(i)),r.length>0&&f(e).unusedInput.push(r),l=l.slice(l.indexOf(i)+i.length),d+=i.length),po[a]?(i?f(e).empty=!1:f(e).unusedTokens.push(a),it(a,i,e)):e._strict&&!i&&f(e).unusedTokens.push(a);f(e).charsLeftOver=c-d,
  l.length>0&&f(e).unusedInput.push(l),e._a[Yo]<=12&&f(e).bigHour===!0&&e._a[Yo]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[Yo]=be(e._locale,e._a[Yo],e._meridiem),s=f(e).era,null!==s&&(e._a[Po]=e._locale.erasConvertYear(s,e._a[Po])),ge(e),ae(e)}function be(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function xe(t){var e,n,i,o,a,r,s=!1;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<t._f.length;o++)a=0,r=!1,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],ve(e),h(e)&&(r=!0),a+=f(e).charsLeftOver,a+=10*f(e).unusedTokens.length,f(e).score=a,s?a<i&&(i=a,n=e):(null==i||a<i||r)&&(i=a,n=e,r&&(s=!0));d(t,n||e)}function we(t){if(!t._d){var e=z(t._i),n=void 0===e.day?e.date:e.day;t._a=c([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ge(t)}}function _e(t){var e=new y(ae(ke(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function ke(t){var e=t._i,i=t._f;return t._locale=t._locale||ie(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),v(e)?new y(ae(e)):(l(e)?t._d=e:n(i)?xe(t):i?ve(t):Ce(t),h(t)||(t._d=null),t))}function Ce(e){var o=e._i;r(o)?e._d=new Date(t.now()):l(o)?e._d=new Date(o.valueOf()):"string"==typeof o?fe(e):n(o)?(e._a=c(o.slice(0),function(t){return parseInt(t,10)}),ge(e)):i(o)?we(e):s(o)?e._d=new Date(o):t.createFromInputFallback(e)}function Se(t,e,o,r,s){var l={};return e!==!0&&e!==!1||(r=e,e=void 0),o!==!0&&o!==!1||(r=o,o=void 0),(i(t)&&a(t)||n(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=o,l._i=t,l._f=e,l._strict=r,_e(l)}function Te(t,e,n,i){return Se(t,e,n,i,!1)}function $e(t,e){var i,o;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return Te();for(i=e[0],o=1;o<e.length;++o)e[o].isValid()&&!e[o][t](i)||(i=e[o]);return i}function Fe(){var t=[].slice.call(arguments,0);return $e("isBefore",t)}function De(){var t=[].slice.call(arguments,0);return $e("isAfter",t)}function Ee(t){var e,n,i=!1;for(e in t)if(o(t,e)&&(Lo.call(Ca,e)===-1||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<Ca.length;++n)if(t[Ca[n]]){if(i)return!1;parseFloat(t[Ca[n]])!==W(t[Ca[n]])&&(i=!0)}return!0}function Ae(){return this._isValid}function Oe(){return Je(NaN)}function Ne(t){var e=z(t),n=e.year||0,i=e.quarter||0,o=e.month||0,a=e.week||e.isoWeek||0,r=e.day||0,s=e.hour||0,l=e.minute||0,c=e.second||0,d=e.millisecond||0;this._isValid=Ee(e),this._milliseconds=+d+1e3*c+6e4*l+1e3*s*60*60,this._days=+r+7*a,this._months=+o+3*i+12*n,this._data={},this._locale=ie(),this._bubble()}function Re(t){return t instanceof Ne}function Ie(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function Me(t,e,n){var i,o=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),r=0;for(i=0;i<o;i++)(n&&t[i]!==e[i]||!n&&W(t[i])!==W(e[i]))&&r++;return r+a}function Le(t,e){F(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+$(~~(t/60),2)+e+$(~~t%60,2)})}function je(t,e){var n,i,o,a=(e||"").match(t);return null===a?null:(n=a[a.length-1]||[],i=(n+"").match(Sa)||["-",0,0],o=+(60*i[1])+W(i[2]),0===o?0:"+"===i[0]?o:-o)}function Pe(e,n){var i,o;return n._isUTC?(i=n.clone(),o=(v(e)||l(e)?e.valueOf():Te(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+o),t.updateOffset(i,!1),i):Te(e).local()}function ze(t){return-Math.round(t._d.getTimezoneOffset())}function He(e,n,i){var o,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(e=je(Ro,e),null===e)return this}else Math.abs(e)<16&&!i&&(e=60*e);return!this._isUTC&&n&&(o=ze(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),a!==e&&(!n||this._changeInProgress?on(this,Je(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:ze(this)}function Ye(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Be(t){return this.utcOffset(0,t)}function Ue(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ze(this),"m")),this}function We(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=je(No,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function qe(t){return!!this.isValid()&&(t=t?Te(t).utcOffset():0,(this.utcOffset()-t)%60===0)}function Ve(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Xe(){if(!r(this._isDSTShifted))return this._isDSTShifted;var t,e={};return g(e,this),e=ke(e),e._a?(t=e._isUTC?u(e._a):Te(e._a),this._isDSTShifted=this.isValid()&&Me(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ge(){return!!this.isValid()&&!this._isUTC}function Qe(){return!!this.isValid()&&this._isUTC}function Ke(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Je(t,e){var n,i,a,r=t,l=null;return Re(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:s(t)||!isNaN(+t)?(r={},e?r[e]=+t:r.milliseconds=+t):(l=Ta.exec(t))?(n="-"===l[1]?-1:1,r={y:0,d:W(l[Ho])*n,h:W(l[Yo])*n,m:W(l[Bo])*n,s:W(l[Uo])*n,ms:W(Ie(1e3*l[Wo]))*n}):(l=$a.exec(t))?(n="-"===l[1]?-1:1,r={y:Ze(l[2],n),M:Ze(l[3],n),w:Ze(l[4],n),d:Ze(l[5],n),h:Ze(l[6],n),m:Ze(l[7],n),s:Ze(l[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(a=en(Te(r.from),Te(r.to)),r={},r.ms=a.milliseconds,r.M=a.months),i=new Ne(r),Re(t)&&o(t,"_locale")&&(i._locale=t._locale),Re(t)&&o(t,"_isValid")&&(i._isValid=t._isValid),i}function Ze(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function tn(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function en(t,e){var n;return t.isValid()&&e.isValid()?(e=Pe(e,t),t.isBefore(e)?n=tn(t,e):(n=tn(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function nn(t,e){return function(n,i){var o,a;return null===i||isNaN(+i)||(w(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=i,i=a),o=Je(n,i),on(this,o,t),this}}function on(e,n,i,o){var a=n._milliseconds,r=Ie(n._days),s=Ie(n._months);e.isValid()&&(o=null==o||o,s&&dt(e,V(e,"Month")+s*i),r&&X(e,"Date",V(e,"Date")+r*i),a&&e._d.setTime(e._d.valueOf()+a*i),o&&t.updateOffset(e,r||s))}function an(t){return"string"==typeof t||t instanceof String}function rn(t){return v(t)||l(t)||an(t)||s(t)||ln(t)||sn(t)||null===t||void 0===t}function sn(t){var e,n,r=i(t)&&!a(t),s=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(e=0;e<l.length;e+=1)n=l[e],s=s||o(t,n);return r&&s}function ln(t){var e=n(t),i=!1;return e&&(i=0===t.filter(function(e){return!s(e)&&an(t)}).length),e&&i}function cn(t){var e,n,r=i(t)&&!a(t),s=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<l.length;e+=1)n=l[e],s=s||o(t,n);return r&&s}function dn(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function un(e,n){1===arguments.length&&(rn(arguments[0])?(e=arguments[0],n=void 0):cn(arguments[0])&&(n=arguments[0],e=void 0));var i=e||Te(),o=Pe(i,this).startOf("day"),a=t.calendarFormat(this,o)||"sameElse",r=n&&(_(n[a])?n[a].call(this,i):n[a]);return this.format(r||this.localeData().calendar(a,this,Te(i)))}function pn(){return new y(this)}function fn(t,e){var n=v(t)?t:Te(t);return!(!this.isValid()||!n.isValid())&&(e=P(e)||"millisecond","millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function hn(t,e){var n=v(t)?t:Te(t);return!(!this.isValid()||!n.isValid())&&(e=P(e)||"millisecond","millisecond"===e?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function mn(t,e,n,i){var o=v(t)?t:Te(t),a=v(e)?e:Te(e);return!!(this.isValid()&&o.isValid()&&a.isValid())&&(i=i||"()",("("===i[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===i[1]?this.isBefore(a,n):!this.isAfter(a,n)))}function gn(t,e){var n,i=v(t)?t:Te(t);return!(!this.isValid()||!i.isValid())&&(e=P(e)||"millisecond","millisecond"===e?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function yn(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function vn(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function bn(t,e,n){var i,o,a;if(!this.isValid())return NaN;if(i=Pe(t,this),!i.isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),e=P(e)){case"year":a=xn(this,i)/12;break;case"month":a=xn(this,i);break;case"quarter":a=xn(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-o)/864e5;break;case"week":a=(this-i-o)/6048e5;break;default:a=this-i}return n?a:U(a)}function xn(t,e){if(t.date()<e.date())return-xn(e,t);var n,i,o=12*(e.year()-t.year())+(e.month()-t.month()),a=t.clone().add(o,"months");return e-a<0?(n=t.clone().add(o-1,"months"),i=(e-a)/(a-n)):(n=t.clone().add(o+1,"months"),i=(e-a)/(n-a)),-(o+i)||0}function wn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function _n(t){if(!this.isValid())return null;var e=t!==!0,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?A(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",A(n,"Z")):A(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function kn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i,o="moment",a="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),t="["+o+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=a+'[")]',this.format(t+e+n+i)}function Cn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=A(this,e);return this.localeData().postformat(n)}function Sn(t,e){return this.isValid()&&(v(t)&&t.isValid()||Te(t).isValid())?Je({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Tn(t){return this.from(Te(),t)}function $n(t,e){return this.isValid()&&(v(t)&&t.isValid()||Te(t).isValid())?Je({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Fn(t){return this.to(Te(),t)}function Dn(t){var e;return void 0===t?this._locale._abbr:(e=ie(t),null!=e&&(this._locale=e),this)}function En(){return this._locale}function An(t,e){return(t%e+e)%e}function On(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-Ra:new Date(t,e,n).valueOf()}function Nn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-Ra:Date.UTC(t,e,n)}function Rn(e){var n,i;if(e=P(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?Nn:On,e){case"year":n=i(this.year(),0,1);break;case"quarter":n=i(this.year(),this.month()-this.month()%3,1);break;case"month":n=i(this.year(),this.month(),1);break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=i(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=An(n+(this._isUTC?0:this.utcOffset()*Oa),Na);break;case"minute":n=this._d.valueOf(),n-=An(n,Oa);break;case"second":n=this._d.valueOf(),n-=An(n,Aa)}return this._d.setTime(n),t.updateOffset(this,!0),this}function In(e){var n,i;if(e=P(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?Nn:On,e){case"year":n=i(this.year()+1,0,1)-1;break;case"quarter":n=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=i(this.year(),this.month()+1,1)-1;break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=Na-An(n+(this._isUTC?0:this.utcOffset()*Oa),Na)-1;break;case"minute":n=this._d.valueOf(),n+=Oa-An(n,Oa)-1;break;case"second":n=this._d.valueOf(),n+=Aa-An(n,Aa)-1}return this._d.setTime(n),t.updateOffset(this,!0),this}function Mn(){return this._d.valueOf()-6e4*(this._offset||0)}function Ln(){return Math.floor(this.valueOf()/1e3)}function jn(){return new Date(this.valueOf())}function Pn(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function zn(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Hn(){return this.isValid()?this.toISOString():null}function Yn(){return h(this)}function Bn(){return d({},f(this))}function Un(){return f(this).overflow}function Wn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function qn(e,n){var i,o,a,r=this._eras||ie("en")._eras;for(i=0,o=r.length;i<o;++i){switch(typeof r[i].since){case"string":a=t(r[i].since).startOf("day"),r[i].since=a.valueOf()}switch(typeof r[i].until){case"undefined":r[i].until=+(1/0);break;case"string":a=t(r[i].until).startOf("day").valueOf(),r[i].until=a.valueOf()}}return r}function Vn(t,e,n){var i,o,a,r,s,l=this.eras();for(t=t.toUpperCase(),i=0,o=l.length;i<o;++i)if(a=l[i].name.toUpperCase(),r=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(r===t)return l[i];break;case"NNNN":if(a===t)return l[i];break;case"NNNNN":if(s===t)return l[i]}else if([a,r,s].indexOf(t)>=0)return l[i]}function Xn(e,n){var i=e.since<=e.until?1:-1;return void 0===n?t(e.since).year():t(e.since).year()+(n-e.offset)*i}function Gn(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].name;if(i[t].until<=n&&n<=i[t].since)return i[t].name}return""}function Qn(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].narrow;if(i[t].until<=n&&n<=i[t].since)return i[t].narrow}return""}function Kn(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].abbr;if(i[t].until<=n&&n<=i[t].since)return i[t].abbr}return""}function Jn(){var e,n,i,o,a=this.localeData().eras();for(e=0,n=a.length;e<n;++e)if(i=a[e].since<=a[e].until?1:-1,o=this.startOf("day").valueOf(),a[e].since<=o&&o<=a[e].until||a[e].until<=o&&o<=a[e].since)return(this.year()-t(a[e].since).year())*i+a[e].offset;return this.year()}function Zn(t){return o(this,"_erasNameRegex")||ri.call(this),t?this._erasNameRegex:this._erasRegex}function ti(t){return o(this,"_erasAbbrRegex")||ri.call(this),t?this._erasAbbrRegex:this._erasRegex}function ei(t){return o(this,"_erasNarrowRegex")||ri.call(this),t?this._erasNarrowRegex:this._erasRegex}function ni(t,e){return e.erasAbbrRegex(t)}function ii(t,e){return e.erasNameRegex(t)}function oi(t,e){return e.erasNarrowRegex(t)}function ai(t,e){return e._eraYearOrdinalRegex||Ao}function ri(){var t,e,n=[],i=[],o=[],a=[],r=this.eras();for(t=0,e=r.length;t<e;++t)i.push(tt(r[t].name)),n.push(tt(r[t].abbr)),o.push(tt(r[t].narrow)),a.push(tt(r[t].name)),a.push(tt(r[t].abbr)),a.push(tt(r[t].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function si(t,e){F(0,[t,t.length],0,e)}function li(t){return hi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function ci(t){return hi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function di(){return kt(this.year(),1,4)}function ui(){return kt(this.isoWeekYear(),1,4)}function pi(){var t=this.localeData()._week;return kt(this.year(),t.dow,t.doy)}function fi(){var t=this.localeData()._week;return kt(this.weekYear(),t.dow,t.doy)}function hi(t,e,n,i,o){var a;return null==t?_t(this,i,o).year:(a=kt(t,i,o),e>a&&(e=a),mi.call(this,t,e,n,i,o))}function mi(t,e,n,i,o){var a=wt(t,e,n,i,o),r=bt(a.year,0,a.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}function gi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function yi(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function vi(t,e){e[Wo]=W(1e3*("0."+t))}function bi(){return this._isUTC?"UTC":""}function xi(){return this._isUTC?"Coordinated Universal Time":""}function wi(t){return Te(1e3*t)}function _i(){return Te.apply(null,arguments).parseZone()}function ki(t){return t}function Ci(t,e,n,i){var o=ie(),a=u().set(i,e);return o[n](a,t)}function Si(t,e,n){if(s(t)&&(e=t,t=void 0),t=t||"",null!=e)return Ci(t,e,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=Ci(t,i,n,"month");return o}function Ti(t,e,n,i){"boolean"==typeof t?(s(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,s(e)&&(n=e,e=void 0),e=e||"");var o,a=ie(),r=t?a._week.dow:0,l=[];if(null!=n)return Ci(e,(n+r)%7,i,"day");for(o=0;o<7;o++)l[o]=Ci(e,(o+r)%7,i,"day");return l}function $i(t,e){return Si(t,e,"months")}function Fi(t,e){return Si(t,e,"monthsShort")}function Di(t,e,n){return Ti(t,e,n,"weekdays")}function Ei(t,e,n){return Ti(t,e,n,"weekdaysShort")}function Ai(t,e,n){return Ti(t,e,n,"weekdaysMin")}function Oi(){var t=this._data;return this._milliseconds=Ya(this._milliseconds),this._days=Ya(this._days),this._months=Ya(this._months),t.milliseconds=Ya(t.milliseconds),t.seconds=Ya(t.seconds),t.minutes=Ya(t.minutes),t.hours=Ya(t.hours),t.months=Ya(t.months),t.years=Ya(t.years),this}function Ni(t,e,n,i){var o=Je(e,n);return t._milliseconds+=i*o._milliseconds,t._days+=i*o._days,t._months+=i*o._months,t._bubble()}function Ri(t,e){return Ni(this,t,e,1)}function Ii(t,e){return Ni(this,t,e,-1)}function Mi(t){return t<0?Math.floor(t):Math.ceil(t)}function Li(){var t,e,n,i,o,a=this._milliseconds,r=this._days,s=this._months,l=this._data;return a>=0&&r>=0&&s>=0||a<=0&&r<=0&&s<=0||(a+=864e5*Mi(Pi(s)+r),r=0,s=0),l.milliseconds=a%1e3,t=U(a/1e3),l.seconds=t%60,e=U(t/60),l.minutes=e%60,n=U(e/60),l.hours=n%24,r+=U(n/24),o=U(ji(r)),s+=o,r-=Mi(Pi(o)),i=U(s/12),s%=12,l.days=r,l.months=s,l.years=i,this}function ji(t){return 4800*t/146097}function Pi(t){return 146097*t/4800}function zi(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if(t=P(t),"month"===t||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+ji(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Pi(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function Hi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*W(this._months/12):NaN}function Yi(t){return function(){return this.as(t)}}function Bi(){return Je(this)}function Ui(t){return t=P(t),this.isValid()?this[t+"s"]():NaN}function Wi(t){return function(){return this.isValid()?this._data[t]:NaN}}function qi(){return U(this.days()/7)}function Vi(t,e,n,i,o){return o.relativeTime(e||1,!!n,t,i)}function Xi(t,e,n,i){var o=Je(t).abs(),a=ar(o.as("s")),r=ar(o.as("m")),s=ar(o.as("h")),l=ar(o.as("d")),c=ar(o.as("M")),d=ar(o.as("w")),u=ar(o.as("y")),p=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||r<=1&&["m"]||r<n.m&&["mm",r]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(p=p||d<=1&&["w"]||d<n.w&&["ww",d]),p=p||c<=1&&["M"]||c<n.M&&["MM",c]||u<=1&&["y"]||["yy",u],p[2]=e,p[3]=+t>0,p[4]=i,Vi.apply(null,p)}function Gi(t){return void 0===t?ar:"function"==typeof t&&(ar=t,!0)}function Qi(t,e){return void 0!==rr[t]&&(void 0===e?rr[t]:(rr[t]=e,"s"===t&&(rr.ss=e-1),!0))}function Ki(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,o=!1,a=rr;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(o=t),"object"==typeof e&&(a=Object.assign({},rr,e),null!=e.s&&null==e.ss&&(a.ss=e.s-1)),n=this.localeData(),i=Xi(this,!o,a,n),o&&(i=n.pastFuture(+this,i)),n.postformat(i)}function Ji(t){return(t>0)-(t<0)||+t}function Zi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,o,a,r,s,l=sr(this._milliseconds)/1e3,c=sr(this._days),d=sr(this._months),u=this.asSeconds();return u?(t=U(l/60),e=U(t/60),l%=60,t%=60,n=U(d/12),d%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=u<0?"-":"",a=Ji(this._months)!==Ji(u)?"-":"",r=Ji(this._days)!==Ji(u)?"-":"",s=Ji(this._milliseconds)!==Ji(u)?"-":"",o+"P"+(n?a+n+"Y":"")+(d?a+d+"M":"")+(c?r+c+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+i+"S":"")):"P0D"}var to,eo;eo=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),i=n.length>>>0;for(e=0;e<i;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var no=t.momentProperties=[],io=!1,oo={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var ao;ao=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)o(t,e)&&n.push(e);return n};var ro,so={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},lo=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,co=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,uo={},po={},fo={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},ho="Invalid date",mo="%d",go=/\d{1,2}/,yo={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},vo={},bo={},xo=/\d/,wo=/\d\d/,_o=/\d{3}/,ko=/\d{4}/,Co=/[+-]?\d{6}/,So=/\d\d?/,To=/\d\d\d\d?/,$o=/\d\d\d\d\d\d?/,Fo=/\d{1,3}/,Do=/\d{1,4}/,Eo=/[+-]?\d{1,6}/,Ao=/\d+/,Oo=/[+-]?\d+/,No=/Z|[+-]\d\d:?\d\d/gi,Ro=/Z|[+-]\d\d(?::?\d\d)?/gi,Io=/[+-]?\d+(\.\d{1,3})?/,Mo=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;ro={};var Lo,jo={},Po=0,zo=1,Ho=2,Yo=3,Bo=4,Uo=5,Wo=6,qo=7,Vo=8;Lo=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},F("M",["MM",2],"Mo",function(){return this.month()+1}),F("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),F("MMMM",0,0,function(t){return this.localeData().months(this,t)}),j("month","M"),H("month",8),K("M",So),K("MM",So,wo),K("MMM",function(t,e){return e.monthsShortRegex(t)}),K("MMMM",function(t,e){return e.monthsRegex(t)}),et(["M","MM"],function(t,e){e[zo]=W(t)-1}),et(["MMM","MMMM"],function(t,e,n,i){var o=n._locale.monthsParse(t,i,n._strict);null!=o?e[zo]=o:f(n).invalidMonth=t});var Xo="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Go="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Qo=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ko=Mo,Jo=Mo;F("Y",0,0,function(){var t=this.year();return t<=9999?$(t,4):"+"+t}),F(0,["YY",2],0,function(){return this.year()%100}),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),j("year","y"),H("year",1),K("Y",Oo),K("YY",So,wo),K("YYYY",Do,ko),K("YYYYY",Eo,Co),K("YYYYYY",Eo,Co),et(["YYYYY","YYYYYY"],Po),et("YYYY",function(e,n){n[Po]=2===e.length?t.parseTwoDigitYear(e):W(e)}),et("YY",function(e,n){n[Po]=t.parseTwoDigitYear(e)}),et("Y",function(t,e){e[Po]=parseInt(t,10)}),t.parseTwoDigitYear=function(t){return W(t)+(W(t)>68?1900:2e3)};var Zo=q("FullYear",!0);F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),H("week",5),H("isoWeek",5),K("w",So),K("ww",So,wo),K("W",So),K("WW",So,wo),nt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=W(t)});var ta={dow:0,doy:6};F("d",0,"do","day"),F("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),F("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),F("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),K("d",So),K("e",So),K("E",So),K("dd",function(t,e){return e.weekdaysMinRegex(t)}),K("ddd",function(t,e){return e.weekdaysShortRegex(t)}),K("dddd",function(t,e){return e.weekdaysRegex(t)}),nt(["dd","ddd","dddd"],function(t,e,n,i){var o=n._locale.weekdaysParse(t,i,n._strict);null!=o?e.d=o:f(n).invalidWeekday=t}),nt(["d","e","E"],function(t,e,n,i){e[i]=W(t)});var ea="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),na="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ia="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),oa=Mo,aa=Mo,ra=Mo;F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Ut),F("k",["kk",2],0,Wt),F("hmm",0,0,function(){return""+Ut.apply(this)+$(this.minutes(),2)}),F("hmmss",0,0,function(){return""+Ut.apply(this)+$(this.minutes(),2)+$(this.seconds(),2)}),F("Hmm",0,0,function(){return""+this.hours()+$(this.minutes(),2)}),F("Hmmss",0,0,function(){return""+this.hours()+$(this.minutes(),2)+$(this.seconds(),2)}),qt("a",!0),qt("A",!1),j("hour","h"),H("hour",13),K("a",Vt),K("A",Vt),K("H",So),K("h",So),K("k",So),K("HH",So,wo),K("hh",So,wo),K("kk",So,wo),K("hmm",To),K("hmmss",$o),K("Hmm",To),K("Hmmss",$o),et(["H","HH"],Yo),et(["k","kk"],function(t,e,n){var i=W(t);e[Yo]=24===i?0:i}),et(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),et(["h","hh"],function(t,e,n){e[Yo]=W(t),f(n).bigHour=!0}),et("hmm",function(t,e,n){var i=t.length-2;e[Yo]=W(t.substr(0,i)),e[Bo]=W(t.substr(i)),f(n).bigHour=!0}),et("hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[Yo]=W(t.substr(0,i)),e[Bo]=W(t.substr(i,2)),e[Uo]=W(t.substr(o)),f(n).bigHour=!0}),et("Hmm",function(t,e,n){var i=t.length-2;e[Yo]=W(t.substr(0,i)),e[Bo]=W(t.substr(i))}),et("Hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[Yo]=W(t.substr(0,i)),e[Bo]=W(t.substr(i,2)),e[Uo]=W(t.substr(o))});var sa,la=/[ap]\.?m?\.?/i,ca=q("Hours",!0),da={calendar:so,longDateFormat:fo,invalidDate:ho,ordinal:mo,dayOfMonthOrdinalParse:go,relativeTime:yo,months:Xo,monthsShort:Go,week:ta,weekdays:ea,weekdaysMin:ia,weekdaysShort:na,meridiemParse:la},ua={},pa={},fa=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ha=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ma=/Z|[+-]\d\d(?::?\d\d)?/,ga=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ya=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],va=/^\/?Date\((-?\d+)/i,ba=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xa={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var wa=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Te.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),_a=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Te.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()}),ka=function(){return Date.now?Date.now():+new Date},Ca=["year","quarter","month","week","day","hour","minute","second","millisecond"];Le("Z",":"),Le("ZZ",""),K("Z",Ro),K("ZZ",Ro),et(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=je(Ro,t)});var Sa=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Ta=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,$a=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Je.fn=Ne.prototype,Je.invalid=Oe;var Fa=nn(1,"add"),Da=nn(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ea=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)}),Aa=1e3,Oa=60*Aa,Na=60*Oa,Ra=3506328*Na;F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),K("N",ni),K("NN",ni),K("NNN",ni),K("NNNN",ii),K("NNNNN",oi),et(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,i){var o=n._locale.erasParse(t,i,n._strict);o?f(n).era=o:f(n).invalidEra=t}),K("y",Ao),K("yy",Ao),K("yyy",Ao),K("yyyy",Ao),K("yo",ai),et(["y","yy","yyy","yyyy"],Po),et(["yo"],function(t,e,n,i){var o;n._locale._eraYearOrdinalRegex&&(o=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Po]=n._locale.eraYearOrdinalParse(t,o):e[Po]=parseInt(t,10)}),F(0,["gg",2],0,function(){return this.weekYear()%100}),F(0,["GG",2],0,function(){return this.isoWeekYear()%100}),si("gggg","weekYear"),si("ggggg","weekYear"),si("GGGG","isoWeekYear"),si("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),K("G",Oo),K("g",Oo),K("GG",So,wo),K("gg",So,wo),K("GGGG",Do,ko),K("gggg",Do,ko),K("GGGGG",Eo,Co),K("ggggg",Eo,Co),nt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=W(t)}),nt(["gg","GG"],function(e,n,i,o){n[o]=t.parseTwoDigitYear(e)}),F("Q",0,"Qo","quarter"),j("quarter","Q"),H("quarter",7),K("Q",xo),et("Q",function(t,e){e[zo]=3*(W(t)-1)}),F("D",["DD",2],"Do","date"),j("date","D"),H("date",9),K("D",So),K("DD",So,wo),K("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),et(["D","DD"],Ho),et("Do",function(t,e){e[Ho]=W(t.match(So)[0])});var Ia=q("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),H("dayOfYear",4),K("DDD",Fo),K("DDDD",_o),et(["DDD","DDDD"],function(t,e,n){n._dayOfYear=W(t)}),F("m",["mm",2],0,"minute"),
  j("minute","m"),H("minute",14),K("m",So),K("mm",So,wo),et(["m","mm"],Bo);var Ma=q("Minutes",!1);F("s",["ss",2],0,"second"),j("second","s"),H("second",15),K("s",So),K("ss",So,wo),et(["s","ss"],Uo);var La=q("Seconds",!1);F("S",0,0,function(){return~~(this.millisecond()/100)}),F(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,function(){return 10*this.millisecond()}),F(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),F(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),F(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),F(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),F(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),H("millisecond",16),K("S",Fo,xo),K("SS",Fo,wo),K("SSS",Fo,_o);var ja,Pa;for(ja="SSSS";ja.length<=9;ja+="S")K(ja,Ao);for(ja="S";ja.length<=9;ja+="S")et(ja,vi);Pa=q("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var za=y.prototype;za.add=Fa,za.calendar=un,za.clone=pn,za.diff=bn,za.endOf=In,za.format=Cn,za.from=Sn,za.fromNow=Tn,za.to=$n,za.toNow=Fn,za.get=G,za.invalidAt=Un,za.isAfter=fn,za.isBefore=hn,za.isBetween=mn,za.isSame=gn,za.isSameOrAfter=yn,za.isSameOrBefore=vn,za.isValid=Yn,za.lang=Ea,za.locale=Dn,za.localeData=En,za.max=_a,za.min=wa,za.parsingFlags=Bn,za.set=Q,za.startOf=Rn,za.subtract=Da,za.toArray=Pn,za.toObject=zn,za.toDate=jn,za.toISOString=_n,za.inspect=kn,"undefined"!=typeof Symbol&&null!=Symbol.for&&(za[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),za.toJSON=Hn,za.toString=wn,za.unix=Ln,za.valueOf=Mn,za.creationData=Wn,za.eraName=Gn,za.eraNarrow=Qn,za.eraAbbr=Kn,za.eraYear=Jn,za.year=Zo,za.isLeapYear=yt,za.weekYear=li,za.isoWeekYear=ci,za.quarter=za.quarters=gi,za.month=ut,za.daysInMonth=pt,za.week=za.weeks=$t,za.isoWeek=za.isoWeeks=Ft,za.weeksInYear=pi,za.weeksInWeekYear=fi,za.isoWeeksInYear=di,za.isoWeeksInISOWeekYear=ui,za.date=Ia,za.day=za.days=Lt,za.weekday=jt,za.isoWeekday=Pt,za.dayOfYear=yi,za.hour=za.hours=ca,za.minute=za.minutes=Ma,za.second=za.seconds=La,za.millisecond=za.milliseconds=Pa,za.utcOffset=He,za.utc=Be,za.local=Ue,za.parseZone=We,za.hasAlignedHourOffset=qe,za.isDST=Ve,za.isLocal=Ge,za.isUtcOffset=Qe,za.isUtc=Ke,za.isUTC=Ke,za.zoneAbbr=bi,za.zoneName=xi,za.dates=x("dates accessor is deprecated. Use date instead.",Ia),za.months=x("months accessor is deprecated. Use month instead",ut),za.years=x("years accessor is deprecated. Use year instead",Zo),za.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ye),za.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Xe);var Ha=S.prototype;Ha.calendar=T,Ha.longDateFormat=N,Ha.invalidDate=R,Ha.ordinal=I,Ha.preparse=ki,Ha.postformat=ki,Ha.relativeTime=M,Ha.pastFuture=L,Ha.set=k,Ha.eras=qn,Ha.erasParse=Vn,Ha.erasConvertYear=Xn,Ha.erasAbbrRegex=ti,Ha.erasNameRegex=Zn,Ha.erasNarrowRegex=ei,Ha.months=rt,Ha.monthsShort=st,Ha.monthsParse=ct,Ha.monthsRegex=ht,Ha.monthsShortRegex=ft,Ha.week=Ct,Ha.firstDayOfYear=Tt,Ha.firstDayOfWeek=St,Ha.weekdays=Ot,Ha.weekdaysMin=Rt,Ha.weekdaysShort=Nt,Ha.weekdaysParse=Mt,Ha.weekdaysRegex=zt,Ha.weekdaysShortRegex=Ht,Ha.weekdaysMinRegex=Yt,Ha.isPM=Xt,Ha.meridiem=Gt,te("en",{eras:[{since:"0001-01-01",until:+(1/0),offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-(1/0),offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===W(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),t.lang=x("moment.lang is deprecated. Use moment.locale instead.",te),t.langData=x("moment.langData is deprecated. Use moment.localeData instead.",ie);var Ya=Math.abs,Ba=Yi("ms"),Ua=Yi("s"),Wa=Yi("m"),qa=Yi("h"),Va=Yi("d"),Xa=Yi("w"),Ga=Yi("M"),Qa=Yi("Q"),Ka=Yi("y"),Ja=Wi("milliseconds"),Za=Wi("seconds"),tr=Wi("minutes"),er=Wi("hours"),nr=Wi("days"),ir=Wi("months"),or=Wi("years"),ar=Math.round,rr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},sr=Math.abs,lr=Ne.prototype;return lr.isValid=Ae,lr.abs=Oi,lr.add=Ri,lr.subtract=Ii,lr.as=zi,lr.asMilliseconds=Ba,lr.asSeconds=Ua,lr.asMinutes=Wa,lr.asHours=qa,lr.asDays=Va,lr.asWeeks=Xa,lr.asMonths=Ga,lr.asQuarters=Qa,lr.asYears=Ka,lr.valueOf=Hi,lr._bubble=Li,lr.clone=Bi,lr.get=Ui,lr.milliseconds=Ja,lr.seconds=Za,lr.minutes=tr,lr.hours=er,lr.days=nr,lr.weeks=qi,lr.months=ir,lr.years=or,lr.humanize=Ki,lr.toISOString=Zi,lr.toString=Zi,lr.toJSON=Zi,lr.locale=Dn,lr.localeData=En,lr.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zi),lr.lang=Ea,F("X",0,0,"unix"),F("x",0,0,"valueOf"),K("x",Oo),K("X",Io),et("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t))}),et("x",function(t,e,n){n._d=new Date(W(t))}),t.version="2.27.0",e(Te),t.fn=za,t.min=Fe,t.max=De,t.now=ka,t.utc=u,t.unix=wi,t.months=$i,t.isDate=l,t.locale=te,t.invalid=m,t.duration=Je,t.isMoment=v,t.weekdays=Di,t.parseZone=_i,t.localeData=ie,t.isDuration=Re,t.monthsShort=Fi,t.weekdaysMin=Ai,t.defineLocale=ee,t.updateLocale=ne,t.locales=oe,t.weekdaysShort=Ei,t.normalizeUnits=P,t.relativeTimeRounding=Gi,t.relativeTimeThreshold=Qi,t.calendarFormat=dn,t.prototype=za,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}),define("moment",["moment/moment"],function(t){return t}),define("backend",["fast","template","moment"],function(t,e,n){var i={api:{sidebar:function(e){colorArr=["red","green","yellow","blue","teal","orange","purple"],$colorNums=colorArr.length,badgeList={},$.each(e,function(e,n){$url=t.api.fixurl(e),$.isArray(n)?($nums="undefined"!=typeof n[0]?n[0]:0,$color="undefined"!=typeof n[1]?n[1]:colorArr[(isNaN($nums)?$nums.length:$nums)%$colorNums],$class="undefined"!=typeof n[2]?n[2]:"label"):($nums=n,$color=colorArr[(isNaN($nums)?$nums.length:$nums)%$colorNums],$class="label"),badgeList[$url]=$nums>0?'<small class="'+$class+" pull-right bg-"+$color+'">'+$nums+"</small>":""}),$.each(badgeList,function(t,e){var n=top.window.$("li a[addtabs][url='"+t+"']");n&&(top.window.$(".pull-right-container",n).html(e),top.window.$(".nav-addtabs li a[node-id='"+n.attr("addtabs")+"'] .pull-right-container").html(e))})},addtabs:function(e,n,i){var o="a[url='{url}']",a=top.window.$(o.replace(/\{url\}/,e));if(a.size()>0)a.trigger("click");else if(e=t.api.fixurl(e),a=top.window.$(o.replace(/\{url\}/,e)),a.size()>0){var r=a.parent().hasClass("active")?"dblclick":"click";a.trigger(r)}else{var s=e.substr(0,e.indexOf("?")>-1?e.indexOf("?"):e.length);a=top.window.$(o.replace(/\{url\}/,s)),a.size()>0&&(i="undefined"!=typeof i?i:a.find("i").attr("class"),n="undefined"!=typeof n?n:a.find("span:first").text(),a.trigger("fa.event.toggleitem"));var l=top.window.$(".nav-tabs ul li a[node-url='"+e+"']");if(l.size()>0)l.trigger("click");else{var c=Math.floor((new Date).valueOf()*Math.random());i="undefined"!=typeof i?i:"fa fa-circle-o",n="undefined"!=typeof n?n:"",top.window.$("<a />").append('<i class="'+i+'"></i> <span>'+n+"</span>").prop("href",e).attr({url:e,addtabs:c}).addClass("hide").appendTo(top.window.document.body).trigger("click")}}},closetabs:function(e){if("undefined"==typeof e)top.window.$("ul.nav-addtabs li.active .close-tab").trigger("click");else{var n="a[url='{url}']",i=top.window.$(n.replace(/\{url\}/,e));if(0===i.size())if(e=t.api.fixurl(e),i=top.window.$(n.replace(/\{url\}/,e)),0===i.size());else{var o=e.substr(0,e.indexOf("?")>-1?e.indexOf("?"):e.length);i=top.window.$(n.replace(/\{url\}/,o)),0===i.size()&&(i=top.window.$(".nav-tabs ul li a[node-url='"+e+"']"))}i.size()>0&&i.attr("addtabs")&&top.window.$("ul.nav-addtabs li#tab_"+i.attr("addtabs")+" .close-tab").trigger("click")}},replaceids:function(t,e){if(e.indexOf("{ids}")>-1){var n=0,i=$(t).data("table-id");if(i&&$("#"+i).size()>0&&$("#"+i).data("bootstrap.table")){var o=require("table");n=o.api.selectedids($("#"+i)).join(",")}e=e.replace(/\{ids\}/g,n)}return e},refreshmenu:function(){top.window.$(".sidebar-menu").trigger("refresh")},gettablecolumnbutton:function(t){if("undefined"!=typeof t.tableId&&"undefined"!=typeof t.fieldIndex&&"undefined"!=typeof t.buttonIndex){var e=$("#"+t.tableId).bootstrapTable("getOptions");if(e){var n=null;if($.each(e.columns,function(e,i){if($.each(i,function(e,i){if("undefined"!=typeof i.fieldIndex&&i.fieldIndex===t.fieldIndex)return n=i,!1}),n)return!1}),n)return n.buttons[t.buttonIndex]}}return null}},init:function(){/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&$("html").addClass("ios-fix"),Toastr.options.positionClass="index"===Config.controllername?"toast-top-right-index":"toast-top-right",$(document).on("click",".btn-dialog,.dialogit",function(t){var e=this,n=$.extend({},$(e).data()||{}),o=i.api.replaceids(e,$(e).data("url")||$(e).attr("href")),a=$(e).attr("title")||$(e).data("title")||$(e).data("original-title"),r=i.api.gettablecolumnbutton(n);return r&&"function"==typeof r.callback&&(n.callback=r.callback),"undefined"!=typeof n.confirm?Layer.confirm(n.confirm,function(t){i.api.open(o,a,n),Layer.close(t)}):window[$(e).data("window")||"self"].Backend.api.open(o,a,n),!1}),$(document).on("click",".btn-addtabs,.addtabsit",function(t){var e=this,n=$.extend({},$(e).data()||{}),o=i.api.replaceids(e,$(e).data("url")||$(e).attr("href")),a=$(e).attr("title")||$(e).data("title")||$(e).data("original-title"),r=$(e).attr("icon")||$(e).data("icon");return"undefined"!=typeof n.confirm?Layer.confirm(n.confirm,function(t){i.api.addtabs(o,a,r),Layer.close(t)}):i.api.addtabs(o,a,r),!1}),$(document).on("click",".btn-ajax,.ajaxit",function(t){var e=this,n=$.extend({},$(e).data()||{});"undefined"==typeof n.url&&$(e).attr("href")&&(n.url=$(e).attr("href")),n.url=i.api.replaceids(this,n.url);var o="function"==typeof n.success?n.success:null,a="function"==typeof n.error?n.error:null;delete n.success,delete n.error;var r=i.api.gettablecolumnbutton(n);return r&&("function"==typeof r.success&&(o=r.success),"function"==typeof r.error&&(a=r.error)),!o&&"undefined"!=typeof n.tableId&&"undefined"!=typeof n.refresh&&n.refresh&&(o=function(){$("#"+n.tableId).bootstrapTable("refresh")}),"undefined"!=typeof n.confirm?Layer.confirm(n.confirm,function(t){i.api.ajax(n,o,a),Layer.close(t)}):i.api.ajax(n,o,a),!1}),$(document).on("click",".btn-click,.clickit",function(t){var e=this,n=$.extend({},$(e).data()||{}),o={};if("undefined"!=typeof n.tableId){var a=parseInt(n.rowIndex),r=$("#"+n.tableId).bootstrapTable("getData");o="undefined"!=typeof r[a]?r[a]:{}}var s=i.api.gettablecolumnbutton(n),l="function"==typeof s.click?s.click:$.noop;return"undefined"!=typeof n.confirm?Layer.confirm(n.confirm,function(t){l.apply(e,[n,o,s]),Layer.close(t)}):l.apply(e,[n,o,s]),!1}),$(".fixed-footer").size()>0&&$(document.body).css("padding-bottom",$(".fixed-footer").outerHeight()),$(".layer-footer").size()>0&&self===top&&$(".layer-footer").show(),"ontouchstart"in document.documentElement||$("body").tooltip({selector:'[data-toggle="tooltip"]'}),$("body").popover({selector:'[data-toggle="popover"]'})}};return i.api=$.extend(t.api,i.api),window.Template=e,window.Moment=n,window.Backend=i,i.init(),i}),define("backend-init",["backend"],function(t){}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?e(require("../moment")):"function"==typeof define&&define.amd?define("moment/locale/zh-cn",["../moment"],e):e(t.moment)}(this,function(t){"use strict";var e=t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"下午"===e||"晚上"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(t){return t.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(t){return this.week()!==t.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return e}),function(t){"use strict";var e=null,n=function(t){var e=arguments,n=!0,i=1;return t=t.replace(/%s/g,function(){var t=e[i++];return"undefined"==typeof t?(n=!1,""):t}),n?t:""},i=function(e,n,i,o){var a="";return t.each(e,function(t,e){return e[n]!==o||(a=e[i],!1)}),a},o=function(e,n){var i=-1;return t.each(e,function(t,e){return e.field!==n||(i=t,!1)}),i},a=function(e){var n,i,o,a=0,r=[];for(n=0;n<e[0].length;n++)a+=e[0][n].colspan||1;for(n=0;n<e.length;n++)for(r[n]=[],i=0;i<a;i++)r[n][i]=!1;for(n=0;n<e.length;n++)for(i=0;i<e[n].length;i++){var s=e[n][i],l=s.rowspan||1,c=s.colspan||1,d=t.inArray(!1,r[n]);for(1===c&&(s.fieldIndex=d,"undefined"==typeof s.field&&(s.field=d)),o=0;o<l;o++)r[n+o][d]=!0;for(o=0;o<c;o++)r[n][d+o]=!0}},r=function(){if(null===e){var n,i,o=t("<p/>").addClass("fixed-table-scroll-inner"),a=t("<div/>").addClass("fixed-table-scroll-outer");a.append(o),t("body").append(a),n=o[0].offsetWidth,a.css("overflow","scroll"),i=o[0].offsetWidth,n===i&&(i=a[0].clientWidth),a.remove(),e=n-i}return e},s=function(e,i,o,a){var r=i;if("string"==typeof i){var s=i.split(".");s.length>1?(r=window,t.each(s,function(t,e){r=r[e]})):r=window[i]}return"object"==typeof r?r:"function"==typeof r?r.apply(e,o||[]):!r&&"string"==typeof i&&n.apply(this,[i].concat(o))?n.apply(this,[i].concat(o)):a},l=function(e,n,i){var o=Object.getOwnPropertyNames(e),a=Object.getOwnPropertyNames(n),r="";if(i&&o.length!==a.length)return!1;for(var s=0;s<o.length;s++)if(r=o[s],t.inArray(r,a)>-1&&e[r]!==n[r])return!1;return!0},c=function(t){return"string"==typeof t?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/`/g,"&#x60;"):t},d=function(t){for(var e in t){var n=e.split(/(?=[A-Z])/).join("-").toLowerCase();n!==e&&(t[n]=t[e],delete t[e])}return t},u=function(t,e,n){var i=t;if("string"!=typeof e||t.hasOwnProperty(e))return n?c(t[e]):t[e];var o=e.split(".");for(var a in o)o.hasOwnProperty(a)&&(i=i&&i[o[a]]);return n?c(i):i},p=function(){return!!(navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./))},f=function(){Object.keys||(Object.keys=function(){var t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],i=n.length;return function(o){if("object"!=typeof o&&("function"!=typeof o||null===o))throw new TypeError("Object.keys called on non-object");var a,r,s=[];for(a in o)t.call(o,a)&&s.push(a);if(e)for(r=0;r<i;r++)t.call(o,n[r])&&s.push(n[r]);return s}}())},h=function(e,n){this.options=n,this.$el=t(e),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0,this.init()};h.DEFAULTS={classes:"table table-hover",sortClass:void 0,locale:void 0,height:void 0,undefinedText:"-",sortName:void 0,sortOrder:"asc",sortStable:!1,striped:!1,columns:[[]],data:[],totalField:"total",dataField:"rows",method:"get",url:void 0,ajax:void 0,cache:!0,contentType:"application/json",dataType:"json",ajaxOptions:{},queryParams:function(t){return t},queryParamsType:"limit",responseHandler:function(t){return t},pagination:!1,onlyInfoPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"&lsaquo;",paginationNextText:"&rsaquo;",search:!1,searchOnEnterKey:!1,strictSearch:!1,searchAlign:"right",selectItemName:"btSelectItem",showHeader:!0,showFooter:!1,showColumns:!1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,buttonsAlign:"right",smartDisplay:!0,escape:!1,minimumCountColumns:1,idField:void 0,uniqueId:void 0,cardView:!1,detailView:!1,detailFormatter:function(t,e){return""},trimOnSearch:!0,clickToSelect:!1,singleSelect:!1,toolbar:void 0,toolbarAlign:"left",checkboxHeader:!0,sortable:!0,silentSort:!0,maintainSelected:!1,searchTimeOut:500,searchText:"",iconSize:void 0,buttonsClass:"default",iconsPrefix:"glyphicon",icons:{paginationSwitchDown:"glyphicon-collapse-down icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up icon-chevron-up",refresh:"glyphicon-refresh icon-refresh",toggle:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th icon-th",detailOpen:"glyphicon-plus icon-plus",detailClose:"glyphicon-minus icon-minus"},customSearch:t.noop,customSort:t.noop,rowStyle:function(t,e){return{}},rowAttributes:function(t,e){return{}},footerStyle:function(t,e){return{}},onAll:function(t,e){return!1},onClickCell:function(t,e,n,i){return!1},onDblClickCell:function(t,e,n,i){return!1},onClickRow:function(t,e){return!1},onDblClickRow:function(t,e){return!1},onSort:function(t,e){return!1},onCheck:function(t){return!1},onUncheck:function(t){return!1},onCheckAll:function(t){return!1},onUncheckAll:function(t){return!1},onCheckSome:function(t){return!1},onUncheckSome:function(t){return!1},onLoadSuccess:function(t){return!1},onLoadError:function(t){return!1},onColumnSwitch:function(t,e){return!1},onPageChange:function(t,e){return!1},onSearch:function(t){return!1},onToggle:function(t){return!1},onPreBody:function(t){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onExpandRow:function(t,e,n){return!1},onCollapseRow:function(t,e){return!1},onRefreshOptions:function(t){return!1},onRefresh:function(t){return!1},onResetView:function(){return!1}},h.LOCALES={},h.LOCALES["en-US"]=h.LOCALES.en={formatLoadingMessage:function(){return"Loading, please wait..."},formatRecordsPerPage:function(t){return n("%s rows per page",t)},formatShowingRows:function(t,e,i){return n("Showing %s to %s of %s rows",t,e,i)},formatDetailPagination:function(t){return n("Showing %s rows",t)},formatSearch:function(){return"Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatColumns:function(){return"Columns"},formatAllRows:function(){return"All"}},t.extend(h.DEFAULTS,h.LOCALES["en-US"]),h.COLUMN_DEFAULTS={radio:!1,checkbox:!1,checkboxEnabled:!0,field:void 0,title:void 0,titleTooltip:void 0,class:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,width:void 0,sortable:!1,order:"asc",visible:!0,switchable:!0,clickToSelect:!0,formatter:void 0,footerFormatter:void 0,events:void 0,sorter:void 0,sortName:void 0,cellStyle:void 0,searchable:!0,searchFormatter:!0,cardVisible:!0,escape:!1},h.EVENTS={"all.bs.table":"onAll","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh"},h.prototype.init=function(){this.initLocale(),this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initHiddenRows(),this.initFooter(),this.initToolbar(),this.initPagination(),this.initBody(),this.initSearchText(),this.initServer()},h.prototype.initLocale=function(){if(this.options.locale){var e=this.options.locale.split(/-|_/);e[0].toLowerCase(),e[1]&&e[1].toUpperCase(),t.fn.bootstrapTable.locales[this.options.locale]?t.extend(this.options,t.fn.bootstrapTable.locales[this.options.locale]):t.fn.bootstrapTable.locales[e.join("-")]?t.extend(this.options,t.fn.bootstrapTable.locales[e.join("-")]):t.fn.bootstrapTable.locales[e[0]]&&t.extend(this.options,t.fn.bootstrapTable.locales[e[0]])}},h.prototype.initContainer=function(){this.$container=t(['<div class="bootstrap-table">','<div class="fixed-table-toolbar"></div>',"top"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?'<div class="fixed-table-pagination" style="clear: both;"></div>':"",'<div class="fixed-table-container">','<div class="fixed-table-header"><table></table></div>','<div class="fixed-table-body">','<div class="fixed-table-loading">',this.options.formatLoadingMessage(),"</div>","</div>",'<div class="fixed-table-footer"><table><tr></tr></table></div>',"bottom"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?'<div class="fixed-table-pagination"></div>':"","</div>","</div>"].join("")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$container.find(".fixed-table-footer"),this.$toolbar=this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after('<div class="clearfix"></div>'),this.$el.addClass(this.options.classes),this.options.striped&&this.$el.addClass("table-striped"),t.inArray("table-no-bordered",this.options.classes.split(" "))!==-1&&this.$tableContainer.addClass("table-no-bordered")},h.prototype.initTable=function(){var e=this,n=[],i=[];if(this.$header=this.$el.find(">thead"),this.$header.length||(this.$header=t("<thead></thead>").appendTo(this.$el)),this.$header.find("tr").each(function(){var e=[];t(this).find("th").each(function(){"undefined"!=typeof t(this).data("field")&&t(this).data("field",t(this).data("field")+""),e.push(t.extend({},{title:t(this).html(),class:t(this).attr("class"),titleTooltip:t(this).attr("title"),rowspan:t(this).attr("rowspan")?+t(this).attr("rowspan"):void 0,colspan:t(this).attr("colspan")?+t(this).attr("colspan"):void 0},t(this).data()))}),n.push(e)}),t.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=t.extend(!0,[],n,this.options.columns),this.columns=[],a(this.options.columns),t.each(this.options.columns,function(n,i){t.each(i,function(i,o){o=t.extend({},h.COLUMN_DEFAULTS,o),"undefined"!=typeof o.fieldIndex&&(e.columns[o.fieldIndex]=o),e.options.columns[n][i]=o})}),!this.options.data.length){var o=[];this.$el.find(">tbody>tr").each(function(n){var a={};a._id=t(this).attr("id"),a._class=t(this).attr("class"),a._data=d(t(this).data()),t(this).find(">td").each(function(i){for(var r,s,l=t(this),c=+l.attr("colspan")||1,u=+l.attr("rowspan")||1;o[n]&&o[n][i];i++);for(r=i;r<i+c;r++)for(s=n;s<n+u;s++)o[s]||(o[s]=[]),o[s][r]=!0;var p=e.columns[i].field;a[p]=t(this).html(),a["_"+p+"_id"]=t(this).attr("id"),a["_"+p+"_class"]=t(this).attr("class"),a["_"+p+"_rowspan"]=t(this).attr("rowspan"),a["_"+p+"_colspan"]=t(this).attr("colspan"),a["_"+p+"_title"]=t(this).attr("title"),a["_"+p+"_data"]=d(t(this).data())}),i.push(a)}),this.options.data=i,i.length&&(this.fromHtml=!0)}},h.prototype.initHeader=function(){var e=this,i={},o=[];this.header={fields:[],styles:[],classes:[],formatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},t.each(this.options.columns,function(a,r){o.push("<tr>"),0===a&&!e.options.cardView&&e.options.detailView&&o.push(n('<th class="detail" rowspan="%s"><div class="fht-cell"></div></th>',e.options.columns.length)),t.each(r,function(t,a){var r="",s="",l="",d="",u=n(' class="%s"',a.class),p=(e.options.sortOrder||a.order,"px"),f=a.width;if(void 0===a.width||e.options.cardView||"string"==typeof a.width&&a.width.indexOf("%")!==-1&&(p="%"),a.width&&"string"==typeof a.width&&(f=a.width.replace("%","").replace("px","")),s=n("text-align: %s; ",a.halign?a.halign:a.align),l=n("text-align: %s; ",a.align),d=n("vertical-align: %s; ",a.valign),d+=n("width: %s; ",!a.checkbox&&!a.radio||f?f?f+p:void 0:"36px"),"undefined"!=typeof a.fieldIndex){if(e.header.fields[a.fieldIndex]=a.field,e.header.styles[a.fieldIndex]=l+d,e.header.classes[a.fieldIndex]=u,e.header.formatters[a.fieldIndex]=a.formatter,e.header.events[a.fieldIndex]=a.events,e.header.sorters[a.fieldIndex]=a.sorter,e.header.sortNames[a.fieldIndex]=a.sortName,e.header.cellStyles[a.fieldIndex]=a.cellStyle,e.header.searchables[a.fieldIndex]=a.searchable,!a.visible)return;if(e.options.cardView&&!a.cardVisible)return;i[a.field]=a}o.push("<th"+n(' title="%s"',a.titleTooltip),a.checkbox||a.radio?n(' class="bs-checkbox %s"',a.class||""):u,n(' style="%s"',s+d),n(' rowspan="%s"',a.rowspan),n(' colspan="%s"',a.colspan),n(' data-field="%s"',a.field),">"),o.push(n('<div class="th-inner %s">',e.options.sortable&&a.sortable?"sortable both":"")),r=e.options.escape?c(a.title):a.title,a.checkbox&&(!e.options.singleSelect&&e.options.checkboxHeader&&(r='<input name="btSelectAll" type="checkbox" />'),e.header.stateField=a.field),a.radio&&(r="",e.header.stateField=a.field,e.options.singleSelect=!0),o.push(r),o.push("</div>"),o.push('<div class="fht-cell"></div>'),o.push("</div>"),o.push("</th>")}),o.push("</tr>")}),this.$header.html(o.join("")),this.$header.find("th[data-field]").each(function(e){t(this).data(i[t(this).data("field")])}),this.$container.off("click",".th-inner").on("click",".th-inner",function(n){var i=t(this);return(!e.options.detailView||i.closest(".bootstrap-table")[0]===e.$container[0])&&void(e.options.sortable&&i.parent().data().sortable&&e.onSort(n))}),this.$header.children().children().off("keypress").on("keypress",function(n){if(e.options.sortable&&t(this).data().sortable){var i=n.keyCode||n.which;13==i&&e.onSort(n)}}),t(window).off("resize.bootstrap-table"),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),t(window).on("resize.bootstrap-table",t.proxy(this.resetWidth,this))),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$selectAll.off("click").on("click",function(){var n=t(this).prop("checked");e[n?"checkAll":"uncheckAll"](),e.updateSelected()})},h.prototype.initFooter=function(){!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()},h.prototype.initData=function(t,e){"append"===e?this.data=this.data.concat(t):"prepend"===e?this.data=[].concat(t).concat(this.data):this.data=t||this.options.data,"append"===e?this.options.data=this.options.data.concat(t):"prepend"===e?this.options.data=[].concat(t).concat(this.options.data):this.options.data=this.data,"server"!==this.options.sidePagination&&this.initSort()},h.prototype.initSort=function(){var e=this,i=this.options.sortName,o="desc"===this.options.sortOrder?-1:1,a=t.inArray(this.options.sortName,this.header.fields),r=0;return this.options.customSort!==t.noop?void this.options.customSort.apply(this,[this.options.sortName,this.options.sortOrder]):void(a!==-1&&(this.options.sortStable&&t.each(this.data,function(t,e){e.hasOwnProperty("_position")||(e._position=t)}),this.data.sort(function(n,r){e.header.sortNames[a]&&(i=e.header.sortNames[a]);var l=u(n,i,e.options.escape),c=u(r,i,e.options.escape),d=s(e.header,e.header.sorters[a],[l,c]);return void 0!==d?o*d:(void 0!==l&&null!==l||(l=""),void 0!==c&&null!==c||(c=""),e.options.sortStable&&l===c&&(l=n._position,c=r._position),t.isNumeric(l)&&t.isNumeric(c)?(l=parseFloat(l),c=parseFloat(c),l<c?o*-1:o):l===c?0:("string"!=typeof l&&(l=l.toString()),l.localeCompare(c)===-1?o*-1:o))}),void 0!==this.options.sortClass&&(clearTimeout(r),r=setTimeout(function(){e.$el.removeClass(e.options.sortClass);var t=e.$header.find(n('[data-field="%s"]',e.options.sortName).index()+1);e.$el.find(n("tr td:nth-child(%s)",t)).addClass(e.options.sortClass)},250))))},h.prototype.onSort=function(e){var n="keypress"===e.type?t(e.currentTarget):t(e.currentTarget).parent(),i=this.$header.find("th").eq(n.index());return this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===n.data("field")?this.options.sortOrder="asc"===this.options.sortOrder?"desc":"asc":(this.options.sortName=n.data("field"),this.options.sortOrder="asc"===n.data("order")?"desc":"asc"),this.trigger("sort",this.options.sortName,this.options.sortOrder),n.add(i).data("order",this.options.sortOrder),this.getCaret(),"server"===this.options.sidePagination?void this.initServer(this.options.silentSort):(this.initSort(),void this.initBody())},h.prototype.initToolbar=function(){var e,i,o=this,a=[],r=0,l=0;this.$toolbar.find(".bs-bars").children().length&&t("body").append(t(this.options.toolbar)),this.$toolbar.html(""),"string"!=typeof this.options.toolbar&&"object"!=typeof this.options.toolbar||t(n('<div class="bs-bars pull-%s"></div>',this.options.toolbarAlign)).appendTo(this.$toolbar).append(t(this.options.toolbar)),a=[n('<div class="columns columns-%s btn-group pull-%s">',this.options.buttonsAlign,this.options.buttonsAlign)],"string"==typeof this.options.icons&&(this.options.icons=s(null,this.options.icons)),this.options.showPaginationSwitch&&a.push(n('<button class="btn'+n(" btn-%s",this.options.buttonsClass)+n(" btn-%s",this.options.iconSize)+'" type="button" name="paginationSwitch" aria-label="pagination Switch" title="%s">',this.options.formatPaginationSwitch()),n('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.paginationSwitchDown),"</button>"),this.options.showRefresh&&a.push(n('<button class="btn'+n(" btn-%s",this.options.buttonsClass)+n(" btn-%s",this.options.iconSize)+'" type="button" name="refresh" aria-label="refresh" title="%s">',this.options.formatRefresh()),n('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.refresh),"</button>"),this.options.showToggle&&a.push(n('<button class="btn'+n(" btn-%s",this.options.buttonsClass)+n(" btn-%s",this.options.iconSize)+'" type="button" name="toggle" aria-label="toggle" title="%s">',this.options.formatToggle()),n('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.toggle),"</button>"),this.options.showColumns&&(a.push(n('<div class="keep-open btn-group" title="%s">',this.options.formatColumns()),'<button type="button" aria-label="columns" class="btn'+n(" btn-%s",this.options.buttonsClass)+n(" btn-%s",this.options.iconSize)+' dropdown-toggle" data-toggle="dropdown">',n('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.columns),' <span class="caret"></span>',"</button>",'<ul class="dropdown-menu" role="menu">'),t.each(this.columns,function(t,e){if(!e.radio&&!e.checkbox&&(!o.options.cardView||e.cardVisible)){var i=e.visible?' checked="checked"':"";
  e.switchable&&(a.push(n('<li role="menuitem"><label><input type="checkbox" data-field="%s" value="%s"%s> %s</label></li>',e.field,t,i,e.title)),l++)}}),a.push("</ul>","</div>")),a.push("</div>"),(this.showToolbar||a.length>2)&&this.$toolbar.append(a.join("")),this.options.showPaginationSwitch&&this.$toolbar.find('button[name="paginationSwitch"]').off("click").on("click",t.proxy(this.togglePagination,this)),this.options.showRefresh&&this.$toolbar.find('button[name="refresh"]').off("click").on("click",t.proxy(this.refresh,this)),this.options.showToggle&&this.$toolbar.find('button[name="toggle"]').off("click").on("click",function(){o.toggleView()}),this.options.showColumns&&(e=this.$toolbar.find(".keep-open"),l<=this.options.minimumCountColumns&&e.find("input").prop("disabled",!0),e.find("li").off("click").on("click",function(t){t.stopImmediatePropagation()}),e.find("input").off("click").on("click",function(){var e=t(this);o.toggleColumn(t(this).val(),e.prop("checked"),!1),o.trigger("column-switch",t(this).data("field"),e.prop("checked"))})),this.options.search&&(a=[],a.push('<div class="pull-'+this.options.searchAlign+' search">',n('<input class="form-control'+n(" input-%s",this.options.iconSize)+'" type="text" placeholder="%s">',this.options.formatSearch()),"</div>"),this.$toolbar.append(a.join("")),i=this.$toolbar.find(".search input"),i.off("keyup drop blur").on("keyup drop blur",function(e){o.options.searchOnEnterKey&&13!==e.keyCode||t.inArray(e.keyCode,[37,38,39,40])>-1||(clearTimeout(r),r=setTimeout(function(){o.onSearch(e)},o.options.searchTimeOut))}),p()&&i.off("mouseup").on("mouseup",function(t){clearTimeout(r),r=setTimeout(function(){o.onSearch(t)},o.options.searchTimeOut)}))},h.prototype.onSearch=function(e){var n=t.trim(t(e.currentTarget).val());this.options.trimOnSearch&&t(e.currentTarget).val()!==n&&t(e.currentTarget).val(n),n!==this.searchText&&(this.searchText=n,this.options.searchText=n,this.options.pageNumber=1,this.initSearch(),this.updatePagination(),this.trigger("search",n))},h.prototype.initSearch=function(){var e=this;if("server"!==this.options.sidePagination){if(this.options.customSearch!==t.noop)return void this.options.customSearch.apply(this,[this.searchText]);var n=this.searchText&&(this.options.escape?c(this.searchText):this.searchText).toLowerCase(),i=t.isEmptyObject(this.filterColumns)?null:this.filterColumns;this.data=i?t.grep(this.options.data,function(e,n){for(var o in i)if(t.isArray(i[o])&&t.inArray(e[o],i[o])===-1||!t.isArray(i[o])&&e[o]!==i[o])return!1;return!0}):this.options.data,this.data=n?t.grep(this.data,function(i,a){for(var r=0;r<e.header.fields.length;r++)if(e.header.searchables[r]){var l,c=t.isNumeric(e.header.fields[r])?parseInt(e.header.fields[r],10):e.header.fields[r],d=e.columns[o(e.columns,c)];if("string"==typeof c){l=i;for(var u=c.split("."),p=0;p<u.length;p++)l=l[u[p]];d&&d.searchFormatter&&(l=s(d,e.header.formatters[r],[l,i,a],l))}else l=i[c];if("string"==typeof l||"number"==typeof l)if(e.options.strictSearch){if((l+"").toLowerCase()===n)return!0}else if((l+"").toLowerCase().indexOf(n)!==-1)return!0}return!1}):this.data}},h.prototype.initPagination=function(){if(!this.options.pagination)return void this.$pagination.hide();this.$pagination.show();var e,i,o,a,r,s,l,c,d,u=this,p=[],f=!1,h=this.getData(),m=this.options.pageList;if("server"!==this.options.sidePagination&&(this.options.totalRows=h.length),this.totalPages=0,this.options.totalRows){if(this.options.pageSize===this.options.formatAllRows())this.options.pageSize=this.options.totalRows,f=!0;else if(this.options.pageSize===this.options.totalRows){var g="string"==typeof this.options.pageList?this.options.pageList.replace("[","").replace("]","").replace(/ /g,"").toLowerCase().split(","):this.options.pageList;t.inArray(this.options.formatAllRows().toLowerCase(),g)>-1&&(f=!0)}this.totalPages=~~((this.options.totalRows-1)/this.options.pageSize)+1,this.options.totalPages=this.totalPages}if(this.totalPages>0&&this.options.pageNumber>this.totalPages&&(this.options.pageNumber=this.totalPages),this.pageFrom=(this.options.pageNumber-1)*this.options.pageSize+1,this.pageTo=this.options.pageNumber*this.options.pageSize,this.pageTo>this.options.totalRows&&(this.pageTo=this.options.totalRows),p.push('<div class="pull-'+this.options.paginationDetailHAlign+' pagination-detail">','<span class="pagination-info">',this.options.onlyInfoPagination?this.options.formatDetailPagination(this.options.totalRows):this.options.formatShowingRows(this.pageFrom,this.pageTo,this.options.totalRows),"</span>"),!this.options.onlyInfoPagination){p.push('<span class="page-list">');var y=[n('<span class="btn-group %s">',"top"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?"dropdown":"dropup"),'<button type="button" class="btn'+n(" btn-%s",this.options.buttonsClass)+n(" btn-%s",this.options.iconSize)+' dropdown-toggle" data-toggle="dropdown">','<span class="page-size">',f?this.options.formatAllRows():this.options.pageSize,"</span>",' <span class="caret"></span>',"</button>",'<ul class="dropdown-menu" role="menu">'];if("string"==typeof this.options.pageList){var v=this.options.pageList.replace("[","").replace("]","").replace(/ /g,"").split(",");m=[],t.each(v,function(t,e){m.push(e.toUpperCase()===u.options.formatAllRows().toUpperCase()?u.options.formatAllRows():+e)})}for(t.each(m,function(t,e){if(!u.options.smartDisplay||0===t||m[t-1]<u.options.totalRows){var i;i=f?e===u.options.formatAllRows()?' class="active"':"":e===u.options.pageSize?' class="active"':"",y.push(n('<li role="menuitem"%s><a href="#">%s</a></li>',i,e))}}),y.push("</ul></span>"),p.push(this.options.formatRecordsPerPage(y.join(""))),p.push("</span>"),p.push("</div>",'<div class="pull-'+this.options.paginationHAlign+' pagination">','<ul class="pagination'+n(" pagination-%s",this.options.iconSize)+'">','<li class="page-pre"><a href="#">'+this.options.paginationPreText+"</a></li>"),this.totalPages<5?(i=1,o=this.totalPages):(i=this.options.pageNumber-2,o=i+4,i<1&&(i=1,o=5),o>this.totalPages&&(o=this.totalPages,i=o-4)),this.totalPages>=6&&(this.options.pageNumber>=3&&(p.push('<li class="page-first'+(1===this.options.pageNumber?" active":"")+'">','<a href="#">',1,"</a>","</li>"),i++),this.options.pageNumber>=4&&(4==this.options.pageNumber||6==this.totalPages||7==this.totalPages?i--:p.push('<li class="page-first-separator disabled">','<a href="#">...</a>',"</li>"),o--)),this.totalPages>=7&&this.options.pageNumber>=this.totalPages-2&&i--,6==this.totalPages?this.options.pageNumber>=this.totalPages-2&&o++:this.totalPages>=7&&(7==this.totalPages||this.options.pageNumber>=this.totalPages-3)&&o++,e=i;e<=o;e++)p.push('<li class="page-number'+(e===this.options.pageNumber?" active":"")+'">','<a href="#">',e,"</a>","</li>");this.totalPages>=8&&this.options.pageNumber<=this.totalPages-4&&p.push('<li class="page-last-separator disabled">','<a href="#">...</a>',"</li>"),this.totalPages>=6&&this.options.pageNumber<=this.totalPages-3&&p.push('<li class="page-last'+(this.totalPages===this.options.pageNumber?" active":"")+'">','<a href="#">',this.totalPages,"</a>","</li>"),p.push('<li class="page-next"><a href="#">'+this.options.paginationNextText+"</a></li>","</ul>","</div>")}this.$pagination.html(p.join("")),this.options.onlyInfoPagination||(a=this.$pagination.find(".page-list a"),r=this.$pagination.find(".page-first"),s=this.$pagination.find(".page-pre"),l=this.$pagination.find(".page-next"),c=this.$pagination.find(".page-last"),d=this.$pagination.find(".page-number"),this.options.smartDisplay&&(this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),(m.length<2||this.options.totalRows<=m[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"]()),this.options.paginationLoop||(1===this.options.pageNumber&&s.addClass("disabled"),this.options.pageNumber===this.totalPages&&l.addClass("disabled")),f&&(this.options.pageSize=this.options.formatAllRows()),a.off("click").on("click",t.proxy(this.onPageListChange,this)),r.off("click").on("click",t.proxy(this.onPageFirst,this)),s.off("click").on("click",t.proxy(this.onPagePre,this)),l.off("click").on("click",t.proxy(this.onPageNext,this)),c.off("click").on("click",t.proxy(this.onPageLast,this)),d.off("click").on("click",t.proxy(this.onPageNumber,this)))},h.prototype.updatePagination=function(e){e&&t(e.currentTarget).hasClass("disabled")||(this.options.maintainSelected||this.resetRows(),this.initPagination(),"server"===this.options.sidePagination?this.initServer():this.initBody(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize))},h.prototype.onPageListChange=function(e){var n=t(e.currentTarget);return n.parent().addClass("active").siblings().removeClass("active"),this.options.pageSize=n.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+n.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(e),!1},h.prototype.onPageFirst=function(t){return this.options.pageNumber=1,this.updatePagination(t),!1},h.prototype.onPagePre=function(t){return this.options.pageNumber-1===0?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(t),!1},h.prototype.onPageNext=function(t){return this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(t),!1},h.prototype.onPageLast=function(t){return this.options.pageNumber=this.totalPages,this.updatePagination(t),!1},h.prototype.onPageNumber=function(e){if(this.options.pageNumber!==+t(e.currentTarget).text())return this.options.pageNumber=+t(e.currentTarget).text(),this.updatePagination(e),!1},h.prototype.initRow=function(e,o,a,r){var l,d=this,p=[],f={},h=[],m="",g={},y=[];if(!(t.inArray(e,this.hiddenRows)>-1)){if(f=s(this.options,this.options.rowStyle,[e,o],f),f&&f.css)for(l in f.css)h.push(l+": "+f.css[l]);if(g=s(this.options,this.options.rowAttributes,[e,o],g))for(l in g)y.push(n('%s="%s"',l,c(g[l])));return e._data&&!t.isEmptyObject(e._data)&&t.each(e._data,function(t,e){"index"!==t&&(m+=n(' data-%s="%s"',t,e))}),p.push("<tr",n(" %s",y.join(" ")),n(' id="%s"',t.isArray(e)?void 0:e._id),n(' class="%s"',f.classes||(t.isArray(e)?void 0:e._class)),n(' data-index="%s"',o),n(' data-uniqueid="%s"',e[this.options.uniqueId]),n("%s",m),">"),this.options.cardView&&p.push(n('<td colspan="%s"><div class="card-views">',this.header.fields.length)),!this.options.cardView&&this.options.detailView&&p.push("<td>",'<a class="detail-icon" href="#">',n('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.detailOpen),"</a>","</td>"),t.each(this.header.fields,function(a,r){var l="",m=u(e,r,d.options.escape),g="",y="",v={},b="",x=d.header.classes[a],w="",_="",k="",C="",S=d.columns[a];if((!d.fromHtml||"undefined"!=typeof m)&&S.visible&&(!d.options.cardView||S.cardVisible)){if(S.escape&&(m=c(m)),f=n('style="%s"',h.concat(d.header.styles[a]).join("; ")),e["_"+r+"_id"]&&(b=n(' id="%s"',e["_"+r+"_id"])),e["_"+r+"_class"]&&(x=n(' class="%s"',e["_"+r+"_class"])),e["_"+r+"_rowspan"]&&(_=n(' rowspan="%s"',e["_"+r+"_rowspan"])),e["_"+r+"_colspan"]&&(k=n(' colspan="%s"',e["_"+r+"_colspan"])),e["_"+r+"_title"]&&(C=n(' title="%s"',e["_"+r+"_title"])),v=s(d.header,d.header.cellStyles[a],[m,e,o,r],v),v.classes&&(x=n(' class="%s"',v.classes)),v.css){var T=[];for(var $ in v.css)T.push($+": "+v.css[$]);f=n('style="%s"',T.concat(d.header.styles[a]).join("; "))}g=s(S,d.header.formatters[a],[m,e,o],m),e["_"+r+"_data"]&&!t.isEmptyObject(e["_"+r+"_data"])&&t.each(e["_"+r+"_data"],function(t,e){"index"!==t&&(w+=n(' data-%s="%s"',t,e))}),S.checkbox||S.radio?(y=S.checkbox?"checkbox":y,y=S.radio?"radio":y,l=[n(d.options.cardView?'<div class="card-view %s">':'<td class="bs-checkbox %s">',S.class||""),"<input"+n(' data-index="%s"',o)+n(' name="%s"',d.options.selectItemName)+n(' type="%s"',y)+n(' value="%s"',e[d.options.idField])+n(' checked="%s"',g===!0||m||g&&g.checked?"checked":void 0)+n(' disabled="%s"',!S.checkboxEnabled||g&&g.disabled?"disabled":void 0)+" />",d.header.formatters[a]&&"string"==typeof g?g:"",d.options.cardView?"</div>":"</td>"].join(""),e[d.header.stateField]=g===!0||g&&g.checked):(g="undefined"==typeof g||null===g?d.options.undefinedText:g,l=d.options.cardView?['<div class="card-view">',d.options.showHeader?n('<span class="title" %s>%s</span>',f,i(d.columns,"field","title",r)):"",n('<span class="value">%s</span>',g),"</div>"].join(""):[n("<td%s %s %s %s %s %s %s>",b,x,f,w,_,k,C),g,"</td>"].join(""),d.options.cardView&&d.options.smartDisplay&&""===g&&(l='<div class="card-view"></div>')),p.push(l)}}),this.options.cardView&&p.push("</div></td>"),p.push("</tr>"),p.join(" ")}},h.prototype.initBody=function(e){var i=this,a=this.getData();this.trigger("pre-body",a),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=t("<tbody></tbody>").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=a.length);for(var r,l=t(document.createDocumentFragment()),c=this.pageFrom-1;c<this.pageTo;c++){var d=a[c],p=this.initRow(d,c,a,l);r=r||!!p,p&&p!==!0&&l.append(p)}r||l.append('<tr class="no-records-found">'+n('<td colspan="%s">%s</td>',this.$header.find("th").length,this.options.formatNoMatches())+"</tr>"),this.$body.html(l),e||this.scrollTo(0),this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",function(e){var a=t(this),r=a.parent(),s=i.data[r.data("index")],l=a[0].cellIndex,c=i.getVisibleFields(),d=c[i.options.detailView&&!i.options.cardView?l-1:l],p=i.columns[o(i.columns,d)],f=u(s,d,i.options.escape);if(!a.find(".detail-icon").length&&(i.trigger("click"===e.type?"click-cell":"dbl-click-cell",d,f,s,a),i.trigger("click"===e.type?"click-row":"dbl-click-row",s,r,d),"click"===e.type&&i.options.clickToSelect&&p.clickToSelect)){var h=r.find(n('[name="%s"]',i.options.selectItemName));h.length&&h[0].click()}}),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",function(){var e=t(this),o=e.parent().parent(),r=o.data("index"),l=a[r];if(o.next().is("tr.detail-view"))e.find("i").attr("class",n("%s %s",i.options.iconsPrefix,i.options.icons.detailOpen)),i.trigger("collapse-row",r,l),o.next().remove();else{e.find("i").attr("class",n("%s %s",i.options.iconsPrefix,i.options.icons.detailClose)),o.after(n('<tr class="detail-view"><td colspan="%s"></td></tr>',o.find("td").length));var c=o.next().find("td"),d=s(i.options,i.options.detailFormatter,[r,l,c],"");1===c.length&&c.append(d),i.trigger("expand-row",r,l,c)}return i.resetView(),!1}),this.$selectItem=this.$body.find(n('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",function(e){e.stopImmediatePropagation();var n=t(this),o=n.prop("checked"),a=i.data[n.data("index")];i.options.maintainSelected&&t(this).is(":radio")&&t.each(i.options.data,function(t,e){e[i.header.stateField]=!1}),a[i.header.stateField]=o,i.options.singleSelect&&(i.$selectItem.not(this).each(function(){i.data[t(this).data("index")][i.header.stateField]=!1}),i.$selectItem.filter(":checked").not(this).prop("checked",!1)),i.updateSelected(),i.trigger(o?"check":"uncheck",a,n)}),t.each(this.header.events,function(e,n){if(n){"string"==typeof n&&(n=s(null,n));var o=i.header.fields[e],a=t.inArray(o,i.getVisibleFields());i.options.detailView&&!i.options.cardView&&(a+=1);for(var r in n)i.$body.find(">tr:not(.no-records-found)").each(function(){var e=t(this),s=e.find(i.options.cardView?".card-view":"td").eq(a),l=r.indexOf(" "),c=r.substring(0,l),d=r.substring(l+1),u=n[r];s.find(d).off(c).on(c,function(t){var n=e.data("index"),a=i.data[n],r=a[o],s=o.split(".");if(s.length>1){r=a;for(var l=0;l<s.length;l++)r=r[s[l]]}u.apply(this,[t,r,a,n])})})}}),this.updateSelected(),this.resetView(),this.trigger("post-body",a)},h.prototype.initServer=function(e,n,i){var o,a=this,r={},l={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};this.options.pagination&&(l.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,l.pageNumber=this.options.pageNumber),(i||this.options.url||this.options.ajax)&&("limit"===this.options.queryParamsType&&(l={search:l.searchText,sort:l.sortName,order:l.sortOrder},this.options.pagination&&(l.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),l.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize)),t.isEmptyObject(this.filterColumnsPartial)||(l.filter=JSON.stringify(this.filterColumnsPartial,null)),r=s(this.options,this.options.queryParams,[l],r),t.extend(r,n||{}),r!==!1&&(e||this.$tableLoading.show(),o=t.extend({},s(null,this.options.ajaxOptions),{type:this.options.method,url:i||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(r):r,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(t){t=s(a.options,a.options.responseHandler,[t],t),a.load(t),a.trigger("load-success",t),e||a.$tableLoading.hide()},error:function(t){a.trigger("load-error",t.status,t),e||a.$tableLoading.hide()}}),this.options.ajax?s(this,this.options.ajax,[o],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=t.ajax(o))))},h.prototype.initSearchText=function(){if(this.options.search&&""!==this.options.searchText){var t=this.$toolbar.find(".search input");t.val(this.options.searchText),this.onSearch({currentTarget:t})}},h.prototype.getCaret=function(){var e=this;t.each(this.$header.find("th"),function(n,i){t(i).find(".sortable").removeClass("desc asc").addClass(t(i).data("field")===e.options.sortName?e.options.sortOrder:"both")})},h.prototype.updateSelected=function(){var e=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.each(function(){t(this).closest("tr")[t(this).prop("checked")?"addClass":"removeClass"]("selected")})},h.prototype.updateRows=function(){var e=this;this.$selectItem.each(function(){e.data[t(this).data("index")][e.header.stateField]=t(this).prop("checked")})},h.prototype.resetRows=function(){var e=this;t.each(this.data,function(t,n){e.$selectAll.prop("checked",!1),e.$selectItem.prop("checked",!1),e.header.stateField&&(n[e.header.stateField]=!1)}),this.initHiddenRows()},h.prototype.trigger=function(e){var n=Array.prototype.slice.call(arguments,1);e+=".bs.table",this.options[h.EVENTS[e]].apply(this.options,n),this.$el.trigger(t.Event(e),n),this.options.onAll(e,n),this.$el.trigger(t.Event("all.bs.table"),[e,n])},h.prototype.resetHeader=function(){clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(t.proxy(this.fitHeader,this),this.$el.is(":hidden")?100:0)},h.prototype.fitHeader=function(){var e,i,o,a,s=this;if(s.$el.is(":hidden"))return void(s.timeoutId_=setTimeout(t.proxy(s.fitHeader,s),100));if(e=this.$tableBody.get(0),i=e.scrollWidth>e.clientWidth&&e.scrollHeight>e.clientHeight+this.$header.outerHeight()?r():0,this.$el.css("margin-top",-this.$header.outerHeight()),o=t(":focus"),o.length>0){var l=o.parents("th");if(l.length>0){var c=l.attr("data-field");if(void 0!==c){var d=this.$header.find("[data-field='"+c+"']");d.length>0&&d.find(":input").addClass("focus-temp")}}}this.$header_=this.$header.clone(!0,!0),this.$selectAll_=this.$header_.find('[name="btSelectAll"]'),this.$tableHeader.css({"margin-right":i}).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_),a=t(".focus-temp:visible:eq(0)"),a.length>0&&(a.focus(),this.$header.find(".focus-temp").removeClass("focus-temp")),this.$header.find("th[data-field]").each(function(e){s.$header_.find(n('th[data-field="%s"]',t(this).data("field"))).data(t(this).data())});var u=this.getVisibleFields(),p=this.$header_.find("th");this.$body.find(">tr:first-child:not(.no-records-found) > *").each(function(e){var i=t(this),o=e;s.options.detailView&&!s.options.cardView&&(0===e&&s.$header_.find("th.detail").find(".fht-cell").width(i.innerWidth()),o=e-1);var a=s.$header_.find(n('th[data-field="%s"]',u[o]));a.length>1&&(a=t(p[i[0].cellIndex])),a.find(".fht-cell").width(i.innerWidth())}),this.$tableBody.off("scroll").on("scroll",function(){s.$tableHeader.scrollLeft(t(this).scrollLeft()),s.options.showFooter&&!s.options.cardView&&s.$tableFooter.scrollLeft(t(this).scrollLeft())}),s.trigger("post-header")},h.prototype.resetFooter=function(){var e=this,i=e.getData(),o=[];this.options.showFooter&&!this.options.cardView&&(!this.options.cardView&&this.options.detailView&&o.push('<td><div class="th-inner">&nbsp;</div><div class="fht-cell"></div></td>'),t.each(this.columns,function(t,a){var r,l="",c="",d=[],u={},p=n(' class="%s"',a.class);if(a.visible&&(!e.options.cardView||a.cardVisible)){if(l=n("text-align: %s; ",a.falign?a.falign:a.align),c=n("vertical-align: %s; ",a.valign),u=s(null,e.options.footerStyle),u&&u.css)for(r in u.css)d.push(r+": "+u.css[r]);o.push("<td",p,n(' style="%s"',l+c+d.concat().join("; ")),">"),o.push('<div class="th-inner">'),o.push(s(a,a.footerFormatter,[i],"&nbsp;")||"&nbsp;"),o.push("</div>"),o.push('<div class="fht-cell"></div>'),o.push("</div>"),o.push("</td>")}}),this.$tableFooter.find("tr").html(o.join("")),this.$tableFooter.show(),clearTimeout(this.timeoutFooter_),this.timeoutFooter_=setTimeout(t.proxy(this.fitFooter,this),this.$el.is(":hidden")?100:0))},h.prototype.fitFooter=function(){var e,n,i;return clearTimeout(this.timeoutFooter_),this.$el.is(":hidden")?void(this.timeoutFooter_=setTimeout(t.proxy(this.fitFooter,this),100)):(n=this.$el.css("width"),i=n>this.$tableBody.width()?r():0,this.$tableFooter.css({"margin-right":i}).find("table").css("width",n).attr("class",this.$el.attr("class")),e=this.$tableFooter.find("td"),void this.$body.find(">tr:first-child:not(.no-records-found) > *").each(function(n){var i=t(this);e.eq(n).find(".fht-cell").width(i.innerWidth())}))},h.prototype.toggleColumn=function(t,e,i){if(t!==-1&&(this.columns[t].visible=e,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var o=this.$toolbar.find(".keep-open input").prop("disabled",!1);i&&o.filter(n('[value="%s"]',t)).prop("checked",e),o.filter(":checked").length<=this.options.minimumCountColumns&&o.filter(":checked").prop("disabled",!0)}},h.prototype.getVisibleFields=function(){var e=this,n=[];return t.each(this.header.fields,function(t,i){var a=e.columns[o(e.columns,i)];a.visible&&n.push(i)}),n},h.prototype.resetView=function(t){var e=0;if(t&&t.height&&(this.options.height=t.height),this.$selectAll.prop("checked",this.$selectItem.length>0&&this.$selectItem.length===this.$selectItem.filter(":checked").length),this.options.height){var n=this.$toolbar.outerHeight(!0),i=this.$pagination.outerHeight(!0),o=this.options.height-n-i;this.$tableContainer.css("height",o+"px")}return this.options.cardView?(this.$el.css("margin-top","0"),this.$tableContainer.css("padding-bottom","0"),void this.$tableFooter.hide()):(this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),e+=this.$header.outerHeight()):(this.$tableHeader.hide(),this.trigger("post-header")),this.options.showFooter&&(this.resetFooter(),this.options.height&&(e+=this.$tableFooter.outerHeight()+1)),this.getCaret(),this.$tableContainer.css("padding-bottom",e+"px"),void this.trigger("reset-view"))},h.prototype.getData=function(e){return!this.searchText&&t.isEmptyObject(this.filterColumns)&&t.isEmptyObject(this.filterColumnsPartial)?e?this.options.data.slice(this.pageFrom-1,this.pageTo):this.options.data:e?this.data.slice(this.pageFrom-1,this.pageTo):this.data},h.prototype.load=function(e){var n=!1;"server"===this.options.sidePagination?(this.options.totalRows=e[this.options.totalField],n=e.fixedScroll,e=e[this.options.dataField]):t.isArray(e)||(n=e.fixedScroll,e=e.data),this.initData(e),this.initSearch(),this.initPagination(),this.initBody(n)},h.prototype.append=function(t){this.initData(t,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},h.prototype.prepend=function(t){this.initData(t,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},h.prototype.remove=function(e){var n,i,o=this.options.data.length;if(e.hasOwnProperty("field")&&e.hasOwnProperty("values")){for(n=o-1;n>=0;n--)i=this.options.data[n],i.hasOwnProperty(e.field)&&t.inArray(i[e.field],e.values)!==-1&&(this.options.data.splice(n,1),"server"===this.options.sidePagination&&(this.options.totalRows-=1));o!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},h.prototype.removeAll=function(){this.options.data.length>0&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))},h.prototype.getRowByUniqueId=function(t){var e,n,i,o=this.options.uniqueId,a=this.options.data.length,r=null;for(e=a-1;e>=0;e--){if(n=this.options.data[e],n.hasOwnProperty(o))i=n[o];else{if(!n._data.hasOwnProperty(o))continue;i=n._data[o]}if("string"==typeof i?t=t.toString():"number"==typeof i&&(Number(i)===i&&i%1===0?t=parseInt(t):i===Number(i)&&0!==i&&(t=parseFloat(t))),i===t){r=n;break}}return r},h.prototype.removeByUniqueId=function(t){var e=this.options.data.length,n=this.getRowByUniqueId(t);n&&this.options.data.splice(this.options.data.indexOf(n),1),e!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initBody(!0))},h.prototype.updateByUniqueId=function(e){var n=this,i=t.isArray(e)?e:[e];t.each(i,function(e,i){var o;i.hasOwnProperty("id")&&i.hasOwnProperty("row")&&(o=t.inArray(n.getRowByUniqueId(i.id),n.options.data),o!==-1&&t.extend(n.options.data[o],i.row))}),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},h.prototype.insertRow=function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("row")&&(this.data.splice(t.index,0,t.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))},h.prototype.updateRow=function(e){var n=this,i=t.isArray(e)?e:[e];t.each(i,function(e,i){i.hasOwnProperty("index")&&i.hasOwnProperty("row")&&t.extend(n.options.data[i.index],i.row)}),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},h.prototype.initHiddenRows=function(){this.hiddenRows=[]},h.prototype.showRow=function(t){this.toggleRow(t,!0)},h.prototype.hideRow=function(t){this.toggleRow(t,!1)},h.prototype.toggleRow=function(e,n){var i,o;e.hasOwnProperty("index")?i=this.getData()[e.index]:e.hasOwnProperty("uniqueId")&&(i=this.getRowByUniqueId(e.uniqueId)),i&&(o=t.inArray(i,this.hiddenRows),n||o!==-1?n&&o>-1&&this.hiddenRows.splice(o,1):this.hiddenRows.push(i),this.initBody(!0))},h.prototype.getHiddenRows=function(e){var n=this,i=this.getData(),o=[];return t.each(i,function(e,i){t.inArray(i,n.hiddenRows)>-1&&o.push(i)}),this.hiddenRows=o,o},h.prototype.mergeCells=function(e){var n,i,o,a=e.index,r=t.inArray(e.field,this.getVisibleFields()),s=e.rowspan||1,l=e.colspan||1,c=this.$body.find(">tr");if(this.options.detailView&&!this.options.cardView&&(r+=1),o=c.eq(a).find(">td").eq(r),!(a<0||r<0||a>=this.data.length)){for(n=a;n<a+s;n++)for(i=r;i<r+l;i++)c.eq(n).find(">td").eq(i).hide();o.attr("rowspan",s).attr("colspan",l).show()}},h.prototype.updateCell=function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("field")&&t.hasOwnProperty("value")&&(this.data[t.index][t.field]=t.value,t.reinit!==!1&&(this.initSort(),this.initBody(!0)))},h.prototype.getOptions=function(){return this.options},h.prototype.getSelections=function(){var e=this;return t.grep(this.options.data,function(t){return t[e.header.stateField]===!0})},h.prototype.getAllSelections=function(){var e=this;return t.grep(this.options.data,function(t){return t[e.header.stateField]})},h.prototype.checkAll=function(){this.checkAll_(!0)},h.prototype.uncheckAll=function(){this.checkAll_(!1)},h.prototype.checkInvert=function(){var e=this,n=e.$selectItem.filter(":enabled"),i=n.filter(":checked");n.each(function(){t(this).prop("checked",!t(this).prop("checked"))}),e.updateRows(),e.updateSelected(),e.trigger("uncheck-some",i),i=e.getSelections(),e.trigger("check-some",i)},h.prototype.checkAll_=function(t){var e;t||(e=this.getSelections()),this.$selectAll.add(this.$selectAll_).prop("checked",t),this.$selectItem.filter(":enabled").prop("checked",t),this.updateRows(),t&&(e=this.getSelections()),this.trigger(t?"check-all":"uncheck-all",e)},h.prototype.check=function(t){this.check_(!0,t)},h.prototype.uncheck=function(t){this.check_(!1,t)},h.prototype.check_=function(t,e){var i=this.$selectItem.filter(n('[data-index="%s"]',e)).prop("checked",t);this.data[e][this.header.stateField]=t,this.updateSelected(),this.trigger(t?"check":"uncheck",this.data[e],i)},h.prototype.checkBy=function(t){this.checkBy_(!0,t)},h.prototype.uncheckBy=function(t){this.checkBy_(!1,t)},h.prototype.checkBy_=function(e,i){if(i.hasOwnProperty("field")&&i.hasOwnProperty("values")){var o=this,a=[];t.each(this.options.data,function(r,s){if(!s.hasOwnProperty(i.field))return!1;if(t.inArray(s[i.field],i.values)!==-1){var l=o.$selectItem.filter(":enabled").filter(n('[data-index="%s"]',r)).prop("checked",e);s[o.header.stateField]=e,a.push(s),o.trigger(e?"check":"uncheck",s,l)}}),this.updateSelected(),this.trigger(e?"check-some":"uncheck-some",a)}},h.prototype.destroy=function(){this.$el.insertBefore(this.$container),t(this.options.toolbar).insertBefore(this.$el),this.$container.next().remove(),this.$container.remove(),this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"")},h.prototype.showLoading=function(){this.$tableLoading.show()},h.prototype.hideLoading=function(){this.$tableLoading.hide()},h.prototype.togglePagination=function(){this.options.pagination=!this.options.pagination;var t=this.$toolbar.find('button[name="paginationSwitch"] i');this.options.pagination?t.attr("class",this.options.iconsPrefix+" "+this.options.icons.paginationSwitchDown):t.attr("class",this.options.iconsPrefix+" "+this.options.icons.paginationSwitchUp),this.updatePagination()},h.prototype.refresh=function(t){t&&t.url&&(this.options.url=t.url),t&&t.pageNumber&&(this.options.pageNumber=t.pageNumber),t&&t.pageSize&&(this.options.pageSize=t.pageSize),this.initServer(t&&t.silent,t&&t.query,t&&t.url),this.trigger("refresh",t)},h.prototype.resetWidth=function(){this.options.showHeader&&this.options.height&&this.fitHeader(),this.options.showFooter&&this.fitFooter()},h.prototype.showColumn=function(t){this.toggleColumn(o(this.columns,t),!0,!0)},h.prototype.hideColumn=function(t){this.toggleColumn(o(this.columns,t),!1,!0)},h.prototype.getHiddenColumns=function(){return t.grep(this.columns,function(t){return!t.visible})},h.prototype.getVisibleColumns=function(){return t.grep(this.columns,function(t){return t.visible})},h.prototype.toggleAllColumns=function(e){if(t.each(this.columns,function(t,n){this.columns[t].visible=e}),this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns){var n=this.$toolbar.find(".keep-open input").prop("disabled",!1);n.filter(":checked").length<=this.options.minimumCountColumns&&n.filter(":checked").prop("disabled",!0)}},h.prototype.showAllColumns=function(){this.toggleAllColumns(!0)},h.prototype.hideAllColumns=function(){this.toggleAllColumns(!1)},h.prototype.filterBy=function(e){this.filterColumns=t.isEmptyObject(e)?{}:e,this.options.pageNumber=1,this.initSearch(),this.updatePagination()},h.prototype.scrollTo=function(t){if("string"==typeof t&&(t="bottom"===t?this.$tableBody[0].scrollHeight:0),"number"==typeof t&&this.$tableBody.scrollTop(t),"undefined"==typeof t)return this.$tableBody.scrollTop()},h.prototype.getScrollPosition=function(){
  return this.scrollTo()},h.prototype.selectPage=function(t){t>0&&t<=this.options.totalPages&&(this.options.pageNumber=t,this.updatePagination())},h.prototype.prevPage=function(){this.options.pageNumber>1&&(this.options.pageNumber--,this.updatePagination())},h.prototype.nextPage=function(){this.options.pageNumber<this.options.totalPages&&(this.options.pageNumber++,this.updatePagination())},h.prototype.toggleView=function(){this.options.cardView=!this.options.cardView,this.initHeader(),this.initBody(),this.trigger("toggle",this.options.cardView)},h.prototype.refreshOptions=function(e){l(this.options,e,!0)||(this.options=t.extend(this.options,e),this.trigger("refresh-options",this.options),this.destroy(),this.init())},h.prototype.resetSearch=function(t){var e=this.$toolbar.find(".search input");e.val(t||""),this.onSearch({currentTarget:e})},h.prototype.expandRow_=function(t,e){var i=this.$body.find(n('> tr[data-index="%s"]',e));i.next().is("tr.detail-view")===!t&&i.find("> td > .detail-icon").click()},h.prototype.expandRow=function(t){this.expandRow_(!0,t)},h.prototype.collapseRow=function(t){this.expandRow_(!1,t)},h.prototype.expandAllRows=function(e){if(e){var i=this.$body.find(n('> tr[data-index="%s"]',0)),o=this,a=null,r=!1,s=-1;if(i.next().is("tr.detail-view")?i.next().next().is("tr.detail-view")||(i.next().find(".detail-icon").click(),r=!0):(i.find("> td > .detail-icon").click(),r=!0),r)try{s=setInterval(function(){a=o.$body.find("tr.detail-view").last().find(".detail-icon"),a.length>0?a.click():clearInterval(s)},1)}catch(t){clearInterval(s)}}else for(var l=this.$body.children(),c=0;c<l.length;c++)this.expandRow_(!0,t(l[c]).data("index"))},h.prototype.collapseAllRows=function(e){if(e)this.expandRow_(!1,0);else for(var n=this.$body.children(),i=0;i<n.length;i++)this.expandRow_(!1,t(n[i]).data("index"))},h.prototype.updateFormatText=function(t,e){this.options[n("format%s",t)]&&("string"==typeof e?this.options[n("format%s",t)]=function(){return e}:"function"==typeof e&&(this.options[n("format%s",t)]=e)),this.initToolbar(),this.initPagination(),this.initBody()};var m=["getOptions","getSelections","getAllSelections","getData","load","append","prepend","remove","removeAll","insertRow","updateRow","updateCell","updateByUniqueId","removeByUniqueId","getRowByUniqueId","showRow","hideRow","getHiddenRows","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","resetView","resetWidth","destroy","showLoading","hideLoading","showColumn","hideColumn","getHiddenColumns","getVisibleColumns","showAllColumns","hideAllColumns","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","togglePagination","toggleView","refreshOptions","resetSearch","expandRow","collapseRow","expandAllRows","collapseAllRows","updateFormatText"];t.fn.bootstrapTable=function(e){var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var o=t(this),a=o.data("bootstrap.table"),r=t.extend({},h.DEFAULTS,o.data(),"object"==typeof e&&e);if("string"==typeof e){if(t.inArray(e,m)<0)throw new Error("Unknown method: "+e);if(!a)return;n=a[e].apply(a,i),"destroy"===e&&o.removeData("bootstrap.table")}a||o.data("bootstrap.table",a=new h(this,r))}),"undefined"==typeof n?this:n},t.fn.bootstrapTable.Constructor=h,t.fn.bootstrapTable.defaults=h.DEFAULTS,t.fn.bootstrapTable.columnDefaults=h.COLUMN_DEFAULTS,t.fn.bootstrapTable.locales=h.LOCALES,t.fn.bootstrapTable.methods=m,t.fn.bootstrapTable.utils={sprintf:n,getFieldIndex:o,compareObjects:l,calculateObjectValue:s,getItemField:u,objectKeys:f,isIEBrowser:p},t(function(){t('[data-toggle="table"]').bootstrapTable()})}(jQuery),define("bootstrap-table",["bootstrap"],function(t){return function(){var e;return e||t.$.fn.bootstrapTable}}(this)),function(t){"use strict";t.fn.bootstrapTable.locales["zh-CN"]={formatLoadingMessage:function(){return"正在努力地加载数据中，请稍候……"},formatRecordsPerPage:function(t){return"每页显示 "+t+" 条记录"},formatShowingRows:function(t,e,n){return"显示第 "+t+" 到第 "+e+" 条记录，总共 "+n+" 条记录"},formatSearch:function(){return"搜索"},formatNoMatches:function(){return"没有找到匹配的记录"},formatPaginationSwitch:function(){return"隐藏/显示分页"},formatRefresh:function(){return"刷新"},formatToggle:function(){return"切换"},formatColumns:function(){return"列"},formatExport:function(){return"导出数据"},formatClearFilters:function(){return"清空过滤"}},t.extend(t.fn.bootstrapTable.defaults,t.fn.bootstrapTable.locales["zh-CN"])}(jQuery),define("bootstrap-table-lang",["bootstrap-table"],function(t){return function(){var e;return e||t.$.fn.bootstrapTable.defaults}}(this));var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(t,e,n){t instanceof String&&(t=String(t));for(var i=t.length,o=0;o<i;o++){var a=t[o];if(e.call(n,a,o,t))return{i:o,v:a}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},$jscomp.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:"undefined"!=typeof global&&null!=global?global:t},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(t,e,n,i){if(e){for(n=$jscomp.global,t=t.split("."),i=0;i<t.length-1;i++){var o=t[i];o in n||(n[o]={}),n=n[o]}t=t[t.length-1],i=n[t],e=e(i),e!=i&&null!=e&&$jscomp.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Array.prototype.find",function(t){return t?t:function(t,e){return $jscomp.findInternal(this,t,e).v}},"es6","es3"),function(t){t.fn.tableExport=function(e){function n(e){var n=[];return o(e,"thead").each(function(){n.push.apply(n,o(t(this),H.theadSelector).toArray())}),n}function i(e){var n=[];return o(e,"tbody").each(function(){n.push.apply(n,o(t(this),H.tbodySelector).toArray())}),H.tfootSelector.length&&o(e,"tfoot").each(function(){n.push.apply(n,o(t(this),H.tfootSelector).toArray())}),n}function o(e,n){var i=e[0].tagName,o=e.parents(i).length;return e.find(n).filter(function(){return o===t(this).closest(i).parents(i).length})}function a(e){var n=[];return t(e).find("thead").first().find("th").each(function(e,i){void 0!==t(i).attr("data-field")?n[e]=t(i).attr("data-field"):n[e]=e.toString()}),n}function r(e){var n="undefined"!=typeof e[0].rowIndex,i=!1===n&&"undefined"!=typeof e[0].cellIndex,o=i||n?s(e):e.is(":visible"),a=e.attr("data-tableexport-display");return i&&"none"!==a&&"always"!==a&&(e=t(e[0].parentNode),n="undefined"!=typeof e[0].rowIndex,a=e.attr("data-tableexport-display")),n&&"none"!==a&&"always"!==a&&(a=e.closest("table").attr("data-tableexport-display")),"none"!==a&&(!0===o||"always"===a)}function s(t){var e=[];return J&&(e=K.filter(function(){var e=!1;return this.nodeType===t[0].nodeType&&("undefined"!=typeof this.rowIndex&&this.rowIndex===t[0].rowIndex?e=!0:"undefined"!=typeof this.cellIndex&&this.cellIndex===t[0].cellIndex&&"undefined"!=typeof this.parentNode.rowIndex&&"undefined"!=typeof t[0].parentNode.rowIndex&&this.parentNode.rowIndex===t[0].parentNode.rowIndex&&(e=!0)),e})),!1===J||0===e.length}function l(e,n,i){var o=!1;return r(e)?0<H.ignoreColumn.length&&(-1!==t.inArray(i,H.ignoreColumn)||-1!==t.inArray(i-n,H.ignoreColumn)||G.length>i&&"undefined"!=typeof G[i]&&-1!==t.inArray(G[i],H.ignoreColumn))&&(o=!0):o=!0,o}function c(e,n,i,a,s){if("function"==typeof s){var c=!1;if("function"==typeof H.onIgnoreRow&&(c=H.onIgnoreRow(t(e),i)),!1===c&&(0===H.ignoreRow.length||-1===t.inArray(i,H.ignoreRow)&&-1===t.inArray(i-a,H.ignoreRow))&&r(t(e))){var d=o(t(e),n),u=0;d.each(function(e){var n,o=t(this),a=F(this),r=D(this);if(t.each(Q,function(){if(i>=this.s.r&&i<=this.e.r&&u>=this.s.c&&u<=this.e.c)for(n=0;n<=this.e.c-this.s.c;++n)s(null,i,u++)}),!1===l(o,d.length,e)&&((r||a)&&(a=a||1,Q.push({s:{r:i,c:u},e:{r:i+(r||1)-1,c:u+a-1}})),s(this,i,u++)),a)for(n=0;n<a-1;++n)s(null,i,u++)}),t.each(Q,function(){if(i>=this.s.r&&i<=this.e.r&&u>=this.s.c&&u<=this.e.c)for(ft=0;ft<=this.e.c-this.s.c;++ft)s(null,i,u++)})}}}function d(t,e,n,i){if("undefined"!=typeof i.images&&(n=i.images[n],"undefined"!=typeof n)){e=e.getBoundingClientRect();var o=t.width/t.height,a=e.width/e.height,r=t.width,s=t.height,l=19.049976/25.4,c=0;a<=o?(s=Math.min(t.height,e.height),r=e.width*s/e.height):a>o&&(r=Math.min(t.width,e.width),s=e.height*r/e.width),r*=l,s*=l,s<t.height&&(c=(t.height-s)/2);try{i.doc.addImage(n.src,t.textPos.x,t.y+c,r,s)}catch(t){}t.textPos.x+=r}}function u(t,e){if("string"===H.outputMode)return t.output();if("base64"===H.outputMode)return P(t.output());if("window"===H.outputMode)window.URL=window.URL||window.webkitURL,window.open(window.URL.createObjectURL(t.output("blob")));else try{var n=t.output("blob");saveAs(n,H.fileName+".pdf")}catch(n){j(H.fileName+".pdf","data:application/pdf"+(e?"":";base64")+",",e?t.output("blob"):t.output())}}function p(t,e,n){var i=0;if("undefined"!=typeof n&&(i=n.colspan),0<=i){for(var o=t.width,a=t.textPos.x,r=e.table.columns.indexOf(e.column),s=1;s<i;s++)o+=e.table.columns[r+s].width;return 1<i&&("right"===t.styles.halign?a=t.textPos.x+o-t.width:"center"===t.styles.halign&&(a=t.textPos.x+(o-t.width)/2)),t.width=o,t.textPos.x=a,"undefined"!=typeof n&&1<n.rowspan&&(t.height*=n.rowspan),"middle"!==t.styles.valign&&"bottom"!==t.styles.valign||(n=("string"==typeof t.text?t.text.split(/\r\n|\r|\n/g):t.text).length||1,2<n&&(t.textPos.y-=(2-1.15)/2*e.row.styles.fontSize*(n-2)/3)),!0}return!1}function f(e,n,i){"undefined"!=typeof e&&null!==e&&(e.hasAttribute("data-tableexport-canvas")?(n=(new Date).getTime(),t(e).attr("data-tableexport-canvas",n),i.images[n]={url:'[data-tableexport-canvas="'+n+'"]',src:null}):"undefined"!==n&&null!=n&&n.each(function(){if(t(this).is("img")){var n=M(this.src);i.images[n]={url:this.src,src:this.src}}f(e,t(this).children(),i)}))}function h(e,n){function i(e){if(e.url)if(e.src){var i=new Image;o=++a,i.crossOrigin="Anonymous",i.onerror=i.onload=function(){if(i.complete&&(0===i.src.indexOf("data:image/")&&(i.width=e.width||i.width||0,i.height=e.height||i.height||0),i.width+i.height)){var t=document.createElement("canvas"),r=t.getContext("2d");t.width=i.width,t.height=i.height,r.drawImage(i,0,0),e.src=t.toDataURL("image/png")}--a||n(o)},i.src=e.url}else{var r=t(e.url);r.length&&(o=++a,html2canvas(r[0]).then(function(t){e.src=t.toDataURL("image/png"),--a||n(o)}))}}var o=0,a=0;if("undefined"!=typeof e.images)for(var r in e.images)e.images.hasOwnProperty(r)&&i(e.images[r]);return(e=a)||(n(o),e=void 0),e}function m(e,n,i){n.each(function(){if(t(this).is("div")){var n=T(E(this,"background-color"),[255,255,255]),o=T(E(this,"border-top-color"),[0,0,0]),a=A(this,"border-top-width",H.jspdf.unit),r=this.getBoundingClientRect(),s=this.offsetLeft*i.wScaleFactor,l=this.offsetTop*i.hScaleFactor,c=r.width*i.wScaleFactor;r=r.height*i.hScaleFactor,i.doc.setDrawColor.apply(void 0,o),i.doc.setFillColor.apply(void 0,n),i.doc.setLineWidth(a),i.doc.rect(e.x+s,e.y+l,c,r,a?"FD":"F")}else t(this).is("img")&&(n=M(this.src),d(e,this,n,i));m(e,t(this).children(),i)})}function g(e,n,i){if("function"==typeof i.onAutotableText)i.onAutotableText(i.doc,e,n);else{var o=e.textPos.x,a=e.textPos.y,r={halign:e.styles.halign,valign:e.styles.valign};if(n.length){for(n=n[0];n.previousSibling;)n=n.previousSibling;for(var s=!1,l=!1;n;){var c=n.innerText||n.textContent||"",d=c.length&&" "===c[0]?" ":"",u=1<c.length&&" "===c[c.length-1]?" ":"";if(!0!==H.preserve.leadingWS&&(c=d+v(c)),!0!==H.preserve.trailingWS&&(c=b(c)+u),t(n).is("br")&&(o=e.textPos.x,a+=i.doc.internal.getFontSize()),t(n).is("b")?s=!0:t(n).is("i")&&(l=!0),(s||l)&&i.doc.setFontType(s&&l?"bolditalic":s?"bold":"italic"),d=i.doc.getStringUnitWidth(c)*i.doc.internal.getFontSize()){if("linebreak"===e.styles.overflow&&o>e.textPos.x&&o+d>e.textPos.x+e.width&&(0<=".,!%*;:=-".indexOf(c.charAt(0))&&(u=c.charAt(0),d=i.doc.getStringUnitWidth(u)*i.doc.internal.getFontSize(),o+d<=e.textPos.x+e.width&&(i.doc.autoTableText(u,o,a,r),c=c.substring(1,c.length)),d=i.doc.getStringUnitWidth(c)*i.doc.internal.getFontSize()),o=e.textPos.x,a+=i.doc.internal.getFontSize()),"visible"!==e.styles.overflow)for(;c.length&&o+d>e.textPos.x+e.width;)c=c.substring(0,c.length-1),d=i.doc.getStringUnitWidth(c)*i.doc.internal.getFontSize();i.doc.autoTableText(c,o,a,r),o+=d}(s||l)&&(t(n).is("b")?s=!1:t(n).is("i")&&(l=!1),i.doc.setFontType(s||l?s?"bold":"italic":"normal")),n=n.nextSibling}e.textPos.x=o,e.textPos.y=a}else i.doc.autoTableText(e.text,e.textPos.x,e.textPos.y,r)}}function y(t,e,n){return null==t?"":t.toString().replace(new RegExp(null==e?"":e.toString().replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),"g"),n)}function v(t){return null==t?"":t.toString().replace(/^\s+/,"")}function b(t){return null==t?"":t.toString().replace(/\s+$/,"")}function x(t){H.date.pattern.lastIndex=0;var e=H.date.pattern.exec(t);if(null==e)return!1;if(t=+e[H.date.match_y],0>t||8099<t)return!1;var n=1*e[H.date.match_m];if(e=1*e[H.date.match_d],!isFinite(e))return!1;var i=new Date(t,n-1,e,0,0,0);return i.getFullYear()===t&&i.getMonth()===n-1&&i.getDate()===e&&new Date(Date.UTC(t,n-1,e,0,0,0))}function w(t){return t=t||"0",""!==H.numbers.html.thousandsSeparator&&(t=y(t,H.numbers.html.thousandsSeparator,"")),"."!==H.numbers.html.decimalMark&&(t=y(t,H.numbers.html.decimalMark,".")),("number"==typeof t||!1!==jQuery.isNumeric(t))&&t}function _(t){return-1<t.indexOf("%")?(t=w(t.replace(/%/g,"")),!1!==t&&(t/=100)):t=!1,t}function k(e,n,i,o){var a="",r="text";if(null!==e){var s=t(e);if(s.removeData("teUserDefText"),s[0].hasAttribute("data-tableexport-canvas"))var l="";else if(s[0].hasAttribute("data-tableexport-value"))l=(l=s.attr("data-tableexport-value"))?l+"":"",s.data("teUserDefText",1);else if(l=s.html(),"function"==typeof H.onCellHtmlData)l=H.onCellHtmlData(s,n,i,l),s.data("teUserDefText",1);else if(""!==l){e=t.parseHTML(l);var c=0,d=0;l="",t.each(e,function(){if(t(this).is("input"))l+=s.find("input").eq(c++).val();else if(t(this).is("select"))l+=s.find("select option:selected").eq(d++).text();else if(t(this).is("br"))l+="<br>";else if("undefined"==typeof t(this).html()?l+=t(this).text():(void 0===jQuery().bootstrapTable||!1===t(this).hasClass("fht-cell")&&!1===t(this).hasClass("filterControl")&&0===s.parents(".detail-view").length)&&(l+=t(this).html()),t(this).is("a")){var e=s.find("a").attr("href")||"";a="function"==typeof H.onCellHtmlHyperlink?a+H.onCellHtmlHyperlink(s,n,i,e,l):"href"===H.htmlHyperlink?a+e:a+l,l=""}})}if(l&&""!==l&&!0===H.htmlContent)a=t.trim(l);else if(l&&""!==l)if(""!==s.attr("data-tableexport-cellformat")){var u=l.replace(/\n/g,"\u2028").replace(/(<\s*br([^>]*)>)/gi,"⁠"),p=t("<div/>").html(u).contents();if(e=!1,u="",t.each(p.text().split("\u2028"),function(t,e){0<t&&(u+=" "),!0!==H.preserve.leadingWS&&(e=v(e)),u+=!0!==H.preserve.trailingWS?b(e):e}),t.each(u.split("⁠"),function(t,e){0<t&&(a+="\n"),!0!==H.preserve.leadingWS&&(e=v(e)),!0!==H.preserve.trailingWS&&(e=b(e)),a+=e.replace(/\u00AD/g,"")}),a=a.replace(/\u00A0/g," "),"json"===H.type||"excel"===H.type&&"xmlss"===H.mso.fileFormat||!1===H.numbers.output)e=w(a),!1!==e&&(r="number",a=Number(e));else if((H.numbers.html.decimalMark!==H.numbers.output.decimalMark||H.numbers.html.thousandsSeparator!==H.numbers.output.thousandsSeparator)&&(e=w(a),!1!==e)){p=(""+e.substr(0>e?1:0)).split("."),1===p.length&&(p[1]="");var f=3<p[0].length?p[0].length%3:0;r="number",a=(0>e?"-":"")+(H.numbers.output.thousandsSeparator?(f?p[0].substr(0,f)+H.numbers.output.thousandsSeparator:"")+p[0].substr(f).replace(/(\d{3})(?=\d)/g,"$1"+H.numbers.output.thousandsSeparator):p[0])+(p[1].length?H.numbers.output.decimalMark+p[1]:"")}}else a=l;!0===H.escape&&(a=escape(a)),"function"==typeof H.onCellData&&(a=H.onCellData(s,n,i,a,r),s.data("teUserDefText",1))}return void 0!==o&&(o.type=r),a}function C(t){return 0<t.length&&!0===H.preventInjection&&0<="=+-@".indexOf(t.charAt(0))?"'"+t:t}function S(t,e,n){return e+"-"+n.toLowerCase()}function T(t,e){return(t=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.exec(t))&&(e=[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]),e}function $(t){var e=E(t,"text-align"),n=E(t,"font-weight"),i=E(t,"font-style"),o="";return"start"===e&&(e="rtl"===E(t,"direction")?"right":"left"),700<=n&&(o="bold"),"italic"===i&&(o+=i),""===o&&(o="normal"),e={style:{align:e,bcolor:T(E(t,"background-color"),[255,255,255]),color:T(E(t,"color"),[0,0,0]),fstyle:o},colspan:F(t),rowspan:D(t)},null!==t&&(t=t.getBoundingClientRect(),e.rect={width:t.width,height:t.height}),e}function F(e){var n=t(e).attr("data-tableexport-colspan");return"undefined"==typeof n&&t(e).is("[colspan]")&&(n=t(e).attr("colspan")),parseInt(n)||0}function D(e){var n=t(e).attr("data-tableexport-rowspan");return"undefined"==typeof n&&t(e).is("[rowspan]")&&(n=t(e).attr("rowspan")),parseInt(n)||0}function E(t,e){try{return window.getComputedStyle?(e=e.replace(/([a-z])([A-Z])/,S),window.getComputedStyle(t,null).getPropertyValue(e)):t.currentStyle?t.currentStyle[e]:t.style[e]}catch(t){}return""}function A(t,e,n){if(e=E(t,e).match(/\d+/),null!==e){e=e[0],t=t.parentElement;var i=document.createElement("div");return i.style.overflow="hidden",i.style.visibility="hidden",t.appendChild(i),i.style.width=100+n,n=100/i.offsetWidth,t.removeChild(i),e*n}return 0}function O(t){for(var e=new ArrayBuffer(t.length),n=new Uint8Array(e),i=0;i!==t.length;++i)n[i]=255&t.charCodeAt(i);return e}function N(t){var e=t.c,n="";for(++e;e;e=Math.floor((e-1)/26))n=String.fromCharCode((e-1)%26+65)+n;return n+(""+(t.r+1))}function R(t,e){return"undefined"==typeof e||"number"==typeof e?R(t.s,t.e):("string"!=typeof t&&(t=N(t)),"string"!=typeof e&&(e=N(e)),t===e?t:t+":"+e)}function I(t,e){var n=Number(t);if(isFinite(n))return n;var i=1;return""!==e.thousandsSeparator&&(t=t.replace(new RegExp("([\\d])"+e.thousandsSeparator+"([\\d])","g"),"$1$2")),"."!==e.decimalMark&&(t=t.replace(new RegExp("([\\d])"+e.decimalMark+"([\\d])","g"),"$1.$2")),t=t.replace(/[$]/g,"").replace(/[%]/g,function(){return i*=100,""}),isFinite(n=Number(t))?n/i:(t=t.replace(/[(](.*)[)]/,function(t,e){return i=-i,e}),isFinite(n=Number(t))?n/i:n)}function M(t){var e,n=0;if(0===t.length)return n;var i=0;for(e=t.length;i<e;i++){var o=t.charCodeAt(i);n=(n<<5)-n+o,n|=0}return n}function L(t,e,n,i,o,a){var r=!0;if("function"==typeof H.onBeforeSaveToFile&&(r=H.onBeforeSaveToFile(t,e,n,i,o),"boolean"!=typeof r&&(r=!0)),r)try{z=new Blob([t],{type:n+";charset="+i}),saveAs(z,e,!1===a),"function"==typeof H.onAfterSaveToFile&&H.onAfterSaveToFile(t,e)}catch(r){j(e,"data:"+n+(i.length?";charset="+i:"")+(o.length?";"+o:"")+",",a?"\ufeff"+t:t)}}function j(t,e,n){var i=window.navigator.userAgent;if(!1!==t&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(new Blob([n]),t);else if(!1!==t&&(0<i.indexOf("MSIE ")||i.match(/Trident.*rv\:11\./))){if(e=document.createElement("iframe")){switch(document.body.appendChild(e),e.setAttribute("style","display:none"),e.contentDocument.open("txt/plain","replace"),e.contentDocument.write(n),e.contentDocument.close(),e.contentWindow.focus(),t.substr(t.lastIndexOf(".")+1)){case"doc":case"json":case"png":case"pdf":case"xls":case"xlsx":t+=".txt"}e.contentDocument.execCommand("SaveAs",!0,t),document.body.removeChild(e)}}else{var o=document.createElement("a");if(o){var a=null;o.style.display="none",!1!==t?o.download=t:o.target="_blank","object"==typeof n?(window.URL=window.URL||window.webkitURL,i=[],i.push(n),a=window.URL.createObjectURL(new Blob(i,{type:e})),o.href=a):0<=e.toLowerCase().indexOf("base64,")?o.href=e+P(n):o.href=e+encodeURIComponent(n),document.body.appendChild(o),document.createEvent?(null===U&&(U=document.createEvent("MouseEvents")),U.initEvent("click",!0,!1),o.dispatchEvent(U)):document.createEventObject?o.fireEvent("onclick"):"function"==typeof o.onclick&&o.onclick(),setTimeout(function(){a&&window.URL.revokeObjectURL(a),document.body.removeChild(o),"function"==typeof H.onAfterSaveToFile&&H.onAfterSaveToFile(n,t)},100)}}}function P(t){var e,n="",i=0;if("string"==typeof t){t=t.replace(/\x0d\x0a/g,"\n");var o="";for(e=0;e<t.length;e++){var a=t.charCodeAt(e);128>a?o+=String.fromCharCode(a):(127<a&&2048>a?o+=String.fromCharCode(a>>6|192):(o+=String.fromCharCode(a>>12|224),o+=String.fromCharCode(a>>6&63|128)),o+=String.fromCharCode(63&a|128))}t=o}for(;i<t.length;){var r=t.charCodeAt(i++);o=t.charCodeAt(i++),e=t.charCodeAt(i++),a=r>>2,r=(3&r)<<4|o>>4;var s=(15&o)<<2|e>>6,l=63&e;isNaN(o)?s=l=64:isNaN(e)&&(l=64),n=n+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(r)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(s)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(l)}return n}var z,H={csvEnclosure:'"',csvSeparator:",",csvUseBOM:!0,date:{html:"dd/mm/yyyy"},displayTableName:!1,escape:!1,exportHiddenCells:!1,fileName:"tableExport",htmlContent:!1,htmlHyperlink:"content",ignoreColumn:[],ignoreRow:[],jsonScope:"all",jspdf:{orientation:"p",unit:"pt",format:"a4",margins:{left:20,right:10,top:10,bottom:10},onDocCreated:null,autotable:{styles:{cellPadding:2,rowHeight:12,fontSize:8,fillColor:255,textColor:50,fontStyle:"normal",overflow:"ellipsize",halign:"inherit",valign:"middle"},headerStyles:{fillColor:[52,73,94],textColor:255,fontStyle:"bold",halign:"inherit",valign:"middle"},alternateRowStyles:{fillColor:245},tableExport:{doc:null,onAfterAutotable:null,onBeforeAutotable:null,onAutotableText:null,onTable:null,outputImages:!0}}},mso:{fileFormat:"xlshtml",onMsoNumberFormat:null,pageFormat:"a4",pageOrientation:"portrait",rtl:!1,styles:[],worksheetName:"",xslx:{formatId:{date:14,numbers:2}}},numbers:{html:{decimalMark:".",thousandsSeparator:","},output:{decimalMark:".",thousandsSeparator:","}},onAfterSaveToFile:null,onBeforeSaveToFile:null,onCellData:null,onCellHtmlData:null,onCellHtmlHyperlink:null,onIgnoreRow:null,onTableExportBegin:null,onTableExportEnd:null,outputMode:"file",pdfmake:{enabled:!1,docDefinition:{pageOrientation:"portrait",defaultStyle:{font:"Roboto"}},fonts:{}},preserve:{leadingWS:!1,trailingWS:!1},preventInjection:!0,sql:{tableEnclosure:"`",columnEnclosure:"`"},tbodySelector:"tr",tfootSelector:"tr",theadSelector:"tr",tableName:"Table",type:"csv"},Y={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]},B=this,U=null,W=[],q=[],V=0,X="",G=[],Q=[],K=[],J=!1;if(t.extend(!0,H,e),"xlsx"===H.type&&(H.mso.fileFormat=H.type,H.type="excel"),"undefined"!=typeof H.excelFileFormat&&"undefined"===H.mso.fileFormat&&(H.mso.fileFormat=H.excelFileFormat),"undefined"!=typeof H.excelPageFormat&&"undefined"===H.mso.pageFormat&&(H.mso.pageFormat=H.excelPageFormat),"undefined"!=typeof H.excelPageOrientation&&"undefined"===H.mso.pageOrientation&&(H.mso.pageOrientation=H.excelPageOrientation),"undefined"!=typeof H.excelRTL&&"undefined"===H.mso.rtl&&(H.mso.rtl=H.excelRTL),"undefined"!=typeof H.excelstyles&&"undefined"===H.mso.styles&&(H.mso.styles=H.excelstyles),"undefined"!=typeof H.onMsoNumberFormat&&"undefined"===H.mso.onMsoNumberFormat&&(H.mso.onMsoNumberFormat=H.onMsoNumberFormat),"undefined"!=typeof H.worksheetName&&"undefined"===H.mso.worksheetName&&(H.mso.worksheetName=H.worksheetName),H.mso.pageOrientation="l"===H.mso.pageOrientation.substr(0,1)?"landscape":"portrait",H.date.html=H.date.html||"",H.date.html.length){e=[],e.dd="(3[01]|[12][0-9]|0?[1-9])",e.mm="(1[012]|0?[1-9])",e.yyyy="((?:1[6-9]|2[0-2])\\d{2})",e.yy="(\\d{2})";var Z=H.date.html.match(/[^a-zA-Z0-9]/)[0];Z=H.date.html.toLowerCase().split(Z),H.date.regex="^\\s*",H.date.regex+=e[Z[0]],H.date.regex+="(.)",H.date.regex+=e[Z[1]],H.date.regex+="\\2",H.date.regex+=e[Z[2]],H.date.regex+="\\s*$",H.date.pattern=new RegExp(H.date.regex,"g"),e=Z.indexOf("dd")+1,H.date.match_d=e+(1<e?1:0),e=Z.indexOf("mm")+1,H.date.match_m=e+(1<e?1:0),e=(0<=Z.indexOf("yyyy")?Z.indexOf("yyyy"):Z.indexOf("yy"))+1,H.date.match_y=e+(1<e?1:0)}if(G=a(B),"function"==typeof H.onTableExportBegin&&H.onTableExportBegin(),"csv"===H.type||"tsv"===H.type||"txt"===H.type){var tt="",et=0;Q=[],V=0;var nt=function(e,n,i){return e.each(function(){X="",c(this,n,V,i+e.length,function(t,e,n){var i=X,o="";null!==t&&(t=k(t,e,n),e=null===t||""===t?"":t.toString(),"tsv"===H.type?(t instanceof Date&&t.toLocaleString(),o=y(e,"\t"," ")):t instanceof Date?o=H.csvEnclosure+t.toLocaleString()+H.csvEnclosure:(o=C(e),o=y(o,H.csvEnclosure,H.csvEnclosure+H.csvEnclosure),(0<=o.indexOf(H.csvSeparator)||/[\r\n ]/g.test(o))&&(o=H.csvEnclosure+o+H.csvEnclosure))),X=i+(o+("tsv"===H.type?"\t":H.csvSeparator))}),X=t.trim(X).substring(0,X.length-1),0<X.length&&(0<tt.length&&(tt+="\n"),tt+=X),V++}),e.length};if(et+=nt(t(B).find("thead").first().find(H.theadSelector),"th,td",et),o(t(B),"tbody").each(function(){et+=nt(o(t(this),H.tbodySelector),"td,th",et)}),H.tfootSelector.length&&nt(t(B).find("tfoot").first().find(H.tfootSelector),"td,th",et),tt+="\n","string"===H.outputMode)return tt;if("base64"===H.outputMode)return P(tt);if("window"===H.outputMode)return void j(!1,"data:text/"+("csv"===H.type?"csv":"plain")+";charset=utf-8,",tt);L(tt,H.fileName+"."+H.type,"text/"+("csv"===H.type?"csv":"plain"),"utf-8","","csv"===H.type&&H.csvUseBOM)}else if("sql"===H.type){V=0,Q=[];var it="INSERT INTO "+H.sql.tableEnclosure+H.tableName+H.sql.tableEnclosure+" (";if(W=n(t(B)),t(W).each(function(){c(this,"th,td",V,W.length,function(t,e,n){t=k(t,e,n)||"",-1<t.indexOf(H.sql.columnEnclosure)&&(t=y(t.toString(),H.sql.columnEnclosure,H.sql.columnEnclosure+H.sql.columnEnclosure)),it+=H.sql.columnEnclosure+t+H.sql.columnEnclosure+","}),V++,it=t.trim(it).substring(0,it.length-1)}),it+=") VALUES ",q=i(t(B)),t(q).each(function(){X="",c(this,"td,th",V,W.length+q.length,function(t,e,n){t=k(t,e,n)||"",-1<t.indexOf("'")&&(t=y(t.toString(),"'","''")),X+="'"+t+"',"}),3<X.length&&(it+="("+X,it=t.trim(it).substring(0,it.length-1),it+="),"),V++}),it=t.trim(it).substring(0,it.length-1),it+=";","string"===H.outputMode)return it;if("base64"===H.outputMode)return P(it);L(it,H.fileName+".sql","application/sql","utf-8","",!1)}else if("json"===H.type){var ot=[];Q=[],W=n(t(B)),t(W).each(function(){var t=[];c(this,"th,td",V,W.length,function(e,n,i){t.push(k(e,n,i))}),ot.push(t)});var at=[];if(q=i(t(B)),t(q).each(function(){var e={},n=0;c(this,"td,th",V,W.length+q.length,function(t,i,o){ot.length?e[ot[ot.length-1][n]]=k(t,i,o):e[n]=k(t,i,o),n++}),!1===t.isEmptyObject(e)&&at.push(e),V++}),e="head"===H.jsonScope?JSON.stringify(ot):"data"===H.jsonScope?JSON.stringify(at):JSON.stringify({header:ot,data:at}),"string"===H.outputMode)return e;if("base64"===H.outputMode)return P(e);L(e,H.fileName+".json","application/json","utf-8","base64",!1)}else if("xml"===H.type){V=0,Q=[];var rt='<?xml version="1.0" encoding="utf-8"?>';rt+="<tabledata><fields>",W=n(t(B)),t(W).each(function(){c(this,"th,td",V,W.length,function(t,e,n){rt+="<field>"+k(t,e,n)+"</field>"}),V++}),rt+="</fields><data>";var st=1;if(q=i(t(B)),t(q).each(function(){var t=1;X="",c(this,"td,th",V,W.length+q.length,function(e,n,i){X+="<column-"+t+">"+k(e,n,i)+"</column-"+t+">",t++}),0<X.length&&"<column-1></column-1>"!==X&&(rt+='<row id="'+st+'">'+X+"</row>",st++),V++}),rt+="</data></tabledata>","string"===H.outputMode)return rt;if("base64"===H.outputMode)return P(rt);L(rt,H.fileName+".xml","application/xml","utf-8","base64",!1)}else if("excel"===H.type&&"xmlss"===H.mso.fileFormat){var lt=[],ct=[];t(B).filter(function(){return r(t(this))}).each(function(){function e(e,n,i){var o=[];return t(e).each(function(){var n=0,a=0;X="",c(this,"td,th",V,i+e.length,function(e,i,r){if(null!==e){var s="";if(i=k(e,i,r),r="String",!1!==jQuery.isNumeric(i))r="Number";else{var l=_(i);!1!==l&&(i=l,r="Number",s+=' ss:StyleID="pct1"')}"Number"!==r&&(i=i.replace(/\n/g,"<br>")),l=F(e),e=D(e),t.each(o,function(){if(V>=this.s.r&&V<=this.e.r&&a>=this.s.c&&a<=this.e.c)for(var t=0;t<=this.e.c-this.s.c;++t)a++,n++}),(e||l)&&(e=e||1,l=l||1,o.push({s:{r:V,c:a},e:{r:V+e-1,c:a+l-1}})),1<l&&(s+=' ss:MergeAcross="'+(l-1)+'"',a+=l-1),1<e&&(s+=' ss:MergeDown="'+(e-1)+'" ss:StyleID="rsp1"'),0<n&&(s+=' ss:Index="'+(a+1)+'"',n=0),X+="<Cell"+s+'><Data ss:Type="'+r+'">'+t("<div />").text(i).html()+"</Data></Cell>\r",a++}}),0<X.length&&(gt+='<Row ss:AutoFitHeight="0">\r'+X+"</Row>\r"),V++}),e.length}var o=t(this),r="";"string"==typeof H.mso.worksheetName&&H.mso.worksheetName.length?r=H.mso.worksheetName+" "+(ct.length+1):"undefined"!=typeof H.mso.worksheetName[ct.length]&&(r=H.mso.worksheetName[ct.length]),r.length||(r=o.find("caption").text()||""),r.length||(r="Table "+(ct.length+1)),r=t.trim(r.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31)),ct.push(t("<div />").text(r).html()),!1===H.exportHiddenCells&&(K=o.find("tr, th, td").filter(":hidden"),J=0<K.length),V=0,G=a(this),gt="<Table>\r",r=e(n(o),"th,td",0),e(i(o),"td,th",r),gt+="</Table>\r",lt.push(gt)}),e={},Z={};for(var dt,ut,pt=0,ft=ct.length;pt<ft;pt++)dt=ct[pt],ut=e[dt],ut=e[dt]=null==ut?1:ut+1,2===ut&&(ct[Z[dt]]=ct[Z[dt]].substring(0,29)+"-1"),1<e[dt]?ct[pt]=ct[pt].substring(0,29)+"-"+e[dt]:Z[dt]=pt;for(e='<?xml version="1.0" encoding="UTF-8"?>\r<?mso-application progid="Excel.Sheet"?>\r<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"\r xmlns:o="urn:schemas-microsoft-com:office:office"\r xmlns:x="urn:schemas-microsoft-com:office:excel"\r xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"\r xmlns:html="http://www.w3.org/TR/REC-html40">\r<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">\r  <Created>'+(new Date).toISOString()+'</Created>\r</DocumentProperties>\r<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">\r  <AllowPNG/>\r</OfficeDocumentSettings>\r<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">\r  <WindowHeight>9000</WindowHeight>\r  <WindowWidth>13860</WindowWidth>\r  <WindowTopX>0</WindowTopX>\r  <WindowTopY>0</WindowTopY>\r  <ProtectStructure>False</ProtectStructure>\r  <ProtectWindows>False</ProtectWindows>\r</ExcelWorkbook>\r<Styles>\r  <Style ss:ID="Default" ss:Name="Normal">\r    <Alignment ss:Vertical="Bottom"/>\r    <Borders/>\r    <Font/>\r    <Interior/>\r    <NumberFormat/>\r    <Protection/>\r  </Style>\r  <Style ss:ID="rsp1">\r    <Alignment ss:Vertical="Center"/>\r  </Style>\r  <Style ss:ID="pct1">\r    <NumberFormat ss:Format="Percent"/>\r  </Style>\r</Styles>\r',Z=0;Z<lt.length;Z++)e+='<Worksheet ss:Name="'+ct[Z]+'" ss:RightToLeft="'+(H.mso.rtl?"1":"0")+'">\r'+lt[Z],e=H.mso.rtl?e+'<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">\r<DisplayRightToLeft/>\r</WorksheetOptions>\r':e+'<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"/>\r',e+="</Worksheet>\r";if(e+="</Workbook>\r","string"===H.outputMode)return e;if("base64"===H.outputMode)return P(e);L(e,H.fileName+".xml","application/xml","utf-8","base64",!1)}else if("excel"===H.type&&"xlsx"===H.mso.fileFormat){var ht=[],mt=XLSX.utils.book_new();t(B).filter(function(){return r(t(this))}).each(function(){for(var e,n,i,o,a,s,c=t(this),d={},u=this.getElementsByTagName("tr"),p={s:{r:0,c:0},e:{r:0,c:0}},f=[],h=[],m=0,g=0,y=XLSX.SSF.get_table();m<u.length&&1e7>g;++m)if(n=u[m],i=!1,"function"==typeof H.onIgnoreRow&&(i=H.onIgnoreRow(t(n),m)),
  !0!==i&&(0===H.ignoreRow.length||-1===t.inArray(m,H.ignoreRow)&&-1===t.inArray(m-u.length,H.ignoreRow))&&!1!==r(t(n))){var v=n.children,b=0;for(n=0;n<v.length;++n)s=v[n],a=+F(s)||1,b+=a;var w=0;for(n=i=0;n<v.length;++n)if(s=v[n],a=+F(s)||1,e=n+w,!l(t(s),b,e+(e<i?i-e:0))){for(w+=a-1,e=0;e<f.length;++e){var _=f[e];_.s.c==i&&_.s.r<=g&&g<=_.e.r&&(i=_.e.c+1,e=-1)}(0<(o=+D(s))||1<a)&&f.push({s:{r:g,c:i},e:{r:g+(o||1)-1,c:i+a-1}});var C={type:""};e=k(s,m,n+w,C),_={t:"s",v:e};var S="";if(""!==t(s).attr("data-tableexport-cellformat")){var T=parseInt(t(s).attr("data-tableexport-xlsxformatid")||0);0===T&&"function"==typeof H.mso.xslx.formatId.numbers&&(T=H.mso.xslx.formatId.numbers(t(s),m,n+w)),0===T&&"function"==typeof H.mso.xslx.formatId.date&&(T=H.mso.xslx.formatId.date(t(s),m,n+w)),49===T||"@"===T?S="s":"number"===C.type||0<T&&14>T||36<T&&41>T||48===T?S="n":("date"===C.type||13<T&&37>T||44<T&&48>T||56===T)&&(S="d")}else S="s";null!=e&&(0===e.length?_.t=S||"z":0!==e.trim().length&&"s"!==S&&("function"===C.type?_={f:e}:"TRUE"===e?_={t:"b",v:!0}:"FALSE"===e?_={t:"b",v:!1}:""===S&&t(s).find("a").length?(e="href"!==H.htmlHyperlink?e:"",_={f:'=HYPERLINK("'+t(s).find("a").attr("href")+(e.length?'","'+e:"")+'")'}):"n"===S||isFinite(I(e,H.numbers.output))?(s=I(e,H.numbers.output),0===T&&"function"!=typeof H.mso.xslx.formatId.numbers&&(T=H.mso.xslx.formatId.numbers),(isFinite(s)||isFinite(e))&&(_={t:"n",v:isFinite(s)?s:e,z:"string"==typeof T?T:T in y?y[T]:"0.00"})):!1===(s=x(e))&&"d"!==S||(0===T&&"function"!=typeof H.mso.xslx.formatId.date&&(T=H.mso.xslx.formatId.date),_={t:"d",v:!1!==s?s:e,z:"string"==typeof T?T:T in y?y[T]:"m/d/yy"}))),d[N({c:i,r:g})]=_,p.e.c<i&&(p.e.c=i),i+=a}++g}f.length&&(d["!merges"]=f),h.length&&(d["!rows"]=h),p.e.r=g-1,d["!ref"]=R(p),1e7<=g&&(d["!fullref"]=R((p.e.r=u.length-m+g-1,p))),u="","string"==typeof H.mso.worksheetName&&H.mso.worksheetName.length?u=H.mso.worksheetName+" "+(ht.length+1):"undefined"!=typeof H.mso.worksheetName[ht.length]&&(u=H.mso.worksheetName[ht.length]),u.length||(u=c.find("caption").text()||""),u.length||(u="Table "+(ht.length+1)),u=t.trim(u.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31)),ht.push(u),XLSX.utils.book_append_sheet(mt,d,u)}),e=XLSX.write(mt,{type:"binary",bookType:H.mso.fileFormat,bookSST:!1}),L(O(e),H.fileName+"."+H.mso.fileFormat,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","UTF-8","",!1)}else if("excel"===H.type||"xls"===H.type||"word"===H.type||"doc"===H.type){e="excel"===H.type||"xls"===H.type?"excel":"word",Z="excel"===e?"xls":"doc",dt='xmlns:x="urn:schemas-microsoft-com:office:'+e+'"';var gt="",yt="";if(t(B).filter(function(){return r(t(this))}).each(function(){var e=t(this);""===yt&&(yt=H.mso.worksheetName||e.find("caption").text()||"Table",yt=t.trim(yt.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31))),!1===H.exportHiddenCells&&(K=e.find("tr, th, td").filter(":hidden"),J=0<K.length),V=0,Q=[],G=a(this),gt+="<table><thead>",W=n(e),t(W).each(function(){var e=t(this);X="",c(this,"th,td",V,W.length,function(t,n,i){if(null!==t){var o="";if(X+="<th",H.mso.styles.length){var a,r=document.defaultView.getComputedStyle(t,null),s=document.defaultView.getComputedStyle(e[0],null);for(a in H.mso.styles){var l=r[H.mso.styles[a]];""===l&&(l=s[H.mso.styles[a]]),""!==l&&"0px none rgb(0, 0, 0)"!==l&&"rgba(0, 0, 0, 0)"!==l&&(o+=""===o?'style="':";",o+=H.mso.styles[a]+":"+l)}}""!==o&&(X+=" "+o+'"'),o=F(t),0<o&&(X+=' colspan="'+o+'"'),o=D(t),0<o&&(X+=' rowspan="'+o+'"'),X+=">"+k(t,n,i)+"</th>"}}),0<X.length&&(gt+="<tr>"+X+"</tr>"),V++}),gt+="</thead><tbody>",q=i(e),t(q).each(function(){var e=t(this);X="",c(this,"td,th",V,W.length+q.length,function(n,i,o){if(null!==n){var a=k(n,i,o),r="",s=t(n).attr("data-tableexport-msonumberformat");if("undefined"==typeof s&&"function"==typeof H.mso.onMsoNumberFormat&&(s=H.mso.onMsoNumberFormat(n,i,o)),"undefined"!=typeof s&&""!==s&&(r="style=\"mso-number-format:'"+s+"'"),H.mso.styles.length){i=document.defaultView.getComputedStyle(n,null),o=document.defaultView.getComputedStyle(e[0],null);for(var l in H.mso.styles)s=i[H.mso.styles[l]],""===s&&(s=o[H.mso.styles[l]]),""!==s&&"0px none rgb(0, 0, 0)"!==s&&"rgba(0, 0, 0, 0)"!==s&&(r+=""===r?'style="':";",r+=H.mso.styles[l]+":"+s)}X+="<td",""!==r&&(X+=" "+r+'"'),r=F(n),0<r&&(X+=' colspan="'+r+'"'),n=D(n),0<n&&(X+=' rowspan="'+n+'"'),"string"==typeof a&&""!==a&&(a=C(a),a=a.replace(/\n/g,"<br>")),X+=">"+a+"</td>"}}),0<X.length&&(gt+="<tr>"+X+"</tr>"),V++}),H.displayTableName&&(gt+="<tr><td></td></tr><tr><td></td></tr><tr><td>"+k(t("<p>"+H.tableName+"</p>"))+"</td></tr>"),gt+="</tbody></table>"}),dt='<html xmlns:o="urn:schemas-microsoft-com:office:office" '+dt+' xmlns="http://www.w3.org/TR/REC-html40">'+('<meta http-equiv="content-type" content="application/vnd.ms-'+e+'; charset=UTF-8">'),dt+="<head>","excel"===e&&(dt+="<!--[if gte mso 9]>",dt+="<xml>",dt+="<x:ExcelWorkbook>",dt+="<x:ExcelWorksheets>",dt+="<x:ExcelWorksheet>",dt+="<x:Name>",dt+=yt,dt+="</x:Name>",dt+="<x:WorksheetOptions>",dt+="<x:DisplayGridlines/>",H.mso.rtl&&(dt+="<x:DisplayRightToLeft/>"),dt+="</x:WorksheetOptions>",dt+="</x:ExcelWorksheet>",dt+="</x:ExcelWorksheets>",dt+="</x:ExcelWorkbook>",dt+="</xml>",dt+="<![endif]-->"),dt+="<style>",dt+="@page { size:"+H.mso.pageOrientation+"; mso-page-orientation:"+H.mso.pageOrientation+"; }",dt+="@page Section1 {size:"+Y[H.mso.pageFormat][0]+"pt "+Y[H.mso.pageFormat][1]+"pt",dt+="; margin:1.0in 1.25in 1.0in 1.25in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}",dt+="div.Section1 {page:Section1;}",dt+="@page Section2 {size:"+Y[H.mso.pageFormat][1]+"pt "+Y[H.mso.pageFormat][0]+"pt",dt+=";mso-page-orientation:"+H.mso.pageOrientation+";margin:1.25in 1.0in 1.25in 1.0in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}",dt+="div.Section2 {page:Section2;}",dt+="br {mso-data-placement:same-cell;}",dt+="</style>",dt+="</head>",dt+="<body>",dt+='<div class="Section'+("landscape"===H.mso.pageOrientation?"2":"1")+'">',dt+=gt,dt+="</div>",dt+="</body>",dt+="</html>","string"===H.outputMode)return dt;if("base64"===H.outputMode)return P(dt);L(dt,H.fileName+"."+Z,"application/vnd.ms-"+e,"","base64",!1)}else if("png"===H.type)html2canvas(t(B)[0]).then(function(t){t=t.toDataURL();for(var e=atob(t.substring(22)),n=new ArrayBuffer(e.length),i=new Uint8Array(n),o=0;o<e.length;o++)i[o]=e.charCodeAt(o);return"string"===H.outputMode?e:"base64"===H.outputMode?P(t):void("window"===H.outputMode?window.open(t):L(n,H.fileName+".png","image/png","","",!1))});else if("pdf"===H.type)if(!0===H.pdfmake.enabled){e=[];var vt=[];for(V=0,Q=[],Z=function(e,n,i){var o=0;return t(e).each(function(){var t=[];c(this,n,V,i,function(e,n,i){if("undefined"!=typeof e&&null!==e){var o=F(e),a=D(e);e=k(e,n,i)||" ",1<o||1<a?t.push({colSpan:o||1,rowSpan:a||1,text:e}):t.push(e)}else t.push(" ")}),t.length&&vt.push(t),o<t.length&&(o=t.length),V++}),o},W=n(t(this)),dt=Z(W,"th,td",W.length),ut=e.length;ut<dt;ut++)e.push("*");q=i(t(this)),Z(q,"th,td",W.length+q.length),e={content:[{table:{headerRows:W.length,widths:e,body:vt}}]},t.extend(!0,e,H.pdfmake.docDefinition),pdfMake.fonts={Roboto:{normal:"Roboto-Regular.ttf",bold:"Roboto-Medium.ttf",italics:"Roboto-Italic.ttf",bolditalics:"Roboto-MediumItalic.ttf"}},t.extend(!0,pdfMake.fonts,H.pdfmake.fonts),pdfMake.createPdf(e).getBuffer(function(t){L(t,H.fileName+".pdf","application/pdf","","",!1)})}else if(!1===H.jspdf.autotable){e={dim:{w:A(t(B).first().get(0),"width","mm"),h:A(t(B).first().get(0),"height","mm")},pagesplit:!1};var bt=new jsPDF(H.jspdf.orientation,H.jspdf.unit,H.jspdf.format);bt.addHTML(t(B).first(),H.jspdf.margins.left,H.jspdf.margins.top,e,function(){u(bt,!1)})}else{var xt=H.jspdf.autotable.tableExport;if("string"==typeof H.jspdf.format&&"bestfit"===H.jspdf.format.toLowerCase()){var wt="",_t="",kt=0;t(B).each(function(){if(r(t(this))){var e=A(t(this).get(0),"width","pt");if(e>kt){e>Y.a0[0]&&(wt="a0",_t="l");for(var n in Y)Y.hasOwnProperty(n)&&Y[n][1]>e&&(wt=n,_t="l",Y[n][0]>e&&(_t="p"));kt=e}}}),H.jspdf.format=""===wt?"a4":wt,H.jspdf.orientation=""===_t?"w":_t}null==xt.doc&&(xt.doc=new jsPDF(H.jspdf.orientation,H.jspdf.unit,H.jspdf.format),xt.wScaleFactor=1,xt.hScaleFactor=1,"function"==typeof H.jspdf.onDocCreated)&&H.jspdf.onDocCreated(xt.doc),!0===xt.outputImages&&(xt.images={}),"undefined"!=typeof xt.images&&(t(B).filter(function(){return r(t(this))}).each(function(){var e=0;Q=[],!1===H.exportHiddenCells&&(K=t(this).find("tr, th, td").filter(":hidden"),J=0<K.length),W=n(t(this)),q=i(t(this)),t(q).each(function(){c(this,"td,th",W.length+e,W.length+q.length,function(e){f(e,t(e).children(),xt)}),e++})}),W=[],q=[]),h(xt,function(){t(B).filter(function(){return r(t(this))}).each(function(){var e;if(V=0,Q=[],!1===H.exportHiddenCells&&(K=t(this).find("tr, th, td").filter(":hidden"),J=0<K.length),G=a(this),xt.columns=[],xt.rows=[],xt.teCells={},"function"==typeof xt.onTable&&!1===xt.onTable(t(this),H))return!0;H.jspdf.autotable.tableExport=null;var o=t.extend(!0,{},H.jspdf.autotable);if(H.jspdf.autotable.tableExport=xt,o.margin={},t.extend(!0,o.margin,H.jspdf.margins),o.tableExport=xt,"function"!=typeof o.beforePageContent&&(o.beforePageContent=function(e){if(1===e.pageCount){var n=e.table.rows.concat(e.table.headerRow);t.each(n,function(){0<this.height&&(this.height+=(2-1.15)/2*this.styles.fontSize,e.table.height+=(2-1.15)/2*this.styles.fontSize)})}}),"function"!=typeof o.createdHeaderCell&&(o.createdHeaderCell=function(e,n){if(e.styles=t.extend({},n.row.styles),"undefined"!=typeof xt.columns[n.column.dataKey]){var i=xt.columns[n.column.dataKey];if("undefined"!=typeof i.rect){if(e.contentWidth=i.rect.width,"undefined"==typeof xt.heightRatio||0===xt.heightRatio){var a=n.row.raw[n.column.dataKey].rowspan?n.row.raw[n.column.dataKey].rect.height/n.row.raw[n.column.dataKey].rowspan:n.row.raw[n.column.dataKey].rect.height;xt.heightRatio=e.styles.rowHeight/a}a=n.row.raw[n.column.dataKey].rect.height*xt.heightRatio,a>e.styles.rowHeight&&(e.styles.rowHeight=a)}e.styles.halign="inherit"===o.headerStyles.halign?"center":o.headerStyles.halign,e.styles.valign=o.headerStyles.valign,"undefined"!=typeof i.style&&!0!==i.style.hidden&&("inherit"===o.headerStyles.halign&&(e.styles.halign=i.style.align),"inherit"===o.styles.fillColor&&(e.styles.fillColor=i.style.bcolor),"inherit"===o.styles.textColor&&(e.styles.textColor=i.style.color),"inherit"===o.styles.fontStyle&&(e.styles.fontStyle=i.style.fstyle))}}),"function"!=typeof o.createdCell&&(o.createdCell=function(t,e){e=xt.teCells[e.row.index+":"+e.column.dataKey],t.styles.halign="inherit"===o.styles.halign?"center":o.styles.halign,t.styles.valign=o.styles.valign,"undefined"!=typeof e&&"undefined"!=typeof e.style&&!0!==e.style.hidden&&("inherit"===o.styles.halign&&(t.styles.halign=e.style.align),"inherit"===o.styles.fillColor&&(t.styles.fillColor=e.style.bcolor),"inherit"===o.styles.textColor&&(t.styles.textColor=e.style.color),"inherit"===o.styles.fontStyle&&(t.styles.fontStyle=e.style.fstyle))}),"function"!=typeof o.drawHeaderCell&&(o.drawHeaderCell=function(t,e){var n=xt.columns[e.column.dataKey];return(!0!==n.style.hasOwnProperty("hidden")||!0!==n.style.hidden)&&0<=n.rowIndex&&p(t,e,n)}),"function"!=typeof o.drawCell&&(o.drawCell=function(e,n){var i=xt.teCells[n.row.index+":"+n.column.dataKey];if(!0!==("undefined"!=typeof i&&i.isCanvas))p(e,n,i)&&(xt.doc.rect(e.x,e.y,e.width,e.height,e.styles.fillStyle),"undefined"==typeof i||"undefined"!=typeof i.hasUserDefText&&!0===i.hasUserDefText||"undefined"==typeof i.elements||!i.elements.length?g(e,{},xt):(n=e.height/i.rect.height,n>xt.hScaleFactor&&(xt.hScaleFactor=n),xt.wScaleFactor=e.width/i.rect.width,n=e.textPos.y,m(e,i.elements,xt),e.textPos.y=n,g(e,i.elements,xt)));else{i=i.elements[0];var o=t(i).attr("data-tableexport-canvas"),a=i.getBoundingClientRect();e.width=a.width*xt.wScaleFactor,e.height=a.height*xt.hScaleFactor,n.row.height=e.height,d(e,i,o,xt)}return!1}),xt.headerrows=[],W=n(t(this)),t(W).each(function(){e=0,xt.headerrows[V]=[],c(this,"th,td",V,W.length,function(t,n,i){var o=$(t);o.title=k(t,n,i),o.key=e++,o.rowIndex=V,xt.headerrows[V].push(o)}),V++}),0<V)for(var r=V-1;0<=r;)t.each(xt.headerrows[r],function(){var t=this;0<r&&null===this.rect&&(t=xt.headerrows[r-1][this.key]),null!==t&&0<=t.rowIndex&&(!0!==t.style.hasOwnProperty("hidden")||!0!==t.style.hidden)&&xt.columns.push(t)}),r=0<xt.columns.length?-1:r-1;var s=0;q=[],q=i(t(this)),t(q).each(function(){var n=[];e=0,c(this,"td,th",V,W.length+q.length,function(i,o,a){if("undefined"==typeof xt.columns[e]){var r={title:"",key:e,style:{hidden:!0}};xt.columns.push(r)}n.push(k(i,o,a)),"undefined"!=typeof i&&null!==i?(r=$(i),r.isCanvas=i.hasAttribute("data-tableexport-canvas"),r.elements=r.isCanvas?t(i):t(i).children(),"undefined"!=typeof t(i).data("teUserDefText")&&(r.hasUserDefText=!0)):(r=t.extend(!0,{},xt.teCells[s+":"+(e-1)]),r.colspan=-1),xt.teCells[s+":"+e++]=r}),n.length&&(xt.rows.push(n),s++),V++}),"function"==typeof xt.onBeforeAutotable&&xt.onBeforeAutotable(t(this),xt.columns,xt.rows,o),xt.doc.autoTable(xt.columns,xt.rows,o),"function"==typeof xt.onAfterAutotable&&xt.onAfterAutotable(t(this),o),H.jspdf.autotable.startY=xt.doc.autoTableEndPosY()+o.margin.top}),u(xt.doc,"undefined"!=typeof xt.images&&!1===jQuery.isEmptyObject(xt.images)),"undefined"!=typeof xt.headerrows&&(xt.headerrows.length=0),"undefined"!=typeof xt.columns&&(xt.columns.length=0),"undefined"!=typeof xt.rows&&(xt.rows.length=0),delete xt.doc,xt.doc=null})}return"function"==typeof H.onTableExportEnd&&H.onTableExportEnd(),this}}(jQuery),define("tableexport",["jquery"],function(t){return function(){var e;return e||t.$.fn.extend}}(this)),!function(t){"use strict";var e=t.fn.bootstrapTable.utils.sprintf,n={json:"JSON",xml:"XML",png:"PNG",csv:"CSV",txt:"TXT",sql:"SQL",doc:"MS-Word",excel:"MS-Excel",xlsx:"MS-Excel (OpenXML)",powerpoint:"MS-Powerpoint",pdf:"PDF"};t.extend(t.fn.bootstrapTable.defaults,{showExport:!1,exportDataType:"basic",exportTypes:["json","xml","csv","txt","sql","excel"],exportOptions:{}}),t.extend(t.fn.bootstrapTable.defaults.icons,{export:"glyphicon-export icon-share"}),t.extend(t.fn.bootstrapTable.locales,{formatExport:function(){return"Export data"}}),t.extend(t.fn.bootstrapTable.defaults,t.fn.bootstrapTable.locales);var i=t.fn.bootstrapTable.Constructor,o=i.prototype.initToolbar;i.prototype.initToolbar=function(){if(this.showToolbar=this.options.showExport,o.apply(this,Array.prototype.slice.apply(arguments)),this.options.showExport){var i=this,a=this.$toolbar.find(">.btn-group"),r=a.find("div.export");if(!r.length){r=t(['<div class="export btn-group">','<button class="btn'+e(" btn-%s",this.options.buttonsClass)+e(" btn-%s",this.options.iconSize)+' dropdown-toggle" aria-label="export type" title="'+this.options.formatExport()+'" data-toggle="dropdown" type="button">',e('<i class="%s %s"></i> ',this.options.iconsPrefix,this.options.icons.export),'<span class="caret"></span>',"</button>",'<ul class="dropdown-menu" role="menu">',"</ul>","</div>"].join("")).appendTo(a);var s=r.find(".dropdown-menu"),l=this.options.exportTypes;if("string"==typeof this.options.exportTypes){var c=this.options.exportTypes.slice(1,-1).replace(/ /g,"").split(",");l=[],t.each(c,function(t,e){l.push(e.slice(1,-1))})}t.each(l,function(t,e){n.hasOwnProperty(e)&&s.append(['<li role="menuitem" data-type="'+e+'">','<a href="javascript:void(0)">',n[e],"</a>","</li>"].join(""))}),s.find("li").click(function(){var e=t(this).data("type"),n=function(){i.$el.tableExport(t.extend({},i.options.exportOptions,{type:e,escape:!1}))};if("all"===i.options.exportDataType&&i.options.pagination)i.$el.one("server"===i.options.sidePagination?"post-body.bs.table":"page-change.bs.table",function(){n(),i.togglePagination()}),i.togglePagination();else if("selected"===i.options.exportDataType){var o=i.getData(),a=i.getAllSelections();"server"===i.options.sidePagination&&(o={total:i.options.totalRows},o[i.options.dataField]=i.getData(),a={total:i.options.totalRows},a[i.options.dataField]=i.getAllSelections()),i.load(a),n(),i.load(o)}else n()})}}}}(jQuery),define("bootstrap-table-export",["bootstrap-table","tableexport"],function(t){return function(){var e;return e||t.$.fn.bootstrapTable.defaults}}(this)),function(t){"function"==typeof define&&define.amd?define("dropzone",["jquery"],t):t(jQuery)}(function(t){function e(t){"@babel/helpers - typeof";return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,n){return!n||"object"!==e(n)&&"function"!=typeof n?o(t):n}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}function d(t,e){return"undefined"!=typeof t&&null!==t?e(t):void 0}function u(t,e,n){return"undefined"!=typeof t&&null!==t&&"function"==typeof t[e]?n(t,e):void 0}var p={exports:{}},f=function(){function t(){s(this,t)}return c(t,[{key:"on",value:function(t,e){return this._callbacks=this._callbacks||{},this._callbacks[t]||(this._callbacks[t]=[]),this._callbacks[t].push(e),this}},{key:"emit",value:function(t){this._callbacks=this._callbacks||{};var e=this._callbacks[t];if(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];var a=!0,r=!1,s=void 0;try{for(var l,c=e[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var d=l.value;d.apply(this,i)}}catch(t){r=!0,s=t}finally{try{a||null==c.return||c.return()}finally{if(r)throw s}}}return this}},{key:"off",value:function(t,e){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[t];if(!n)return this;if(1===arguments.length)return delete this._callbacks[t],this;for(var i=0;i<n.length;i++){var o=n[i];if(o===e){n.splice(i,1);break}}return this}}]),t}(),h=function(t){function e(t,a){var r;s(this,e),r=n(this,i(e).call(this));var l,c;if(r.element=t,r.version=e.version,r.defaultOptions.previewTemplate=r.defaultOptions.previewTemplate.replace(/\n*/g,""),r.clickableElements=[],r.listeners=[],r.files=[],"string"==typeof r.element&&(r.element=document.querySelector(r.element)),!r.element||null==r.element.nodeType)throw new Error("Invalid dropzone element.");if(r.element.dropzone)throw new Error("Dropzone already attached.");e.instances.push(o(r)),r.element.dropzone=o(r);var d=null!=(c=e.optionsForElement(r.element))?c:{};if(r.options=e.extend({},r.defaultOptions,d,null!=a?a:{}),r.options.forceFallback||!e.isBrowserSupported())return n(r,r.options.fallback.call(o(r)));if(null==r.options.url&&(r.options.url=r.element.getAttribute("action")),!r.options.url)throw new Error("No URL provided.");if(r.options.acceptedFiles&&r.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(r.options.uploadMultiple&&r.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return r.options.acceptedMimeTypes&&(r.options.acceptedFiles=r.options.acceptedMimeTypes,delete r.options.acceptedMimeTypes),null!=r.options.renameFilename&&(r.options.renameFile=function(t){return r.options.renameFilename.call(o(r),t.name,t)}),r.options.method="function"!=typeof r.options.method?r.options.method.toUpperCase():r.options.method,(l=r.getExistingFallback())&&l.parentNode&&l.parentNode.removeChild(l),r.options.previewsContainer!==!1&&(r.options.previewsContainer?r.previewsContainer=e.getElement(r.options.previewsContainer,"previewsContainer"):r.previewsContainer=r.element),r.options.clickable&&(r.options.clickable===!0?r.clickableElements=[r.element]:r.clickableElements=e.getElements(r.options.clickable,"clickable")),r.init(),r}return a(e,t),c(e,null,[{key:"initClass",value:function(){this.prototype.Emitter=f,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(t,e,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(t,e){return e()},chunkSuccess:function(t,e,n){},chunksUploaded:function(t,e){e()},fallback:function(){var t;this.element.className="".concat(this.element.className," dz-browser-not-supported");var n=!0,i=!1,o=void 0;try{for(var a,r=this.element.getElementsByTagName("div")[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var s=a.value;if(/(^| )dz-message($| )/.test(s.className)){t=s,s.className="dz-message";break}}}catch(t){i=!0,o=t}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}t||(t=e.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(t));var l=t.getElementsByTagName("span")[0];return l&&(null!=l.textContent?l.textContent=this.options.dictFallbackMessage:null!=l.innerText&&(l.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(t,e,n,i){var o={srcX:0,srcY:0,srcWidth:t.width,srcHeight:t.height},a=t.width/t.height;null==e&&null==n?(e=o.srcWidth,n=o.srcHeight):null==e?e=n*a:null==n&&(n=e/a),e=Math.min(e,o.srcWidth),n=Math.min(n,o.srcHeight);var r=e/n;if(o.srcWidth>e||o.srcHeight>n)if("crop"===i)a>r?(o.srcHeight=t.height,o.srcWidth=o.srcHeight*r):(o.srcWidth=t.width,o.srcHeight=o.srcWidth/r);else{if("contain"!==i)throw new Error("Unknown resizeMethod '".concat(i,"'"));a>r?n=e/a:e=n*a}return o.srcX=(t.width-o.srcWidth)/2,o.srcY=(t.height-o.srcHeight)/2,o.trgWidth=e,o.trgHeight=n,o},transformFile:function(t,e){return(this.options.resizeWidth||this.options.resizeHeight)&&t.type.match(/image.*/)?this.resizeImage(t,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,e):e(t)},previewTemplate:'<div class="dz-preview dz-file-preview">\n  <div class="dz-image"><img data-dz-thumbnail /></div>\n  <div class="dz-details">\n    <div class="dz-size"><span data-dz-size></span></div>\n    <div class="dz-filename"><span data-dz-name></span></div>\n  </div>\n  <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n  <div class="dz-error-message"><span data-dz-errormessage></span></div>\n  <div class="dz-success-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n      <title>Check</title>\n      <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n        <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path>\n      </g>\n    </svg>\n  </div>\n  <div class="dz-error-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n      <title>Error</title>\n      <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n        <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n          <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path>\n        </g>\n      </g>\n    </svg>\n  </div>\n</div>',drop:function(t){return this.element.classList.remove("dz-drag-hover")},dragstart:function(t){},dragend:function(t){return this.element.classList.remove("dz-drag-hover")},dragenter:function(t){return this.element.classList.add("dz-drag-hover")},dragover:function(t){return this.element.classList.add("dz-drag-hover")},dragleave:function(t){return this.element.classList.remove("dz-drag-hover")},paste:function(t){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){var n=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){t.previewElement=e.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement);var i=!0,o=!1,a=void 0;try{for(var r,s=t.previewElement.querySelectorAll("[data-dz-name]")[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var l=r.value;l.textContent=t.name}}catch(t){o=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw a}}var c=!0,d=!1,u=void 0;try{for(var p,f=t.previewElement.querySelectorAll("[data-dz-size]")[Symbol.iterator]();!(c=(p=f.next()).done);c=!0)l=p.value,l.innerHTML=this.filesize(t.size)}catch(t){d=!0,u=t}finally{try{c||null==f.return||f.return()}finally{if(d)throw u}}this.options.addRemoveLinks&&(t._removeLink=e.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),t.previewElement.appendChild(t._removeLink));var h=function(i){return i.preventDefault(),i.stopPropagation(),t.status===e.UPLOADING?e.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(t)}):n.options.dictRemoveFileConfirmation?e.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(t)}):n.removeFile(t)},m=!0,g=!1,y=void 0;try{for(var v,b=t.previewElement.querySelectorAll("[data-dz-remove]")[Symbol.iterator]();!(m=(v=b.next()).done);m=!0){var x=v.value;x.addEventListener("click",h)}}catch(t){g=!0,y=t}finally{try{m||null==b.return||b.return()}finally{if(g)throw y}}}},removedfile:function(t){return null!=t.previewElement&&null!=t.previewElement.parentNode&&t.previewElement.parentNode.removeChild(t.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(t,e){if(t.previewElement){t.previewElement.classList.remove("dz-file-preview");var n=!0,i=!1,o=void 0;try{for(var a,r=t.previewElement.querySelectorAll("[data-dz-thumbnail]")[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var s=a.value;s.alt=t.name,s.src=e}}catch(t){i=!0,o=t}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}return setTimeout(function(){return t.previewElement.classList.add("dz-image-preview")},1)}},error:function(t,e){if(t.previewElement){t.previewElement.classList.add("dz-error"),"String"!=typeof e&&e.error&&(e=e.error);var n=!0,i=!1,o=void 0;try{for(var a,r=t.previewElement.querySelectorAll("[data-dz-errormessage]")[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var s=a.value;s.textContent=e}}catch(t){i=!0,o=t}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}}},errormultiple:function(){},processing:function(t){if(t.previewElement&&(t.previewElement.classList.add("dz-processing"),t._removeLink))return t._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(t,e,n){if(t.previewElement){var i=!0,o=!1,a=void 0;try{for(var r,s=t.previewElement.querySelectorAll("[data-dz-uploadprogress]")[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var l=r.value;"PROGRESS"===l.nodeName?l.value=e:l.style.width="".concat(e,"%")}}catch(t){o=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw a}}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(t){if(t.previewElement)return t.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(t){return this.emit("error",t,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(t){if(t._removeLink&&(t._removeLink.innerHTML=this.options.dictRemoveFile),t.previewElement)return t.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];for(var o=0,a=n;o<a.length;o++){var r=a[o];for(var s in r){var l=r[s];t[s]=l}}return t}}]),c(e,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(t){return t.accepted;
  }).map(function(t){return t})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(t){return!t.accepted}).map(function(t){return t})}},{key:"getFilesWithStatus",value:function(t){return this.files.filter(function(e){return e.status===t}).map(function(t){return t})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(e.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(e.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(e.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(t){return t.status===e.UPLOADING||t.status===e.QUEUED}).map(function(t){return t})}},{key:"init",value:function(){var t=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(e.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var n=function n(){return t.hiddenFileInput&&t.hiddenFileInput.parentNode.removeChild(t.hiddenFileInput),t.hiddenFileInput=document.createElement("input"),t.hiddenFileInput.setAttribute("type","file"),(null===t.options.maxFiles||t.options.maxFiles>1)&&t.hiddenFileInput.setAttribute("multiple","multiple"),t.hiddenFileInput.className="dz-hidden-input",null!==t.options.acceptedFiles&&t.hiddenFileInput.setAttribute("accept",t.options.acceptedFiles),null!==t.options.capture&&t.hiddenFileInput.setAttribute("capture",t.options.capture),t.hiddenFileInput.style.visibility="hidden",t.hiddenFileInput.style.position="absolute",t.hiddenFileInput.style.top="0",t.hiddenFileInput.style.left="0",t.hiddenFileInput.style.height="0",t.hiddenFileInput.style.width="0",e.getElement(t.options.hiddenInputContainer,"hiddenInputContainer").appendChild(t.hiddenFileInput),t.hiddenFileInput.addEventListener("change",function(){var e=t.hiddenFileInput.files;if(e.length){var i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var l=r.value;t.addFile(l)}}catch(t){o=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw a}}}return t.emit("addedfiles",e),n()})};n()}this.URL=null!==window.URL?window.URL:window.webkitURL;var i=!0,o=!1,a=void 0;try{for(var r,s=this.events[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var l=r.value;this.on(l,this.options[l])}}catch(t){o=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw a}}this.on("uploadprogress",function(){return t.updateTotalUploadProgress()}),this.on("removedfile",function(){return t.updateTotalUploadProgress()}),this.on("canceled",function(e){return t.emit("complete",e)}),this.on("complete",function(e){if(0===t.getAddedFiles().length&&0===t.getUploadingFiles().length&&0===t.getQueuedFiles().length)return setTimeout(function(){return t.emit("queuecomplete")},0)});var c=function(t){return t.dataTransfer.types&&t.dataTransfer.types.some(function(t){return"Files"==t})},d=function(t){if(c(t))return t.stopPropagation(),t.preventDefault?t.preventDefault():t.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(e){return t.emit("dragstart",e)},dragenter:function(e){return d(e),t.emit("dragenter",e)},dragover:function(e){var n;try{n=e.dataTransfer.effectAllowed}catch(t){}return e.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",d(e),t.emit("dragover",e)},dragleave:function(e){return t.emit("dragleave",e)},drop:function(e){return d(e),t.drop(e)},dragend:function(e){return t.emit("dragend",e)}}}],this.clickableElements.forEach(function(n){return t.listeners.push({element:n,events:{click:function(i){return(n!==t.element||i.target===t.element||e.elementInside(i.target,t.element.querySelector(".dz-message")))&&t.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,e.instances.splice(e.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var t,e=0,n=0,i=this.getActiveFiles();if(i.length){var o=!0,a=!1,r=void 0;try{for(var s,l=this.getActiveFiles()[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;e+=c.upload.bytesSent,n+=c.upload.total}}catch(t){a=!0,r=t}finally{try{o||null==l.return||l.return()}finally{if(a)throw r}}t=100*e/n}else t=100;return this.emit("totaluploadprogress",t,n,e)}},{key:"_getParamName",value:function(t){return"function"==typeof this.options.paramName?this.options.paramName(t):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(t,"]"):"")}},{key:"_renameFile",value:function(t){return"function"!=typeof this.options.renameFile?t.name:this.options.renameFile(t)}},{key:"getFallbackForm",value:function(){var t,n;if(t=this.getExistingFallback())return t;var i='<div class="dz-fallback">';this.options.dictFallbackText&&(i+="<p>".concat(this.options.dictFallbackText,"</p>")),i+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var o=e.createElement(i);return"FORM"!==this.element.tagName?(n=e.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),n.appendChild(o)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=n?n:o}},{key:"getExistingFallback",value:function(){for(var t=function(t){var e=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){var r=o.value;if(/(^| )fallback($| )/.test(r.className))return r}}catch(t){n=!0,i=t}finally{try{e||null==a.return||a.return()}finally{if(n)throw i}}},e=0,n=["div","form"];e<n.length;e++){var i,o=n[e];if(i=t(this.element.getElementsByTagName(o)))return i}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(t){return function(){var e=[];for(var n in t.events){var i=t.events[n];e.push(t.element.addEventListener(n,i,!1))}return e}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(t){return function(){var e=[];for(var n in t.events){var i=t.events[n];e.push(t.element.removeEventListener(n,i,!1))}return e}()})}},{key:"disable",value:function(){var t=this;return this.clickableElements.forEach(function(t){return t.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(e){return t.cancelUpload(e)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(t){return t.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(t){var e=0,n="b";if(t>0){for(var i=["tb","gb","mb","kb","b"],o=0;o<i.length;o++){var a=i[o],r=Math.pow(this.options.filesizeBase,4-o)/10;if(t>=r){e=t/Math.pow(this.options.filesizeBase,4-o),n=a;break}}e=Math.round(10*e)/10}return"<strong>".concat(e,"</strong> ").concat(this.options.dictFileSizeUnits[n])}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(t){if(t.dataTransfer){this.emit("drop",t);for(var e=[],n=0;n<t.dataTransfer.files.length;n++)e[n]=t.dataTransfer.files[n];if(e.length){var i=t.dataTransfer.items;i&&i.length&&null!=i[0].webkitGetAsEntry?this._addFilesFromItems(i):this.handleFiles(e)}this.emit("addedfiles",e)}}},{key:"paste",value:function(t){if(null!=d(null!=t?t.clipboardData:void 0,function(t){return t.items})){this.emit("paste",t);var e=t.clipboardData.items;return e.length?this._addFilesFromItems(e):void 0}}},{key:"handleFiles",value:function(t){var e=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){var r=o.value;this.addFile(r)}}catch(t){n=!0,i=t}finally{try{e||null==a.return||a.return()}finally{if(n)throw i}}}},{key:"_addFilesFromItems",value:function(t){var e=this;return function(){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var l,c=r.value;null!=c.webkitGetAsEntry&&(l=c.webkitGetAsEntry())?l.isFile?n.push(e.addFile(c.getAsFile())):l.isDirectory?n.push(e._addFilesFromDirectory(l,l.name)):n.push(void 0):null!=c.getAsFile&&(null==c.kind||"file"===c.kind)?n.push(e.addFile(c.getAsFile())):n.push(void 0)}}catch(t){o=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw a}}return n}()}},{key:"_addFilesFromDirectory",value:function(t,e){var n=this,i=t.createReader(),o=function(t){return u(console,"log",function(e){return e.log(t)})},a=function t(){return i.readEntries(function(i){if(i.length>0){var o=!0,a=!1,r=void 0;try{for(var s,l=i[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;c.isFile?c.file(function(t){if(!n.options.ignoreHiddenFiles||"."!==t.name.substring(0,1))return t.fullPath="".concat(e,"/").concat(t.name),n.addFile(t)}):c.isDirectory&&n._addFilesFromDirectory(c,"".concat(e,"/").concat(c.name))}}catch(t){a=!0,r=t}finally{try{o||null==l.return||l.return()}finally{if(a)throw r}}t()}return null},o)};return a()}},{key:"accept",value:function(t,n){this.options.maxFilesize&&t.size>1024*this.options.maxFilesize*1024?n(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(t.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):e.isValidFile(t,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(n(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",t)):this.options.accept.call(this,t,n):n(this.options.dictInvalidFileType)}},{key:"addFile",value:function(t){var n=this;t.upload={uuid:e.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t)},this.files.push(t),t.status=e.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,function(e){e?(t.accepted=!1,n._errorProcessing([t],e)):(t.accepted=!0,n.options.autoQueue&&n.enqueueFile(t)),n._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(t){var e=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){var r=o.value;this.enqueueFile(r)}}catch(t){n=!0,i=t}finally{try{e||null==a.return||a.return()}finally{if(n)throw i}}return null}},{key:"enqueueFile",value:function(t){var n=this;if(t.status!==e.ADDED||t.accepted!==!0)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(t.status=e.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return n.processQueue()},0)}},{key:"_enqueueThumbnail",value:function(t){var e=this;if(this.options.createImageThumbnails&&t.type.match(/image.*/)&&t.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(t),setTimeout(function(){return e._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var t=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var e=this._thumbnailQueue.shift();return this.createThumbnail(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(n){return t.emit("thumbnail",e,n),t._processingThumbnail=!1,t._processThumbnailQueue()})}}},{key:"removeFile",value:function(t){if(t.status===e.UPLOADING&&this.cancelUpload(t),this.files=m(this.files,t),this.emit("removedfile",t),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(t){null==t&&(t=!1);var n=!0,i=!1,o=void 0;try{for(var a,r=this.files.slice()[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var s=a.value;(s.status!==e.UPLOADING||t)&&this.removeFile(s)}}catch(t){i=!0,o=t}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}return null}},{key:"resizeImage",value:function(t,n,i,o,a){var r=this;return this.createThumbnail(t,n,i,o,!0,function(n,i){if(null==i)return a(t);var o=r.options.resizeMimeType;null==o&&(o=t.type);var s=i.toDataURL(o,r.options.resizeQuality);return"image/jpeg"!==o&&"image/jpg"!==o||(s=b.restore(t.dataURL,s)),a(e.dataURItoBlob(s))})}},{key:"createThumbnail",value:function(t,e,n,i,o,a){var r=this,s=new FileReader;s.onload=function(){return t.dataURL=s.result,"image/svg+xml"===t.type?void(null!=a&&a(s.result)):void r.createThumbnailFromUrl(t,e,n,i,o,a)},s.readAsDataURL(t)}},{key:"displayExistingFile",value:function(t,e,n,i){var o=this,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(this.emit("addedfile",t),this.emit("complete",t),a){var r=function(e){o.emit("thumbnail",t,e),n&&n()};t.dataURL=e,this.createThumbnailFromUrl(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.resizeMethod,this.options.fixOrientation,r,i)}else this.emit("thumbnail",t,e),n&&n()}},{key:"createThumbnailFromUrl",value:function(t,e,n,i,o,a,r){var s=this,l=document.createElement("img");return r&&(l.crossOrigin=r),l.onload=function(){var r=function(t){return t(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&o&&(r=function(t){return EXIF.getData(l,function(){return t(EXIF.getTag(this,"Orientation"))})}),r(function(o){t.width=l.width,t.height=l.height;var r=s.options.resize.call(s,t,e,n,i),c=document.createElement("canvas"),d=c.getContext("2d");switch(c.width=r.trgWidth,c.height=r.trgHeight,o>4&&(c.width=r.trgHeight,c.height=r.trgWidth),o){case 2:d.translate(c.width,0),d.scale(-1,1);break;case 3:d.translate(c.width,c.height),d.rotate(Math.PI);break;case 4:d.translate(0,c.height),d.scale(1,-1);break;case 5:d.rotate(.5*Math.PI),d.scale(1,-1);break;case 6:d.rotate(.5*Math.PI),d.translate(0,-c.width);break;case 7:d.rotate(.5*Math.PI),d.translate(c.height,-c.width),d.scale(-1,1);break;case 8:d.rotate(-.5*Math.PI),d.translate(-c.height,0)}v(d,l,null!=r.srcX?r.srcX:0,null!=r.srcY?r.srcY:0,r.srcWidth,r.srcHeight,null!=r.trgX?r.trgX:0,null!=r.trgY?r.trgY:0,r.trgWidth,r.trgHeight);var u=c.toDataURL("image/png");if(null!=a)return a(u,c)})},null!=a&&(l.onerror=a),l.src=t.dataURL}},{key:"processQueue",value:function(){var t=this.options.parallelUploads,e=this.getUploadingFiles().length,n=e;if(!(e>=t)){var i=this.getQueuedFiles();if(i.length>0){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,t-e));for(;n<t;){if(!i.length)return;this.processFile(i.shift()),n++}}}}},{key:"processFile",value:function(t){return this.processFiles([t])}},{key:"processFiles",value:function(t){var n=!0,i=!1,o=void 0;try{for(var a,r=t[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var s=a.value;s.processing=!0,s.status=e.UPLOADING,this.emit("processing",s)}}catch(t){i=!0,o=t}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}return this.options.uploadMultiple&&this.emit("processingmultiple",t),this.uploadFiles(t)}},{key:"_getFilesWithXhr",value:function(t){var e;return e=this.files.filter(function(e){return e.xhr===t}).map(function(t){return t})}},{key:"cancelUpload",value:function(t){if(t.status===e.UPLOADING){var n=this._getFilesWithXhr(t.xhr),i=!0,o=!1,a=void 0;try{for(var r,s=n[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var l=r.value;l.status=e.CANCELED}}catch(t){o=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw a}}"undefined"!=typeof t.xhr&&t.xhr.abort();var c=!0,d=!1,u=void 0;try{for(var p,f=n[Symbol.iterator]();!(c=(p=f.next()).done);c=!0){var h=p.value;this.emit("canceled",h)}}catch(t){d=!0,u=t}finally{try{c||null==f.return||f.return()}finally{if(d)throw u}}this.options.uploadMultiple&&this.emit("canceledmultiple",n)}else t.status!==e.ADDED&&t.status!==e.QUEUED||(t.status=e.CANCELED,this.emit("canceled",t),this.options.uploadMultiple&&this.emit("canceledmultiple",[t]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(t){if("function"==typeof t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return t.apply(this,n)}return t}},{key:"uploadFile",value:function(t){return this.uploadFiles([t])}},{key:"uploadFiles",value:function(t){var n=this;this._transformFiles(t,function(i){if(n.options.chunking){var o=i[0];t[0].upload.chunked=n.options.chunking&&(n.options.forceChunking||o.size>n.options.chunkSize),t[0].upload.totalChunkCount=Math.ceil(o.size/n.options.chunkSize)}if(t[0].upload.chunked){var a=t[0],r=i[0],s=0;a.upload.chunks=[];var l=function(){for(var i=0;void 0!==a.upload.chunks[i];)i++;if(!(i>=a.upload.totalChunkCount)){s++;var o=i*n.options.chunkSize,l=Math.min(o+n.options.chunkSize,a.size),c={name:n._getParamName(0),data:r.webkitSlice?r.webkitSlice(o,l):r.slice(o,l),filename:a.upload.filename,chunkIndex:i};a.upload.chunks[i]={file:a,index:i,dataBlock:c,status:e.UPLOADING,progress:0,retries:0},n._uploadData(t,[c])}};if(a.upload.finishedChunkUpload=function(i,o){var r=!0;i.status=e.SUCCESS,n.options.chunkSuccess.call(n,i,a,o),i.dataBlock=null,i.xhr=null;for(var s=0;s<a.upload.totalChunkCount;s++){if(void 0===a.upload.chunks[s])return l();a.upload.chunks[s].status!==e.SUCCESS&&(r=!1)}r&&n.options.chunksUploaded.call(n,a,function(e){n._finished(t,e||"",null)})},n.options.parallelChunkUploads)for(var c=0;c<a.upload.totalChunkCount;c++)l();else l()}else{for(var d=[],u=0;u<t.length;u++)d[u]={name:n._getParamName(u),data:i[u],filename:t[u].upload.filename};n._uploadData(t,d)}})}},{key:"_getChunk",value:function(t,e){for(var n=0;n<t.upload.totalChunkCount;n++)if(void 0!==t.upload.chunks[n]&&t.upload.chunks[n].xhr===e)return t.upload.chunks[n]}},{key:"_uploadData",value:function(t,n){var i=this,o=new XMLHttpRequest,a=!0,r=!1,s=void 0;try{for(var l,c=t[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var d=l.value;d.xhr=o}}catch(t){r=!0,s=t}finally{try{a||null==c.return||c.return()}finally{if(r)throw s}}t[0].upload.chunked&&(t[0].upload.chunks[n[0].chunkIndex].xhr=o);var u=this.resolveOption(this.options.method,t),p=this.resolveOption(this.options.url,t);o.open(u,p,!0),o.timeout=this.resolveOption(this.options.timeout,t),o.withCredentials=!!this.options.withCredentials,o.onload=function(e){i._finishedUploading(t,o,e)},o.ontimeout=function(){i._handleUploadError(t,o,"Request timedout after ".concat(i.options.timeout," seconds"))},o.onerror=function(){i._handleUploadError(t,o)};var f=null!=o.upload?o.upload:o;f.onprogress=function(e){return i._updateFilesUploadProgress(t,o,e)};var h={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&e.extend(h,this.options.headers);for(var m in h){var g=h[m];g&&o.setRequestHeader(m,g)}var y=new FormData;if(this.options.params){var v=this.options.params;"function"==typeof v&&(v=v.call(this,t,o,t[0].upload.chunked?this._getChunk(t[0],o):null));for(var b in v){var x=v[b];y.append(b,x)}}var w=!0,_=!1,k=void 0;try{for(var C,S=t[Symbol.iterator]();!(w=(C=S.next()).done);w=!0){var T=C.value;this.emit("sending",T,o,y)}}catch(t){_=!0,k=t}finally{try{w||null==S.return||S.return()}finally{if(_)throw k}}this.options.uploadMultiple&&this.emit("sendingmultiple",t,o,y),this._addFormElementData(y);for(var $=0;$<n.length;$++){var F=n[$];y.append(F.name,F.data,F.filename)}this.submitRequest(o,y,t)}},{key:"_transformFiles",value:function(t,e){for(var n=this,i=[],o=0,a=function(a){n.options.transformFile.call(n,t[a],function(n){i[a]=n,++o===t.length&&e(i)})},r=0;r<t.length;r++)a(r)}},{key:"_addFormElementData",value:function(t){if("FORM"===this.element.tagName){var e=!0,n=!1,i=void 0;try{for(var o,a=this.element.querySelectorAll("input, textarea, select, button")[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){var r=o.value,s=r.getAttribute("name"),l=r.getAttribute("type");if(l&&(l=l.toLowerCase()),"undefined"!=typeof s&&null!==s)if("SELECT"===r.tagName&&r.hasAttribute("multiple")){var c=!0,d=!1,u=void 0;try{for(var p,f=r.options[Symbol.iterator]();!(c=(p=f.next()).done);c=!0){var h=p.value;h.selected&&t.append(s,h.value)}}catch(t){d=!0,u=t}finally{try{c||null==f.return||f.return()}finally{if(d)throw u}}}else(!l||"checkbox"!==l&&"radio"!==l||r.checked)&&t.append(s,r.value)}}catch(t){n=!0,i=t}finally{try{e||null==a.return||a.return()}finally{if(n)throw i}}}}},{key:"_updateFilesUploadProgress",value:function(t,e,n){var i;if("undefined"!=typeof n){if(i=100*n.loaded/n.total,t[0].upload.chunked){var o=t[0],a=this._getChunk(o,e);a.progress=i,a.total=n.total,a.bytesSent=n.loaded;o.upload.progress=0,o.upload.total=0,o.upload.bytesSent=0;for(var r=0;r<o.upload.totalChunkCount;r++)void 0!==o.upload.chunks[r]&&void 0!==o.upload.chunks[r].progress&&(o.upload.progress+=o.upload.chunks[r].progress,o.upload.total+=o.upload.chunks[r].total,o.upload.bytesSent+=o.upload.chunks[r].bytesSent);o.upload.progress=o.upload.progress/o.upload.totalChunkCount}else{var s=!0,l=!1,c=void 0;try{for(var d,u=t[Symbol.iterator]();!(s=(d=u.next()).done);s=!0){var p=d.value;p.upload.progress=i,p.upload.total=n.total,p.upload.bytesSent=n.loaded}}catch(t){l=!0,c=t}finally{try{s||null==u.return||u.return()}finally{if(l)throw c}}}var f=!0,h=!1,m=void 0;try{for(var g,y=t[Symbol.iterator]();!(f=(g=y.next()).done);f=!0){var v=g.value;this.emit("uploadprogress",v,v.upload.progress,v.upload.bytesSent)}}catch(t){h=!0,m=t}finally{try{f||null==y.return||y.return()}finally{if(h)throw m}}}else{var b=!0;i=100;var x=!0,w=!1,_=void 0;try{for(var k,C=t[Symbol.iterator]();!(x=(k=C.next()).done);x=!0){var S=k.value;100===S.upload.progress&&S.upload.bytesSent===S.upload.total||(b=!1),S.upload.progress=i,S.upload.bytesSent=S.upload.total}}catch(t){w=!0,_=t}finally{try{x||null==C.return||C.return()}finally{if(w)throw _}}if(b)return;var T=!0,$=!1,F=void 0;try{for(var D,E=t[Symbol.iterator]();!(T=(D=E.next()).done);T=!0){var A=D.value;this.emit("uploadprogress",A,i,A.upload.bytesSent)}}catch(t){$=!0,F=t}finally{try{T||null==E.return||E.return()}finally{if($)throw F}}}}},{key:"_finishedUploading",value:function(t,n,i){var o;if(t[0].status!==e.CANCELED&&4===n.readyState){if("arraybuffer"!==n.responseType&&"blob"!==n.responseType&&(o=n.responseText,n.getResponseHeader("content-type")&&~n.getResponseHeader("content-type").indexOf("application/json")))try{o=JSON.parse(o)}catch(t){i=t,o="Invalid JSON response from server."}this._updateFilesUploadProgress(t),200<=n.status&&n.status<300?t[0].upload.chunked?t[0].upload.finishedChunkUpload(this._getChunk(t[0],n),o):this._finished(t,o,i):this._handleUploadError(t,n,o)}}},{key:"_handleUploadError",value:function(t,n,i){if(t[0].status!==e.CANCELED){if(t[0].upload.chunked&&this.options.retryChunks){var o=this._getChunk(t[0],n);if(o.retries++<this.options.retryChunksLimit)return void this._uploadData(t,[o.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(t,i||this.options.dictResponseError.replace("{{statusCode}}",n.status),n)}}},{key:"submitRequest",value:function(t,e,n){t.send(e)}},{key:"_finished",value:function(t,n,i){var o=!0,a=!1,r=void 0;try{for(var s,l=t[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;c.status=e.SUCCESS,this.emit("success",c,n,i),this.emit("complete",c)}}catch(t){a=!0,r=t}finally{try{o||null==l.return||l.return()}finally{if(a)throw r}}if(this.options.uploadMultiple&&(this.emit("successmultiple",t,n,i),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(t,n,i){var o=!0,a=!1,r=void 0;try{for(var s,l=t[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;c.status=e.ERROR,this.emit("error",c,n,i),this.emit("complete",c)}}catch(t){a=!0,r=t}finally{try{o||null==l.return||l.return()}finally{if(a)throw r}}if(this.options.uploadMultiple&&(this.emit("errormultiple",t,n,i),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0,n="x"===t?e:3&e|8;return n.toString(16)})}}]),e}(f);h.initClass(),h.version="5.7.0",h.options={},h.optionsForElement=function(t){return t.getAttribute("id")?h.options[g(t.getAttribute("id"))]:void 0},h.instances=[],h.forElement=function(t){if("string"==typeof t&&(t=document.querySelector(t)),null==(null!=t?t.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return t.dropzone},h.autoDiscover=!0,h.discover=function(){var t;if(document.querySelectorAll)t=document.querySelectorAll(".dropzone");else{t=[];var e=function(e){return function(){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var l=r.value;/(^| )dropzone($| )/.test(l.className)?n.push(t.push(l)):n.push(void 0)}}catch(t){o=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw a}}return n}()};e(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))}return function(){var e=[],n=!0,i=!1,o=void 0;try{for(var a,r=t[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){var s=a.value;h.optionsForElement(s)!==!1?e.push(new h(s)):e.push(void 0)}}catch(t){i=!0,o=t}finally{try{n||null==r.return||r.return()}finally{if(i)throw o}}return e}()},h.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],h.isBrowserSupported=function(){var t=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a")){var e=!0,n=!1,i=void 0;try{for(var o,a=h.blacklistedBrowsers[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){var r=o.value;r.test(navigator.userAgent)&&(t=!1)}}catch(t){n=!0,i=t}finally{try{e||null==a.return||a.return()}finally{if(n)throw i}}}else t=!1;else t=!1;return t},h.dataURItoBlob=function(t){for(var e=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(e.length),o=new Uint8Array(i),a=0,r=e.length,s=0<=r;s?a<=r:a>=r;s?a++:a--)o[a]=e.charCodeAt(a);return new Blob([i],{type:n})};var m=function(t,e){return t.filter(function(t){return t!==e}).map(function(t){return t})},g=function(t){return t.replace(/[\-_](\w)/g,function(t){return t.charAt(1).toUpperCase()})};h.createElement=function(t){var e=document.createElement("div");return e.innerHTML=t,e.childNodes[0]},h.elementInside=function(t,e){if(t===e)return!0;for(;t=t.parentNode;)if(t===e)return!0;return!1},h.getElement=function(t,e){var n;if("string"==typeof t?n=document.querySelector(t):null!=t.nodeType&&(n=t),null==n)throw new Error("Invalid `".concat(e,"` option provided. Please provide a CSS selector or a plain HTML element."));return n},h.getElements=function(t,e){var n,i;if(t instanceof Array){i=[];try{var o=!0,a=!1,r=void 0;try{for(var s,l=t[Symbol.iterator]();!(o=(s=l.next()).done);o=!0)n=s.value,i.push(this.getElement(n,e))}catch(t){a=!0,r=t}finally{try{o||null==l.return||l.return()}finally{if(a)throw r}}}catch(t){i=null}}else if("string"==typeof t){i=[];var c=!0,d=!1,u=void 0;try{for(var p,f=document.querySelectorAll(t)[Symbol.iterator]();!(c=(p=f.next()).done);c=!0)n=p.value,i.push(n)}catch(t){d=!0,u=t}finally{try{c||null==f.return||f.return()}finally{if(d)throw u}}}else null!=t.nodeType&&(i=[t]);if(null==i||!i.length)throw new Error("Invalid `".concat(e,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return i},h.confirm=function(t,e,n){return window.confirm(t)?e():null!=n?n():void 0},h.isValidFile=function(t,e){if(!e)return!0;e=e.split(",");var n=t.type,i=n.replace(/\/.*$/,""),o=!0,a=!1,r=void 0;try{for(var s,l=e[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;if(c=c.trim(),"."===c.charAt(0)){if(t.name.toLowerCase().indexOf(c.toLowerCase(),t.name.length-c.length)!==-1)return!0}else if(/\/\*$/.test(c)){if(i===c.replace(/\/.*$/,""))return!0}else if(n===c)return!0}}catch(t){a=!0,r=t}finally{try{o||null==l.return||l.return()}finally{if(a)throw r}}return!1},"undefined"!=typeof t&&null!==t&&(t.fn.dropzone=function(t){return this.each(function(){return new h(this,t)})}),"undefined"!=typeof p&&null!==p?p.exports=h:window.Dropzone=h,h.ADDED="added",h.QUEUED="queued",h.ACCEPTED=h.QUEUED,h.UPLOADING="uploading",h.PROCESSING=h.UPLOADING,h.CANCELED="canceled",h.ERROR="error",h.SUCCESS="success";var y=function(t){var e=(t.naturalWidth,t.naturalHeight),n=document.createElement("canvas");n.width=1,n.height=e;var i=n.getContext("2d");i.drawImage(t,0,0);for(var o=i.getImageData(1,0,1,e),a=o.data,r=0,s=e,l=e;l>r;){var c=a[4*(l-1)+3];0===c?s=l:r=l,l=s+r>>1}var d=l/e;return 0===d?1:d},v=function(t,e,n,i,o,a,r,s,l,c){var d=y(e);return t.drawImage(e,n,i,o,a,r,s,l,c/d)},b=function(){function t(){s(this,t)}return c(t,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(t){for(var e="",n=void 0,i=void 0,o="",a=void 0,r=void 0,s=void 0,l="",c=0;;)if(n=t[c++],i=t[c++],o=t[c++],a=n>>2,r=(3&n)<<4|i>>4,s=(15&i)<<2|o>>6,l=63&o,isNaN(i)?s=l=64:isNaN(o)&&(l=64),e=e+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(l),n=i=o="",a=r=s=l="",!(c<t.length))break;return e}},{key:"restore",value:function(t,e){if(!t.match("data:image/jpeg;base64,"))return e;var n=this.decode64(t.replace("data:image/jpeg;base64,","")),i=this.slice2Segments(n),o=this.exifManipulation(e,i);return"data:image/jpeg;base64,".concat(this.encode64(o))}},{key:"exifManipulation",value:function(t,e){var n=this.getExifArray(e),i=this.insertExif(t,n),o=new Uint8Array(i);return o}},{key:"getExifArray",value:function(t){for(var e=void 0,n=0;n<t.length;){if(e=t[n],255===e[0]&225===e[1])return e;n++}return[]}},{key:"insertExif",value:function(t,e){var n=t.replace("data:image/jpeg;base64,",""),i=this.decode64(n),o=i.indexOf(255,3),a=i.slice(0,o),r=i.slice(o),s=a;return s=s.concat(e),s=s.concat(r)}},{key:"slice2Segments",value:function(t){for(var e=0,n=[];;){var i;if(255===t[e]&218===t[e+1])break;if(255===t[e]&216===t[e+1])e+=2;else{i=256*t[e+2]+t[e+3];var o=e+i+2,a=t.slice(e,o);n.push(a),e=o}if(e>t.length)break}return n}},{key:"decode64",value:function(t){var e=void 0,n=void 0,i="",o=void 0,a=void 0,r=void 0,s="",l=0,c=[],d=/[^A-Za-z0-9\+\/\=]/g;for(d.exec(t)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");;)if(o=this.KEY_STR.indexOf(t.charAt(l++)),a=this.KEY_STR.indexOf(t.charAt(l++)),r=this.KEY_STR.indexOf(t.charAt(l++)),s=this.KEY_STR.indexOf(t.charAt(l++)),e=o<<2|a>>4,n=(15&a)<<4|r>>2,i=(3&r)<<6|s,c.push(e),64!==r&&c.push(n),64!==s&&c.push(i),e=n=i="",o=a=r=s="",!(l<t.length))break;return c}}]),t}();b.initClass();var x=function(t,e){var n=!1,i=!0,o=t.document,a=o.documentElement,r=o.addEventListener?"addEventListener":"attachEvent",s=o.addEventListener?"removeEventListener":"detachEvent",l=o.addEventListener?"":"on",c=function i(a){if("readystatechange"!==a.type||"complete"===o.readyState)return("load"===a.type?t:o)[s](l+a.type,i,!1),!n&&(n=!0)?e.call(t,a.type||a):void 0},d=function t(){try{a.doScroll("left")}catch(e){return void setTimeout(t,50)}return c("poll")};if("complete"!==o.readyState){if(o.createEventObject&&a.doScroll){try{i=!t.frameElement}catch(t){}i&&d()}return o[r](l+"DOMContentLoaded",c,!1),o[r](l+"readystatechange",c,!1),t[r](l+"load",c,!1)}};return h._autoDiscoverFunction=function(){if(h.autoDiscover)return h.discover();
  },x(window,h._autoDiscoverFunction),p.exports}),define("upload",["jquery","bootstrap","dropzone","template"],function(t,e,n,i){var o={list:{},options:{},config:{container:document.body,classname:".plupload:not([initialized]),.faupload:not([initialized])",previewtpl:'<li class="col-xs-3"><a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail"><img src="<%=fullurl%>" onerror="this.src=\''+Fast.api.fixurl("ajax/icon")+'?suffix=<%=suffix%>\';this.onerror=null;" class="img-responsive"></a><a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a></li>'},events:{onInit:function(){},onUploadSuccess:function(e,n,i){var a=e.element,r=e.options.onUploadSuccess,s="undefined"!=typeof n.data?n.data:null;if(a){var l=t(a).data("input-id")?t(a).data("input-id"):"";if(l){var c=[],d=t("#"+l);t(a).data("multiple")&&""!==d.val()&&c.push(d.val()),c.push(s.url),d.val(c.join(",")).trigger("change").trigger("validate")}var u=t(a).data("upload-success");if(u&&("function"!=typeof u&&"function"==typeof o.api.custom[u]&&(u=o.api.custom[u]),"function"==typeof u)){var p=u.call(a,s,n);if(p===!1)return}}if("function"==typeof r){var p=r.call(a,s,n);if(p===!1)return}},onUploadError:function(e,n,i){var a=e.element,r=e.options.onUploadError,s="undefined"!=typeof n.data?n.data:null;if(a){var l=t(a).data("upload-error");if(l&&("function"!=typeof l&&"function"==typeof o.api.custom[l]&&(l=o.api.custom[l]),"function"==typeof l)){var c=l.call(a,s,n);if(c===!1)return}}if("function"==typeof r){var c=r.call(a,s,n);if(c===!1)return}Toastr.error(n.msg.toString().replace(/(<([^>]+)>)/gi,"")+"(code:"+n.code+")")},onUploadResponse:function(e,n,i){try{var o="object"==typeof e?e:JSON.parse(e);o.hasOwnProperty("code")||t.extend(o,{code:-2,msg:e,data:null})}catch(t){var o={code:-1,msg:t.message,data:null}}return o},onUploadComplete:function(e,n){var i=e.element,a=e.options.onUploadComplete;if(i){var r=t(i).data("upload-complete");if(r&&("function"!=typeof r&&"function"==typeof o.api.custom[r]&&(r=o.api.custom[r]),"function"==typeof r)){var s=r.call(i,n);if(s===!1)return}}if("function"==typeof a){var s=a.call(i,n);if(s===!1)return}}},api:{upload:function(e,a,r,s){e="undefined"==typeof e?o.config.classname:e,t(e,o.config.container).each(function(){if(t(this).attr("initialized"))return!0;t(this).attr("initialized",!0);var e=this,l=t(this).prop("id")||t(this).prop("name")||n.uuidv4(),c=t(this).data("url"),d=t(this).data("maxsize"),u=t(this).data("maxcount"),p=t(this).data("mimetype"),f=t(this).data("multipart"),h=t(this).data("multiple"),m=t(e).data("input-id")?t(e).data("input-id"):"",g=t(e).data("preview-id")?t(e).data("preview-id"):"";c=c?c:Config.upload.uploadurl,c=Fast.api.fixurl(c);var y=!1,v=Config.upload.chunksize||2097152;d="undefined"!=typeof d?d:Config.upload.maxsize,p="undefined"!=typeof p?p:Config.upload.mimetype,f="undefined"!=typeof f?f:Config.upload.multipart,h="undefined"!=typeof h?h:Config.upload.multiple,p=p.split(",").map(function(t){return t.indexOf("/")>-1?t:t&&"*"!==t&&"."!==t.charAt(0)?"."+t:t}).join(","),p="*"===p?null:p;var b=function(t){var e=t.toString().match(/^([0-9\.]+)(\w+)$/),n=e?parseFloat(e[1]):parseFloat(t),i=e?e[2].toLowerCase():"b",o={b:0,k:1,kb:1,m:2,mb:2,gb:3,g:3,tb:4,t:4},a="undefined"!=typeof o[i]?o[i]:0,r=n*Math.pow(1024,a);return r/Math.pow(1024,2)}(d),x=t(this).data()||{};delete x.success,delete x.url,f=t.isArray(f)?{}:f,o.list[l]=new n(this,t.extend({url:c,params:function(e,n,i){var o=f;return i?t.extend({},o,{filesize:i.file.size,filename:i.file.name,chunkid:i.file.upload.uuid,chunkindex:i.index,chunkcount:i.file.upload.totalChunkCount,chunksize:this.options.chunkSize,chunkfilesize:i.dataBlock.data.size,width:i.file.width||0,height:i.file.height||0,type:i.file.type}):o},chunking:y,chunkSize:v,maxFilesize:b,acceptedFiles:p,maxFiles:u&&parseInt(u)>1?u:h?null:1,previewsContainer:!1,dictDefaultMessage:__("Drop files here to upload"),dictFallbackMessage:__("Your browser does not support drag'n'drop file uploads"),dictFallbackText:__("Please use the fallback form below to upload your files like in the olden days"),dictFileTooBig:__("File is too big (%sMiB), Max filesize: %sMiB","{{filesize}}","{{maxFilesize}}"),dictInvalidFileType:__("You can't upload files of this type"),dictResponseError:__("Server responded with %s code.","{{statusCode}}"),dictCancelUpload:__("Cancel upload"),dictUploadCanceled:__("Upload canceled"),dictCancelUploadConfirmation:__("Are you sure you want to cancel this upload?"),dictRemoveFile:__("Remove file"),dictMaxFilesExceeded:__("You can only upload a maximum of %s files","{{maxFiles}}"),init:function(){o.events.onInit.call(this),t(">i",this.element).addClass("dz-message"),this.options.elementHtml=t(this.element).html()},addedfiles:function(e){if(this.options.maxFiles&&(!this.options.maxFiles||this.options.maxFiles>1)&&this.options.inputId){var n=t("#"+this.options.inputId);if(n.size()>0){var i=t.trim(n.val()),o=""===i?0:i.split(/\,/).length,a=this.options.maxFiles-o;if(0===a||e.length>a){e=Array.prototype.slice.call(e,a);for(var r=0;r<e.length;r++)this.removeFile(e[r]);Toastr.error(__("You can only upload a maximum of %s files",this.options.maxFiles))}}}},success:function(t,e){var n=o.events.onUploadResponse(e,this,t);t.ret=n,1===n.code?o.events.onUploadSuccess(this,n,t):o.events.onUploadError(this,n,t)},error:function(e,n,i){var a=t("<div>"+i.responseText+"</div>");a.find("style, title, script").remove();var r={code:0,data:null,msg:a.text()};o.events.onUploadError(this,r,e)},uploadprogress:function(t,e,n){},totaluploadprogress:function(e,n){this.getActiveFiles().length>0&&t(this.element).prop("disabled",!0).html("<i class='fa fa-upload'></i> "+__("Upload")+Math.floor(e)+"%")},queuecomplete:function(){o.events.onUploadComplete(this,this.files),this.removeAllFiles(!0),t(this.element).prop("disabled",!1).html(this.options.elementHtml)},chunkSuccess:function(t,e,n){},chunksUploaded:function(t,e){var n=this;Fast.api.ajax({url:this.options.url,data:{action:"merge",filesize:t.size,filename:t.name,chunkid:t.upload.uuid,chunkcount:t.upload.totalChunkCount}},function(t,n){return e(JSON.stringify(n)),!1},function(e,i){t.accepted=!1,n._errorProcessing([t],i.msg)})},onUploadSuccess:a,onUploadError:r,onUploadComplete:s},o.options,x)),g&&h&&require(["dragsort"],function(){t("#"+g).dragsort({dragSelector:"li a:not(.btn-trash)",dragEnd:function(){t("#"+g).trigger("fa.preview.change")},placeHolderTemplate:'<li class="col-xs-3"></li>'})});var w=function(e){var n={},i=t("textarea[name='"+e+"']"),o=i.prev("ul");t.each(t("input,select,textarea",o).serializeArray(),function(t,e){var i=/\[?(\w+)\]?\[(\w+)\]$/g,o=i.exec(e.name);return!o||void(isNaN(o[2])?(o[1]="x"+parseInt(o[1]),"undefined"==typeof n[o[1]]&&(n[o[1]]={}),n[o[1]][o[2]]=e.value):n[t]=e.value)});var a=[];t.each(n,function(t,e){a.push(e)}),i.val(JSON.stringify(a))};g&&m&&(t(document.body).on("keyup change","#"+m,function(n){var a=t("#"+m).val(),r=a.split(/\,/);t("#"+g).empty();var s=t("#"+g).data("template")?t("#"+g).data("template"):"",l=t("#"+g).next().is("textarea")?t("#"+g).next("textarea").val():"{}",c={};try{c=JSON.parse(l)}catch(t){}t.each(r,function(n,a){if(!a)return!0;var r=/[\.]?([a-zA-Z0-9]+)$/.exec(a);r=r?r[1]:"file";var l={url:a,fullurl:Fast.api.cdnurl(a),data:t(e).data(),key:n,index:n,value:c&&"undefined"!=typeof c[n]?c[n]:null,suffix:r},d=s?i(s,l):i.render(o.config.previewtpl,l);t("#"+g).append(d)})}),t("#"+m).trigger("change")),g&&(t("#"+g).on("change keyup","input,textarea,select",function(){w(t(this).closest("ul").data("name"))}),t(document.body).on("fa.preview.change","#"+g,function(){var e=[];t("#"+g+" [data-url]").each(function(n,i){e.push(t(this).data("url"))}),m&&t("#"+m).val(e.join(",")),w(t("#"+g).data("name"))}),t(document.body).on("click","#"+g+" .btn-trash",function(){t(this).closest("li").remove(),t("#"+g).trigger("fa.preview.change")})),m&&t("body").on("paste drop","#"+m,function(e){var n=e.originalEvent,i=t(".plupload[data-input-id='"+t(this).attr("id")+"'],.faupload[data-input-id='"+t(this).attr("id")+"']");if("paste"===e.type&&n.clipboardData&&n.clipboardData.items){var a=n.clipboardData.items;if(!(1===a.length&&a[0].type.indexOf("text")>-1||2===a.length&&a[1].type.indexOf("text")>-1))return o.list[i.attr("id")].paste(n),!1}if("drop"===e.type&&n.dataTransfer&&n.dataTransfer.files)return o.list[i.attr("id")].drop(n),!1})})},plupload:function(t,e,n,i){return o.api.upload(t,e,n,i)},faupload:function(t,e,n,i){return o.api.upload(t,e,n,i)},send:function(e,i,a,r){var s=Layer.msg(__("Uploading"),{offset:"t",time:0}),l="dropzone-"+n.uuidv4();t('<button type="button" id="'+l+'" class="btn btn-danger hidden faupload" />').appendTo("body"),t("#"+l).data("upload-complete",function(t){Layer.close(s),o.list[l].removeAllFiles(!0)}),o.api.upload("#"+l,i,a,r),setTimeout(function(){o.list[l].addFile(e)},1)},custom:{afteruploadcallback:function(t){console.log(this,t),alert("Custom Callback,Response URL:"+t.url)}}}};return o}),function(t){"object"==typeof module&&module.exports?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define("validator",["jquery"],t):t(jQuery)}(function(t,e){"use strict";function n(e,i){function o(){a.$el=t(e),a.$el.length?a._init(a.$el[0],i):W(e)&&(G[e]=i)}var a=this;return a instanceof n?void(n.pending?t(window).on("validatorready",o):o()):new n(e,i)}function i(e){function n(){var e=this.options;for(var n in e)n in K&&(this[n]=e[n]);t.extend(this,{_valHook:function(){return"true"===this.element.contentEditable?"text":"val"},getValue:function(){var e=this.element;return"number"===e.type&&e.validity&&e.validity.badInput?"NaN":t(e)[this._valHook()]()},setValue:function(e){t(this.element)[this._valHook()](this.value=e)},getRangeMsg:function(t,e,n){function i(t,e){return l?t>e:t>=e}if(e){var o,a=this,r=a.messages[a._r]||"",s=e[0].split("~"),l="false"===e[1],c=s[0],d=s[1],u="rg",p=[""],f=B(t)&&+t===+t;return 2===s.length?c&&d?(f&&i(t,+c)&&i(+d,t)&&(o=!0),p=p.concat(s),u=l?"gtlt":"rg"):c&&!d?(f&&i(t,+c)&&(o=!0),p.push(c),u=l?"gt":"gte"):!c&&d&&(f&&i(+d,t)&&(o=!0),p.push(d),u=l?"lt":"lte"):(t===+c&&(o=!0),p.push(c),u="eq"),r&&(n&&r[u+n]&&(u+=n),p[0]=r[u]),o||a._rules&&(a._rules[a._i].msg=a.renderMsg.apply(null,p))}},renderMsg:function(){var t=arguments,e=t[0],n=t.length;if(e){for(;--n;)e=e.replace("{"+n+"}",t[n]);return e}}})}function i(n,i,o){this.key=n,this.validator=e,t.extend(this,o,i)}return n.prototype=e,i.prototype=new n,i}function o(t,e){if(q(t)){var n,i=e?e===!0?this:e:o.prototype;for(n in t)f(n)&&(i[n]=r(t[n]))}}function a(t,e){if(q(t)){var n,i=e?e===!0?this:e:a.prototype;for(n in t)i[n]=t[n]}}function r(e){switch(t.type(e)){case"function":return e;case"array":var n=function(){return e[0].test(this.value)||e[1]||!1};return n.msg=e[1],n;case"regexp":return function(){return e.test(this.value)}}}function s(e){var n,i,o;if(e&&e.tagName){switch(e.tagName){case"INPUT":case"SELECT":case"TEXTAREA":case"BUTTON":case"FIELDSET":n=e.form||t(e).closest("."+w);break;case"FORM":n=e;break;default:n=t(e).closest("."+w)}for(i in G)if(t(n).is(i)){o=G[i];break}return t(n).data(g)||t(n)[g](o).data(g)}}function l(t,e){var n=B(X(t,C+"-"+e));if(n&&(n=new Function("return "+n)()))return r(n)}function c(t,e,n){var i=e.msg,o=e._r;return q(i)&&(i=i[o]),W(i)||(i=X(t,S+"-"+o)||X(t,S)||(n?W(n)?n:n[o]:"")),i}function d(t){var e;return t&&(e=j.exec(t)),e&&e[0]}function u(t){return"INPUT"===t.tagName&&"checkbox"===t.type||"radio"===t.type}function p(t){return Date.parse(t.replace(/\.|\-/g,"/"))}function f(t){return/^\w+$/.test(t)}function h(t){var e="#"===t.charAt(0);return t=t.replace(/([:.{(|)}\/\[\]])/g,"\\$1"),e?t:'[name="'+t+'"]:first'}var m,g="validator",y="."+g,v=".rule",b=".field",x=".form",w="nice-"+g,_="msg-box",k="aria-invalid",C="data-rule",S="data-msg",T="data-tip",$="data-ok",F="data-timely",D="data-target",E="data-display",A="data-must",O="novalidate",N=":verifiable",R=/(&)?(!)?\b(\w+)(?:\[\s*(.*?\]?)\s*\]|\(\s*(.*?\)?)\s*\))?\s*(;|\|)?/g,I=/(\w+)(?:\[\s*(.*?\]?)\s*\]|\(\s*(.*?\)?)\s*\))?/,M=/(?:([^:;\(\[]*):)?(.*)/,L=/[^\x00-\xff]/g,j=/top|right|bottom|left/,P=/(?:(cors|jsonp):)?(?:(post|get):)?(.+)/i,z=/[<>'"`\\]|&#x?\d+[A-F]?;?|%3[A-F]/gim,H=t.noop,Y=t.proxy,B=t.trim,U=t.isFunction,W=function(t){return"string"==typeof t},q=function(t){return t&&"[object Object]"===Object.prototype.toString.call(t)},V=document.documentMode||+(navigator.userAgent.match(/MSIE (\d+)/)&&RegExp.$1),X=function(t,n,i){return t&&t.tagName?i===e?t.getAttribute(n):void(null===i?t.removeAttribute(n):t.setAttribute(n,""+i)):null},G={},Q={debug:0,theme:"default",ignore:"",focusInvalid:!0,focusCleanup:!1,stopOnError:!1,beforeSubmit:null,valid:null,invalid:null,validation:null,formClass:"n-default",validClass:"n-valid",invalidClass:"n-invalid",bindClassTo:null},K={timely:1,display:null,target:null,ignoreBlank:!1,showOk:!0,dataFilter:function(t){if(W(t)||q(t)&&("error"in t||"ok"in t))return t},msgMaker:function(e){var n;return n='<span role="alert" class="msg-wrap n-'+e.type+'">'+e.arrow,e.result?t.each(e.result,function(t,i){n+='<span class="n-'+i.type+'">'+e.icon+'<span class="n-msg">'+i.msg+"</span></span>"}):n+=e.icon+'<span class="n-msg">'+e.msg+"</span>",n+="</span>"},msgWrapper:"span",msgArrow:"",msgIcon:'<span class="n-icon"></span>',msgClass:"n-right",msgStyle:"",msgShow:null,msgHide:null},J={};return t.fn.validator=function(e){var i=this,o=arguments;return i.is(N)?i:(i.is("form")||(i=this.find("form")),i.length||(i=this),i.each(function(){var i=t(this).data(g);if(i)if(W(e)){if("_"===e.charAt(0))return;i[e].apply(i,[].slice.call(o,1))}else e&&(i._reset(!0),i._init(this,e));else new n(this,e)}),this)},t.fn.isValid=function(t,n){var i,o,a=s(this[0]),r=U(t);return!a||(r||n!==e||(n=t),a.checkOnly=!!n,o=a.options,i=a._multiValidate(this.is(N)?this:this.find(N),function(e){e||!o.focusInvalid||a.checkOnly||a.$el.find("["+k+"]:first").focus(),r&&(t.length?t(e):e&&t()),a.checkOnly=!1}),r?this:i)},t.extend(t.expr.pseudos||t.expr[":"],{verifiable:function(t){var e=t.nodeName.toLowerCase();return("input"===e&&!{submit:1,button:1,reset:1,image:1}[t.type]||"select"===e||"textarea"===e||"true"===t.contentEditable)&&!t.disabled},filled:function(e){return!!B(t(e).val())}}),n.prototype={_init:function(e,n){var r,s,l,c=this;U(n)&&(n={valid:n}),n=c._opt=n||{},l=X(e,"data-"+g+"-option"),l=c._dataOpt=l&&"{"===l.charAt(0)?new Function("return "+l)():{},s=c._themeOpt=J[n.theme||l.theme||Q.theme],r=c.options=t.extend({},Q,K,s,c.options,n,l),c.rules=new o(r.rules,!0),c.messages=new a(r.messages,!0),c.Field=i(c),c.elements=c.elements||{},c.deferred={},c.errors={},c.fields={},c._initFields(r.fields),c.$el.data(g)||(c.$el.data(g,c).addClass(w+" "+r.formClass).on("form-submit-validate",function(t,e,n,i,o){c.vetoed=o.veto=!c.isValid,c.ajaxFormOptions=i}).on("submit"+y+" validate"+y,Y(c,"_submit")).on("reset"+y,Y(c,"_reset")).on("showmsg"+y,Y(c,"_showmsg")).on("hidemsg"+y,Y(c,"_hidemsg")).on("focusin"+y+" click"+y,N,Y(c,"_focusin")).on("focusout"+y+" validate"+y,N,Y(c,"_focusout")).on("keyup"+y+" input"+y+" compositionstart compositionend",N,Y(c,"_focusout")).on("click"+y,":radio,:checkbox","click",Y(c,"_focusout")).on("change"+y,'select,input[type="file"]',"change",Y(c,"_focusout")),c._NOVALIDATE=X(e,O),X(e,O,O)),W(r.target)&&c.$el.find(r.target).addClass("msg-container")},_guessAjax:function(e){function n(e,n,i){return!!(e&&e[n]&&t.map(e[n],function(t){return~t.namespace.indexOf(i)?1:null}).length)}var i=this;if(!(i.isAjaxSubmit=!!i.options.valid)){var o=(t._data||t.data)(e,"events");i.isAjaxSubmit=n(o,"valid","form")||n(o,"submit","form-plugin")}},_initFields:function(t){function e(t,e){if(null===e||r){var n=a.elements[t];n&&a._resetElement(n,!0),delete a.fields[t]}else a.fields[t]=new a.Field(t,W(e)?{rule:e}:e,a.fields[t])}var n,i,o,a=this,r=null===t;if(r&&(t=a.fields),q(t))for(n in t)if(~n.indexOf(","))for(i=n.split(","),o=i.length;o--;)e(B(i[o]),t[n]);else e(n,t[n]);a.$el.find(N).each(function(){a._parse(this)})},_parse:function(t){var e,n,i,o=this,a=t.name,r=X(t,C);return r&&X(t,C,null),t.id&&("#"+t.id in o.fields||!a||null!==r&&(e=o.fields[a])&&r!==e.rule&&t.id!==e.key)&&(a="#"+t.id),a||(a="#"+(t.id="N"+String(Math.random()).slice(-12))),e=o.getField(a,!0),e.rule=r||e.rule,(n=X(t,E))&&(e.display=n),e.rule&&((null!==X(t,A)||/\b(?:match|checked)\b/.test(e.rule))&&(e.must=!0),/\brequired\b/.test(e.rule)&&(e.required=!0),(i=X(t,F))?e.timely=+i:e.timely>3&&X(t,F,e.timely),o._parseRule(e),e.old={}),W(e.target)&&X(t,D,e.target),W(e.tip)&&X(t,T,e.tip),o.fields[a]=e},_parseRule:function(n){var i=M.exec(n.rule);i&&(n._i=0,i[1]&&(n.display=i[1]),i[2]&&(n._rules=[],i[2].replace(R,function(){var i=arguments;i[4]=i[4]||i[5],n._rules.push({and:"&"===i[1],not:"!"===i[2],or:"|"===i[6],method:i[3],params:i[4]?t.map(i[4].split(", "),B):e})})))},_multiValidate:function(n,i){var o=this,a=o.options;return o.hasError=!1,a.ignore&&(n=n.not(a.ignore)),n.each(function(){if(o._validate(this),o.hasError&&a.stopOnError)return!1}),i&&(o.validating=!0,t.when.apply(null,t.map(o.deferred,function(t){return t})).done(function(){i.call(o,!o.hasError),o.validating=!1})),t.isEmptyObject(o.deferred)?!o.hasError:e},_submit:function(n){var i=this,o=i.options,a=n.target,r="submit"===n.type&&"FORM"===a.tagName&&!n.isDefaultPrevented();n.preventDefault(),m&&~(m=!1)||i.submiting||"validate"===n.type&&i.$el[0]!==a||U(o.beforeSubmit)&&o.beforeSubmit.call(i,a)===!1||(i.isAjaxSubmit===e&&i._guessAjax(a),i._debug("log","\n<<< event: "+n.type),i._reset(),i.submiting=!0,i._multiValidate(i.$el.find(N),function(e){var n,s=e||2===o.debug?"valid":"invalid";e||(o.focusInvalid&&i.$el.find("["+k+"]:first").focus(),n=t.map(i.errors,function(t){return t})),i.submiting=!1,i.isValid=e,U(o[s])&&o[s].call(i,a,n),i.$el.trigger(s+x,[a,n]),i._debug("log",">>> "+s),e&&(i.vetoed?t(a).ajaxSubmit(i.ajaxFormOptions):r&&!i.isAjaxSubmit&&document.createElement("form").submit.call(a))}))},_reset:function(t){var e=this;e.errors={},t&&(e.reseting=!0,e.$el.find(N).each(function(){e._resetElement(this)}),delete e.reseting)},_resetElement:function(t,e){this._setClass(t,null),this.hideMsg(t)},_focusin:function(t){var e,n,i=this,o=i.options,a=t.target;i.validating||"click"===t.type&&document.activeElement===a||(o.focusCleanup&&"true"===X(a,k)&&(i._setClass(a,null),i.hideMsg(a)),n=X(a,T),n?i.showMsg(a,{type:"tip",msg:n}):(X(a,C)&&i._parse(a),(e=X(a,F))&&(8!==e&&9!==e||i._focusout(t))))},_focusout:function(e){var n,i,o,a,r,s,l,c,d,p=this,f=p.options,h=e.target,m=e.type,g="focusin"===m,y="validate"===m,v=0;if("compositionstart"===m&&(p.pauseValidate=!0),"compositionend"===m&&(p.pauseValidate=!1),!p.pauseValidate&&(i=h.name&&u(h)?p.$el.find('input[name="'+h.name+'"]').get(0):h,(o=p.getField(i))&&o.rule)){if(n=o._e,o._e=m,d=o.timely,!y){if(!d||u(h)&&"click"!==m)return;if(r=o.getValue(),o.ignoreBlank&&!r&&!g)return void p.hideMsg(h);if("focusout"===m){if("change"===n)return;if(2===d||8===d){if(a=o.old,!r||!a)return;o.isValid&&!a.showOk?p.hideMsg(h):p._makeMsg(h,o,a)}}else{if(d<2&&!e.data)return;if(s=+new Date,s-(h._ts||0)<100)return;if(h._ts=s,"keyup"===m){if("input"===n)return;if(l=e.keyCode,c={8:1,9:1,16:1,32:1,46:1},9===l&&!r)return;if(l<48&&!c[l])return}g||(v=d<100?"click"===m||"SELECT"===h.tagName?0:400:d)}}f.ignore&&t(h).is(f.ignore)||(clearTimeout(o._t),v?o._t=setTimeout(function(){p._validate(h,o)},v):(y&&(o.old={}),p._validate(h,o)))}},_setClass:function(e,n){var i=t(e),o=this.options;o.bindClassTo&&(i=i.closest(o.bindClassTo)),i.removeClass(o.invalidClass+" "+o.validClass),null!==n&&i.addClass(n?o.validClass:o.invalidClass)},_showmsg:function(t,e,n){var i=this,o=t.target;i.$el.is(o)?q(e)?i.showMsg(e):"tip"===e&&i.$el.find(N+"["+T+"]",o).each(function(){i.showMsg(this,{type:e,msg:n})}):i.showMsg(o,{type:e,msg:n})},_hidemsg:function(e){var n=t(e.target);n.is(N)&&this.hideMsg(n)},_validatedField:function(e,n,i){var o=this,a=o.options,r=n.isValid=i.isValid=!!i.isValid,s=r?"valid":"invalid";i.key=n.key,i.ruleName=n._r,i.id=e.id,i.value=n.value,o.elements[n.key]=i.element=e,o.isValid=o.$el[0].isValid=r?o.isFormValid():r,r?i.type="ok":(o.submiting&&(o.errors[n.key]=i.msg),o.hasError=!0),n.old=i,U(n[s])&&n[s].call(o,e,i),U(a.validation)&&a.validation.call(o,e,i),t(e).attr(k,!r||null).trigger(s+b,[i,o]),o.$el.triggerHandler("validation",[i,o]),o.checkOnly||(o._setClass(e,i.skip||"tip"===i.type?null:r),o._makeMsg.apply(o,arguments))},_makeMsg:function(e,n,i){n.msgMaker&&(i=t.extend({},i),"focusin"===n._e&&(i.type="tip"),this[i.showOk||i.msg||"tip"===i.type?"showMsg":"hideMsg"](e,i,n))},_validatedRule:function(n,i,o,a){i=i||u.getField(n),a=a||{};var r,s,l,d,u=this,p=i._r,f=i.timely,h=9===f||8===f,m=!1;if(null===o)return u._validatedField(n,i,{isValid:!0,skip:!0}),void(i._i=0);if(o===e?l=!0:o===!0||""===o?m=!0:W(o)?r=o:q(o)?o.error?r=o.error:(r=o.ok,m=!0):m=!!o,s=i._rules[i._i],s.not&&(r=e,m="required"===p||!m),s.or)if(m)for(;i._i<i._rules.length&&i._rules[i._i].or;)i._i++;else l=!0;else s.and&&(i.isValid||(l=!0));l?m=!0:(m&&i.showOk!==!1&&(d=X(n,$),r=null===d?W(i.ok)?i.ok:r:d,!W(r)&&W(i.showOk)&&(r=i.showOk),W(r)&&(a.showOk=m)),m&&!h||(r=(c(n,i,r||s.msg||u.messages[p])||u.messages.fallback).replace(/\{0\|?([^\}]*)\}/,function(t,e){return u._getDisplay(n,i.display)||e||u.messages[0]})),m||(i.isValid=m),a.msg=r,t(n).trigger((m?"valid":"invalid")+v,[p,r])),!h||l&&!s.and||(m||i._m||(i._m=r),i._v=i._v||[],i._v.push({type:m?l?"tip":"ok":"error",msg:r||s.msg})),u._debug("log","   "+i._i+": "+p+" => "+(m||r)),(m||h)&&i._i<i._rules.length-1?(i._i++,u._checkRule(n,i)):(i._i=0,h?(a.isValid=i.isValid,a.result=i._v,a.msg=i._m||"",i.value||"focusin"!==i._e||(a.type="tip")):a.isValid=m,u._validatedField(n,i,a),delete i._m,delete i._v)},_checkRule:function(n,i){var o,a,r,s=this,c=i.key,d=i._rules[i._i],u=d.method,p=d.params;s.submiting&&s.deferred[c]||(r=i.old,i._r=u,r&&!i.must&&!d.must&&d.result!==e&&r.ruleName===u&&r.id===n.id&&i.value&&r.value===i.value?o=d.result:(a=l(n,u)||s.rules[u]||H,o=a.call(i,n,p,i),a.msg&&(d.msg=a.msg)),q(o)&&U(o.then)?(s.deferred[c]=o,i.isValid=e,!s.checkOnly&&s.showMsg(n,{type:"loading",msg:s.messages.loading},i),o.then(function(o,a,r){var l,c=B(r.responseText),u=i.dataFilter;/jsonp?/.test(this.dataType)?c=o:"{"===c.charAt(0)&&(c=t.parseJSON(c)),l=u.call(this,c,i),l===e&&(l=u.call(this,c.data,i)),d.data=this.data,d.result=i.old?l:e,s._validatedRule(n,i,l)},function(t,e){s._validatedRule(n,i,s.messages[e]||e)}).always(function(){delete s.deferred[c]})):s._validatedRule(n,i,o))},_validate:function(t,e){var n=this;if(!t.disabled&&null===X(t,O)&&(e=e||n.getField(t),e&&(e._rules||n._parse(t),e._rules)))return n._debug("info",e.key),e.isValid=!0,e.element=t,e.value=e.getValue(),e.required||e.must||e.value||u(t)?(n._checkRule(t,e),e.isValid):(n._validatedField(t,e,{isValid:!0}),!0)},_debug:function(t,e){window.console&&this.options.debug&&console[t](e)},test:function(t,n){var i,o,a,r,s=this,l=I.exec(n);return l&&(a=l[1],a in s.rules&&(r=l[2]||l[3],r=r?r.split(", "):e,o=s.getField(t,!0),o._r=a,o.value=o.getValue(),i=s.rules[a].call(o,t,r))),i===!0||i===e||null===i},_getDisplay:function(t,e){return W(e)?e:U(e)?e.call(this,t):""},_getMsgOpt:function(e,n){var i=n?n:this.options;return t.extend({type:"error",pos:d(i.msgClass),target:i.target,wrapper:i.msgWrapper,style:i.msgStyle,cls:i.msgClass,arrow:i.msgArrow,icon:i.msgIcon},W(e)?{msg:e}:e)},_getMsgDOM:function(n,i){var o,a,r,s,l=t(n);if(l.is(N)?(r=i.target||X(n,D),r&&(r=U(r)?r.call(this,n):"#"===r.charAt(0)?t(r):this.$el.find(r),r.length&&(r.is(N)?(l=r,n=r.get(0)):r.hasClass(_)?o=r:s=r)),o||(a=u(n)&&n.name||!n.id?n.name:n.id,o=(s||this.$el).find(i.wrapper+"."+_+'[for="'+a+'"]'))):o=l,!i.hide&&!o.length)if(o=t("<"+i.wrapper+">").attr({class:_+(i.cls?" "+i.cls:""),style:i.style||e,for:a}),s)o.appendTo(s);else if(u(n)){var c=l.parent();o.appendTo(c.is("label")?c.parent():c)}else o[i.pos&&"right"!==i.pos?"insertBefore":"insertAfter"](l);return o},showMsg:function(e,n,i){if(e){var o,a,r,s,l=this,c=l.options;if(q(e)&&!e.jquery&&!n)return void t.each(e,function(t,e){var n=l.elements[t]||l.$el.find(h(t))[0];l.showMsg(n,e)});t(e).is(N)&&(i=i||l.getField(e)),(a=(i||c).msgMaker)&&(n=l._getMsgOpt(n,i),e=(e.name&&u(e)?l.$el.find('input[name="'+e.name+'"]'):t(e)).get(0),n.msg||"error"===n.type||(r=X(e,"data-"+n.type),null!==r&&(n.msg=r)),W(n.msg)&&(s=l._getMsgDOM(e,n),!j.test(s[0].className)&&s.addClass(n.cls),6===V&&"bottom"===n.pos&&(s[0].style.marginTop=t(e).outerHeight()+"px"),s.html(a.call(l,n))[0].style.display="",U(o=i&&i.msgShow||c.msgShow)&&o.call(l,s,n.type)))}},hideMsg:function(e,n,i){var o,a,r=this,s=r.options;e=t(e).get(0),t(e).is(N)&&(i=i||r.getField(e),i&&(i.isValid||r.reseting)&&X(e,k,null)),n=r._getMsgOpt(n,i),n.hide=!0,a=r._getMsgDOM(e,n),a.length&&(U(o=i&&i.msgHide||s.msgHide)?o.call(r,a,n.type):(a[0].style.display="none",a[0].innerHTML=""))},getField:function(t,n){var i,o,a=this;if(W(t))i=t,t=e;else{if(X(t,C))return a._parse(t);i=t.id&&"#"+t.id in a.fields||!t.name?"#"+t.id:t.name}return((o=a.fields[i])||n&&(o=new a.Field(i)))&&(o.element=t),o},setField:function(t,e){var n={};t&&(W(t)?n[t]=e:n=t,this._initFields(n))},isFormValid:function(){var t,e,n=this.fields;for(t in n)if(e=n[t],e._rules&&(e.required||e.must||e.value)&&!e.isValid)return!1;return!0},holdSubmit:function(t){this.submiting=t===e||t},cleanUp:function(){this._reset(1)},destroy:function(){this._reset(1),this.$el.off(y).removeData(g),X(this.$el[0],O,this._NOVALIDATE)}},t(window).on("beforeunload",function(){this.focus()}),t(document).on("click",":submit",function(){var t,e=this;e.form&&(t=e.getAttributeNode("formnovalidate"),(t&&null!==t.nodeValue||null!==X(e,O))&&(m=!0))}).on("focusin submit validate","form,."+w,function(e){if(null===X(this,O)){var n,i=t(this);!i.data(g)&&(n=s(this))&&(t.isEmptyObject(n.fields)?(X(this,O,O),i.off(y).removeData(g)):"focusin"===e.type?n._focusin(e):n._submit(e))}}),new a({fallback:"This field is not valid.",loading:"Validating..."}),new o({required:function(e,n){var i=this,o=B(i.value),a=!0;if(n)if(1===n.length){if(f(n[0])){if(i.rules[n[0]]){if(!o&&!i.test(e,n[0]))return null;i._r="required"}}else if(!o&&!t(n[0],i.$el).length)return null}else if("not"===n[0])t.each(n.slice(1),function(){return a=o!==B(this)});else if("from"===n[0]){var r,s=i.$el.find(n[1]),l="_validated_";return a=s.filter(function(){var t=i.getField(this);return t&&!!B(t.getValue())}).length>=(n[2]||1),a?o||(r=null):r=c(s[0],i)||!1,t(e).data(l)||s.data(l,1).each(function(){e!==this&&i._validate(this)}).removeData(l),r}return a&&!!o},integer:function(t,e){var n,i="0|",o="[1-9]\\d*",a=e?e[0]:"*";switch(a){case"+":n=o;break;case"-":n="-"+o;break;case"+0":n=i+o;break;case"-0":n=i+"-"+o;break;default:n=i+"-?"+o}return n="^(?:"+n+")$",new RegExp(n).test(this.value)||this.messages.integer&&this.messages.integer[a]},match:function(e,n){if(n){var i,o,a,r,s,l,c,d=this,u=!0,f="eq";if(1===n.length?a=n[0]:(f=n[0],a=n[1]),s=h(a),l=d.$el.find(s)[0]){if(c=d.getField(l),i=d.value,o=c.getValue(),d._match||(d.$el.on("valid"+b+y,s,function(){t(e).trigger("validate")}),d._match=c._match=1),!d.required&&""===i&&""===o)return null;if(r=n[2],r&&(/^date(time)?$/i.test(r)?(i=p(i),o=p(o)):"time"===r&&(i=+i.replace(/:/g,""),o=+o.replace(/:/g,""))),"eq"!==f&&!isNaN(+i)&&isNaN(+o))return!0;switch(f){case"lt":u=+i<+o;break;case"lte":u=+i<=+o;break;case"gte":u=+i>=+o;break;case"gt":u=+i>+o;break;case"neq":u=i!==o;break;default:u=i===o}return u||q(d.messages.match)&&d.messages.match[f].replace("{1}",d._getDisplay(l,c.display||a))}}},range:function(t,e){return this.getRangeMsg(this.value,e)},checked:function(t,e){if(u(t)){var n,i,o=this;return t.name?i=o.$el.find('input[name="'+t.name+'"]').filter(function(){var t=this;return!n&&u(t)&&(n=t),!t.disabled&&t.checked}).length:(n=t,i=n.checked),e?o.getRangeMsg(i,e):!!i||c(n,o,"")||o.messages.required||!1}},length:function(t,e){var n=this.value,i=("true"===e[1]?n.replace(L,"xx"):n).length;return this.getRangeMsg(i,e,e[1]?"_2":"")},remote:function(e,n){if(n){var i,o=this,a=P.exec(n[0]),r=o._rules[o._i],s={},l="",c=a[3],d=a[2]||"POST",u=(a[1]||"").toLowerCase();return r.must=!0,s[e.name]=o.value,n[1]&&t.map(n.slice(1),function(t){var e,n;~t.indexOf("=")?l+="&"+t:(e=t.split(":"),t=B(e[0]),n=B(e[1])||t,s[t]=o.$el.find(h(n)).val())}),s=t.param(s)+l,!o.must&&r.data&&r.data===s?r.result:("cors"!==u&&/^https?:/.test(c)&&!~c.indexOf(location.host)&&(i="jsonp"),t.ajax({url:c,type:d,data:s,dataType:i}))}},filter:function(t,e){var n=this.value,i=n.replace(e?new RegExp("["+e[0]+"]","gm"):z,"");i!==n&&this.setValue(i)}}),n.config=function(e,n){function i(t,e){"rules"===t?new o(e):"messages"===t?new a(e):t in K?K[t]=e:Q[t]=e}q(e)?t.each(e,i):W(e)&&i(e,n)},n.setTheme=function(e,n){q(e)?t.extend(!0,J,e):W(e)&&q(n)&&(J[e]=t.extend(J[e],n))},n.load=function(e){if(e){var i,o,a,r=document,s={},l=r.scripts[0];e.replace(/([^?=&]+)=([^&#]*)/g,function(t,e,n){s[e]=n}),i=s.dir||n.dir,n.css||""===s.css||(o=r.createElement("link"),o.rel="stylesheet",o.href=n.css=i+"jquery.validator.css",l.parentNode.insertBefore(o,l)),!n.local&&~e.indexOf("local")&&""!==s.local&&(n.local=(s.local||r.documentElement.lang||"en").replace("_","-"),n.pending=1,o=r.createElement("script"),o.src=i+"local/"+n.local+".js",a="onload"in o?"onload":"onreadystatechange",o[a]=function(){o.readyState&&!/loaded|complete/.test(o.readyState)||(o=o[a]=null,delete n.pending,t(window).triggerHandler("validatorready"))},l.parentNode.insertBefore(o,l))}},function(){for(var t,e,i=document.scripts,o=i.length,a=/(.*validator(?:\.min)?.js)(\?.*(?:local|css|dir)(?:=[\w\-]*)?)?/;o--&&!e;)t=i[o],e=(t.hasAttribute?t.src:t.getAttribute("src",4)||"").match(a);e&&(n.dir=e[1].split("/").slice(0,-1).join("/")+"/",n.load(e[2]))}(),t[g]=n}),function(t){"object"==typeof module&&module.exports?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define("validator-lang",["jquery"],t):t(jQuery)}(function(t){t.validator.config({rules:{digits:[/^\d+$/,"请填写数字"],letters:[/^[a-z]+$/i,"请填写字母"],date:[/^\d{4}-\d{2}-\d{2}$/,"请填写有效的日期，格式:yyyy-mm-dd"],time:[/^([01]\d|2[0-3])(:[0-5]\d){1,2}$/,"请填写有效的时间，00:00到23:59之间"],email:[/^[\w\+\-]+(\.[\w\+\-]+)*@[a-z\d\-]+(\.[a-z\d\-]+)*\.([a-z]{2,4})$/i,"请填写有效的邮箱"],url:[/^(https?|s?ftp):\/\/\S+$/i,"请填写有效的网址"],qq:[/^[1-9]\d{4,}$/,"请填写有效的QQ号"],IDcard:[/^\d{6}(19|2\d)?\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)?$/,"请填写正确的身份证号码"],tel:[/^(?:(?:0\d{2,3}[\- ]?[1-9]\d{6,7})|(?:[48]00[\- ]?[1-9]\d{6}))$/,"请填写有效的电话号码"],mobile:[/^1[3-9]\d{9}$/,"请填写有效的手机号"],zipcode:[/^\d{6}$/,"请检查邮政编码格式"],chinese:[/^[\u0391-\uFFE5]+$/,"请填写中文字符"],username:[/^\w{3,12}$/,"请填写3-12位数字、字母、下划线"],password:[/^[\S]{6,16}$/,"请填写6-16位字符，不能包含空格"],accept:function(e,n){if(!n)return!0;var i=n[0],o=t(e).val();return"*"===i||new RegExp(".(?:"+i+")$","i").test(o)||this.renderMsg("只接受{1}后缀的文件",i.replace(/\|/g,","))}},messages:{0:"此处",fallback:"{0}格式不正确",loading:"正在验证...",error:"网络异常",timeout:"请求超时",required:"{0}不能为空",remote:"{0}已被使用",integer:{"*":"请填写整数","+":"请填写正整数","+0":"请填写正整数或0","-":"请填写负整数","-0":"请填写负整数或0"},match:{eq:"{0}与{1}不一致",neq:"{0}与{1}不能相同",lt:"{0}必须小于{1}",gt:"{0}必须大于{1}",lte:"{0}不能大于{1}",gte:"{0}不能小于{1}"},range:{rg:"请填写{1}到{2}的数",gte:"请填写不小于{1}的数",lte:"请填写最大{1}的数",gtlt:"请填写{1}到{2}之间的数",gt:"请填写大于{1}的数",lt:"请填写小于{1}的数"},checked:{eq:"请选择{1}项",rg:"请选择{1}到{2}项",gte:"请至少选择{1}项",lte:"请最多选择{1}项"},length:{eq:"请填写{1}个字符",rg:"请填写{1}到{2}个字符",gte:"请至少填写{1}个字符",lte:"请最多填写{1}个字符",eq_2:"",rg_2:"",gte_2:"",lte_2:""}}});var e='<span class="n-arrow"><b>◆</b><i>◆</i></span>';t.validator.setTheme({simple_right:{formClass:"n-simple",msgClass:"n-right"},simple_bottom:{formClass:"n-simple",msgClass:"n-bottom"},yellow_top:{formClass:"n-yellow",msgClass:"n-top",msgArrow:e},yellow_right:{formClass:"n-yellow",msgClass:"n-right",msgArrow:e},yellow_right_effect:{formClass:"n-yellow",msgClass:"n-right",msgArrow:e,msgShow:function(t,e){var n=t.children();n.is(":animated")||("error"===e?n.css({left:"20px",opacity:0}).delay(100).show().stop().animate({
  left:"-4px",opacity:1},150).animate({left:"3px"},80).animate({left:0},80):n.css({left:0,opacity:1}).fadeIn(200))},msgHide:function(t,e){var n=t.children();n.stop().delay(100).show().animate({left:"20px",opacity:0},300,function(){t.hide()})}}})}),define("form",["jquery","bootstrap","upload","validator","validator-lang"],function(t,e,n,i,e){var o={config:{fieldlisttpl:'<dd class="form-inline"><input type="text" name="<%=name%>[<%=index%>][key]" class="form-control" value="<%=row.key%>" size="10" /> <input type="text" name="<%=name%>[<%=index%>][value]" class="form-control" value="<%=row.value%>" /> <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span></dd>'},events:{validator:function(e,n,i,a){e.is("form")&&(e.validator(t.extend({validClass:"has-success",invalidClass:"has-error",bindClassTo:".form-group",formClass:"n-default n-bootstrap",msgClass:"n-right",stopOnError:!0,display:function(e){return t(e).closest(".form-group").find(".control-label").text().replace(/\:/,"")},dataFilter:function(t){return 1===t.code?t.msg?{ok:t.msg}:"":t.msg},target:function(e){var n=t(e).data("target");if(n&&t(n).size()>0)return t(n);var i=t(e).closest(".form-group"),o=i.find("span.msg-box");return o.length?o:[]},valid:function(r){var s=this,l=t(".layer-footer [type=submit]",e);s.holdSubmit(!0),l.addClass("disabled");var c=o.api.submit(t(r),function(e,i){if(s.holdSubmit(!1),l.removeClass("disabled"),!1===t(this).triggerHandler("success.form",[e,i]))return!1;if("function"==typeof n&&!1===n.call(t(this),e,i))return!1;var o=i.hasOwnProperty("msg")&&""!==i.msg?i.msg:__("Operation completed");parent.Toastr.success(o),parent.$(".btn-refresh").trigger("click");var a=parent.Layer.getFrameIndex(window.name);return parent.Layer.close(a),!1},function(e,n){return s.holdSubmit(!1),!1!==t(this).triggerHandler("error.form",[e,n])&&(l.removeClass("disabled"),("function"!=typeof i||!1!==i.call(t(this),e,n))&&void 0)},a);return c||(s.holdSubmit(!1),l.removeClass("disabled")),!1}},e.data("validator-options")||{})),t(".layer-footer [type=submit],.fixed-footer [type=submit],.normal-footer [type=submit]",e).removeClass("disabled"),e.on("click",".layer-close",function(){var t=parent.Layer.getFrameIndex(window.name);return parent.Layer.close(t),!1}))},selectpicker:function(e){t(".selectpicker",e).size()>0&&require(["bootstrap-select","bootstrap-select-lang"],function(){t(".selectpicker",e).selectpicker(),t(e).on("reset",function(){setTimeout(function(){t(".selectpicker").selectpicker("refresh").trigger("change")},1)})})},selectpage:function(e){t(".selectpage",e).size()>0&&(require(["selectpage"],function(){t(".selectpage",e).selectPage({eAjaxSuccess:function(t){return t.list="undefined"!=typeof t.rows?t.rows:"undefined"!=typeof t.list?t.list:[],t.totalRow="undefined"!=typeof t.total?t.total:"undefined"!=typeof t.totalRow?t.totalRow:t.list.length,t}})}),t(document).on("change",".sp_hidden",function(){t(this).trigger("validate")}),t(document).on("change",".sp_input",function(){t(this).closest(".sp_container").find(".sp_hidden").trigger("change")}),t(e).on("reset",function(){setTimeout(function(){t(".selectpage",e).selectPageClear()},1)}))},cxselect:function(e){t("[data-toggle='cxselect']",e).size()>0&&require(["cxselect"],function(){t.cxSelect.defaults.jsonName="name",t.cxSelect.defaults.jsonValue="value",t.cxSelect.defaults.jsonSpace="data",t("[data-toggle='cxselect']",e).cxSelect()})},citypicker:function(e){t("[data-toggle='city-picker']",e).size()>0&&require(["citypicker"],function(){t(e).on("reset",function(){setTimeout(function(){t("[data-toggle='city-picker']").citypicker("refresh")},1)})})},datetimepicker:function(e){t(".datetimepicker",e).size()>0&&require(["bootstrap-datetimepicker"],function(){var n={format:"YYYY-MM-DD HH:mm:ss",icons:{time:"fa fa-clock-o",date:"fa fa-calendar",up:"fa fa-chevron-up",down:"fa fa-chevron-down",previous:"fa fa-chevron-left",next:"fa fa-chevron-right",today:"fa fa-history",clear:"fa fa-trash",close:"fa fa-remove"},showTodayButton:!0,showClose:!0};t(".datetimepicker",e).parent().css("position","relative"),t(".datetimepicker",e).datetimepicker(n).on("dp.change",function(e){t(this,document).trigger("changed")})})},daterangepicker:function(e){t(".datetimerange",e).size()>0&&require(["bootstrap-daterangepicker"],function(){var n={};n[__("Today")]=[Moment().startOf("day"),Moment().endOf("day")],n[__("Yesterday")]=[Moment().subtract(1,"days").startOf("day"),Moment().subtract(1,"days").endOf("day")],n[__("Last 7 Days")]=[Moment().subtract(6,"days").startOf("day"),Moment().endOf("day")],n[__("Last 30 Days")]=[Moment().subtract(29,"days").startOf("day"),Moment().endOf("day")],n[__("This Month")]=[Moment().startOf("month"),Moment().endOf("month")],n[__("Last Month")]=[Moment().subtract(1,"month").startOf("month"),Moment().subtract(1,"month").endOf("month")];var i={timePicker:!1,autoUpdateInput:!1,timePickerSeconds:!0,timePicker24Hour:!0,autoApply:!0,locale:{format:"YYYY-MM-DD HH:mm:ss",customRangeLabel:__("Custom Range"),applyLabel:__("Apply"),cancelLabel:__("Clear")},ranges:n},o=function(e,n){t(this.element).val(e.format(this.locale.format)+" - "+n.format(this.locale.format)),t(this.element).trigger("blur")};t(".datetimerange",e).each(function(){var e="function"==typeof t(this).data("callback")?t(this).data("callback"):o;t(this).on("apply.daterangepicker",function(t,n){e.call(n,n.startDate,n.endDate)}),t(this).on("cancel.daterangepicker",function(e,n){t(this).val("").trigger("blur")}),t(this).daterangepicker(t.extend(!0,i,t(this).data()),e)})})},plupload:function(t){o.events.faupload(t)},faupload:function(e){t(".plupload,.faupload",e).size()>0&&n.api.upload(t(".plupload,.faupload",e))},faselect:function(e){t(".faselect,.fachoose",e).size()>0&&t(".faselect,.fachoose",e).on("click",function(){var e=this,n=!!t(this).data("multiple")&&t(this).data("multiple"),i=t(this).data("mimetype")?t(this).data("mimetype"):"",o=t(this).data("admin-id")?t(this).data("admin-id"):"",a=t(this).data("user-id")?t(this).data("user-id"):"",r=t(this).data("url")?t(this).data("url"):"undefined"!=typeof Backend?"general/attachment/select":"user/attachment";return parent.Fast.api.open(r+"?element_id="+t(this).attr("id")+"&multiple="+n+"&mimetype="+i+"&admin_id="+o+"&user_id="+a,__("Choose"),{callback:function(n){var i=t("#"+t(e).attr("id")),o=t(i).data("maxcount"),a=t(i).data("input-id")?t(i).data("input-id"):"";if(o="undefined"!=typeof o?o:0,a&&n.multiple){var r=[],s=t("#"+a),l=t.trim(s.val());""!==l&&r.push(s.val()),r.push(n.url);var c=r.join(",");if(o>0){var d=""===l?0:l.split(/\,/).length,u=""!==n.url?n.url.split(/\,/):[],p=o-d;if(u.length>p)return Toastr.error(__("You can choose up to %d file%s",p)),!1}s.val(c).trigger("change").trigger("validate")}else t("#"+a).val(n.url).trigger("change").trigger("validate")}}),!1})},fieldlist:function(e){t(".fieldlist",e).size()>0&&require(["dragsort","template"],function(n,i){var a=function(n){var i={},o=t("textarea[name='"+n+"']",e),a=t(".fieldlist[data-name='"+n+"']"),r=a.data("template");t.each(t("input,select,textarea",a).serializeArray(),function(t,e){var n=/\[(\w+)\]\[(\w+)\]$/g,o=n.exec(e.name);return!o||(o[1]="x"+parseInt(o[1]),"undefined"==typeof i[o[1]]&&(i[o[1]]={}),void(i[o[1]][o[2]]=e.value))});var s=r?[]:{};t.each(i,function(t,e){e&&(r?s.push(e):""!=e.key&&(s[e.key]=e.value))}),o.val(JSON.stringify(s))};t(document).on("change keyup changed",".fieldlist input,.fieldlist textarea,.fieldlist select",function(){a(t(this).closest(".fieldlist").data("name"))}),t(".fieldlist",e).on("click",".btn-append,.append",function(e,n){var a=t(this).closest(".fieldlist"),r=a.data("tag")||"dd",s=a.data("index"),l=a.data("name"),c=a.data("template"),d=a.data();s=s?parseInt(s):0,a.data("index",s+1),n=n?n:{};var u={index:s,name:l,data:d,row:n},p=c?i(c,u):i.render(o.config.fieldlisttpl,u);t(p).insertBefore(t(r+":last",a)),t(this).trigger("fa.event.appendfieldlist",t(this).closest(r).prev())}),t(".fieldlist",e).on("click",".btn-remove",function(){var e=t(this).closest(".fieldlist"),n=e.data("tag")||"dd";t(this).closest(n).remove(),a(e.data("name"))}),t(".fieldlist",e).each(function(){var n=this,i=t(this).data("tag")||"dd";t(this).dragsort({itemSelector:i,dragSelector:".btn-dragsort",dragEnd:function(){a(t(this).closest(".fieldlist").data("name"))},placeHolderTemplate:t("<"+i+"/>")});var o=t("textarea[name='"+t(this).data("name")+"']",e);if(""==o.val())return!0;var r=t(this).data("template"),s={};try{s=JSON.parse(o.val())}catch(t){}t.each(s,function(e,i){t(".btn-append,.append",n).trigger("click",r?i:{key:e,value:i})})})})},switcher:function(e){e.on("click","[data-toggle='switcher']",function(){if(t(this).hasClass("disabled"))return!1;var e=t.proxy(function(){var e=t(this).prev("input");if(e=t(this).data("input-id")?t("#"+t(this).data("input-id")):e,e.size()>0){var n=t(this).data("yes"),i=t(this).data("no");e.val()==n?(e.val(i),t("i",this).addClass("fa-flip-horizontal text-gray")):(e.val(n),t("i",this).removeClass("fa-flip-horizontal text-gray")),e.trigger("change")}},this);return"undefined"!=typeof t(this).data("confirm")?Layer.confirm(t(this).data("confirm"),function(t){e(),Layer.close(t)}):e(),!1})},bindevent:function(t){},slider:function(e){t(".slider",e).size()>0&&require(["bootstrap-slider"],function(){t(".slider").removeClass("hidden").css("width",function(e,n){return t(this).parents(".form-control").width()}).slider().on("slide",function(e){var n=t(this).data();"undefined"!=typeof n.unit&&t(this).parents(".form-control").siblings(".value").text(e.value+n.unit)})})}},api:{submit:function(e,n,i,o){if(0===e.size())return Toastr.error("表单未初始化完成,无法提交"),!1;if("function"==typeof o&&!1===o.call(e,n,i))return!1;var a=e.attr("method")?e.attr("method").toUpperCase():"GET";a=!a||"GET"!==a&&"POST"!==a?"GET":a,url=e.attr("action"),url=url?url:location.href;var r={},s=t("[name$='[]']",e);if(s.size()>0){var l=e.serializeArray().map(function(e){return t(e).prop("name")});t.each(s,function(e,n){l.indexOf(t(this).prop("name"))<0&&(r[t(this).prop("name")]="")})}return Fast.api.ajax({type:a,url:url,data:e.serialize()+(Object.keys(r).length>0?"&"+t.param(r):""),dataType:"json",complete:function(e){var n=e.getResponseHeader("__token__");n&&t("input[name='__token__']").val(n)}},function(i,o){if(t(".form-group",e).removeClass("has-feedback has-success has-error"),i&&"object"==typeof i&&("undefined"!=typeof i.token&&t("input[name='__token__']").val(i.token),"undefined"!=typeof i.callback&&"function"==typeof i.callback&&i.callback.call(e,i)),"function"==typeof n&&!1===n.call(e,i,o))return!1},function(n,o){if(n&&"object"==typeof n&&"undefined"!=typeof n.token&&t("input[name='__token__']").val(n.token),"function"==typeof i&&!1===i.call(e,n,o))return!1}),!0},bindevent:function(e,n,i,a){e="object"==typeof e?e:t(e);var r=o.events;r.bindevent(e),r.validator(e,n,i,a),r.selectpicker(e),r.daterangepicker(e),r.selectpage(e),r.cxselect(e),r.citypicker(e),r.datetimepicker(e),r.faupload(e),r.faselect(e),r.fieldlist(e),r.slider(e),r.switcher(e)},custom:{}}};return o}),!function(t){"use strict";var e=[],n=t.fn.bootstrapTable.utils.sprintf,i=function(e,i){var a=o(e,i),r=n('<div class="commonsearch-table %s">',i.options.searchFormVisible?"":"hidden");r+=a,r+="</div>",i.$container.prepend(t(r)),i.$commonsearch=t(".commonsearch-table",i.$container);var s=t("form.form-commonsearch",i.$commonsearch);require(["form"],function(t){t.api.bindevent(s),s.validator("destroy")}),s.on("submit",function(t){return t.preventDefault(),i.onCommonSearch(),!1}),s.on("click","button[type=reset]",function(t){s[0].reset(),setTimeout(function(){i.onCommonSearch()},0)})},o=function(i,o){if(o.options.searchFormTemplate)return Template(o.options.searchFormTemplate,{columns:i,table:o});var s=[];s.push(n('<form class="form-horizontal form-commonsearch" novalidate method="post" action="%s" >',o.options.actionForm)),s.push("<fieldset>"),o.options.titleForm.length>0&&s.push(n("<legend>%s</legend>",o.options.titleForm)),s.push('<div class="row">');for(var l in i){var c=i[l];if(!c.checkbox&&"operate"!==c.field&&c.searchable&&c.operate!==!1){var d=Fast.api.query(c.field),u=Fast.api.query(c.field+"-operate"),p=o.options.renderDefault&&("undefined"==typeof c.renderDefault||c.renderDefault);c.defaultValue=p&&d?d:"undefined"==typeof c.defaultValue?"":c.defaultValue,c.operate=p&&u?u:"undefined"==typeof c.operate?"=":c.operate,e.push(c),s.push('<div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">'),s.push(n('<label for="%s" class="control-label col-xs-4">%s</label>',c.field,c.title)),s.push('<div class="col-xs-8">'),c.operate=c.operate?c.operate.toUpperCase():"=",s.push(n('<input type="hidden" class="form-control operate" name="%s-operate" data-name="%s" value="%s" readonly>',c.field,c.field,c.operate));var f="undefined"==typeof c.addClass?"undefined"==typeof c.addclass?"form-control":"form-control "+c.addclass:"form-control "+c.addClass,h="undefined"==typeof c.extend?"":c.extend,m="undefined"==typeof c.style?"":n('style="%s"',c.style);if(h="undefined"!=typeof c.data&&""==h?c.data:h,c.searchList)if("function"==typeof c.searchList)s.push(c.searchList.call(this,c));else{var g=[n('<option value="">%s</option>',o.options.formatCommonChoose())];"object"==typeof c.searchList&&"function"==typeof c.searchList.then?!function(e,n){t.when(e.searchList).done(function(i){var o=[];i.data&&i.data.searchlist&&t.isArray(i.data.searchlist)?o=i.data.searchlist:i.constructor!==Array&&i.constructor!==Object||(o=i);var a=r(o,e,n);t("form.form-commonsearch select[name='"+e.field+"']",n.$container).html(a.join("")).trigger("change")})}(c,o):g=r(c.searchList,c,o),s.push(n('<select class="%s" name="%s" %s %s>%s</select>',f,c.field,m,h,g.join("")))}else{var y="undefined"==typeof c.placeholder?c.title:c.placeholder,v="undefined"==typeof c.type?"text":c.type,b="undefined"==typeof c.defaultValue?"":c.defaultValue;if(/BETWEEN$/.test(c.operate)){var x=b.toString().match(/\|/)?b.split("|"):["",""],w=y.toString().match(/\|/)?y.split("|"):[y,y];s.push('<div class="row row-between">'),s.push(n('<div class="col-xs-6"><input type="%s" class="%s" name="%s" value="%s" placeholder="%s" id="%s-min" data-index="%s" %s %s></div>',v,f,c.field,x[0],w[0],c.field,l,m,h)),s.push(n('<div class="col-xs-6"><input type="%s" class="%s" name="%s" value="%s" placeholder="%s" id="%s-max" data-index="%s" %s %s></div>',v,f,c.field,x[1],w[1],c.field,l,m,h)),s.push("</div>")}else s.push(n('<input type="%s" class="%s" name="%s" value="%s" placeholder="%s" id="%s" data-index="%s" %s %s>',v,f,c.field,b,y,c.field,l,m,h))}s.push("</div>"),s.push("</div>")}}return s.push('<div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">'),s.push(a(o).join("")),s.push("</div>"),s.push("</div>"),s.push("</fieldset>"),s.push("</form>"),s.join("")},a=function(t){var e=[],i=t.options.formatCommonSubmitButton(),o=t.options.formatCommonResetButton();return e.push('<div class="col-sm-8 col-xs-offset-4">'),e.push(n('<button type="submit" class="btn btn-success" formnovalidate>%s</button> ',i)),e.push(n('<button type="reset" class="btn btn-default" >%s</button> ',o)),e.push("</div>"),e},r=function(e,i,o){var a=e.constructor===Array,r=[];return r.push(n('<option value="">%s</option>',o.options.formatCommonChoose())),t.each(e,function(t,e){e.constructor===Object?(t=e.id,e=e.name):t=a?e:t,r.push(n("<option value='"+t+"' %s>"+e+"</option>",t==i.defaultValue?"selected":""))}),r},s=function(t){return!(!t.options.commonSearch||"server"!=t.options.sidePagination||!t.options.url)},l=function(n,i){var o={},a={},r="";return t("form.form-commonsearch .operate",n.$commonsearch).each(function(s){var l=t(this).data("name"),c=t(this).is("select")?t("option:selected",this).val():t(this).val().toUpperCase(),d=t("[name='"+l+"']",n.$commonsearch);if(0==d.size())return!0;var u=e[s],p=!n.options.searchFormTemplate&&u&&"function"==typeof u.process?u.process:null;if(d.size()>1)if(/BETWEEN$/.test(c)){var f=t.trim(t("[name='"+l+"']:first",n.$commonsearch).val()),h=t.trim(t("[name='"+l+"']:last",n.$commonsearch).val());f.length||h.length?(p&&(f=p(f,"begin"),h=p(h,"end")),r=f+","+h):r="",t("[name='"+l+"']:first",n.$commonsearch).hasClass("datetimepicker")&&(c="RANGE")}else r=t("[name='"+l+"']:checked",n.$commonsearch).val(),r=p?p(r):r;else r=p?p(d.val()):d.val();return!(!i||!(""==r||null==r||t.isArray(r)&&0==r.length)||c.match(/null/i))||(o[l]=c,void(a[l]=r))}),{op:o,filter:a}},c=function(e,n,i){return e.filter="Object"==typeof e.filter?e.filter:e.filter?JSON.parse(e.filter):{},e.op="Object"==typeof e.op?e.op:e.op?JSON.parse(e.op):{},e.filter=t.extend({},e.filter,n.filter),e.op=t.extend({},e.op,n.op),i&&t.each(e.filter,function(n,i){(""==i||null==i||t.isArray(i)&&0==i.length)&&!e.op[n].match(/null/i)&&(delete e.filter[n],delete e.op[n])}),e.filter=JSON.stringify(e.filter),e.op=JSON.stringify(e.op),e};t.extend(t.fn.bootstrapTable.defaults,{commonSearch:!1,titleForm:"Common search",actionForm:"",searchFormTemplate:"",searchFormVisible:!0,searchClass:"searchit",showSearch:!0,renderDefault:!0,onCommonSearch:function(t,e){return!1},onPostCommonSearch:function(t){return!1}}),t.extend(t.fn.bootstrapTable.defaults.icons,{commonSearchIcon:"glyphicon-search"}),t.extend(t.fn.bootstrapTable.Constructor.EVENTS,{"common-search.bs.table":"onCommonSearch","post-common-search.bs.table":"onPostCommonSearch"}),t.extend(t.fn.bootstrapTable.locales[t.fn.bootstrapTable.defaults.locale],{formatCommonSearch:function(){return"Common search"},formatCommonSubmitButton:function(){return"Submit"},formatCommonResetButton:function(){return"Reset"},formatCommonCloseButton:function(){return"Close"},formatCommonChoose:function(){return"Choose"}}),t.extend(t.fn.bootstrapTable.defaults,t.fn.bootstrapTable.locales);var d=t.fn.bootstrapTable.Constructor,u=d.prototype.initHeader,p=d.prototype.initToolbar,f=d.prototype.load,h=d.prototype.initSearch;d.prototype.initHeader=function(){u.apply(this,Array.prototype.slice.apply(arguments)),this.$header.find("th[data-field]").each(function(e){var n=t(this).data();"undefined"!=typeof n.width&&t(this).css("max-width",n.width)}),this.options.stateField=this.header.stateField},d.prototype.initToolbar=function(){if(p.apply(this,Array.prototype.slice.apply(arguments)),s(this)){var e=this,o=[];e.options.showSearch&&(o.push(n('<div class="columns-%s pull-%s" style="margin-top:10px;margin-bottom:10px;">',this.options.buttonsAlign,this.options.buttonsAlign)),o.push(n('<button class="btn btn-default%s" type="button" name="commonSearch" title="%s">',void 0===e.options.iconSize?"":" btn-"+e.options.iconSize,e.options.formatCommonSearch())),o.push(n('<i class="%s %s"></i>',e.options.iconsPrefix,e.options.icons.commonSearchIcon)),o.push("</button></div>")),e.$toolbar.find(".pull-right").size()>0?t(o.join("")).insertBefore(e.$toolbar.find(".pull-right:first")):e.$toolbar.append(o.join("")),i(e.columns,e),e.$toolbar.find('button[name="commonSearch"]').off("click").on("click",function(){e.$commonsearch.toggleClass("hidden")}),e.$container.on("click","."+e.options.searchClass,function(){var n=t("form [name='"+t(this).data("field")+"']",e.$commonsearch);if(n.size()>0){var i=t(this).data("value");n.is("select")?t("option[value='"+i+"']",n).prop("selected",!0):n.size()>1?t("form [name='"+t(this).data("field")+"'][value='"+i+"']",e.$commonsearch).prop("checked",!0):n.val(i+""),n.trigger("change"),t("form",e.$commonsearch).trigger("submit")}});var a=e.options.queryParams;this.options.queryParams=function(t){return a(c(t,l(e,!0)))},this.trigger("post-common-search",e)}},d.prototype.onCommonSearch=function(){var t=l(this);this.trigger("common-search",this,t),this.options.pageNumber=1,this.refresh({})},d.prototype.load=function(t){f.apply(this,Array.prototype.slice.apply(arguments)),!s(this)},d.prototype.initSearch=function(){if(h.apply(this,Array.prototype.slice.apply(arguments)),s(this)){var e=this,n=t.isEmptyObject(this.filterColumnsPartial)?null:this.filterColumnsPartial;this.data=n?t.grep(this.data,function(i,o){for(var a in n){var r=n[a].toLowerCase(),s=i[a];if(s=t.fn.bootstrapTable.utils.calculateObjectValue(e.header,e.header.formatters[t.inArray(a,e.header.fields)],[s,i,o],s),t.inArray(a,e.header.fields)===-1||"string"!=typeof s&&"number"!=typeof s||(s+"").toLowerCase().indexOf(r)===-1)return!1}return!0}):this.data}}}(jQuery),define("bootstrap-table-commonsearch",["bootstrap-table"],function(t){return function(){var e;return e||t.$.fn.bootstrapTable.defaults}}(this)),!function(t){"use strict";t.extend(t.fn.bootstrapTable.defaults,{templateView:!1,templateFormatter:"itemtpl",templateParentClass:"row row-flex",templateTableClass:"table-template"});var e=t.fn.bootstrapTable.Constructor,n=e.prototype.initContainer,i=e.prototype.initBody,o=e.prototype.initRow;e.prototype.initContainer=function(){n.apply(this,Array.prototype.slice.apply(arguments));var t=this;t.options.templateView&&(t.options.cardView=!0)},e.prototype.initBody=function(){var e=this;t.extend(e.options,{showHeader:!e.options.templateView&&t.fn.bootstrapTable.defaults.showHeader,showFooter:!e.options.templateView&&t.fn.bootstrapTable.defaults.showFooter}),t(e.$el).toggleClass(e.options.templateTableClass,e.options.templateView),i.apply(this,Array.prototype.slice.apply(arguments)),e.options.templateView&&t("> *:not(.no-records-found)",e.$body).wrapAll(t("<div />").addClass(e.options.templateParentClass))},e.prototype.initRow=function(t,e,n,i){var a=this;if(!a.options.templateView)return o.apply(a,Array.prototype.slice.apply(arguments));var r="";if("function"==typeof a.options.templateFormatter)r=a.options.templateFormatter.call(a,t,e,n);else{var s=require("template");r=s(a.options.templateFormatter,{item:t,i:e,data:n})}return r}}(jQuery),define("bootstrap-table-template",["bootstrap-table","template"],function(t){return function(){var e;return e||t.$.fn.bootstrapTable.defaults}}(this)),function(t){"use strict";var e=t.fn.bootstrapTable.utils.sprintf;t.extend(t.fn.bootstrapTable.defaults,{showJumpto:!1,exportOptions:{}}),t.extend(t.fn.bootstrapTable.locales,{formatJumpto:function(){return"GO"}}),t.extend(t.fn.bootstrapTable.defaults,t.fn.bootstrapTable.locales);var n=t.fn.bootstrapTable.Constructor,i=n.prototype.initPagination;n.prototype.initPagination=function(){if(this.showToolbar=this.options.showExport,i.apply(this,Array.prototype.slice.apply(arguments)),this.options.showJumpto){var n=this,o=this.$pagination.find("ul.pagination"),a=o.find("li.jumpto");a.length||(a=t(['<li class="jumpto">','<input type="text" class="form-control">','<button class="btn'+e(" btn-%s",this.options.buttonsClass)+e(" btn-%s",this.options.iconSize)+'" title="'+this.options.formatJumpto()+'"  type="button">'+this.options.formatJumpto(),"</button>","</li>"].join("")).appendTo(o),a.find("button").click(function(){n.selectPage(parseInt(a.find("input").val()))}))}}}(jQuery),define("bootstrap-table-jumpto",["bootstrap-table"],function(t){return function(){var e;return e||t.$.fn.bootstrapTable.defaults}}(this)),function(t){"use strict";function e(t){var e=0,a=0,r=0,s=0;return"detail"in t&&(a=t.detail),"wheelDelta"in t&&(a=-t.wheelDelta/120),"wheelDeltaY"in t&&(a=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=a,a=0),r=e*n,s=a*n,"deltaY"in t&&(s=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||s)&&t.deltaMode&&(1===t.deltaMode?(r*=i,s*=i):(r*=o,s*=o)),r&&!e&&(e=r<1?-1:1),s&&!a&&(a=s<1?-1:1),{spinX:e,spinY:a,pixelX:r,pixelY:s}}var n=10,i=40,o=800,a=null,r=function(){if(null===a){var e=t("<p/>").addClass("fixed-table-scroll-inner"),n=t("<div/>").addClass("fixed-table-scroll-outer"),i=void 0,o=void 0;n.append(e),t("body").append(n),i=e[0].offsetWidth,n.css("overflow","scroll"),o=e[0].offsetWidth,i===o&&(o=n[0].clientWidth),n.remove(),a=i-o}return a},s=function(t){return t[0].scrollHeight>t[0].clientHeight?15:0};t.extend(t.fn.bootstrapTable.defaults,{fixedColumns:!1,fixedNumber:0,fixedRightNumber:0});var l=t.fn.bootstrapTable.Constructor,c=l.prototype.initBody,d=l.prototype.initContainer,u=l.prototype.trigger,p=l.prototype.hideLoading,f=l.prototype.updateSelected;l.prototype.fixedColumnsSupported=function(){var t=this;return t.options.fixedColumns&&!t.options.detailView&&!t.options.cardView},l.prototype.initFixedContainer=function(){this.fixedColumnsSupported()&&(this.options.fixedNumber&&(0==this.$tableContainer.find(".fixed-columns").size()&&this.$tableContainer.append('<div class="fixed-columns"></div>'),this.$fixedColumns=this.$tableContainer.find(".fixed-columns")),this.options.fixedRightNumber&&(0==this.$tableContainer.find(".fixed-columns-right").size()&&this.$tableContainer.append('<div class="fixed-columns-right"></div>'),this.$fixedColumnsRight=this.$tableContainer.find(".fixed-columns-right")))},l.prototype.initContainer=function(){d.apply(this,Array.prototype.slice.apply(arguments)),this.initFixedContainer()},l.prototype.initBody=function(){c.apply(this,Array.prototype.slice.apply(arguments)),this.fixedColumnsSupported()&&(this.options.showHeader&&this.options.height||(this.initFixedColumnsBody(),this.initFixedColumnsEvents()))},l.prototype.trigger=function(){var t=this;u.apply(this,Array.prototype.slice.apply(arguments)),"pre-body"===arguments[0]&&this.options.cardView&&this.$tableBody.css("height","auto"),"toggle"===arguments[0]&&(arguments[1]?(this.$tableBody.css("height","auto"),this.$fixedColumns&&this.$fixedColumns.hide(),this.$fixedColumnsRight&&this.$fixedColumnsRight.hide()):(this.$tableBody.css("height","100%"),this.$fixedColumns&&this.$fixedColumns.show(),this.$fixedColumnsRight&&this.$fixedColumnsRight.show(),this.$fixedHeaderRight.scrollLeft(this.$tableBody.find("table").width()),this.$fixedBodyRight.scrollLeft(this.$tableBody.find("table").width()))),t.fixedColumnsSupported()&&("post-header"===arguments[0]?this.initFixedColumnsHeader():"scroll-body"===arguments[0]?(this.needFixedColumns&&this.options.fixedNumber&&this.$fixedBody.scrollTop(this.$tableBody.scrollTop()),this.needFixedColumns&&this.options.fixedRightNumber&&this.$fixedBodyRight.scrollTop(this.$tableBody.scrollTop())):"load-success"===arguments[0]&&this.hideLoading())},l.prototype.updateSelected=function(){var e=this;f.apply(this,Array.prototype.slice.apply(arguments)),this.fixedColumnsSupported()&&this.$tableBody.find("tr").each(function(n,i){var o=t(i),a=o.data("index"),r=o.attr("class"),s='[name="'+e.options.selectItemName+'"]',l=o.find(s);if("undefined"!=typeof a){var c=function(t,n){var i=n.find('tr[data-index="'+a+'"]');i.attr("class",r),l.length&&i.find(s).prop("checked",l.prop("checked")),e.$selectAll.length&&t.add(n).find('[name="btSelectAll"]').prop("checked",e.$selectAll.prop("checked"))};e.$fixedBody&&e.options.fixedNumber&&c(e.$fixedHeader,e.$fixedBody),e.$fixedBodyRight&&e.options.fixedRightNumber&&c(e.$fixedHeaderRight,e.$fixedBodyRight)}})},l.prototype.hideLoading=function(){p.apply(this,Array.prototype.slice.apply(arguments)),this.needFixedColumns&&this.options.fixedNumber&&this.$fixedColumns.find(".fixed-table-loading").hide(),this.needFixedColumns&&this.options.fixedRightNumber&&this.$fixedColumnsRight.find(".fixed-table-loading").hide()},l.prototype.initFixedColumnsHeader=function(){var t=this;this.options.height?this.needFixedColumns=this.$tableHeader.outerWidth(!0)<this.$tableHeader.find("table").outerWidth(!0):this.needFixedColumns=this.$tableBody.outerWidth(!0)<this.$tableBody.find("table").outerWidth(!0);var e=function(e,n){return e.find(".fixed-table-header").remove(),e.append(t.$tableHeader.clone(!0)),e.find(".fixed-table-header").css("margin-right",""),e.css({width:t.getFixedColumnsWidth(n)}),e.find(".fixed-table-header")};this.needFixedColumns&&this.options.fixedNumber?(this.$fixedHeader=e(this.$fixedColumns),this.$fixedHeader.css("margin-right","")):this.$fixedColumns&&this.$fixedColumns.html("").css("width",""),this.needFixedColumns&&this.options.fixedRightNumber?(this.$fixedHeaderRight=e(this.$fixedColumnsRight,!0),this.$fixedHeaderRight.scrollLeft(this.$fixedHeaderRight.find("table").width())):this.$fixedColumnsRight&&this.$fixedColumnsRight.html("").css("width",""),this.initFixedColumnsBody(),this.initFixedColumnsEvents()},l.prototype.initFixedColumnsBody=function(){var e=this,n=function(n,i){n.find(".fixed-table-body").remove(),n.append(e.$tableBody.clone(!0));var o=n.find(".fixed-table-body"),a=e.$tableBody.get(0),s=a.scrollWidth>a.clientWidth?r():0,l=t(".fixed-table-pagination").height();"undefined"!=typeof e.options.height&&(l=0);var c=e.$tableContainer.outerHeight(!0)-s-l+1;return n.css({height:c}),o.css({height:c-i.height()}),o};this.needFixedColumns&&this.options.fixedNumber&&(this.$fixedBody=n(this.$fixedColumns,this.$fixedHeader)),this.needFixedColumns&&this.options.fixedRightNumber&&(this.$fixedBodyRight=n(this.$fixedColumnsRight,this.$fixedHeaderRight),this.$fixedBodyRight.scrollLeft(this.$fixedBodyRight.find("table").width()),this.$fixedBodyRight.css("overflow-y","hidden"))},l.prototype.getFixedColumnsWidth=function(t){var e=this.getVisibleFields(),n=0,i=this.options.fixedNumber;t&&(e=e.reverse(),i=this.options.fixedRightNumber,this.$fixedColumnsRight.css("right",s(this.$tableBody)));for(var o=0;o<i;o++)n+=this.$header.find('th[data-field="'+e[o]+'"]').outerWidth();return n+1},l.prototype.initFixedColumnsEvents=function(){var n=this,i=function(e,i){var o='tr[data-index="'+t(e.currentTarget).data("index")+'"]',a=n.$tableBody.find(o);n.$fixedBody&&(a=a.add(n.$fixedBody.find(o))),n.$fixedBodyRight&&(a=a.add(n.$fixedBodyRight.find(o))),a.css("background-color",i?t(e.currentTarget).css("background-color"):"")};this.$tableBody.find("tr").hover(function(t){i(t,!0)},function(t){i(t,!1)});var o="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,a=o?"DOMMouseScroll":"mousewheel",r=function(t,i){var o=e(t),a=Math.ceil(o.pixelY),r=n.$tableBody.scrollTop()+a;(a<0&&r>0||a>0&&r<i.scrollHeight-i.clientHeight)&&t.preventDefault(),n.$tableBody.scrollTop(r),n.$fixedBody&&n.$fixedBody.scrollTop(r),n.$fixedBodyRight&&n.$fixedBodyRight.scrollTop(r)};this.needFixedColumns&&this.options.fixedNumber&&(this.$fixedBody.find("tr").hover(function(t){i(t,!0)},function(t){i(t,!1)}),this.$fixedBody[0].addEventListener(a,function(t){r(t,n.$fixedBody[0])})),t("div.fixed-table-body").off("scroll"),this.$tableBody.off("scroll").on("scroll",function(t){n.$tableHeader.scrollLeft(0),n.$tableBody.scrollLeft()>0&&(n.$tableHeader.scrollLeft(n.$tableBody.scrollLeft()),n.options.showFooter&&!n.options.cardView&&n.$tableFooter.scrollLeft(n.$tableBody.scrollLeft()));var e=n.$tableBody.scrollTop();n.$fixedBody&&n.$fixedBody.scrollTop(e),n.$fixedBodyRight&&n.$fixedBodyRight.scrollTop(e)}),this.needFixedColumns&&this.options.fixedRightNumber&&(this.$fixedBodyRight.find("tr").hover(function(t){i(t,!0)},function(t){i(t,!1)}),this.$fixedBodyRight[0].addEventListener(a,function(t){r(t,n.$fixedBodyRight[0])}),this.$fixedBody&&this.$fixedBody.find('input[name="'+this.options.selectItemName+'"]').off("click").on("click",function(e){e.stopImmediatePropagation();var i=t(e.target).data("index");t(n.$selectItem[i]).trigger("click")})),this.options.filterControl&&t(this.$fixedColumns).off("keyup change").on("keyup change",function(e){var i=t(e.target),o=i.val(),a=i.parents("th").data("field"),r=n.$header.find('th[data-field="'+a+'"]');if(i.is("input"))r.find("input").val(o);else if(i.is("select")){var s=r.find("select");s.find("option[selected]").removeAttr("selected"),s.find('option[value="'+o+'"]').attr("selected",!0)}n.triggerSearch()})}}(jQuery),define("bootstrap-table-fixed-columns",["bootstrap-table"],function(t){return function(){var e;return e||t.$.fn.bootstrapTable.defaults}}(this)),define("table",["jquery","bootstrap","moment","moment/locale/zh-cn","bootstrap-table","bootstrap-table-lang","bootstrap-table-export","bootstrap-table-commonsearch","bootstrap-table-template","bootstrap-table-jumpto","bootstrap-table-fixed-columns"],function(t,e,n){
  var i={list:{},defaults:{url:"",sidePagination:"server",method:"get",toolbar:".toolbar",search:!0,cache:!1,commonSearch:!0,searchFormVisible:!1,titleForm:"",idTable:"commonTable",showExport:!0,exportDataType:"all",exportTypes:["json","xml","csv","txt","doc","excel"],exportOptions:{fileName:"export_"+n().format("YYYY-MM-DD"),ignoreColumn:[0,"operate"]},pageSize:localStorage.getItem("pagesize")||10,pageList:[10,15,20,25,50,"All"],pagination:!0,clickToSelect:!0,dblClickToEdit:!0,singleSelect:!1,showRefresh:!1,showJumpto:!0,locale:"zh-cn"==Config.language?"zh-CN":"en-US",showToggle:!0,showColumns:!0,pk:"id",sortName:"id",sortOrder:"desc",paginationFirstText:__("First"),paginationPreText:__("Previous"),paginationNextText:__("Next"),paginationLastText:__("Last"),cardView:!1,checkOnInit:!0,escape:!0,selectedIds:[],selectedData:[],extend:{index_url:"",add_url:"",edit_url:"",del_url:"",import_url:"",multi_url:"",dragsort_url:"ajax/weigh"}},columnDefaults:{align:"center",valign:"middle"},config:{checkboxtd:"tbody>tr>td.bs-checkbox",toolbar:".toolbar",refreshbtn:".btn-refresh",addbtn:".btn-add",editbtn:".btn-edit",delbtn:".btn-del",importbtn:".btn-import",multibtn:".btn-multi",disabledbtn:".btn-disabled",editonebtn:".btn-editone",restoreonebtn:".btn-restoreone",destroyonebtn:".btn-destroyone",restoreallbtn:".btn-restoreall",destroyallbtn:".btn-destroyall",dragsortfield:"weigh"},button:{edit:{name:"edit",icon:"fa fa-pencil",title:__("Edit"),extend:'data-toggle="tooltip"',classname:"btn btn-xs btn-success btn-editone"},del:{name:"del",icon:"fa fa-trash",title:__("Del"),extend:'data-toggle="tooltip"',classname:"btn btn-xs btn-danger btn-delone"},dragsort:{name:"dragsort",icon:"fa fa-arrows",title:__("Drag to sort"),extend:'data-toggle="tooltip"',classname:"btn btn-xs btn-primary btn-dragsort"}},api:{init:function(e,n,o){e=e?e:{},n=n?n:{},o=o?o:{},navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(i.defaults.cardView=!0),t.fn.bootstrapTable.Constructor.prototype.getSelectItem=function(){return this.$selectItem},t.extend(!0,t.fn.bootstrapTable.defaults,i.defaults,e),t.extend(t.fn.bootstrapTable.columnDefaults,i.columnDefaults,n),t.extend(t.fn.bootstrapTable.locales[i.defaults.locale],{formatCommonSearch:function(){return __("Common search")},formatCommonSubmitButton:function(){return __("Submit")},formatCommonResetButton:function(){return __("Reset")},formatCommonCloseButton:function(){return __("Close")},formatCommonChoose:function(){return __("Choose")},formatJumpto:function(){return __("Go")}},o),"undefined"!=typeof e.exportTypes&&(t.fn.bootstrapTable.defaults.exportTypes=e.exportTypes)},bindevent:function(e){var n=e.closest(".bootstrap-table"),o=e.bootstrapTable("getOptions"),a=t(o.toolbar,n),r=t(".btn-selected-tips",n);0===r.size()&&(r=t('<a href="javascript:" class="btn btn-warning-light btn-selected-tips hide" data-animation="false" data-toggle="tooltip" data-title="'+__("Click to uncheck all")+'"><i class="fa fa-info-circle"></i> '+__("Multiple selection mode: %s checked","<b>0</b>")+"</a>").appendTo(a)),r.off("click").on("click",function(t){e.trigger("uncheckbox"),e.bootstrapTable("refresh")}),e.on("uncheckbox",function(t,e,n){o.selectedIds=[],o.selectedData=[],r.tooltip("hide"),r.addClass("hide")}),e.on("load-error.bs.table",function(t,e,n){0!==n.status&&Toastr.error(__("Unknown data format"))}),e.on("load-success.bs.table",function(t,e){"undefined"==typeof e.rows&&"undefined"!=typeof e.code&&Toastr.error(e.msg)}),e.on("refresh.bs.table",function(e,n,o){t(i.config.refreshbtn,a).find(".fa").addClass("fa-spin")}),e.on("page-change.bs.table",function(t,e,n){isNaN(n)||localStorage.setItem("pagesize",n)}),e.on("search.bs.table common-search.bs.table",function(t,n,i){e.trigger("uncheckbox")}),o.dblClickToEdit&&e.on("dbl-click-row.bs.table",function(e,n,o,a){t(i.config.editonebtn,o).trigger("click")}),e.on("pre-body.bs.table",function(e,n){o.maintainSelected&&t.each(n,function(e,n){n[o.stateField]=t.inArray(n[o.pk],o.selectedIds)>-1})}),e.on("post-body.bs.table",function(n,o){t(i.config.refreshbtn,a).find(".fa").removeClass("fa-spin"),t(i.config.checkboxtd+":first",e).find("input[type='checkbox'][data-index]").size()>0&&require(["drag","drop"],function(){var n=t(i.config.checkboxtd,e);n.drag("start",function(e,n){return t('<div class="selection" />').css("opacity",.65).appendTo(document.body)}).drag(function(e,n){t(n.proxy).css({top:Math.min(e.pageY,n.startY),left:Math.min(e.pageX,n.startX),height:Math.abs(e.pageY-n.startY),width:Math.abs(e.pageX-n.startX)})}).drag("end",function(e,n){t(n.proxy).remove()}),n.drop("start",function(){i.api.toggleattr(this)}).drop(function(){i.api.toggleattr(this)}).drop("end",function(){i.api.toggleattr(this)}),t.drop({multi:!0})})}),e.on("check.bs.table uncheck.bs.table check-all.bs.table uncheck-all.bs.table post-body.bs.table",function(n){var s=e.bootstrapTable("getData").map(function(t){return t[o.pk]}),l=i.api.selectedids(e,!0),c=i.api.selecteddata(e,!0);o.maintainSelected?(o.selectedIds=o.selectedIds.filter(function(e,n,i){return t.inArray(e,s)===-1}).concat(l),o.selectedData=o.selectedData.filter(function(e,n,i){return t.inArray(e[o.pk],s)===-1}).concat(c),o.selectedIds.length>l.length?(t("b",r).text(o.selectedIds.length),r.removeClass("hide")):r.addClass("hide")):(o.selectedIds=l,o.selectedData=c),t(i.config.disabledbtn,a).toggleClass("disabled",!o.selectedIds.length)}),t('.panel-heading [data-field] a[data-toggle="tab"]').on("shown.bs.tab",function(n){var i=t(this).closest("[data-field]").data("field"),o=t(this).data("value"),a=t("[name='"+i+"']",e.closest(".bootstrap-table").find(".commonsearch-table"));return"SELECT"==a.prop("tagName")?t("option[value='"+o+"']",a).prop("selected",!0):a.val(o),e.trigger("uncheckbox"),e.bootstrapTable("refresh",{pageNumber:1}),!1}),a.on("click",i.config.refreshbtn,function(){e.bootstrapTable("refresh")}),a.on("click",i.config.addbtn,function(){var n=i.api.selectedids(e),a=o.extend.add_url;a.indexOf("{ids}")!==-1&&(a=i.api.replaceurl(a,{ids:n.length>0?n.join(","):0},e)),Fast.api.open(a,__("Add"),t(this).data()||{})}),t(i.config.importbtn,a).size()>0&&require(["upload"],function(n){n.api.upload(t(i.config.importbtn,a),function(t,n){Fast.api.ajax({url:o.extend.import_url,data:{file:t.url}},function(t,n){e.trigger("uncheckbox"),e.bootstrapTable("refresh")})})}),a.on("click",i.config.editbtn,function(){var n=this,a=i.api.selectedids(e);a.length>10||t.each(i.api.selecteddata(e),function(a,r){var s=o.extend.edit_url;r=t.extend({},r?r:{},{ids:r[o.pk]}),s=i.api.replaceurl(s,r,e),Fast.api.open(s,__("Edit"),t(n).data()||{})})}),t(document).on("click",i.config.destroyallbtn,function(){var n=this;return Layer.confirm(__("Are you sure you want to truncate?"),function(){var i=t(n).data("url")?t(n).data("url"):t(n).attr("href");Fast.api.ajax(i,function(){Layer.closeAll(),e.trigger("uncheckbox"),e.bootstrapTable("refresh")},function(){Layer.closeAll()})}),!1}),t(document).on("click",i.config.restoreallbtn,function(){var n=this,i=t(n).data("url")?t(n).data("url"):t(n).attr("href");return Fast.api.ajax(i,function(){Layer.closeAll(),e.trigger("uncheckbox"),e.bootstrapTable("refresh")},function(){Layer.closeAll()}),!1}),t(document).on("click",i.config.restoreonebtn+","+i.config.destroyonebtn,function(){var n=this,i=t(n).data("url")?t(n).data("url"):t(n).attr("href"),a=Fast.api.getrowbyindex(e,t(n).data("row-index"));return Fast.api.ajax({url:i,data:{ids:a[o.pk]}},function(){e.trigger("uncheckbox"),e.bootstrapTable("refresh")}),!1}),a.on("click",i.config.multibtn,function(){var n=i.api.selectedids(e);i.api.multi(t(this).data("action"),n,e,this)}),a.on("click",i.config.delbtn,function(){var t=this,n=i.api.selectedids(e);Layer.confirm(__("Are you sure you want to delete the %s selected item?",n.length),{icon:3,title:__("Warning"),offset:0,shadeClose:!0},function(o){i.api.multi("del",n,e,t),Layer.close(o)})}),require(["dragsort"],function(){t("tbody",e).dragsort({itemSelector:"tr:visible",dragSelector:"a.btn-dragsort",dragEnd:function(n,o){var a=t("a.btn-dragsort",this),r=e.bootstrapTable("getData"),s=r[parseInt(t(this).data("index"))],l=e.bootstrapTable("getOptions"),c=t.map(t("tbody tr:visible",e),function(e){return r[parseInt(t(e).data("index"))][l.pk]}),d=s[l.pk],u="undefined"!=typeof s.pid?s.pid:"",p={url:e.bootstrapTable("getOptions").extend.dragsort_url,data:{ids:c.join(","),changeid:d,pid:u,field:i.config.dragsortfield,orderway:l.sortOrder,table:l.extend.table,pk:l.pk}};Fast.api.ajax(p,function(n,i){var o=t(a).data("success")||t.noop;return("function"!=typeof o||!1!==o.call(a,n,i))&&void e.bootstrapTable("refresh")},function(n,i){var o=t(a).data("error")||t.noop;return("function"!=typeof o||!1!==o.call(a,n,i))&&void e.bootstrapTable("refresh")})},placeHolderTemplate:""})}),e.on("click","input[data-id][name='checkbox']",function(n){var i=t(this).data("id");e.bootstrapTable(t(this).prop("checked")?"checkBy":"uncheckBy",{field:o.pk,values:[i]})}),e.on("click","[data-id].btn-change",function(n){n.preventDefault();var o=t.proxy(function(){i.api.multi(t(this).data("action")?t(this).data("action"):"",[t(this).data("id")],e,this)},this);"undefined"!=typeof t(this).data("confirm")?Layer.confirm(t(this).data("confirm"),function(t){o(),Layer.close(t)}):o()}),e.on("click","[data-id].btn-edit",function(n){n.preventDefault();var a=t(this).data("id"),r=i.api.getrowbyid(e,a);r.ids=a;var s=i.api.replaceurl(o.extend.edit_url,r,e);Fast.api.open(s,__("Edit"),t(this).data()||{})}),e.on("click","[data-id].btn-del",function(n){n.preventDefault();var o=t(this).data("id"),a=this;Layer.confirm(__("Are you sure you want to delete this item?"),{icon:3,title:__("Warning"),shadeClose:!0},function(t){i.api.multi("del",o,e,a),Layer.close(t)})});var s=e.attr("id");return i.list[s]=e,e},multi:function(e,n,i,o){var a=i.bootstrapTable("getOptions"),r=o?t(o).data():{};n=t.isArray(n)?n.join(","):n;var s="undefined"!=typeof r.url?r.url:"del"==e?a.extend.del_url:a.extend.multi_url,l="undefined"!=typeof r.params?"object"==typeof r.params?t.param(r.params):r.params:"";a={url:s,data:{action:e,ids:n,params:l}},Fast.api.ajax(a,function(e,n){i.trigger("uncheckbox");var a=t(o).data("success")||t.noop;return("function"!=typeof a||!1!==a.call(o,e,n))&&void i.bootstrapTable("refresh")},function(e,n){var i=t(o).data("error")||t.noop;if("function"==typeof i&&!1===i.call(o,e,n))return!1})},events:{operate:{"click .btn-editone":function(e,n,o,a){e.stopPropagation(),e.preventDefault();var r=t(this).closest("table"),s=r.bootstrapTable("getOptions"),l=o[s.pk];o=t.extend({},o?o:{},{ids:l});var c=s.extend.edit_url;Fast.api.open(i.api.replaceurl(c,o,r),__("Edit"),t(this).data()||{})},"click .btn-delone":function(n,o,a,r){n.stopPropagation(),n.preventDefault();var s=this,l=t(s).offset().top-t(window).scrollTop(),c=t(s).offset().left-t(window).scrollLeft()-260;l+154>t(window).height()&&(l-=154),t(window).width()<480&&(l=c=e),Layer.confirm(__("Are you sure you want to delete this item?"),{icon:3,title:__("Warning"),offset:[l,c],shadeClose:!0},function(e){var n=t(s).closest("table"),o=n.bootstrapTable("getOptions");i.api.multi("del",a[o.pk],n,s),Layer.close(e)})}},image:{"click .img-center":function(e,n,i,o){var a=[];n=n.toString().split(","),t.each(n,function(t,e){a.push({src:Fast.api.cdnurl(e)})}),Layer.photos({photos:{start:t(this).parent().index(),data:a},anim:5})}}},formatter:{icon:function(t,e,n){return t?(t=null===t?"":t.toString(),t=t.indexOf(" ")>-1?t:"fa fa-"+t,'<i class="'+t+'"></i> '+t):""},image:function(t,e,n){t=t?t:"/assets/img/blank.gif";var i="undefined"!=typeof this.classname?this.classname:"img-sm img-center";return'<a href="javascript:"><img class="'+i+'" src="'+Fast.api.cdnurl(t)+'" /></a>'},images:function(e,n,i){e=null===e?"":e.toString();var o="undefined"!=typeof this.classname?this.classname:"img-sm img-center",a=e.split(","),r=[];return t.each(a,function(t,e){e=e?e:"/assets/img/blank.gif",r.push('<a href="javascript:"><img class="'+o+'" src="'+Fast.api.cdnurl(e)+'" /></a>')}),r.join(" ")},content:function(t,n,i){var o=this.width!=e?this.width.match(/^\d+$/)?this.width+"px":this.width:"250px";return"<div style='white-space: nowrap; text-overflow:ellipsis; overflow: hidden; max-width:"+o+";'>"+t+"</div>"},status:function(e,n,o){var a={normal:"success",hidden:"gray",deleted:"danger",locked:"info"};return"undefined"!=typeof this.custom&&(a=t.extend(a,this.custom)),this.custom=a,this.icon="fa fa-circle",i.api.formatter.normal.call(this,e,n,o)},normal:function(e,n,i){var o=["primary","success","danger","warning","info","gray","red","yellow","aqua","blue","navy","teal","olive","lime","fuchsia","purple","maroon"],a={};"undefined"!=typeof this.custom&&(a=t.extend(a,this.custom)),e=null===e?"":e.toString();var r="object"==typeof this.searchList?Object.keys(this.searchList):[],i=r.indexOf(e),s=e&&"undefined"!=typeof a[e]?a[e]:null,l=i>-1?this.searchList[e]:null,c="undefined"!=typeof this.icon?this.icon:null;s||(s=i>-1&&"undefined"!=typeof o[i]?o[i]:"primary"),l||(l=__(e.charAt(0).toUpperCase()+e.slice(1)));var d='<span class="text-'+s+'">'+(c?'<i class="'+c+'"></i> ':"")+l+"</span>";return 0!=this.operate&&(d='<a href="javascript:;" class="searchit" data-toggle="tooltip" title="'+__("Click to search %s",l)+'" data-field="'+this.field+'" data-value="'+e+'">'+d+"</a>"),d},toggle:function(t,e,n){var i=this.table,o=i?i.bootstrapTable("getOptions"):{},a=o.pk||"id",r="undefined"!=typeof this.color?this.color:"success",s="undefined"!=typeof this.yes?this.yes:1,l="undefined"!=typeof this.no?this.no:0,c="undefined"!=typeof this.url?this.url:"",d="",u=!1;return"undefined"!=typeof this.confirm&&(d="function"==typeof this.confirm?this.confirm.call(this,t,e,n):this.confirm),"undefined"!=typeof this.disable&&(u="function"==typeof this.disable?this.disable.call(this,t,e,n):this.disable),"<a href='javascript:;' data-toggle='tooltip' title='"+__("Click to toggle")+"' class='btn-change "+(u?"btn disabled":"")+"' data-id='"+e[a]+"' "+(c?"data-url='"+c+"'":"")+(d?"data-confirm='"+d+"'":"")+" data-params='"+this.field+"="+(t==s?l:s)+"'><i class='fa fa-toggle-on "+(t==s?"text-"+r:"fa-flip-horizontal text-gray")+" fa-2x'></i></a>"},url:function(t,e,n){return t=null===t?"":t.toString(),'<div class="input-group input-group-sm" style="width:250px;margin:0 auto;"><input type="text" class="form-control input-sm" value="'+t+'"><span class="input-group-btn input-group-sm"><a href="'+t+'" target="_blank" class="btn btn-default btn-sm"><i class="fa fa-link"></i></a></span></div>'},search:function(t,e,n){var i=this.field;return"undefined"!=typeof this.customField&&"undefined"!=typeof e[this.customField]&&(t=e[this.customField],i=this.customField),'<a href="javascript:;" class="searchit" data-toggle="tooltip" title="'+__("Click to search %s",t)+'" data-field="'+i+'" data-value="'+t+'">'+t+"</a>"},addtabs:function(t,e,n){var o=i.api.replaceurl(this.url,e,this.table),a=this.atitle?this.atitle:__("Search %s",t);return'<a href="'+Fast.api.fixurl(o)+'" class="addtabsit" data-value="'+t+'" title="'+a+'">'+t+"</a>"},dialog:function(t,e,n){var o=i.api.replaceurl(this.url,e,this.table),a=this.atitle?this.atitle:__("View %s",t);return'<a href="'+Fast.api.fixurl(o)+'" class="dialogit" data-value="'+t+'" title="'+a+'">'+t+"</a>"},flag:function(e,n,i){var o=this;e=null===e?"":e.toString();var a={index:"success",hot:"warning",recommend:"danger",new:"info"};"undefined"!=typeof this.custom&&(a=t.extend(a,this.custom));var r=this.field;"undefined"!=typeof this.customField&&"undefined"!=typeof n[this.customField]&&(e=n[this.customField],r=this.customField);var s,l,c,d=[],u=e.split(",");return t.each(u,function(t,e){return e=null===e?"":e.toString(),""==e||(s=e&&"undefined"!=typeof a[e]?a[e]:"primary",l="undefined"!=typeof o.searchList&&"undefined"!=typeof o.searchList[e]?o.searchList[e]:__(e.charAt(0).toUpperCase()+e.slice(1)),c='<span class="label label-'+s+'">'+l+"</span>",void(o.operate?d.push('<a href="javascript:;" class="searchit" data-toggle="tooltip" title="'+__("Click to search %s",l)+'" data-field="'+r+'" data-value="'+e+'">'+c+"</a>"):d.push(c)))}),d.join(" ")},label:function(t,e,n){return i.api.formatter.flag.call(this,t,e,n)},datetime:function(t,e,i){var o="undefined"==typeof this.datetimeFormat?"YYYY-MM-DD HH:mm:ss":this.datetimeFormat;return isNaN(t)?t?n(t).format(o):__("None"):t?n(1e3*parseInt(t)).format(o):__("None")},operate:function(e,n,o){var a=this.table,r=a?a.bootstrapTable("getOptions"):{},s=t.extend([],this.buttons||[]),l=[];return s.forEach(function(t){l.push(t.name)}),""!==r.extend.dragsort_url&&l.indexOf("dragsort")===-1&&s.push(i.button.dragsort),""!==r.extend.edit_url&&l.indexOf("edit")===-1&&(i.button.edit.url=r.extend.edit_url,s.push(i.button.edit)),""!==r.extend.del_url&&l.indexOf("del")===-1&&s.push(i.button.del),i.api.buttonlink(this,s,e,n,o,"operate")},buttons:function(e,n,o){var a=t.extend([],this.buttons||[]);return i.api.buttonlink(this,a,e,n,o,"buttons")}},buttonlink:function(e,n,o,a,r,s){var l=e.table;s="undefined"==typeof s?"buttons":s;var c,d,u,p,f,h,m,g,y,v,b,x,w,_=l?l.bootstrapTable("getOptions"):{},k=[],C=e.fieldIndex,S={};if(t.each(n,function(t,e){if("operate"===s){if("dragsort"===e.name&&"undefined"==typeof a[i.config.dragsortfield])return!0;if(["add","edit","del","multi","dragsort"].indexOf(e.name)>-1&&!_.extend[e.name+"_url"])return!0}var n=l.data(s+"-"+e.name);if("undefined"==typeof n||n){if(c="function"==typeof e.hidden?e.hidden.call(l,a,e):"undefined"!=typeof e.hidden&&e.hidden)return!0;if(d="function"==typeof e.visible?e.visible.call(l,a,e):"undefined"==typeof e.visible||e.visible,!d)return!0;x=e.dropdown?e.dropdown:"",p=e.url?e.url:"",p="function"==typeof p?p.call(l,a,e):p?Fast.api.fixurl(i.api.replaceurl(p,a,l)):"javascript:;",f=e.classname?e.classname:"btn-primary btn-"+name+"one",h=e.icon?e.icon:"",m="function"==typeof e.text?e.text.call(l,a,e):e.text?e.text:"",g="function"==typeof e.title?e.title.call(l,a,e):e.title?e.title:m,y=e.refresh?'data-refresh="'+e.refresh+'"':"",v="function"==typeof e.confirm?e.confirm.call(l,a,e):"undefined"!=typeof e.confirm&&e.confirm,v=v?'data-confirm="'+v+'"':"",b=e.extend?e.extend:"",u="function"==typeof e.disable?e.disable.call(l,a,e):"undefined"!=typeof e.disable&&e.disable,u&&(f+=" disabled"),w='<a href="'+p+'" class="'+f+'" '+(v?v+" ":"")+(y?y+" ":"")+b+' title="'+g+'" data-table-id="'+(l?l.attr("id"):"")+'" data-field-index="'+C+'" data-row-index="'+r+'" data-button-index="'+t+'"><i class="'+h+'"></i>'+(m?" "+m:"")+"</a>",x?("undefined"==typeof S[x]&&(S[x]=[]),S[x].push(w)):k.push(w)}}),!t.isEmptyObject(S)){var T=[];t.each(S,function(t,e){T.push('<div class="btn-group"><button type="button" class="btn btn-primary dropdown-toggle btn-xs" data-toggle="dropdown">'+t+'</button><button type="button" class="btn btn-primary dropdown-toggle btn-xs" data-toggle="dropdown"><span class="caret"></span></button><ul class="dropdown-menu pull-right"><li>'+e.join("</li><li>")+"</li></ul></div>")}),k.unshift(T)}return k.join(" ")},replaceurl:function(t,e,n){var i=n?n.bootstrapTable("getOptions"):null,o=i?e[i.pk]:0;return e.ids=o?o:"undefined"!=typeof e.ids?e.ids:0,t=t.match(/\{ids\}/i)?t:t+(t.match(/(\?|&)+/)?"&ids=":"/ids/")+"{ids}",t=t.replace(/\{(.*?)\}/gi,function(t){if(t=t.substring(1,t.length-1),t.indexOf(".")!==-1){for(var n=e,i=t.split(/\./),o=0;o<i.length;o++)"undefined"!=typeof n[i[o]]&&(n=n[i[o]]);return"object"==typeof n?"":n}return e[t]})},selectedids:function(e,n){var i=e.bootstrapTable("getOptions");return!n&&i.maintainSelected?i.selectedIds:t.map(e.bootstrapTable("getSelections"),function(t){return t[i.pk]})},selecteddata:function(t,e){var n=t.bootstrapTable("getOptions");return!e&&n.maintainSelected?n.selectedData:t.bootstrapTable("getSelections")},toggleattr:function(e){t("input[type='checkbox']",e).trigger("click")},getrowdata:function(t,e){e=parseInt(e);var n=t.bootstrapTable("getData");return"undefined"!=typeof n[e]?n[e]:null},getrowbyindex:function(t,e){return i.api.getrowdata(t,e)},getrowbyid:function(e,n){var o={},a=e.bootstrapTable("getOptions");return t.each(i.api.selecteddata(e),function(t,e){if(e[a.pk]==n)return o=e,!1}),o}}};return i}),function(t){t.fn.dragsort=function(e){if("destroy"==e)return void t(this.selector).trigger("dragsort-uninit");var n=t.extend({},t.fn.dragsort.defaults,e),i=[],o=null,a=null;return this.each(function(e,r){t(r).is("table")&&1==t(r).children().size()&&t(r).children().is("tbody")&&(r=t(r).children().get(0));var s={draggedItem:null,placeHolderItem:null,pos:null,offset:null,offsetLimit:null,scroll:null,container:r,init:function(){n.tagName=""==n.tagName?0==t(this.container).children().size()?"li":t(this.container).children().get(0).tagName.toLowerCase():n.tagName,""==n.itemSelector&&(n.itemSelector=n.tagName),""==n.dragSelector&&(n.dragSelector=n.tagName),""==n.placeHolderTemplate&&(n.placeHolderTemplate="<"+n.tagName+">&nbsp;</"+n.tagName+">"),t(this.container).attr("data-listidx",e).mousedown(this.grabItem).bind("dragsort-uninit",this.uninit),this.styleDragHandlers(!0)},uninit:function(){var e=i[t(this).attr("data-listidx")];t(e.container).unbind("mousedown",e.grabItem).unbind("dragsort-uninit"),e.styleDragHandlers(!1)},getItems:function(){return t(this.container).children(n.itemSelector)},styleDragHandlers:function(e){this.getItems().map(function(){return t(this).is(n.dragSelector)?this:t(this).find(n.dragSelector).get()}).css("cursor",e?"pointer":"")},grabItem:function(e){var o=i[t(this).attr("data-listidx")],a=t(e.target).closest("[data-listidx] > "+n.tagName).get(0),r=o.getItems().filter(function(){return this==a}).size()>0;if(!(1!=e.which||t(e.target).is(n.dragSelectorExclude)||t(e.target).closest(n.dragSelectorExclude).size()>0)&&r){for(var s=e.target;!t(s).is(n.dragSelector);){if(s==this)return;s=s.parentNode}t(s).attr("data-cursor",t(s).css("cursor")),t(s).css("cursor","move");var l=this,c=function(){o.dragStart.call(l,e),t(o.container).unbind("mousemove",c)};t(o.container).mousemove(c).mouseup(function(){t(o.container).unbind("mousemove",c),t(s).css("cursor",t(s).attr("data-cursor"))})}},dragStart:function(e){null!=o&&null!=o.draggedItem&&o.dropItem(),o=i[t(this).attr("data-listidx")],o.draggedItem=t(e.target).closest("[data-listidx] > "+n.tagName),o.draggedItem.attr("data-origpos",t(this).attr("data-listidx")+"-"+t(o.container).children().index(o.draggedItem));var a=parseInt(o.draggedItem.css("marginTop")),r=parseInt(o.draggedItem.css("marginLeft"));if(o.offset=o.draggedItem.offset(),o.offset.top=e.pageY-o.offset.top+(isNaN(a)?0:a)-1,o.offset.left=e.pageX-o.offset.left+(isNaN(r)?0:r)-1,!n.dragBetween){var s=0==t(o.container).outerHeight()?Math.max(1,Math.round(.5+o.getItems().size()*o.draggedItem.outerWidth()/t(o.container).outerWidth()))*o.draggedItem.outerHeight():t(o.container).outerHeight();o.offsetLimit=t(o.container).offset(),o.offsetLimit.right=o.offsetLimit.left+t(o.container).outerWidth()-o.draggedItem.outerWidth(),o.offsetLimit.bottom=o.offsetLimit.top+s-o.draggedItem.outerHeight()}var l=o.draggedItem.height(),c=o.draggedItem.width();if("tr"==n.tagName?(o.draggedItem.children().each(function(){t(this).width(t(this).width())}),o.placeHolderItem=o.draggedItem.clone().attr("data-placeholder",!0),o.draggedItem.after(o.placeHolderItem),o.placeHolderItem.children().each(function(){t(this).html("&nbsp;")})):(o.draggedItem.after(n.placeHolderTemplate),o.placeHolderItem=o.draggedItem.next().css({height:l,width:c}).attr("data-placeholder",!0)),"td"==n.tagName){var d=o.draggedItem.closest("table").get(0);t("<table id='"+d.id+"' style='border-width: 0px;' class='dragSortItem "+d.className+"'><tr></tr></table>").appendTo("body").children().append(o.draggedItem)}var u=o.draggedItem.attr("style");o.draggedItem.attr("data-origstyle",u?u:""),o.draggedItem.css({position:"absolute",opacity:.8,"z-index":999,height:l,width:c}),o.scroll={moveX:0,moveY:0,maxX:t(document).width()-t(window).width(),maxY:t(document).height()-t(window).height()},o.scroll.scrollY=window.setInterval(function(){if(n.scrollContainer!=window)return void t(n.scrollContainer).scrollTop(t(n.scrollContainer).scrollTop()+o.scroll.moveY);var e=t(n.scrollContainer).scrollTop();(o.scroll.moveY>0&&e<o.scroll.maxY||o.scroll.moveY<0&&e>0)&&(t(n.scrollContainer).scrollTop(e+o.scroll.moveY),o.draggedItem.css("top",o.draggedItem.offset().top+o.scroll.moveY+1))},10),o.scroll.scrollX=window.setInterval(function(){if(n.scrollContainer!=window)return void t(n.scrollContainer).scrollLeft(t(n.scrollContainer).scrollLeft()+o.scroll.moveX);var e=t(n.scrollContainer).scrollLeft();(o.scroll.moveX>0&&e<o.scroll.maxX||o.scroll.moveX<0&&e>0)&&(t(n.scrollContainer).scrollLeft(e+o.scroll.moveX),o.draggedItem.css("left",o.draggedItem.offset().left+o.scroll.moveX+1))},10),t(i).each(function(t,e){e.createDropTargets(),e.buildPositionTable()}),o.setPos(e.pageX,e.pageY),t(document).bind("mousemove",o.swapItems),t(document).bind("mouseup",o.dropItem),n.scrollContainer!=window&&t(window).bind("wheel",o.wheel)},setPos:function(e,i){var a=i-this.offset.top,r=e-this.offset.left;n.dragBetween||(a=Math.min(this.offsetLimit.bottom,Math.max(a,this.offsetLimit.top)),r=Math.min(this.offsetLimit.right,Math.max(r,this.offsetLimit.left)));var s=this.draggedItem.offsetParent().not("body").offset();if(null!=s&&(a-=s.top,r-=s.left),n.scrollContainer==window)i-=t(window).scrollTop(),e-=t(window).scrollLeft(),i=Math.max(0,i-t(window).height()+5)+Math.min(0,i-5),e=Math.max(0,e-t(window).width()+5)+Math.min(0,e-5);else{var l=t(n.scrollContainer),c=l.offset();i=Math.max(0,i-l.height()-c.top)+Math.min(0,i-c.top),e=Math.max(0,e-l.width()-c.left)+Math.min(0,e-c.left)}o.scroll.moveX=0==e?0:e*n.scrollSpeed/Math.abs(e),o.scroll.moveY=0==i?0:i*n.scrollSpeed/Math.abs(i),this.draggedItem.css({top:a,left:r})},wheel:function(e){if(o&&n.scrollContainer!=window){var i=t(n.scrollContainer),a=i.offset();if(e=e.originalEvent,e.clientX>a.left&&e.clientX<a.left+i.width()&&e.clientY>a.top&&e.clientY<a.top+i.height()){var r=(0==e.deltaMode?1:10)*e.deltaY;i.scrollTop(i.scrollTop()+r),e.preventDefault()}}},buildPositionTable:function(){var e=[];this.getItems().not([o.draggedItem[0],o.placeHolderItem[0]]).each(function(n){var i=t(this).offset();i.right=i.left+t(this).outerWidth(),i.bottom=i.top+t(this).outerHeight(),i.elm=this,e[n]=i}),this.pos=e},dropItem:function(){if(null!=o.draggedItem){var e=o.draggedItem.attr("data-origstyle");if(o.draggedItem.attr("style",e),""==e&&o.draggedItem.removeAttr("style"),o.draggedItem.removeAttr("data-origstyle"),o.styleDragHandlers(!0),o.placeHolderItem.before(o.draggedItem),o.placeHolderItem.remove(),t("[data-droptarget], .dragSortItem").remove(),window.clearInterval(o.scroll.scrollY),window.clearInterval(o.scroll.scrollX),o.draggedItem.attr("data-origpos")!=t(i).index(o)+"-"+t(o.container).children().index(o.draggedItem)&&0==n.dragEnd.apply(o.draggedItem)){var a=o.draggedItem.attr("data-origpos").split("-"),r=t(i[a[0]].container).children().not(o.draggedItem).eq(a[1]);r.size()>0?r.before(o.draggedItem):0==a[1]?t(i[a[0]].container).prepend(o.draggedItem):t(i[a[0]].container).append(o.draggedItem)}return o.draggedItem.removeAttr("data-origpos"),o.draggedItem=null,t(document).unbind("mousemove",o.swapItems),t(document).unbind("mouseup",o.dropItem),n.scrollContainer!=window&&t(window).unbind("wheel",o.wheel),!1}},swapItems:function(e){if(null==o.draggedItem)return!1;o.setPos(e.pageX,e.pageY);for(var r=o.findPos(e.pageX,e.pageY),s=o,l=0;r==-1&&n.dragBetween&&l<i.length;l++)r=i[l].findPos(e.pageX,e.pageY),s=i[l];if(r==-1)return!1;var c=function(){return t(s.container).children().not(s.draggedItem)},d=c().not(n.itemSelector).each(function(t){this.idx=c().index(this)});return null==a||a.top>o.draggedItem.offset().top||a.left>o.draggedItem.offset().left?t(s.pos[r].elm).before(o.placeHolderItem):t(s.pos[r].elm).after(o.placeHolderItem),d.each(function(){var e=c().eq(this.idx).get(0);this!=e&&c().index(this)<this.idx?t(this).insertAfter(e):this!=e&&t(this).insertBefore(e)}),t(i).each(function(t,e){e.createDropTargets(),e.buildPositionTable()}),a=o.draggedItem.offset(),!1},findPos:function(t,e){for(var n=0;n<this.pos.length;n++)if(this.pos[n].left<t&&this.pos[n].right>t&&this.pos[n].top<e&&this.pos[n].bottom>e)return n;return-1},createDropTargets:function(){n.dragBetween&&t(i).each(function(){var e=t(this.container).find("[data-placeholder]"),i=t(this.container).find("[data-droptarget]");e.size()>0&&i.size()>0?i.remove():0==e.size()&&0==i.size()&&("td"==n.tagName?t(n.placeHolderTemplate).attr("data-droptarget",!0).appendTo(this.container):t(this.container).append(o.placeHolderItem.removeAttr("data-placeholder").clone().attr("data-droptarget",!0)),o.placeHolderItem.attr("data-placeholder",!0))})}};s.init(),i.push(s)}),this},t.fn.dragsort.defaults={tagName:"",itemSelector:"",dragSelector:"",dragSelectorExclude:"input, textarea",dragEnd:function(){},dragBetween:!1,placeHolderTemplate:"",scrollContainer:window,scrollSpeed:5}}(jQuery),define("dragsort",function(){}),function(t){t.fn.drag=function(e,n,i){var o="string"==typeof e?e:"",a=t.isFunction(e)?e:t.isFunction(n)?n:null;return 0!==o.indexOf("drag")&&(o="drag"+o),i=(e==a?n:i)||{},a?this.bind(o,i,a):this.trigger(o)};var e=t.event,n=e.special,i=n.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!0,click:!1},datakey:"dragdata",noBubble:!0,add:function(e){var n=t.data(this,i.datakey),o=e.data||{};n.related+=1,t.each(i.defaults,function(t,e){void 0!==o[t]&&(n[t]=o[t])})},remove:function(){t.data(this,i.datakey).related-=1},setup:function(){if(!t.data(this,i.datakey)){var n=t.extend({related:0},i.defaults);t.data(this,i.datakey,n),e.add(this,"touchstart mousedown",i.init,n),this.attachEvent&&this.attachEvent("ondragstart",i.dontstart)}},teardown:function(){var n=t.data(this,i.datakey)||{};n.related||(t.removeData(this,i.datakey),e.remove(this,"touchstart mousedown",i.init),i.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",i.dontstart))},init:function(o){if(!i.touched){var a,r=o.data;if(!(0!=o.which&&r.which>0&&o.which!=r.which)&&!t(o.target).is(r.not)&&(!r.handle||t(o.target).closest(r.handle,o.currentTarget).length)&&(i.touched="touchstart"==o.type?this:null,r.propagates=1,r.mousedown=this,r.interactions=[i.interaction(this,r)],r.target=o.target,r.pageX=o.pageX,r.pageY=o.pageY,r.dragging=null,a=i.hijack(o,"draginit",r),r.propagates))return a=i.flatten(a),a&&a.length&&(r.interactions=[],t.each(a,function(){r.interactions.push(i.interaction(this,r))})),r.propagates=r.interactions.length,r.drop!==!1&&n.drop&&n.drop.handler(o,r),i.textselect(!1),i.touched?e.add(i.touched,"touchmove touchend",i.handler,r):e.add(document,"mousemove mouseup",i.handler,r),!(!i.touched||r.live)&&void 0}},interaction:function(e,n){var o=t(e)[n.relative?"position":"offset"]()||{top:0,left:0};return{drag:e,callback:new i.callback,droppable:[],offset:o}},handler:function(o){var a=o.data;switch(o.type){case!a.dragging&&"touchmove":o.preventDefault();case!a.dragging&&"mousemove":if(Math.pow(o.pageX-a.pageX,2)+Math.pow(o.pageY-a.pageY,2)<Math.pow(a.distance,2))break;o.target=a.target,i.hijack(o,"dragstart",a),a.propagates&&(a.dragging=!0);case"touchmove":o.preventDefault();case"mousemove":if(a.dragging){if(i.hijack(o,"drag",a),a.propagates){a.drop!==!1&&n.drop&&n.drop.handler(o,a);break}o.type="mouseup"}case"touchend":case"mouseup":default:i.touched?e.remove(i.touched,"touchmove touchend",i.handler):e.remove(document,"mousemove mouseup",i.handler),a.dragging&&(a.drop!==!1&&n.drop&&n.drop.handler(o,a),i.hijack(o,"dragend",a)),i.textselect(!0),a.click===!1&&a.dragging&&t.data(a.mousedown,"suppress.click",(new Date).getTime()+5),a.dragging=i.touched=!1}},hijack:function(n,o,a,r,s){if(a){var l,c,d,u={event:n.originalEvent,type:n.type},p=o.indexOf("drop")?"drag":"drop",f=r||0,h=isNaN(r)?a.interactions.length:r;n.type=o,n.originalEvent=null,a.results=[];do if(c=a.interactions[f]){if("dragend"!==o&&c.cancelled)continue;d=i.properties(n,a,c),
  c.results=[],t(s||c[p]||a.droppable).each(function(r,s){if(d.target=s,n.isPropagationStopped=function(){return!1},l=s?e.dispatch.call(s,n,d):null,l===!1?("drag"==p&&(c.cancelled=!0,a.propagates-=1),"drop"==o&&(c[p][r]=null)):"dropinit"==o&&c.droppable.push(i.element(l)||s),"dragstart"==o&&(c.proxy=t(i.element(l)||c.drag)[0]),c.results.push(l),delete n.result,"dropinit"!==o)return l}),a.results[f]=i.flatten(c.results),"dropinit"==o&&(c.droppable=i.flatten(c.droppable)),"dragstart"!=o||c.cancelled||d.update()}while(++f<h);return n.type=u.type,n.originalEvent=u.event,i.flatten(a.results)}},properties:function(t,e,n){var o=n.callback;return o.drag=n.drag,o.proxy=n.proxy||n.drag,o.startX=e.pageX,o.startY=e.pageY,o.deltaX=t.pageX-e.pageX,o.deltaY=t.pageY-e.pageY,o.originalX=n.offset.left,o.originalY=n.offset.top,o.offsetX=o.originalX+o.deltaX,o.offsetY=o.originalY+o.deltaY,o.drop=i.flatten((n.drop||[]).slice()),o.available=i.flatten((n.droppable||[]).slice()),o},element:function(t){if(t&&(t.jquery||1==t.nodeType))return t},flatten:function(e){return t.map(e,function(e){return e&&e.jquery?t.makeArray(e):e&&e.length?i.flatten(e):e})},textselect:function(e){t(document)[e?"unbind":"bind"]("selectstart",i.dontstart).css("MozUserSelect",e?"":"none"),document.unselectable=e?"off":"on"},dontstart:function(){return!1},callback:function(){}};i.callback.prototype={update:function(){n.drop&&this.available.length&&t.each(this.available,function(t){n.drop.locate(this,t)})}};var o=e.dispatch;e.dispatch=function(e){return t.data(this,"suppress."+e.type)-(new Date).getTime()>0?void t.removeData(this,"suppress."+e.type):o.apply(this,arguments)};var a=e.fixHooks.touchstart=e.fixHooks.touchmove=e.fixHooks.touchend=e.fixHooks.touchcancel={props:"clientX clientY pageX pageY screenX screenY".split(" "),filter:function(e,n){if(n){var i=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0]||null;i&&t.each(a.props,function(t,n){e[n]=i[n]})}return e}};n.draginit=n.dragstart=n.dragend=i}(jQuery),define("drag",function(){}),function(t){t.fn.drop=function(e,n,i){var o="string"==typeof e?e:"",a=t.isFunction(e)?e:t.isFunction(n)?n:null;return 0!==o.indexOf("drop")&&(o="drop"+o),i=(e==a?n:i)||{},a?this.bind(o,i,a):this.trigger(o)},t.drop=function(e){e=e||{},i.multi=e.multi===!0?1/0:e.multi===!1?1:isNaN(e.multi)?i.multi:e.multi,i.delay=e.delay||i.delay,i.tolerance=t.isFunction(e.tolerance)?e.tolerance:null===e.tolerance?null:i.tolerance,i.mode=e.mode||i.mode||"intersect"};var e=t.event,n=e.special,i=t.event.special.drop={multi:1,delay:20,mode:"overlap",targets:[],datakey:"dropdata",noBubble:!0,add:function(e){var n=t.data(this,i.datakey);n.related+=1},remove:function(){t.data(this,i.datakey).related-=1},setup:function(){if(!t.data(this,i.datakey)){var e={related:0,active:[],anyactive:0,winner:0,location:{}};return t.data(this,i.datakey,e),i.targets.push(this),!1}},teardown:function(){var e=t.data(this,i.datakey)||{};if(!e.related){t.removeData(this,i.datakey);var n=this;i.targets=t.grep(i.targets,function(t){return t!==n})}},handler:function(e,o){var a;if(o)switch(e.type){case"mousedown":case"touchstart":a=t(i.targets),"string"==typeof o.drop&&(a=a.filter(o.drop)),a.each(function(){var e=t.data(this,i.datakey);e.active=[],e.anyactive=0,e.winner=0}),o.droppable=a,n.drag.hijack(e,"dropinit",o);break;case"mousemove":case"touchmove":i.event=e,i.timer||i.tolerate(o);break;case"mouseup":case"touchend":i.timer=clearTimeout(i.timer),o.propagates&&(n.drag.hijack(e,"drop",o),n.drag.hijack(e,"dropend",o))}},locate:function(e,n){var o=t.data(e,i.datakey),a=t(e),r=a.offset()||{},s=a.outerHeight(),l=a.outerWidth(),c={elem:e,width:l,height:s,top:r.top,left:r.left,right:r.left+l,bottom:r.top+s};return o&&(o.location=c,o.index=n,o.elem=e),c},contains:function(t,e){return(e[0]||e.left)>=t.left&&(e[0]||e.right)<=t.right&&(e[1]||e.top)>=t.top&&(e[1]||e.bottom)<=t.bottom},modes:{intersect:function(t,e,n){return this.contains(n,[t.pageX,t.pageY])?1e9:this.modes.overlap.apply(this,arguments)},overlap:function(t,e,n){return Math.max(0,Math.min(n.bottom,e.bottom)-Math.max(n.top,e.top))*Math.max(0,Math.min(n.right,e.right)-Math.max(n.left,e.left))},fit:function(t,e,n){return this.contains(n,e)?1:0},middle:function(t,e,n){return this.contains(n,[e.left+.5*e.width,e.top+.5*e.height])?1:0}},sort:function(t,e){return e.winner-t.winner||t.index-e.index},tolerate:function(e){var o,a,r,s,l,c,d,u,p=0,f=e.interactions.length,h=[i.event.pageX,i.event.pageY],m=i.tolerance||i.modes[i.mode];do if(u=e.interactions[p]){if(!u)return;u.drop=[],l=[],c=u.droppable.length,m&&(r=i.locate(u.proxy)),o=0;do if(d=u.droppable[o]){if(s=t.data(d,i.datakey),a=s.location,!a)continue;s.winner=m?m.call(i,i.event,r,a):i.contains(a,h)?1:0,l.push(s)}while(++o<c);l.sort(i.sort),o=0;do(s=l[o])&&(s.winner&&u.drop.length<i.multi?(s.active[p]||s.anyactive||(n.drag.hijack(i.event,"dropstart",e,p,s.elem)[0]!==!1?(s.active[p]=1,s.anyactive+=1):s.winner=0),s.winner&&u.drop.push(s.elem)):s.active[p]&&1==s.anyactive&&(n.drag.hijack(i.event,"dropend",e,p,s.elem),s.active[p]=0,s.anyactive-=1));while(++o<c)}while(++p<f);i.last&&h[0]==i.last.pageX&&h[1]==i.last.pageY?delete i.timer:i.timer=setTimeout(function(){i.tolerate(e)},i.delay),i.last=i.event}};n.dropinit=n.dropstart=n.dropend=i}(jQuery),define("drop",function(){}),function(t){t.fn.addtabs=function(e){var n=t(this);e=t.extend({content:"",close:!0,monitor:"body",nav:".nav-addtabs",tab:".tab-addtabs",iframeUse:!0,iframeHeight:t(window).height()-50,iframeForceRefresh:!1,iframeForceRefreshTable:!1,callback:function(){}},e||{});var i=t(e.nav),o=t(e.tab);history.pushState&&t(window).on("popstate",function(n){var i=n.originalEvent.state;i&&t("a[addtabs="+i.id+"]",e.monitor).data("pushstate",!0).trigger("click")}),t(e.monitor).on("click","[addtabs]",function(n){if(0!==t(this).attr("url").indexOf("javascript:")){t(this).is("a")&&n.preventDefault();var i=t(this).attr("addtabs"),o=t(this).attr("title")?t(this).attr("title"):t.trim(t(this).text()),r=t(this).attr("url"),s=e.content?e.content:t(this).attr("content"),l="1"===t(this).attr("ajax")||"true"===t(this).attr("ajax"),c={url:r,title:o,id:i,content:s,ajax:l};if(document.title=o,history.pushState&&!t(this).data("pushstate")){var d=r.indexOf("ref=addtabs")===-1?r+(r.indexOf("?")>-1?"&":"?")+"ref=addtabs":r;try{window.history.pushState(c,o,d)}catch(t){}}t(this).data("pushstate",null),a.call(this,{id:i,title:t(this).attr("title")?t(this).attr("title"):t(this).html(),content:s,url:r,ajax:l})}}),i.on("click",".close-tab",function(){var e=t(this).prev("a").attr("aria-controls");return r(e),!1}),i.on("dblclick","li[role=presentation]",function(){t(this).find(".close-tab").trigger("click")}),i.on("click","li[role=presentation]",function(){t("a[addtabs="+t("a",this).attr("node-id")+"]").trigger("click")}),t(window).resize(function(){if("object"==typeof e.nav){var n=0;i.siblings().each(function(){n+=t(this).outerWidth()}),i.width(i.parent().width()-n)}else t("#nav").width(t("#header").find("> .navbar").width()-t(".sidebar-toggle").outerWidth()-t(".navbar-custom-menu").outerWidth()-20);s()});var a=function(n){var a,r,l,c;a=n.id,r="tab_"+n.id,l="con_"+n.id,c=n.url,c+=n.url.indexOf("?")>-1?"&addtabs=1":"?addtabs=1";var d=t("#"+r,i),u=t("#"+l,o);if(i.find("[role='presentation']").removeClass("active"),o.find("[role='tabpanel']").removeClass("active"),0===d.size()){if(d=t('<li role="presentation" id="'+r+'"><a href="#'+l+'" node-id="'+n.id+'" aria-controls="'+a+'" role="tab" data-toggle="tab">'+n.title+"</a></li>"),e.close&&t("li",i).size()>0&&d.append(' <i class="close-tab fa fa-remove"></i>'),0===u.size()){if(u=t('<div role="tabpanel" class="tab-pane" id="'+l+'"></div>'),n.content)u.append(n.content);else if(e.iframeUse&&!n.ajax){var p=e.iframeHeight;u.append('<iframe src="'+c+'" width="100%" height="'+p+'" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling-x="no" scrolling-y="auto" allowtransparency="yes"></iframe></div>')}else t.get(c,function(t){u.append(t)});o.append(u)}t(".tabdrop li",i).size()>0?t(".tabdrop ul",i).append(d):i.append(d)}else if(e.iframeForceRefresh)t("#"+l+" iframe").attr("src",function(t,e){return e});else if(e.iframeForceRefreshTable)try{t("#"+l+" iframe").contents().find(".btn-refresh").size()>0&&t("#"+l+" iframe")[0].contentWindow.$(".btn-refresh").trigger("click")}catch(t){}localStorage.setItem("addtabs",t(this).prop("outerHTML")),d.addClass("active"),u.addClass("active"),s()},r=function(a){var r="tab_"+a,l="con_"+a,c=t("#"+r,i),d=t("#"+l,o);if(n.find("li.active").not(".tabdrop").attr("id")===r){var u=c.prev().not(".tabdrop"),p=c.next().not(".tabdrop");u.size()>0?u.find("a").trigger("click"):p.size()>0?p.find("a").trigger("click"):t(">li:not(.tabdrop):last > a",i).trigger("click")}c.remove(),d.remove(),s(),e.callback()},s=function(){i.refreshAddtabs()}},t.fn.refreshAddtabs=function(){var e=t(this),n=t(".tabdrop",e);0===n.size()&&(n=t('<li class="dropdown pull-right hide tabdrop"><a class="dropdown-toggle" data-toggle="dropdown" href="javascript:;"><i class="glyphicon glyphicon-align-justify"></i> <b class="caret"></b></a><ul class="dropdown-menu"></ul></li>'),n.prependTo(e)),e.parent().is(".tabs-below")&&n.addClass("dropup");var i=0,o=e.width()-65,a=0,r=e.append(n.find("li")).find(">li").not(".tabdrop"),s=0;r.each(function(){s+=t(this).outerWidth(!0)}),e.width()<s?(r.each(function(){a+=t(this).outerWidth(!0),a>o&&(n.find("ul").append(t(this)),i++)}),i>0&&(n.removeClass("hide"),1===n.find(".active").length?n.addClass("active"):n.removeClass("active"))):n.addClass("hide")}}(jQuery),define("addtabs",function(){}),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),i=n.data(c.dataKey),o=t.extend({},l,n.data(),i&&i.option,"object"==typeof e&&e);i||n.data(c.dataKey,i=new c(this,o))})}function n(e){return t(e).closest("div.sp_container").find("input.sp_input")}function i(){return this.each(function(){var t=n(this),e=t.data(c.dataKey);e&&(e.prop.init_set=!0,e.clearAll(e),e.prop.init_set=!1)})}function o(){return this.each(function(){var t=n(this),e=t.data(c.dataKey);e&&e.elem.hidden.val()&&e.setInitRecord(!0)})}function a(e){return this.each(function(){if(e&&t.isArray(e)){var i=n(this),o=i.data(c.dataKey);o&&(o.clearAll(o),o.option.data=e)}})}function r(e){var i=!1;return this.each(function(){var o=n(this),a=o.data(c.dataKey);a&&("undefined"!==t.type(e)?a.disabled(a,e):i=a.disabled(a))}),i}function s(){var e="";return this.each(function(){var i=n(this),o=i.data(c.dataKey);if(o)if(o.option.multiple){var a=[];o.elem.element_box.find("li.selected_tag").each(function(e,n){a.push(t(n).text())}),e+=a.toString()}else e+=o.elem.combo_input.val()}),e}var l={data:void 0,lang:"cn",multiple:!1,pagination:!0,dropButton:!0,listSize:10,multipleControlbar:!0,maxSelectLimit:0,selectToCloseList:!1,initRecord:void 0,dbTable:"tbl",keyField:"id",showField:"name",searchField:void 0,andOr:"OR",orderBy:void 0,pageSize:10,params:void 0,formatItem:void 0,autoFillResult:!1,autoSelectFirst:!1,noResultClean:!0,selectOnly:!1,inputDelay:.5,eSelect:void 0,eOpen:void 0,eAjaxSuccess:void 0,eTagRemove:void 0,eClear:void 0},c=function(e,n){t.each({data:"source",keyField:"primaryKey",showField:"field",pageSize:"perPage"},function(t,e){"undefined"!=typeof n[e]&&(n[t]=n[e],delete n[e])}),this.setOption(n),this.setLanguage(),this.setCssClass(),this.setProp(),this.setElem(e),this.setButtonAttrDefault(),this.setInitRecord(),this.eDropdownButton(),this.eInput(),this.eWhole()};c.version="2.19",c.dataKey="selectPageObject",c.prototype.setOption=function(e){e.searchField=e.searchField||e.showField,e.andOr=e.andOr.toUpperCase(),"AND"!==e.andOr&&"OR"!==e.andOr&&(e.andOr="AND");for(var n=["searchField"],i=0;i<n.length;i++)e[n[i]]=this.strToArray(e[n[i]]);if(e.orderBy=e.orderBy||e.showField,e.orderBy!==!1&&(e.orderBy=this.setOrderbyOption(e.orderBy,e.showField)),e.multiple&&!e.selectToCloseList&&(e.autoFillResult=!1,e.autoSelectFirst=!1),e.pagination||(e.pageSize=200),("number"!==t.type(e.listSize)||e.listSize<0)&&(e.listSize=10),"string"==typeof e.formatItem){var o=e.formatItem;e.formatItem=function(t){return"function"==typeof Template&&o.match(/\#([a-zA-Z0-9_\-]+)$/)?Template(o.substring(1),t):o.replace(/\{(.*?)\}/gi,function(e){return e=e.substring(1,e.length-1),"undefined"!=typeof t[e]?t[e]:""})}}this.option=e},c.prototype.strToArray=function(t){return t?t.replace(/[\s　]+/g,"").split(","):""},c.prototype.setOrderbyOption=function(e,n){var i=[],o=[];if("object"==typeof e)for(var a=0;a<e.length;a++)o=t.trim(e[a]).split(" "),o.length&&i.push(2===o.length?o.concat():[o[0],"ASC"]);else o=t.trim(e).split(" "),i[0]=2===o.length?o.concat():o[0].toUpperCase().match(/^(ASC|DESC)$/i)?[n,o[0].toUpperCase()]:[o[0],"ASC"];return i},c.prototype.setLanguage=function(){var t,e=this.option;switch(e.lang){case"en":t={add_btn:"Add button",add_title:"add a box",del_btn:"Del button",del_title:"delete a box",next:"Next",next_title:"Next"+e.pageSize+" (Right key)",prev:"Prev",prev_title:"Prev"+e.pageSize+" (Left key)",first_title:"First (Shift + Left key)",last_title:"Last (Shift + Right key)",get_all_btn:"Get All (Down key)",get_all_alt:"(button)",close_btn:"Close (Tab key)",close_alt:"(button)",loading:"loading...",loading_alt:"(loading)",page_info:"page_num of page_count",select_ng:"Attention : Please choose from among the list.",select_ok:"OK : Correctly selected.",not_found:"not found",ajax_error:"An error occurred while connecting to server.",clear:"Clear content",select_all:"Select current page",unselect_all:"Clear current page",clear_all:"Clear all selected",max_selected:"You can only select up to max_selected_limit items"};break;case"cn":default:t={add_btn:"添加按钮",add_title:"添加区域",del_btn:"删除按钮",del_title:"删除区域",next:"下一页",next_title:"下"+e.pageSize+" (→)",prev:"上一页",prev_title:"上"+e.pageSize+" (←)",first_title:"首页 (Shift + ←)",last_title:"尾页 (Shift + →)",get_all_btn:"获得全部 (↓)",get_all_alt:"(按钮)",close_btn:"关闭 (Tab键)",close_alt:"(按钮)",loading:"读取中...",loading_alt:"(读取中)",page_info:"第 page_num 页(共page_count页)",select_ng:"请注意：请从列表中选择.",select_ok:"OK : 已经选择.",not_found:"无查询结果",ajax_error:"连接到服务器时发生错误！",clear:"清除内容",select_all:"选择当前页项目",unselect_all:"取消选择当前页项目",clear_all:"清除全部已选择项目",max_selected:"最多只能选择 max_selected_limit 个项目"}}this.message=t},c.prototype.setCssClass=function(){var t={container:"sp_container",container_open:"sp_container_open",re_area:"sp_result_area",result_open:"sp_result_area_open",control_box:"sp_control_box",element_box:"sp_element_box",navi:"sp_navi",results:"sp_results",re_off:"sp_results_off",select:"sp_over",select_ok:"sp_select_ok",select_ng:"sp_select_ng",selected:"sp_selected",input_off:"sp_input_off",message_box:"sp_message_box",disabled:"sp_disabled",button:"sp_button",caret_open:"sp_caret_open",btn_on:"sp_btn_on",btn_out:"sp_btn_out",input:"sp_input",clear_btn:"sp_clear_btn",align_right:"sp_align_right"};this.css_class=t},c.prototype.setProp=function(){this.prop={disabled:!1,current_page:1,max_page:1,is_loading:!1,xhr:!1,key_paging:!1,key_select:!1,prev_value:"",selected_text:"",last_input_time:void 0,init_set:!1},this.template={tag:{content:'<li class="selected_tag" itemvalue="#item_value#">#item_text#<span class="tag_close"><i class="spfont sp-close"></i></span></li>',textKey:"#item_text#",valueKey:"#item_value#"},page:{current:"page_num",total:"page_count"},msg:{maxSelectLimit:"max_selected_limit"}}},c.prototype.elementRealSize=function(e,n){var i,o,a,r={absolute:!1,clone:!1,includeMargin:!1,display:"block"},s=r,l=e.eq(0),c=[],d="";i=function(){a=l.parents().addBack().filter(":hidden"),d+="visibility: hidden !important; display: "+s.display+" !important; ",s.absolute===!0&&(d+="position: absolute !important;"),a.each(function(){var e=t(this),n=e.attr("style");c.push(n),e.attr("style",n?n+";"+d:d)})},o=function(){a.each(function(e){var n=t(this),i=c[e];void 0===i?n.removeAttr("style"):n.attr("style",i)})},i();var u=/(outer)/.test(n)?l[n](s.includeMargin):l[n]();return o(),u},c.prototype.setElem=function(e){var n={},i=this.option,o=this.css_class,a=this.message,r=t(e),s=r.css("width"),l=r.outerWidth();s.indexOf("%")>-1||r.parent().size()>0&&r.parent().width()==l?l="100%":(l<=0&&(l=this.elementRealSize(r,"outerWidth")),l<150&&(l=150)),n.combo_input=r.attr({autocomplete:"off"}).addClass(o.input).wrap("<div>"),i.selectOnly&&n.combo_input.prop("readonly",!0),n.container=n.combo_input.parent().addClass(o.container),n.combo_input.prop("disabled")&&(i.multiple?n.container.addClass(o.disabled):n.combo_input.addClass(o.input_off)),n.container.width(l),n.button=t("<div>").addClass(o.button),n.dropdown=t('<span class="sp_caret"></span>'),n.clear_btn=t("<div>").html(t("<i>").addClass("spfont sp-close")).addClass(o.clear_btn).attr("title",a.clear),i.dropButton||n.clear_btn.addClass(o.align_right),n.element_box=t("<ul>").addClass(o.element_box),i.multiple&&i.multipleControlbar&&(n.control=t("<div>").addClass(o.control_box)),n.result_area=t("<div>").addClass(o.re_area),i.pagination&&(n.navi=t("<div>").addClass("sp_pagination").append("<ul>")),n.results=t("<ul>").addClass(o.results);var c="_text",d=n.combo_input.attr("id")||n.combo_input.attr("name"),u=n.combo_input.attr("name")||"selectPage",p=u,f=d;if(n.hidden=t('<input type="hidden" class="sp_hidden" />').attr({name:p,id:f}).val(""),n.combo_input.attr({name:"undefined"!=typeof r.data("name")?r.data("name"):u+c,id:d+c}),n.container.append(n.hidden),i.dropButton&&(n.container.append(n.button),n.button.append(n.dropdown)),t(document.body).append(n.result_area),n.result_area.append(n.results),i.pagination&&n.result_area.append(n.navi),i.multiple){i.multipleControlbar&&(n.control.append('<button type="button" class="btn btn-default sp_clear_all" ><i class="spfont sp-clear"></i></button>'),n.control.append('<button type="button" class="btn btn-default sp_unselect_all" ><i class="spfont sp-unselect-all"></i></button>'),n.control.append('<button type="button" class="btn btn-default sp_select_all" ><i class="spfont sp-select-all"></i></button>'),n.control_text=t("<p>"),n.control.append(n.control_text),n.result_area.prepend(n.control)),n.container.addClass("sp_container_combo"),n.combo_input.addClass("sp_combo_input").before(n.element_box);var h=t("<li>").addClass("input_box");h.append(n.combo_input),n.element_box.append(h),n.combo_input.attr("placeholder")&&n.combo_input.attr("placeholder_bak",n.combo_input.attr("placeholder"))}this.elem=n},c.prototype.setButtonAttrDefault=function(){this.option.dropButton&&this.elem.button.attr("title",this.message.close_btn)},c.prototype.setInitRecord=function(e){var n=this,i=n.option,o=n.elem,a="";if("undefined"!=t.type(o.combo_input.data("init"))&&(i.initRecord=String(o.combo_input.data("init"))),e||i.initRecord||!o.combo_input.val()||(i.initRecord=o.combo_input.val()),o.combo_input.val(""),e||o.hidden.val(i.initRecord),a=e&&o.hidden.val()?o.hidden.val():i.initRecord)if("object"==typeof i.data){var r=new Array,s=a.split(",");t.each(s,function(t,e){for(var n=0;n<i.data.length;n++)if(i.data[n][i.keyField]==e){r.push(i.data[n]);break}}),!i.multiple&&r.length>1&&(r=[r[0]]),n.afterInit(n,r)}else{var l=i.params,c={},d=(i.searchField,{searchTable:i.dbTable,searchKey:i.keyField,searchValue:a,orderBy:i.orderBy,showField:i.showField,keyField:i.keyField,keyValue:a,searchField:i.searchField});if(l){var u=t.isFunction(l)?l(n):l;c=u&&t.isPlainObject(u)?t.extend({},d,u):d}else c=d;t.ajax({dataType:"json",type:"POST",url:i.data,data:c,success:function(e){var o=null;i.eAjaxSuccess&&t.isFunction(i.eAjaxSuccess)&&(o=i.eAjaxSuccess(e)),n.afterInit(n,o.list)},error:function(t,e,i){n.ajaxErrorNotify(n,i)}})}},c.prototype.afterInit=function(e,n){if(n&&(!t.isArray(n)||0!==n.length)){t.isArray(n)||(n=[n]);var i=e.option,o=e.css_class;if(e.data=n,i.multiple)e.prop.init_set=!0,e.clearAll(e),t.each(n,function(t,n){var o=n[i.keyField],a=n[i.showField],r={text:a,value:o};e.isAlreadySelected(e,r)||e.addNewTag(e,n,r)}),e.tagValuesSet(e),e.inputResize(e),e.elem.hidden.blur(),e.prop.init_set=!1;else{var a=n[0],r=a[i.keyField],s=a[i.showField];e.elem.combo_input.val(s),e.elem.hidden.val(r),e.prop.prev_value=s,e.prop.selected_text=s,i.selectOnly&&e.elem.combo_input.attr("title",e.message.select_ok).removeClass(o.select_ng).addClass(o.select_ok),e.putClearButton()}}},c.prototype.eDropdownButton=function(){var t=this;t.option.dropButton&&t.elem.button.mouseup(function(e){e.stopPropagation(),t.elem.result_area.is(":hidden")&&!t.elem.combo_input.prop("disabled")?t.elem.combo_input.focus():t.hideResults(t)})},c.prototype.eInput=function(){var e=this,n=e.option,i=e.elem,o=e.message,a=function(){e.prop.page_move=!1,e.suggest(e),e.setCssFocusedInput(e)};i.combo_input.keyup(function(t){e.processKey(e,t)}).keydown(function(t){e.processControl(e,t)}).focus(function(t){i.result_area.is(":hidden")&&(t.stopPropagation(),e.prop.first_show=!0,a())}),i.container.on("click.SelectPage","div."+e.css_class.clear_btn,function(i){i.stopPropagation(),e.disabled(e)||(e.clearAll(e,!0),e.elem.hidden.change(),n.eClear&&t.isFunction(n.eClear)&&n.eClear(e))}),i.result_area.on("mousedown.SelectPage",function(t){t.stopPropagation()}),n.multiple&&(n.multipleControlbar&&(i.control.find(".sp_select_all").on("click.SelectPage",function(t){e.selectAllLine(e)}).hover(function(){i.control_text.html(o.select_all)},function(){i.control_text.html("")}),i.control.find(".sp_unselect_all").on("click.SelectPage",function(t){e.unSelectAllLine(e)}).hover(function(){i.control_text.html(o.unselect_all)},function(){i.control_text.html("")}),i.control.find(".sp_clear_all").on("click.SelectPage",function(t){e.clearAll(e,!0)}).hover(function(){i.control_text.html(o.clear_all)},function(){i.control_text.html("")})),i.element_box.on("click.SelectPage",function(e){var n=e.target||e.srcElement;t(n).is("ul")&&i.combo_input.focus()}),i.element_box.on("click.SelectPage","span.tag_close",function(){var i=t(this).closest("li"),o=i.data("dataObj");e.removeTag(e,i),a(),n.eTagRemove&&t.isFunction(n.eTagRemove)&&n.eTagRemove([o])}),e.inputResize(e))},c.prototype.eWhole=function(){var e=this,n=e.css_class,i=function(t){t.elem.combo_input.val(""),t.option.multiple||t.elem.hidden.val(""),t.prop.selected_text=""};t(document.body).off("mousedown.selectPage").on("mousedown.selectPage",function(e){var o=e.target||e.srcElement,a=t(o).closest("div."+n.container);t("div."+n.container+"."+n.container_open).each(function(){if(this!=a[0]){var e=t(this),o=e.find("input."+n.input).data(c.dataKey);return o.elem.combo_input.val()||!o.elem.hidden.val()||o.option.multiple?void(o.elem.results.find("li").not("."+n.message_box).length?o.option.autoFillResult?o.elem.hidden.val()?o.hideResults(o):o.elem.results.find("li.sp_over").length?o.selectCurrentLine(o,!0):o.option.autoSelectFirst?(o.nextLine(o),o.selectCurrentLine(o,!0)):o.hideResults(o):o.hideResults(o):(o.option.noResultClean?i(o):o.option.multiple||o.elem.hidden.val(""),o.hideResults(o))):(o.prop.current_page=1,i(o),o.hideResults(o),!0)}})})},c.prototype.eResultList=function(){var e=this,n=this.css_class;e.elem.results.children("li").hover(function(){return e.prop.key_select?void(e.prop.key_select=!1):void(t(this).hasClass(n.selected)||t(this).hasClass(n.message_box)||(t(this).addClass(n.select),e.setCssFocusedResults(e)))},function(){t(this).removeClass(n.select)}).click(function(i){return e.prop.key_select?void(e.prop.key_select=!1):(i.preventDefault(),i.stopPropagation(),void(t(this).hasClass(n.selected)||e.selectCurrentLine(e,!1)))})},c.prototype.eScroll=function(){var e=this.css_class;t(window).on("scroll.SelectPage",function(n){t("div."+e.container+"."+e.container_open).each(function(){var n=t(this),i=n.find("input."+e.input).data(c.dataKey),o=i.elem.result_area.offset(),a=t(window).scrollTop(),r=t(document).height(),s=t(window).height(),l=i.elem.result_area.outerHeight(),d=o.top+l,u=r>s,p=i.elem.result_area.hasClass("shadowDown");u&&(p?d>s+a&&i.calcResultsSize(i):o.top<a&&i.calcResultsSize(i))})})},c.prototype.ePaging=function(){var t=this;t.option.pagination&&(t.elem.navi.find("li.csFirstPage").off("click").on("click",function(e){e.preventDefault(),t.firstPage(t)}),t.elem.navi.find("li.csPreviousPage").off("click").on("click",function(e){e.preventDefault(),t.prevPage(t)}),t.elem.navi.find("li.csNextPage").off("click").on("click",function(e){e.preventDefault(),t.nextPage(t)}),t.elem.navi.find("li.csLastPage").off("click").on("click",function(e){e.preventDefault(),t.lastPage(t)}))},c.prototype.ajaxErrorNotify=function(t,e){t.showMessage(t.message.ajax_error)},c.prototype.showMessage=function(t,e){if(e){var n='<li class="'+t.css_class.message_box+'"><i class="spfont sp-warning"></i> '+e+"</li>";t.elem.results.empty().append(n).show(),t.calcResultsSize(t),t.setOpenStatus(t,!0),t.elem.control.hide(),t.option.pagination&&t.elem.navi.hide()}},c.prototype.scrollWindow=function(e,n){var i,o=e.getCurrentLine(e),a=o&&!n?o.offset().top:e.elem.container.offset().top;e.prop.size_li=e.elem.results.children("li:first").outerHeight(),i=e.prop.size_li;var r,s=t(window).height(),l=t(window).scrollTop(),c=l+s-i;if(o.length)if(a<l||i>s)r=a-l;else{if(!(a>c))return;r=a-c}else a<l&&(r=a-l);window.scrollBy(0,r)},c.prototype.setOpenStatus=function(t,e){var n=t.elem,i=t.css_class;e?(n.container.addClass(i.container_open),n.result_area.addClass(i.result_open)):(n.container.removeClass(i.container_open),n.result_area.removeClass(i.result_open))},c.prototype.setCssFocusedInput=function(t){},c.prototype.setCssFocusedResults=function(t){},c.prototype.checkValue=function(t){var e=t.elem.combo_input.val();e!=t.prop.prev_value&&(t.prop.prev_value=e,t.prop.first_show=!1,t.option.selectOnly&&t.setButtonAttrDefault(),t.option.multiple||e||(t.elem.combo_input.val(""),t.elem.hidden.val(""),t.elem.clear_btn.remove()),t.suggest(t))},c.prototype.processKey=function(e,n){t.inArray(n.keyCode,[37,38,39,40,27,9,13])===-1&&(16!=n.keyCode&&e.setCssFocusedInput(e),e.inputResize(e),"string"===t.type(e.option.data)?(e.prop.last_input_time=n.timeStamp,setTimeout(function(){n.timeStamp-e.prop.last_input_time===0&&e.checkValue(e)},1e3*e.option.inputDelay)):e.checkValue(e))},c.prototype.processControl=function(e,n){if(t.inArray(n.keyCode,[37,38,39,40,27,9])>-1&&e.elem.result_area.is(":visible")||t.inArray(n.keyCode,[13,9])>-1&&e.getCurrentLine(e))switch(n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0,n.returnValue=!1,n.keyCode){case 37:n.shiftKey?e.firstPage(e):e.prevPage(e);break;case 38:e.prop.key_select=!0,e.prevLine(e);break;case 39:n.shiftKey?e.lastPage(e):e.nextPage(e);break;case 40:e.elem.results.children("li").length?(e.prop.key_select=!0,e.nextLine(e)):e.suggest(e);break;case 9:e.prop.key_paging=!0,e.selectCurrentLine(e,!0);break;case 13:e.selectCurrentLine(e,!0);break;case 27:e.prop.key_paging=!0,e.hideResults(e)}},c.prototype.abortAjax=function(t){t.prop.xhr&&(t.prop.xhr.abort(),t.prop.xhr=!1)},c.prototype.suggest=function(e){var n,i=t.trim(e.elem.combo_input.val());n=e.option.multiple?i:i&&i===e.prop.selected_text?"":i,n=n.split(/[\s　]+/),e.option.eOpen&&t.isFunction(e.option.eOpen)&&e.option.eOpen.call(e),e.abortAjax(e);var o=e.prop.current_page||1;"object"==typeof e.option.data?e.searchForJson(e,n,o):e.searchForDb(e,n,o)},c.prototype.setLoading=function(t){""===t.elem.results.html()&&t.setOpenStatus(t,!0)},c.prototype.searchForDb=function(e,n,i){var o=e.option;o.eAjaxSuccess&&t.isFunction(o.eAjaxSuccess)||e.hideResults(e);var a=o.params,r={},s=o.searchField;n.length&&n[0]&&n[0]!==e.prop.prev_value&&(i=1);var l={q_word:n,pageNumber:i,pageSize:o.pageSize,andOr:o.andOr,orderBy:o.orderBy,searchTable:o.dbTable,showField:e.option.showField,keyField:e.option.keyField,searchField:e.option.searchField};if(o.orderBy!==!1&&(l.orderBy=o.orderBy),l[s]=n[0],a){var c=t.isFunction(a)?a(e):a;r=c&&t.isPlainObject(c)?t.extend({},l,c):l}else r=l;e.prop.xhr=t.ajax({dataType:"json",url:o.data,type:"POST",data:r,success:function(a){if(!a||!t.isPlainObject(a))return e.hideResults(e),void e.ajaxErrorNotify(e,errorThrown);var r={},s={};try{r=o.eAjaxSuccess(a),s.originalResult=r.list,s.cnt_whole=r.totalRow}catch(t){return void e.showMessage(e,e.message.ajax_error)}if(e.elem.navi&&t(e.elem.navi).toggleClass("hide",s.cnt_whole<=s.originalResult.length),s.candidate=[],s.keyField=[],"object"!=typeof s.originalResult)return e.prop.xhr=null,void e.notFoundSearch(e);s.cnt_page=s.originalResult.length;for(var l=0;l<s.cnt_page;l++)for(var c in s.originalResult[l])c==o.keyField&&s.keyField.push(s.originalResult[l][c]),c==o.showField&&s.candidate.push(s.originalResult[l][c]);e.prepareResults(e,s,n,i)},error:function(t,n,i){"abort"!=n&&(e.hideResults(e),e.ajaxErrorNotify(e,i))},complete:function(){e.prop.xhr=null}})},c.prototype.searchForJson=function(e,n,i){var o=e.option,a=[],r=[],s=[],l={},c=0,d=[];do r[c]=n[c].replace(/\W/g,"\\$&").toString(),d[c]=new RegExp(r[c],"gi"),c++;while(c<n.length);for(var c=0;c<o.data.length;c++){for(var u,p=!1,f=o.data[c],h=0;h<d.length;h++)if(u=f[o.searchField],o.formatItem&&t.isFunction(o.formatItem)&&(u=o.formatItem(f)),u.match(d[h])){if(p=!0,"OR"==o.andOr)break}else if(p=!1,"AND"==o.andOr)break;p&&a.push(f)}if(o.orderBy===!1)s=a.concat();else{for(var m=new RegExp("^"+r[0]+"$","gi"),g=new RegExp("^"+r[0],"gi"),y=[],v=[],b=[],c=0;c<a.length;c++){var x=o.orderBy[0][0],w=String(a[c][x]);w.match(m)?y.push(a[c]):w.match(g)?v.push(a[c]):b.push(a[c])}o.orderBy[0][1].match(/^asc$/i)?(y=e.sortAsc(e,y),v=e.sortAsc(e,v),b=e.sortAsc(e,b)):(y=e.sortDesc(e,y),v=e.sortDesc(e,v),b=e.sortDesc(e,b)),s=s.concat(y).concat(v).concat(b)}if(l.cnt_whole=s.length,e.prop.page_move)s.length<=(i-1)*o.pageSize&&(i=1,e.prop.current_page=1);else if(!o.multiple){var _=e.elem.hidden.val();if("undefined"!==t.type(_)&&""!==t.trim(_)){var k=0;t.each(s,function(t,e){if(e[o.keyField]==_)return k=t+1,!1}),i=Math.ceil(k/o.pageSize),i<1&&(i=1),e.prop.current_page=i}}var C=(i-1)*o.pageSize,S=C+o.pageSize;l.originalResult=[];for(var c=C;c<S&&void 0!==s[c];c++){l.originalResult.push(s[c]);for(var T in s[c])T==o.keyField&&(void 0===l.keyField&&(l.keyField=[]),l.keyField.push(s[c][T])),T==o.showField&&(void 0===l.candidate&&(l.candidate=[]),l.candidate.push(s[c][T]))}void 0===l.candidate&&(l.candidate=[]),l.cnt_page=l.candidate.length,e.prepareResults(e,l,n,i)},c.prototype.sortAsc=function(e,n){return n.sort(function(n,i){var o=n[e.option.orderBy[0][0]],a=i[e.option.orderBy[0][0]];return"number"===t.type(o)?o-a:String(o).localeCompare(String(a))}),n},c.prototype.sortDesc=function(e,n){return n.sort(function(n,i){var o=n[e.option.orderBy[0][0]],a=i[e.option.orderBy[0][0]];return"number"===t.type(o)?a-o:String(a).localeCompare(String(o))}),n},c.prototype.notFoundSearch=function(t){t.elem.results.empty(),t.calcResultsSize(t),t.setOpenStatus(t,!0),t.setCssFocusedInput(t)},c.prototype.prepareResults=function(t,e,n,i){t.data=e.originalResult,t.option.pagination&&t.setNavi(t,e.cnt_whole,e.cnt_page,i),e.keyField||(e.keyField=!1),t.option.selectOnly&&1===e.candidate.length&&e.candidate[0]==n[0]&&(t.elem.hidden.val(e.keyField[0]),this.setButtonAttrDefault());var o=!1;n&&n.length&&n[0]&&(o=!0),t.displayResults(t,e,o)},c.prototype.setNavi=function(t,e,n,i){var o=t.message,a=function(t,e,n,i){var a=function(){var e=o.page_info;return e.replace(t.template.page.current,n).replace(t.template.page.total,i)};if(0===e.find("li").length){e.hide().empty();var r="spfont sp-first",s="spfont sp-previous",l="spfont sp-next",c="spfont sp-last";e.append('<li class="csFirstPage" title="'+o.first_title+'" ><a href="javascript:void(0);"> <i class="'+r+'"></i> </a></li>'),e.append('<li class="csPreviousPage" title="'+o.prev_title+'" ><a href="javascript:void(0);"><i class="'+s+'"></i></a></li>'),e.append('<li class="pageInfoBox"><a href="javascript:void(0);"> '+a()+" </a></li>"),e.append('<li class="csNextPage" title="'+o.next_title+'" ><a href="javascript:void(0);"><i class="'+l+'"></i></a></li>'),e.append('<li class="csLastPage" title="'+o.last_title+'" ><a href="javascript:void(0);"> <i class="'+c+'"></i> </a></li>'),
  e.show()}else e.find("li.pageInfoBox a").html(a())},r=t.elem.navi.find("ul"),s=Math.ceil(e/t.option.pageSize);0===s?i=0:s<i?i=s:0===i&&(i=1),t.prop.current_page=i,t.prop.max_page=s,a(t,r,i,s);var l="disabled",c=r.find("li.csFirstPage"),d=r.find("li.csPreviousPage"),u=r.find("li.csNextPage"),p=r.find("li.csLastPage");1===i||0===i?(c.hasClass(l)||c.addClass(l),d.hasClass(l)||d.addClass(l)):(c.hasClass(l)&&c.removeClass(l),d.hasClass(l)&&d.removeClass(l)),i===s||0===s?(u.hasClass(l)||u.addClass(l),p.hasClass(l)||p.addClass(l)):(u.hasClass(l)&&u.removeClass(l),p.hasClass(l)&&p.removeClass(l)),s>1&&t.ePaging()},c.prototype.displayResults=function(e,n,i){var o=e.option,a=e.elem;if(a.results.hide().empty(),o.multiple&&"number"===t.type(o.maxSelectLimit)&&o.maxSelectLimit>0){var r=a.element_box.find("li.selected_tag").length;if(r>0&&r>=o.maxSelectLimit){var s=e.message.max_selected;return void e.showMessage(e,s.replace(e.template.msg.maxSelectLimit,o.maxSelectLimit))}}if(n.candidate.length)for(var l=n.candidate,c=n.keyField,d=a.hidden.val(),u=d?d.split(","):new Array,p="",f=0;f<l.length;f++){if(o.formatItem&&t.isFunction(o.formatItem))try{p=o.formatItem(n.originalResult[f])}catch(t){console.error("formatItem内容格式化函数内容设置不正确！"),p=l[f]}else p=l[f];var h=t("<li>").html(p).attr({pkey:c[f],index:f});o.formatItem||h.attr("title",p),t.inArray(c[f].toString(),u)!==-1&&h.addClass(e.css_class.selected),h.data("dataObj",n.originalResult[f]),a.results.append(h)}else{var m='<li class="'+e.css_class.message_box+'"><i class="spfont sp-warning"></i> '+e.message.not_found+"</li>";a.results.append(m)}a.results.show(),o.multiple&&o.multipleControlbar&&a.control.show(),o.pagination&&a.navi.show(),e.calcResultsSize(e),e.setOpenStatus(e,!0),e.eResultList(),e.eScroll(),i&&n.candidate.length&&o.autoSelectFirst&&e.nextLine(e)},c.prototype.calcResultsSize=function(e){var n=e.option,i=e.elem,o=function(){if("static"!==i.container.css("position")){if(!n.pagination){var e=i.results.find("li:first").outerHeight(!0),o=e*n.listSize;i.results.css({"max-height":o,"overflow-y":"auto"})}var a=t(document).width(),r=t(document).height(),s=t(window).height(),l=i.container.offset(),c=t(window).scrollTop(),d=i.result_area.outerWidth(),o=i.result_area.outerHeight(),u=l.left,p=i.container.outerHeight(),f=l.left+d>a?u-(d-i.container.outerWidth()):u,h=l.top,m=0,g=5,y=h+p+o+g,v=h+o+g,b=r>s;return h-c-g>o&&b&&y>s+c||!b&&y>s&&h>=v?(m=l.top-o-g,i.result_area.removeClass("shadowUp shadowDown").addClass("shadowUp")):(m=l.top+(n.multiple?i.container.outerHeight():p),i.result_area.removeClass("shadowUp shadowDown").addClass("shadowDown"),m+=g),{top:m+"px",left:f+"px"}}var l=i.combo_input.offset();i.result_area.css({top:l.top+i.combo_input.outerHeight()+"px",left:l.left+"px"})};if(i.result_area.is(":visible"))i.result_area.css(o());else{var a=o();i.result_area.css(a).show(1,function(){var t=o();a.top===t.top&&a.left===t.left||i.result_area.css(t)})}},c.prototype.hideResults=function(e){e.prop.key_paging&&(e.scrollWindow(e,!0),e.prop.key_paging=!1),e.setCssFocusedInput(e),e.option.autoFillResult,e.elem.results.empty(),e.elem.result_area.hide(),e.setOpenStatus(e,!1),t(window).off("scroll.SelectPage"),e.abortAjax(e),e.setButtonAttrDefault()},c.prototype.disabled=function(e,n){var i=(e.option,e.elem);return"undefined"===t.type(n)?i.combo_input.prop("disabled"):void("boolean"===t.type(n)&&(i.combo_input.prop("disabled",n),n?i.container.addClass(e.css_class.disabled):i.container.removeClass(e.css_class.disabled)))},c.prototype.firstPage=function(t){t.prop.current_page>1&&(t.prop.current_page=1,t.prop.page_move=!0,t.suggest(t))},c.prototype.prevPage=function(t){t.prop.current_page>1&&(t.prop.current_page--,t.prop.page_move=!0,t.suggest(t))},c.prototype.nextPage=function(t){t.prop.current_page<t.prop.max_page&&(t.prop.current_page++,t.prop.page_move=!0,t.suggest(t))},c.prototype.lastPage=function(t){t.prop.current_page<t.prop.max_page&&(t.prop.current_page=t.prop.max_page,t.prop.page_move=!0,t.suggest(t))},c.prototype.afterAction=function(t,e){t.inputResize(t),t.elem.combo_input.change(),t.setCssFocusedInput(t),t.prop.init_set||(t.option.multiple?(t.option.selectToCloseList&&(t.hideResults(t),t.elem.combo_input.blur()),!t.option.selectToCloseList&&e&&(t.suggest(t),t.elem.combo_input.focus())):(t.hideResults(t),t.elem.combo_input.blur()))},c.prototype.selectCurrentLine=function(e,n){e.scrollWindow(e,!0);var i=e.option,o=e.getCurrentLine(e);if(o){var a=o.data("dataObj"),r=a[i.showField]||o.text(),s=o.attr("pkey");if(i.multiple){e.elem.combo_input.val("");var l={text:r,value:s};e.isAlreadySelected(e,l)||(e.addNewTag(e,a,l),e.tagValuesSet(e))}else e.elem.combo_input.val(r),e.elem.hidden.val(s);i.selectOnly&&e.setButtonAttrDefault(),i.eSelect&&t.isFunction(i.eSelect)&&i.eSelect(a,e),e.prop.prev_value=e.elem.combo_input.val(),e.prop.selected_text=e.elem.combo_input.val(),e.putClearButton()}e.afterAction(e,!0)},c.prototype.putClearButton=function(){this.option.multiple||this.elem.combo_input.prop("disabled")||this.elem.container.append(this.elem.clear_btn)},c.prototype.selectAllLine=function(e){var n=e.option,i=new Array;e.elem.results.find("li").each(function(o,a){var r=t(a),s=r.data("dataObj"),l=s[n.showField]||r.text(),c=r.attr("pkey"),d={text:l,value:c};if(e.isAlreadySelected(e,d)||(e.addNewTag(e,s,d),e.tagValuesSet(e)),i.push(s),"number"===t.type(n.maxSelectLimit)&&n.maxSelectLimit>0&&n.maxSelectLimit===e.elem.element_box.find("li.selected_tag").length)return!1}),n.eSelect&&t.isFunction(n.eSelect)&&n.eSelect(i,e),e.afterAction(e,!0)},c.prototype.unSelectAllLine=function(e){var n=e.option,i=(e.elem.results.find("li").length,[]);e.elem.results.find("li").each(function(n,o){var a=t(o).attr("pkey"),r=e.elem.element_box.find('li.selected_tag[itemvalue="'+a+'"]');r.length&&i.push(r.data("dataObj")),e.removeTag(e,r)}),e.afterAction(e,!0),n.eTagRemove&&t.isFunction(n.eTagRemove)&&n.eTagRemove(i)},c.prototype.clearAll=function(e,n){var i=e.option,o=[];i.multiple&&(e.elem.element_box.find("li.selected_tag").each(function(e,n){o.push(t(n).data("dataObj")),n.remove()}),e.elem.element_box.find("li.selected_tag").remove()),e.reset(e),e.afterAction(e,n),i.multiple?i.eTagRemove&&t.isFunction(i.eTagRemove)&&i.eTagRemove(o):e.elem.clear_btn.remove()},c.prototype.reset=function(t){t.elem.combo_input.val(""),t.elem.hidden.val(""),t.prop.prev_value="",t.prop.selected_text="",t.prop.current_page=1},c.prototype.getCurrentLine=function(t){if(t.elem.result_area.is(":hidden"))return!1;var e=t.elem.results.find("li."+t.css_class.select);return!!e.length&&e},c.prototype.isAlreadySelected=function(e,n){var i=!1;if(n.value){var o=e.elem.hidden.val();if(o){var a=o.split(",");a&&a.length&&t.inArray(n.value,a)!=-1&&(i=!0)}}return i},c.prototype.addNewTag=function(e,n,i){if(e.option.multiple&&n&&i){var o,a=e.template.tag.content;a=a.replace(e.template.tag.textKey,i.text),a=a.replace(e.template.tag.valueKey,i.value),o=t(a),o.data("dataObj",n),e.elem.combo_input.prop("disabled")&&o.find("span.tag_close").hide(),e.elem.combo_input.closest("li").before(o)}},c.prototype.removeTag=function(e,n){var i=t(n).attr("itemvalue"),o=e.elem.hidden.val();if("undefined"!=t.type(i)&&o){var a=o.split(","),r=t.inArray(i.toString(),a);r!=-1&&(a.splice(r,1),e.elem.hidden.val(a.toString()))}t(n).remove(),e.inputResize(e)},c.prototype.tagValuesSet=function(e){if(e.option.multiple){var n=e.elem.element_box.find("li.selected_tag");if(n&&n.length){var i=new Array;t.each(n,function(e,n){var o=t(n).attr("itemvalue");"undefined"!==t.type(o)&&i.push(o)}),i.length&&e.elem.hidden.val(i.join(","))}}},c.prototype.inputResize=function(t){if(t.option.multiple){var e=t.elem.combo_input.closest("li"),n=function(t,e){e.removeClass("full_width");var n=t.elem.combo_input.val().length+1,i=.75*n+"em";t.elem.combo_input.css("width",i).removeAttr("placeholder")};0===t.elem.element_box.find("li.selected_tag").length&&t.elem.combo_input.attr("placeholder_bak")?(e.hasClass("full_width")||e.addClass("full_width"),t.elem.combo_input.attr("placeholder",t.elem.combo_input.attr("placeholder_bak")).removeAttr("style")):n(t,e)}},c.prototype.nextLine=function(t){var e,n=t.getCurrentLine(t);if(n?(e=t.elem.results.children("li").index(n),n.removeClass(t.css_class.select)):e=-1,e++,e<t.elem.results.children("li").length){var i=t.elem.results.children("li").eq(e);i.addClass(t.css_class.select),t.setCssFocusedResults(t)}else t.setCssFocusedInput(t);t.scrollWindow(t,!1)},c.prototype.prevLine=function(t){var e,n=t.getCurrentLine(t);if(n?(e=t.elem.results.children("li").index(n),n.removeClass(t.css_class.select)):e=t.elem.results.children("li").length,e--,e>-1){var i=t.elem.results.children("li").eq(e);i.addClass(t.css_class.select),t.setCssFocusedResults(t)}else t.setCssFocusedInput(t);t.scrollWindow(t,!1)};var d=t.fn.selectPage;t.fn.selectPage=e,t.fn.selectPage.Constructor=c,t.fn.selectPageClear=i,t.fn.selectPageRefresh=o,t.fn.selectPageData=a,t.fn.selectPageDisabled=r,t.fn.selectPageText=s,t.fn.selectPage.noConflict=function(){return t.fn.selectPage=d,this}}(window.jQuery),define("selectpage",function(){});