| 1 |
- !function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=0)}([function(t,e,n){n(1),t.exports=n(13)},function(t,e,n){window.Popper=n(2).default,window.$=window.jQuery=n(4),n(6),n(7),n(8),n(9),n(10),n(11),n(12),window.markdownEditorInit=function(){var t={uploadUrl:"/backend/upload/image",extraHeaders:{"X-CSRF-Token":$('meta[name="csrf-token"]').attr("content")}},e=new SimpleMDE({element:$("#markdown-editor")[0],spellChecker:!1,renderingConfig:{codeSyntaxHighlighting:!0}});inlineAttachment.editors.codemirror4.attach(e.codemirror,t)},$(function(){var t={live:"disables",message:"This Values is not valid",feedbackIcons:{valid:"glyphicon ",invalid:"glyphicon ",validating:"glyphicon glyphicon-refresh"}};$("#category-form").bootstrapValidator({validatorDefaultParam:t,fields:{name:{validators:{notEmpty:{message:"分类名称不能为空"}}}}}),$("#category-form #reset-btn").click(function(){var t=$("#category-form");t.data("bootstrapValidator").resetForm(!0),t[0].reset()}),$("#article-form").bootstrapValidator({live:"disables",message:"This Values is not valid",feedbackIcons:{valid:"glyphicon ",invalid:"glyphicon ",validating:"glyphicon glyphicon-refresh"},fields:{title:{validators:{notEmpty:{message:"文章标题不能为空"}}},cate_id:{validators:{notEmpty:{message:"请选择文章分类"}}}}}),$("#article-form #reset-btn").click(function(){var t=$("#article-form");t.data("bootstrapValidator").resetForm(!0),t[0].reset()}),$("#user-form").bootstrapValidator({validatorDefaultParam:t,fields:{name:{validators:{notEmpty:{message:"请输入姓名"},stringLength:{min:2,max:30,message:"姓名长度必须在2-30"}}},email:{validators:{notEmpty:{message:"请输入登录邮箱"},emailAddress:{message:"请输入正确的登录邮箱"}}},password:{validators:{notEmpty:{message:"请输入正确的登录密码"},stringLength:{min:8,max:30,message:"请输入8-30位的密码"}}}}}),$("#user-form #reset-btn").click(function(){$("#user-form").data("bootstrapValidator").resetForm(!0),$("#user-form")[0].reset()}),$("#edit-user-form").bootstrapValidator({validatorDefaultParam:t,fields:{name:{validators:{notEmpty:{message:"请输入姓名"},stringLength:{min:2,max:30,message:"姓名长度必须在2-30"}}},email:{validators:{notEmpty:{message:"请输入登录邮箱"},emailAddress:{message:"请输入正确的登录邮箱"}}},password:{validators:{stringLength:{min:8,max:30,message:"请输入8-30位的密码"}}}}}),$("#edit-user-form #reset-btn").click(function(){$("#user-form").data("bootstrapValidator").resetForm(!0),$("#user-form")[0].reset()}),$("#tag-form").bootstrapValidator({validatorDefaultParam:t,fields:{name:{validators:{notEmpty:{message:"请输入文章标签名"}}}}}),$("#tag-form #reset-btn").click(function(){$("#tag-form").data("bootstrapValidator").resetForm(!0),$("#tag-form")[0].reset()}),$("#link-form").bootstrapValidator({validatorDefaultParam:t,fields:{name:{validators:{notEmpty:{message:"请输入链接名"}}},url:{validators:{notEmpty:{message:"URL不能为空"},uri:{message:"请输入合法的URL地址"}}}}}),$("#link-form #reset-btn").click(function(){$("#link-form").data("bootstrapValidator").resetForm(!0),$("#link-form")[0].reset()}),$("#navigation-form").bootstrapValidator({validatorDefaultParam:t,fields:{name:{validators:{notEmpty:{message:"请输入导航名"}}},url:{validators:{notEmpty:{message:"URL不能为空"},uri:{message:"请输入合法的URL地址"}}}}}),$("#navigation-form #reset-btn").click(function(){$("#navigation-form").data("bootstrapValidator").resetForm(!0),$("#navigation-form")[0].reset()}),$("#page-form").bootstrapValidator({live:"disables",message:"This Values is not valid",feedbackIcons:{valid:"glyphicon ",invalid:"glyphicon ",validating:"glyphicon glyphicon-refresh"},fields:{title:{validators:{notEmpty:{message:"页面标题不能为空"}}}}})})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n="undefined"!=typeof window&&"undefined"!=typeof document,r=["Edge","Trident","Firefox"],i=0,o=0;o<r.length;o+=1)if(n&&navigator.userAgent.indexOf(r[o])>=0){i=1;break}var a=n&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},i))}};function s(t){return t&&"[object Function]"==={}.toString.call(t)}function l(t,e){if(1!==t.nodeType)return[];var n=getComputedStyle(t,null);return e?n[e]:n}function d(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function u(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=l(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?t:u(d(t))}var f=n&&!(!window.MSInputMethodContext||!document.documentMode),c=n&&/MSIE 10/.test(navigator.userAgent);function p(t){return 11===t?f:10===t?c:f||c}function h(t){if(!t)return document.documentElement;for(var e=p(10)?document.body:null,n=t.offsetParent;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===l(n,"position")?h(n):n:t?t.ownerDocument.documentElement:document.documentElement}function v(t){return null!==t.parentNode?v(t.parentNode):t}function m(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,l=o.commonAncestorContainer;if(t!==l&&e!==l||r.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&h(a.firstElementChild)!==a?h(l):l;var d=v(t);return d.host?m(d.host,e):m(t,v(e).host)}function g(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var r=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||r)[e]}return t[e]}function b(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+r+"Width"],10)}function y(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],p(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function w(t){var e=t.body,n=t.documentElement,r=p(10)&&getComputedStyle(n);return{height:y("Height",e,n,r),width:y("Width",e,n,r)}}var x=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},A=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),T=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},S=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function C(t){return S({},t,{right:t.left+t.width,bottom:t.top+t.height})}function E(t){var e={};try{if(p(10)){e=t.getBoundingClientRect();var n=g(t,"top"),r=g(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(t){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?w(t.ownerDocument):{},a=o.width||t.clientWidth||i.right-i.left,s=o.height||t.clientHeight||i.bottom-i.top,d=t.offsetWidth-a,u=t.offsetHeight-s;if(d||u){var f=l(t);d-=b(f,"x"),u-=b(f,"y"),i.width-=d,i.height-=u}return C(i)}function I(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=p(10),i="HTML"===e.nodeName,o=E(t),a=E(e),s=u(t),d=l(e),f=parseFloat(d.borderTopWidth,10),c=parseFloat(d.borderLeftWidth,10);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=C({top:o.top-a.top-f,left:o.left-a.left-c,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var v=parseFloat(d.marginTop,10),m=parseFloat(d.marginLeft,10);h.top-=f-v,h.bottom-=f-v,h.left-=c-m,h.right-=c-m,h.marginTop=v,h.marginLeft=m}return(r&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(h=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=g(e,"top"),i=g(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}(h,e)),h}function $(t){if(!t||!t.parentElement||p())return document.documentElement;for(var e=t.parentElement;e&&"none"===l(e,"transform");)e=e.parentElement;return e||document.documentElement}function k(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?$(t):m(t,e);if("viewport"===r)o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=I(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:g(n),s=e?0:g(n,"left");return C({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=u(d(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===r?t.ownerDocument.documentElement:r;var f=I(s,a,i);if("HTML"!==s.nodeName||function t(e){var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===l(e,"position")||t(d(e)))}(a))o=f;else{var c=w(t.ownerDocument),p=c.height,h=c.width;o.top+=f.top-f.marginTop,o.bottom=p+f.top,o.left+=f.left-f.marginLeft,o.right=h+f.left}}var v="number"==typeof(n=n||0);return o.left+=v?n:n.left||0,o.top+=v?n:n.top||0,o.right-=v?n:n.right||0,o.bottom-=v?n:n.bottom||0,o}function D(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=k(n,r,o,i),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map(function(t){return S({key:t},s[t],{area:(e=s[t],e.width*e.height)});var e}).sort(function(t,e){return e.area-t.area}),d=l.filter(function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight}),u=d.length>0?d[0].key:l[0].key,f=t.split("-")[1];return u+(f?"-"+f:"")}function V(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return I(n,r?$(e):m(e,n),r)}function N(t){var e=getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),r=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function L(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function O(t,e,n){n=n.split("-")[0];var r=N(t),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",d=o?"width":"height";return i[a]=e[a]+e[l]/2-r[l]/2,i[s]=n===s?e[s]-r[d]:e[L(s)],i}function F(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function R(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var r=F(t,function(t){return t[e]===n});return t.indexOf(r)}(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&s(n)&&(e.offsets.popper=C(e.offsets.popper),e.offsets.reference=C(e.offsets.reference),e=n(e,t))}),e}function P(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function _(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var i=e[r],o=i?""+i+n:t;if(void 0!==document.body.style[o])return o}return null}function M(t){var e=t.ownerDocument;return e?e.defaultView:window}function j(t,e,n,r){n.updateBound=r,M(t).addEventListener("resize",n.updateBound,{passive:!0});var i=u(t);return function t(e,n,r,i){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(n,r,{passive:!0}),o||t(u(a.parentNode),n,r,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function B(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,M(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function U(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function H(t,e){Object.keys(e).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&U(e[n])&&(r="px"),t.style[n]=e[n]+r})}function G(t,e,n){var r=F(t,function(t){return t.name===e}),i=!!r&&t.some(function(t){return t.name===n&&t.enabled&&t.order<r.order});if(!i){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var Z=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],q=Z.slice(3);function W(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=q.indexOf(t),r=q.slice(n+1).concat(q.slice(0,n));return e?r.reverse():r}var z={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Q(t,e,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=t.split(/(\+|\-)/).map(function(t){return t.trim()}),s=a.indexOf(F(a,function(t){return-1!==t.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,d=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(d=d.map(function(t,r){var i=(1===r?!o:o)?"height":"width",a=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,n,r){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return C(s)[e]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(t,i,e,n)})})).forEach(function(t,e){t.forEach(function(n,r){U(n)&&(i[e]+=n*("-"===t[r-1]?-1:1))})}),i}var K={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",d=s?"width":"height",u={start:T({},l,o[l]),end:T({},l,o[l]+o[d]-a[d])};t.offsets.popper=S({},a,u[r])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,r=t.placement,i=t.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=U(+n)?[+n,0]:Q(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||h(t.instance.popper);t.instance.reference===n&&(n=h(n));var r=_("transform"),i=t.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=k(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=o,i.left=a,i[r]=s,e.boundaries=l;var d=e.priority,u=t.offsets.popper,f={primary:function(t){var n=u[t];return u[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(u[t],l[t])),T({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=u[n];return u[t]>l[t]&&!e.escapeWithReference&&(r=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),T({},n,r)}};return d.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=S({},u,f[e](t))}),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",d=a?"width":"height";return n[s]<o(r[l])&&(t.offsets.popper[l]=o(r[l])-n[d]),n[l]>o(r[s])&&(t.offsets.popper[l]=o(r[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!G(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],o=t.offsets,a=o.popper,s=o.reference,d=-1!==["left","right"].indexOf(i),u=d?"height":"width",f=d?"Top":"Left",c=f.toLowerCase(),p=d?"left":"top",h=d?"bottom":"right",v=N(r)[u];s[h]-v<a[c]&&(t.offsets.popper[c]-=a[c]-(s[h]-v)),s[c]+v>a[h]&&(t.offsets.popper[c]+=s[c]+v-a[h]),t.offsets.popper=C(t.offsets.popper);var m=s[c]+s[u]/2-v/2,g=l(t.instance.popper),b=parseFloat(g["margin"+f],10),y=parseFloat(g["border"+f+"Width"],10),w=m-t.offsets.popper[c]-b-y;return w=Math.max(Math.min(a[u]-v,w),0),t.arrowElement=r,t.offsets.arrow=(T(n={},c,Math.round(w)),T(n,p,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(P(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=k(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=L(r),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case z.FLIP:a=[r,i];break;case z.CLOCKWISE:a=W(r);break;case z.COUNTERCLOCKWISE:a=W(r,!0);break;default:a=e.behavior}return a.forEach(function(s,l){if(r!==s||a.length===l+1)return t;r=t.placement.split("-")[0],i=L(r);var d=t.offsets.popper,u=t.offsets.reference,f=Math.floor,c="left"===r&&f(d.right)>f(u.left)||"right"===r&&f(d.left)<f(u.right)||"top"===r&&f(d.bottom)>f(u.top)||"bottom"===r&&f(d.top)<f(u.bottom),p=f(d.left)<f(n.left),h=f(d.right)>f(n.right),v=f(d.top)<f(n.top),m=f(d.bottom)>f(n.bottom),g="left"===r&&p||"right"===r&&h||"top"===r&&v||"bottom"===r&&m,b=-1!==["top","bottom"].indexOf(r),y=!!e.flipVariations&&(b&&"start"===o&&p||b&&"end"===o&&h||!b&&"start"===o&&v||!b&&"end"===o&&m);(c||g||y)&&(t.flipped=!0,(c||g)&&(r=a[l+1]),y&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=S({},t.offsets.popper,O(t.instance.popper,t.offsets.reference,t.placement)),t=R(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),t.placement=L(e),t.offsets.popper=C(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!G(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=F(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,r=e.y,i=t.offsets.popper,o=F(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:e.gpuAcceleration,s=h(t.instance.popper),l=E(s),d={position:i.position},u={left:Math.floor(i.left),top:Math.round(i.top),bottom:Math.round(i.bottom),right:Math.floor(i.right)},f="bottom"===n?"top":"bottom",c="right"===r?"left":"right",p=_("transform"),v=void 0,m=void 0;if(m="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,v="right"===c?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&p)d[p]="translate3d("+v+"px, "+m+"px, 0)",d[f]=0,d[c]=0,d.willChange="transform";else{var g="bottom"===f?-1:1,b="right"===c?-1:1;d[f]=m*g,d[c]=v*b,d.willChange=f+", "+c}var y={"x-placement":t.placement};return t.attributes=S({},y,t.attributes),t.styles=S({},d,t.styles),t.arrowStyles=S({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return H(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach(function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)}),t.arrowElement&&Object.keys(t.arrowStyles).length&&H(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,r,i){var o=V(i,e,t,n.positionFixed),a=D(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),H(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Y=function(){function t(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};x(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=a(this.update.bind(this)),this.options=S({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},t.Defaults.modifiers,i.modifiers)).forEach(function(e){r.options.modifiers[e]=S({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return S({name:t},r.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&s(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return A(t,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=V(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=D(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=O(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=R(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,P(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[_("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=j(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return B.call(this)}}]),t}();Y.Utils=("undefined"!=typeof window?window:t).PopperUtils,Y.placements=Z,Y.Defaults=K,e.default=Y}.call(e,n(3))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r;!function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(i,o){"use strict";var a=[],s=i.document,l=Object.getPrototypeOf,d=a.slice,u=a.concat,f=a.push,c=a.indexOf,p={},h=p.toString,v=p.hasOwnProperty,m=v.toString,g=m.call(Object),b={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},w=function(t){return null!=t&&t===t.window},x={type:!0,src:!0,noModule:!0};function A(t,e,n){var r,i=(e=e||s).createElement("script");if(i.text=t,n)for(r in x)n[r]&&(i[r]=n[r]);e.head.appendChild(i).parentNode.removeChild(i)}function T(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?p[h.call(t)]||"object":typeof t}var S=function(t,e){return new S.fn.init(t,e)},C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function E(t){var e=!!t&&"length"in t&&t.length,n=T(t);return!y(t)&&!w(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}S.fn=S.prototype={jquery:"3.3.1",constructor:S,length:0,toArray:function(){return d.call(this)},get:function(t){return null==t?d.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(t){return this.pushStack(S.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:f,sort:a.sort,splice:a.splice},S.extend=S.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,d=!1;for("boolean"==typeof a&&(d=a,a=arguments[s]||{},s++),"object"==typeof a||y(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],a!==(r=t[e])&&(d&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&S.isPlainObject(n)?n:{},a[e]=S.extend(d,o,r)):void 0!==r&&(a[e]=r));return a},S.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==h.call(t)||(e=l(t))&&("function"!=typeof(n=v.call(e,"constructor")&&e.constructor)||m.call(n)!==g))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t){A(t)},each:function(t,e){var n,r=0;if(E(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(C,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(E(Object(t))?S.merge(n,"string"==typeof t?[t]:t):f.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:c.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i<o;i++)!e(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,e,n){var r,i,o=0,a=[];if(E(t))for(r=t.length;o<r;o++)null!=(i=e(t[o],o,n))&&a.push(i);else for(o in t)null!=(i=e(t[o],o,n))&&a.push(i);return u.apply([],a)},guid:1,support:b}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=a[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){p["[object "+e+"]"]=e.toLowerCase()});var I=function(t){var e,n,r,i,o,a,s,l,d,u,f,c,p,h,v,m,g,b,y,w="sizzle"+1*new Date,x=t.document,A=0,T=0,S=at(),C=at(),E=at(),I=function(t,e){return t===e&&(f=!0),0},$={}.hasOwnProperty,k=[],D=k.pop,V=k.push,N=k.push,L=k.slice,O=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",P="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",_="\\["+R+"*("+P+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+R+"*\\]",M=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+_+")*)|.*)\\)|)",j=new RegExp(R+"+","g"),B=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),U=new RegExp("^"+R+"*,"+R+"*"),H=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),G=new RegExp("="+R+"*([^\\]'\"]*?)"+R+"*\\]","g"),Z=new RegExp(M),q=new RegExp("^"+P+"$"),W={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+_),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},z=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig"),tt=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=function(){c()},it=bt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{N.apply(k=L.call(x.childNodes),x.childNodes),k[x.childNodes.length].nodeType}catch(t){N={apply:k.length?function(t,e){V.apply(t,L.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function ot(t,e,r,i){var o,s,d,u,f,h,g,b=e&&e.ownerDocument,A=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==A&&9!==A&&11!==A)return r;if(!i&&((e?e.ownerDocument||e:x)!==p&&c(e),e=e||p,v)){if(11!==A&&(f=Y.exec(t)))if(o=f[1]){if(9===A){if(!(d=e.getElementById(o)))return r;if(d.id===o)return r.push(d),r}else if(b&&(d=b.getElementById(o))&&y(e,d)&&d.id===o)return r.push(d),r}else{if(f[2])return N.apply(r,e.getElementsByTagName(t)),r;if((o=f[3])&&n.getElementsByClassName&&e.getElementsByClassName)return N.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!E[t+" "]&&(!m||!m.test(t))){if(1!==A)b=e,g=t;else if("object"!==e.nodeName.toLowerCase()){for((u=e.getAttribute("id"))?u=u.replace(et,nt):e.setAttribute("id",u=w),s=(h=a(t)).length;s--;)h[s]="#"+u+" "+gt(h[s]);g=h.join(","),b=X.test(t)&&vt(e.parentNode)||e}if(g)try{return N.apply(r,b.querySelectorAll(g)),r}catch(t){}finally{u===w&&e.removeAttribute("id")}}}return l(t.replace(B,"$1"),e,r,i)}function at(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function st(t){return t[w]=!0,t}function lt(t){var e=p.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function dt(t,e){for(var n=t.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=e}function ut(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ft(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ct(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function pt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&it(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ht(t){return st(function(e){return e=+e,st(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=ot.support={},o=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},c=ot.setDocument=function(t){var e,i,a=t?t.ownerDocument||t:x;return a!==p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,v=!o(p),x!==p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",rt,!1):i.attachEvent&&i.attachEvent("onunload",rt)),n.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=lt(function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(p.getElementsByClassName),n.getById=lt(function(t){return h.appendChild(t).id=w,!p.getElementsByName||!p.getElementsByName(w).length}),n.getById?(r.filter.ID=function(t){var e=t.replace(J,tt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&v){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(J,tt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&v){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&v)return e.getElementsByClassName(t)},g=[],m=[],(n.qsa=K.test(p.querySelectorAll))&&(lt(function(t){h.appendChild(t).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+R+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+R+"*(?:value|"+F+")"),t.querySelectorAll("[id~="+w+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]")}),lt(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=p.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+R+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=K.test(b=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&<(function(t){n.disconnectedMatch=b.call(t,"*"),b.call(t,"[s!='']:x"),g.push("!=",M)}),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),e=K.test(h.compareDocumentPosition),y=e||K.test(h.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},I=e?function(t,e){if(t===e)return f=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t===p||t.ownerDocument===x&&y(x,t)?-1:e===p||e.ownerDocument===x&&y(x,e)?1:u?O(u,t)-O(u,e):0:4&r?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t===p?-1:e===p?1:i?-1:o?1:u?O(u,t)-O(u,e):0;if(i===o)return ut(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ut(a[r],s[r]):a[r]===x?-1:s[r]===x?1:0},p):p},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==p&&c(t),e=e.replace(G,"='$1']"),n.matchesSelector&&v&&!E[e+" "]&&(!g||!g.test(e))&&(!m||!m.test(e)))try{var r=b.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return ot(e,p,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!==p&&c(t),y(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!==p&&c(t);var i=r.attrHandle[e.toLowerCase()],o=i&&$.call(r.attrHandle,e.toLowerCase())?i(t,e,!v):void 0;return void 0!==o?o:n.attributes||!v?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},ot.escape=function(t){return(t+"").replace(et,nt)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,r=[],i=0,o=0;if(f=!n.detectDuplicates,u=!n.sortStable&&t.slice(0),t.sort(I),f){for(;e=t[o++];)e===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return u=null,t},i=ot.getText=function(t){var e,n="",r=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+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},(r=ot.selectors={cacheLength:50,createPseudo:st,match:W,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(J,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(J,tt),"~="===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]||ot.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]&&ot.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return W.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&Z.test(n)&&(e=a(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(J,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+R+")"+t+"("+R+"|$)"))&&S(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(r){var i=ot.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(j," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,l){var d,u,f,c,p,h,v=o!==a?"nextSibling":"previousSibling",m=e.parentNode,g=s&&e.nodeName.toLowerCase(),b=!l&&!s,y=!1;if(m){if(o){for(;v;){for(c=e;c=c[v];)if(s?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;h=v="only"===t&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&b){for(y=(p=(d=(u=(f=(c=m)[w]||(c[w]={}))[c.uniqueID]||(f[c.uniqueID]={}))[t]||[])[0]===A&&d[1])&&d[2],c=p&&m.childNodes[p];c=++p&&c&&c[v]||(y=p=0)||h.pop();)if(1===c.nodeType&&++y&&c===e){u[t]=[A,p,y];break}}else if(b&&(y=p=(d=(u=(f=(c=e)[w]||(c[w]={}))[c.uniqueID]||(f[c.uniqueID]={}))[t]||[])[0]===A&&d[1]),!1===y)for(;(c=++p&&c&&c[v]||(y=p=0)||h.pop())&&((s?c.nodeName.toLowerCase()!==g:1!==c.nodeType)||!++y||(b&&((u=(f=c[w]||(c[w]={}))[c.uniqueID]||(f[c.uniqueID]={}))[t]=[A,y]),c!==e)););return(y-=i)===r||y%r==0&&y/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return i[w]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?st(function(t,n){for(var r,o=i(t,e),a=o.length;a--;)t[r=O(t,o[a])]=!(n[r]=o[a])}):function(t){return i(t,0,n)}):i}},pseudos:{not:st(function(t){var e=[],n=[],r=s(t.replace(B,"$1"));return r[w]?st(function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:st(function(t){return function(e){return ot(t,e).length>0}}),contains:st(function(t){return t=t.replace(J,tt),function(e){return(e.textContent||e.innerText||i(e)).indexOf(t)>-1}}),lang:st(function(t){return q.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(J,tt).toLowerCase(),function(e){var n;do{if(n=v?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===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===h},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:pt(!1),disabled:pt(!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,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return z.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:ht(function(){return[0]}),last:ht(function(t,e){return[e-1]}),eq:ht(function(t,e,n){return[n<0?n+e:n]}),even:ht(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:ht(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:ht(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:ht(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[e]=ft(e);for(e in{submit:!0,reset:!0})r.pseudos[e]=ct(e);function mt(){}function gt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function bt(t,e,n){var r=e.dir,i=e.next,o=i||r,a=n&&"parentNode"===o,s=T++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||a)return t(e,n,i);return!1}:function(e,n,l){var d,u,f,c=[A,s];if(l){for(;e=e[r];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[r];)if(1===e.nodeType||a)if(u=(f=e[w]||(e[w]={}))[e.uniqueID]||(f[e.uniqueID]={}),i&&i===e.nodeName.toLowerCase())e=e[r]||e;else{if((d=u[o])&&d[0]===A&&d[1]===s)return c[2]=d[2];if(u[o]=c,c[2]=t(e,n,l))return!0}return!1}}function yt(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function wt(t,e,n,r,i){for(var o,a=[],s=0,l=t.length,d=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),d&&e.push(s)));return a}function xt(t,e,n,r,i,o){return r&&!r[w]&&(r=xt(r)),i&&!i[w]&&(i=xt(i,o)),st(function(o,a,s,l){var d,u,f,c=[],p=[],h=a.length,v=o||function(t,e,n){for(var r=0,i=e.length;r<i;r++)ot(t,e[r],n);return n}(e||"*",s.nodeType?[s]:s,[]),m=!t||!o&&e?v:wt(v,c,t,s,l),g=n?i||(o?t:h||r)?[]:a:m;if(n&&n(m,g,s,l),r)for(d=wt(g,p),r(d,[],s,l),u=d.length;u--;)(f=d[u])&&(g[p[u]]=!(m[p[u]]=f));if(o){if(i||t){if(i){for(d=[],u=g.length;u--;)(f=g[u])&&d.push(m[u]=f);i(null,g=[],d,l)}for(u=g.length;u--;)(f=g[u])&&(d=i?O(o,f):c[u])>-1&&(o[d]=!(a[d]=f))}}else g=wt(g===a?g.splice(h,g.length):g),i?i(null,a,g,l):N.apply(a,g)})}function At(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],l=a?1:0,u=bt(function(t){return t===e},s,!0),f=bt(function(t){return O(e,t)>-1},s,!0),c=[function(t,n,r){var i=!a&&(r||n!==d)||((e=n).nodeType?u(t,n,r):f(t,n,r));return e=null,i}];l<o;l++)if(n=r.relative[t[l].type])c=[bt(yt(c),n)];else{if((n=r.filter[t[l].type].apply(null,t[l].matches))[w]){for(i=++l;i<o&&!r.relative[t[i].type];i++);return xt(l>1&&yt(c),l>1&>(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(B,"$1"),n,l<i&&At(t.slice(l,i)),i<o&&At(t=t.slice(i)),i<o&>(t))}c.push(n)}return yt(c)}function Tt(t,e){var n=e.length>0,i=t.length>0,o=function(o,a,s,l,u){var f,h,m,g=0,b="0",y=o&&[],w=[],x=d,T=o||i&&r.find.TAG("*",u),S=A+=null==x?1:Math.random()||.1,C=T.length;for(u&&(d=a===p||a||u);b!==C&&null!=(f=T[b]);b++){if(i&&f){for(h=0,a||f.ownerDocument===p||(c(f),s=!v);m=t[h++];)if(m(f,a||p,s)){l.push(f);break}u&&(A=S)}n&&((f=!m&&f)&&g--,o&&y.push(f))}if(g+=b,n&&b!==g){for(h=0;m=e[h++];)m(y,w,a,s);if(o){if(g>0)for(;b--;)y[b]||w[b]||(w[b]=D.call(l));w=wt(w)}N.apply(l,w),u&&!o&&w.length>0&&g+e.length>1&&ot.uniqueSort(l)}return u&&(A=S,d=x),y};return n?st(o):o}return mt.prototype=r.filters=r.pseudos,r.setFilters=new mt,a=ot.tokenize=function(t,e){var n,i,o,a,s,l,d,u=C[t+" "];if(u)return e?0:u.slice(0);for(s=t,l=[],d=r.preFilter;s;){for(a in n&&!(i=U.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),n=!1,(i=H.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(i=W[a].exec(s))||d[a]&&!(i=d[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?ot.error(t):C(t,l).slice(0)},s=ot.compile=function(t,e){var n,r=[],i=[],o=E[t+" "];if(!o){for(e||(e=a(t)),n=e.length;n--;)(o=At(e[n]))[w]?r.push(o):i.push(o);(o=E(t,Tt(i,r))).selector=t}return o},l=ot.select=function(t,e,n,i){var o,l,d,u,f,c="function"==typeof t&&t,p=!i&&a(t=c.selector||t);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(d=l[0]).type&&9===e.nodeType&&v&&r.relative[l[1].type]){if(!(e=(r.find.ID(d.matches[0].replace(J,tt),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=W.needsContext.test(t)?0:l.length;o--&&(d=l[o],!r.relative[u=d.type]);)if((f=r.find[u])&&(i=f(d.matches[0].replace(J,tt),X.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(o,1),!(t=i.length&>(l)))return N.apply(n,i),n;break}}return(c||s(t,p))(i,e,!v,n,!e||X.test(t)&&vt(e.parentNode)||e),n},n.sortStable=w.split("").sort(I).join("")===w,n.detectDuplicates=!!f,c(),n.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))}),lt(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||dt("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&<(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||dt("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),lt(function(t){return null==t.getAttribute("disabled")})||dt(F,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),ot}(i);S.find=I,S.expr=I.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=I.uniqueSort,S.text=I.getText,S.isXMLDoc=I.isXML,S.contains=I.contains,S.escapeSelector=I.escape;var $=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&S(t).is(n))break;r.push(t)}return r},k=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},D=S.expr.match.needsContext;function V(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(t,e,n){return y(e)?S.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?S.grep(t,function(t){return t===e!==n}):"string"!=typeof e?S.grep(t,function(t){return c.call(e,t)>-1!==n}):S.filter(e,t,n)}S.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?S.find.matchesSelector(r,t)?[r]:[]:S.find.matches(t,S.grep(e,function(t){return 1===t.nodeType}))},S.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(S(t).filter(function(){for(e=0;e<r;e++)if(S.contains(i[e],this))return!0}));for(n=this.pushStack([]),e=0;e<r;e++)S.find(t,i[e],n);return r>1?S.uniqueSort(n):n},filter:function(t){return this.pushStack(L(this,t||[],!1))},not:function(t){return this.pushStack(L(this,t||[],!0))},is:function(t){return!!L(this,"string"==typeof t&&D.test(t)?S(t):t||[],!1).length}});var O,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||O,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:F.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof S?e[0]:e,S.merge(this,S.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:s,!0)),N.test(r[1])&&S.isPlainObject(e))for(r in e)y(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=s.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(S):S.makeArray(t,this)}).prototype=S.fn,O=S(s);var R=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function _(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}S.fn.extend({has:function(t){var e=S(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(S.contains(this,e[t]))return!0})},closest:function(t,e){var n,r=0,i=this.length,o=[],a="string"!=typeof t&&S(t);if(!D.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&S.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?S.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(S(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return $(t,"parentNode")},parentsUntil:function(t,e,n){return $(t,"parentNode",n)},next:function(t){return _(t,"nextSibling")},prev:function(t){return _(t,"previousSibling")},nextAll:function(t){return $(t,"nextSibling")},prevAll:function(t){return $(t,"previousSibling")},nextUntil:function(t,e,n){return $(t,"nextSibling",n)},prevUntil:function(t,e,n){return $(t,"previousSibling",n)},siblings:function(t){return k((t.parentNode||{}).firstChild,t)},children:function(t){return k(t.firstChild)},contents:function(t){return V(t,"iframe")?t.contentDocument:(V(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},function(t,e){S.fn[t]=function(n,r){var i=S.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=S.filter(r,i)),this.length>1&&(P[t]||S.uniqueSort(i),R.test(t)&&i.reverse()),this.pushStack(i)}});var M=/[^\x20\t\r\n\f]+/g;function j(t){return t}function B(t){throw t}function U(t,e,n,r){var i;try{t&&y(i=t.promise)?i.call(t).done(e).fail(n):t&&y(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}S.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return S.each(t.match(M)||[],function(t,n){e[n]=!0}),e}(t):S.extend({},t);var e,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||t.once,r=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,i&&(o=n?[]:"")},d={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function e(n){S.each(n,function(n,r){y(r)?t.unique&&d.has(r)||o.push(r):r&&r.length&&"string"!==T(r)&&e(r)})}(arguments),n&&!e&&l()),this},remove:function(){return S.each(arguments,function(t,e){for(var n;(n=S.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?S.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},S.extend({Deferred:function(t){var e=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return S.Deferred(function(n){S.each(e,function(e,r){var i=y(t[r[4]])&&t[r[4]];o[r[1]](function(){var t=i&&i.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,n,r){var o=0;function a(t,e,n,r){return function(){var s=this,l=arguments,d=function(){var i,d;if(!(t<o)){if((i=n.apply(s,l))===e.promise())throw new TypeError("Thenable self-resolution");d=i&&("object"==typeof i||"function"==typeof i)&&i.then,y(d)?r?d.call(i,a(o,e,j,r),a(o,e,B,r)):(o++,d.call(i,a(o,e,j,r),a(o,e,B,r),a(o,e,j,e.notifyWith))):(n!==j&&(s=void 0,l=[i]),(r||e.resolveWith)(s,l))}},u=r?d:function(){try{d()}catch(r){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(r,u.stackTrace),t+1>=o&&(n!==B&&(s=void 0,l=[r]),e.rejectWith(s,l))}};t?u():(S.Deferred.getStackHook&&(u.stackTrace=S.Deferred.getStackHook()),i.setTimeout(u))}}return S.Deferred(function(i){e[0][3].add(a(0,i,y(r)?r:j,i.notifyWith)),e[1][3].add(a(0,i,y(t)?t:j)),e[2][3].add(a(0,i,y(n)?n:B))}).promise()},promise:function(t){return null!=t?S.extend(t,r):r}},o={};return S.each(e,function(t,i){var a=i[2],s=i[5];r[i[1]]=a.add,s&&a.add(function(){n=s},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=a.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=d.call(arguments),o=S.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?d.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(U(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||y(i[n]&&i[n].then)))return o.then();for(;n--;)U(i[n],a(n),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&H.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},S.readyException=function(t){i.setTimeout(function(){throw t})};var G=S.Deferred();function Z(){s.removeEventListener("DOMContentLoaded",Z),i.removeEventListener("load",Z),S.ready()}S.fn.ready=function(t){return G.then(t).catch(function(t){S.readyException(t)}),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==t&&--S.readyWait>0||G.resolveWith(s,[S]))}}),S.ready.then=G.then,"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?i.setTimeout(S.ready):(s.addEventListener("DOMContentLoaded",Z),i.addEventListener("load",Z));var q=function(t,e,n,r,i,o,a){var s=0,l=t.length,d=null==n;if("object"===T(n))for(s in i=!0,n)q(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,y(r)||(a=!0),d&&(a?(e.call(t,r),e=null):(d=e,e=function(t,e,n){return d.call(S(t),n)})),e))for(;s<l;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:d?e.call(t):l?e(t[0],n):o},W=/^-ms-/,z=/-([a-z])/g;function Q(t,e){return e.toUpperCase()}function K(t){return t.replace(W,"ms-").replace(z,Q)}var Y=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function X(){this.expando=S.expando+X.uid++}X.uid=1,X.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Y(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[K(e)]=n;else for(r in e)i[K(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][K(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(K):(e=K(e))in r?[e]:e.match(M)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||S.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!S.isEmptyObject(e)}};var J=new X,tt=new X,et=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,nt=/[A-Z]/g;function rt(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(nt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:et.test(t)?JSON.parse(t):t)}(n)}catch(t){}tt.set(t,e,n)}else n=void 0;return n}S.extend({hasData:function(t){return tt.hasData(t)||J.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 J.access(t,e,n)},_removeData:function(t,e){J.remove(t,e)}}),S.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=tt.get(o),1===o.nodeType&&!J.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=K(r.slice(5)),rt(o,r,i[r]));J.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){tt.set(this,t)}):q(this,function(e){var n;if(o&&void 0===e){if(void 0!==(n=tt.get(o,t)))return n;if(void 0!==(n=rt(o,t)))return n}else this.each(function(){tt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){tt.remove(this,t)})}}),S.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=J.get(t,e),n&&(!r||Array.isArray(n)?r=J.access(t,e,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=S.queue(t,e),r=n.length,i=n.shift(),o=S._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,function(){S.dequeue(t,e)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return J.get(t,n)||J.access(t,n,{empty:S.Callbacks("once memory").add(function(){J.remove(t,[e+"queue",n])})})}}),S.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?S.queue(this[0],t):void 0===e?this:this.each(function(){var n=S.queue(this,t,e);S._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&S.dequeue(this,t)})},dequeue:function(t){return this.each(function(){S.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=J.get(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var it=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ot=new RegExp("^(?:([+-])=|)("+it+")([a-z%]*)$","i"),at=["Top","Right","Bottom","Left"],st=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&S.contains(t.ownerDocument,t)&&"none"===S.css(t,"display")},lt=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];for(o in i=n.apply(t,r||[]),e)t.style[o]=a[o];return i};function dt(t,e,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(t,e,"")},l=s(),d=n&&n[3]||(S.cssNumber[e]?"":"px"),u=(S.cssNumber[e]||"px"!==d&&+l)&&ot.exec(S.css(t,e));if(u&&u[3]!==d){for(l/=2,d=d||u[3],u=+l||1;a--;)S.style(t,e,u+d),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,S.style(t,e,u+d),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=d,r.start=u,r.end=i)),i}var ut={};function ft(t){var e,n=t.ownerDocument,r=t.nodeName,i=ut[r];return i||(e=n.body.appendChild(n.createElement(r)),i=S.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),ut[r]=i,i)}function ct(t,e){for(var n,r,i=[],o=0,a=t.length;o<a;o++)(r=t[o]).style&&(n=r.style.display,e?("none"===n&&(i[o]=J.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&st(r)&&(i[o]=ft(r))):"none"!==n&&(i[o]="none",J.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}S.fn.extend({show:function(){return ct(this,!0)},hide:function(){return ct(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){st(this)?S(this).show():S(this).hide()})}});var pt=/^(?:checkbox|radio)$/i,ht=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,vt=/^$|^module$|\/(?: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,"",""]};function gt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&V(t,e)?S.merge([t],n):n}function bt(t,e){for(var n=0,r=t.length;n<r;n++)J.set(t[n],"globalEval",!e||J.get(e[n],"globalEval"))}mt.optgroup=mt.option,mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td;var yt=/<|&#?\w+;/;function wt(t,e,n,r,i){for(var o,a,s,l,d,u,f=e.createDocumentFragment(),c=[],p=0,h=t.length;p<h;p++)if((o=t[p])||0===o)if("object"===T(o))S.merge(c,o.nodeType?[o]:o);else if(yt.test(o)){for(a=a||f.appendChild(e.createElement("div")),s=(ht.exec(o)||["",""])[1].toLowerCase(),l=mt[s]||mt._default,a.innerHTML=l[1]+S.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;S.merge(c,a.childNodes),(a=f.firstChild).textContent=""}else c.push(e.createTextNode(o));for(f.textContent="",p=0;o=c[p++];)if(r&&S.inArray(o,r)>-1)i&&i.push(o);else if(d=S.contains(o.ownerDocument,o),a=gt(f.appendChild(o),"script"),d&&bt(a),n)for(u=0;o=a[u++];)vt.test(o.type||"")&&n.push(o);return f}!function(){var t=s.createDocumentFragment().appendChild(s.createElement("div")),e=s.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),t.appendChild(e),b.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",b.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var xt=s.documentElement,At=/^key/,Tt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,St=/^([^.]*)(?:\.(.+)|)/;function Ct(){return!0}function Et(){return!1}function It(){try{return s.activeElement}catch(t){}}function $t(t,e,n,r,i,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(r=r||n,n=void 0),e)$t(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Et;else if(!i)return t;return 1===o&&(a=i,(i=function(t){return S().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),t.each(function(){S.event.add(this,e,i,r,n)})}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,l,d,u,f,c,p,h,v,m=J.get(t);if(m)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(xt,i),n.guid||(n.guid=S.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),d=(e=(e||"").match(M)||[""]).length;d--;)p=v=(s=St.exec(e[d])||[])[1],h=(s[2]||"").split(".").sort(),p&&(f=S.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=S.event.special[p]||{},u=S.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(c=l[p])||((c=l[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(p,a)),f.add&&(f.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),i?c.splice(c.delegateCount++,0,u):c.push(u),S.event.global[p]=!0)},remove:function(t,e,n,r,i){var o,a,s,l,d,u,f,c,p,h,v,m=J.hasData(t)&&J.get(t);if(m&&(l=m.events)){for(d=(e=(e||"").match(M)||[""]).length;d--;)if(p=v=(s=St.exec(e[d])||[])[1],h=(s[2]||"").split(".").sort(),p){for(f=S.event.special[p]||{},c=l[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=c.length;o--;)u=c[o],!i&&v!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(c.splice(o,1),u.selector&&c.delegateCount--,f.remove&&f.remove.call(t,u));a&&!c.length&&(f.teardown&&!1!==f.teardown.call(t,h,m.handle)||S.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)S.event.remove(t,p+e[d],n,r,!0);S.isEmptyObject(l)&&J.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,s=S.event.fix(t),l=new Array(arguments.length),d=(J.get(this,"events")||{})[s.type]||[],u=S.event.special[s.type]||{};for(l[0]=s,e=1;e<arguments.length;e++)l[e]=arguments[e];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(a=S.event.handlers.call(this,s,d),e=0;(i=a[e++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,l))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(t,e){var n,r,i,o,a,s=[],l=e.delegateCount,d=t.target;if(l&&d.nodeType&&!("click"===t.type&&t.button>=1))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&("click"!==t.type||!0!==d.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=e[n]).selector+" "]&&(a[i]=r.needsContext?S(i,this).index(d)>-1:S.find(i,this,null,[d]).length),a[i]&&o.push(r);o.length&&s.push({elem:d,handlers:o})}return d=this,l<e.length&&s.push({elem:d,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[S.expando]?t:new S.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==It()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===It()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&V(this,"input"))return this.click(),!1},_default:function(t){return V(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},S.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},S.Event=function(t,e){if(!(this instanceof S.Event))return new S.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Ct:Et,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&S.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Et,isPropagationStopped:Et,isImmediatePropagationStopped:Et,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Ct,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Ct,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Ct,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&At.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&Tt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},S.event.addProp),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){S.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||S.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}}),S.fn.extend({on:function(t,e,n,r){return $t(this,t,e,n,r)},one:function(t,e,n,r){return $t(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,S(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Et),this.each(function(){S.event.remove(this,t,n,e)})}});var kt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Dt=/<script|<style|<link/i,Vt=/checked\s*(?:[^=]|=\s*.checked.)/i,Nt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Lt(t,e){return V(t,"table")&&V(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function Ot(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ft(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Rt(t,e){var n,r,i,o,a,s,l,d;if(1===e.nodeType){if(J.hasData(t)&&(o=J.access(t),a=J.set(e,o),d=o.events))for(i in delete a.handle,a.events={},d)for(n=0,r=d[i].length;n<r;n++)S.event.add(e,i,d[i][n]);tt.hasData(t)&&(s=tt.access(t),l=S.extend({},s),tt.set(e,l))}}function Pt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&pt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function _t(t,e,n,r){e=u.apply([],e);var i,o,a,s,l,d,f=0,c=t.length,p=c-1,h=e[0],v=y(h);if(v||c>1&&"string"==typeof h&&!b.checkClone&&Vt.test(h))return t.each(function(i){var o=t.eq(i);v&&(e[0]=h.call(this,i,o.html())),_t(o,e,n,r)});if(c&&(o=(i=wt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=S.map(gt(i,"script"),Ot)).length;f<c;f++)l=i,f!==p&&(l=S.clone(l,!0,!0),s&&S.merge(a,gt(l,"script"))),n.call(t[f],l,f);if(s)for(d=a[a.length-1].ownerDocument,S.map(a,Ft),f=0;f<s;f++)l=a[f],vt.test(l.type||"")&&!J.access(l,"globalEval")&&S.contains(d,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?S._evalUrl&&S._evalUrl(l.src):A(l.textContent.replace(Nt,""),d,l))}return t}function Mt(t,e,n){for(var r,i=e?S.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(gt(r)),r.parentNode&&(n&&S.contains(r.ownerDocument,r)&&bt(gt(r,"script")),r.parentNode.removeChild(r));return t}S.extend({htmlPrefilter:function(t){return t.replace(kt,"<$1></$2>")},clone:function(t,e,n){var r,i,o,a,s=t.cloneNode(!0),l=S.contains(t.ownerDocument,t);if(!(b.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||S.isXMLDoc(t)))for(a=gt(s),r=0,i=(o=gt(t)).length;r<i;r++)Pt(o[r],a[r]);if(e)if(n)for(o=o||gt(t),a=a||gt(s),r=0,i=o.length;r<i;r++)Rt(o[r],a[r]);else Rt(t,s);return(a=gt(s,"script")).length>0&&bt(a,!l&>(t,"script")),s},cleanData:function(t){for(var e,n,r,i=S.event.special,o=0;void 0!==(n=t[o]);o++)if(Y(n)){if(e=n[J.expando]){if(e.events)for(r in e.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,e.handle);n[J.expando]=void 0}n[tt.expando]&&(n[tt.expando]=void 0)}}}),S.fn.extend({detach:function(t){return Mt(this,t,!0)},remove:function(t){return Mt(this,t)},text:function(t){return q(this,function(t){return void 0===t?S.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 _t(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Lt(this,t).appendChild(t)})},prepend:function(){return _t(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Lt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return _t(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return _t(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&&(S.cleanData(gt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return S.clone(this,t,e)})},html:function(t){return q(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Dt.test(t)&&!mt[(ht.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(S.cleanData(gt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return _t(this,arguments,function(e){var n=this.parentNode;S.inArray(this,t)<0&&(S.cleanData(gt(this)),n&&n.replaceChild(e,this))},t)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){S.fn[t]=function(t){for(var n,r=[],i=S(t),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),S(i[a])[e](n),f.apply(r,n.get());return this.pushStack(r)}});var jt=new RegExp("^("+it+")(?!px)[a-z%]+$","i"),Bt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Ut=new RegExp(at.join("|"),"i");function Ht(t,e,n){var r,i,o,a,s=t.style;return(n=n||Bt(t))&&(""!==(a=n.getPropertyValue(e)||n[e])||S.contains(t.ownerDocument,t)||(a=S.style(t,e)),!b.pixelBoxStyles()&&jt.test(a)&&Ut.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Gt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){d.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",xt.appendChild(d).appendChild(u);var t=i.getComputedStyle(u);n="1%"!==t.top,l=12===e(t.marginLeft),u.style.right="60%",a=36===e(t.right),r=36===e(t.width),u.style.position="absolute",o=36===u.offsetWidth||"absolute",xt.removeChild(d),u=null}}function e(t){return Math.round(parseFloat(t))}var n,r,o,a,l,d=s.createElement("div"),u=s.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",b.clearCloneStyle="content-box"===u.style.backgroundClip,S.extend(b,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o}}))}();var Zt=/^(none|table(?!-c[ea]).+)/,qt=/^--/,Wt={position:"absolute",visibility:"hidden",display:"block"},zt={letterSpacing:"0",fontWeight:"400"},Qt=["Webkit","Moz","ms"],Kt=s.createElement("div").style;function Yt(t){var e=S.cssProps[t];return e||(e=S.cssProps[t]=function(t){if(t in Kt)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=Qt.length;n--;)if((t=Qt[n]+e)in Kt)return t}(t)||t),e}function Xt(t,e,n){var r=ot.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function Jt(t,e,n,r,i,o){var a="width"===e?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=S.css(t,n+at[a],!0,i)),r?("content"===n&&(l-=S.css(t,"padding"+at[a],!0,i)),"margin"!==n&&(l-=S.css(t,"border"+at[a]+"Width",!0,i))):(l+=S.css(t,"padding"+at[a],!0,i),"padding"!==n?l+=S.css(t,"border"+at[a]+"Width",!0,i):s+=S.css(t,"border"+at[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))),l}function te(t,e,n){var r=Bt(t),i=Ht(t,e,r),o="border-box"===S.css(t,"boxSizing",!1,r),a=o;if(jt.test(i)){if(!n)return i;i="auto"}return a=a&&(b.boxSizingReliable()||i===t.style[e]),("auto"===i||!parseFloat(i)&&"inline"===S.css(t,"display",!1,r))&&(i=t["offset"+e[0].toUpperCase()+e.slice(1)],a=!0),(i=parseFloat(i)||0)+Jt(t,e,n||(o?"border":"content"),a,r,i)+"px"}function ee(t,e,n,r,i){return new ee.prototype.init(t,e,n,r,i)}S.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Ht(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:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=K(e),l=qt.test(e),d=t.style;if(l||(e=Yt(s)),a=S.cssHooks[e]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:d[e];"string"==(o=typeof n)&&(i=ot.exec(n))&&i[1]&&(n=dt(t,e,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),b.clearCloneStyle||""!==n||0!==e.indexOf("background")||(d[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(l?d.setProperty(e,n):d[e]=n))}},css:function(t,e,n,r){var i,o,a,s=K(e);return qt.test(e)||(e=Yt(s)),(a=S.cssHooks[e]||S.cssHooks[s])&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=Ht(t,e,r)),"normal"===i&&e in zt&&(i=zt[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(t,e){S.cssHooks[e]={get:function(t,n,r){if(n)return!Zt.test(S.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?te(t,e,r):lt(t,Wt,function(){return te(t,e,r)})},set:function(t,n,r){var i,o=Bt(t),a="border-box"===S.css(t,"boxSizing",!1,o),s=r&&Jt(t,e,r,a,o);return a&&b.scrollboxSize()===o.position&&(s-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-Jt(t,e,"border",!1,o)-.5)),s&&(i=ot.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=S.css(t,e)),Xt(0,n,s)}}}),S.cssHooks.marginLeft=Gt(b.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Ht(t,"marginLeft"))||t.getBoundingClientRect().left-lt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(t,e){S.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+at[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(S.cssHooks[t+e].set=Xt)}),S.fn.extend({css:function(t,e){return q(this,function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=Bt(t),i=e.length;a<i;a++)o[e[a]]=S.css(t,e[a],!1,r);return o}return void 0!==n?S.style(t,e,n):S.css(t,e)},t,e,arguments.length>1)}}),S.Tween=ee,ee.prototype={constructor:ee,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var t=ee.propHooks[this.prop];return t&&t.get?t.get(this):ee.propHooks._default.get(this)},run:function(t){var e,n=ee.propHooks[this.prop];return this.options.duration?this.pos=e=S.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):ee.propHooks._default.set(this),this}},ee.prototype.init.prototype=ee.prototype,ee.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=S.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[S.cssProps[t.prop]]&&!S.cssHooks[t.prop]?t.elem[t.prop]=t.now:S.style(t.elem,t.prop,t.now+t.unit)}}},ee.propHooks.scrollTop=ee.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=ee.prototype.init,S.fx.step={};var ne,re,ie=/^(?:toggle|show|hide)$/,oe=/queueHooks$/;function ae(){re&&(!1===s.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(ae):i.setTimeout(ae,S.fx.interval),S.fx.tick())}function se(){return i.setTimeout(function(){ne=void 0}),ne=Date.now()}function le(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=at[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function de(t,e,n){for(var r,i=(ue.tweeners[e]||[]).concat(ue.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function ue(t,e,n){var r,i,o=0,a=ue.prefilters.length,s=S.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var e=ne||se(),n=Math.max(0,d.startTime+d.duration-e),r=1-(n/d.duration||0),o=0,a=d.tweens.length;o<a;o++)d.tweens[o].run(r);return s.notifyWith(t,[d,r,n]),r<1&&a?n:(a||s.notifyWith(t,[d,1,0]),s.resolveWith(t,[d]),!1)},d=s.promise({elem:t,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:e,originalOptions:n,startTime:ne||se(),duration:n.duration,tweens:[],createTween:function(e,n){var r=S.Tween(t,d.opts,e,n,d.opts.specialEasing[e]||d.opts.easing);return d.tweens.push(r),r},stop:function(e){var n=0,r=e?d.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)d.tweens[n].run(1);return e?(s.notifyWith(t,[d,1,0]),s.resolveWith(t,[d,e])):s.rejectWith(t,[d,e]),this}}),u=d.props;for(function(t,e){var n,r,i,o,a;for(n in t)if(i=e[r=K(n)],o=t[n],Array.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}(u,d.opts.specialEasing);o<a;o++)if(r=ue.prefilters[o].call(d,t,u,d.opts))return y(r.stop)&&(S._queueHooks(d.elem,d.opts.queue).stop=r.stop.bind(r)),r;return S.map(u,de,d),y(d.opts.start)&&d.opts.start.call(t,d),d.progress(d.opts.progress).done(d.opts.done,d.opts.complete).fail(d.opts.fail).always(d.opts.always),S.fx.timer(S.extend(l,{elem:t,anim:d,queue:d.opts.queue})),d}S.Animation=S.extend(ue,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return dt(n.elem,t,ot.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(M);for(var n,r=0,i=t.length;r<i;r++)n=t[r],ue.tweeners[n]=ue.tweeners[n]||[],ue.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,i,o,a,s,l,d,u,f="width"in e||"height"in e,c=this,p={},h=t.style,v=t.nodeType&&st(t),m=J.get(t,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,S.queue(t,"fx").length||a.empty.fire()})})),e)if(i=e[r],ie.test(i)){if(delete e[r],o=o||"toggle"===i,i===(v?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;v=!0}p[r]=m&&m[r]||S.style(t,r)}if((l=!S.isEmptyObject(e))||!S.isEmptyObject(p))for(r in f&&1===t.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(d=m&&m.display)&&(d=J.get(t,"display")),"none"===(u=S.css(t,"display"))&&(d?u=d:(ct([t],!0),d=t.style.display||d,u=S.css(t,"display"),ct([t]))),("inline"===u||"inline-block"===u&&null!=d)&&"none"===S.css(t,"float")&&(l||(c.done(function(){h.display=d}),null==d&&(u=h.display,d="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",c.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),l=!1,p)l||(m?"hidden"in m&&(v=m.hidden):m=J.access(t,"fxshow",{display:d}),o&&(m.hidden=!v),v&&ct([t],!0),c.done(function(){for(r in v||ct([t]),J.remove(t,"fxshow"),p)S.style(t,r,p[r])})),l=de(v?m[r]:0,r,c),r in m||(m[r]=l.start,v&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ue.prefilters.unshift(t):ue.prefilters.push(t)}}),S.speed=function(t,e,n){var r=t&&"object"==typeof t?S.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(t,e,n,r){return this.filter(st).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=ue(this,S.extend({},t),o);(i||J.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=S.timers,a=J.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&oe.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||S.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=J.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=S.timers,a=r?r.length:0;for(n.finish=!0,S.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),S.each(["toggle","show","hide"],function(t,e){var n=S.fn[e];S.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(le(e,!0),t,r,i)}}),S.each({slideDown:le("show"),slideUp:le("hide"),slideToggle:le("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){S.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),S.timers=[],S.fx.tick=function(){var t,e=0,n=S.timers;for(ne=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||S.fx.stop(),ne=void 0},S.fx.timer=function(t){S.timers.push(t),S.fx.start()},S.fx.interval=13,S.fx.start=function(){re||(re=!0,ae())},S.fx.stop=function(){re=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,e){return t=S.fx&&S.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}})},function(){var t=s.createElement("input"),e=s.createElement("select").appendChild(s.createElement("option"));t.type="checkbox",b.checkOn=""!==t.value,b.optSelected=e.selected,(t=s.createElement("input")).value="t",t.type="radio",b.radioValue="t"===t.value}();var fe,ce=S.expr.attrHandle;S.fn.extend({attr:function(t,e){return q(this,S.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){S.removeAttr(this,t)})}}),S.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?S.prop(t,e,n):(1===o&&S.isXMLDoc(t)||(i=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?fe:void 0)),void 0!==n?null===n?void S.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=S.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!b.radioValue&&"radio"===e&&V(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(M);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),fe={set:function(t,e,n){return!1===e?S.removeAttr(t,n):t.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(t,e){var n=ce[e]||S.find.attr;ce[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=ce[a],ce[a]=i,i=null!=n(t,e,r)?a:null,ce[a]=o),i}});var pe=/^(?:input|select|textarea|button)$/i,he=/^(?:a|area)$/i;function ve(t){return(t.match(M)||[]).join(" ")}function me(t){return t.getAttribute&&t.getAttribute("class")||""}function ge(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(M)||[]}S.fn.extend({prop:function(t,e){return q(this,S.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[S.propFix[t]||t]})}}),S.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(t)||(e=S.propFix[e]||e,i=S.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=S.find.attr(t,"tabindex");return e?parseInt(e,10):pe.test(t.nodeName)||he.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),b.optSelected||(S.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)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,l=0;if(y(t))return this.each(function(e){S(this).addClass(t.call(this,e,me(this)))});if((e=ge(t)).length)for(;n=this[l++];)if(i=me(n),r=1===n.nodeType&&" "+ve(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=ve(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,l=0;if(y(t))return this.each(function(e){S(this).removeClass(t.call(this,e,me(this)))});if(!arguments.length)return this.attr("class","");if((e=ge(t)).length)for(;n=this[l++];)if(i=me(n),r=1===n.nodeType&&" "+ve(i)+" "){for(a=0;o=e[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=ve(r))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):y(t)?this.each(function(n){S(this).toggleClass(t.call(this,n,me(this),e),e)}):this.each(function(){var e,i,o,a;if(r)for(i=0,o=S(this),a=ge(t);e=a[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=me(this))&&J.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":J.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+ve(me(n))+" ").indexOf(e)>-1)return!0;return!1}});var be=/\r/g;S.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=y(t),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,S(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=S.map(i,function(t){return null==t?"":t+""})),(e=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(be,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:ve(S.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!V(n.parentNode,"optgroup"))){if(e=S(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,r,i=t.options,o=S.makeArray(e),a=i.length;a--;)((r=i[a]).selected=S.inArray(S.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=S.inArray(S(t).val(),e)>-1}},b.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),b.focusin="onfocusin"in i;var ye=/^(?:focusinfocus|focusoutblur)$/,we=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(t,e,n,r){var o,a,l,d,u,f,c,p,h=[n||s],m=v.call(t,"type")?t.type:t,g=v.call(t,"namespace")?t.namespace.split("."):[];if(a=p=l=n=n||s,3!==n.nodeType&&8!==n.nodeType&&!ye.test(m+S.event.triggered)&&(m.indexOf(".")>-1&&(m=(g=m.split(".")).shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(t=t[S.expando]?t:new S.Event(m,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:S.makeArray(e,[t]),c=S.event.special[m]||{},r||!c.trigger||!1!==c.trigger.apply(n,e))){if(!r&&!c.noBubble&&!w(n)){for(d=c.delegateType||m,ye.test(d+m)||(a=a.parentNode);a;a=a.parentNode)h.push(a),l=a;l===(n.ownerDocument||s)&&h.push(l.defaultView||l.parentWindow||i)}for(o=0;(a=h[o++])&&!t.isPropagationStopped();)p=a,t.type=o>1?d:c.bindType||m,(f=(J.get(a,"events")||{})[t.type]&&J.get(a,"handle"))&&f.apply(a,e),(f=u&&a[u])&&f.apply&&Y(a)&&(t.result=f.apply(a,e),!1===t.result&&t.preventDefault());return t.type=m,r||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(h.pop(),e)||!Y(n)||u&&y(n[m])&&!w(n)&&((l=n[u])&&(n[u]=null),S.event.triggered=m,t.isPropagationStopped()&&p.addEventListener(m,we),n[m](),t.isPropagationStopped()&&p.removeEventListener(m,we),S.event.triggered=void 0,l&&(n[u]=l)),t.result}},simulate:function(t,e,n){var r=S.extend(new S.Event,n,{type:t,isSimulated:!0});S.event.trigger(r,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each(function(){S.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return S.event.trigger(t,e,n,!0)}}),b.focusin||S.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){S.event.simulate(e,t.target,S.event.fix(t))};S.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=J.access(r,e);i||r.addEventListener(t,n,!0),J.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=J.access(r,e)-1;i?J.access(r,e,i):(r.removeEventListener(t,n,!0),J.remove(r,e))}}});var xe=i.location,Ae=Date.now(),Te=/\?/;S.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+t),e};var Se=/\[\]$/,Ce=/\r?\n/g,Ee=/^(?:submit|button|image|reset|file)$/i,Ie=/^(?:input|select|textarea|keygen)/i;function $e(t,e,n,r){var i;if(Array.isArray(e))S.each(e,function(e,i){n||Se.test(t)?r(t,i):$e(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==T(e))r(t,e);else for(i in e)$e(t+"["+i+"]",e[i],n,r)}S.param=function(t,e){var n,r=[],i=function(t,e){var n=y(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!S.isPlainObject(t))S.each(t,function(){i(this.name,this.value)});else for(n in t)$e(n,t[n],e,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&Ie.test(this.nodeName)&&!Ee.test(t)&&(this.checked||!pt.test(t))}).map(function(t,e){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(t){return{name:e.name,value:t.replace(Ce,"\r\n")}}):{name:e.name,value:n.replace(Ce,"\r\n")}}).get()}});var ke=/%20/g,De=/#.*$/,Ve=/([?&])_=[^&]*/,Ne=/^(.*?):[ \t]*([^\r\n]*)$/gm,Le=/^(?:GET|HEAD)$/,Oe=/^\/\//,Fe={},Re={},Pe="*/".concat("*"),_e=s.createElement("a");function Me(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(M)||[];if(y(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function je(t,e,n,r){var i={},o=t===Re;function a(s){var l;return i[s]=!0,S.each(t[s]||[],function(t,s){var d=s(e,n,r);return"string"!=typeof d||o||i[d]?o?!(l=d):void 0:(e.dataTypes.unshift(d),a(d),!1)}),l}return a(e.dataTypes[0])||!i["*"]&&a("*")}function Be(t,e){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&S.extend(!0,t,r),t}_e.href=xe.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xe.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Be(Be(t,S.ajaxSettings),e):Be(S.ajaxSettings,t)},ajaxPrefilter:Me(Fe),ajaxTransport:Me(Re),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,a,l,d,u,f,c,p,h=S.ajaxSetup({},e),v=h.context||h,m=h.context&&(v.nodeType||v.jquery)?S(v):S.event,g=S.Deferred(),b=S.Callbacks("once memory"),y=h.statusCode||{},w={},x={},A="canceled",T={readyState:0,getResponseHeader:function(t){var e;if(u){if(!a)for(a={};e=Ne.exec(o);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(t,e){return null==u&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==u&&(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)T.always(t[T.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||A;return n&&n.abort(e),C(0,e),this}};if(g.promise(T),h.url=((t||h.url||xe.href)+"").replace(Oe,xe.protocol+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(M)||[""],null==h.crossDomain){d=s.createElement("a");try{d.href=h.url,d.href=d.href,h.crossDomain=_e.protocol+"//"+_e.host!=d.protocol+"//"+d.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=S.param(h.data,h.traditional)),je(Fe,h,e,T),u)return T;for(c in(f=S.event&&h.global)&&0==S.active++&&S.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Le.test(h.type),r=h.url.replace(De,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(ke,"+")):(p=h.url.slice(r.length),h.data&&(h.processData||"string"==typeof h.data)&&(r+=(Te.test(r)?"&":"?")+h.data,delete h.data),!1===h.cache&&(r=r.replace(Ve,"$1"),p=(Te.test(r)?"&":"?")+"_="+Ae+++p),h.url=r+p),h.ifModified&&(S.lastModified[r]&&T.setRequestHeader("If-Modified-Since",S.lastModified[r]),S.etag[r]&&T.setRequestHeader("If-None-Match",S.etag[r])),(h.data&&h.hasContent&&!1!==h.contentType||e.contentType)&&T.setRequestHeader("Content-Type",h.contentType),T.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Pe+"; q=0.01":""):h.accepts["*"]),h.headers)T.setRequestHeader(c,h.headers[c]);if(h.beforeSend&&(!1===h.beforeSend.call(v,T,h)||u))return T.abort();if(A="abort",b.add(h.complete),T.done(h.success),T.fail(h.error),n=je(Re,h,e,T)){if(T.readyState=1,f&&m.trigger("ajaxSend",[T,h]),u)return T;h.async&&h.timeout>0&&(l=i.setTimeout(function(){T.abort("timeout")},h.timeout));try{u=!1,n.send(w,C)}catch(t){if(u)throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,e,a,s){var d,c,p,w,x,A=e;u||(u=!0,l&&i.clearTimeout(l),n=void 0,o=s||"",T.readyState=t>0?4:0,d=t>=200&&t<300||304===t,a&&(w=function(t,e,n){for(var r,i,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||t.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(h,T,a)),w=function(t,e,n,r){var i,o,a,s,l,d={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)d[a.toLowerCase()]=t.converters[a];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=d[l+" "+o]||d["* "+o]))for(i in d)if((s=i.split(" "))[1]===o&&(a=d[l+" "+s[0]]||d["* "+s[0]])){!0===a?a=d[i]:!0!==d[i]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(h,w,T,d),d?(h.ifModified&&((x=T.getResponseHeader("Last-Modified"))&&(S.lastModified[r]=x),(x=T.getResponseHeader("etag"))&&(S.etag[r]=x)),204===t||"HEAD"===h.type?A="nocontent":304===t?A="notmodified":(A=w.state,c=w.data,d=!(p=w.error))):(p=A,!t&&A||(A="error",t<0&&(t=0))),T.status=t,T.statusText=(e||A)+"",d?g.resolveWith(v,[c,A,T]):g.rejectWith(v,[T,A,p]),T.statusCode(y),y=void 0,f&&m.trigger(d?"ajaxSuccess":"ajaxError",[T,h,d?c:p]),b.fireWith(v,[T,A]),f&&(m.trigger("ajaxComplete",[T,h]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(t,e,n){return S.get(t,e,n,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],function(t,e){S[e]=function(t,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:t,type:e,dataType:i,data:n,success:r},S.isPlainObject(t)&&t))}}),S._evalUrl=function(t){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=S(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 y(t)?this.each(function(e){S(this).wrapInner(t.call(this,e))}):this.each(function(){var e=S(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=y(t);return this.each(function(n){S(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Ue={0:200,1223:204},He=S.ajaxSettings.xhr();b.cors=!!He&&"withCredentials"in He,b.ajax=He=!!He,S.ajaxTransport(function(t){var e,n;if(b.cors||He&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Ue[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout(function(){e&&n()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),S.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),S.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 S.globalEval(t),t}}}),S.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),S.ajaxTransport("script",function(t){var e,n;if(t.crossDomain)return{send:function(r,i){e=S("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),s.head.appendChild(e[0])},abort:function(){n&&n()}}});var Ge=[],Ze=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ge.pop()||S.expando+"_"+Ae++;return this[t]=!0,t}}),S.ajaxPrefilter("json jsonp",function(t,e,n){var r,o,a,s=!1!==t.jsonp&&(Ze.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ze.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ze,"$1"+r):!1!==t.jsonp&&(t.url+=(Te.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||S.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always(function(){void 0===o?S(i).removeProp(r):i[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,Ge.push(r)),a&&y(o)&&o(a[0]),a=o=void 0}),"script"}),b.createHTMLDocument=function(){var t=s.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),S.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(b.createHTMLDocument?((r=(e=s.implementation.createHTMLDocument("")).createElement("base")).href=s.location.href,e.head.appendChild(r)):e=s),i=N.exec(t),o=!n&&[],i?[e.createElement(i[1])]:(i=wt([t],e,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(t,e,n){var r,i,o,a=this,s=t.indexOf(" ");return s>-1&&(r=ve(t.slice(s)),t=t.slice(0,s)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),a.length>0&&S.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?S("<div>").append(S.parseHTML(t)).find(r):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){S.fn[e]=function(t){return this.on(e,t)}}),S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(t,e,n){var r,i,o,a,s,l,d=S.css(t,"position"),u=S(t),f={};"static"===d&&(t.style.position="relative"),s=u.offset(),o=S.css(t,"top"),l=S.css(t,"left"),("absolute"===d||"fixed"===d)&&(o+l).indexOf("auto")>-1?(a=(r=u.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),y(e)&&(e=e.call(t,n,S.extend({},s))),null!=e.top&&(f.top=e.top-s.top+a),null!=e.left&&(f.left=e.left-s.left+i),"using"in e?e.using.call(t,f):u.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===S.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=S(t).offset()).top+=S.css(t,"borderTopWidth",!0),i.left+=S.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-S.css(r,"marginTop",!0),left:e.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===S.css(t,"position");)t=t.offsetParent;return t||xt})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;S.fn[t]=function(r){return q(this,function(t,r,i){var o;if(w(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[e]:t[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i},t,r,arguments.length)}}),S.each(["top","left"],function(t,e){S.cssHooks[e]=Gt(b.pixelPosition,function(t,n){if(n)return n=Ht(t,e),jt.test(n)?S(t).position()[e]+"px":n})}),S.each({Height:"height",Width:"width"},function(t,e){S.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){S.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return q(this,function(e,n,i){var o;return w(e)?0===r.indexOf("outer")?e["inner"+t]: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?S.css(e,n,s):S.style(e,n,i,s)},e,a?i:void 0,a)}})}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){S.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),S.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),S.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,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),S.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return r=d.call(arguments,2),(i=function(){return t.apply(e||this,r.concat(d.call(arguments)))}).guid=t.guid=t.guid||S.guid++,i},S.holdReady=function(t){t?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=V,S.isFunction=y,S.isWindow=w,S.camelCase=K,S.type=T,S.now=Date.now,S.isNumeric=function(t){var e=S.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},n(5)&&(void 0===(r=function(){return S}.apply(e,[]))||(t.exports=r));var qe=i.jQuery,We=i.$;return S.noConflict=function(t){return i.$===S&&(i.$=We),t&&i.jQuery===S&&(i.jQuery=qe),S},o||(i.jQuery=i.$=S),S})},function(t,e){(function(e){t.exports=e}).call(e,{})},function(t,e){if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var n=!1,r=this;t(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||t(r).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.3.7",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function r(){a.detach().trigger("closed.bs.alert").remove()}var i=t(this),o=i.attr("data-target");o||(o=(o=i.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,""));var a=t("#"===o?[]:o);e&&e.preventDefault(),a.length||(a=i.closest(".alert")),a.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",r).emulateTransitionEnd(n.TRANSITION_DURATION):r())};var r=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var r=t(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),"string"==typeof e&&i[e].call(r)})},t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=r,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 r=t(this),i=r.data("bs.button"),o="object"==typeof e&&e;i||r.data("bs.button",i=new n(this,o)),"toggle"==e?i.toggle():e&&i.setState(e)})}var n=function(e,r){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,r),this.isLoading=!1};n.VERSION="3.3.7",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",o=r.data();e+="Text",null==o.resetText&&r.data("resetText",r[i]()),setTimeout(t.proxy(function(){r[i](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.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 r=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=r,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var r=t(n.target).closest(".btn");e.call(r,"toggle"),t(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(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 r=t(this),i=r.data("bs.carousel"),o=t.extend({},n.DEFAULTS,r.data(),"object"==typeof e&&e),a="string"==typeof e?e:o.slide;i||r.data("bs.carousel",i=new n(this,o)),"number"==typeof e?i.to(e):a?i[a]():o.interval&&i.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.3.7",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 r=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(r)},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(t>n?"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,r){var i=this.$element.find(".item.active"),o=r||this.getItemForDirection(e,i),a=this.interval,s="next"==e?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var d=o[0],u=t.Event("slide.bs.carousel",{relatedTarget:d,direction:s});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var f=t(this.$indicators.children()[this.getItemIndex(o)]);f&&f.addClass("active")}var c=t.Event("slid.bs.carousel",{relatedTarget:d,direction:s});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,i.addClass(s),o.addClass(s),i.one("bsTransitionEnd",function(){o.removeClass([e,s].join(" ")).addClass("active"),i.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(c)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(c)),a&&this.cycle(),this}};var r=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=r,this};var i=function(n){var r,i=t(this),o=t(i.attr("data-target")||(r=i.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var a=t.extend({},o.data(),i.data()),s=i.attr("data-slide-to");s&&(a.interval=!1),e.call(o,a),s&&o.data("bs.carousel").to(s),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),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,r=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(r)}function n(e){return this.each(function(){var n=t(this),i=n.data("bs.collapse"),o=t.extend({},r.DEFAULTS,n.data(),"object"==typeof e&&e);!i&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),i||n.data("bs.collapse",i=new r(this,o)),"string"==typeof e&&i[e]()})}var r=function(e,n){this.$element=t(e),this.options=t.extend({},r.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()};r.VERSION="3.3.7",r.TRANSITION_DURATION=350,r.DEFAULTS={toggle:!0},r.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},r.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(e=i.data("bs.collapse"),e&&e.transitioning))){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(n.call(i,"hide"),e||i.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](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")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(r.TRANSITION_DURATION)[a](this.$element[0][l])}}}},r.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 i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(i,this)).emulateTransitionEnd(r.TRANSITION_DURATION):i.call(this)}}},r.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},r.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,r){var i=t(r);this.addAriaAndCollapsedClass(e(i),i)},this)).end()},r.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var i=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=r,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(r){var i=t(this);i.attr("data-target")||r.preventDefault();var o=e(i),a=o.data("bs.collapse")?"toggle":i.data();n.call(o,a)})}(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 r=n&&t(n);return r&&r.length?r:e.parent()}function n(n){n&&3===n.which||(t(r).remove(),t(i).each(function(){var r=t(this),i=e(r),o={relatedTarget:this};i.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(i[0],n.target)||(i.trigger(n=t.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(r.attr("aria-expanded","false"),i.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}var r=".dropdown-backdrop",i='[data-toggle="dropdown"]',o=function(e){t(e).on("click.bs.dropdown",this.toggle)};o.VERSION="3.3.7",o.prototype.toggle=function(r){var i=t(this);if(!i.is(".disabled, :disabled")){var o=e(i),a=o.hasClass("open");if(n(),!a){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var s={relatedTarget:this};if(o.trigger(r=t.Event("show.bs.dropdown",s)),r.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),o.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 r=t(this);if(n.preventDefault(),n.stopPropagation(),!r.is(".disabled, :disabled")){var o=e(r),a=o.hasClass("open");if(!a&&27!=n.which||a&&27==n.which)return 27==n.which&&o.find(i).trigger("focus"),r.trigger("click");var s=o.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(n.target);38==n.which&&l>0&&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),r=n.data("bs.dropdown");r||n.data("bs.dropdown",r=new o(this)),"string"==typeof e&&r[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,r){return this.each(function(){var i=t(this),o=i.data("bs.modal"),a=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e);o||i.data("bs.modal",o=new n(this,a)),"string"==typeof e?o[e](r):a.show&&o.show(r)})}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.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.7",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 r=this,i=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(i),this.isShown||i.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(){r.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var i=t.support.transition&&r.$element.hasClass("fade");r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.adjustDialog(),i&&r.$element[0].offsetWidth,r.$element.addClass("in"),r.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});i?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(n.TRANSITION_DURATION):r.$element.trigger("focus").trigger(o)}))},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 r=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&i;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){r.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):a()}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 t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},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 r=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=r,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var r=t(this),i=r.attr("href"),o=t(r.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),a=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(i)&&i},o.data(),r.data());r.is("a")&&n.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})}),e.call(o,a,this)})}(jQuery),function(t){"use strict";var e=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)};e.VERSION="3.3.7",e.TRANSITION_DURATION=150,e.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}},e.prototype.init=function(e,n,r){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&t(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 i=this.options.trigger.split(" "),o=i.length;o--;){var a=i[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",l="hover"==a?"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()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,r){n[t]!=r&&(e[t]=r)}),e},e.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return 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?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},e.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},e.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())return clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},e.prototype.show=function(){var n=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var r=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!r)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 s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,d=l.test(s);d&&(s=s.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),f=o[0].offsetWidth,c=o[0].offsetHeight;if(d){var p=s,h=this.getPosition(this.$viewport);s="bottom"==s&&u.bottom+c>h.bottom?"top":"top"==s&&u.top-c<h.top?"bottom":"right"==s&&u.right+f>h.width?"left":"left"==s&&u.left-f<h.left?"right":s,o.removeClass(p).addClass(s)}var v=this.getCalculatedOffset(s,u,f,c);this.applyPlacement(v,s);var m=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",m).emulateTransitionEnd(e.TRANSITION_DURATION):m()}},e.prototype.applyPlacement=function(e,n){var r=this.tip(),i=r[0].offsetWidth,o=r[0].offsetHeight,a=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),e.top+=a,e.left+=s,t.offset.setOffset(r[0],t.extend({using:function(t){r.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),r.addClass("in");var l=r[0].offsetWidth,d=r[0].offsetHeight;"top"==n&&d!=o&&(e.top=e.top+o-d);var u=this.getViewportAdjustedDelta(n,e,l,d);u.left?e.left+=u.left:e.top+=u.top;var f=/top|bottom/.test(n),c=f?2*u.left-i+l:2*u.top-o+d,p=f?"offsetWidth":"offsetHeight";r.offset(e),this.replaceArrow(c,r[0][p],f)},e.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(n){function r(){"in"!=i.hoverState&&o.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),n&&n()}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",r).emulateTransitionEnd(e.TRANSITION_DURATION):r(),this.hoverState=null,this},e.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","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(e){var n=(e=e||this.$element)[0],r="BODY"==n.tagName,i=n.getBoundingClientRect();null==i.width&&(i=t.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var o=window.SVGElement&&n instanceof window.SVGElement,a=r?{top:0,left:0}:o?null:e.offset(),s={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=r?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},i,s,l,a)},e.prototype.getCalculatedOffset=function(t,e,n,r){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-r,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-r/2,left:e.left-n}:{top:e.top+e.height/2-r/2,left:e.left+e.width}},e.prototype.getViewportAdjustedDelta=function(t,e,n,r){var i={top:0,left:0};if(!this.$viewport)return i;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-o-a.scroll,l=e.top+o-a.scroll+r;s<a.top?i.top=a.top-s:l>a.top+a.height&&(i.top=a.top+a.height-l)}else{var d=e.left-o,u=e.left+o+n;d<a.left?i.left=a.left-d:u>a.right&&(i.left=a.left+a.width-u)}return i},e.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)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.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},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.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)},e.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})};var n=t.fn.tooltip;t.fn.tooltip=function(n){return this.each(function(){var r=t(this),i=r.data("bs.tooltip"),o="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.tooltip",i=new e(this,o)),"string"==typeof n&&i[n]())})},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,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.3.7",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),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"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 r=t(this),i=r.data("bs.popover"),o="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||r.data("bs.popover",i=new e(this,o)),"string"==typeof n&&i[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,r){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var r=t(this),i=r.data("bs.scrollspy"),o="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new e(this,o)),"string"==typeof n&&i[n]()})}e.VERSION="3.3.7",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",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),i=e.data("target")||e.attr("href"),o=/^#./.test(i)&&t(i);return o&&o.length&&o.is(":visible")&&[[o[n]().top+r,i]]||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(),r=this.options.offset+n-this.$scrollElement.height(),i=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=r)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e<i[0])return this.activeTarget=null,this.clear();for(t=i.length;t--;)a!=o[t]&&e>=i[t]&&(void 0===i[t+1]||e<i[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',r=t(n).parents("li").addClass("active");r.parent(".dropdown-menu").length&&(r=r.closest("li.dropdown").addClass("active")),r.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=r,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 r=t(this),i=r.data("bs.tab");i||r.data("bs.tab",i=new n(this)),"string"==typeof e&&i[e]()})}var n=function(e){this.element=t(e)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),r=e.data("target");if(r||(r=(r=e.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var i=n.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),a=t.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(o),e.trigger(a),!a.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=t(r);this.activate(e.closest("li"),n),this.activate(s,s.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},n.prototype.activate=function(e,r,i){function o(){a.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),i&&i()}var a=r.find("> .active"),s=i&&t.support.transition&&(a.length&&a.hasClass("fade")||!!r.find("> .fade").length);a.length&&s?a.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o(),a.removeClass("in")};var r=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=r,this};var i=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.affix"),o="object"==typeof e&&e;i||r.data("bs.affix",i=new n(this,o)),"string"==typeof e&&i[e]()})}var n=function(e,r){this.options=t.extend({},n.DEFAULTS,r),this.$target=t(this.options.target).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.3.7",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,r){var i=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return i<n&&"top";if("bottom"==this.affixed)return null!=n?!(i+this.unpin<=o.top)&&"bottom":!(i+a<=t-r)&&"bottom";var s=null==this.affixed,l=s?i:o.top;return null!=n&&i<=n?"top":null!=r&&l+(s?a:e)>=t-r&&"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(),r=this.options.offset,i=r.top,o=r.bottom,a=Math.max(t(document).height(),t(document.body).height());"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var s=this.getState(a,e,i,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),d=t.Event(l+".bs.affix");if(this.$element.trigger(d),d.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:a-e-o})}};var r=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=r,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),r=n.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),e.call(n,r)})})}(jQuery)},function(t,e){if("undefined"==typeof jQuery)throw new Error("AdminLTE requires jQuery");!function(t){"use strict";function e(e){return this.each(function(){var i=t(this),a=i.data(n);if(!a){var s=t.extend({},r,i.data(),"object"==typeof e&&e);i.data(n,a=new o(i,s))}if("string"==typeof a){if(void 0===a[e])throw new Error("No method named "+e);a[e]()}})}var n="lte.boxrefresh",r={source:"",params:{},trigger:".refresh-btn",content:".box-body",loadInContent:!0,responseType:"",overlayTemplate:'<div class="overlay"><div class="fa fa-refresh fa-spin"></div></div>',onLoadStart:function(){},onLoadDone:function(t){return t}},i={data:'[data-widget="box-refresh"]'},o=function(e,n){if(this.element=e,this.options=n,this.$overlay=t(n.overlay),""===n.source)throw new Error("Source url was not defined. Please specify a url in your BoxRefresh source option.");this._setUpListeners(),this.load()};o.prototype.load=function(){this._addOverlay(),this.options.onLoadStart.call(t(this)),t.get(this.options.source,this.options.params,function(e){this.options.loadInContent&&t(this.options.content).html(e),this.options.onLoadDone.call(t(this),e),this._removeOverlay()}.bind(this),""!==this.options.responseType&&this.options.responseType)},o.prototype._setUpListeners=function(){t(this.element).on("click",i.trigger,function(t){t&&t.preventDefault(),this.load()}.bind(this))},o.prototype._addOverlay=function(){t(this.element).append(this.$overlay)},o.prototype._removeOverlay=function(){t(this.element).remove(this.$overlay)};var a=t.fn.boxRefresh;t.fn.boxRefresh=e,t.fn.boxRefresh.Constructor=o,t.fn.boxRefresh.noConflict=function(){return t.fn.boxRefresh=a,this},t(window).on("load",function(){t(i.data).each(function(){e.call(t(this))})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data(n);if(!o){var a=t.extend({},r,i.data(),"object"==typeof e&&e);i.data(n,o=new h(i,a))}if("string"==typeof e){if(void 0===o[e])throw new Error("No method named "+e);o[e]()}})}var n="lte.boxwidget",r={animationSpeed:500,collapseTrigger:'[data-widget="collapse"]',removeTrigger:'[data-widget="remove"]',collapseIcon:"fa-minus",expandIcon:"fa-plus",removeIcon:"fa-times"},i=".box",o=".collapsed-box",a=".box-header",s=".box-body",l=".box-footer",d=".box-tools",u="collapsed-box",f="collapsed.boxwidget",c="expanded.boxwidget",p="removed.boxwidget",h=function(t,e){this.element=t,this.options=e,this._setUpListeners()};h.prototype.toggle=function(){t(this.element).is(o)?this.expand():this.collapse()},h.prototype.expand=function(){var e=t.Event(c),n=this.options.collapseIcon,r=this.options.expandIcon;t(this.element).removeClass(u),t(this.element).children(a+", "+s+", "+l).children(d).find("."+r).removeClass(r).addClass(n),t(this.element).children(s+", "+l).slideDown(this.options.animationSpeed,function(){t(this.element).trigger(e)}.bind(this))},h.prototype.collapse=function(){var e=t.Event(f),n=this.options.collapseIcon,r=this.options.expandIcon;t(this.element).children(a+", "+s+", "+l).children(d).find("."+n).removeClass(n).addClass(r),t(this.element).children(s+", "+l).slideUp(this.options.animationSpeed,function(){t(this.element).addClass(u),t(this.element).trigger(e)}.bind(this))},h.prototype.remove=function(){var e=t.Event(p);t(this.element).slideUp(this.options.animationSpeed,function(){t(this.element).trigger(e),t(this.element).remove()}.bind(this))},h.prototype._setUpListeners=function(){var e=this;t(this.element).on("click",this.options.collapseTrigger,function(n){return n&&n.preventDefault(),e.toggle(t(this)),!1}),t(this.element).on("click",this.options.removeTrigger,function(n){return n&&n.preventDefault(),e.remove(t(this)),!1})};var v=t.fn.boxWidget;t.fn.boxWidget=e,t.fn.boxWidget.Constructor=h,t.fn.boxWidget.noConflict=function(){return t.fn.boxWidget=v,this},t(window).on("load",function(){t(i).each(function(){e.call(t(this))})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data(n);if(!o){var a=t.extend({},r,i.data(),"object"==typeof e&&e);i.data(n,o=new p(i,a))}"string"==typeof e&&o.toggle()})}var n="lte.controlsidebar",r={slide:!0},i=".control-sidebar",o='[data-toggle="control-sidebar"]',a=".control-sidebar-open",s=".control-sidebar-bg",l=".wrapper",d=".layout-boxed",u="control-sidebar-open",f="collapsed.controlsidebar",c="expanded.controlsidebar",p=function(t,e){this.element=t,this.options=e,this.hasBindedResize=!1,this.init()};p.prototype.init=function(){t(this.element).is(o)||t(this).on("click",this.toggle),this.fix(),t(window).resize(function(){this.fix()}.bind(this))},p.prototype.toggle=function(e){e&&e.preventDefault(),this.fix(),t(i).is(a)||t("body").is(a)?this.collapse():this.expand()},p.prototype.expand=function(){this.options.slide?t(i).addClass(u):t("body").addClass(u),t(this.element).trigger(t.Event(c))},p.prototype.collapse=function(){t("body, "+i).removeClass(u),t(this.element).trigger(t.Event(f))},p.prototype.fix=function(){t("body").is(d)&&this._fixForBoxed(t(s))},p.prototype._fixForBoxed=function(e){e.css({position:"absolute",height:t(l).height()})};var h=t.fn.controlSidebar;t.fn.controlSidebar=e,t.fn.controlSidebar.Constructor=p,t.fn.controlSidebar.noConflict=function(){return t.fn.controlSidebar=h,this},t(document).on("click",o,function(n){n&&n.preventDefault(),e.call(t(this),"toggle")})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data(n);i||r.data(n,i=new a(r)),"string"==typeof e&&i.toggle(r)})}var n="lte.directchat",r='[data-widget="chat-pane-toggle"]',i=".direct-chat",o="direct-chat-contacts-open",a=function(t){this.element=t};a.prototype.toggle=function(t){t.parents(i).first().toggleClass(o)};var s=t.fn.directChat;t.fn.directChat=e,t.fn.directChat.Constructor=a,t.fn.directChat.noConflict=function(){return t.fn.directChat=s,this},t(document).on("click",r,function(n){n&&n.preventDefault(),e.call(t(this),"toggle")})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data(n);if(!o){var a=t.extend({},r,i.data(),"object"==typeof e&&e);i.data(n,o=new v(a))}if("string"==typeof e){if(void 0===o[e])throw new Error("No method named "+e);o[e]()}})}var n="lte.layout",r={slimscroll:!0,resetHeight:!0},i=".wrapper",o=".content-wrapper",a=".layout-boxed",s=".main-footer",l=".main-header",d=".sidebar",u=".control-sidebar",f=".sidebar-menu",c=".main-header .logo",p="fixed",h="hold-transition",v=function(t){this.options=t,this.bindedResize=!1,this.activate()};v.prototype.activate=function(){this.fix(),this.fixSidebar(),t("body").removeClass(h),this.options.resetHeight&&t("body, html, "+i).css({height:"auto","min-height":"100%"}),this.bindedResize||(t(window).resize(function(){this.fix(),this.fixSidebar(),t(c+", "+d).one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){this.fix(),this.fixSidebar()}.bind(this))}.bind(this)),this.bindedResize=!0),t(f).on("expanded.tree",function(){this.fix(),this.fixSidebar()}.bind(this)),t(f).on("collapsed.tree",function(){this.fix(),this.fixSidebar()}.bind(this))},v.prototype.fix=function(){t(a+" > "+i).css("overflow","hidden");var e=t(s).outerHeight()||0,n=(t(l).outerHeight()||0)+e,r=t(window).height(),f=t(d).height()||0;if(t("body").hasClass(p))t(o).css("min-height",r-e);else{var c;r>=f?(t(o).css("min-height",r-n),c=r-n):(t(o).css("min-height",f),c=f);var h=t(u);void 0!==h&&h.height()>c&&t(o).css("min-height",h.height())}},v.prototype.fixSidebar=function(){t("body").hasClass(p)?this.options.slimscroll&&void 0!==t.fn.slimScroll&&t(d).slimScroll({height:t(window).height()-t(l).height()+"px"}):void 0!==t.fn.slimScroll&&t(d).slimScroll({destroy:!0}).height("auto")};var m=t.fn.layout;t.fn.layout=e,t.fn.layout.Constuctor=v,t.fn.layout.noConflict=function(){return t.fn.layout=m,this},t(window).on("load",function(){e.call(t("body"))})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data(n);if(!o){var a=t.extend({},r,i.data(),"object"==typeof e&&e);i.data(n,o=new b(a))}"toggle"===e&&o.toggle()})}var n="lte.pushmenu",r={collapseScreenSize:767,expandOnHover:!1,expandTransitionDelay:200},i=".sidebar-collapse",o=".main-sidebar",a=".content-wrapper",s=".sidebar-form .form-control",l='[data-toggle="push-menu"]',d=".sidebar-mini",u=".sidebar-expanded-on-hover",f=".fixed",c="sidebar-collapse",p="sidebar-open",h="sidebar-expanded-on-hover",v="sidebar-mini-expand-feature",m="expanded.pushMenu",g="collapsed.pushMenu",b=function(t){this.options=t,this.init()};b.prototype.init=function(){(this.options.expandOnHover||t("body").is(d+f))&&(this.expandOnHover(),t("body").addClass(v)),t(a).click(function(){t(window).width()<=this.options.collapseScreenSize&&t("body").hasClass(p)&&this.close()}.bind(this)),t(s).click(function(t){t.stopPropagation()})},b.prototype.toggle=function(){var e=t(window).width(),n=!t("body").hasClass(c);e<=this.options.collapseScreenSize&&(n=t("body").hasClass(p)),n?this.close():this.open()},b.prototype.open=function(){t(window).width()>this.options.collapseScreenSize?t("body").removeClass(c).trigger(t.Event(m)):t("body").addClass(p).trigger(t.Event(m))},b.prototype.close=function(){t(window).width()>this.options.collapseScreenSize?t("body").addClass(c).trigger(t.Event(g)):t("body").removeClass(p+" "+c).trigger(t.Event(g))},b.prototype.expandOnHover=function(){t(o).hover(function(){t("body").is(d+i)&&t(window).width()>this.options.collapseScreenSize&&this.expand()}.bind(this),function(){t("body").is(u)&&this.collapse()}.bind(this))},b.prototype.expand=function(){setTimeout(function(){t("body").removeClass(c).addClass(h)},this.options.expandTransitionDelay)},b.prototype.collapse=function(){setTimeout(function(){t("body").removeClass(h).addClass(c)},this.options.expandTransitionDelay)};var y=t.fn.pushMenu;t.fn.pushMenu=e,t.fn.pushMenu.Constructor=b,t.fn.pushMenu.noConflict=function(){return t.fn.pushMenu=y,this},t(document).on("click",l,function(n){n.preventDefault(),e.call(t(this),"toggle")}),t(window).on("load",function(){e.call(t(l))})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data(n);if(!o){var s=t.extend({},r,i.data(),"object"==typeof e&&e);i.data(n,o=new a(i,s))}if("string"==typeof o){if(void 0===o[e])throw new Error("No method named "+e);o[e]()}})}var n="lte.todolist",r={onCheck:function(t){return t},onUnCheck:function(t){return t}},i={data:'[data-widget="todo-list"]'},o="done",a=function(t,e){this.element=t,this.options=e,this._setUpListeners()};a.prototype.toggle=function(t){t.parents(i.li).first().toggleClass(o),t.prop("checked")?this.check(t):this.unCheck(t)},a.prototype.check=function(t){this.options.onCheck.call(t)},a.prototype.unCheck=function(t){this.options.onUnCheck.call(t)},a.prototype._setUpListeners=function(){var e=this;t(this.element).on("change ifChanged","input:checkbox",function(){e.toggle(t(this))})};var s=t.fn.todoList;t.fn.todoList=e,t.fn.todoList.Constructor=a,t.fn.todoList.noConflict=function(){return t.fn.todoList=s,this},t(window).on("load",function(){t(i.data).each(function(){e.call(t(this))})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this);if(!i.data(n)){var o=t.extend({},r,i.data(),"object"==typeof e&&e);i.data(n,new p(i,o))}})}var n="lte.tree",r={animationSpeed:500,accordion:!0,followLink:!1,trigger:".treeview a"},i=".treeview",o=".treeview-menu",a=".menu-open, .active",s='[data-widget="tree"]',l=".active",d="menu-open",u="tree",f="collapsed.tree",c="expanded.tree",p=function(e,n){this.element=e,this.options=n,t(this.element).addClass(u),t(i+l,this.element).addClass(d),this._setUpListeners()};p.prototype.toggle=function(t,e){var n=t.next(o),r=t.parent(),a=r.hasClass(d);r.is(i)&&(this.options.followLink&&"#"!==t.attr("href")||e.preventDefault(),a?this.collapse(n,r):this.expand(n,r))},p.prototype.expand=function(e,n){var r=t.Event(c);if(this.options.accordion){var i=n.siblings(a),s=i.children(o);this.collapse(s,i)}n.addClass(d),e.slideDown(this.options.animationSpeed,function(){t(this.element).trigger(r)}.bind(this))},p.prototype.collapse=function(e,n){var r=t.Event(f);n.removeClass(d),e.slideUp(this.options.animationSpeed,function(){t(this.element).trigger(r)}.bind(this))},p.prototype._setUpListeners=function(){var e=this;t(this.element).on("click",this.options.trigger,function(n){e.toggle(t(this),n)})};var h=t.fn.tree;t.fn.tree=e,t.fn.tree.Constructor=p,t.fn.tree.noConflict=function(){return t.fn.tree=h,this},t(window).on("load",function(){t(s).each(function(){e.call(t(this))})})}(jQuery)},function(t,e){!function(t){function e(t,e,i){var o=t[0],a=/er/.test(i)?v:/bl/.test(i)?p:f,s=i==m?{checked:o[f],disabled:o[p],indeterminate:"true"==t.attr(v)||"false"==t.attr(h)}:o[a];if(/^(ch|di|in)/.test(i)&&!s)n(t,a);else if(/^(un|en|de)/.test(i)&&s)r(t,a);else if(i==m)for(a in s)s[a]?n(t,a,!0):r(t,a,!0);else e&&"toggle"!=i||(e||t[w]("ifClicked"),s?o[g]!==u&&r(t,a):n(t,a))}function n(e,n,i){var m=e[0],w=e.parent(),x=n==f,T=n==v,S=n==p,C=T?h:x?c:"enabled",E=o(e,C+a(m[g])),I=o(e,n+a(m[g]));if(!0!==m[n]){if(!i&&n==f&&m[g]==u&&m.name){var $=e.closest("form"),k='input[name="'+m.name+'"]';(k=$.length?$.find(k):t(k)).each(function(){this!==m&&t(this).data(l)&&r(t(this),n)})}T?(m[n]=!0,m[f]&&r(e,f,"force")):(i||(m[n]=!0),x&&m[v]&&r(e,v,!1)),s(e,x,n,i)}m[p]&&o(e,A,!0)&&w.find("."+d).css(A,"default"),w[b](I||o(e,n)||""),S?w.attr("aria-disabled","true"):w.attr("aria-checked",T?"mixed":"true"),w[y](E||o(e,C)||"")}function r(t,e,n){var r=t[0],i=t.parent(),l=e==f,u=e==v,m=e==p,w=u?h:l?c:"enabled",x=o(t,w+a(r[g])),T=o(t,e+a(r[g]));!1!==r[e]&&(!u&&n&&"force"!=n||(r[e]=!1),s(t,l,w,n)),!r[p]&&o(t,A,!0)&&i.find("."+d).css(A,"pointer"),i[y](T||o(t,e)||""),m?i.attr("aria-disabled","false"):i.attr("aria-checked","false"),i[b](x||o(t,w)||"")}function i(e,n){e.data(l)&&(e.parent().html(e.attr("style",e.data(l).s||"")),n&&e[w](n),e.off(".i").unwrap(),t(x+'[for="'+e[0].id+'"]').add(e.closest(x)).off(".i"))}function o(t,e,n){if(t.data(l))return t.data(l).o[e+(n?"":"Class")]}function a(t){return t.charAt(0).toUpperCase()+t.slice(1)}function s(t,e,n,r){r||(e&&t[w]("ifToggled"),t[w]("ifChanged")[w]("if"+a(n)))}var l="iCheck",d=l+"-helper",u="radio",f="checked",c="un"+f,p="disabled",h="determinate",v="in"+h,m="update",g="type",b="addClass",y="removeClass",w="trigger",x="label",A="cursor",T=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);t.fn[l]=function(o,a){var s='input[type="checkbox"], input[type="'+u+'"]',c=t(),h=function(e){e.each(function(){var e=t(this);c=e.is(s)?c.add(e):c.add(e.find(s))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(o))return o=o.toLowerCase(),h(this),c.each(function(){var n=t(this);"destroy"==o?i(n,"ifDestroyed"):e(n,!0,o),t.isFunction(a)&&a()});if("object"!=typeof o&&o)return this;var A=t.extend({checkedClass:f,disabledClass:p,indeterminateClass:v,labelHover:!0,aria:!1},o),S=A.handle,C=A.hoverClass||"hover",E=A.focusClass||"focus",I=A.activeClass||"active",$=!!A.labelHover,k=A.labelHoverClass||"hover",D=0|(""+A.increaseArea).replace("%","");return"checkbox"!=S&&S!=u||(s='input[type="'+S+'"]'),-50>D&&(D=-50),h(this),c.each(function(){var o=t(this);i(o);var a=this,s=a.id,c={position:"absolute",top:h=-D+"%",left:h,display:"block",width:c=100+2*D+"%",height:c,margin:0,padding:0,background:"#fff",border:0,opacity:0},h=T?{position:"absolute",visibility:"hidden"}:D?c:{position:"absolute",opacity:0},v="checkbox"==a[g]?A.checkboxClass||"icheckbox":A.radioClass||"i"+u,S=t(x+'[for="'+s+'"]').add(o.closest(x)),V=!!A.aria,N=l+"-"+Math.random().toString(36).replace("0.",""),L='<div class="'+v+'" '+(V?'role="'+a[g]+'" ':"");S.length&&V&&S.each(function(){L+='aria-labelledby="',this.id?L+=this.id:(this.id=N,L+=N),L+='"'}),L=o.wrap(L+"/>")[w]("ifCreated").parent().append(A.insert),c=t('<ins class="'+d+'"/>').css(c).appendTo(L),o.data(l,{o:A,s:o.attr("style")}).css(h),A.inheritClass&&L[b](a.className||""),A.inheritID&&s&&L.attr("id",l+"-"+s),"static"==L.css("position")&&L.css("position","relative"),e(o,!0,m),S.length&&S.on("click.i mouseover.i mouseout.i touchbegin.i touchend.i",function(n){var r=n[g],i=t(this);if(!a[p]){if("click"==r){if(t(n.target).is("a"))return;e(o,!1,!0)}else $&&(/ut|nd/.test(r)?(L[y](C),i[y](k)):(L[b](C),i[b](k)));if(!T)return!1;n.stopPropagation()}}),o.on("click.i focus.i blur.i keyup.i keydown.i keypress.i",function(t){var e=t[g];return t=t.keyCode,"click"!=e&&("keydown"==e&&32==t?(a[g]==u&&a[f]||(a[f]?r(o,f):n(o,f)),!1):void("keyup"==e&&a[g]==u?!a[f]&&n(o,f):/us|ur/.test(e)&&L["blur"==e?y:b](E)))}),c.on("click mousedown mouseup mouseover mouseout touchbegin.i touchend.i",function(t){var n=t[g],r=/wn|up/.test(n)?I:C;if(!a[p]){if("click"==n?e(o,!1,!0):(/wn|er|in/.test(n)?L[b](r):L[y](r+" "+I),S.length&&$&&r==C&&S[/ut|nd/.test(n)?y:b](k)),!T)return!1;t.stopPropagation()}})})}}(window.jQuery||window.Zepto)},function(t,e){if("undefined"==typeof jQuery)throw new Error("BootstrapValidator requires jQuery");var n,r;!function(t){var e=window.jQuery.fn.jquery.split(" ")[0].split(".");if(+e[0]<2&&+e[1]<9||1==+e[0]&&9==+e[1]&&+e[2]<1)throw new Error("BootstrapValidator requires jQuery version 1.9.1 or higher")}(),n=window.jQuery,(r=function(t,e){this.$form=n(t),this.options=n.extend({},n.fn.bootstrapValidator.DEFAULT_OPTIONS,e),this.$invalidFields=n([]),this.$submitButton=null,this.$hiddenButton=null,this.STATUS_NOT_VALIDATED="NOT_VALIDATED",this.STATUS_VALIDATING="VALIDATING",this.STATUS_INVALID="INVALID",this.STATUS_VALID="VALID";var r=function(){for(var t=3,e=document.createElement("div"),n=e.all||[];e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><br><![endif]--\x3e",n[0];);return t>4?t:!t}(),i=document.createElement("div");this._changeEvent=9!==r&&"oninput"in i?"input":"keyup",this._submitIfValid=null,this._cacheFields={},this._init()}).prototype={constructor:r,_init:function(){var t=this,e={autoFocus:this.$form.attr("data-bv-autofocus"),container:this.$form.attr("data-bv-container"),events:{formInit:this.$form.attr("data-bv-events-form-init"),formError:this.$form.attr("data-bv-events-form-error"),formSuccess:this.$form.attr("data-bv-events-form-success"),fieldAdded:this.$form.attr("data-bv-events-field-added"),fieldRemoved:this.$form.attr("data-bv-events-field-removed"),fieldInit:this.$form.attr("data-bv-events-field-init"),fieldError:this.$form.attr("data-bv-events-field-error"),fieldSuccess:this.$form.attr("data-bv-events-field-success"),fieldStatus:this.$form.attr("data-bv-events-field-status"),validatorError:this.$form.attr("data-bv-events-validator-error"),validatorSuccess:this.$form.attr("data-bv-events-validator-success")},excluded:this.$form.attr("data-bv-excluded"),feedbackIcons:{valid:this.$form.attr("data-bv-feedbackicons-valid"),invalid:this.$form.attr("data-bv-feedbackicons-invalid"),validating:this.$form.attr("data-bv-feedbackicons-validating")},group:this.$form.attr("data-bv-group"),live:this.$form.attr("data-bv-live"),message:this.$form.attr("data-bv-message"),onError:this.$form.attr("data-bv-onerror"),onSuccess:this.$form.attr("data-bv-onsuccess"),submitButtons:this.$form.attr("data-bv-submitbuttons"),threshold:this.$form.attr("data-bv-threshold"),trigger:this.$form.attr("data-bv-trigger"),verbose:this.$form.attr("data-bv-verbose"),fields:{}};for(var r in this.$form.attr("novalidate","novalidate").addClass(this.options.elementClass).on("submit.bv",function(e){e.preventDefault(),t.validate()}).on("click.bv",this.options.submitButtons,function(){t.$submitButton=n(this),t._submitIfValid=!0}).find("[name], [data-bv-field]").each(function(){var r=n(this),i=r.attr("name")||r.attr("data-bv-field"),o=t._parseOptions(r);o&&(r.attr("data-bv-field",i),e.fields[i]=n.extend({},o,e.fields[i]))}),this.options=n.extend(!0,this.options,e),this.$hiddenButton=n("<button/>").attr("type","submit").prependTo(this.$form).addClass("bv-hidden-submit").css({display:"none",width:0,height:0}),this.$form.on("click.bv",'[type="submit"]',function(e){if(!e.isDefaultPrevented()){var r=n(e.target),i=r.is('[type="submit"]')?r.eq(0):r.parent('[type="submit"]').eq(0);!t.options.submitButtons||i.is(t.options.submitButtons)||i.is(t.$hiddenButton)||t.$form.off("submit.bv").submit()}}),this.options.fields)this._initField(r);this.$form.trigger(n.Event(this.options.events.formInit),{bv:this,options:this.options}),this.options.onSuccess&&this.$form.on(this.options.events.formSuccess,function(e){n.fn.bootstrapValidator.helpers.call(t.options.onSuccess,[e])}),this.options.onError&&this.$form.on(this.options.events.formError,function(e){n.fn.bootstrapValidator.helpers.call(t.options.onError,[e])})},_parseOptions:function(t){var e,r,i,o,a,s,l,d,u,f=t.attr("name")||t.attr("data-bv-field"),c={};for(r in n.fn.bootstrapValidator.validators)if(e=n.fn.bootstrapValidator.validators[r],i="data-bv-"+r.toLowerCase(),o=t.attr(i)+"",(u="function"==typeof e.enableByHtml5?e.enableByHtml5(t):null)&&"false"!==o||!0!==u&&(""===o||"true"===o||i===o.toLowerCase()))for(d in e.html5Attributes=n.extend({},{message:"message",onerror:"onError",onsuccess:"onSuccess"},e.html5Attributes),c[r]=n.extend({},!0===u?{}:u,c[r]),e.html5Attributes)a=e.html5Attributes[d],s="data-bv-"+r.toLowerCase()+"-"+d,(l=t.attr(s))&&("true"===l||s===l.toLowerCase()?l=!0:"false"===l&&(l=!1),c[r][a]=l);var p={autoFocus:t.attr("data-bv-autofocus"),container:t.attr("data-bv-container"),excluded:t.attr("data-bv-excluded"),feedbackIcons:t.attr("data-bv-feedbackicons"),group:t.attr("data-bv-group"),message:t.attr("data-bv-message"),onError:t.attr("data-bv-onerror"),onStatus:t.attr("data-bv-onstatus"),onSuccess:t.attr("data-bv-onsuccess"),selector:t.attr("data-bv-selector"),threshold:t.attr("data-bv-threshold"),trigger:t.attr("data-bv-trigger"),verbose:t.attr("data-bv-verbose"),validators:c},h=n.isEmptyObject(p);return!n.isEmptyObject(c)||!h&&this.options.fields&&this.options.fields[f]?(p.validators=c,p):null},_initField:function(t){var e=n([]);switch(typeof t){case"object":e=t,t=t.attr("data-bv-field");break;case"string":(e=this.getFieldElements(t)).attr("data-bv-field",t)}if(0!==e.length&&null!==this.options.fields[t]&&null!==this.options.fields[t].validators){var r;for(r in this.options.fields[t].validators)n.fn.bootstrapValidator.validators[r]||delete this.options.fields[t].validators[r];null===this.options.fields[t].enabled&&(this.options.fields[t].enabled=!0);for(var i=this,o=e.length,a=e.attr("type"),s=1===o||"radio"===a||"checkbox"===a,l="radio"===a||"checkbox"===a||"file"===a||"SELECT"===e.eq(0).get(0).tagName?"change":this._changeEvent,d=(this.options.fields[t].trigger||this.options.trigger||l).split(" "),u=n.map(d,function(t){return t+".update.bv"}).join(" "),f=0;o>f;f++){var c=e.eq(f),p=this.options.fields[t].group||this.options.group,h=c.parents(p),v="function"==typeof(this.options.fields[t].container||this.options.container)?(this.options.fields[t].container||this.options.container).call(this,c,this):this.options.fields[t].container||this.options.container,m=v&&"tooltip"!==v&&"popover"!==v?n(v):this._getMessageContainer(c,p);for(r in v&&"tooltip"!==v&&"popover"!==v&&m.addClass("has-error"),m.find('.help-block[data-bv-validator][data-bv-for="'+t+'"]').remove(),h.find('i[data-bv-icon-for="'+t+'"]').remove(),c.off(u).on(u,function(){i.updateStatus(n(this),i.STATUS_NOT_VALIDATED)}),c.data("bv.messages",m),this.options.fields[t].validators)c.data("bv.result."+r,this.STATUS_NOT_VALIDATED),s&&f!==o-1||n("<small/>").css("display","none").addClass("help-block").attr("data-bv-validator",r).attr("data-bv-for",t).attr("data-bv-result",this.STATUS_NOT_VALIDATED).html(this._getMessage(t,r)).appendTo(m),"function"==typeof n.fn.bootstrapValidator.validators[r].init&&n.fn.bootstrapValidator.validators[r].init(this,c,this.options.fields[t].validators[r]);if(!1!==this.options.fields[t].feedbackIcons&&"false"!==this.options.fields[t].feedbackIcons&&this.options.feedbackIcons&&this.options.feedbackIcons.validating&&this.options.feedbackIcons.invalid&&this.options.feedbackIcons.valid&&(!s||f===o-1)){h.addClass("has-feedback");var g=n("<i/>").css("display","none").addClass("form-control-feedback").attr("data-bv-icon-for",t).insertAfter(c);if("checkbox"===a||"radio"===a){var b=c.parent();b.hasClass(a)?g.insertAfter(b):b.parent().hasClass(a)&&g.insertAfter(b.parent())}0===h.find("label").length&&g.addClass("bv-no-label"),0!==h.find(".input-group").length&&g.addClass("bv-icon-input-group").insertAfter(h.find(".input-group").eq(0)),s?f===o-1&&e.data("bv.icon",g):c.data("bv.icon",g),v&&c.off("focus.container.bv").on("focus.container.bv",function(){switch(v){case"tooltip":n(this).data("bv.icon").tooltip("show");break;case"popover":n(this).data("bv.icon").popover("show")}}).off("blur.container.bv").on("blur.container.bv",function(){switch(v){case"tooltip":n(this).data("bv.icon").tooltip("hide");break;case"popover":n(this).data("bv.icon").popover("hide")}})}}switch(e.on(this.options.events.fieldSuccess,function(t,e){var r=i.getOptions(e.field,null,"onSuccess");r&&n.fn.bootstrapValidator.helpers.call(r,[t,e])}).on(this.options.events.fieldError,function(t,e){var r=i.getOptions(e.field,null,"onError");r&&n.fn.bootstrapValidator.helpers.call(r,[t,e])}).on(this.options.events.fieldStatus,function(t,e){var r=i.getOptions(e.field,null,"onStatus");r&&n.fn.bootstrapValidator.helpers.call(r,[t,e])}).on(this.options.events.validatorError,function(t,e){var r=i.getOptions(e.field,e.validator,"onError");r&&n.fn.bootstrapValidator.helpers.call(r,[t,e])}).on(this.options.events.validatorSuccess,function(t,e){var r=i.getOptions(e.field,e.validator,"onSuccess");r&&n.fn.bootstrapValidator.helpers.call(r,[t,e])}),u=n.map(d,function(t){return t+".live.bv"}).join(" "),this.options.live){case"submitted":break;case"disabled":e.off(u);break;case"enabled":default:e.off(u).on(u,function(){i._exceedThreshold(n(this))&&i.validateField(n(this))})}e.trigger(n.Event(this.options.events.fieldInit),{bv:this,field:t,element:e})}},_getMessage:function(t,e){if(!(this.options.fields[t]&&n.fn.bootstrapValidator.validators[e]&&this.options.fields[t].validators&&this.options.fields[t].validators[e]))return"";var r=this.options.fields[t].validators[e];switch(!0){case!!r.message:return r.message;case!!this.options.fields[t].message:return this.options.fields[t].message;case!!n.fn.bootstrapValidator.i18n[e]:return n.fn.bootstrapValidator.i18n[e].default;default:return this.options.message}},_getMessageContainer:function(t,e){var n=t.parent();if(n.is(e))return n;var r=n.attr("class");if(!r)return this._getMessageContainer(n,e);for(var i=(r=r.split(" ")).length,o=0;i>o;o++)if(/^col-(xs|sm|md|lg)-\d+$/.test(r[o])||/^col-(xs|sm|md|lg)-offset-\d+$/.test(r[o]))return n;return this._getMessageContainer(n,e)},_submit:function(){var t=this.isValid(),e=t?this.options.events.formSuccess:this.options.events.formError,r=n.Event(e);this.$form.trigger(r),this.$submitButton&&(t?this._onSuccess(r):this._onError(r))},_isExcluded:function(t){var e=t.attr("data-bv-excluded"),r=t.attr("data-bv-field")||t.attr("name");switch(!0){case!!r&&this.options.fields&&this.options.fields[r]&&("true"===this.options.fields[r].excluded||!0===this.options.fields[r].excluded):case"true"===e:case""===e:return!0;case!!r&&this.options.fields&&this.options.fields[r]&&("false"===this.options.fields[r].excluded||!1===this.options.fields[r].excluded):case"false"===e:return!1;default:if(this.options.excluded){"string"==typeof this.options.excluded&&(this.options.excluded=n.map(this.options.excluded.split(","),function(t){return n.trim(t)}));for(var i=this.options.excluded.length,o=0;i>o;o++)if("string"==typeof this.options.excluded[o]&&t.is(this.options.excluded[o])||"function"==typeof this.options.excluded[o]&&!0===this.options.excluded[o].call(this,t,this))return!0}return!1}},_exceedThreshold:function(t){var e=t.attr("data-bv-field"),r=this.options.fields[e].threshold||this.options.threshold;return!r||-1!==n.inArray(t.attr("type"),["button","checkbox","file","hidden","image","radio","reset","submit"])||t.val().length>=r},_onError:function(t){if(!t.isDefaultPrevented()){if("submitted"===this.options.live){this.options.live="enabled";var e=this;for(var r in this.options.fields)!function(t){var i=e.getFieldElements(t);if(i.length){var o=n(i[0]).attr("type"),a="radio"===o||"checkbox"===o||"file"===o||"SELECT"===n(i[0]).get(0).tagName?"change":e._changeEvent,s=e.options.fields[r].trigger||e.options.trigger||a,l=n.map(s.split(" "),function(t){return t+".live.bv"}).join(" ");i.off(l).on(l,function(){e._exceedThreshold(n(this))&&e.validateField(n(this))})}}(r)}for(var i=0;i<this.$invalidFields.length;i++){var o=this.$invalidFields.eq(i);if(this._isOptionEnabled(o.attr("data-bv-field"),"autoFocus")){var a,s=o.parents(".tab-pane");s&&(a=s.attr("id"))&&n('a[href="#'+a+'"][data-toggle="tab"]').tab("show"),o.focus();break}}}},_onSuccess:function(t){t.isDefaultPrevented()||this.disableSubmitButtons(!0).defaultSubmit()},_onFieldValidated:function(t,e){var r=t.attr("data-bv-field"),i=this.options.fields[r].validators,o={},a=0,s={bv:this,field:r,element:t,validator:e,result:t.data("bv.response."+e)};if(e)switch(t.data("bv.result."+e)){case this.STATUS_INVALID:t.trigger(n.Event(this.options.events.validatorError),s);break;case this.STATUS_VALID:t.trigger(n.Event(this.options.events.validatorSuccess),s)}for(var l in o[this.STATUS_NOT_VALIDATED]=0,o[this.STATUS_VALIDATING]=0,o[this.STATUS_INVALID]=0,o[this.STATUS_VALID]=0,i)if(!1!==i[l].enabled){a++;var d=t.data("bv.result."+l);d&&o[d]++}o[this.STATUS_VALID]===a?(this.$invalidFields=this.$invalidFields.not(t),t.trigger(n.Event(this.options.events.fieldSuccess),s)):(0===o[this.STATUS_NOT_VALIDATED]||!this._isOptionEnabled(r,"verbose"))&&0===o[this.STATUS_VALIDATING]&&o[this.STATUS_INVALID]>0&&(this.$invalidFields=this.$invalidFields.add(t),t.trigger(n.Event(this.options.events.fieldError),s))},_isOptionEnabled:function(t,e){return!(!this.options.fields[t]||"true"!==this.options.fields[t][e]&&!0!==this.options.fields[t][e])||(!this.options.fields[t]||"false"!==this.options.fields[t][e]&&!1!==this.options.fields[t][e])&&("true"===this.options[e]||!0===this.options[e])},getFieldElements:function(t){return this._cacheFields[t]||(this._cacheFields[t]=this.options.fields[t]&&this.options.fields[t].selector?n(this.options.fields[t].selector):this.$form.find('[name="'+t+'"]')),this._cacheFields[t]},getOptions:function(t,e,n){if(!t)return n?this.options[n]:this.options;if("object"==typeof t&&(t=t.attr("data-bv-field")),!this.options.fields[t])return null;var r=this.options.fields[t];return e?r.validators&&r.validators[e]?n?r.validators[e][n]:r.validators[e]:null:n?r[n]:r},disableSubmitButtons:function(t){return t?"disabled"!==this.options.live&&this.$form.find(this.options.submitButtons).attr("disabled","disabled"):this.$form.find(this.options.submitButtons).removeAttr("disabled"),this},validate:function(){if(!this.options.fields)return this;for(var t in this.disableSubmitButtons(!0),this._submitIfValid=!1,this.options.fields)this.validateField(t);return this.$submitButton&&this._submit(),this._submitIfValid=!0,this},submit:function(){if(!this.options.fields)return this;for(var t in this.disableSubmitButtons(!0),this._submitIfValid=!1,this.options.fields)this.validateField(t);return this._submit(),this._submitIfValid=!0,this},validateField:function(t){var e=n([]);switch(typeof t){case"object":e=t,t=t.attr("data-bv-field");break;case"string":e=this.getFieldElements(t)}if(0===e.length||!this.options.fields[t]||!1===this.options.fields[t].enabled)return this;for(var r,i,o=this,a=e.attr("type"),s="radio"===a||"checkbox"===a?1:e.length,l="radio"===a||"checkbox"===a,d=this.options.fields[t].validators,u=this._isOptionEnabled(t,"verbose"),f=0;s>f;f++){var c=e.eq(f);if(!this._isExcluded(c)){var p=!1;for(r in d){if(c.data("bv.dfs."+r)&&c.data("bv.dfs."+r).reject(),p)break;var h=c.data("bv.result."+r);if(h!==this.STATUS_VALID&&h!==this.STATUS_INVALID)if(!1!==d[r].enabled){if(c.data("bv.result."+r,this.STATUS_VALIDATING),"object"==typeof(i=n.fn.bootstrapValidator.validators[r].validate(this,c,d[r]))&&i.resolve)this.updateStatus(l?t:c,this.STATUS_VALIDATING,r),c.data("bv.dfs."+r,i),i.done(function(t,e,n){t.removeData("bv.dfs."+e).data("bv.response."+e,n),n.message&&o.updateMessage(t,e,n.message),o.updateStatus(l?t.attr("data-bv-field"):t,n.valid?o.STATUS_VALID:o.STATUS_INVALID,e),n.valid&&!0===o._submitIfValid&&o.$submitButton?o._submit():n.valid||u||(p=!0)});else if("object"==typeof i&&void 0!==i.valid&&void 0!==i.message){if(c.data("bv.response."+r,i),this.updateMessage(l?t:c,r,i.message),this.updateStatus(l?t:c,i.valid?this.STATUS_VALID:this.STATUS_INVALID,r),!i.valid&&!u)break}else if("boolean"==typeof i&&(c.data("bv.response."+r,i),this.updateStatus(l?t:c,i?this.STATUS_VALID:this.STATUS_INVALID,r),!i&&!u))break}else this.updateStatus(l?t:c,this.STATUS_VALID,r);else this._onFieldValidated(c,r)}}}return this},updateMessage:function(t,e,r){var i=n([]);switch(typeof t){case"object":i=t,t=t.attr("data-bv-field");break;case"string":i=this.getFieldElements(t)}i.each(function(){n(this).data("bv.messages").find('.help-block[data-bv-validator="'+e+'"][data-bv-for="'+t+'"]').html(r)})},updateStatus:function(t,e,r){var i=n([]);switch(typeof t){case"object":i=t,t=t.attr("data-bv-field");break;case"string":i=this.getFieldElements(t)}e===this.STATUS_NOT_VALIDATED&&(this._submitIfValid=!1);for(var o=i.attr("type"),a=this.options.fields[t].group||this.options.group,s="radio"===o||"checkbox"===o?1:i.length,l=0;s>l;l++){var d=i.eq(l);if(!this._isExcluded(d)){var u=d.parents(a),f=d.data("bv.messages").find('.help-block[data-bv-validator][data-bv-for="'+t+'"]'),c=r?f.filter('[data-bv-validator="'+r+'"]'):f,p=d.data("bv.icon"),h="function"==typeof(this.options.fields[t].container||this.options.container)?(this.options.fields[t].container||this.options.container).call(this,d,this):this.options.fields[t].container||this.options.container,v=null;if(r)d.data("bv.result."+r,e);else for(var m in this.options.fields[t].validators)d.data("bv.result."+m,e);c.attr("data-bv-result",e);var g,b,y=d.parents(".tab-pane");switch(y&&(g=y.attr("id"))&&(b=n('a[href="#'+g+'"][data-toggle="tab"]').parent()),e){case this.STATUS_VALIDATING:v=null,this.disableSubmitButtons(!0),u.removeClass("has-success").removeClass("has-error"),p&&p.removeClass(this.options.feedbackIcons.valid).removeClass(this.options.feedbackIcons.invalid).addClass(this.options.feedbackIcons.validating).show(),b&&b.removeClass("bv-tab-success").removeClass("bv-tab-error");break;case this.STATUS_INVALID:v=!1,this.disableSubmitButtons(!0),u.removeClass("has-success").addClass("has-error"),p&&p.removeClass(this.options.feedbackIcons.valid).removeClass(this.options.feedbackIcons.validating).addClass(this.options.feedbackIcons.invalid).show(),b&&b.removeClass("bv-tab-success").addClass("bv-tab-error");break;case this.STATUS_VALID:null!==(v=0===f.filter('[data-bv-result="'+this.STATUS_NOT_VALIDATED+'"]').length?f.filter('[data-bv-result="'+this.STATUS_VALID+'"]').length===f.length:null)&&(this.disableSubmitButtons(this.$submitButton?!this.isValid():!v),p&&p.removeClass(this.options.feedbackIcons.invalid).removeClass(this.options.feedbackIcons.validating).removeClass(this.options.feedbackIcons.valid).addClass(v?this.options.feedbackIcons.valid:this.options.feedbackIcons.invalid).show()),u.removeClass("has-error has-success").addClass(this.isValidContainer(u)?"has-success":"has-error"),b&&b.removeClass("bv-tab-success").removeClass("bv-tab-error").addClass(this.isValidContainer(y)?"bv-tab-success":"bv-tab-error");break;case this.STATUS_NOT_VALIDATED:default:v=null,this.disableSubmitButtons(!1),u.removeClass("has-success").removeClass("has-error"),p&&p.removeClass(this.options.feedbackIcons.valid).removeClass(this.options.feedbackIcons.invalid).removeClass(this.options.feedbackIcons.validating).hide(),b&&b.removeClass("bv-tab-success").removeClass("bv-tab-error")}switch(!0){case p&&"tooltip"===h:!1===v?p.css("cursor","pointer").tooltip("destroy").tooltip({container:"body",html:!0,placement:"auto top",title:f.filter('[data-bv-result="'+this.STATUS_INVALID+'"]').eq(0).html()}):p.css("cursor","").tooltip("destroy");break;case p&&"popover"===h:!1===v?p.css("cursor","pointer").popover("destroy").popover({container:"body",content:f.filter('[data-bv-result="'+this.STATUS_INVALID+'"]').eq(0).html(),html:!0,placement:"auto top",trigger:"hover click"}):p.css("cursor","").popover("destroy");break;default:e===this.STATUS_INVALID?c.show():c.hide()}d.trigger(n.Event(this.options.events.fieldStatus),{bv:this,field:t,element:d,status:e}),this._onFieldValidated(d,r)}}return this},isValid:function(){for(var t in this.options.fields)if(!this.isValidField(t))return!1;return!0},isValidField:function(t){var e=n([]);switch(typeof t){case"object":e=t,t=t.attr("data-bv-field");break;case"string":e=this.getFieldElements(t)}if(0===e.length||!this.options.fields[t]||!1===this.options.fields[t].enabled)return!0;for(var r,i,o=e.attr("type"),a="radio"===o||"checkbox"===o?1:e.length,s=0;a>s;s++)if(r=e.eq(s),!this._isExcluded(r))for(i in this.options.fields[t].validators)if(!1!==this.options.fields[t].validators[i].enabled&&r.data("bv.result."+i)!==this.STATUS_VALID)return!1;return!0},isValidContainer:function(t){var e=this,r={},i="string"==typeof t?n(t):t;if(0===i.length)return!0;for(var o in i.find("[data-bv-field]").each(function(){var t=n(this),i=t.attr("data-bv-field");e._isExcluded(t)||r[i]||(r[i]=t)}),r)if(r[o].data("bv.messages").find('.help-block[data-bv-validator][data-bv-for="'+o+'"]').filter('[data-bv-result="'+this.STATUS_INVALID+'"]').length>0)return!1;return!0},defaultSubmit:function(){this.$submitButton&&n("<input/>").attr("type","hidden").attr("data-bv-submit-hidden","").attr("name",this.$submitButton.attr("name")).val(this.$submitButton.val()).appendTo(this.$form),this.$form.off("submit.bv").submit()},getInvalidFields:function(){return this.$invalidFields},getSubmitButton:function(){return this.$submitButton},getMessages:function(t,e){var r=this,i=[],o=n([]);switch(!0){case t&&"object"==typeof t:o=t;break;case t&&"string"==typeof t:var a=this.getFieldElements(t);if(a.length>0){var s=a.attr("type");o="radio"===s||"checkbox"===s?a.eq(0):a}break;default:o=this.$invalidFields}var l=e?'[data-bv-validator="'+e+'"]':"";return o.each(function(){i=i.concat(n(this).data("bv.messages").find('.help-block[data-bv-for="'+n(this).attr("data-bv-field")+'"][data-bv-result="'+r.STATUS_INVALID+'"]'+l).map(function(){var t=n(this).attr("data-bv-validator"),e=n(this).attr("data-bv-for");return!1===r.options.fields[e].validators[t].enabled?"":n(this).html()}).get())}),i},updateOption:function(t,e,n,r){return"object"==typeof t&&(t=t.attr("data-bv-field")),this.options.fields[t]&&this.options.fields[t].validators[e]&&(this.options.fields[t].validators[e][n]=r,this.updateStatus(t,this.STATUS_NOT_VALIDATED,e)),this},addField:function(t,e){var r=n([]);switch(typeof t){case"object":r=t,t=t.attr("data-bv-field")||t.attr("name");break;case"string":delete this._cacheFields[t],r=this.getFieldElements(t)}r.attr("data-bv-field",t);for(var i=r.attr("type"),o="radio"===i||"checkbox"===i?1:r.length,a=0;o>a;a++){var s=r.eq(a),l=this._parseOptions(s);l=null===l?e:n.extend(!0,e,l),this.options.fields[t]=n.extend(!0,this.options.fields[t],l),this._cacheFields[t]=this._cacheFields[t]?this._cacheFields[t].add(s):s,this._initField("checkbox"===i||"radio"===i?t:s)}return this.disableSubmitButtons(!1),this.$form.trigger(n.Event(this.options.events.fieldAdded),{field:t,element:r,options:this.options.fields[t]}),this},removeField:function(t){var e=n([]);switch(typeof t){case"object":e=t,t=t.attr("data-bv-field")||t.attr("name"),e.attr("data-bv-field",t);break;case"string":e=this.getFieldElements(t)}if(0===e.length)return this;for(var r=e.attr("type"),i="radio"===r||"checkbox"===r?1:e.length,o=0;i>o;o++){var a=e.eq(o);this.$invalidFields=this.$invalidFields.not(a),this._cacheFields[t]=this._cacheFields[t].not(a)}return this._cacheFields[t]&&0!==this._cacheFields[t].length||delete this.options.fields[t],("checkbox"===r||"radio"===r)&&this._initField(t),this.disableSubmitButtons(!1),this.$form.trigger(n.Event(this.options.events.fieldRemoved),{field:t,element:e}),this},resetField:function(t,e){var r=n([]);switch(typeof t){case"object":r=t,t=t.attr("data-bv-field");break;case"string":r=this.getFieldElements(t)}var i=r.length;if(this.options.fields[t])for(var o=0;i>o;o++)for(var a in this.options.fields[t].validators)r.eq(o).removeData("bv.dfs."+a);if(this.updateStatus(t,this.STATUS_NOT_VALIDATED),e){var s=r.attr("type");"radio"===s||"checkbox"===s?r.removeAttr("checked").removeAttr("selected"):r.val("")}return this},resetForm:function(t){for(var e in this.options.fields)this.resetField(e,t);return this.$invalidFields=n([]),this.$submitButton=null,this.disableSubmitButtons(!1),this},revalidateField:function(t){return this.updateStatus(t,this.STATUS_NOT_VALIDATED).validateField(t),this},enableFieldValidators:function(t,e,n){var r=this.options.fields[t].validators;if(n&&r&&r[n]&&r[n].enabled!==e)this.options.fields[t].validators[n].enabled=e,this.updateStatus(t,this.STATUS_NOT_VALIDATED,n);else if(!n&&this.options.fields[t].enabled!==e)for(var i in this.options.fields[t].enabled=e,r)this.enableFieldValidators(t,e,i);return this},getDynamicOption:function(t,e){var r="string"==typeof t?this.getFieldElements(t):t,i=r.val();if("function"==typeof e)return n.fn.bootstrapValidator.helpers.call(e,[i,this,r]);if("string"==typeof e){var o=this.getFieldElements(e);return o.length?o.val():n.fn.bootstrapValidator.helpers.call(e,[i,this,r])||e}return null},destroy:function(){var t,e,r,i,o,a;for(t in this.options.fields){e=this.getFieldElements(t),a=this.options.fields[t].group||this.options.group;for(var s=0;s<e.length;s++){if((r=e.eq(s)).data("bv.messages").find('.help-block[data-bv-validator][data-bv-for="'+t+'"]').remove().end().end().removeData("bv.messages").parents(a).removeClass("has-feedback has-error has-success").end().off(".bv").removeAttr("data-bv-field"),o=r.data("bv.icon"))switch("function"==typeof(this.options.fields[t].container||this.options.container)?(this.options.fields[t].container||this.options.container).call(this,r,this):this.options.fields[t].container||this.options.container){case"tooltip":o.tooltip("destroy").remove();break;case"popover":o.popover("destroy").remove();break;default:o.remove()}for(i in r.removeData("bv.icon"),this.options.fields[t].validators)r.data("bv.dfs."+i)&&r.data("bv.dfs."+i).reject(),r.removeData("bv.result."+i).removeData("bv.response."+i).removeData("bv.dfs."+i),"function"==typeof n.fn.bootstrapValidator.validators[i].destroy&&n.fn.bootstrapValidator.validators[i].destroy(this,r,this.options.fields[t].validators[i])}}this.disableSubmitButtons(!1),this.$hiddenButton.remove(),this.$form.removeClass(this.options.elementClass).off(".bv").removeData("bootstrapValidator").find("[data-bv-submit-hidden]").remove().end().find('[type="submit"]').off("click.bv")}},n.fn.bootstrapValidator=function(t){var e=arguments;return this.each(function(){var i=n(this),o=i.data("bootstrapValidator");o||(o=new r(this,"object"==typeof t&&t),i.data("bootstrapValidator",o)),"string"==typeof t&&o[t].apply(o,Array.prototype.slice.call(e,1))})},n.fn.bootstrapValidator.DEFAULT_OPTIONS={autoFocus:!0,container:null,elementClass:"bv-form",events:{formInit:"init.form.bv",formError:"error.form.bv",formSuccess:"success.form.bv",fieldAdded:"added.field.bv",fieldRemoved:"removed.field.bv",fieldInit:"init.field.bv",fieldError:"error.field.bv",fieldSuccess:"success.field.bv",fieldStatus:"status.field.bv",validatorError:"error.validator.bv",validatorSuccess:"success.validator.bv"},excluded:[":disabled",":hidden",":not(:visible)"],feedbackIcons:{valid:null,invalid:null,validating:null},fields:null,group:".form-group",live:"enabled",message:"This value is not valid",submitButtons:'[type="submit"]',threshold:null,verbose:!0},n.fn.bootstrapValidator.validators={},n.fn.bootstrapValidator.i18n={},n.fn.bootstrapValidator.Constructor=r,n.fn.bootstrapValidator.helpers={call:function(t,e){if("function"==typeof t)return t.apply(this,e);if("string"==typeof t){"()"===t.substring(t.length-2)&&(t=t.substring(0,t.length-2));for(var n=t.split("."),r=n.pop(),i=window,o=0;o<n.length;o++)i=i[n[o]];return void 0===i[r]?null:i[r].apply(this,e)}},format:function(t,e){for(var r in n.isArray(e)||(e=[e]),e)t=t.replace("%s",e[r]);return t},date:function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n))return!1;if(n.length>2||e.length>2||t.length>4)return!1;if(n=parseInt(n,10),e=parseInt(e,10),1e3>(t=parseInt(t,10))||t>9999||0>=e||e>12)return!1;var i=[31,28,31,30,31,30,31,31,30,31,30,31];if((t%400==0||t%100!=0&&t%4==0)&&(i[1]=29),0>=n||n>i[e-1])return!1;if(!0===r){var o=new Date,a=o.getFullYear(),s=o.getMonth(),l=o.getDate();return a>t||t===a&&s>e-1||t===a&&e-1===s&&l>n}return!0},luhn:function(t){for(var e=t.length,n=0,r=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],i=0;e--;)i+=r[n][parseInt(t.charAt(e),10)],n^=1;return i%10==0&&i>0},mod11And10:function(t){for(var e=5,n=t.length,r=0;n>r;r++)e=(2*(e||10)%11+parseInt(t.charAt(r),10))%10;return 1===e},mod37And36:function(t,e){for(var n=(e=e||"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ").length,r=t.length,i=Math.floor(n/2),o=0;r>o;o++)i=(2*(i||n)%(n+1)+e.indexOf(t.charAt(o)))%n;return 1===i}},function(t){t.fn.bootstrapValidator.i18n.base64=t.extend(t.fn.bootstrapValidator.i18n.base64||{},{default:"Please enter a valid base 64 encoded"}),t.fn.bootstrapValidator.validators.base64={validate:function(t,e){var n=e.val();return""===n||/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$/.test(n)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.between=t.extend(t.fn.bootstrapValidator.i18n.between||{},{default:"Please enter a value between %s and %s",notInclusive:"Please enter a value between %s and %s strictly"}),t.fn.bootstrapValidator.validators.between={html5Attributes:{message:"message",min:"min",max:"max",inclusive:"inclusive"},enableByHtml5:function(t){return"range"===t.attr("type")&&{min:t.attr("min"),max:t.attr("max")}},validate:function(e,n,r){var i=n.val();if(""===i)return!0;if(i=this._format(i),!t.isNumeric(i))return!1;var o=t.isNumeric(r.min)?r.min:e.getDynamicOption(n,r.min),a=t.isNumeric(r.max)?r.max:e.getDynamicOption(n,r.max),s=this._format(o),l=this._format(a);return i=parseFloat(i),!0===r.inclusive||void 0===r.inclusive?{valid:i>=s&&l>=i,message:t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.between.default,[o,a])}:{valid:i>s&&l>i,message:t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.between.notInclusive,[o,a])}},_format:function(t){return(t+"").replace(",",".")}}}(window.jQuery),window.jQuery.fn.bootstrapValidator.validators.blank={validate:function(){return!0}},function(t){t.fn.bootstrapValidator.i18n.callback=t.extend(t.fn.bootstrapValidator.i18n.callback||{},{default:"Please enter a valid value"}),t.fn.bootstrapValidator.validators.callback={html5Attributes:{message:"message",callback:"callback"},validate:function(e,n,r){var i=n.val(),o=new t.Deferred,a={valid:!0};if(r.callback){var s=t.fn.bootstrapValidator.helpers.call(r.callback,[i,e,n]);a="boolean"==typeof s?{valid:s}:s}return o.resolve(n,"callback",a),o}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.choice=t.extend(t.fn.bootstrapValidator.i18n.choice||{},{default:"Please enter a valid value",less:"Please choose %s options at minimum",more:"Please choose %s options at maximum",between:"Please choose %s - %s options"}),t.fn.bootstrapValidator.validators.choice={html5Attributes:{message:"message",min:"min",max:"max"},validate:function(e,n,r){var i=n.is("select")?e.getFieldElements(n.attr("data-bv-field")).find("option").filter(":selected").length:e.getFieldElements(n.attr("data-bv-field")).filter(":checked").length,o=r.min?t.isNumeric(r.min)?r.min:e.getDynamicOption(n,r.min):null,a=r.max?t.isNumeric(r.max)?r.max:e.getDynamicOption(n,r.max):null,s=!0,l=r.message||t.fn.bootstrapValidator.i18n.choice.default;switch((o&&i<parseInt(o,10)||a&&i>parseInt(a,10))&&(s=!1),!0){case!!o&&!!a:l=t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.choice.between,[parseInt(o,10),parseInt(a,10)]);break;case!!o:l=t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.choice.less,parseInt(o,10));break;case!!a:l=t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.choice.more,parseInt(a,10))}return{valid:s,message:l}}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.color=t.extend(t.fn.bootstrapValidator.i18n.color||{},{default:"Please enter a valid color"}),t.fn.bootstrapValidator.validators.color={SUPPORTED_TYPES:["hex","rgb","rgba","hsl","hsla","keyword"],KEYWORD_COLORS:["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","transparent","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],validate:function(e,n,r){var i=n.val();if(""===i)return!0;var o=r.type||this.SUPPORTED_TYPES;t.isArray(o)||(o=o.replace(/s/g,"").split(","));for(var a,s=!1,l=0;l<o.length;l++)if(a="_"+o[l].toLowerCase(),s=s||this[a](i))return!0;return!1},_hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},_hsl:function(t){return/^hsl\((\s*(-?\d+)\s*,)(\s*(\b(0?\d{1,2}|100)\b%)\s*,)(\s*(\b(0?\d{1,2}|100)\b%)\s*)\)$/.test(t)},_hsla:function(t){return/^hsla\((\s*(-?\d+)\s*,)(\s*(\b(0?\d{1,2}|100)\b%)\s*,){2}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/.test(t)},_keyword:function(e){return t.inArray(e,this.KEYWORD_COLORS)>=0},_rgb:function(t){return/^rgb\((\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*,){2}(\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*)\)$/.test(t)||/^rgb\((\s*(\b(0?\d{1,2}|100)\b%)\s*,){2}(\s*(\b(0?\d{1,2}|100)\b%)\s*)\)$/.test(t)},_rgba:function(t){return/^rgba\((\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*,){3}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/.test(t)||/^rgba\((\s*(\b(0?\d{1,2}|100)\b%)\s*,){3}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/.test(t)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.creditCard=t.extend(t.fn.bootstrapValidator.i18n.creditCard||{},{default:"Please enter a valid credit card number"}),t.fn.bootstrapValidator.validators.creditCard={validate:function(e,n){var r=n.val();if(""===r)return!0;if(/[^0-9-\s]+/.test(r))return!1;if(r=r.replace(/\D/g,""),!t.fn.bootstrapValidator.helpers.luhn(r))return!1;var i,o,a={AMERICAN_EXPRESS:{length:[15],prefix:["34","37"]},DINERS_CLUB:{length:[14],prefix:["300","301","302","303","304","305","36"]},DINERS_CLUB_US:{length:[16],prefix:["54","55"]},DISCOVER:{length:[16],prefix:["6011","622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925","644","645","646","647","648","649","65"]},JCB:{length:[16],prefix:["3528","3529","353","354","355","356","357","358"]},LASER:{length:[16,17,18,19],prefix:["6304","6706","6771","6709"]},MAESTRO:{length:[12,13,14,15,16,17,18,19],prefix:["5018","5020","5038","6304","6759","6761","6762","6763","6764","6765","6766"]},MASTERCARD:{length:[16],prefix:["51","52","53","54","55"]},SOLO:{length:[16,18,19],prefix:["6334","6767"]},UNIONPAY:{length:[16,17,18,19],prefix:["622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925"]},VISA:{length:[16],prefix:["4"]}};for(i in a)for(o in a[i].prefix)if(r.substr(0,a[i].prefix[o].length)===a[i].prefix[o]&&-1!==t.inArray(r.length,a[i].length))return!0;return!1}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.cusip=t.extend(t.fn.bootstrapValidator.i18n.cusip||{},{default:"Please enter a valid CUSIP number"}),t.fn.bootstrapValidator.validators.cusip={validate:function(e,n){var r=n.val();if(""===r)return!0;if(r=r.toUpperCase(),!/^[0-9A-Z]{9}$/.test(r))return!1;for(var i=t.map(r.split(""),function(t){var e=t.charCodeAt(0);return e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0)?e-"A".charCodeAt(0)+10:t}),o=i.length,a=0,s=0;o-1>s;s++){var l=parseInt(i[s],10);s%2!=0&&(l*=2),l>9&&(l-=9),a+=l}return(a=(10-a%10)%10)===i[o-1]}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.cvv=t.extend(t.fn.bootstrapValidator.i18n.cvv||{},{default:"Please enter a valid CVV number"}),t.fn.bootstrapValidator.validators.cvv={html5Attributes:{message:"message",ccfield:"creditCardField"},validate:function(e,n,r){var i=n.val();if(""===i)return!0;if(!/^[0-9]{3,4}$/.test(i))return!1;if(!r.creditCardField)return!0;var o=e.getFieldElements(r.creditCardField).val();if(""===o)return!0;o=o.replace(/\D/g,"");var a,s,l={AMERICAN_EXPRESS:{length:[15],prefix:["34","37"]},DINERS_CLUB:{length:[14],prefix:["300","301","302","303","304","305","36"]},DINERS_CLUB_US:{length:[16],prefix:["54","55"]},DISCOVER:{length:[16],prefix:["6011","622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925","644","645","646","647","648","649","65"]},JCB:{length:[16],prefix:["3528","3529","353","354","355","356","357","358"]},LASER:{length:[16,17,18,19],prefix:["6304","6706","6771","6709"]},MAESTRO:{length:[12,13,14,15,16,17,18,19],prefix:["5018","5020","5038","6304","6759","6761","6762","6763","6764","6765","6766"]},MASTERCARD:{length:[16],prefix:["51","52","53","54","55"]},SOLO:{length:[16,18,19],prefix:["6334","6767"]},UNIONPAY:{length:[16,17,18,19],prefix:["622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925"]},VISA:{length:[16],prefix:["4"]}},d=null;for(a in l)for(s in l[a].prefix)if(o.substr(0,l[a].prefix[s].length)===l[a].prefix[s]&&-1!==t.inArray(o.length,l[a].length)){d=a;break}return null!==d&&("AMERICAN_EXPRESS"===d?4===i.length:3===i.length)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.date=t.extend(t.fn.bootstrapValidator.i18n.date||{},{default:"Please enter a valid date",min:"Please enter a date after %s",max:"Please enter a date before %s",range:"Please enter a date in the range %s - %s"}),t.fn.bootstrapValidator.validators.date={html5Attributes:{message:"message",format:"format",min:"min",max:"max",separator:"separator"},validate:function(e,n,r){var i=n.val();if(""===i)return!0;r.format=r.format||"MM/DD/YYYY","date"===n.attr("type")&&(r.format="YYYY-MM-DD");var o=r.format.split(" "),a=o[0],s=o.length>1?o[1]:null,l=o.length>2?o[2]:null,d=i.split(" "),u=d[0],f=d.length>1?d[1]:null;if(o.length!==d.length)return{valid:!1,message:r.message||t.fn.bootstrapValidator.i18n.date.default};var c=r.separator;if(c||(c=-1!==u.indexOf("/")?"/":-1!==u.indexOf("-")?"-":null),null===c||-1===u.indexOf(c))return{valid:!1,message:r.message||t.fn.bootstrapValidator.i18n.date.default};if(u=u.split(c),a=a.split(c),u.length!==a.length)return{valid:!1,message:r.message||t.fn.bootstrapValidator.i18n.date.default};var p=u[t.inArray("YYYY",a)],h=u[t.inArray("MM",a)],v=u[t.inArray("DD",a)];if(!p||!h||!v||4!==p.length)return{valid:!1,message:r.message||t.fn.bootstrapValidator.i18n.date.default};var m=null,g=null,b=null;if(s){if(s=s.split(":"),f=f.split(":"),s.length!==f.length)return{valid:!1,message:r.message||t.fn.bootstrapValidator.i18n.date.default};if(g=f.length>0?f[0]:null,m=f.length>1?f[1]:null,b=f.length>2?f[2]:null){if(isNaN(b)||b.length>2)return{valid:!1,message:r.message||t.fn.bootstrapValidator.i18n.date.default};if(0>(b=parseInt(b,10))||b>60)return{valid:!1,message:r.message||t.fn.bootstrapValidator.i18n.date.default}}if(g){if(isNaN(g)||g.length>2)return{valid:!1,message:r.message||t.fn.bootstrapValidator.i18n.date.default};if(0>(g=parseInt(g,10))||g>=24||l&&g>12)return{valid:!1,message:r.message||t.fn.bootstrapValidator.i18n.date.default}}if(m){if(isNaN(m)||m.length>2)return{valid:!1,message:r.message||t.fn.bootstrapValidator.i18n.date.default};if(0>(m=parseInt(m,10))||m>59)return{valid:!1,message:r.message||t.fn.bootstrapValidator.i18n.date.default}}}var y=t.fn.bootstrapValidator.helpers.date(p,h,v),w=r.message||t.fn.bootstrapValidator.i18n.date.default,x=null,A=null,T=r.min,S=r.max;switch(T&&(isNaN(Date.parse(T))&&(T=e.getDynamicOption(n,T)),x=this._parseDate(T,a,c)),S&&(isNaN(Date.parse(S))&&(S=e.getDynamicOption(n,S)),A=this._parseDate(S,a,c)),u=new Date(p,h,v,g,m,b),!0){case T&&!S&&y:y=u.getTime()>=x.getTime(),w=r.message||t.fn.bootstrapValidator.helpers.format(t.fn.bootstrapValidator.i18n.date.min,T);break;case S&&!T&&y:y=u.getTime()<=A.getTime(),w=r.message||t.fn.bootstrapValidator.helpers.format(t.fn.bootstrapValidator.i18n.date.max,S);break;case S&&T&&y:y=u.getTime()<=A.getTime()&&u.getTime()>=x.getTime(),w=r.message||t.fn.bootstrapValidator.helpers.format(t.fn.bootstrapValidator.i18n.date.range,[T,S])}return{valid:y,message:w}},_parseDate:function(e,n,r){var i=0,o=0,a=0,s=e.split(" "),l=s[0],d=s.length>1?s[1]:null,u=(l=l.split(r))[t.inArray("YYYY",n)],f=l[t.inArray("MM",n)],c=l[t.inArray("DD",n)];return d&&(o=(d=d.split(":")).length>0?d[0]:null,i=d.length>1?d[1]:null,a=d.length>2?d[2]:null),new Date(u,f,c,o,i,a)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.different=t.extend(t.fn.bootstrapValidator.i18n.different||{},{default:"Please enter a different value"}),t.fn.bootstrapValidator.validators.different={html5Attributes:{message:"message",field:"field"},validate:function(t,e,n){var r=e.val();if(""===r)return!0;for(var i=n.field.split(","),o=!0,a=0;a<i.length;a++){var s=t.getFieldElements(i[a]);if(null!=s&&0!==s.length){var l=s.val();r===l?o=!1:""!==l&&t.updateStatus(s,t.STATUS_VALID,"different")}}return o}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.digits=t.extend(t.fn.bootstrapValidator.i18n.digits||{},{default:"Please enter only digits"}),t.fn.bootstrapValidator.validators.digits={validate:function(t,e){var n=e.val();return""===n||/^\d+$/.test(n)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.ean=t.extend(t.fn.bootstrapValidator.i18n.ean||{},{default:"Please enter a valid EAN number"}),t.fn.bootstrapValidator.validators.ean={validate:function(t,e){var n=e.val();if(""===n)return!0;if(!/^(\d{8}|\d{12}|\d{13})$/.test(n))return!1;for(var r=n.length,i=0,o=8===r?[3,1]:[1,3],a=0;r-1>a;a++)i+=parseInt(n.charAt(a),10)*o[a%2];return(i=(10-i%10)%10)+""===n.charAt(r-1)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.emailAddress=t.extend(t.fn.bootstrapValidator.i18n.emailAddress||{},{default:"Please enter a valid email address"}),t.fn.bootstrapValidator.validators.emailAddress={html5Attributes:{message:"message",multiple:"multiple",separator:"separator"},enableByHtml5:function(t){return"email"===t.attr("type")},validate:function(t,e,n){var r=e.val();if(""===r)return!0;var i=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;if(!0===n.multiple||"true"===n.multiple){for(var o=n.separator||/[,;]/,a=this._splitEmailAddresses(r,o),s=0;s<a.length;s++)if(!i.test(a[s]))return!1;return!0}return i.test(r)},_splitEmailAddresses:function(t,e){for(var n=t.split(/"/),r=n.length,i=[],o="",a=0;r>a;a++)if(a%2==0){var s=n[a].split(e),l=s.length;if(1===l)o+=s[0];else{i.push(o+s[0]);for(var d=1;l-1>d;d++)i.push(s[d]);o=s[l-1]}}else o+='"'+n[a],r-1>a&&(o+='"');return i.push(o),i}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.file=t.extend(t.fn.bootstrapValidator.i18n.file||{},{default:"Please choose a valid file"}),t.fn.bootstrapValidator.validators.file={html5Attributes:{extension:"extension",maxfiles:"maxFiles",minfiles:"minFiles",maxsize:"maxSize",minsize:"minSize",maxtotalsize:"maxTotalSize",mintotalsize:"minTotalSize",message:"message",type:"type"},validate:function(e,n,r){var i=n.val();if(""===i)return!0;var o,a=r.extension?r.extension.toLowerCase().split(","):null,s=r.type?r.type.toLowerCase().split(","):null;if(window.File&&window.FileList&&window.FileReader){var l=n.get(0).files,d=l.length,u=0;if(r.maxFiles&&d>parseInt(r.maxFiles,10)||r.minFiles&&d<parseInt(r.minFiles,10))return!1;for(var f=0;d>f;f++)if(u+=l[f].size,o=l[f].name.substr(l[f].name.lastIndexOf(".")+1),r.minSize&&l[f].size<parseInt(r.minSize,10)||r.maxSize&&l[f].size>parseInt(r.maxSize,10)||a&&-1===t.inArray(o.toLowerCase(),a)||l[f].type&&s&&-1===t.inArray(l[f].type.toLowerCase(),s))return!1;if(r.maxTotalSize&&u>parseInt(r.maxTotalSize,10)||r.minTotalSize&&u<parseInt(r.minTotalSize,10))return!1}else if(o=i.substr(i.lastIndexOf(".")+1),a&&-1===t.inArray(o.toLowerCase(),a))return!1;return!0}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.greaterThan=t.extend(t.fn.bootstrapValidator.i18n.greaterThan||{},{default:"Please enter a value greater than or equal to %s",notInclusive:"Please enter a value greater than %s"}),t.fn.bootstrapValidator.validators.greaterThan={html5Attributes:{message:"message",value:"value",inclusive:"inclusive"},enableByHtml5:function(t){var e=t.attr("type"),n=t.attr("min");return!(!n||"date"===e)&&{value:n}},validate:function(e,n,r){var i=n.val();if(""===i)return!0;if(i=this._format(i),!t.isNumeric(i))return!1;var o=t.isNumeric(r.value)?r.value:e.getDynamicOption(n,r.value),a=this._format(o);return i=parseFloat(i),!0===r.inclusive||void 0===r.inclusive?{valid:i>=a,message:t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.greaterThan.default,o)}:{valid:i>a,message:t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.greaterThan.notInclusive,o)}},_format:function(t){return(t+"").replace(",",".")}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.grid=t.extend(t.fn.bootstrapValidator.i18n.grid||{},{default:"Please enter a valid GRId number"}),t.fn.bootstrapValidator.validators.grid={validate:function(e,n){var r=n.val();return""===r||(r=r.toUpperCase(),!!/^[GRID:]*([0-9A-Z]{2})[-\s]*([0-9A-Z]{5})[-\s]*([0-9A-Z]{10})[-\s]*([0-9A-Z]{1})$/g.test(r)&&("GRID:"===(r=r.replace(/\s/g,"").replace(/-/g,"")).substr(0,5)&&(r=r.substr(5)),t.fn.bootstrapValidator.helpers.mod37And36(r)))}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.hex=t.extend(t.fn.bootstrapValidator.i18n.hex||{},{default:"Please enter a valid hexadecimal number"}),t.fn.bootstrapValidator.validators.hex={validate:function(t,e){var n=e.val();return""===n||/^[0-9a-fA-F]+$/.test(n)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.hexColor=t.extend(t.fn.bootstrapValidator.i18n.hexColor||{},{default:"Please enter a valid hex color"}),t.fn.bootstrapValidator.validators.hexColor={enableByHtml5:function(t){return"color"===t.attr("type")},validate:function(t,e){var n=e.val();return""===n||("color"===e.attr("type")?/^#[0-9A-F]{6}$/i.test(n):/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(n))}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.iban=t.extend(t.fn.bootstrapValidator.i18n.iban||{},{default:"Please enter a valid IBAN number",countryNotSupported:"The country code %s is not supported",country:"Please enter a valid IBAN number in %s",countries:{AD:"Andorra",AE:"United Arab Emirates",AL:"Albania",AO:"Angola",AT:"Austria",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BR:"Brazil",CH:"Switzerland",CI:"Ivory Coast",CM:"Cameroon",CR:"Costa Rica",CV:"Cape Verde",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DO:"Dominican Republic",DZ:"Algeria",EE:"Estonia",ES:"Spain",FI:"Finland",FO:"Faroe Islands",FR:"France",GB:"United Kingdom",GE:"Georgia",GI:"Gibraltar",GL:"Greenland",GR:"Greece",GT:"Guatemala",HR:"Croatia",HU:"Hungary",IE:"Ireland",IL:"Israel",IR:"Iran",IS:"Iceland",IT:"Italy",JO:"Jordan",KW:"Kuwait",KZ:"Kazakhstan",LB:"Lebanon",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MG:"Madagascar",MK:"Macedonia",ML:"Mali",MR:"Mauritania",MT:"Malta",MU:"Mauritius",MZ:"Mozambique",NL:"Netherlands",NO:"Norway",PK:"Pakistan",PL:"Poland",PS:"Palestine",PT:"Portugal",QA:"Qatar",RO:"Romania",RS:"Serbia",SA:"Saudi Arabia",SE:"Sweden",SI:"Slovenia",SK:"Slovakia",SM:"San Marino",SN:"Senegal",TN:"Tunisia",TR:"Turkey",VG:"Virgin Islands, British"}}),t.fn.bootstrapValidator.validators.iban={html5Attributes:{message:"message",country:"country"},REGEX:{AD:"AD[0-9]{2}[0-9]{4}[0-9]{4}[A-Z0-9]{12}",AE:"AE[0-9]{2}[0-9]{3}[0-9]{16}",AL:"AL[0-9]{2}[0-9]{8}[A-Z0-9]{16}",AO:"AO[0-9]{2}[0-9]{21}",AT:"AT[0-9]{2}[0-9]{5}[0-9]{11}",AZ:"AZ[0-9]{2}[A-Z]{4}[A-Z0-9]{20}",BA:"BA[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{8}[0-9]{2}",BE:"BE[0-9]{2}[0-9]{3}[0-9]{7}[0-9]{2}",BF:"BF[0-9]{2}[0-9]{23}",BG:"BG[0-9]{2}[A-Z]{4}[0-9]{4}[0-9]{2}[A-Z0-9]{8}",BH:"BH[0-9]{2}[A-Z]{4}[A-Z0-9]{14}",BI:"BI[0-9]{2}[0-9]{12}",BJ:"BJ[0-9]{2}[A-Z]{1}[0-9]{23}",BR:"BR[0-9]{2}[0-9]{8}[0-9]{5}[0-9]{10}[A-Z][A-Z0-9]",CH:"CH[0-9]{2}[0-9]{5}[A-Z0-9]{12}",CI:"CI[0-9]{2}[A-Z]{1}[0-9]{23}",CM:"CM[0-9]{2}[0-9]{23}",CR:"CR[0-9]{2}[0-9]{3}[0-9]{14}",CV:"CV[0-9]{2}[0-9]{21}",CY:"CY[0-9]{2}[0-9]{3}[0-9]{5}[A-Z0-9]{16}",CZ:"CZ[0-9]{2}[0-9]{20}",DE:"DE[0-9]{2}[0-9]{8}[0-9]{10}",DK:"DK[0-9]{2}[0-9]{14}",DO:"DO[0-9]{2}[A-Z0-9]{4}[0-9]{20}",DZ:"DZ[0-9]{2}[0-9]{20}",EE:"EE[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{11}[0-9]{1}",ES:"ES[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{1}[0-9]{1}[0-9]{10}",FI:"FI[0-9]{2}[0-9]{6}[0-9]{7}[0-9]{1}",FO:"FO[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}",FR:"FR[0-9]{2}[0-9]{5}[0-9]{5}[A-Z0-9]{11}[0-9]{2}",GB:"GB[0-9]{2}[A-Z]{4}[0-9]{6}[0-9]{8}",GE:"GE[0-9]{2}[A-Z]{2}[0-9]{16}",GI:"GI[0-9]{2}[A-Z]{4}[A-Z0-9]{15}",GL:"GL[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}",GR:"GR[0-9]{2}[0-9]{3}[0-9]{4}[A-Z0-9]{16}",GT:"GT[0-9]{2}[A-Z0-9]{4}[A-Z0-9]{20}",HR:"HR[0-9]{2}[0-9]{7}[0-9]{10}",HU:"HU[0-9]{2}[0-9]{3}[0-9]{4}[0-9]{1}[0-9]{15}[0-9]{1}",IE:"IE[0-9]{2}[A-Z]{4}[0-9]{6}[0-9]{8}",IL:"IL[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{13}",IR:"IR[0-9]{2}[0-9]{22}",IS:"IS[0-9]{2}[0-9]{4}[0-9]{2}[0-9]{6}[0-9]{10}",IT:"IT[0-9]{2}[A-Z]{1}[0-9]{5}[0-9]{5}[A-Z0-9]{12}",JO:"JO[0-9]{2}[A-Z]{4}[0-9]{4}[0]{8}[A-Z0-9]{10}",KW:"KW[0-9]{2}[A-Z]{4}[0-9]{22}",KZ:"KZ[0-9]{2}[0-9]{3}[A-Z0-9]{13}",LB:"LB[0-9]{2}[0-9]{4}[A-Z0-9]{20}",LI:"LI[0-9]{2}[0-9]{5}[A-Z0-9]{12}",LT:"LT[0-9]{2}[0-9]{5}[0-9]{11}",LU:"LU[0-9]{2}[0-9]{3}[A-Z0-9]{13}",LV:"LV[0-9]{2}[A-Z]{4}[A-Z0-9]{13}",MC:"MC[0-9]{2}[0-9]{5}[0-9]{5}[A-Z0-9]{11}[0-9]{2}",MD:"MD[0-9]{2}[A-Z0-9]{20}",ME:"ME[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",MG:"MG[0-9]{2}[0-9]{23}",MK:"MK[0-9]{2}[0-9]{3}[A-Z0-9]{10}[0-9]{2}",ML:"ML[0-9]{2}[A-Z]{1}[0-9]{23}",MR:"MR13[0-9]{5}[0-9]{5}[0-9]{11}[0-9]{2}",MT:"MT[0-9]{2}[A-Z]{4}[0-9]{5}[A-Z0-9]{18}",MU:"MU[0-9]{2}[A-Z]{4}[0-9]{2}[0-9]{2}[0-9]{12}[0-9]{3}[A-Z]{3}",MZ:"MZ[0-9]{2}[0-9]{21}",NL:"NL[0-9]{2}[A-Z]{4}[0-9]{10}",NO:"NO[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{1}",PK:"PK[0-9]{2}[A-Z]{4}[A-Z0-9]{16}",PL:"PL[0-9]{2}[0-9]{8}[0-9]{16}",PS:"PS[0-9]{2}[A-Z]{4}[A-Z0-9]{21}",PT:"PT[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{11}[0-9]{2}",QA:"QA[0-9]{2}[A-Z]{4}[A-Z0-9]{21}",RO:"RO[0-9]{2}[A-Z]{4}[A-Z0-9]{16}",RS:"RS[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",SA:"SA[0-9]{2}[0-9]{2}[A-Z0-9]{18}",SE:"SE[0-9]{2}[0-9]{3}[0-9]{16}[0-9]{1}",SI:"SI[0-9]{2}[0-9]{5}[0-9]{8}[0-9]{2}",SK:"SK[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{10}",SM:"SM[0-9]{2}[A-Z]{1}[0-9]{5}[0-9]{5}[A-Z0-9]{12}",SN:"SN[0-9]{2}[A-Z]{1}[0-9]{23}",TN:"TN59[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",TR:"TR[0-9]{2}[0-9]{5}[A-Z0-9]{1}[A-Z0-9]{16}",VG:"VG[0-9]{2}[A-Z]{4}[0-9]{16}"},validate:function(e,n,r){var i=n.val();if(""===i)return!0;i=i.replace(/[^a-zA-Z0-9]/g,"").toUpperCase();var o=r.country;if(o?"string"==typeof o&&this.REGEX[o]||(o=e.getDynamicOption(n,o)):o=i.substr(0,2),!this.REGEX[o])return{valid:!1,message:t.fn.bootstrapValidator.helpers.format(t.fn.bootstrapValidator.i18n.iban.countryNotSupported,o)};if(!new RegExp("^"+this.REGEX[o]+"$").test(i))return{valid:!1,message:t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.iban.country,t.fn.bootstrapValidator.i18n.iban.countries[o])};i=i.substr(4)+i.substr(0,4),i=(i=t.map(i.split(""),function(t){var e=t.charCodeAt(0);return e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0)?e-"A".charCodeAt(0)+10:t})).join("");for(var a=parseInt(i.substr(0,1),10),s=i.length,l=1;s>l;++l)a=(10*a+parseInt(i.substr(l,1),10))%97;return{valid:1===a,message:t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.iban.country,t.fn.bootstrapValidator.i18n.iban.countries[o])}}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.id=t.extend(t.fn.bootstrapValidator.i18n.id||{},{default:"Please enter a valid identification number",countryNotSupported:"The country code %s is not supported",country:"Please enter a valid identification number in %s",countries:{BA:"Bosnia and Herzegovina",BG:"Bulgaria",BR:"Brazil",CH:"Switzerland",CL:"Chile",CN:"China",CZ:"Czech Republic",DK:"Denmark",EE:"Estonia",ES:"Spain",FI:"Finland",HR:"Croatia",IE:"Ireland",IS:"Iceland",LT:"Lithuania",LV:"Latvia",ME:"Montenegro",MK:"Macedonia",NL:"Netherlands",RO:"Romania",RS:"Serbia",SE:"Sweden",SI:"Slovenia",SK:"Slovakia",SM:"San Marino",TH:"Thailand",ZA:"South Africa"}}),t.fn.bootstrapValidator.validators.id={html5Attributes:{message:"message",country:"country"},COUNTRY_CODES:["BA","BG","BR","CH","CL","CN","CZ","DK","EE","ES","FI","HR","IE","IS","LT","LV","ME","MK","NL","RO","RS","SE","SI","SK","SM","TH","ZA"],validate:function(e,n,r){var i=n.val();if(""===i)return!0;var o=r.country;return o?("string"!=typeof o||-1===t.inArray(o.toUpperCase(),this.COUNTRY_CODES))&&(o=e.getDynamicOption(n,o)):o=i.substr(0,2),-1===t.inArray(o,this.COUNTRY_CODES)?{valid:!1,message:t.fn.bootstrapValidator.helpers.format(t.fn.bootstrapValidator.i18n.id.countryNotSupported,o)}:!!this[["_",o.toLowerCase()].join("")](i)||{valid:!1,message:t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.id.country,t.fn.bootstrapValidator.i18n.id.countries[o.toUpperCase()])}},_validateJMBG:function(t,e){if(!/^\d{13}$/.test(t))return!1;var n=parseInt(t.substr(0,2),10),r=parseInt(t.substr(2,2),10),i=(parseInt(t.substr(4,3),10),parseInt(t.substr(7,2),10)),o=parseInt(t.substr(12,1),10);if(n>31||r>12)return!1;for(var a=0,s=0;6>s;s++)a+=(7-s)*(parseInt(t.charAt(s),10)+parseInt(t.charAt(s+6),10));if((10===(a=11-a%11)||11===a)&&(a=0),a!==o)return!1;switch(e.toUpperCase()){case"BA":return i>=10&&19>=i;case"MK":return i>=41&&49>=i;case"ME":return i>=20&&29>=i;case"RS":return i>=70&&99>=i;case"SI":return i>=50&&59>=i;default:return!0}},_ba:function(t){return this._validateJMBG(t,"BA")},_mk:function(t){return this._validateJMBG(t,"MK")},_me:function(t){return this._validateJMBG(t,"ME")},_rs:function(t){return this._validateJMBG(t,"RS")},_si:function(t){return this._validateJMBG(t,"SI")},_bg:function(e){if(!/^\d{10}$/.test(e)&&!/^\d{6}\s\d{3}\s\d{1}$/.test(e))return!1;e=e.replace(/\s/g,"");var n=parseInt(e.substr(0,2),10)+1900,r=parseInt(e.substr(2,2),10),i=parseInt(e.substr(4,2),10);if(r>40?(n+=100,r-=40):r>20&&(n-=100,r-=20),!t.fn.bootstrapValidator.helpers.date(n,r,i))return!1;for(var o=0,a=[2,4,8,5,10,9,7,3,6],s=0;9>s;s++)o+=parseInt(e.charAt(s),10)*a[s];return(o=o%11%10)+""===e.substr(9,1)},_br:function(t){if(/^1{11}|2{11}|3{11}|4{11}|5{11}|6{11}|7{11}|8{11}|9{11}|0{11}$/.test(t))return!1;if(!/^\d{11}$/.test(t)&&!/^\d{3}\.\d{3}\.\d{3}-\d{2}$/.test(t))return!1;t=t.replace(/\./g,"").replace(/-/g,"");for(var e=0,n=0;9>n;n++)e+=(10-n)*parseInt(t.charAt(n),10);if((10===(e=11-e%11)||11===e)&&(e=0),e+""!==t.charAt(9))return!1;var r=0;for(n=0;10>n;n++)r+=(11-n)*parseInt(t.charAt(n),10);return(10===(r=11-r%11)||11===r)&&(r=0),r+""===t.charAt(10)},_ch:function(t){if(!/^756[\.]{0,1}[0-9]{4}[\.]{0,1}[0-9]{4}[\.]{0,1}[0-9]{2}$/.test(t))return!1;for(var e=(t=t.replace(/\D/g,"").substr(3)).length,n=0,r=8===e?[3,1]:[1,3],i=0;e-1>i;i++)n+=parseInt(t.charAt(i),10)*r[i%2];return(n=10-n%10)+""===t.charAt(e-1)},_cl:function(t){if(!/^\d{7,8}[-]{0,1}[0-9K]$/i.test(t))return!1;for(t=t.replace(/\-/g,"");t.length<9;)t="0"+t;for(var e=0,n=[3,2,7,6,5,4,3,2],r=0;8>r;r++)e+=parseInt(t.charAt(r),10)*n[r];return 11===(e=11-e%11)?e=0:10===e&&(e="K"),e+""===t.charAt(8).toUpperCase()},_cn:function(e){if(e=e.trim(),!/^\d{15}$/.test(e)&&!/^\d{17}[\dXx]{1}$/.test(e))return!1;var n,r={11:{0:[0],1:[[0,9],[11,17]],2:[0,28,29]},12:{0:[0],1:[[0,16]],2:[0,21,23,25]},13:{0:[0],1:[[0,5],7,8,21,[23,33],[81,85]],2:[[0,5],[7,9],[23,25],27,29,30,81,83],3:[[0,4],[21,24]],4:[[0,4],6,21,[23,35],81],5:[[0,3],[21,35],81,82],6:[[0,4],[21,38],[81,84]],7:[[0,3],5,6,[21,33]],8:[[0,4],[21,28]],9:[[0,3],[21,30],[81,84]],10:[[0,3],[22,26],28,81,82],11:[[0,2],[21,28],81,82]},14:{0:[0],1:[0,1,[5,10],[21,23],81],2:[[0,3],11,12,[21,27]],3:[[0,3],11,21,22],4:[[0,2],11,21,[23,31],81],5:[[0,2],21,22,24,25,81],6:[[0,3],[21,24]],7:[[0,2],[21,29],81],8:[[0,2],[21,30],81,82],9:[[0,2],[21,32],81],10:[[0,2],[21,34],81,82],11:[[0,2],[21,30],81,82],23:[[0,3],22,23,[25,30],32,33]},15:{0:[0],1:[[0,5],[21,25]],2:[[0,7],[21,23]],3:[[0,4]],4:[[0,4],[21,26],[28,30]],5:[[0,2],[21,26],81],6:[[0,2],[21,27]],7:[[0,3],[21,27],[81,85]],8:[[0,2],[21,26]],9:[[0,2],[21,29],81],22:[[0,2],[21,24]],25:[[0,2],[22,31]],26:[[0,2],[24,27],[29,32],34],28:[0,1,[22,27]],29:[0,[21,23]]},21:{0:[0],1:[[0,6],[11,14],[22,24],81],2:[[0,4],[11,13],24,[81,83]],3:[[0,4],11,21,23,81],4:[[0,4],11,[21,23]],5:[[0,5],21,22],6:[[0,4],24,81,82],7:[[0,3],11,26,27,81,82],8:[[0,4],11,81,82],9:[[0,5],11,21,22],10:[[0,5],11,21,81],11:[[0,3],21,22],12:[[0,2],4,21,23,24,81,82],13:[[0,3],21,22,24,81,82],14:[[0,4],21,22,81]},22:{0:[0],1:[[0,6],12,22,[81,83]],2:[[0,4],11,21,[81,84]],3:[[0,3],22,23,81,82],4:[[0,3],21,22],5:[[0,3],21,23,24,81,82],6:[[0,2],4,5,[21,23],25,81],7:[[0,2],[21,24],81],8:[[0,2],21,22,81,82],24:[[0,6],24,26]},23:{0:[0],1:[[0,12],21,[23,29],[81,84]],2:[[0,8],21,[23,25],27,[29,31],81],3:[[0,7],21,81,82],4:[[0,7],21,22],5:[[0,3],5,6,[21,24]],6:[[0,6],[21,24]],7:[[0,16],22,81],8:[[0,5],11,22,26,28,33,81,82],9:[[0,4],21],10:[[0,5],24,25,81,[83,85]],11:[[0,2],21,23,24,81,82],12:[[0,2],[21,26],[81,83]],27:[[0,4],[21,23]]},31:{0:[0],1:[0,1,[3,10],[12,20]],2:[0,30]},32:{0:[0],1:[[0,7],11,[13,18],24,25],2:[[0,6],11,81,82],3:[[0,5],11,12,[21,24],81,82],4:[[0,2],4,5,11,12,81,82],5:[[0,9],[81,85]],6:[[0,2],11,12,21,23,[81,84]],7:[0,1,3,5,6,[21,24]],8:[[0,4],11,26,[29,31]],9:[[0,3],[21,25],28,81,82],10:[[0,3],11,12,23,81,84,88],11:[[0,2],11,12,[81,83]],12:[[0,4],[81,84]],13:[[0,2],11,[21,24]]},33:{0:[0],1:[[0,6],[8,10],22,27,82,83,85],2:[0,1,[3,6],11,12,25,26,[81,83]],3:[[0,4],22,24,[26,29],81,82],4:[[0,2],11,21,24,[81,83]],5:[[0,3],[21,23]],6:[[0,2],21,24,[81,83]],7:[[0,3],23,26,27,[81,84]],8:[[0,3],22,24,25,81],9:[[0,3],21,22],10:[[0,4],[21,24],81,82],11:[[0,2],[21,27],81]},34:{0:[0],1:[[0,4],11,[21,24],81],2:[[0,4],7,8,[21,23],25],3:[[0,4],11,[21,23]],4:[[0,6],21],5:[[0,4],6,[21,23]],6:[[0,4],21],7:[[0,3],11,21],8:[[0,3],11,[22,28],81],10:[[0,4],[21,24]],11:[[0,3],22,[24,26],81,82],12:[[0,4],21,22,25,26,82],13:[[0,2],[21,24]],14:[[0,2],[21,24]],15:[[0,3],[21,25]],16:[[0,2],[21,23]],17:[[0,2],[21,23]],18:[[0,2],[21,25],81]},35:{0:[0],1:[[0,5],11,[21,25],28,81,82],2:[[0,6],[11,13]],3:[[0,5],22],4:[[0,3],21,[23,30],81],5:[[0,5],21,[24,27],[81,83]],6:[[0,3],[22,29],81],7:[[0,2],[21,25],[81,84]],8:[[0,2],[21,25],81],9:[[0,2],[21,26],81,82]},36:{0:[0],1:[[0,5],11,[21,24]],2:[[0,3],22,81],3:[[0,2],13,[21,23]],4:[[0,3],21,[23,30],81,82],5:[[0,2],21],6:[[0,2],22,81],7:[[0,2],[21,35],81,82],8:[[0,3],[21,30],81],9:[[0,2],[21,26],[81,83]],10:[[0,2],[21,30]],11:[[0,2],[21,30],81]},37:{0:[0],1:[[0,5],12,13,[24,26],81],2:[[0,3],5,[11,14],[81,85]],3:[[0,6],[21,23]],4:[[0,6],81],5:[[0,3],[21,23]],6:[[0,2],[11,13],34,[81,87]],7:[[0,5],24,25,[81,86]],8:[[0,2],11,[26,32],[81,83]],9:[[0,3],11,21,23,82,83],10:[[0,2],[81,83]],11:[[0,3],21,22],12:[[0,3]],13:[[0,2],11,12,[21,29]],14:[[0,2],[21,28],81,82],15:[[0,2],[21,26],81],16:[[0,2],[21,26]],17:[[0,2],[21,28]]},41:{0:[0],1:[[0,6],8,22,[81,85]],2:[[0,5],11,[21,25]],3:[[0,7],11,[22,29],81],4:[[0,4],11,[21,23],25,81,82],5:[[0,3],5,6,22,23,26,27,81],6:[[0,3],11,21,22],7:[[0,4],11,21,[24,28],81,82],8:[[0,4],11,[21,23],25,[81,83]],9:[[0,2],22,23,[26,28]],10:[[0,2],[23,25],81,82],11:[[0,4],[21,23]],12:[[0,2],21,22,24,81,82],13:[[0,3],[21,30],81],14:[[0,3],[21,26],81],15:[[0,3],[21,28]],16:[[0,2],[21,28],81],17:[[0,2],[21,29]],90:[0,1]},42:{0:[0],1:[[0,7],[11,17]],2:[[0,5],22,81],3:[[0,3],[21,25],81],5:[[0,6],[25,29],[81,83]],6:[[0,2],6,7,[24,26],[82,84]],7:[[0,4]],8:[[0,2],4,21,22,81],9:[[0,2],[21,23],81,82,84],10:[[0,3],[22,24],81,83,87],11:[[0,2],[21,27],81,82],12:[[0,2],[21,24],81],13:[[0,3],21,81],28:[[0,2],22,23,[25,28]],90:[0,[4,6],21]},43:{0:[0],1:[[0,5],11,12,21,22,24,81],2:[[0,4],11,21,[23,25],81],3:[[0,2],4,21,81,82],4:[0,1,[5,8],12,[21,24],26,81,82],5:[[0,3],11,[21,25],[27,29],81],6:[[0,3],11,21,23,24,26,81,82],7:[[0,3],[21,26],81],8:[[0,2],11,21,22],9:[[0,3],[21,23],81],10:[[0,3],[21,28],81],11:[[0,3],[21,29]],12:[[0,2],[21,30],81],13:[[0,2],21,22,81,82],31:[0,1,[22,27],30]},44:{0:[0],1:[[0,7],[11,16],83,84],2:[[0,5],21,22,24,29,32,33,81,82],3:[0,1,[3,8]],4:[[0,4]],5:[0,1,[6,15],23,82,83],6:[0,1,[4,8]],7:[0,1,[3,5],81,[83,85]],8:[[0,4],11,23,25,[81,83]],9:[[0,3],23,[81,83]],12:[[0,3],[23,26],83,84],13:[[0,3],[22,24],81],14:[[0,2],[21,24],26,27,81],15:[[0,2],21,23,81],16:[[0,2],[21,25]],17:[[0,2],21,23,81],18:[[0,3],21,23,[25,27],81,82],19:[0],20:[0],51:[[0,3],21,22],52:[[0,3],21,22,24,81],53:[[0,2],[21,23],81]},45:{0:[0],1:[[0,9],[21,27]],2:[[0,5],[21,26]],3:[[0,5],11,12,[21,32]],4:[0,1,[3,6],11,[21,23],81],5:[[0,3],12,21],6:[[0,3],21,81],7:[[0,3],21,22],8:[[0,4],21,81],9:[[0,3],[21,24],81],10:[[0,2],[21,31]],11:[[0,2],[21,23]],12:[[0,2],[21,29],81],13:[[0,2],[21,24],81],14:[[0,2],[21,25],81]},46:{0:[0],1:[0,1,[5,8]],2:[0,1],3:[0,[21,23]],90:[[0,3],[5,7],[21,39]]},50:{0:[0],1:[[0,19]],2:[0,[22,38],[40,43]],3:[0,[81,84]]},51:{0:[0],1:[0,1,[4,8],[12,15],[21,24],29,31,32,[81,84]],3:[[0,4],11,21,22],4:[[0,3],11,21,22],5:[[0,4],21,22,24,25],6:[0,1,3,23,26,[81,83]],7:[0,1,3,4,[22,27],81],8:[[0,2],11,12,[21,24]],9:[[0,4],[21,23]],10:[[0,2],11,24,25,28],11:[[0,2],[11,13],23,24,26,29,32,33,81],13:[[0,4],[21,25],81],14:[[0,2],[21,25]],15:[[0,3],[21,29]],16:[[0,3],[21,23],81],17:[[0,3],[21,25],81],18:[[0,3],[21,27]],19:[[0,3],[21,23]],20:[[0,2],21,22,81],32:[0,[21,33]],33:[0,[21,38]],34:[0,1,[22,37]]},52:{0:[0],1:[[0,3],[11,15],[21,23],81],2:[0,1,3,21,22],3:[[0,3],[21,30],81,82],4:[[0,2],[21,25]],5:[[0,2],[21,27]],6:[[0,3],[21,28]],22:[0,1,[22,30]],23:[0,1,[22,28]],24:[0,1,[22,28]],26:[0,1,[22,36]],27:[[0,2],22,23,[25,32]]},53:{0:[0],1:[[0,3],[11,14],21,22,[24,29],81],3:[[0,2],[21,26],28,81],4:[[0,2],[21,28]],5:[[0,2],[21,24]],6:[[0,2],[21,30]],7:[[0,2],[21,24]],8:[[0,2],[21,29]],9:[[0,2],[21,27]],23:[0,1,[22,29],31],25:[[0,4],[22,32]],26:[0,1,[21,28]],27:[0,1,[22,30]],28:[0,1,22,23],29:[0,1,[22,32]],31:[0,2,3,[22,24]],34:[0,[21,23]],33:[0,21,[23,25]],35:[0,[21,28]]},54:{0:[0],1:[[0,2],[21,27]],21:[0,[21,29],32,33],22:[0,[21,29],[31,33]],23:[0,1,[22,38]],24:[0,[21,31]],25:[0,[21,27]],26:[0,[21,27]]},61:{0:[0],1:[[0,4],[11,16],22,[24,26]],2:[[0,4],22],3:[[0,4],[21,24],[26,31]],4:[[0,4],[22,31],81],5:[[0,2],[21,28],81,82],6:[[0,2],[21,32]],7:[[0,2],[21,30]],8:[[0,2],[21,31]],9:[[0,2],[21,29]],10:[[0,2],[21,26]]},62:{0:[0],1:[[0,5],11,[21,23]],2:[0,1],3:[[0,2],21],4:[[0,3],[21,23]],5:[[0,3],[21,25]],6:[[0,2],[21,23]],7:[[0,2],[21,25]],8:[[0,2],[21,26]],9:[[0,2],[21,24],81,82],10:[[0,2],[21,27]],11:[[0,2],[21,26]],12:[[0,2],[21,28]],24:[0,21,[24,29]],26:[0,21,[23,30]],29:[0,1,[21,27]],30:[0,1,[21,27]]},63:{0:[0],1:[[0,5],[21,23]],2:[0,2,[21,25]],21:[0,[21,23],[26,28]],22:[0,[21,24]],23:[0,[21,24]],25:[0,[21,25]],26:[0,[21,26]],27:[0,1,[21,26]],28:[[0,2],[21,23]]},64:{0:[0],1:[0,1,[4,6],21,22,81],2:[[0,3],5,[21,23]],3:[[0,3],[21,24],81],4:[[0,2],[21,25]],5:[[0,2],21,22]},65:{0:[0],1:[[0,9],21],2:[[0,5]],21:[0,1,22,23],22:[0,1,22,23],23:[[0,3],[23,25],27,28],28:[0,1,[22,29]],29:[0,1,[22,29]],30:[0,1,[22,24]],31:[0,1,[21,31]],32:[0,1,[21,27]],40:[0,2,3,[21,28]],42:[[0,2],21,[23,26]],43:[0,1,[21,26]],90:[[0,4]],27:[[0,2],22,23]},71:{0:[0]},81:{0:[0]},82:{0:[0]}},i=parseInt(e.substr(0,2),10),o=parseInt(e.substr(2,2),10),a=parseInt(e.substr(4,2),10);if(!r[i]||!r[i][o])return!1;for(var s=!1,l=r[i][o],d=0;d<l.length;d++)if(t.isArray(l[d])&&l[d][0]<=a&&a<=l[d][1]||!t.isArray(l[d])&&a===l[d]){s=!0;break}if(!s)return!1;n=18===e.length?e.substr(6,8):"19"+e.substr(6,6);var u=parseInt(n.substr(0,4),10),f=parseInt(n.substr(4,2),10),c=parseInt(n.substr(6,2),10);if(!t.fn.bootstrapValidator.helpers.date(u,f,c))return!1;if(18===e.length){var p=0,h=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2];for(d=0;17>d;d++)p+=parseInt(e.charAt(d),10)*h[d];return p=(12-p%11)%11,("X"!==e.charAt(17).toUpperCase()?parseInt(e.charAt(17),10):10)===p}return!0},_cz:function(e){if(!/^\d{9,10}$/.test(e))return!1;var n=1900+parseInt(e.substr(0,2),10),r=parseInt(e.substr(2,2),10)%50%20,i=parseInt(e.substr(4,2),10);if(9===e.length){if(n>=1980&&(n-=100),n>1953)return!1}else 1954>n&&(n+=100);if(!t.fn.bootstrapValidator.helpers.date(n,r,i))return!1;if(10===e.length){var o=parseInt(e.substr(0,9),10)%11;return 1985>n&&(o%=10),o+""===e.substr(9,1)}return!0},_dk:function(e){if(!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(e))return!1;e=e.replace(/-/g,"");var n=parseInt(e.substr(0,2),10),r=parseInt(e.substr(2,2),10),i=parseInt(e.substr(4,2),10);switch(!0){case-1!=="5678".indexOf(e.charAt(6))&&i>=58:i+=1800;break;case-1!=="0123".indexOf(e.charAt(6)):case-1!=="49".indexOf(e.charAt(6))&&i>=37:i+=1900;break;default:i+=2e3}return t.fn.bootstrapValidator.helpers.date(i,r,n)},_ee:function(t){return this._lt(t)},_es:function(t){if(!/^[0-9A-Z]{8}[-]{0,1}[0-9A-Z]$/.test(t)&&!/^[XYZ][-]{0,1}[0-9]{7}[-]{0,1}[0-9A-Z]$/.test(t))return!1;t=t.replace(/-/g,"");var e="XYZ".indexOf(t.charAt(0));-1!==e&&(t=e+t.substr(1)+"");var n=parseInt(t.substr(0,8),10);return(n="TRWAGMYFPDXBNJZSQVHLCKE"[n%23])===t.substr(8,1)},_fi:function(e){if(!/^[0-9]{6}[-+A][0-9]{3}[0-9ABCDEFHJKLMNPRSTUVWXY]$/.test(e))return!1;var n=parseInt(e.substr(0,2),10),r=parseInt(e.substr(2,2),10),i=parseInt(e.substr(4,2),10);if(i={"+":1800,"-":1900,A:2e3}[e.charAt(6)]+i,!t.fn.bootstrapValidator.helpers.date(i,r,n))return!1;if(2>parseInt(e.substr(7,3),10))return!1;var o=e.substr(0,6)+e.substr(7,3)+"";return o=parseInt(o,10),"0123456789ABCDEFHJKLMNPRSTUVWXY".charAt(o%31)===e.charAt(10)},_hr:function(e){return!!/^[0-9]{11}$/.test(e)&&t.fn.bootstrapValidator.helpers.mod11And10(e)},_ie:function(t){if(!/^\d{7}[A-W][AHWTX]?$/.test(t))return!1;var e=function(t){for(;t.length<7;)t="0"+t;for(var e="WABCDEFGHIJKLMNOPQRSTUV",n=0,r=0;7>r;r++)n+=parseInt(t.charAt(r),10)*(8-r);return e[(n+=9*e.indexOf(t.substr(7)))%23]};return 9!==t.length||"A"!==t.charAt(8)&&"H"!==t.charAt(8)?t.charAt(7)===e(t.substr(0,7)):t.charAt(7)===e(t.substr(0,7)+t.substr(8)+"")},_is:function(e){if(!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(e))return!1;e=e.replace(/-/g,"");var n=parseInt(e.substr(0,2),10),r=parseInt(e.substr(2,2),10),i=parseInt(e.substr(4,2),10),o=parseInt(e.charAt(9),10);if(i=9===o?1900+i:100*(20+o)+i,!t.fn.bootstrapValidator.helpers.date(i,r,n,!0))return!1;for(var a=0,s=[3,2,7,6,5,4,3,2],l=0;8>l;l++)a+=parseInt(e.charAt(l),10)*s[l];return(a=11-a%11)+""===e.charAt(8)},_lt:function(e){if(!/^[0-9]{11}$/.test(e))return!1;var n=parseInt(e.charAt(0),10),r=parseInt(e.substr(1,2),10),i=parseInt(e.substr(3,2),10),o=parseInt(e.substr(5,2),10);if(r=100*(n%2==0?17+n/2:17+(n+1)/2)+r,!t.fn.bootstrapValidator.helpers.date(r,i,o,!0))return!1;for(var a=0,s=[1,2,3,4,5,6,7,8,9,1],l=0;10>l;l++)a+=parseInt(e.charAt(l),10)*s[l];if(10!==(a%=11))return a+""===e.charAt(10);for(a=0,s=[3,4,5,6,7,8,9,1,2,3],l=0;10>l;l++)a+=parseInt(e.charAt(l),10)*s[l];return 10===(a%=11)&&(a=0),a+""===e.charAt(10)},_lv:function(e){if(!/^[0-9]{6}[-]{0,1}[0-9]{5}$/.test(e))return!1;e=e.replace(/\D/g,"");var n=parseInt(e.substr(0,2),10),r=parseInt(e.substr(2,2),10),i=parseInt(e.substr(4,2),10);if(i=i+1800+100*parseInt(e.charAt(6),10),!t.fn.bootstrapValidator.helpers.date(i,r,n,!0))return!1;for(var o=0,a=[10,5,8,4,2,1,6,3,7,9],s=0;10>s;s++)o+=parseInt(e.charAt(s),10)*a[s];return(o=(o+1)%11%10)+""===e.charAt(10)},_nl:function(t){for(;t.length<9;)t="0"+t;if(!/^[0-9]{4}[.]{0,1}[0-9]{2}[.]{0,1}[0-9]{3}$/.test(t))return!1;if(t=t.replace(/\./g,""),0===parseInt(t,10))return!1;for(var e=0,n=t.length,r=0;n-1>r;r++)e+=(9-r)*parseInt(t.charAt(r),10);return 10===(e%=11)&&(e=0),e+""===t.charAt(n-1)},_ro:function(e){if(!/^[0-9]{13}$/.test(e))return!1;var n=parseInt(e.charAt(0),10);if(0===n||7===n||8===n)return!1;var r=parseInt(e.substr(1,2),10),i=parseInt(e.substr(3,2),10),o=parseInt(e.substr(5,2),10);if(o>31&&i>12)return!1;if(9!==n&&(r={1:1900,2:1900,3:1800,4:1800,5:2e3,6:2e3}[n+""]+r,!t.fn.bootstrapValidator.helpers.date(r,i,o)))return!1;for(var a=0,s=[2,7,9,1,4,6,3,5,8,2,7,9],l=e.length,d=0;l-1>d;d++)a+=parseInt(e.charAt(d),10)*s[d];return 10===(a%=11)&&(a=1),a+""===e.charAt(l-1)},_se:function(e){if(!/^[0-9]{10}$/.test(e)&&!/^[0-9]{6}[-|+][0-9]{4}$/.test(e))return!1;e=e.replace(/[^0-9]/g,"");var n=parseInt(e.substr(0,2),10)+1900,r=parseInt(e.substr(2,2),10),i=parseInt(e.substr(4,2),10);return!!t.fn.bootstrapValidator.helpers.date(n,r,i)&&t.fn.bootstrapValidator.helpers.luhn(e)},_sk:function(t){return this._cz(t)},_sm:function(t){return/^\d{5}$/.test(t)},_th:function(t){if(13!==t.length)return!1;for(var e=0,n=0;12>n;n++)e+=parseInt(t.charAt(n),10)*(13-n);return(11-e%11)%10===parseInt(t.charAt(12),10)},_za:function(e){if(!/^[0-9]{10}[0|1][8|9][0-9]$/.test(e))return!1;var n=parseInt(e.substr(0,2),10),r=(new Date).getFullYear()%100,i=parseInt(e.substr(2,2),10),o=parseInt(e.substr(4,2),10);return n=n>=r?n+1900:n+2e3,!!t.fn.bootstrapValidator.helpers.date(n,i,o)&&t.fn.bootstrapValidator.helpers.luhn(e)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.identical=t.extend(t.fn.bootstrapValidator.i18n.identical||{},{default:"Please enter the same value"}),t.fn.bootstrapValidator.validators.identical={html5Attributes:{message:"message",field:"field"},validate:function(t,e,n){var r=e.val();if(""===r)return!0;var i=t.getFieldElements(n.field);return null===i||0===i.length||r===i.val()&&(t.updateStatus(n.field,t.STATUS_VALID,"identical"),!0)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.imei=t.extend(t.fn.bootstrapValidator.i18n.imei||{},{default:"Please enter a valid IMEI number"}),t.fn.bootstrapValidator.validators.imei={validate:function(e,n){var r=n.val();if(""===r)return!0;switch(!0){case/^\d{15}$/.test(r):case/^\d{2}-\d{6}-\d{6}-\d{1}$/.test(r):case/^\d{2}\s\d{6}\s\d{6}\s\d{1}$/.test(r):return r=r.replace(/[^0-9]/g,""),t.fn.bootstrapValidator.helpers.luhn(r);case/^\d{14}$/.test(r):case/^\d{16}$/.test(r):case/^\d{2}-\d{6}-\d{6}(|-\d{2})$/.test(r):case/^\d{2}\s\d{6}\s\d{6}(|\s\d{2})$/.test(r):return!0;default:return!1}}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.imo=t.extend(t.fn.bootstrapValidator.i18n.imo||{},{default:"Please enter a valid IMO number"}),t.fn.bootstrapValidator.validators.imo={validate:function(t,e){var n=e.val();if(""===n)return!0;if(!/^IMO \d{7}$/i.test(n))return!1;for(var r=0,i=n.replace(/^.*(\d{7})$/,"$1"),o=6;o>=1;o--)r+=i.slice(6-o,-o)*(o+1);return r%10===parseInt(i.charAt(6),10)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.integer=t.extend(t.fn.bootstrapValidator.i18n.integer||{},{default:"Please enter a valid number"}),t.fn.bootstrapValidator.validators.integer={enableByHtml5:function(t){return"number"===t.attr("type")&&(void 0===t.attr("step")||t.attr("step")%1==0)},validate:function(t,e){if(this.enableByHtml5(e)&&e.get(0).validity&&!0===e.get(0).validity.badInput)return!1;var n=e.val();return""===n||/^(?:-?(?:0|[1-9][0-9]*))$/.test(n)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.ip=t.extend(t.fn.bootstrapValidator.i18n.ip||{},{default:"Please enter a valid IP address",ipv4:"Please enter a valid IPv4 address",ipv6:"Please enter a valid IPv6 address"}),t.fn.bootstrapValidator.validators.ip={html5Attributes:{message:"message",ipv4:"ipv4",ipv6:"ipv6"},validate:function(e,n,r){var i=n.val();if(""===i)return!0;var o,a=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,s=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,l=!1;switch(!0){case(r=t.extend({},{ipv4:!0,ipv6:!0},r)).ipv4&&!r.ipv6:l=a.test(i),o=r.message||t.fn.bootstrapValidator.i18n.ip.ipv4;break;case!r.ipv4&&r.ipv6:l=s.test(i),o=r.message||t.fn.bootstrapValidator.i18n.ip.ipv6;break;case r.ipv4&&r.ipv6:default:l=a.test(i)||s.test(i),o=r.message||t.fn.bootstrapValidator.i18n.ip.default}return{valid:l,message:o}}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.isbn=t.extend(t.fn.bootstrapValidator.i18n.isbn||{},{default:"Please enter a valid ISBN number"}),t.fn.bootstrapValidator.validators.isbn={validate:function(t,e){var n,r=e.val();if(""===r)return!0;switch(!0){case/^\d{9}[\dX]$/.test(r):case 13===r.length&&/^(\d+)-(\d+)-(\d+)-([\dX])$/.test(r):case 13===r.length&&/^(\d+)\s(\d+)\s(\d+)\s([\dX])$/.test(r):n="ISBN10";break;case/^(978|979)\d{9}[\dX]$/.test(r):case 17===r.length&&/^(978|979)-(\d+)-(\d+)-(\d+)-([\dX])$/.test(r):case 17===r.length&&/^(978|979)\s(\d+)\s(\d+)\s(\d+)\s([\dX])$/.test(r):n="ISBN13";break;default:return!1}var i,o,a=(r=r.replace(/[^0-9X]/gi,"")).split(""),s=a.length,l=0;switch(n){case"ISBN10":for(l=0,i=0;s-1>i;i++)l+=parseInt(a[i],10)*(10-i);return 11===(o=11-l%11)?o=0:10===o&&(o="X"),o+""===a[s-1];case"ISBN13":for(l=0,i=0;s-1>i;i++)l+=i%2==0?parseInt(a[i],10):3*parseInt(a[i],10);return 10===(o=10-l%10)&&(o="0"),o+""===a[s-1];default:return!1}}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.isin=t.extend(t.fn.bootstrapValidator.i18n.isin||{},{default:"Please enter a valid ISIN number"}),t.fn.bootstrapValidator.validators.isin={COUNTRY_CODES:"AF|AX|AL|DZ|AS|AD|AO|AI|AQ|AG|AR|AM|AW|AU|AT|AZ|BS|BH|BD|BB|BY|BE|BZ|BJ|BM|BT|BO|BQ|BA|BW|BV|BR|IO|BN|BG|BF|BI|KH|CM|CA|CV|KY|CF|TD|CL|CN|CX|CC|CO|KM|CG|CD|CK|CR|CI|HR|CU|CW|CY|CZ|DK|DJ|DM|DO|EC|EG|SV|GQ|ER|EE|ET|FK|FO|FJ|FI|FR|GF|PF|TF|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GU|GT|GG|GN|GW|GY|HT|HM|VA|HN|HK|HU|IS|IN|ID|IR|IQ|IE|IM|IL|IT|JM|JP|JE|JO|KZ|KE|KI|KP|KR|KW|KG|LA|LV|LB|LS|LR|LY|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MH|MQ|MR|MU|YT|MX|FM|MD|MC|MN|ME|MS|MA|MZ|MM|NA|NR|NP|NL|NC|NZ|NI|NE|NG|NU|NF|MP|NO|OM|PK|PW|PS|PA|PG|PY|PE|PH|PN|PL|PT|PR|QA|RE|RO|RU|RW|BL|SH|KN|LC|MF|PM|VC|WS|SM|ST|SA|SN|RS|SC|SL|SG|SX|SK|SI|SB|SO|ZA|GS|SS|ES|LK|SD|SR|SJ|SZ|SE|CH|SY|TW|TJ|TZ|TH|TL|TG|TK|TO|TT|TN|TR|TM|TC|TV|UG|UA|AE|GB|US|UM|UY|UZ|VU|VE|VN|VG|VI|WF|EH|YE|ZM|ZW",validate:function(t,e){var n=e.val();if(""===n)return!0;if(n=n.toUpperCase(),!new RegExp("^("+this.COUNTRY_CODES+")[0-9A-Z]{10}$").test(n))return!1;for(var r="",i=n.length,o=0;i-1>o;o++){var a=n.charCodeAt(o);r+=a>57?(a-55).toString():n.charAt(o)}var s="",l=r.length,d=l%2!=0?0:1;for(o=0;l>o;o++)s+=parseInt(r[o],10)*(o%2===d?2:1)+"";var u=0;for(o=0;o<s.length;o++)u+=parseInt(s.charAt(o),10);return(u=(10-u%10)%10)+""===n.charAt(i-1)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.ismn=t.extend(t.fn.bootstrapValidator.i18n.ismn||{},{default:"Please enter a valid ISMN number"}),t.fn.bootstrapValidator.validators.ismn={validate:function(t,e){var n,r=e.val();if(""===r)return!0;switch(!0){case/^M\d{9}$/.test(r):case/^M-\d{4}-\d{4}-\d{1}$/.test(r):case/^M\s\d{4}\s\d{4}\s\d{1}$/.test(r):n="ISMN10";break;case/^9790\d{9}$/.test(r):case/^979-0-\d{4}-\d{4}-\d{1}$/.test(r):case/^979\s0\s\d{4}\s\d{4}\s\d{1}$/.test(r):n="ISMN13";break;default:return!1}"ISMN10"===n&&(r="9790"+r.substr(1));for(var i=(r=r.replace(/[^0-9]/gi,"")).length,o=0,a=[1,3],s=0;i-1>s;s++)o+=parseInt(r.charAt(s),10)*a[s%2];return(o=10-o%10)+""===r.charAt(i-1)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.issn=t.extend(t.fn.bootstrapValidator.i18n.issn||{},{default:"Please enter a valid ISSN number"}),t.fn.bootstrapValidator.validators.issn={validate:function(t,e){var n=e.val();if(""===n)return!0;if(!/^\d{4}\-\d{3}[\dX]$/.test(n))return!1;var r=(n=n.replace(/[^0-9X]/gi,"")).split(""),i=r.length,o=0;"X"===r[7]&&(r[7]=10);for(var a=0;i>a;a++)o+=parseInt(r[a],10)*(8-a);return o%11==0}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.lessThan=t.extend(t.fn.bootstrapValidator.i18n.lessThan||{},{default:"Please enter a value less than or equal to %s",notInclusive:"Please enter a value less than %s"}),t.fn.bootstrapValidator.validators.lessThan={html5Attributes:{message:"message",value:"value",inclusive:"inclusive"},enableByHtml5:function(t){var e=t.attr("type"),n=t.attr("max");return!(!n||"date"===e)&&{value:n}},validate:function(e,n,r){var i=n.val();if(""===i)return!0;if(i=this._format(i),!t.isNumeric(i))return!1;var o=t.isNumeric(r.value)?r.value:e.getDynamicOption(n,r.value),a=this._format(o);return i=parseFloat(i),!0===r.inclusive||void 0===r.inclusive?{valid:a>=i,message:t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.lessThan.default,o)}:{valid:a>i,message:t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.lessThan.notInclusive,o)}},_format:function(t){return(t+"").replace(",",".")}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.mac=t.extend(t.fn.bootstrapValidator.i18n.mac||{},{default:"Please enter a valid MAC address"}),t.fn.bootstrapValidator.validators.mac={validate:function(t,e){var n=e.val();return""===n||/^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$/.test(n)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.meid=t.extend(t.fn.bootstrapValidator.i18n.meid||{},{default:"Please enter a valid MEID number"}),t.fn.bootstrapValidator.validators.meid={validate:function(e,n){var r=n.val();if(""===r)return!0;switch(!0){case/^[0-9A-F]{15}$/i.test(r):case/^[0-9A-F]{2}[- ][0-9A-F]{6}[- ][0-9A-F]{6}[- ][0-9A-F]$/i.test(r):case/^\d{19}$/.test(r):case/^\d{5}[- ]\d{5}[- ]\d{4}[- ]\d{4}[- ]\d$/.test(r):var i=r.charAt(r.length-1);if((r=r.replace(/[- ]/g,"")).match(/^\d*$/i))return t.fn.bootstrapValidator.helpers.luhn(r);r=r.slice(0,-1);for(var o="",a=1;13>=a;a+=2)o+=(2*parseInt(r.charAt(a),16)).toString(16);var s=0;for(a=0;a<o.length;a++)s+=parseInt(o.charAt(a),16);return s%10==0?"0"===i:i===(2*(10*Math.floor((s+10)/10)-s)).toString(16);case/^[0-9A-F]{14}$/i.test(r):case/^[0-9A-F]{2}[- ][0-9A-F]{6}[- ][0-9A-F]{6}$/i.test(r):case/^\d{18}$/.test(r):case/^\d{5}[- ]\d{5}[- ]\d{4}[- ]\d{4}$/.test(r):return!0;default:return!1}}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.notEmpty=t.extend(t.fn.bootstrapValidator.i18n.notEmpty||{},{default:"Please enter a value"}),t.fn.bootstrapValidator.validators.notEmpty={enableByHtml5:function(t){var e=t.attr("required")+"";return"required"===e||"true"===e},validate:function(e,n){var r=n.attr("type");return"radio"===r||"checkbox"===r?e.getFieldElements(n.attr("data-bv-field")).filter(":checked").length>0:!("number"!==r||!n.get(0).validity||!0!==n.get(0).validity.badInput)||""!==t.trim(n.val())}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.numeric=t.extend(t.fn.bootstrapValidator.i18n.numeric||{},{default:"Please enter a valid float number"}),t.fn.bootstrapValidator.validators.numeric={html5Attributes:{message:"message",separator:"separator"},enableByHtml5:function(t){return"number"===t.attr("type")&&void 0!==t.attr("step")&&t.attr("step")%1!=0},validate:function(t,e,n){if(this.enableByHtml5(e)&&e.get(0).validity&&!0===e.get(0).validity.badInput)return!1;var r=e.val();if(""===r)return!0;var i=n.separator||".";return"."!==i&&(r=r.replace(i,".")),!isNaN(parseFloat(r))&&isFinite(r)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.phone=t.extend(t.fn.bootstrapValidator.i18n.phone||{},{default:"Please enter a valid phone number",countryNotSupported:"The country code %s is not supported",country:"Please enter a valid phone number in %s",countries:{BR:"Brazil",CN:"China",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",ES:"Spain",FR:"France",GB:"United Kingdom",MA:"Morocco",PK:"Pakistan",RO:"Romania",RU:"Russia",SK:"Slovakia",TH:"Thailand",US:"USA",VE:"Venezuela"}}),t.fn.bootstrapValidator.validators.phone={html5Attributes:{message:"message",country:"country"},COUNTRY_CODES:["BR","CN","CZ","DE","DK","ES","FR","GB","MA","PK","RO","RU","SK","TH","US","VE"],validate:function(e,n,r){var i=n.val();if(""===i)return!0;var o=r.country;if(("string"!=typeof o||-1===t.inArray(o,this.COUNTRY_CODES))&&(o=e.getDynamicOption(n,o)),!o||-1===t.inArray(o.toUpperCase(),this.COUNTRY_CODES))return{valid:!1,message:t.fn.bootstrapValidator.helpers.format(t.fn.bootstrapValidator.i18n.phone.countryNotSupported,o)};var a=!0;switch(o.toUpperCase()){case"BR":i=t.trim(i),a=/^(([\d]{4}[-.\s]{1}[\d]{2,3}[-.\s]{1}[\d]{2}[-.\s]{1}[\d]{2})|([\d]{4}[-.\s]{1}[\d]{3}[-.\s]{1}[\d]{4})|((\(?\+?[0-9]{2}\)?\s?)?(\(?\d{2}\)?\s?)?\d{4,5}[-.\s]?\d{4}))$/.test(i);break;case"CN":i=t.trim(i),a=/^((00|\+)?(86(?:-| )))?((\d{11})|(\d{3}[- ]{1}\d{4}[- ]{1}\d{4})|((\d{2,4}[- ]){1}(\d{7,8}|(\d{3,4}[- ]{1}\d{4}))([- ]{1}\d{1,4})?))$/.test(i);break;case"CZ":a=/^(((00)([- ]?)|\+)(420)([- ]?))?((\d{3})([- ]?)){2}(\d{3})$/.test(i);break;case"DE":i=t.trim(i),a=/^(((((((00|\+)49[ \-/]?)|0)[1-9][0-9]{1,4})[ \-/]?)|((((00|\+)49\()|\(0)[1-9][0-9]{1,4}\)[ \-/]?))[0-9]{1,7}([ \-/]?[0-9]{1,5})?)$/.test(i);break;case"DK":i=t.trim(i),a=/^(\+45|0045|\(45\))?\s?[2-9](\s?\d){7}$/.test(i);break;case"ES":i=t.trim(i),a=/^(?:(?:(?:\+|00)34\D?))?(?:9|6)(?:\d\D?){8}$/.test(i);break;case"FR":i=t.trim(i),a=/^(?:(?:(?:\+|00)33[ ]?(?:\(0\)[ ]?)?)|0){1}[1-9]{1}([ .-]?)(?:\d{2}\1?){3}\d{2}$/.test(i);break;case"GB":i=t.trim(i),a=/^\(?(?:(?:0(?:0|11)\)?[\s-]?\(?|\+)44\)?[\s-]?\(?(?:0\)?[\s-]?\(?)?|0)(?:\d{2}\)?[\s-]?\d{4}[\s-]?\d{4}|\d{3}\)?[\s-]?\d{3}[\s-]?\d{3,4}|\d{4}\)?[\s-]?(?:\d{5}|\d{3}[\s-]?\d{3})|\d{5}\)?[\s-]?\d{4,5}|8(?:00[\s-]?11[\s-]?11|45[\s-]?46[\s-]?4\d))(?:(?:[\s-]?(?:x|ext\.?\s?|\#)\d+)?)$/.test(i);break;case"MA":i=t.trim(i),a=/^(?:(?:(?:\+|00)212[\s]?(?:[\s]?\(0\)[\s]?)?)|0){1}(?:5[\s.-]?[2-3]|6[\s.-]?[13-9]){1}[0-9]{1}(?:[\s.-]?\d{2}){3}$/.test(i);break;case"PK":i=t.trim(i),a=/^0?3[0-9]{2}[0-9]{7}$/.test(i);break;case"RO":a=/^(\+4|)?(07[0-8]{1}[0-9]{1}|02[0-9]{2}|03[0-9]{2}){1}?(\s|\.|\-)?([0-9]{3}(\s|\.|\-|)){2}$/g.test(i);break;case"RU":a=/^((8|\+7|007)[\-\.\/ ]?)?([\(\/\.]?\d{3}[\)\/\.]?[\-\.\/ ]?)?[\d\-\.\/ ]{7,10}$/g.test(i);break;case"SK":a=/^(((00)([- ]?)|\+)(420)([- ]?))?((\d{3})([- ]?)){2}(\d{3})$/.test(i);break;case"TH":a=/^0\(?([6|8-9]{2})*-([0-9]{3})*-([0-9]{4})$/.test(i);break;case"VE":i=t.trim(i),a=/^0(?:2(?:12|4[0-9]|5[1-9]|6[0-9]|7[0-8]|8[1-35-8]|9[1-5]|3[45789])|4(?:1[246]|2[46]))\d{7}$/.test(i);break;case"US":default:i=i.replace(/\D/g,""),a=/^(?:(1\-?)|(\+1 ?))?\(?(\d{3})[\)\-\.]?(\d{3})[\-\.]?(\d{4})$/.test(i)&&10===i.length}return{valid:a,message:t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.phone.country,t.fn.bootstrapValidator.i18n.phone.countries[o])}}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.regexp=t.extend(t.fn.bootstrapValidator.i18n.regexp||{},{default:"Please enter a value matching the pattern"}),t.fn.bootstrapValidator.validators.regexp={html5Attributes:{message:"message",regexp:"regexp"},enableByHtml5:function(t){var e=t.attr("pattern");return!!e&&{regexp:e}},validate:function(t,e,n){var r=e.val();return""===r||("string"==typeof n.regexp?new RegExp(n.regexp):n.regexp).test(r)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.remote=t.extend(t.fn.bootstrapValidator.i18n.remote||{},{default:"Please enter a valid value"}),t.fn.bootstrapValidator.validators.remote={html5Attributes:{message:"message",name:"name",type:"type",url:"url",data:"data",delay:"delay"},destroy:function(t,e){e.data("bv.remote.timer")&&(clearTimeout(e.data("bv.remote.timer")),e.removeData("bv.remote.timer"))},validate:function(e,n,r){function i(){var e=t.ajax({type:u,headers:f,url:d,dataType:"json",data:l});return e.then(function(t){t.valid=!0===t.valid||"true"===t.valid,a.resolve(n,"remote",t)}),a.fail(function(){e.abort()}),a}var o=n.val(),a=new t.Deferred;if(""===o)return a.resolve(n,"remote",{valid:!0}),a;var s=n.attr("data-bv-field"),l=r.data||{},d=r.url,u=r.type||"GET",f=r.headers||{};return"function"==typeof l&&(l=l.call(this,e)),"string"==typeof l&&(l=JSON.parse(l)),"function"==typeof d&&(d=d.call(this,e)),l[r.name||s]=o,r.delay?(n.data("bv.remote.timer")&&clearTimeout(n.data("bv.remote.timer")),n.data("bv.remote.timer",setTimeout(i,r.delay)),a):i()}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.rtn=t.extend(t.fn.bootstrapValidator.i18n.rtn||{},{default:"Please enter a valid RTN number"}),t.fn.bootstrapValidator.validators.rtn={validate:function(t,e){var n=e.val();if(""===n)return!0;if(!/^\d{9}$/.test(n))return!1;for(var r=0,i=0;i<n.length;i+=3)r+=3*parseInt(n.charAt(i),10)+7*parseInt(n.charAt(i+1),10)+parseInt(n.charAt(i+2),10);return 0!==r&&r%10==0}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.sedol=t.extend(t.fn.bootstrapValidator.i18n.sedol||{},{default:"Please enter a valid SEDOL number"}),t.fn.bootstrapValidator.validators.sedol={validate:function(t,e){var n=e.val();if(""===n)return!0;if(n=n.toUpperCase(),!/^[0-9A-Z]{7}$/.test(n))return!1;for(var r=0,i=[1,3,1,7,3,9,1],o=n.length,a=0;o-1>a;a++)r+=i[a]*parseInt(n.charAt(a),36);return(r=(10-r%10)%10)+""===n.charAt(o-1)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.siren=t.extend(t.fn.bootstrapValidator.i18n.siren||{},{default:"Please enter a valid SIREN number"}),t.fn.bootstrapValidator.validators.siren={validate:function(e,n){var r=n.val();return""===r||!!/^\d{9}$/.test(r)&&t.fn.bootstrapValidator.helpers.luhn(r)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.siret=t.extend(t.fn.bootstrapValidator.i18n.siret||{},{default:"Please enter a valid SIRET number"}),t.fn.bootstrapValidator.validators.siret={validate:function(t,e){var n=e.val();if(""===n)return!0;for(var r,i=0,o=n.length,a=0;o>a;a++)r=parseInt(n.charAt(a),10),a%2==0&&((r*=2)>9&&(r-=9)),i+=r;return i%10==0}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.step=t.extend(t.fn.bootstrapValidator.i18n.step||{},{default:"Please enter a valid step of %s"}),t.fn.bootstrapValidator.validators.step={html5Attributes:{message:"message",base:"baseValue",step:"step"},validate:function(e,n,r){var i=n.val();if(""===i)return!0;if(r=t.extend({},{baseValue:0,step:1},r),i=parseFloat(i),!t.isNumeric(i))return!1;var o=function(t,e){if(0===e)return 1;var n=(t+"").split("."),r=(e+"").split("."),i=(1===n.length?0:n[1].length)+(1===r.length?0:r[1].length);return function(t,e){var n=Math.pow(10,e),r=(t*=n)>0|-(0>t);return t%1==.5*r?(Math.floor(t)+(r>0))/n:Math.round(t)/n}(t-e*Math.floor(t/e),i)}(i-r.baseValue,r.step);return{valid:0===o||o===r.step,message:t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.step.default,[r.step])}}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.stringCase=t.extend(t.fn.bootstrapValidator.i18n.stringCase||{},{default:"Please enter only lowercase characters",upper:"Please enter only uppercase characters"}),t.fn.bootstrapValidator.validators.stringCase={html5Attributes:{message:"message",case:"case"},validate:function(e,n,r){var i=n.val();if(""===i)return!0;var o=(r.case||"lower").toLowerCase();return{valid:"upper"===o?i===i.toUpperCase():i===i.toLowerCase(),message:r.message||("upper"===o?t.fn.bootstrapValidator.i18n.stringCase.upper:t.fn.bootstrapValidator.i18n.stringCase.default)}}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.stringLength=t.extend(t.fn.bootstrapValidator.i18n.stringLength||{},{default:"Please enter a value with valid length",less:"Please enter less than %s characters",more:"Please enter more than %s characters",between:"Please enter value between %s and %s characters long"}),t.fn.bootstrapValidator.validators.stringLength={html5Attributes:{message:"message",min:"min",max:"max",trim:"trim",utf8bytes:"utf8Bytes"},enableByHtml5:function(e){var n={},r=e.attr("maxlength"),i=e.attr("minlength");return r&&(n.max=parseInt(r,10)),i&&(n.min=parseInt(i,10)),!t.isEmptyObject(n)&&n},validate:function(e,n,r){var i=n.val();if((!0===r.trim||"true"===r.trim)&&(i=t.trim(i)),""===i)return!0;var o=t.isNumeric(r.min)?r.min:e.getDynamicOption(n,r.min),a=t.isNumeric(r.max)?r.max:e.getDynamicOption(n,r.max),s=r.utf8Bytes?function(t){for(var e=t.length,n=t.length-1;n>=0;n--){var r=t.charCodeAt(n);r>127&&2047>=r?e++:r>2047&&65535>=r&&(e+=2),r>=56320&&57343>=r&&n--}return e}(i):i.length,l=!0,d=r.message||t.fn.bootstrapValidator.i18n.stringLength.default;switch((o&&s<parseInt(o,10)||a&&s>parseInt(a,10))&&(l=!1),!0){case!!o&&!!a:d=t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.stringLength.between,[parseInt(o,10),parseInt(a,10)]);break;case!!o:d=t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.stringLength.more,parseInt(o,10));break;case!!a:d=t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.stringLength.less,parseInt(a,10))}return{valid:l,message:d}}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.uri=t.extend(t.fn.bootstrapValidator.i18n.uri||{},{default:"Please enter a valid URI"}),t.fn.bootstrapValidator.validators.uri={html5Attributes:{message:"message",allowlocal:"allowLocal",protocol:"protocol"},enableByHtml5:function(t){return"url"===t.attr("type")},validate:function(t,e,n){var r=e.val();if(""===r)return!0;var i=!0===n.allowLocal||"true"===n.allowLocal,o=(n.protocol||"http, https, ftp").split(",").join("|").replace(/\s/g,"");return new RegExp("^(?:(?:"+o+")://)(?:\\S+(?::\\S*)?@)?(?:"+(i?"":"(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})")+"(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))"+(i?"?":"")+")(?::\\d{2,5})?(?:/[^\\s]*)?$","i").test(r)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.uuid=t.extend(t.fn.bootstrapValidator.i18n.uuid||{},{default:"Please enter a valid UUID number",version:"Please enter a valid UUID version %s number"}),t.fn.bootstrapValidator.validators.uuid={html5Attributes:{message:"message",version:"version"},validate:function(e,n,r){var i=n.val();if(""===i)return!0;var o={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i},a=r.version?r.version+"":"all";return{valid:null===o[a]||o[a].test(i),message:r.version?t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.uuid.version,r.version):r.message||t.fn.bootstrapValidator.i18n.uuid.default}}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.vat=t.extend(t.fn.bootstrapValidator.i18n.vat||{},{default:"Please enter a valid VAT number",countryNotSupported:"The country code %s is not supported",country:"Please enter a valid VAT number in %s",countries:{AT:"Austria",BE:"Belgium",BG:"Bulgaria",BR:"Brazil",CH:"Switzerland",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",EE:"Estonia",ES:"Spain",FI:"Finland",FR:"France",GB:"United Kingdom",GR:"Greek",EL:"Greek",HU:"Hungary",HR:"Croatia",IE:"Ireland",IS:"Iceland",IT:"Italy",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",MT:"Malta",NL:"Netherlands",NO:"Norway",PL:"Poland",PT:"Portugal",RO:"Romania",RU:"Russia",RS:"Serbia",SE:"Sweden",SI:"Slovenia",SK:"Slovakia",VE:"Venezuela",ZA:"South Africa"}}),t.fn.bootstrapValidator.validators.vat={html5Attributes:{message:"message",country:"country"},COUNTRY_CODES:["AT","BE","BG","BR","CH","CY","CZ","DE","DK","EE","EL","ES","FI","FR","GB","GR","HR","HU","IE","IS","IT","LT","LU","LV","MT","NL","NO","PL","PT","RO","RU","RS","SE","SK","SI","VE","ZA"],validate:function(e,n,r){var i=n.val();if(""===i)return!0;var o=r.country;return o?("string"!=typeof o||-1===t.inArray(o.toUpperCase(),this.COUNTRY_CODES))&&(o=e.getDynamicOption(n,o)):o=i.substr(0,2),-1===t.inArray(o,this.COUNTRY_CODES)?{valid:!1,message:t.fn.bootstrapValidator.helpers.format(t.fn.bootstrapValidator.i18n.vat.countryNotSupported,o)}:!!this[["_",o.toLowerCase()].join("")](i)||{valid:!1,message:t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.vat.country,t.fn.bootstrapValidator.i18n.vat.countries[o.toUpperCase()])}},_at:function(t){if(/^ATU[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^U[0-9]{8}$/.test(t))return!1;t=t.substr(1);for(var e=0,n=[1,2,1,2,1,2,1],r=0,i=0;7>i;i++)(r=parseInt(t.charAt(i),10)*n[i])>9&&(r=Math.floor(r/10)+r%10),e+=r;return 10===(e=10-(e+4)%10)&&(e=0),e+""===t.substr(7,1)},_be:function(t){return/^BE[0]{0,1}[0-9]{9}$/.test(t)&&(t=t.substr(2)),!!/^[0]{0,1}[0-9]{9}$/.test(t)&&(9===t.length&&(t="0"+t),"0"!==t.substr(1,1)&&(parseInt(t.substr(0,8),10)+parseInt(t.substr(8,2),10))%97==0)},_bg:function(e){if(/^BG[0-9]{9,10}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{9,10}$/.test(e))return!1;var n=0,r=0;if(9===e.length){for(r=0;8>r;r++)n+=parseInt(e.charAt(r),10)*(r+1);if(10===(n%=11))for(n=0,r=0;8>r;r++)n+=parseInt(e.charAt(r),10)*(r+3);return(n%=10)+""===e.substr(8)}if(10===e.length){return function(e){var n=parseInt(e.substr(0,2),10)+1900,r=parseInt(e.substr(2,2),10),i=parseInt(e.substr(4,2),10);if(r>40?(n+=100,r-=40):r>20&&(n-=100,r-=20),!t.fn.bootstrapValidator.helpers.date(n,r,i))return!1;for(var o=0,a=[2,4,8,5,10,9,7,3,6],s=0;9>s;s++)o+=parseInt(e.charAt(s),10)*a[s];return(o=o%11%10)+""===e.substr(9,1)}(e)||function(t){for(var e=0,n=[21,19,17,13,11,9,7,3,1],r=0;9>r;r++)e+=parseInt(t.charAt(r),10)*n[r];return(e%=10)+""===t.substr(9,1)}(e)||function(t){for(var e=0,n=[4,3,2,7,6,5,4,3,2],r=0;9>r;r++)e+=parseInt(t.charAt(r),10)*n[r];return 10!=(e=11-e%11)&&(11===e&&(e=0),e+""===t.substr(9,1))}(e)}return!1},_br:function(t){if(""===t)return!0;var e=t.replace(/[^\d]+/g,"");if(""===e||14!==e.length)return!1;if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var n=e.length-2,r=e.substring(0,n),i=e.substring(n),o=0,a=n-7,s=n;s>=1;s--)o+=parseInt(r.charAt(n-s),10)*a--,2>a&&(a=9);var l=2>o%11?0:11-o%11;if(l!==parseInt(i.charAt(0),10))return!1;for(n+=1,r=e.substring(0,n),o=0,a=n-7,s=n;s>=1;s--)o+=parseInt(r.charAt(n-s),10)*a--,2>a&&(a=9);return(l=2>o%11?0:11-o%11)===parseInt(i.charAt(1),10)},_ch:function(t){if(/^CHE[0-9]{9}(MWST)?$/.test(t)&&(t=t.substr(2)),!/^E[0-9]{9}(MWST)?$/.test(t))return!1;t=t.substr(1);for(var e=0,n=[5,4,3,2,7,6,5,4],r=0;8>r;r++)e+=parseInt(t.charAt(r),10)*n[r];return 10!==(e=11-e%11)&&(11===e&&(e=0),e+""===t.substr(8,1))},_cy:function(t){if(/^CY[0-5|9]{1}[0-9]{7}[A-Z]{1}$/.test(t)&&(t=t.substr(2)),!/^[0-5|9]{1}[0-9]{7}[A-Z]{1}$/.test(t))return!1;if("12"===t.substr(0,2))return!1;for(var e=0,n={0:1,1:0,2:5,3:7,4:9,5:13,6:15,7:17,8:19,9:21},r=0;8>r;r++){var i=parseInt(t.charAt(r),10);r%2==0&&(i=n[i+""]),e+=i}return(e="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[e%26])+""===t.substr(8,1)},_cz:function(e){if(/^CZ[0-9]{8,10}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{8,10}$/.test(e))return!1;var n=0,r=0;if(8===e.length){if(e.charAt(0)+""=="9")return!1;for(n=0,r=0;7>r;r++)n+=parseInt(e.charAt(r),10)*(8-r);return 10===(n=11-n%11)&&(n=0),11===n&&(n=1),n+""===e.substr(7,1)}if(9===e.length&&e.charAt(0)+""=="6"){for(n=0,r=0;7>r;r++)n+=parseInt(e.charAt(r+1),10)*(8-r);return 10===(n=11-n%11)&&(n=0),11===n&&(n=1),(n=[8,7,6,5,4,3,2,1,0,9,10][n-1])+""===e.substr(8,1)}if(9===e.length||10===e.length){var i=1900+parseInt(e.substr(0,2),10),o=parseInt(e.substr(2,2),10)%50%20,a=parseInt(e.substr(4,2),10);if(9===e.length){if(i>=1980&&(i-=100),i>1953)return!1}else 1954>i&&(i+=100);if(!t.fn.bootstrapValidator.helpers.date(i,o,a))return!1;if(10===e.length){var s=parseInt(e.substr(0,9),10)%11;return 1985>i&&(s%=10),s+""===e.substr(9,1)}return!0}return!1},_de:function(e){return/^DE[0-9]{9}$/.test(e)&&(e=e.substr(2)),!!/^[0-9]{9}$/.test(e)&&t.fn.bootstrapValidator.helpers.mod11And10(e)},_dk:function(t){if(/^DK[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return!1;for(var e=0,n=[2,7,6,5,4,3,2,1],r=0;8>r;r++)e+=parseInt(t.charAt(r),10)*n[r];return e%11==0},_ee:function(t){if(/^EE[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return!1;for(var e=0,n=[3,7,1,3,7,1,3,7,1],r=0;9>r;r++)e+=parseInt(t.charAt(r),10)*n[r];return e%10==0},_es:function(t){if(/^ES[0-9A-Z][0-9]{7}[0-9A-Z]$/.test(t)&&(t=t.substr(2)),!/^[0-9A-Z][0-9]{7}[0-9A-Z]$/.test(t))return!1;var e=t.charAt(0);return/^[0-9]$/.test(e)?function(t){var e=parseInt(t.substr(0,8),10);return(e="TRWAGMYFPDXBNJZSQVHLCKE"[e%23])+""===t.substr(8,1)}(t):/^[XYZ]$/.test(e)?function(t){var e=["XYZ".indexOf(t.charAt(0)),t.substr(1)].join("");return(e="TRWAGMYFPDXBNJZSQVHLCKE"[(e=parseInt(e,10))%23])+""===t.substr(8,1)}(t):function(t){var e=t.charAt(0);if(-1!=="KLM".indexOf(e))return"TRWAGMYFPDXBNJZSQVHLCKE"[parseInt(t.substr(1,8),10)%23]+""===t.substr(8,1);if(-1!=="ABCDEFGHJNPQRSUVW".indexOf(e)){for(var n=0,r=[2,1,2,1,2,1,2],i=0,o=0;7>o;o++)(i=parseInt(t.charAt(o+1),10)*r[o])>9&&(i=Math.floor(i/10)+i%10),n+=i;return(n=10-n%10)+""===t.substr(8,1)||"JABCDEFGHI"[n]===t.substr(8,1)}return!1}(t)},_fi:function(t){if(/^FI[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return!1;for(var e=0,n=[7,9,10,5,8,4,2,1],r=0;8>r;r++)e+=parseInt(t.charAt(r),10)*n[r];return e%11==0},_fr:function(e){if(/^FR[0-9A-Z]{2}[0-9]{9}$/.test(e)&&(e=e.substr(2)),!/^[0-9A-Z]{2}[0-9]{9}$/.test(e))return!1;if(!t.fn.bootstrapValidator.helpers.luhn(e.substr(2)))return!1;if(/^[0-9]{2}$/.test(e.substr(0,2)))return e.substr(0,2)===parseInt(e.substr(2)+"12",10)%97+"";var n,r="0123456789ABCDEFGHJKLMNPQRSTUVWXYZ";return n=/^[0-9]{1}$/.test(e.charAt(0))?24*r.indexOf(e.charAt(0))+r.indexOf(e.charAt(1))-10:34*r.indexOf(e.charAt(0))+r.indexOf(e.charAt(1))-100,(parseInt(e.substr(2),10)+1+Math.floor(n/11))%11==n%11},_gb:function(t){if((/^GB[0-9]{9}$/.test(t)||/^GB[0-9]{12}$/.test(t)||/^GBGD[0-9]{3}$/.test(t)||/^GBHA[0-9]{3}$/.test(t)||/^GB(GD|HA)8888[0-9]{5}$/.test(t))&&(t=t.substr(2)),!(/^[0-9]{9}$/.test(t)||/^[0-9]{12}$/.test(t)||/^GD[0-9]{3}$/.test(t)||/^HA[0-9]{3}$/.test(t)||/^(GD|HA)8888[0-9]{5}$/.test(t)))return!1;var e=t.length;if(5===e){var n=t.substr(0,2),r=parseInt(t.substr(2),10);return"GD"===n&&500>r||"HA"===n&&r>=500}if(11===e&&("GD8888"===t.substr(0,6)||"HA8888"===t.substr(0,6)))return!("GD"===t.substr(0,2)&&parseInt(t.substr(6,3),10)>=500||"HA"===t.substr(0,2)&&parseInt(t.substr(6,3),10)<500)&&parseInt(t.substr(6,3),10)%97===parseInt(t.substr(9,2),10);if(9===e||12===e){for(var i=0,o=[8,7,6,5,4,3,2,10,1],a=0;9>a;a++)i+=parseInt(t.charAt(a),10)*o[a];return i%=97,parseInt(t.substr(0,3),10)>=100?0===i||42===i||55===i:0===i}return!0},_gr:function(t){if(/^(GR|EL)[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return!1;8===t.length&&(t="0"+t);for(var e=0,n=[256,128,64,32,16,8,4,2],r=0;8>r;r++)e+=parseInt(t.charAt(r),10)*n[r];return(e=e%11%10)+""===t.substr(8,1)},_el:function(t){return this._gr(t)},_hu:function(t){if(/^HU[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return!1;for(var e=0,n=[9,7,3,1,9,7,3,1],r=0;8>r;r++)e+=parseInt(t.charAt(r),10)*n[r];return e%10==0},_hr:function(e){return/^HR[0-9]{11}$/.test(e)&&(e=e.substr(2)),!!/^[0-9]{11}$/.test(e)&&t.fn.bootstrapValidator.helpers.mod11And10(e)},_ie:function(t){if(/^IE[0-9]{1}[0-9A-Z\*\+]{1}[0-9]{5}[A-Z]{1,2}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{1}[0-9A-Z\*\+]{1}[0-9]{5}[A-Z]{1,2}$/.test(t))return!1;var e=function(t){for(;t.length<7;)t="0"+t;for(var e="WABCDEFGHIJKLMNOPQRSTUV",n=0,r=0;7>r;r++)n+=parseInt(t.charAt(r),10)*(8-r);return e[(n+=9*e.indexOf(t.substr(7)))%23]};return/^[0-9]+$/.test(t.substr(0,7))?t.charAt(7)===e(t.substr(0,7)+t.substr(8)+""):-1==="ABCDEFGHIJKLMNOPQRSTUVWXYZ+*".indexOf(t.charAt(1))||t.charAt(7)===e(t.substr(2,5)+t.substr(0,1)+"")},_is:function(t){return/^IS[0-9]{5,6}$/.test(t)&&(t=t.substr(2)),/^[0-9]{5,6}$/.test(t)},_it:function(e){if(/^IT[0-9]{11}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{11}$/.test(e))return!1;if(0===parseInt(e.substr(0,7),10))return!1;var n=parseInt(e.substr(7,3),10);return!(1>n||n>201&&999!==n&&888!==n)&&t.fn.bootstrapValidator.helpers.luhn(e)},_lt:function(t){if(/^LT([0-9]{7}1[0-9]{1}|[0-9]{10}1[0-9]{1})$/.test(t)&&(t=t.substr(2)),!/^([0-9]{7}1[0-9]{1}|[0-9]{10}1[0-9]{1})$/.test(t))return!1;var e,n=t.length,r=0;for(e=0;n-1>e;e++)r+=parseInt(t.charAt(e),10)*(1+e%9);var i=r%11;if(10===i)for(r=0,e=0;n-1>e;e++)r+=parseInt(t.charAt(e),10)*(1+(e+2)%9);return(i=i%11%10)+""===t.charAt(n-1)},_lu:function(t){return/^LU[0-9]{8}$/.test(t)&&(t=t.substr(2)),!!/^[0-9]{8}$/.test(t)&&parseInt(t.substr(0,6),10)%89+""===t.substr(6,2)},_lv:function(e){if(/^LV[0-9]{11}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{11}$/.test(e))return!1;var n,r=parseInt(e.charAt(0),10),i=0,o=[],a=e.length;if(r>3){for(i=0,o=[9,1,4,8,3,10,2,5,7,6,1],n=0;a>n;n++)i+=parseInt(e.charAt(n),10)*o[n];return 3===(i%=11)}var s=parseInt(e.substr(0,2),10),l=parseInt(e.substr(2,2),10),d=parseInt(e.substr(4,2),10);if(d=d+1800+100*parseInt(e.charAt(6),10),!t.fn.bootstrapValidator.helpers.date(d,l,s))return!1;for(i=0,o=[10,5,8,4,2,1,6,3,7,9],n=0;a-1>n;n++)i+=parseInt(e.charAt(n),10)*o[n];return(i=(i+1)%11%10)+""===e.charAt(a-1)},_mt:function(t){if(/^MT[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return!1;for(var e=0,n=[3,4,6,7,8,9,10,1],r=0;8>r;r++)e+=parseInt(t.charAt(r),10)*n[r];return e%37==0},_nl:function(t){if(/^NL[0-9]{9}B[0-9]{2}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}B[0-9]{2}$/.test(t))return!1;for(var e=0,n=[9,8,7,6,5,4,3,2],r=0;8>r;r++)e+=parseInt(t.charAt(r),10)*n[r];return(e%=11)>9&&(e=0),e+""===t.substr(8,1)},_no:function(t){if(/^NO[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return!1;for(var e=0,n=[3,2,7,6,5,4,3,2],r=0;8>r;r++)e+=parseInt(t.charAt(r),10)*n[r];return 11===(e=11-e%11)&&(e=0),e+""===t.substr(8,1)},_pl:function(t){if(/^PL[0-9]{10}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{10}$/.test(t))return!1;for(var e=0,n=[6,5,7,2,3,4,5,6,7,-1],r=0;10>r;r++)e+=parseInt(t.charAt(r),10)*n[r];return e%11==0},_pt:function(t){if(/^PT[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return!1;for(var e=0,n=[9,8,7,6,5,4,3,2],r=0;8>r;r++)e+=parseInt(t.charAt(r),10)*n[r];return(e=11-e%11)>9&&(e=0),e+""===t.substr(8,1)},_ro:function(t){if(/^RO[1-9][0-9]{1,9}$/.test(t)&&(t=t.substr(2)),!/^[1-9][0-9]{1,9}$/.test(t))return!1;for(var e=t.length,n=[7,5,3,2,1,7,5,3,2].slice(10-e),r=0,i=0;e-1>i;i++)r+=parseInt(t.charAt(i),10)*n[i];return(r=10*r%11%10)+""===t.substr(e-1,1)},_ru:function(t){if(/^RU([0-9]{10}|[0-9]{12})$/.test(t)&&(t=t.substr(2)),!/^([0-9]{10}|[0-9]{12})$/.test(t))return!1;var e=0;if(10===t.length){var n=0,r=[2,4,10,3,5,9,4,6,8,0];for(e=0;10>e;e++)n+=parseInt(t.charAt(e),10)*r[e];return(n%=11)>9&&(n%=10),n+""===t.substr(9,1)}if(12===t.length){var i=0,o=[7,2,4,10,3,5,9,4,6,8,0],a=0,s=[3,7,2,4,10,3,5,9,4,6,8,0];for(e=0;11>e;e++)i+=parseInt(t.charAt(e),10)*o[e],a+=parseInt(t.charAt(e),10)*s[e];return(i%=11)>9&&(i%=10),(a%=11)>9&&(a%=10),i+""===t.substr(10,1)&&a+""===t.substr(11,1)}return!1},_rs:function(t){if(/^RS[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return!1;for(var e=10,n=0,r=0;8>r;r++)0===(n=(parseInt(t.charAt(r),10)+e)%10)&&(n=10),e=2*n%11;return(e+parseInt(t.substr(8,1),10))%10==1},_se:function(e){return/^SE[0-9]{10}01$/.test(e)&&(e=e.substr(2)),!!/^[0-9]{10}01$/.test(e)&&(e=e.substr(0,10),t.fn.bootstrapValidator.helpers.luhn(e))},_si:function(t){if(/^SI[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return!1;for(var e=0,n=[8,7,6,5,4,3,2],r=0;7>r;r++)e+=parseInt(t.charAt(r),10)*n[r];return 10===(e=11-e%11)&&(e=0),e+""===t.substr(7,1)},_sk:function(t){return/^SK[1-9][0-9][(2-4)|(6-9)][0-9]{7}$/.test(t)&&(t=t.substr(2)),!!/^[1-9][0-9][(2-4)|(6-9)][0-9]{7}$/.test(t)&&parseInt(t,10)%11==0},_ve:function(t){if(/^VE[VEJPG][0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[VEJPG][0-9]{9}$/.test(t))return!1;for(var e={V:4,E:8,J:12,P:16,G:20}[t.charAt(0)],n=[3,2,7,6,5,4,3,2],r=0;8>r;r++)e+=parseInt(t.charAt(r+1),10)*n[r];return(11===(e=11-e%11)||10===e)&&(e=0),e+""===t.substr(9,1)},_za:function(t){return/^ZA4[0-9]{9}$/.test(t)&&(t=t.substr(2)),/^4[0-9]{9}$/.test(t)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.vin=t.extend(t.fn.bootstrapValidator.i18n.vin||{},{default:"Please enter a valid VIN number"}),t.fn.bootstrapValidator.validators.vin={validate:function(t,e){var n=e.val();if(""===n)return!0;if(!/^[a-hj-npr-z0-9]{8}[0-9xX][a-hj-npr-z0-9]{8}$/i.test(n))return!1;for(var r={A:1,B:2,C:3,D:4,E:5,F:6,G:7,H:8,J:1,K:2,L:3,M:4,N:5,P:7,R:9,S:2,T:3,U:4,V:5,W:6,X:7,Y:8,Z:9,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,0:0},i=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],o=0,a=(n=n.toUpperCase()).length,s=0;a>s;s++)o+=r[n.charAt(s)+""]*i[s];var l=o%11;return 10===l&&(l="X"),l+""===n.charAt(8)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.i18n.zipCode=t.extend(t.fn.bootstrapValidator.i18n.zipCode||{},{default:"Please enter a valid postal code",countryNotSupported:"The country code %s is not supported",country:"Please enter a valid postal code in %s",countries:{AT:"Austria",BR:"Brazil",CA:"Canada",CH:"Switzerland",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",FR:"France",GB:"United Kingdom",IE:"Ireland",IT:"Italy",MA:"Morocco",NL:"Netherlands",PT:"Portugal",RO:"Romania",RU:"Russia",SE:"Sweden",SG:"Singapore",SK:"Slovakia",US:"USA"}}),t.fn.bootstrapValidator.validators.zipCode={html5Attributes:{message:"message",country:"country"},COUNTRY_CODES:["AT","BR","CA","CH","CZ","DE","DK","FR","GB","IE","IT","MA","NL","PT","RO","RU","SE","SG","SK","US"],validate:function(e,n,r){var i=n.val();if(""===i||!r.country)return!0;var o=r.country;if(("string"!=typeof o||-1===t.inArray(o,this.COUNTRY_CODES))&&(o=e.getDynamicOption(n,o)),!o||-1===t.inArray(o.toUpperCase(),this.COUNTRY_CODES))return{valid:!1,message:t.fn.bootstrapValidator.helpers.format(t.fn.bootstrapValidator.i18n.zipCode.countryNotSupported,o)};var a=!1;switch(o=o.toUpperCase()){case"AT":a=/^([1-9]{1})(\d{3})$/.test(i);break;case"BR":a=/^(\d{2})([\.]?)(\d{3})([\-]?)(\d{3})$/.test(i);break;case"CA":a=/^(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|W|X|Y|Z){1}\s?[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|W|X|Y|Z){1}[0-9]{1}$/i.test(i);break;case"CH":a=/^([1-9]{1})(\d{3})$/.test(i);break;case"CZ":a=/^(\d{3})([ ]?)(\d{2})$/.test(i);break;case"DE":a=/^(?!01000|99999)(0[1-9]\d{3}|[1-9]\d{4})$/.test(i);break;case"DK":a=/^(DK(-|\s)?)?\d{4}$/i.test(i);break;case"FR":a=/^[0-9]{5}$/i.test(i);break;case"GB":a=this._gb(i);break;case"IE":a=/^(D6W|[ACDEFHKNPRTVWXY]\d{2})\s[0-9ACDEFHKNPRTVWXY]{4}$/.test(i);break;case"IT":a=/^(I-|IT-)?\d{5}$/i.test(i);break;case"MA":a=/^[1-9][0-9]{4}$/i.test(i);break;case"NL":a=/^[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$/i.test(i);break;case"PT":a=/^[1-9]\d{3}-\d{3}$/.test(i);break;case"RO":a=/^(0[1-8]{1}|[1-9]{1}[0-5]{1})?[0-9]{4}$/i.test(i);break;case"RU":a=/^[0-9]{6}$/i.test(i);break;case"SE":a=/^(S-)?\d{3}\s?\d{2}$/i.test(i);break;case"SG":a=/^([0][1-9]|[1-6][0-9]|[7]([0-3]|[5-9])|[8][0-2])(\d{4})$/i.test(i);break;case"SK":a=/^(\d{3})([ ]?)(\d{2})$/.test(i);break;case"US":default:a=/^\d{4,5}([\-]?\d{4})?$/.test(i)}return{valid:a,message:t.fn.bootstrapValidator.helpers.format(r.message||t.fn.bootstrapValidator.i18n.zipCode.country,t.fn.bootstrapValidator.i18n.zipCode.countries[o])}},_gb:function(t){for(var e="[ABCDEFGHIJKLMNOPRSTUWYZ]",n="[ABCDEFGHKLMNOPQRSTUVWXY]",r="[ABDEFGHJLNPQRSTUWXYZ]",i=[new RegExp("^("+e+"{1}"+n+"?[0-9]{1,2})(\\s*)([0-9]{1}"+r+"{2})$","i"),new RegExp("^("+e+"{1}[0-9]{1}[ABCDEFGHJKPMNRSTUVWXY]{1})(\\s*)([0-9]{1}"+r+"{2})$","i"),new RegExp("^("+e+"{1}"+n+"{1}?[0-9]{1}[ABEHMNPRVWXY]{1})(\\s*)([0-9]{1}"+r+"{2})$","i"),new RegExp("^(BF1)(\\s*)([0-6]{1}[ABDEFGHJLNPQRST]{1}[ABDEFGHJLNPQRSTUWZYZ]{1})$","i"),/^(GIR)(\s*)(0AA)$/i,/^(BFPO)(\s*)([0-9]{1,4})$/i,/^(BFPO)(\s*)(c\/o\s*[0-9]{1,3})$/i,/^([A-Z]{4})(\s*)(1ZZ)$/i,/^(AI-2640)$/i],o=0;o<i.length;o++)if(i[o].test(t))return!0;return!1}}}(window.jQuery)},function(t,e){!function(t,e){"use strict";var n=function(t,e){this.settings=n.util.merge(t,n.defaults),this.editor=e,this.filenameTag="{filename}",this.lastValue=null};n.editors={},n.util={merge:function(){for(var t={},e=arguments.length-1;e>=0;e--){var n=arguments[e];for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}return t},appendInItsOwnLine:function(t,e){return(t+"\n\n[[D]]"+e).replace(/(\n{2,})\[\[D\]\]/,"\n\n").replace(/^(\n*)/,"")},insertTextAtCursor:function(e,n){var r,i=e.scrollTop,o=0,a=!1;e.selectionStart||"0"===e.selectionStart?a="ff":t.selection&&(a="ie"),"ie"===a?(e.focus(),(r=t.selection.createRange()).moveStart("character",-e.value.length),o=r.text.length):"ff"===a&&(o=e.selectionStart);var s=e.value.substring(0,o),l=e.value.substring(o,e.value.length);e.value=s+n+l,o+=n.length,"ie"===a?(e.focus(),(r=t.selection.createRange()).moveStart("character",-e.value.length),r.moveStart("character",o),r.moveEnd("character",0),r.select()):"ff"===a&&(e.selectionStart=o,e.selectionEnd=o,e.focus()),e.scrollTop=i}},n.defaults={uploadUrl:"upload_attachment.php",uploadMethod:"POST",uploadFieldName:"file",defaultExtension:"png",jsonFieldName:"filename",allowedTypes:["image/jpeg","image/png","image/jpg","image/gif"],progressText:"![Uploading file...]()",urlText:"",errorText:"Error uploading file",extraParams:{},extraHeaders:{},beforeFileUpload:function(){return!0},onFileReceived:function(){},onFileUploadResponse:function(){return!0},onFileUploadError:function(){return!0},onFileUploaded:function(){}},n.prototype.uploadFile=function(t){var e=this,n=new FormData,r=new XMLHttpRequest,i=this.settings,o=i.defaultExtension||i.defualtExtension;if("function"==typeof i.setupFormData&&i.setupFormData(n,t),t.name){var a=t.name.match(/\.(.+)$/);a&&(o=a[1])}var s="image-"+Date.now()+"."+o;if("function"==typeof i.remoteFilename&&(s=i.remoteFilename(t)),n.append(i.uploadFieldName,t,s),"object"==typeof i.extraParams)for(var l in i.extraParams)i.extraParams.hasOwnProperty(l)&&n.append(l,i.extraParams[l]);if(r.open("POST",i.uploadUrl),"object"==typeof i.extraHeaders)for(var d in i.extraHeaders)i.extraHeaders.hasOwnProperty(d)&&r.setRequestHeader(d,i.extraHeaders[d]);return r.onload=function(){200===r.status||201===r.status?e.onFileUploadResponse(r):e.onFileUploadError(r)},!1!==i.beforeFileUpload(r)&&r.send(n),r},n.prototype.isFileAllowed=function(t){return"string"!==t.kind&&(0===this.settings.allowedTypes.indexOf("*")||this.settings.allowedTypes.indexOf(t.type)>=0)},n.prototype.onFileUploadResponse=function(t){if(!1!==this.settings.onFileUploadResponse.call(this,t)){var e=JSON.parse(t.responseText),n=e[this.settings.jsonFieldName];if(e&&n){var r;r="function"==typeof this.settings.urlText?this.settings.urlText.call(this,n,e):this.settings.urlText.replace(this.filenameTag,n);var i=this.editor.getValue().replace(this.lastValue,r);this.editor.setValue(i),this.settings.onFileUploaded.call(this,n)}}},n.prototype.onFileUploadError=function(t){if(!1!==this.settings.onFileUploadError.call(this,t)){var e=this.editor.getValue().replace(this.lastValue,"");this.editor.setValue(e)}},n.prototype.onFileInserted=function(t){!1!==this.settings.onFileReceived.call(this,t)&&(this.lastValue=this.settings.progressText,this.editor.insertValue(this.lastValue))},n.prototype.onPaste=function(t){var e,n=!1,r=t.clipboardData;if("object"==typeof r){e=r.items||r.files||[];for(var i=0;i<e.length;i++){var o=e[i];this.isFileAllowed(o)&&(n=!0,this.onFileInserted(o.getAsFile()),this.uploadFile(o.getAsFile()))}}return n&&t.preventDefault(),n},n.prototype.onDrop=function(t){for(var e=!1,n=0;n<t.dataTransfer.files.length;n++){var r=t.dataTransfer.files[n];this.isFileAllowed(r)&&(e=!0,this.onFileInserted(r),this.uploadFile(r))}return e},e.inlineAttachment=n}(document,window)},function(t,e){!function(){"use strict";var t=function(t){if(!t.getWrapperElement)throw"Invalid CodeMirror object given";this.codeMirror=t};t.prototype.getValue=function(){return this.codeMirror.getValue()},t.prototype.insertValue=function(t){this.codeMirror.replaceSelection(t)},t.prototype.setValue=function(t){var e=this.codeMirror.getCursor();this.codeMirror.setValue(t),this.codeMirror.setCursor(e)},t.attach=function(e,n){n=n||{};var r=new t(e),i=new inlineAttachment(n,r);e.getWrapperElement().addEventListener("paste",function(t){i.onPaste(t)},!1),e.setOption("onDragEvent",function(t,e){if("drop"===e.type)return e.stopPropagation(),e.preventDefault(),i.onDrop(e)})};var e=function(e){t.call(this,e)};e.attach=function(e,n){n=n||{};var r=new t(e),i=new inlineAttachment(n,r);e.getWrapperElement().addEventListener("paste",function(t){i.onPaste(t)},!1),e.on("drop",function(t,e){return!!i.onDrop(e)&&(e.stopPropagation(),e.preventDefault(),!0)})},inlineAttachment.editors.codemirror4=e}()},function(t,e){window.Moell={};var n=$("meta[name='csrf-token']").attr("content");!function(t){t.ajax={delete:function(t){layer.confirm("你确认删除吗?",{btn:["删除","取消"]},function(){$.post(t,{_method:"DELETE",_token:n},function(t){var e;0==t.status?(layer.msg("删除成功",{time:5e3,icon:6}),window.location.href=window.location.href):(e=t.msg?t.msg:"删除失败",layer.msg(e,{time:5e3,icon:5}))})},function(){layer.close()})},postForm:function(t,e,r){e._method=r,e._token=n,$.post(t,e,function(t){var e;0==t.status?(e=t.msg?t.msg:"操作成功",layer.msg(e,{time:5e3,icon:6}),window.location.href=window.location.href):(e=t.msg?t.msg:"操作失败",layer.msg(e,{time:5e3,icon:5}))})}}}(Moell)},function(t,e){}]);
|