if(function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(h,e){var u=[],d=u.slice,g=u.concat,a=u.push,o=u.indexOf,i={},t=i.toString,m=i.hasOwnProperty,v={},n="1.11.3",k=function(e,t){return new k.fn.init(e,t)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,r=/^-ms-/,l=/-([\da-z])/gi,c=function(e,t){return t.toUpperCase()};function p(e){var t="length"in e&&e.length,i=k.type(e);return"function"!==i&&!k.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===i||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),V=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),X=new RegExp(R),Q=new RegExp("^"+P+"$"),Y={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q.replace("w","w*")+")"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},J=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ie=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,i){var n="0x"+t-65536;return n!=n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},oe=function(){v()};try{j.apply(t=L.call(S.childNodes),S.childNodes),t[S.childNodes.length].nodeType}catch(e){j={apply:t.length?function(e,t){_.apply(e,L.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function se(e,t,i,n){var o,s,r,a,l,c,d,u,p,f;if((t?t.ownerDocument||t:S)!==T&&v(t),i=i||[],a=(t=t||T).nodeType,"string"!=typeof e||!e||1!==a&&9!==a&&11!==a)return i;if(!n&&y){if(11!==a&&(o=Z.exec(e)))if(r=o[1]){if(9===a){if(!(s=t.getElementById(r))||!s.parentNode)return i;if(s.id===r)return i.push(s),i}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(r))&&k(t,s)&&s.id===r)return i.push(s),i}else{if(o[2])return j.apply(i,t.getElementsByTagName(e)),i;if((r=o[3])&&h.getElementsByClassName)return j.apply(i,t.getElementsByClassName(r)),i}if(h.qsa&&(!b||!b.test(e))){if(u=d=C,p=t,f=1!==a&&e,1===a&&"object"!==t.nodeName.toLowerCase()){for(c=g(e),(d=t.getAttribute("id"))?u=d.replace(te,"\\$&"):t.setAttribute("id",u),u="[id='"+u+"'] ",l=c.length;l--;)c[l]=u+me(c[l]);p=ee.test(e)&&he(t.parentNode)||t,f=c.join(",")}if(f)try{return j.apply(i,p.querySelectorAll(f)),i}catch(e){}finally{d||t.removeAttribute("id")}}}return m(e.replace(B,"$1"),t,i,n)}function re(){var n=[];return function e(t,i){return n.push(t+" ")>w.cacheLength&&delete e[n.shift()],e[t+" "]=i}}function ae(e){return e[C]=!0,e}function le(e){var t=T.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var i=e.split("|"),n=e.length;n--;)w.attrHandle[i[n]]=t}function de(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||N)-(~e.sourceIndex||N);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function ue(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pe(i){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===i}}function fe(r){return ae(function(s){return s=+s,ae(function(e,t){for(var i,n=r([],e.length,s),o=n.length;o--;)e[i=n[o]]&&(e[i]=!(t[i]=e[i]))})})}function he(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in h=se.support={},n=se.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},v=se.setDocument=function(e){var t,i,l=e?e.ownerDocument||e:S;return l!==T&&9===l.nodeType&&l.documentElement?(o=(T=l).documentElement,(i=l.defaultView)&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),y=!n(l),h.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=le(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=K.test(l.getElementsByClassName),h.getById=le(function(e){return o.appendChild(e).id=C,!l.getElementsByName||!l.getElementsByName(C).length}),h.getById?(w.find.ID=function(e,t){if(void 0!==t.getElementById&&y){var i=t.getElementById(e);return i&&i.parentNode?[i]:[]}},w.filter.ID=function(e){var t=e.replace(ie,ne);return function(e){return e.getAttribute("id")===t}}):(delete w.find.ID,w.filter.ID=function(e){var i=e.replace(ie,ne);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===i}}),w.find.TAG=h.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],o=0,s=t.getElementsByTagName(e);if("*"===e){for(;i=s[o++];)1===i.nodeType&&n.push(i);return n}return s},w.find.CLASS=h.getElementsByClassName&&function(e,t){return y?t.getElementsByClassName(e):void 0},r=[],b=[],(h.qsa=K.test(l.querySelectorAll))&&(le(function(e){o.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&b.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||b.push("\\["+M+"*(?:value|"+I+")"),e.querySelectorAll("[id~="+C+"-]").length||b.push("~="),e.querySelectorAll(":checked").length||b.push(":checked"),e.querySelectorAll("a#"+C+"+*").length||b.push(".#.+[+~]")}),le(function(e){var t=l.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&b.push("name"+M+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||b.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),b.push(",.*:")})),(h.matchesSelector=K.test(a=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&le(function(e){h.disconnectedMatch=a.call(e,"div"),a.call(e,"[s!='']:x"),r.push("!=",R)}),b=b.length&&new RegExp(b.join("|")),r=r.length&&new RegExp(r.join("|")),t=K.test(o.compareDocumentPosition),k=t||K.test(o.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===i?e===l||e.ownerDocument===S&&k(S,e)?-1:t===l||t.ownerDocument===S&&k(S,t)?1:c?H(c,e)-H(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var i,n=0,o=e.parentNode,s=t.parentNode,r=[e],a=[t];if(!o||!s)return e===l?-1:t===l?1:o?-1:s?1:c?H(c,e)-H(c,t):0;if(o===s)return de(e,t);for(i=e;i=i.parentNode;)r.unshift(i);for(i=t;i=i.parentNode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?de(r[n],a[n]):r[n]===S?-1:a[n]===S?1:0},l):T},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==T&&v(e),t=t.replace(V,"='$1']"),!(!h.matchesSelector||!y||r&&r.test(t)||b&&b.test(t)))try{var i=a.call(e,t);if(i||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ie,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(ie,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&X.test(i)&&(t=g(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ie,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=l[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&l(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(i,n,o){return function(e){var t=se.attr(e,i);return null==t?"!="===n:!n||(t+="","="===n?t===o:"!="===n?t!==o:"^="===n?o&&0===t.indexOf(o):"*="===n?o&&-1(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(e,i,n){if(k.isFunction(i))return k.grep(e,function(e,t){return!!i.call(e,t,e)!==n});if(i.nodeType)return k.grep(e,function(e){return e===i!==n});if("string"==typeof i){if(w.test(i))return k.filter(i,e,n);i=k.filter(i,e)}return k.grep(e,function(e){return 0<=k.inArray(e,i)!==n})}k.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?k.find.matchesSelector(n,e)?[n]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,i=[],n=this,o=n.length;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t)[^>]*|#([\w-]*))$/;(k.fn.init=function(e,t){var i,n;if(!e)return this;if("string"==typeof e){if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:S.exec(e))||!i[1]&&t)return!t||t.jquery?(t||T).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),b.test(i[1])&&k.isPlainObject(t))for(i in t)k.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((n=C.getElementById(i[2]))&&n.parentNode){if(n.id!==i[2])return T.find(e);this.length=1,this[0]=n}return this.context=C,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):k.isFunction(e)?void 0!==T.ready?T.ready(e):e(k):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),k.makeArray(e,this))}).prototype=k.fn,T=k(C);var $=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.extend({dir:function(e,t,i){for(var n=[],o=e[t];o&&9!==o.nodeType&&(void 0===i||1!==o.nodeType||!k(o).is(i));)1===o.nodeType&&n.push(o),o=o[t];return n},sibling:function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}}),k.fn.extend({has:function(e){var t,i=k(e,this),n=i.length;return this.filter(function(){for(t=0;t
a",v.leadingWhitespace=3===t.firstChild.nodeType,v.tbody=!t.getElementsByTagName("tbody").length,v.htmlSerialize=!!t.getElementsByTagName("link").length,v.html5Clone="<:nav>"!==C.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,i.appendChild(e),v.appendChecked=e.checked,t.innerHTML="",v.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,i.appendChild(t),t.innerHTML="",v.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,v.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){v.noCloneEvent=!1}),t.cloneNode(!0).click()),null==v.deleteExpando){v.deleteExpando=!0;try{delete t.test}catch(e){v.deleteExpando=!1}}}(),function(){var e,t,i=C.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(v[e+"Bubbles"]=t in h)||(i.setAttribute(t,"t"),v[e+"Bubbles"]=!1===i.attributes[t].expando);i=null}();var X=/^(?:input|select|textarea)$/i,Q=/^key/,Y=/^(?:mouse|pointer|contextmenu)|click/,J=/^(?:focusinfocus|focusoutblur)$/,G=/^([^.]*)(?:\.(.+)|)$/;function K(){return!0}function Z(){return!1}function ee(){try{return C.activeElement}catch(e){}}function te(e){var t=ie.split("|"),i=e.createDocumentFragment();if(i.createElement)for(;t.length;)i.createElement(t.pop());return i}k.event={global:{},add:function(e,t,i,n,o){var s,r,a,l,c,d,u,p,f,h,g,m=k._data(e);if(m){for(i.handler&&(i=(l=i).handler,o=l.selector),i.guid||(i.guid=k.guid++),(r=m.events)||(r=m.events={}),(d=m.handle)||((d=m.handle=function(e){return typeof k===H||e&&k.event.triggered===e.type?void 0:k.event.dispatch.apply(d.elem,arguments)}).elem=e),a=(t=(t||"").match(O)||[""]).length;a--;)f=g=(s=G.exec(t[a])||[])[1],h=(s[2]||"").split(".").sort(),f&&(c=k.event.special[f]||{},f=(o?c.delegateType:c.bindType)||f,c=k.event.special[f]||{},u=k.extend({type:f,origType:g,data:n,handler:i,guid:i.guid,selector:o,needsContext:o&&k.expr.match.needsContext.test(o),namespace:h.join(".")},l),(p=r[f])||((p=r[f]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,n,h,d)||(e.addEventListener?e.addEventListener(f,d,!1):e.attachEvent&&e.attachEvent("on"+f,d))),c.add&&(c.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),o?p.splice(p.delegateCount++,0,u):p.push(u),k.event.global[f]=!0);e=null}},remove:function(e,t,i,n,o){var s,r,a,l,c,d,u,p,f,h,g,m=k.hasData(e)&&k._data(e);if(m&&(d=m.events)){for(c=(t=(t||"").match(O)||[""]).length;c--;)if(f=g=(a=G.exec(t[c])||[])[1],h=(a[2]||"").split(".").sort(),f){for(u=k.event.special[f]||{},p=d[f=(n?u.delegateType:u.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=s=p.length;s--;)r=p[s],!o&&g!==r.origType||i&&i.guid!==r.guid||a&&!a.test(r.namespace)||n&&n!==r.selector&&("**"!==n||!r.selector)||(p.splice(s,1),r.selector&&p.delegateCount--,u.remove&&u.remove.call(e,r));l&&!p.length&&(u.teardown&&!1!==u.teardown.call(e,h,m.handle)||k.removeEvent(e,f,m.handle),delete d[f])}else for(f in d)k.event.remove(e,f+t[c],i,n,!0);k.isEmptyObject(d)&&(delete m.handle,k._removeData(e,"events"))}},trigger:function(e,t,i,n){var o,s,r,a,l,c,d,u=[i||C],p=m.call(e,"type")?e.type:e,f=m.call(e,"namespace")?e.namespace.split("."):[];if(r=c=i=i||C,3!==i.nodeType&&8!==i.nodeType&&!J.test(p+k.event.triggered)&&(0<=p.indexOf(".")&&(p=(f=p.split(".")).shift(),f.sort()),s=p.indexOf(":")<0&&"on"+p,(e=e[k.expando]?e:new k.Event(p,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=f.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:k.makeArray(t,[e]),l=k.event.special[p]||{},n||!l.trigger||!1!==l.trigger.apply(i,t))){if(!n&&!l.noBubble&&!k.isWindow(i)){for(a=l.delegateType||p,J.test(a+p)||(r=r.parentNode);r;r=r.parentNode)u.push(r),c=r;c===(i.ownerDocument||C)&&u.push(c.defaultView||c.parentWindow||h)}for(d=0;(r=u[d++])&&!e.isPropagationStopped();)e.type=1]","i"),se=/^\s+/,re=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ae=/<([\w:]+)/,le=/\s*$/g,ge={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:v.htmlSerialize?[0,"",""]:[1,"X
","
"]},me=te(C).appendChild(C.createElement("div"));function ve(e,t){var i,n,o=0,s=typeof e.getElementsByTagName!==H?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==H?e.querySelectorAll(t||"*"):void 0;if(!s)for(s=[],i=e.childNodes||e;null!=(n=i[o]);o++)!t||k.nodeName(n,t)?s.push(n):k.merge(s,ve(n,t));return void 0===t||t&&k.nodeName(e,t)?k.merge([e],s):s}function ye(e){V.test(e.type)&&(e.defaultChecked=e.checked)}function be(e,t){return k.nodeName(e,"table")&&k.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function we(e){return e.type=(null!==k.find.attr(e,"type"))+"/"+e.type,e}function xe(e){var t=fe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Te(e,t){for(var i,n=0;null!=(i=e[n]);n++)k._data(i,"globalEval",!t||k._data(t[n],"globalEval"))}function ke(e,t){if(1===t.nodeType&&k.hasData(e)){var i,n,o,s=k._data(e),r=k._data(t,s),a=s.events;if(a)for(i in delete r.handle,r.events={},a)for(n=0,o=a[i].length;n")?s=e.cloneNode(!0):(me.innerHTML=e.outerHTML,me.removeChild(s=me.firstChild)),!(v.noCloneEvent&&v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(n=ve(s),a=ve(e),r=0;null!=(o=a[r]);++r)n[r]&&Ce(o,n[r]);if(t)if(i)for(a=a||ve(e),n=n||ve(s),r=0;null!=(o=a[r]);r++)ke(o,n[r]);else ke(e,s);return 0<(n=ve(s,"script")).length&&Te(n,!l&&ve(e,"script")),n=a=o=null,s},buildFragment:function(e,t,i,n){for(var o,s,r,a,l,c,d,u=e.length,p=te(t),f=[],h=0;h")+d[2],o=d[0];o--;)a=a.lastChild;if(!v.leadingWhitespace&&se.test(s)&&f.push(t.createTextNode(se.exec(s)[0])),!v.tbody)for(o=(s="table"!==l||le.test(s)?""!==d[1]||le.test(s)?0:a:a.firstChild)&&s.childNodes.length;o--;)k.nodeName(c=s.childNodes[o],"tbody")&&!c.childNodes.length&&s.removeChild(c);for(k.merge(f,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=p.lastChild}else f.push(t.createTextNode(s));for(a&&p.removeChild(a),v.appendChecked||k.grep(ve(f,"input"),ye),h=0;s=f[h++];)if((!n||-1===k.inArray(s,n))&&(r=k.contains(s.ownerDocument,s),a=ve(p.appendChild(s),"script"),r&&Te(a),i))for(o=0;s=a[o++];)pe.test(s.type||"")&&i.push(s);return a=null,p},cleanData:function(e,t){for(var i,n,o,s,r=0,a=k.expando,l=k.cache,c=v.deleteExpando,d=k.event.special;null!=(i=e[r]);r++)if((t||k.acceptData(i))&&(s=(o=i[a])&&l[o])){if(s.events)for(n in s.events)d[n]?k.event.remove(i,n):k.removeEvent(i,n,s.handle);l[o]&&(delete l[o],c?delete i[a]:typeof i.removeAttribute!==H?i.removeAttribute(a):i[a]=null,u.push(o))}}}),k.fn.extend({text:function(e){return U(this,function(e){return void 0===e?k.text(this):this.empty().append((this[0]&&this[0].ownerDocument||C).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||be(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=be(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var i,n=e?k.filter(e,this):this,o=0;null!=(i=n[o]);o++)t||1!==i.nodeType||k.cleanData(ve(i)),i.parentNode&&(t&&k.contains(i.ownerDocument,i)&&Te(ve(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&k.cleanData(ve(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&k.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return U(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(ne,""):void 0;if(!("string"!=typeof e||de.test(e)||!v.htmlSerialize&&oe.test(e)||!v.leadingWhitespace&&se.test(e)||ge[(ae.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(re,"<$1>");try{for(;i")).appendTo(t.documentElement))[0].contentWindow||Se[0].contentDocument).document).write(),t.close(),i=Ae(e,t),Se.detach()),Ee[e]=i),i}v.shrinkWrapBlocks=function(){return null!=$e?$e:($e=!1,(t=C.getElementsByTagName("body")[0])&&t.style?(e=C.createElement("div"),(i=C.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(i).appendChild(e),typeof e.style.zoom!==H&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(C.createElement("div")).style.width="5px",$e=3!==e.offsetWidth),t.removeChild(i),$e):void 0);var e,t,i};var Oe,De,_e=/^margin/,je=new RegExp("^("+z+")(?!px)[a-z%]+$","i"),Le=/^(top|right|bottom|left)$/;function He(t,i){return{get:function(){var e=t();if(null!=e)return e?void delete this.get:(this.get=i).apply(this,arguments)}}}h.getComputedStyle?(Oe=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):h.getComputedStyle(e,null)},De=function(e,t,i){var n,o,s,r,a=e.style;return r=(i=i||Oe(e))?i.getPropertyValue(t)||i[t]:void 0,i&&(""!==r||k.contains(e.ownerDocument,e)||(r=k.style(e,t)),je.test(r)&&_e.test(t)&&(n=a.width,o=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=n,a.minWidth=o,a.maxWidth=s)),void 0===r?r:r+""}):C.documentElement.currentStyle&&(Oe=function(e){return e.currentStyle},De=function(e,t,i){var n,o,s,r,a=e.style;return null==(r=(i=i||Oe(e))?i[t]:void 0)&&a&&a[t]&&(r=a[t]),je.test(r)&&!Le.test(t)&&(n=a.left,(s=(o=e.runtimeStyle)&&o.left)&&(o.left=e.currentStyle.left),a.left="fontSize"===t?"1em":r,r=a.pixelLeft+"px",a.left=n,s&&(o.left=s)),void 0===r?r:r+""||"auto"}),function(){var e,t,i,o,s,r,a;if((e=C.createElement("div")).innerHTML="
a",t=(i=e.getElementsByTagName("a")[0])&&i.style){function n(){var e,t,i,n;(t=C.getElementsByTagName("body")[0])&&t.style&&(e=C.createElement("div"),(i=C.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(i).appendChild(e),e.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=s=!1,a=!0,h.getComputedStyle&&(o="1%"!==(h.getComputedStyle(e,null)||{}).top,s="4px"===(h.getComputedStyle(e,null)||{width:"4px"}).width,(n=e.appendChild(C.createElement("div"))).style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",e.style.width="1px",a=!parseFloat((h.getComputedStyle(n,null)||{}).marginRight),e.removeChild(n)),e.innerHTML="
t
",(n=e.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(r=0===n[0].offsetHeight)&&(n[0].style.display="",n[1].style.display="none",r=0===n[0].offsetHeight),t.removeChild(i))}t.cssText="float:left;opacity:.5",v.opacity="0.5"===t.opacity,v.cssFloat=!!t.cssFloat,e.style.backgroundClip="content-box",e.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===e.style.backgroundClip,v.boxSizing=""===t.boxSizing||""===t.MozBoxSizing||""===t.WebkitBoxSizing,k.extend(v,{reliableHiddenOffsets:function(){return null==r&&n(),r},boxSizingReliable:function(){return null==s&&n(),s},pixelPosition:function(){return null==o&&n(),o},reliableMarginRight:function(){return null==a&&n(),a}})}}(),k.swap=function(e,t,i,n){var o,s,r={};for(s in t)r[s]=e.style[s],e.style[s]=t[s];for(s in o=i.apply(e,n||[]),t)e.style[s]=r[s];return o};var Ie=/alpha\([^)]*\)/i,Me=/opacity\s*=\s*([^)]*)/,qe=/^(none|table(?!-c[ea]).+)/,Pe=new RegExp("^("+z+")(.*)$","i"),Fe=new RegExp("^([+-])=("+z+")","i"),Re={position:"absolute",visibility:"hidden",display:"block"},ze={letterSpacing:"0",fontWeight:"400"},Be=["Webkit","O","Moz","ms"];function We(e,t){if(t in e)return t;for(var i=t.charAt(0).toUpperCase()+t.slice(1),n=t,o=Be.length;o--;)if((t=Be[o]+i)in e)return t;return n}function Ue(e,t){for(var i,n,o,s=[],r=0,a=e.length;r
a",tt=Ze.getElementsByTagName("a")[0],it=(et=C.createElement("select")).appendChild(C.createElement("option")),Ke=Ze.getElementsByTagName("input")[0],tt.style.cssText="top:1px",v.getSetAttribute="t"!==Ze.className,v.style=/top/.test(tt.getAttribute("style")),v.hrefNormalized="/a"===tt.getAttribute("href"),v.checkOn=!!Ke.value,v.optSelected=it.selected,v.enctype=!!C.createElement("form").enctype,et.disabled=!0,v.optDisabled=!it.disabled,(Ke=C.createElement("input")).setAttribute("value",""),v.input=""===Ke.getAttribute("value"),Ke.value="t",Ke.setAttribute("type","radio"),v.radioValue="t"===Ke.value;var pt=/\r/g;k.fn.extend({val:function(i){var n,e,o,t=this[0];return arguments.length?(o=k.isFunction(i),this.each(function(e){var t;1===this.nodeType&&(null==(t=o?i.call(this,e,k(this).val()):i)?t="":"number"==typeof t?t+="":k.isArray(t)&&(t=k.map(t,function(e){return null==e?"":e+""})),(n=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):t?(n=k.valHooks[t.type]||k.valHooks[t.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(pt,""):null==e?"":e:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:k.trim(k.text(e))}},select:{get:function(e){for(var t,i,n=e.options,o=e.selectedIndex,s="select-one"===e.type||o<0,r=s?null:[],a=s?o+1:n.length,l=o<0?a:s?o:0;l").append(k.parseHTML(e)).find(n):e)}).complete(i&&function(e,t){r.each(i,o||[e.responseText,t,e])}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.filters.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length};var Kt=h.document.documentElement;function Zt(e){return k.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}k.offset={setOffset:function(e,t,i){var n,o,s,r,a,l,c=k.css(e,"position"),d=k(e),u={};"static"===c&&(e.style.position="relative"),a=d.offset(),s=k.css(e,"top"),l=k.css(e,"left"),("absolute"===c||"fixed"===c)&&-1this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):i==e?this.pause().cycle():this.slide(idocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},a.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},a.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},m.prototype.init=function(e,t,i){if(this.enabled=!0,this.type=e,this.$element=g(t),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&g(g.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 n=this.options.trigger.split(" "),o=n.length;o--;){var s=n[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,g.proxy(this.toggle,this));else if("manual"!=s){var r="hover"==s?"mouseenter":"focusin",a="hover"==s?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,g.proxy(this.enter,this)),this.$element.on(a+"."+this.type,this.options.selector,g.proxy(this.leave,this))}}this.options.selector?this._options=g.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},m.prototype.getDefaults=function(){return m.DEFAULTS},m.prototype.getOptions=function(e){return(e=g.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},m.prototype.getDelegateOptions=function(){var i={},n=this.getDefaults();return this._options&&g.each(this._options,function(e,t){n[e]!=t&&(i[e]=t)}),i},m.prototype.enter=function(e){var t=e instanceof this.constructor?e:g(e.currentTarget).data("bs."+this.type);return t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),g(e.currentTarget).data("bs."+this.type,t)),e instanceof g.Event&&(t.inState["focusin"==e.type?"focus":"hover"]=!0),t.tip().hasClass("in")||"in"==t.hoverState?void(t.hoverState="in"):(clearTimeout(t.timeout),t.hoverState="in",t.options.delay&&t.options.delay.show?void(t.timeout=setTimeout(function(){"in"==t.hoverState&&t.show()},t.options.delay.show)):t.show())},m.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},m.prototype.leave=function(e){var t=e instanceof this.constructor?e:g(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),g(e.currentTarget).data("bs."+this.type,t)),e instanceof g.Event&&(t.inState["focusout"==e.type?"focus":"hover"]=!1),!t.isInStateTrue())return clearTimeout(t.timeout),t.hoverState="out",t.options.delay&&t.options.delay.hide?void(t.timeout=setTimeout(function(){"out"==t.hoverState&&t.hide()},t.options.delay.hide)):t.hide()},m.prototype.show=function(){var e=g.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var t=g.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!t)return;var i=this,n=this.tip(),o=this.getUID(this.type);this.setContent(),n.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&n.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,r=/\s?auto?\s?/i,a=r.test(s);a&&(s=s.replace(r,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?n.appendTo(this.options.container):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),c=n[0].offsetWidth,d=n[0].offsetHeight;if(a){var u=s,p=this.getPosition(this.$viewport);s="bottom"==s&&l.bottom+d>p.bottom?"top":"top"==s&&l.top-dp.width?"left":"left"==s&&l.left-cr.top+r.height&&(o.top=r.top+r.height-l)}else{var c=t.left-s,d=t.left+s+i;cr.right&&(o.left=r.left+r.width-d)}return o},m.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},m.prototype.getUID=function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},m.prototype.tip=function(){if(!this.$tip&&(this.$tip=g(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},m.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},m.prototype.enable=function(){this.enabled=!0},m.prototype.disable=function(){this.enabled=!1},m.prototype.toggleEnabled=function(){this.enabled=!this.enabled},m.prototype.toggle=function(e){var t=this;e&&((t=g(e.currentTarget).data("bs."+this.type))||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),g(e.currentTarget).data("bs."+this.type,t))),e?(t.inState.click=!t.inState.click,t.isInStateTrue()?t.enter(t):t.leave(t)):t.tip().hasClass("in")?t.leave(t):t.enter(t)},m.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})};var e=g.fn.tooltip;g.fn.tooltip=function(n){return this.each(function(){var e=g(this),t=e.data("bs.tooltip"),i="object"==typeof n&&n;!t&&/destroy|hide/.test(n)||(t||e.data("bs.tooltip",t=new m(this,i)),"string"==typeof n&&t[n]())})},g.fn.tooltip.Constructor=m,g.fn.tooltip.noConflict=function(){return g.fn.tooltip=e,this}}(jQuery),function(o){"use strict";var s=function(e,t){this.init("popover",e,t)};if(!o.fn.tooltip)throw new Error("Popover requires tooltip.js");s.VERSION="3.3.7",s.DEFAULTS=o.extend({},o.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),s.prototype=o.extend({},o.fn.tooltip.Constructor.prototype),(s.prototype.constructor=s).prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),i=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},s.prototype.hasContent=function(){return this.getTitle()||this.getContent()},s.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var e=o.fn.popover;o.fn.popover=function(n){return this.each(function(){var e=o(this),t=e.data("bs.popover"),i="object"==typeof n&&n;!t&&/destroy|hide/.test(n)||(t||e.data("bs.popover",t=new s(this,i)),"string"==typeof n&&t[n]())})},o.fn.popover.Constructor=s,o.fn.popover.noConflict=function(){return o.fn.popover=e,this}}(jQuery),function(s){"use strict";function o(e,t){this.$body=s(document.body),this.$scrollElement=s(s(e).is(document.body)?window:e),this.options=s.extend({},o.DEFAULTS,t),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",s.proxy(this.process,this)),this.refresh(),this.process()}function t(n){return this.each(function(){var e=s(this),t=e.data("bs.scrollspy"),i="object"==typeof n&&n;t||e.data("bs.scrollspy",t=new o(this,i)),"string"==typeof n&&t[n]()})}o.VERSION="3.3.7",o.DEFAULTS={offset:10},o.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},o.prototype.refresh=function(){var e=this,n="offset",o=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),s.isWindow(this.$scrollElement[0])||(n="position",o=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=s(this),t=e.data("target")||e.attr("href"),i=/^#./.test(t)&&s(t);return i&&i.length&&i.is(":visible")&&[[i[n]().top+o,t]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},o.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),o=this.offsets,s=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),n<=t)return r!=(e=s[s.length-1])&&this.activate(e);if(r&&t=o[e]&&(void 0===o[e+1]||t .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),i&&i()}var o=t.find("> .active"),s=i&&a.support.transition&&(o.length&&o.hasClass("fade")||!!t.find("> .fade").length);o.length&&s?o.one("bsTransitionEnd",n).emulateTransitionEnd(r.TRANSITION_DURATION):n(),o.removeClass("in")};var e=a.fn.tab;a.fn.tab=t,a.fn.tab.Constructor=r,a.fn.tab.noConflict=function(){return a.fn.tab=e,this};var i=function(e){e.preventDefault(),t.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(l){"use strict";function i(n){return this.each(function(){var e=l(this),t=e.data("bs.affix"),i="object"==typeof n&&n;t||e.data("bs.affix",t=new c(this,i)),"string"==typeof n&&t[n]()})}var c=function(e,t){this.options=l.extend({},c.DEFAULTS,t),this.$target=l(this.options.target).on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.7",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(e,t,i,n){var o=this.$target.scrollTop(),s=this.$element.offset(),r=this.$target.height();if(null!=i&&"top"==this.affixed)return oPrevious',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return c('',o.body.appendChild(e)},g.sweetAlert=g.swal=function(){function e(e){var t=e||g.event,i=t.target||t.srcElement,n=t.relatedTarget;if(k(d,"visible")){var o=-1;if(null!==n){for(var s=0;s"),n.innerHTML=$(e.text||"").split("\n").join("
"),e.text&&E(n),A(t.querySelectorAll(".icon")),e.type){for(var r=!1,a=0;a'"`\\]|&#x?\d+[A-F]?;?|%3[A-F]/gim,k=m.noop,C=m.proxy,S=m.trim,$=m.isFunction,E=function(e){return"string"==typeof e},A=function(e){return e&&"[object Object]"===Object.prototype.toString.call(e)},N=document.documentMode||+(navigator.userAgent.match(/MSIE (\d+)/)&&RegExp.$1),O=function(e,t,i){return e&&e.tagName?i===f?e.getAttribute(t):void(null===i?e.removeAttribute(t):e.setAttribute(t,""+i)):null},D={},_={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},j={timely:1,display:null,target:null,ignoreBlank:!1,showOk:!0,dataFilter:function(e){if(E(e)||A(e)&&("error"in e||"ok"in e))return e},msgMaker:function(i){var n;return n=''+i.arrow,i.result?m.each(i.result,function(e,t){n+=''+i.icon+''+t.msg+""}):n+=i.icon+''+i.msg+"",n+=""},msgWrapper:"span",msgArrow:"",msgIcon:'',msgClass:"n-right",msgStyle:"",msgShow:null,msgHide:null},L={};function H(e,t){var i=this;if(!(i instanceof H))return new H(e,t);function n(){i.$el=m(e),i.$el.length?i._init(i.$el[0],t):E(e)&&(D[e]=t)}H.pending?m(window).on("validatorready",n):n()}function I(e,t){if(A(e)){var i,n=t?!0===t?this:t:I.prototype;for(i in e)B(i)&&(n[i]=q(e[i]))}}function M(e,t){if(A(e)){var i,n=t?!0===t?this:t:M.prototype;for(i in e)n[i]=e[i]}}function q(e){switch(m.type(e)){case"function":return e;case"array":var t=function(){return e[0].test(this.value)||e[1]||!1};return t.msg=e[1],t;case"regexp":return function(){return e.test(this.value)}}}function P(e){var t,i,n;if(e&&e.tagName){switch(e.tagName){case"INPUT":case"SELECT":case"TEXTAREA":case"BUTTON":case"FIELDSET":t=e.form||m(e).closest("."+a);break;case"FORM":t=e;break;default:t=m(e).closest("."+a)}for(i in D)if(m(t).is(i)){n=D[i];break}return m(t).data(r)||m(t)[r](n).data(r)}}function F(e,t,i){var n=t.msg,o=t._r;return A(n)&&(n=n[o]),E(n)||(n=O(e,s+"-"+o)||O(e,s)||(i?E(i)?i:i[o]:"")),n}function R(e){return"INPUT"===e.tagName&&"checkbox"===e.type||"radio"===e.type}function z(e){return Date.parse(e.replace(/\.|\-/g,"/"))}function B(e){return/^\w+$/.test(e)}function W(e){var t="#"===e.charAt(0);return e=e.replace(/([:.{(|)}/\[\]])/g,"\\$1"),t?e:'[name="'+e+'"]:first'}return m.fn.validator=function(t){var e=this,i=arguments;return e.is(y)?e:(e.is("form")||(e=this.find("form")),e.length||(e=this),e.each(function(){var e=m(this).data(r);if(e)if(E(t)){if("_"===t.charAt(0))return;e[t].apply(e,[].slice.call(i,1))}else t&&(e._reset(!0),e._init(this,t));else new H(this,t)}),this)},m.fn.isValid=function(t,e){var i,n,o=P(this[0]),s=$(t);return!o||(s||e!==f||(e=t),o.checkOnly=!!e,n=o.options,i=o._multiValidate(this.is(y)?this:this.find(y),function(e){e||!n.focusInvalid||o.checkOnly||o.$el.find("["+c+"]:first").focus(),s&&(t.length?t(e):e&&t()),o.checkOnly=!1}),s?this:i)},m.extend(m.expr.pseudos||m.expr[":"],{verifiable:function(e){var t=e.nodeName.toLowerCase();return("input"===t&&!{submit:1,button:1,reset:1,image:1}[e.type]||"select"===t||"textarea"===t||"true"===e.contentEditable)&&!e.disabled},filled:function(e){return!!S(m(e).val())}}),H.prototype={_init:function(e,t){var i,n,o,s=this;$(t)&&(t={valid:t}),t=s._opt=t||{},o=O(e,"data-"+r+"-option"),o=s._dataOpt=o&&"{"===o.charAt(0)?new Function("return "+o)():{},n=s._themeOpt=L[t.theme||o.theme||_.theme],i=s.options=m.extend({},_,j,n,s.options,t,o),s.rules=new I(i.rules,!0),s.messages=new M(i.messages,!0),s.Field=function(n){function e(){var e=this.options;for(var t in e)t in j&&(this[t]=e[t]);m.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":m(e)[this._valHook()]()},setValue:function(e){m(this.element)[this._valHook()](this.value=e)},getRangeMsg:function(e,t,i){if(t){var n,o=this,s=o.messages[o._r]||"",r=t[0].split("~"),a="false"===t[1],l=r[0],c=r[1],d="rg",u=[""],p=S(e)&&+e==+e;return 2===r.length?l&&c?(p&&f(e,+l)&&f(+c,e)&&(n=!0),u=u.concat(r),d=a?"gtlt":"rg"):l&&!c?(p&&f(e,+l)&&(n=!0),u.push(l),d=a?"gt":"gte"):!l&&c&&(p&&f(+c,e)&&(n=!0),u.push(c),d=a?"lt":"lte"):(e===+l&&(n=!0),u.push(l),d="eq"),s&&(i&&s[d+i]&&(d+=i),u[0]=s[d]),n||o._rules&&(o._rules[o._i].msg=o.renderMsg.apply(null,u))}function f(e,t){return a?t>> "+i),e&&(n.vetoed?m(s).ajaxSubmit(n.ajaxFormOptions):r&&!n.isAjaxSubmit&&document.createElement("form").submit.call(s))}))},_reset:function(e){var t=this;t.errors={},e&&(t.reseting=!0,t.$el.find(y).each(function(){t._resetElement(this)}),delete t.reseting)},_resetElement:function(e,t){this._setClass(e,null),this.hideMsg(e)},_focusin:function(e){var t,i,n=this,o=n.options,s=e.target;n.validating||"click"===e.type&&document.activeElement===s||(o.focusCleanup&&"true"===O(s,c)&&(n._setClass(s,null),n.hideMsg(s)),(i=O(s,u))?n.showMsg(s,{type:"tip",msg:i}):(O(s,d)&&n._parse(s),(t=O(s,h))&&(8!==t&&9!==t||n._focusout(e))))},_focusout:function(e){var t,i,n,o,s,r,a,l,c=this,d=c.options,u=e.target,p=e.type,f="focusin"===p,h="validate"===p,g=0;if("compositionstart"===p&&(c.pauseValidate=!0),"compositionend"===p&&(c.pauseValidate=!1),!c.pauseValidate&&(i=u.name&&R(u)?c.$el.find('input[name="'+u.name+'"]').get(0):u,(n=c.getField(i))&&n.rule)){if(t=n._e,n._e=p,l=n.timely,!h){if(!l||R(u)&&"click"!==p)return;if(s=n.getValue(),n.ignoreBlank&&!s&&!f)return void c.hideMsg(u);if("focusout"===p){if("change"===t)return;if(2===l||8===l){if(o=n.old,!s||!o)return;n.isValid&&!o.showOk?c.hideMsg(u):c._makeMsg(u,n,o)}}else{if(l<2&&!e.data)return;if((r=+new Date)-(u._ts||0)<100)return;if(u._ts=r,"keyup"===p){if("input"===t)return;if(9===(a=e.keyCode)&&!s)return;if(a<48&&!{8:1,9:1,16:1,32:1,46:1}[a])return}f||(g=l<100?"click"===p||"SELECT"===u.tagName?0:400:l)}}d.ignore&&m(u).is(d.ignore)||(clearTimeout(n._t),g?n._t=setTimeout(function(){c._validate(u,n)},g):(h&&(n.old={}),c._validate(u,n)))}},_setClass:function(e,t){var i=m(e),n=this.options;n.bindClassTo&&(i=i.closest(n.bindClassTo)),i.removeClass(n.invalidClass+" "+n.validClass),null!==t&&i.addClass(t?n.validClass:n.invalidClass)},_showmsg:function(e,t,i){var n=this,o=e.target;n.$el.is(o)?A(t)?n.showMsg(t):"tip"===t&&n.$el.find(y+"["+u+"]",o).each(function(){n.showMsg(this,{type:t,msg:i})}):n.showMsg(o,{type:t,msg:i})},_hidemsg:function(e){var t=m(e.target);t.is(y)&&this.hideMsg(t)},_validatedField:function(e,t,i){var n=this,o=n.options,s=t.isValid=i.isValid=!!i.isValid,r=s?"valid":"invalid";i.key=t.key,i.ruleName=t._r,i.id=e.id,i.value=t.value,n.elements[t.key]=i.element=e,n.isValid=n.$el[0].isValid=s?n.isFormValid():s,s?i.type="ok":(n.submiting&&(n.errors[t.key]=i.msg),n.hasError=!0),t.old=i,$(t[r])&&t[r].call(n,e,i),$(o.validation)&&o.validation.call(n,e,i),m(e).attr(c,!s||null).trigger(r+".field",[i,n]),n.$el.triggerHandler("validation",[i,n]),n.checkOnly||(n._setClass(e,i.skip||"tip"===i.type?null:s),n._makeMsg.apply(n,arguments))},_makeMsg:function(e,t,i){t.msgMaker&&(i=m.extend({},i),"focusin"===t._e&&(i.type="tip"),this[i.showOk||i.msg||"tip"===i.type?"showMsg":"hideMsg"](e,i,t))},_validatedRule:function(i,n,e,t){n=n||l.getField(i),t=t||{};var o,s,r,a,l=this,c=n._r,d=n.timely,u=9===d||8===d,p=!1;if(null===e)return l._validatedField(i,n,{isValid:!0,skip:!0}),void(n._i=0);if(e===f?r=!0:!0===e||""===e?p=!0:E(e)?o=e:A(e)?e.error?o=e.error:(o=e.ok,p=!0):p=!!e,(s=n._rules[n._i]).not&&(o=f,p="required"===c||!p),s.or)if(p)for(;n._i "+(p||o)),(p||u)&&n._i").attr({class:l+(t.cls?" "+t.cls:""),style:t.style||f,for:n}),s)i.appendTo(s);else if(R(e)){var a=r.parent();i.appendTo(a.is("label")?a.parent():a)}else i[t.pos&&"right"!==t.pos?"insertBefore":"insertAfter"](r);return i},showMsg:function(e,t,i){if(e){var n,o,s,r,a=this,l=a.options;!A(e)||e.jquery||t?(m(e).is(y)&&(i=i||a.getField(e)),(o=(i||l).msgMaker)&&(t=a._getMsgOpt(t,i),e=(e.name&&R(e)?a.$el.find('input[name="'+e.name+'"]'):m(e)).get(0),t.msg||"error"===t.type||null!==(s=O(e,"data-"+t.type))&&(t.msg=s),E(t.msg)&&(r=a._getMsgDOM(e,t),!w.test(r[0].className)&&r.addClass(t.cls),6===N&&"bottom"===t.pos&&(r[0].style.marginTop=m(e).outerHeight()+"px"),r.html(o.call(a,t))[0].style.display="",$(n=i&&i.msgShow||l.msgShow)&&n.call(a,r,t.type)))):m.each(e,function(e,t){var i=a.elements[e]||a.$el.find(W(e))[0];a.showMsg(i,t)})}},hideMsg:function(e,t,i){var n,o,s=this,r=s.options;e=m(e).get(0),m(e).is(y)&&(i=i||s.getField(e))&&(i.isValid||s.reseting)&&O(e,c,null),(t=s._getMsgOpt(t,i)).hide=!0,(o=s._getMsgDOM(e,t)).length&&($(n=i&&i.msgHide||r.msgHide)?n.call(s,o,t.type):(o[0].style.display="none",o[0].innerHTML=""))},getField:function(e,t){var i,n;if(E(e))i=e,e=f;else{if(O(e,d))return this._parse(e);i=e.id&&"#"+e.id in this.fields||!e.name?"#"+e.id:e.name}return((n=this.fields[i])||t&&(n=new this.Field(i)))&&(n.element=e),n},setField:function(e,t){var i={};e&&(E(e)?i[e]=t:i=e,this._initFields(i))},isFormValid:function(){var e,t,i=this.fields;for(e in i)if((t=i[e])._rules&&(t.required||t.must||t.value)&&!t.isValid)return!1;return!0},holdSubmit:function(e){this.submiting=e===f||e},cleanUp:function(){this._reset(1)},destroy:function(){this._reset(1),this.$el.off(p).removeData(r),O(this.$el[0],v,this._NOVALIDATE)}},m(window).on("beforeunload",function(){this.focus()}),m(document).on("click",":submit",function(){var e;this.form&&((e=this.getAttributeNode("formnovalidate"))&&null!==e.nodeValue||null!==O(this,v))&&(t=!0)}).on("focusin submit validate","form,."+a,function(e){if(null===O(this,v)){var t,i=m(this);!i.data(r)&&(t=P(this))&&(m.isEmptyObject(t.fields)?(O(this,v,v),i.off(p).removeData(r)):"focusin"===e.type?t._focusin(e):t._submit(e))}}),new M({fallback:"This field is not valid.",loading:"Validating..."}),new I({required:function(e,t){var i=this,n=S(i.value),o=!0;if(t)if(1===t.length){if(B(t[0])){if(i.rules[t[0]]&&!n&&!i.test(e,t[0]))return null}else if(!n&&!m(t[0],i.$el).length)return null}else if("not"===t[0])m.each(t.slice(1),function(){return o=n!==S(this)});else if("from"===t[0]){var s,r=i.$el.find(t[1]),a="_validated_";return(o=r.filter(function(){var e=i.getField(this);return e&&!!S(e.getValue())}).length>=(t[2]||1))?n||(s=null):s=F(r[0],i)||!1,m(e).data(a)||r.data(a,1).each(function(){e!==this&&i._validate(this)}).removeData(a),s}return o&&!!n},integer:function(e,t){var i,n="[1-9]\\d*",o=t?t[0]:"*";switch(o){case"+":i=n;break;case"-":i="-"+n;break;case"+0":i="0|"+n;break;case"-0":i="0|-"+n;break;default:i="0|-?"+n}return i="^(?:"+i+")$",new RegExp(i).test(this.value)||this.messages.integer&&this.messages.integer[o]},match:function(e,t){if(t){var i,n,o,s,r,a,l,c=this,d=!0,u="eq";if(1===t.length?o=t[0]:(u=t[0],o=t[1]),r=W(o),a=c.$el.find(r)[0]){if(l=c.getField(a),i=c.value,n=l.getValue(),c._match||(c.$el.on("valid.field"+p,r,function(){m(e).trigger("validate")}),c._match=l._match=1),!c.required&&""===i&&""===n)return null;if((s=t[2])&&(/^date(time)?$/i.test(s)?(i=z(i),n=z(n)):"time"===s&&(i=+i.replace(/:/g,""),n=+n.replace(/:/g,""))),"eq"!==u&&!isNaN(+i)&&isNaN(+n))return!0;switch(u){case"lt":d=+i<+n;break;case"lte":d=+i<=+n;break;case"gte":d=+n<=+i;break;case"gt":d=+n<+i;break;case"neq":d=i!==n;break;default:d=i===n}return d||A(c.messages.match)&&c.messages.match[u].replace("{1}",c._getDisplay(e,l.display||o))}}},range:function(e,t){return this.getRangeMsg(this.value,t)},checked:function(e,t){if(R(e)){var i,n;return n=e.name?this.$el.find('input[name="'+e.name+'"]').filter(function(){return!i&&R(this)&&(i=this),!this.disabled&&this.checked}).length:(i=e).checked,t?this.getRangeMsg(n,t):!!n||F(i,this,"")||this.messages.required||!1}},length:function(e,t){var i=this.value,n=("true"===t[1]?i.replace(o,"xx"):i).length;return this.getRangeMsg(n,t,t[1]?"_2":"")},remote:function(e,t){if(t){var i,n=this,o=x.exec(t[0]),s=n._rules[n._i],r={},a="",l=o[3],c=o[2]||"POST",d=(o[1]||"").toLowerCase();return s.must=!0,r[e.name]=n.value,t[1]&&m.map(t.slice(1),function(e){var t,i;~e.indexOf("=")?a+="&"+e:(t=e.split(":"),e=S(t[0]),i=S(t[1])||e,r[e]=n.$el.find(W(i)).val())}),r=m.param(r)+a,!n.must&&s.data&&s.data===r?s.result:("cors"!==d&&/^https?:/.test(l)&&!~l.indexOf(location.host)&&(i="jsonp"),m.ajax({url:l,type:c,data:r,dataType:i}))}},filter:function(e,t){var i=this.value,n=i.replace(t?new RegExp("["+t[0]+"]","gm"):T,"");n!==i&&this.setValue(n)}}),H.config=function(e,t){function i(e,t){"rules"===e?new I(t):"messages"===e?new M(t):e in j?j[e]=t:_[e]=t}A(e)?m.each(e,i):E(e)&&i(e,t)},H.setTheme=function(e,t){A(e)?m.extend(!0,L,e):E(e)&&A(t)&&(L[e]=m.extend(L[e],t))},H.load=function(e){if(e){var t,i,n,o=document,s={},r=o.scripts[0];e.replace(/([^?=&]+)=([^&#]*)/g,function(e,t,i){s[t]=i}),t=s.dir||H.dir,H.css||""===s.css||((i=o.createElement("link")).rel="stylesheet",i.href=H.css=t+"jquery.validator.css",r.parentNode.insertBefore(i,r)),!H.local&&~e.indexOf("local")&&""!==s.local&&(H.local=(s.local||o.documentElement.lang||"en").replace("_","-"),H.pending=1,(i=o.createElement("script")).src=t+"local/"+H.local+".js",i[n="onload"in i?"onload":"onreadystatechange"]=function(){i.readyState&&!/loaded|complete/.test(i.readyState)||(i=i[n]=null,delete H.pending,m(window).triggerHandler("validatorready"))},r.parentNode.insertBefore(i,r))}},function(){for(var e,t,i=document.scripts,n=i.length,o=/(.*validator(?:\.min)?.js)(\?.*(?:local|css|dir)(?:=[\w\-]*)?)?/;n--&&!t;)t=((e=i[n]).hasAttribute?e.src:e.getAttribute("src",4)||"").match(o);t&&(H.dir=t[1].split("/").slice(0,-1).join("/")+"/",H.load(t[2]))}(),m[r]=H}),function(e){"object"==typeof module&&module.exports?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(o){o.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,t){if(!t)return!0;var i=t[0],n=o(e).val();return"*"===i||new RegExp(".(?:"+i+")$","i").test(n)||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='';o.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(e,t){var i=e.children();i.is(":animated")||("error"===t?i.css({left:"20px",opacity:0}).delay(100).show().stop().animate({left:"-4px",opacity:1},150).animate({left:"3px"},80).animate({left:0},80):i.css({left:0,opacity:1}).fadeIn(200))},msgHide:function(e,t){e.children().stop().delay(100).show().animate({left:"20px",opacity:0},300,function(){e.hide()})}}})});