if(function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(k,t){"use strict";var e=[],x=k.document,i=Object.getPrototypeOf,a=e.slice,m=e.concat,l=e.push,s=e.indexOf,n={},o=n.toString,g=n.hasOwnProperty,r=g.toString,c=r.call(Object),v={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},w=function(t){return null!=t&&t===t.window},h={type:!0,src:!0,noModule:!0};function b(t,e,n){var i,s=(e=e||x).createElement("script");if(s.text=t,n)for(i in h)n[i]&&(s[i]=n[i]);e.head.appendChild(s).parentNode.removeChild(s)}function D(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?n[o.call(t)]||"object":typeof t}var d="3.3.1",C=function(t,e){return new C.fn.init(t,e)},u=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function p(t){var e=!!t&&"length"in t&&t.length,n=D(t);return!y(t)&&!w(t)&&("array"===n||0===e||"number"==typeof e&&0+~]|"+L+")"+L+"*"),q=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(U),z=new RegExp("^"+I+"$"),B={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),tt=function(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|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},it=function(){_()},st=yt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{O.apply(e=Y.call(y.childNodes),y.childNodes),e[y.childNodes.length].nodeType}catch(t){O={apply:e.length?function(t,e){$.apply(t,Y.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function ot(t,e,n,i){var s,o,r,a,l,c,h,d=e&&e.ownerDocument,u=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==u&&9!==u&&11!==u)return n;if(!i&&((e?e.ownerDocument||e:y)!==k&&_(e),e=e||k,x)){if(11!==u&&(l=X.exec(t)))if(s=l[1]){if(9===u){if(!(r=e.getElementById(s)))return n;if(r.id===s)return n.push(r),n}else if(d&&(r=d.getElementById(s))&&v(e,r)&&r.id===s)return n.push(r),n}else{if(l[2])return O.apply(n,e.getElementsByTagName(t)),n;if((s=l[3])&&p.getElementsByClassName&&e.getElementsByClassName)return O.apply(n,e.getElementsByClassName(s)),n}if(p.qsa&&!S[t+" "]&&(!g||!g.test(t))){if(1!==u)d=e,h=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(et,nt):e.setAttribute("id",a=C),o=(c=f(t)).length;o--;)c[o]="#"+a+" "+vt(c[o]);h=c.join(","),d=K.test(t)&&mt(e.parentNode)||e}if(h)try{return O.apply(n,d.querySelectorAll(h)),n}catch(t){}finally{a===C&&e.removeAttribute("id")}}}return m(t.replace(H,"$1"),e,n,i)}function rt(){var i=[];return function t(e,n){return i.push(e+" ")>b.cacheLength&&delete t[i.shift()],t[e+" "]=n}}function at(t){return t[C]=!0,t}function lt(t){var e=k.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ct(t,e){for(var n=t.split("|"),i=n.length;i--;)b.attrHandle[n[i]]=e}function ht(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function dt(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ut(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function pt(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&st(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ft(r){return at(function(o){return o=+o,at(function(t,e){for(var n,i=r([],t.length,o),s=i.length;s--;)t[n=i[s]]&&(t[n]=!(e[n]=t[n]))})})}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in p=ot.support={},s=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},_=ot.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:y;return i!==k&&9===i.nodeType&&i.documentElement&&(r=(k=i).documentElement,x=!s(k),y!==k&&(n=k.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",it,!1):n.attachEvent&&n.attachEvent("onunload",it)),p.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),p.getElementsByTagName=lt(function(t){return t.appendChild(k.createComment("")),!t.getElementsByTagName("*").length}),p.getElementsByClassName=Z.test(k.getElementsByClassName),p.getById=lt(function(t){return r.appendChild(t).id=C,!k.getElementsByName||!k.getElementsByName(C).length}),p.getById?(b.filter.ID=function(t){var e=t.replace(J,tt);return function(t){return t.getAttribute("id")===e}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&x){var n=e.getElementById(t);return n?[n]:[]}}):(b.filter.ID=function(t){var n=t.replace(J,tt);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&x){var n,i,s,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(s=e.getElementsByName(t),i=0;o=s[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),b.find.TAG=p.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):p.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],s=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;n=o[s++];)1===n.nodeType&&i.push(n);return i},b.find.CLASS=p.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&x)return e.getElementsByClassName(t)},a=[],g=[],(p.qsa=Z.test(k.querySelectorAll))&&(lt(function(t){r.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+L+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+L+"*(?:value|"+N+")"),t.querySelectorAll("[id~="+C+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+C+"+*").length||g.push(".#.+[+~]")}),lt(function(t){t.innerHTML="";var e=k.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+L+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),r.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(p.matchesSelector=Z.test(h=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.msMatchesSelector))&<(function(t){p.disconnectedMatch=h.call(t,"*"),h.call(t,"[s!='']:x"),a.push("!=",U)}),g=g.length&&new RegExp(g.join("|")),a=a.length&&new RegExp(a.join("|")),e=Z.test(r.compareDocumentPosition),v=e||Z.test(r.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},M=e?function(t,e){if(t===e)return c=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!p.sortDetached&&e.compareDocumentPosition(t)===n?t===k||t.ownerDocument===y&&v(y,t)?-1:e===k||e.ownerDocument===y&&v(y,e)?1:l?P(l,t)-P(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return c=!0,0;var n,i=0,s=t.parentNode,o=e.parentNode,r=[t],a=[e];if(!s||!o)return t===k?-1:e===k?1:s?-1:o?1:l?P(l,t)-P(l,e):0;if(s===o)return ht(t,e);for(n=t;n=n.parentNode;)r.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;r[i]===a[i];)i++;return i?ht(r[i],a[i]):r[i]===y?-1:a[i]===y?1:0}),k},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==k&&_(t),e=e.replace(q,"='$1']"),p.matchesSelector&&x&&!S[e+" "]&&(!a||!a.test(e))&&(!g||!g.test(e)))try{var n=h.call(t,e);if(n||p.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0":{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 B.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&V.test(n)&&(e=f(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=u[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&u(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(n,i,s){return function(t){var e=ot.attr(t,n);return null==e?"!="===i:!i||(e+="","="===i?e===s:"!="===i?e!==s:"^="===i?s&&0===e.indexOf(s):"*="===i?s&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(t,n,i){return y(n)?C.grep(t,function(t,e){return!!n.call(t,e,t)!==i}):n.nodeType?C.grep(t,function(t){return t===n!==i}):"string"!=typeof n?C.grep(t,function(t){return-1)[^>]*|#([\w-]+))$/;(C.fn.init=function(t,e,n){var i,s;if(!t)return this;if(n=n||$,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(C):C.makeArray(t,this);if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:O.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:x,!0)),E.test(i[1])&&C.isPlainObject(e))for(i in e)y(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(s=x.getElementById(i[2]))&&(this[0]=s,this.length=1),this}).prototype=C.fn,$=C(x);var Y=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function N(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.fn.extend({has:function(t){var e=C(t,this),n=e.length;return this.filter(function(){for(var t=0;t\x20\t\r\n\f]+)/i,dt=/^$|^module$|\/(?:java|ecma)script/i,ut={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function pt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&M(t,e)?C.merge([t],n):n}function ft(t,e){for(var n=0,i=t.length;nx",v.noCloneChecked=!!mt.cloneNode(!0).lastChild.defaultValue;var wt=x.documentElement,bt=/^key/,Dt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_t=/^([^.]*)(?:\.(.+)|)/;function kt(){return!0}function xt(){return!1}function Ct(){try{return x.activeElement}catch(t){}}function Tt(t,e,n,i,s,o){var r,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Tt(t,a,n,i,e[a],o);return t}if(null==i&&null==s?(s=n,i=n=void 0):null==s&&("string"==typeof n?(s=i,i=void 0):(s=i,i=n,n=void 0)),!1===s)s=xt;else if(!s)return t;return 1===o&&(r=s,(s=function(t){return C().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=C.guid++)),t.each(function(){C.event.add(this,e,s,i,n)})}C.event={global:{},add:function(e,t,n,i,s){var o,r,a,l,c,h,d,u,p,f,m,g=Z.get(e);if(g)for(n.handler&&(n=(o=n).handler,s=o.selector),s&&C.find.matchesSelector(wt,s),n.guid||(n.guid=C.guid++),(l=g.events)||(l=g.events={}),(r=g.handle)||(r=g.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(L)||[""]).length;c--;)p=m=(a=_t.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=C.event.special[p]||{},p=(s?d.delegateType:d.bindType)||p,d=C.event.special[p]||{},h=C.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:s,needsContext:s&&C.expr.match.needsContext.test(s),namespace:f.join(".")},o),(u=l[p])||((u=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,f,r)||e.addEventListener&&e.addEventListener(p,r)),d.add&&(d.add.call(e,h),h.handler.guid||(h.handler.guid=n.guid)),s?u.splice(u.delegateCount++,0,h):u.push(h),C.event.global[p]=!0)},remove:function(t,e,n,i,s){var o,r,a,l,c,h,d,u,p,f,m,g=Z.hasData(t)&&Z.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(L)||[""]).length;c--;)if(p=m=(a=_t.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=C.event.special[p]||{},u=l[p=(i?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=u.length;o--;)h=u[o],!s&&m!==h.origType||n&&n.guid!==h.guid||a&&!a.test(h.namespace)||i&&i!==h.selector&&("**"!==i||!h.selector)||(u.splice(o,1),h.selector&&u.delegateCount--,d.remove&&d.remove.call(t,h));r&&!u.length&&(d.teardown&&!1!==d.teardown.call(t,f,g.handle)||C.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)C.event.remove(t,p+e[c],n,i,!0);C.isEmptyObject(l)&&Z.remove(t,"handle events")}},dispatch:function(t){var e,n,i,s,o,r,a=C.event.fix(t),l=new Array(arguments.length),c=(Z.get(this,"events")||{})[a.type]||[],h=C.event.special[a.type]||{};for(l[0]=a,e=1;e\x20\t\r\n\f]*)[^>]*)\/>/gi,Mt=/\s*$/g;function $t(t,e){return M(t,"table")&&M(11!==e.nodeType?e:e.firstChild,"tr")&&C(t).children("tbody")[0]||t}function Ot(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Yt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Pt(t,e){var n,i,s,o,r,a,l,c;if(1===e.nodeType){if(Z.hasData(t)&&(o=Z.access(t),r=Z.set(e,o),c=o.events))for(s in delete r.handle,r.events={},c)for(n=0,i=c[s].length;n")},clone:function(t,e,n){var i,s,o,r,a,l,c,h=t.cloneNode(!0),d=C.contains(t.ownerDocument,t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||C.isXMLDoc(t)))for(r=pt(h),i=0,s=(o=pt(t)).length;i").prop({charset:n.scriptCharset,src:n.url}).on("load error",s=function(t){i.remove(),s=null,t&&e("error"===t.type?404:200,t.type)}),x.head.appendChild(i[0])},abort:function(){s&&s()}}});var Fe,qe=[],Ve=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=qe.pop()||C.expando+"_"+De++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",function(t,e,n){var i,s,o,r=!1!==t.jsonp&&(Ve.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ve.test(t.data)&&"data");if(r||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,r?t[r]=t[r].replace(Ve,"$1"+i):!1!==t.jsonp&&(t.url+=(_e.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||C.error(i+" was not called"),o[0]},t.dataTypes[0]="json",s=k[i],k[i]=function(){o=arguments},n.always(function(){void 0===s?C(k).removeProp(i):k[i]=s,t[i]&&(t.jsonpCallback=e.jsonpCallback,qe.push(i)),o&&y(s)&&s(o[0]),o=s=void 0}),"script"}),v.createHTMLDocument=((Fe=x.implementation.createHTMLDocument("").body).innerHTML="
",2===Fe.childNodes.length),C.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(v.createHTMLDocument?((i=(e=x.implementation.createHTMLDocument("")).createElement("base")).href=x.location.href,e.head.appendChild(i)):e=x),o=!n&&[],(s=E.exec(t))?[e.createElement(s[1])]:(s=yt([t],e,o),o&&o.length&&C(o).remove(),C.merge([],s.childNodes)));var i,s,o},C.fn.load=function(t,e,n){var i,s,o,r=this,a=t.indexOf(" ");return-1").append(C.parseHTML(t)).find(i):t)}).always(n&&function(t,e){r.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){C.fn[e]=function(t){return this.on(e,t)}}),C.expr.pseudos.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(t,e,n){var i,s,o,r,a,l,c=C.css(t,"position"),h=C(t),d={};"static"===c&&(t.style.position="relative"),a=h.offset(),o=C.css(t,"top"),l=C.css(t,"left"),s=("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(r=(i=h.position()).top,i.left):(r=parseFloat(o)||0,parseFloat(l)||0),y(e)&&(e=e.call(t,n,C.extend({},a))),null!=e.top&&(d.top=e.top-a.top+r),null!=e.left&&(d.left=e.left-a.left+s),"using"in e?e.using.call(t,d):h.css(d)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],s={top:0,left:0};if("fixed"===C.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===C.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((s=C(t).offset()).top+=C.css(t,"borderTopWidth",!0),s.left+=C.css(t,"borderLeftWidth",!0))}return{top:e.top-s.top-C.css(i,"marginTop",!0),left:e.left-s.left-C.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===C.css(t,"position");)t=t.offsetParent;return t||wt})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,s){var o="pageYOffset"===s;C.fn[e]=function(t){return F(this,function(t,e,n){var i;if(w(t)?i=t:9===t.nodeType&&(i=t.defaultView),void 0===n)return i?i[s]:t[e];i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):t[e]=n},e,t,arguments.length)}}),C.each(["top","left"],function(t,n){C.cssHooks[n]=Ht(v.pixelPosition,function(t,e){if(e)return e=Rt(t,n),It.test(e)?C(t).position()[n]+"px":e})}),C.each({Height:"height",Width:"width"},function(r,a){C.each({padding:"inner"+r,content:a,"":"outer"+r},function(i,o){C.fn[o]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),s=i||(!0===t||!0===e?"margin":"border");return F(this,function(t,e,n){var i;return w(t)?0===o.indexOf("outer")?t["inner"+r]:t.document.documentElement["client"+r]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+r],i["scroll"+r],t.body["offset"+r],i["offset"+r],i["client"+r])):void 0===n?C.css(t,e,s):C.style(t,e,n,s)},a,n?t:void 0,n)}})}),C.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,n){C.fn[n]=function(t,e){return 0this.$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(ndocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},o.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},o.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
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:t},g.prototype.init=function(t,e,n){if(this.enabled=!0,this.type=t,this.$element=m(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&m(document).find(m.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(" "),s=i.length;s--;){var o=i[s];if("click"==o)this.$element.on("click."+this.type,this.options.selector,m.proxy(this.toggle,this));else if("manual"!=o){var r="hover"==o?"mouseenter":"focusin",a="hover"==o?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,m.proxy(this.enter,this)),this.$element.on(a+"."+this.type,this.options.selector,m.proxy(this.leave,this))}}this.options.selector?this._options=m.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},g.prototype.getDefaults=function(){return g.DEFAULTS},g.prototype.getOptions=function(t){var e=this.$element.data();for(var n in e)e.hasOwnProperty(n)&&-1!==m.inArray(n,i)&&delete e[n];return(t=m.extend({},this.getDefaults(),e,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=s(t.template,t.whiteList,t.sanitizeFn)),t},g.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&m.each(this._options,function(t,e){i[t]!=e&&(n[t]=e)}),n},g.prototype.enter=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},g.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},g.prototype.leave=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},g.prototype.show=function(){var t=m.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=m.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var n=this,i=this.tip(),s=this.getUID(this.type);this.setContent(),i.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&i.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,r=/\s?auto?\s?/i,a=r.test(o);a&&(o=o.replace(r,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?i.appendTo(m(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),c=i[0].offsetWidth,h=i[0].offsetHeight;if(a){var d=o,u=this.getPosition(this.$viewport);o="bottom"==o&&l.bottom+h>u.bottom?"top":"top"==o&&l.top-hu.width?"left":"left"==o&&l.left-cr.top+r.height&&(s.top=r.top+r.height-l)}else{var c=e.left-o,h=e.left+o+n;cr.right&&(s.left=r.left+r.width-h)}return s},g.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)},g.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},g.prototype.tip=function(){if(!this.$tip&&(this.$tip=m(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},g.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},g.prototype.enable=function(){this.enabled=!0},g.prototype.disable=function(){this.enabled=!1},g.prototype.toggleEnabled=function(){this.enabled=!this.enabled},g.prototype.toggle=function(t){var e=this;t&&((e=m(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},g.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})},g.prototype.sanitizeHtml=function(t){return s(t,this.options.whiteList,this.options.sanitizeFn)};var e=m.fn.tooltip;m.fn.tooltip=function(i){return this.each(function(){var t=m(this),e=t.data("bs.tooltip"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.tooltip",e=new g(this,n)),"string"==typeof i&&e[i]())})},m.fn.tooltip.Constructor=g,m.fn.tooltip.noConflict=function(){return m.fn.tooltip=e,this}}(jQuery),function(s){"use strict";var o=function(t,e){this.init("popover",t,e)};if(!s.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.4.1",o.DEFAULTS=s.extend({},s.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),((o.prototype=s.extend({},s.fn.tooltip.Constructor.prototype)).constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();if(this.options.html){var i=typeof n;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===i&&(n=this.sanitizeHtml(n))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===i?"html":"append"](n)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(n);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.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)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=s.fn.popover;s.fn.popover=function(i){return this.each(function(){var t=s(this),e=t.data("bs.popover"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.popover",e=new o(this,n)),"string"==typeof i&&e[i]())})},s.fn.popover.Constructor=o,s.fn.popover.noConflict=function(){return s.fn.popover=t,this}}(jQuery),function(o){"use strict";function s(t,e){this.$body=o(document.body),this.$scrollElement=o(t).is(document.body)?o(window):o(t),this.options=o.extend({},s.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o.proxy(this.process,this)),this.refresh(),this.process()}function e(i){return this.each(function(){var t=o(this),e=t.data("bs.scrollspy"),n="object"==typeof i&&i;e||t.data("bs.scrollspy",e=new s(this,n)),"string"==typeof i&&e[i]()})}s.VERSION="3.4.1",s.DEFAULTS={offset:10},s.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},s.prototype.refresh=function(){var t=this,i="offset",s=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),o.isWindow(this.$scrollElement[0])||(i="position",s=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=o(this),e=t.data("target")||t.attr("href"),n=/^#./.test(e)&&o(e);return n&&n.length&&n.is(":visible")&&[[n[i]().top+s,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},s.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),s=this.offsets,o=this.targets,r=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=e)return r!=(t=o[o.length-1])&&this.activate(t);if(r&&e=s[t]&&(void 0===s[t+1]||e .active"),s=n&&a.support.transition&&(i.length&&i.hasClass("fade")||!!e.find("> .fade").length);function o(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}i.length&&s?i.one("bsTransitionEnd",o).emulateTransitionEnd(r.TRANSITION_DURATION):o(),i.removeClass("in")};var t=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=r,a.fn.tab.noConflict=function(){return a.fn.tab=t,this};var n=function(t){t.preventDefault(),e.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(l){"use strict";var c=function(t,e){this.options=l.extend({},c.DEFAULTS,e);var n=this.options.target===c.DEFAULTS.target?l(this.options.target):l(document).find(this.options.target);this.$target=n.on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(i){return this.each(function(){var t=l(this),e=t.data("bs.affix"),n="object"==typeof i&&i;e||t.data("bs.affix",e=new c(this,n)),"string"==typeof i&&e[i]()})}c.VERSION="3.4.1",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(t,e,n,i){var s=this.$target.scrollTop(),o=this.$element.offset(),r=this.$target.height();if(null!=n&&"top"==this.affixed)return s
',onLoadStart:function(){},onLoadDone:function(t){return t}},t='[data-widget="box-refresh"]',a=function(t,e){if(this.element=t,this.options=e,this.$overlay=s(e.overlayTemplate),""===e.source)throw new Error("Source url was not defined. Please specify a url in your BoxRefresh source option.");this._setUpListeners(),this.load()};function e(i){return this.each(function(){var t=s(this),e=t.data(o);if(!e){var n=s.extend({},r,t.data(),"object"==typeof i&&i);t.data(o,e=new a(t,n))}if("string"==typeof e){if(void 0===e[i])throw new Error("No method named "+i);e[i]()}})}a.prototype.load=function(){this._addOverlay(),this.options.onLoadStart.call(s(this)),s.get(this.options.source,this.options.params,function(t){this.options.loadInContent&&s(this.element).find(this.options.content).html(t),this.options.onLoadDone.call(s(this),t),this._removeOverlay()}.bind(this),""!==this.options.responseType&&this.options.responseType)},a.prototype._setUpListeners=function(){s(this.element).on("click",this.options.trigger,function(t){t&&t.preventDefault(),this.load()}.bind(this))},a.prototype._addOverlay=function(){s(this.element).append(this.$overlay)},a.prototype._removeOverlay=function(){s(this.$overlay).remove()};var n=s.fn.boxRefresh;s.fn.boxRefresh=e,s.fn.boxRefresh.Constructor=a,s.fn.boxRefresh.noConflict=function(){return s.fn.boxRefresh=n,this},s(window).on("load",function(){s(t).each(function(){e.call(s(this))})})}(jQuery),function(s){"use strict";var o="lte.boxwidget",r={animationSpeed:500,collapseTrigger:'[data-widget="collapse"]',removeTrigger:'[data-widget="remove"]',collapseIcon:"fa-minus",expandIcon:"fa-plus",removeIcon:"fa-times"},t=".box",e=".collapsed-box",a=".box-header",l=".box-body",c=".box-footer",h=".box-tools",d="collapsed-box",i="collapsing.boxwidget",u="collapsed.boxwidget",p="expanding.boxwidget",f="expanded.boxwidget",n="removing.boxwidget",m="removed.boxwidget",g=function(t,e){this.element=t,this.options=e,this._setUpListeners()};function v(i){return this.each(function(){var t=s(this),e=t.data(o);if(!e){var n=s.extend({},r,t.data(),"object"==typeof i&&i);t.data(o,e=new g(t,n))}if("string"==typeof i){if(void 0===e[i])throw new Error("No method named "+i);e[i]()}})}g.prototype.toggle=function(){!s(this.element).is(e)?this.collapse():this.expand()},g.prototype.expand=function(){var t=s.Event(f),e=s.Event(p),n=this.options.collapseIcon,i=this.options.expandIcon;s(this.element).removeClass(d),s(this.element).children(a+", "+l+", "+c).children(h).find("."+i).removeClass(i).addClass(n),s(this.element).children(l+", "+c).slideDown(this.options.animationSpeed,function(){s(this.element).trigger(t)}.bind(this)).trigger(e)},g.prototype.collapse=function(){var t=s.Event(u),e=(s.Event(i),this.options.collapseIcon),n=this.options.expandIcon;s(this.element).children(a+", "+l+", "+c).children(h).find("."+e).removeClass(e).addClass(n),s(this.element).children(l+", "+c).slideUp(this.options.animationSpeed,function(){s(this.element).addClass(d),s(this.element).trigger(t)}.bind(this)).trigger(expandingEvent)},g.prototype.remove=function(){var t=s.Event(m),e=s.Event(n);s(this.element).slideUp(this.options.animationSpeed,function(){s(this.element).trigger(t),s(this.element).remove()}.bind(this)).trigger(e)},g.prototype._setUpListeners=function(){var e=this;s(this.element).on("click",this.options.collapseTrigger,function(t){return t&&t.preventDefault(),e.toggle(s(this)),!1}),s(this.element).on("click",this.options.removeTrigger,function(t){return t&&t.preventDefault(),e.remove(s(this)),!1})};var y=s.fn.boxWidget;s.fn.boxWidget=v,s.fn.boxWidget.Constructor=g,s.fn.boxWidget.noConflict=function(){return s.fn.boxWidget=y,this},s(window).on("load",function(){s(t).each(function(){v.call(s(this))})})}(jQuery),function(s){"use strict";var o="lte.controlsidebar",r={slide:!0},e=".control-sidebar",t='[data-toggle="control-sidebar"]',n=".control-sidebar-open",i=".control-sidebar-bg",a=".wrapper",l=".layout-boxed",c="control-sidebar-open",h="collapsed.controlsidebar",d="expanded.controlsidebar",u=function(t,e){this.element=t,this.options=e,this.hasBindedResize=!1,this.init()};function p(i){return this.each(function(){var t=s(this),e=t.data(o);if(!e){var n=s.extend({},r,t.data(),"object"==typeof i&&i);t.data(o,e=new u(t,n))}"string"==typeof i&&e.toggle()})}u.prototype.init=function(){s(this.element).is(t)||s(this).on("click",this.toggle),this.fix(),s(window).resize(function(){this.fix()}.bind(this))},u.prototype.toggle=function(t){t&&t.preventDefault(),this.fix(),s(e).is(n)||s("body").is(n)?this.collapse():this.expand()},u.prototype.expand=function(){this.options.slide?s(e).addClass(c):s("body").addClass(c),s(this.element).trigger(s.Event(d))},u.prototype.collapse=function(){s("body, "+e).removeClass(c),s(this.element).trigger(s.Event(h))},u.prototype.fix=function(){s("body").is(l)&&this._fixForBoxed(s(i))},u.prototype._fixForBoxed=function(t){t.css({position:"absolute",height:s(a).height()})};var f=s.fn.controlSidebar;s.fn.controlSidebar=p,s.fn.controlSidebar.Constructor=u,s.fn.controlSidebar.noConflict=function(){return s.fn.controlSidebar=f,this},s(document).on("click",t,function(t){t&&t.preventDefault(),p.call(s(this),"toggle")})}(jQuery),function(i){"use strict";var s="lte.directchat",t='[data-widget="chat-pane-toggle"]',e=".direct-chat",n="direct-chat-contacts-open",o=function(t){this.element=t};function r(n){return this.each(function(){var t=i(this),e=t.data(s);e||t.data(s,e=new o(t)),"string"==typeof n&&e.toggle(t)})}o.prototype.toggle=function(t){t.parents(e).first().toggleClass(n)};var a=i.fn.directChat;i.fn.directChat=r,i.fn.directChat.Constructor=o,i.fn.directChat.noConflict=function(){return i.fn.directChat=a,this},i(document).on("click",t,function(t){t&&t.preventDefault(),r.call(i(this),"toggle")})}(jQuery),function(a){"use strict";var s="lte.layout",o={slimscroll:!0,resetHeight:!0},l=".wrapper",c=".content-wrapper",h=".layout-boxed",d=".main-footer",u=".main-header",p=".sidebar",f=".control-sidebar",t=".sidebar-menu",e=".main-header .logo",m="fixed",n="hold-transition",r=function(t){this.options=t,this.bindedResize=!1,this.activate()};function i(i){return this.each(function(){var t=a(this),e=t.data(s);if(!e){var n=a.extend({},o,t.data(),"object"==typeof i&&i);t.data(s,e=new r(n))}if("string"==typeof i){if(void 0===e[i])throw new Error("No method named "+i);e[i]()}})}r.prototype.activate=function(){this.fix(),this.fixSidebar(),a("body").removeClass(n),this.options.resetHeight&&a("body, html, "+l).css({height:"auto","min-height":"100%"}),this.bindedResize||(a(window).resize(function(){this.fix(),this.fixSidebar(),a(e+", "+p).one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){this.fix(),this.fixSidebar()}.bind(this))}.bind(this)),this.bindedResize=!0),a(t).on("expanded.tree",function(){this.fix(),this.fixSidebar()}.bind(this)),a(t).on("collapsed.tree",function(){this.fix(),this.fixSidebar()}.bind(this))},r.prototype.fix=function(){a(h+" > "+l).css("overflow","hidden");var t=a(d).outerHeight()||0,e=a(u).outerHeight()||0,n=e+t,i=a(window).height(),s=a(p).height()||0;if(a("body").hasClass(m))a(c).css("min-height",i-t);else{var o;o=s+e<=i?(a(c).css("min-height",i-n),i-n):(a(c).css("min-height",s),s);var r=a(f);void 0!==r&&r.height()>o&&a(c).css("min-height",r.height())}},r.prototype.fixSidebar=function(){a("body").hasClass(m)?this.options.slimscroll&&void 0!==a.fn.slimScroll&&a(p).slimScroll({height:a(window).height()-a(u).height()+"px"}):void 0!==a.fn.slimScroll&&a(p).slimScroll({destroy:!0}).height("auto")};var g=a.fn.layout;a.fn.layout=i,a.fn.layout.Constuctor=r,a.fn.layout.noConflict=function(){return a.fn.layout=g,this},a(window).on("load",function(){i.call(a("body"))})}(jQuery),function(s){"use strict";var o="lte.pushmenu",r={collapseScreenSize:767,expandOnHover:!1,expandTransitionDelay:200},t=".sidebar-collapse",e=".main-sidebar",n=".content-wrapper",i=".sidebar-form .form-control",a='[data-toggle="push-menu"]',l=".sidebar-mini",c=".sidebar-expanded-on-hover",h=".fixed",d="sidebar-collapse",u="sidebar-open",p="sidebar-expanded-on-hover",f="sidebar-mini-expand-feature",m="expanded.pushMenu",g="collapsed.pushMenu",v=function(t){this.options=t,this.init()};function y(i){return this.each(function(){var t=s(this),e=t.data(o);if(!e){var n=s.extend({},r,t.data(),"object"==typeof i&&i);t.data(o,e=new v(n))}"toggle"===i&&e.toggle()})}v.prototype.init=function(){(this.options.expandOnHover||s("body").is(l+h))&&(this.expandOnHover(),s("body").addClass(f)),s(n).click(function(){s(window).width()<=this.options.collapseScreenSize&&s("body").hasClass(u)&&this.close()}.bind(this)),s(i).click(function(t){t.stopPropagation()})},v.prototype.toggle=function(){var t=s(window).width(),e=!s("body").hasClass(d);t<=this.options.collapseScreenSize&&(e=s("body").hasClass(u)),e?this.close():this.open()},v.prototype.open=function(){s(window).width()>this.options.collapseScreenSize?s("body").removeClass(d).trigger(s.Event(m)):s("body").addClass(u).trigger(s.Event(m))},v.prototype.close=function(){s(window).width()>this.options.collapseScreenSize?s("body").addClass(d).trigger(s.Event(g)):s("body").removeClass(u+" "+d).trigger(s.Event(g))},v.prototype.expandOnHover=function(){s(e).hover(function(){s("body").is(l+t)&&s(window).width()>this.options.collapseScreenSize&&this.expand()}.bind(this),function(){s("body").is(c)&&this.collapse()}.bind(this))},v.prototype.expand=function(){setTimeout(function(){s("body").removeClass(d).addClass(p)},this.options.expandTransitionDelay)},v.prototype.collapse=function(){setTimeout(function(){s("body").removeClass(p).addClass(d)},this.options.expandTransitionDelay)};var w=s.fn.pushMenu;s.fn.pushMenu=y,s.fn.pushMenu.Constructor=v,s.fn.pushMenu.noConflict=function(){return s.fn.pushMenu=w,this},s(document).on("click",a,function(t){t.preventDefault(),y.call(s(this),"toggle")}),s(window).on("load",function(){y.call(s(a))})}(jQuery),function(s){"use strict";var o="lte.todolist",r={onCheck:function(t){return t},onUnCheck:function(t){return t}},e={data:'[data-widget="todo-list"]'},n="done",a=function(t,e){this.element=t,this.options=e,this._setUpListeners()};function t(i){return this.each(function(){var t=s(this),e=t.data(o);if(!e){var n=s.extend({},r,t.data(),"object"==typeof i&&i);t.data(o,e=new a(t,n))}if("string"==typeof e){if(void 0===e[i])throw new Error("No method named "+i);e[i]()}})}a.prototype.toggle=function(t){t.parents(e.li).first().toggleClass(n),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 t=this;s(this.element).on("change ifChanged","input:checkbox",function(){t.toggle(s(this))})};var i=s.fn.todoList;s.fn.todoList=t,s.fn.todoList.Constructor=a,s.fn.todoList.noConflict=function(){return s.fn.todoList=i,this},s(window).on("load",function(){s(e.data).each(function(){t.call(s(this))})})}(jQuery),function(o){"use strict";var i="lte.tree",s={animationSpeed:500,accordion:!0,followLink:!1,trigger:".treeview a"},r=".treeview",a=".treeview-menu",l=".menu-open, .active",t='[data-widget="tree"]',n=".active",c="menu-open",h="tree",d="collapsed.tree",u="expanded.tree",p=function(t,e){this.element=t,this.options=e,o(this.element).addClass(h),o(r+n,this.element).addClass(c),this._setUpListeners()};function e(n){return this.each(function(){var t=o(this);if(!t.data(i)){var e=o.extend({},s,t.data(),"object"==typeof n&&n);t.data(i,new p(t,e))}})}p.prototype.toggle=function(t,e){var n=t.next(a),i=t.parent(),s=i.hasClass(c);i.is(r)&&(this.options.followLink&&"#"!==t.attr("href")||e.preventDefault(),s?this.collapse(n,i):this.expand(n,i))},p.prototype.expand=function(t,e){var n=o.Event(u);if(this.options.accordion){var i=e.siblings(l),s=i.children(a);this.collapse(s,i)}e.addClass(c),t.slideDown(this.options.animationSpeed,function(){o(this.element).trigger(n)}.bind(this))},p.prototype.collapse=function(t,e){var n=o.Event(d);e.removeClass(c),t.slideUp(this.options.animationSpeed,function(){o(this.element).trigger(n)}.bind(this))},p.prototype._setUpListeners=function(){var e=this;o(this.element).on("click",this.options.trigger,function(t){e.toggle(o(this),t)})};var f=o.fn.tree;o.fn.tree=e,o.fn.tree.Constructor=p,o.fn.tree.noConflict=function(){return o.fn.tree=f,this},o(window).on("load",function(){o(t).each(function(){e.call(o(this))})})}(jQuery),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(t,e){return void 0===e&&(e="undefined"!=typeof window?require("jquery"):require("jquery")(t)),n(e),e}:n(jQuery)}(function(i){var t=function(){if(i&&i.fn&&i.fn.select2&&i.fn.select2.amd)var t=i.fn.select2.amd;var e,s,c,n;return t&&t.requirejs||(t?s=t:t={},function(p){var o,r,f,m,g={},v={},y={},w={},n=Object.prototype.hasOwnProperty,i=[].slice,b=/\.js$/;function D(t,e){return n.call(t,e)}function a(t,e){var n,i,s,o,r,a,l,c,h,d,u,p=e&&e.split("/"),f=y.map,m=f&&f["*"]||{};if(t){for(r=(t=t.split("/")).length-1,y.nodeIdCompat&&b.test(t[r])&&(t[r]=t[r].replace(b,"")),"."===t[0].charAt(0)&&p&&(t=p.slice(0,p.length-1).concat(t)),h=0;h":">",'"':""","'":"'","/":"/"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,function(t){return e[t]})},t.appendMany=function(t,e){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(e,function(t){n=n.add(t)}),e=n}t.append(e)},t}),t.define("select2/results",["jquery","./utils"],function(u,t){function i(t,e,n){this.$element=t,this.data=n,this.options=e,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=u('
    ');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var e=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=u('
  • '),i=this.options.get("translations").get(t.message);n.append(e(i(t.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var n=0;n",{class:"select2-results__options select2-results__options--nested"});d.append(a),o.append(r),o.append(d)}else this.template(t,e);return u.data(e,"data",t),e},i.prototype.bind=function(e,t){var l=this,n=e.id+"-results";this.$results.attr("id",n),e.on("results:all",function(t){l.clear(),l.append(t.data),e.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),e.on("results:append",function(t){l.append(t.data),e.isOpen()&&l.setClasses()}),e.on("query",function(t){l.hideMessages(),l.showLoading(t)}),e.on("select",function(){e.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),e.on("unselect",function(){e.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),e.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),e.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),e.on("results:toggle",function(){var t=l.getHighlightedResults();0!==t.length&&t.trigger("mouseup")}),e.on("results:select",function(){var t=l.getHighlightedResults();if(0!==t.length){var e=t.data("data");"true"==t.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:e})}}),e.on("results:previous",function(){var t=l.getHighlightedResults(),e=l.$results.find("[aria-selected]"),n=e.index(t);if(0!==n){var i=n-1;0===t.length&&(i=0);var s=e.eq(i);s.trigger("mouseenter");var o=l.$results.offset().top,r=s.offset().top,a=l.$results.scrollTop()+(r-o);0===i?l.$results.scrollTop(0):r-o<0&&l.$results.scrollTop(a)}}),e.on("results:next",function(){var t=l.getHighlightedResults(),e=l.$results.find("[aria-selected]"),n=e.index(t)+1;if(!(n>=e.length)){var i=e.eq(n);i.trigger("mouseenter");var s=l.$results.offset().top+l.$results.outerHeight(!1),o=i.offset().top+i.outerHeight(!1),r=l.$results.scrollTop()+o-s;0===n?l.$results.scrollTop(0):sthis.$results.outerHeight()||o<0)&&this.$results.scrollTop(s)}},i.prototype.template=function(t,e){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),s=n(t,e);null==s?e.style.display="none":"string"==typeof s?e.innerHTML=i(s):u(e).append(s)},i}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(n,t,s){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t},i.prototype.bind=function(t,e){var n=this,i=(t.id,t.id+"-results");this.container=t,this.$selection.on("focus",function(t){n.trigger("focus",t)}),this.$selection.on("blur",function(t){n._handleBlur(t)}),this.$selection.on("keydown",function(t){n.trigger("keypress",t),t.which===s.SPACE&&t.preventDefault()}),t.on("results:focus",function(t){n.$selection.attr("aria-activedescendant",t.data._resultId)}),t.on("selection:update",function(t){n.update(t.data)}),t.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(t)}),t.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(t)}),t.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),t.on("disable",function(){n.$selection.attr("tabindex","-1")})},i.prototype._handleBlur=function(t){var e=this;window.setTimeout(function(){document.activeElement==e.$selection[0]||n.contains(e.$selection[0],document.activeElement)||e.trigger("blur",t)},1)},i.prototype._attachCloseHandler=function(t){n(document.body).on("mousedown.select2."+t.id,function(t){var e=n(t.target).closest(".select2");n(".select2.select2-container--open").each(function(){var t=n(this);this!=e[0]&&t.data("element").select2("close")})})},i.prototype._detachCloseHandler=function(t){n(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(t,e){e.find(".selection").append(t)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},i}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(t,e,n,i){function s(){s.__super__.constructor.apply(this,arguments)}return n.Extend(s,e),s.prototype.render=function(){var t=s.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html(''),t},s.prototype.bind=function(e,t){var n=this;s.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(t){1===t.which&&n.trigger("toggle",{originalEvent:t})}),this.$selection.on("focus",function(t){}),this.$selection.on("blur",function(t){}),e.on("focus",function(t){e.isOpen()||n.$selection.focus()}),e.on("selection:update",function(t){n.update(t.data)})},s.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},s.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},s.prototype.selectionContainer=function(){return t("")},s.prototype.update=function(t){if(0!==t.length){var e=t[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(e,n);n.empty().append(i),n.prop("title",e.title||e.text)}else this.clear()},s}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,t,a){function s(t,e){s.__super__.constructor.apply(this,arguments)}return a.Extend(s,t),s.prototype.render=function(){var t=s.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('
      '),t},s.prototype.bind=function(t,e){var n=this;s.__super__.bind.apply(this,arguments),this.$selection.on("click",function(t){n.trigger("toggle",{originalEvent:t})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!n.options.get("disabled")){var e=i(this).parent().data("data");n.trigger("unselect",{originalEvent:t,data:e})}})},s.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},s.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},s.prototype.selectionContainer=function(){return i('
    • ×
    • ')},s.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],n=0;n×');n.data("data",e),this.$selection.find(".select2-selection__rendered").prepend(n)}},t}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(i,t,r){function e(t,e,n){t.call(this,e,n)}return e.prototype.render=function(t){var e=i('');this.$searchContainer=e,this.$search=e.find("input");var n=t.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("open",function(){i.$search.trigger("focus")}),e.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),e.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),e.on("disable",function(){i.$search.prop("disabled",!0)}),e.on("focus",function(t){i.$search.trigger("focus")}),e.on("results:focus",function(t){i.$search.attr("aria-activedescendant",t.id)}),this.$selection.on("focusin",".select2-search--inline",function(t){i.trigger("focus",t)}),this.$selection.on("focusout",".select2-search--inline",function(t){i._handleBlur(t)}),this.$selection.on("keydown",".select2-search--inline",function(t){if(t.stopPropagation(),i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented(),t.which===r.BACKSPACE&&""===i.$search.val()){var e=i.$searchContainer.prev(".select2-selection__choice");if(0this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t}),t.define("select2/data/maximumSelectionLength",[],function(){function t(t,e,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),t.call(this,e,n)}return t.prototype.query=function(n,i,s){var o=this;this.current(function(t){var e=null!=t?t.length:0;0=o.maximumSelectionLength?o.trigger("results:message",{message:"maximumSelected",args:{maximum:o.maximumSelectionLength}}):n.call(o,i,s)})},t}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('');return t.attr("dir",this.options.get("dir")),this.$dropdown=t},n.prototype.bind=function(){},n.prototype.position=function(t,e){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery","../utils"],function(s,t){function e(){}return e.prototype.render=function(t){var e=t.call(this),n=s('');return this.$searchContainer=n,this.$search=n.find("input"),e.prepend(n),e},e.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),this.$search.on("keydown",function(t){i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented()}),this.$search.on("input",function(t){s(this).off("keyup")}),this.$search.on("keyup input",function(t){i.handleSearch(t)}),e.on("open",function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),e.on("close",function(){i.$search.attr("tabindex",-1),i.$search.val("")}),e.on("focus",function(){e.isOpen()||i.$search.focus()}),e.on("results:all",function(t){null!=t.query.term&&""!==t.query.term||(i.showSearch(t)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))})},e.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.showSearch=function(t,e){return!0},e}),t.define("select2/dropdown/hidePlaceholder",[],function(){function t(t,e,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n,i)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var n=e.slice(0),i=e.length-1;0<=i;i--){var s=e[i];this.placeholder.id===s.id&&n.splice(i,1)}return n},t}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(s){function t(t,e,n,i){this.lastParams={},t.call(this,e,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("query",function(t){i.lastParams=t,i.loading=!0}),e.on("query:append",function(t){i.lastParams=t,i.loading=!0}),this.$results.on("scroll",function(){var t=s.contains(document.documentElement,i.$loadingMore[0]);if(!i.loading&&t){var e=i.$results.offset().top+i.$results.outerHeight(!1);i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1)<=e+50&&i.loadMore()}})},t.prototype.loadMore=function(){this.loading=!0;var t=s.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},t.prototype.createLoadingMore=function(){var t=s('
    • '),e=this.options.get("translations").get("loadingMore");return t.html(e(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function t(t,e,n){this.$dropdownParent=n.get("dropdownParent")||f(document.body),t.call(this,e,n)}return t.prototype.bind=function(t,e,n){var i=this,s=!1;t.call(this,e,n),e.on("open",function(){i._showDropdown(),i._attachPositioningHandler(e),s||(s=!0,e.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),e.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),e.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(e)}),this.$dropdownContainer.on("mousedown",function(t){t.stopPropagation()})},t.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},t.prototype.position=function(t,e,n){e.attr("class",n.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=n},t.prototype.render=function(t){var e=f(""),n=t.call(this);return e.append(n),this.$dropdownContainer=e},t.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},t.prototype._attachPositioningHandler=function(t,e){var n=this,i="scroll.select2."+e.id,s="resize.select2."+e.id,o="orientationchange.select2."+e.id,r=this.$container.parents().filter(a.hasScroll);r.each(function(){f(this).data("select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),r.on(i,function(t){var e=f(this).data("select2-scroll-position");f(this).scrollTop(e.y)}),f(window).on(i+" "+s+" "+o,function(t){n._positionDropdown(),n._resizeDropdown()})},t.prototype._detachPositioningHandler=function(t,e){var n="scroll.select2."+e.id,i="resize.select2."+e.id,s="orientationchange.select2."+e.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+i+" "+s)},t.prototype._positionDropdown=function(){var t=f(window),e=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,s=this.$container.offset();s.bottom=s.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=s.top,o.bottom=s.top+o.height;var r=this.$dropdown.outerHeight(!1),a=t.scrollTop(),l=t.scrollTop()+t.height(),c=as.bottom+r,d={left:s.left,top:o.bottom},u=this.$dropdownParent;"static"===u.css("position")&&(u=u.offsetParent());var p=u.offset();d.top-=p.top,d.left-=p.left,e||n||(i="below"),h||!c||e?!c&&h&&e&&(i="below"):i="above",("above"==i||e&&"below"!==i)&&(d.top=o.top-p.top-r),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(d)},t.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},t.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},t}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function t(t,e,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,n,i)}return t.prototype.showSearch=function(t,e){return!(function t(e){for(var n=0,i=0;i');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},h}),t.define("select2/compat/utils",["jquery"],function(r){return{syncCssClasses:function(t,e,n){var i,s,o=[];(i=r.trim(t.attr("class")))&&r((i=""+i).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&o.push(this)}),(i=r.trim(e.attr("class")))&&r((i=""+i).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(s=n(this))&&o.push(s)}),t.attr("class",o.join(" "))}}}),t.define("select2/compat/containerCss",["jquery","./utils"],function(r,a){function l(t){return null}function t(){}return t.prototype.render=function(t){var e=t.call(this),n=this.options.get("containerCssClass")||"";r.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptContainerCssClass");if(i=i||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var s=i;i=function(t){var e=s(t);return null!=e?e+" "+t:t}}var o=this.options.get("containerCss")||{};return r.isFunction(o)&&(o=o(this.$element)),a.syncCssClasses(e,this.$element,i),e.css(o),e.addClass(n),e},t}),t.define("select2/compat/dropdownCss",["jquery","./utils"],function(r,a){function l(t){return null}function t(){}return t.prototype.render=function(t){var e=t.call(this),n=this.options.get("dropdownCssClass")||"";r.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptDropdownCssClass");if(i=i||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var s=i;i=function(t){var e=s(t);return null!=e?e+" "+t:t}}var o=this.options.get("dropdownCss")||{};return r.isFunction(o)&&(o=o(this.$element)),a.syncCssClasses(e,this.$element,i),e.css(o),e.addClass(n),e},t}),t.define("select2/compat/initSelection",["jquery"],function(i){function t(t,e,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=n.get("initSelection"),this._isInitialized=!1,t.call(this,e,n)}return t.prototype.current=function(t,e){var n=this;this._isInitialized?t.call(this,e):this.initSelection.call(null,this.$element,function(t){n._isInitialized=!0,i.isArray(t)||(t=[t]),e(t)})},t}),t.define("select2/compat/inputData",["jquery"],function(r){function t(t,e,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===e.prop("type")&&n.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `',$=0;$<12;$++)(!M||$>=w.month())&&(!E||$<=b.month())?A+="":A+="";A+="";for(var O='")}if(_+=''+k+"",b&&!b.isAfter(e.lastDay)||this.linkedCalendars&&"right"!=t&&!this.singleDatePicker?_+="":_+='',_+="",_+="",(this.showWeekNumbers||this.showISOWeekNumbers)&&(_+=''+this.locale.weekLabel+""),R.each(this.locale.daysOfWeek,function(t,e){_+=""+e+""}),_+="",_+="",_+="",null==this.endDate&&this.dateLimit){var P=this.startDate.clone().add(this.dateLimit).endOf("day");b&&!P.isBefore(b)||(b=P)}for(y=0;y<6;y++){_+="",this.showWeekNumbers?_+=''+e[y][0].week()+"":this.showISOWeekNumbers&&(_+=''+e[y][0].isoWeek()+"");for(v=0;v<7;v++){var N=[];e[y][v].isSame(new Date,"day")&&N.push("today"),5this.startDate&&e[y][v]'+e[y][v].date()+""}_+=""}_+="",_+="",this.container.find(".calendar."+t+" .calendar-table").html(_)},renderTimePicker:function(t){if("right"!=t||this.endDate){var e,n,i,s=this.maxDate;if(!this.dateLimit||this.maxDate&&!this.startDate.clone().add(this.dateLimit).isAfter(this.maxDate)||(s=this.startDate.clone().add(this.dateLimit)),"left"==t)n=this.startDate.clone(),i=this.minDate;else if("right"==t){n=this.endDate.clone(),i=this.startDate;var o=this.container.find(".calendar.right .calendar-time div");if(""!=o.html()&&(n.hour(o.find(".hourselect option:selected").val()||n.hour()),n.minute(o.find(".minuteselect option:selected").val()||n.minute()),n.second(o.find(".secondselect option:selected").val()||n.second()),!this.timePicker24Hour)){var r=o.find(".ampmselect option:selected").val();"PM"===r&&n.hour()<12&&n.hour(n.hour()+12),"AM"===r&&12===n.hour()&&n.hour(0)}n.isBefore(this.startDate)&&(n=this.startDate.clone()),s&&n.isAfter(s)&&(n=s.clone())}e=' ",e+=': ",this.timePickerSeconds){e+=': "}if(!this.timePicker24Hour){e+='"}this.container.find(".calendar."+t+" .calendar-time div").html(e)}},updateFormInputs:function(){this.container.find("input[name=daterangepicker_start]").is(":focus")||this.container.find("input[name=daterangepicker_end]").is(":focus")||(this.container.find("input[name=daterangepicker_start]").val(this.startDate.format(this.locale.format)),this.endDate&&this.container.find("input[name=daterangepicker_end]").val(this.endDate.format(this.locale.format)),this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").removeAttr("disabled"):this.container.find("button.applyBtn").attr("disabled","disabled"))},move:function(){var t,e={top:0,left:0},n=R(window).width();this.parentEl.is("body")||(e={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},n=this.parentEl[0].clientWidth+this.parentEl.offset().left),t="up"==this.drops?this.element.offset().top-this.container.outerHeight()-e.top:this.element.offset().top+this.element.outerHeight()-e.top,this.container["up"==this.drops?"addClass":"removeClass"]("dropup"),"left"==this.opens?(this.container.css({top:t,right:n-this.element.offset().left-this.element.outerWidth(),left:"auto"}),this.container.offset().left<0&&this.container.css({right:"auto",left:9})):"center"==this.opens?(this.container.css({top:t,left:this.element.offset().left-e.left+this.element.outerWidth()/2-this.container.outerWidth()/2,right:"auto"}),this.container.offset().left<0&&this.container.css({right:"auto",left:9})):(this.container.css({top:t,left:this.element.offset().left-e.left,right:"auto"}),this.container.offset().left+this.container.outerWidth()>R(window).width()&&this.container.css({left:"auto",right:0}))},show:function(t){this.isShowing||(this._outsideClickProxy=R.proxy(function(t){this.outsideClick(t)},this),R(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),R(window).on("resize.daterangepicker",R.proxy(function(t){this.move(t)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(t){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate,this.endDate,this.chosenLabel),this.updateElement(),R(document).off(".daterangepicker"),R(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(t){this.isShowing?this.hide():this.show()},outsideClick:function(t){var e=R(t.target);"focusin"==t.type||e.closest(this.element).length||e.closest(this.container).length||e.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},hoverRange:function(t){if(!this.container.find("input[name=daterangepicker_start]").is(":focus")&&!this.container.find("input[name=daterangepicker_end]").is(":focus")){var e=t.target.getAttribute("data-range-key");if(e==this.locale.customRangeLabel)this.updateView();else{var n=this.ranges[e];this.container.find("input[name=daterangepicker_start]").val(n[0].format(this.locale.format)),this.container.find("input[name=daterangepicker_end]").val(n[1].format(this.locale.format))}}},clickRange:function(t){var e=t.target.getAttribute("data-range-key");if((this.chosenLabel=e)==this.locale.customRangeLabel)this.showCalendars();else{var n=this.ranges[e];this.startDate=n[0],this.endDate=n[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(t){R(t.target).parents(".calendar").hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(t){R(t.target).parents(".calendar").hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(t){if(R(t.target).hasClass("available")){var e=R(t.target).attr("data-title"),n=e.substr(1,1),i=e.substr(3,1),r=R(t.target).parents(".calendar").hasClass("left")?this.leftCalendar.calendar[n][i]:this.rightCalendar.calendar[n][i];this.endDate&&!this.container.find("input[name=daterangepicker_start]").is(":focus")?this.container.find("input[name=daterangepicker_start]").val(r.format(this.locale.format)):this.endDate||this.container.find("input[name=daterangepicker_end]").is(":focus")||this.container.find("input[name=daterangepicker_end]").val(r.format(this.locale.format));var a=this.leftCalendar,l=this.rightCalendar,c=this.startDate;this.endDate||this.container.find(".calendar tbody td").each(function(t,e){if(!R(e).hasClass("week")){var n=R(e).attr("data-title"),i=n.substr(1,1),s=n.substr(3,1),o=R(e).parents(".calendar").hasClass("left")?a.calendar[i][s]:l.calendar[i][s];o.isAfter(c)&&o.isBefore(r)||o.isSame(r,"day")?R(e).addClass("in-range"):R(e).removeClass("in-range")}})}},clickDate:function(t){if(R(t.target).hasClass("available")){var e=R(t.target).attr("data-title"),n=e.substr(1,1),i=e.substr(3,1),s=R(t.target).parents(".calendar").hasClass("left")?this.leftCalendar.calendar[n][i]:this.rightCalendar.calendar[n][i];if(this.endDate||s.isBefore(this.startDate,"day")){if(this.timePicker){var o=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(l=this.container.find(".left .ampmselect").val())&&o<12&&(o+=12),"AM"===l&&12===o&&(o=0);var r=parseInt(this.container.find(".left .minuteselect").val(),10),a=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;s=s.clone().hour(o).minute(r).second(a)}this.endDate=null,this.setStartDate(s.clone())}else if(!this.endDate&&s.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var l;o=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(l=this.container.find(".right .ampmselect").val())&&o<12&&(o+=12),"AM"===l&&12===o&&(o=0);r=parseInt(this.container.find(".right .minuteselect").val(),10),a=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;s=s.clone().hour(o).minute(r).second(a)}this.setEndDate(s.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),this.timePicker||this.clickApply()),this.updateView(),t.stopPropagation()}},calculateChosenLabel:function(){var t=!0,e=0;for(var n in this.ranges){if(this.timePicker){var i=this.timePickerSeconds?"YYYY-MM-DD hh:mm:ss":"YYYY-MM-DD hh:mm";if(this.startDate.format(i)==this.ranges[n][0].format(i)&&this.endDate.format(i)==this.ranges[n][1].format(i)){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").html();break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[n][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[n][1].format("YYYY-MM-DD")){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").html();break}e++}t&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").html():this.chosenLabel=null,this.showCalendars())},clickApply:function(t){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(t){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(t){var e=R(t.target).closest(".calendar").hasClass("left"),n=e?"left":"right",i=this.container.find(".calendar."+n),s=parseInt(i.find(".monthselect").val(),10),o=i.find(".yearselect").val();e||(othis.maxDate.year()||o==this.maxDate.year()&&s>this.maxDate.month())&&(s=this.maxDate.month(),o=this.maxDate.year()),e?(this.leftCalendar.month.month(s).year(o),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(s).year(o),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(t){var e=R(t.target).closest(".calendar"),n=e.hasClass("left"),i=parseInt(e.find(".hourselect").val(),10),s=parseInt(e.find(".minuteselect").val(),10),o=this.timePickerSeconds?parseInt(e.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var r=e.find(".ampmselect").val();"PM"===r&&i<12&&(i+=12),"AM"===r&&12===i&&(i=0)}if(n){var a=this.startDate.clone();a.hour(i),a.minute(s),a.second(o),this.setStartDate(a),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==a.format("YYYY-MM-DD")&&this.endDate.isBefore(a)&&this.setEndDate(a.clone())}else if(this.endDate){var l=this.endDate.clone();l.hour(i),l.minute(s),l.second(o),this.setEndDate(l)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},formInputsChanged:function(t){var e=R(t.target).closest(".calendar").hasClass("right"),n=U(this.container.find('input[name="daterangepicker_start"]').val(),this.locale.format),i=U(this.container.find('input[name="daterangepicker_end"]').val(),this.locale.format);n.isValid()&&i.isValid()&&(e&&i.isBefore(n)&&(n=i.clone()),this.setStartDate(n),this.setEndDate(i),e?this.container.find('input[name="daterangepicker_start"]').val(this.startDate.format(this.locale.format)):this.container.find('input[name="daterangepicker_end"]').val(this.endDate.format(this.locale.format))),this.updateView()},formInputsFocused:function(t){this.container.find('input[name="daterangepicker_start"], input[name="daterangepicker_end"]').removeClass("active"),R(t.target).addClass("active"),R(t.target).closest(".calendar").hasClass("right")&&(this.endDate=null,this.setStartDate(this.startDate.clone()),this.updateView())},formInputsBlurred:function(t){if(!this.endDate){var e=this.container.find('input[name="daterangepicker_end"]').val(),n=U(e,this.locale.format);n.isValid()&&(this.setEndDate(n),this.updateView())}},formInputsKeydown:function(t){13===t.keyCode&&(t.preventDefault(),this.formInputsChanged(t))},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var t=this.element.val().split(this.locale.separator),e=null,n=null;2===t.length&&(e=U(t[0],this.locale.format),n=U(t[1],this.locale.format)),(this.singleDatePicker||null===e||null===n)&&(n=e=U(this.element.val(),this.locale.format)),e.isValid()&&n.isValid()&&(this.setStartDate(e),this.setEndDate(n),this.updateView())}},keydown:function(t){9!==t.keyCode&&13!==t.keyCode||this.hide(),27===t.keyCode&&(t.preventDefault(),t.stopPropagation(),this.hide())},updateElement:function(){this.element.is("input")&&!this.singleDatePicker&&this.autoUpdateInput?(this.element.val(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.element.trigger("change")):this.element.is("input")&&this.autoUpdateInput&&(this.element.val(this.startDate.format(this.locale.format)),this.element.trigger("change"))},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},R.fn.daterangepicker=function(t,e){var n=R.extend(!0,{},R.fn.daterangepicker.defaultOptions,t);return this.each(function(){var t=R(this);t.data("daterangepicker")&&t.data("daterangepicker").remove(),t.data("daterangepicker",new i(t,n,e))}),this},i}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(jQuery)}(function(T,S){function M(){return new Date(Date.UTC.apply(Date,arguments))}function D(){var t=new Date;return M(t.getFullYear(),t.getMonth(),t.getDate())}function o(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function t(t,e){return function(){return e!==S&&T.fn.datepicker.deprecated(e),this[t].apply(this,arguments)}}var e,n=(e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),n=0,i=this.length;n]/g)||[]).length<=0||0this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),e?(this.setValue(),this.element.change()):this.dates.length&&String(t)!==String(this.dates)&&e&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var t=this.o.weekStart,e="";for(this.o.calendarWeeks&&(e+=' ');t";e+="",this.picker.find(".datepicker-days thead").append(e)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",n=0;n<12;n++)e+=''+E[this.o.language].monthsShort[n]+"";this.picker.find(".datepicker-months td").html(e)},setRange:function(t){t&&t.length?this.range=T.map(t,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var e=[],n=this.viewDate.getUTCFullYear(),i=this.viewDate.getUTCMonth(),s=D();return t.getUTCFullYear()n||t.getUTCFullYear()===n&&t.getUTCMonth()>i)&&e.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&e.push("focused"),this.o.todayHighlight&&o(t,s)&&e.push("today"),-1!==this.dates.contains(t)&&e.push("active"),this.dateWithinRange(t)||e.push("disabled"),this.dateIsDisabled(t)&&e.push("disabled","disabled-date"),-1!==T.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&e.push("highlighted"),this.range&&(t>this.range[0]&&t"+v+"";u.find(".datepicker-switch").text(p+"-"+f),u.find("td").html(h)},fill:function(){var t,e,n=new Date(this.viewDate),s=n.getUTCFullYear(),i=n.getUTCMonth(),o=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,r=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,c=E[this.o.language].today||E.en.today||"",h=E[this.o.language].clear||E.en.clear||"",d=E[this.o.language].titleFormat||E.en.titleFormat;if(!isNaN(s)&&!isNaN(i)){this.picker.find(".datepicker-days .datepicker-switch").text(A.formatDate(n,d,this.o.language)),this.picker.find("tfoot .today").text(c).css("display",!0===this.o.todayBtn||"linked"===this.o.todayBtn?"table-cell":"none"),this.picker.find("tfoot .clear").text(h).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var u=M(s,i,0),p=u.getUTCDate();u.setUTCDate(p-(u.getUTCDay()-this.o.weekStart+7)%7);var f=new Date(u);u.getUTCFullYear()<100&&f.setUTCFullYear(u.getUTCFullYear()),f.setUTCDate(f.getUTCDate()+42),f=f.valueOf();for(var m,g,v=[];u.valueOf()"),this.o.calendarWeeks)){var y=new Date(+u+(this.o.weekStart-m-7)%7*864e5),w=new Date(Number(y)+(11-y.getUTCDay())%7*864e5),b=new Date(Number(b=M(w.getUTCFullYear(),0,1))+(11-b.getUTCDay())%7*864e5),D=(w-b)/864e5/7+1;v.push(''+D+"")}(g=this.getClassNames(u)).push("day");var _=u.getUTCDate();this.o.beforeShowDay!==T.noop&&((e=this.o.beforeShowDay(this._utc_to_local(u)))===S?e={}:"boolean"==typeof e?e={enabled:e}:"string"==typeof e&&(e={classes:e}),!1===e.enabled&&g.push("disabled"),e.classes&&(g=g.concat(e.classes.split(/\s+/))),e.tooltip&&(t=e.tooltip),e.content&&(_=e.content)),g=T.isFunction(T.uniqueSort)?T.uniqueSort(g):T.unique(g),v.push(''+_+""),t=null,m===this.o.weekEnd&&v.push(""),u.setUTCDate(u.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(v.join(""));var k=E[this.o.language].monthsTitle||E.en.monthsTitle||"Months",x=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?k:s).end().find("tbody span").removeClass("active");if(T.each(this.dates,function(t,e){e.getUTCFullYear()===s&&x.eq(e.getUTCMonth()).addClass("active")}),(sa;break;case 0:t=i<=o&&sthis.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var n=new Date(t);return n.setUTCDate(t.getUTCDate()+e),n},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!(n=t)||isNaN(n.getTime()))return this.o.defaultViewDate;var n;if(!e)return t;var i,s,o=new Date(t.valueOf()),r=o.getUTCDate(),a=o.getUTCMonth(),l=Math.abs(e);if(e=0=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,n,i=!1,s=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(n=this.moveAvailableDate(s,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(n=this.moveAvailableDate(s,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?n=this.moveAvailableDate(s,e,"moveDay"):this.weekOfDateIsDisabled(s)||(n=this.moveAvailableDate(s,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(s,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(s,e,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;s=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(s),i=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}i&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation())},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+A.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var c=function(t,e){T.data(t,"datepicker",this),this.element=T(t),this.inputs=T.map(e.inputs,function(t){return t.jquery?t[0]:t}),delete e.inputs,this.keepEmptyValues=e.keepEmptyValues,delete e.keepEmptyValues,s.call(T(this.inputs),e).on("changeDate",T.proxy(this.dateUpdated,this)),this.pickers=T.map(this.inputs,function(t){return T.data(t,"datepicker")}),this.updateDates()};c.prototype={updateDates:function(){this.dates=T.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var n=T.map(this.dates,function(t){return t.valueOf()});T.each(this.pickers,function(t,e){e.setRange(n)})},clearDates:function(){T.each(this.pickers,function(t,e){e.clearDates()})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var n=T.data(t.target,"datepicker");if(n!==S){var i=n.getUTCDate(),s=this.keepEmptyValues,e=T.inArray(t.target,this.inputs),o=e-1,r=e+1,a=this.inputs.length;if(-1!==e){if(T.each(this.pickers,function(t,e){e.getUTCDate()||e!==n&&s||e.setUTCDate(i)}),ithis.dates[r])for(;rthis.dates[r];)this.pickers[r++].setUTCDate(i);this.updateDates(),delete this.updating}}}},destroy:function(){T.map(this.pickers,function(t){t.destroy()}),T(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:t("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var i=T.fn.datepicker,s=function(r){var a,l=Array.apply(null,arguments);if(l.shift(),this.each(function(){var t=T(this),e=t.data("datepicker"),n="object"==typeof r&&r;if(!e){var i=function(t,e){var n=T(t).data(),i={},s=new RegExp("^"+e.toLowerCase()+"([A-Z])");function o(t,e){return e.toLowerCase()}for(var r in e=new RegExp("^"+e.toLowerCase()),n)e.test(r)&&(i[r.replace(s,o)]=n[r]);return i}(this,"date"),s=function(t){var n={};if(E[t]||(t=t.split("-")[0],E[t])){var i=E[t];return T.each(d,function(t,e){e in i&&(n[e]=i[e])}),n}}(T.extend({},h,i,n).language),o=T.extend({},h,s,i,n);e=t.hasClass("input-daterange")||o.inputs?(T.extend(o,{inputs:o.inputs||t.find("input").toArray()}),new c(this,o)):new _(this,o),t.data("datepicker",e)}"string"==typeof r&&"function"==typeof e[r]&&(a=e[r].apply(e,l))}),a===S||a instanceof _||a instanceof c)return this;if(1(new Date).getFullYear()+i&&(n-=100),n):e);var n,i},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};m.yy=m.yyyy,m.M=m.MM=m.mm=m.m,m.dd=m.d,t=D();var g=e.parts.slice();function v(){var t=this.slice(0,i[a].length),e=i[a].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(i.length!==g.length&&(g=T(g).filter(function(t,e){return-1!==T.inArray(e,f)}).toArray()),i.length===g.length){var y,w,b;for(a=0,y=g.length;a'+h.templates.leftArrow+''+h.templates.rightArrow+"",contTemplate:'',footTemplate:''};A.template='
      '+A.headTemplate+""+A.footTemplate+'
      '+A.headTemplate+A.contTemplate+A.footTemplate+'
      '+A.headTemplate+A.contTemplate+A.footTemplate+'
      '+A.headTemplate+A.contTemplate+A.footTemplate+'
      '+A.headTemplate+A.contTemplate+A.footTemplate+"
      ",T.fn.datepicker.DPGlobal=A,T.fn.datepicker.noConflict=function(){return T.fn.datepicker=i,this},T.fn.datepicker.version="1.8.0",T.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},T(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var e=T(this);e.data("datepicker")||(t.preventDefault(),s.call(e,"show"))}),T(function(){s.call(T('[data-provide="datepicker-inline"]'))})}),$.AdminLTESidebarTweak={},$.AdminLTESidebarTweak.options={EnableRemember:!0,NoTransitionAfterReload:!1},$(function(){"use strict";$("body").on("collapsed.pushMenu",function(){$.AdminLTESidebarTweak.options.EnableRemember&&(document.cookie="toggleState=closed;path=/;")}).on("expanded.pushMenu",function(){$.AdminLTESidebarTweak.options.EnableRemember&&(document.cookie="toggleState=opened;path=/;")})}),function(o,r,e){function n(t){o(t).datepicker({language:r.config.locale,clearBtn:!0,calendarWeeks:!0,immediateUpdates:!0,autoclose:!0,todayHighlight:!0,format:{format:o(t).attr("format"),toDisplay:function(t,e,n){return d=moment(t),d.format(e.format)},toValue:function(t,e,n){return d=moment.utc(t,e.format),d.toDate()}}}).on("show",function(t){t.preventDefault(),t.stopPropagation()}).on("hide",function(t){t.preventDefault(),t.stopPropagation()})}o(function(){function t(t,e){if(t.element){var n=o(e);n.hasClass("select2-selection__rendered")&&n.attr("class","select2-selection__rendered"),o(e).addClass(o(t.element).attr("class"))}return t.text}function s(){return{openOnEnter:!1,dropdownAutoWidth:!0,minimumResultsForSearch:10,selectionCssClass:":all:",containerCssClass:":all:",templateResult:t,templateSelection:t}}o('[data-toggle="tooltip"]').tooltip(),o('[data-toggle="popover"]').popover(),JsBarcode("svg.barcode").init(),o.each(o("form select"),function(t,e){var n=s(),i=o(e);if(!i.hasClass("no-select2")){0"),"render"===t.state&&n.empty().append(t.html),"success"===t.state&&r.location.reload()}).fail(function(){alert("error")}).always(function(){})}),o(e).on("submit","#formModal form",function(t){t.preventDefault();var e=o(this).attr("action"),n=o(this).attr("method"),i=new FormData(this);o.ajax({url:e,type:n,data:i,contentType:!1,cache:!1,processData:!1}).done(function(t,e,n){"object"==typeof t&&null!==t||o("#formModal").empty().append('"),"render"===t.state&&o("#formModal").empty().append(t.html),"success"===t.state&&(t.target?r.location.href=t.target:r.location.reload())}).fail(function(t,e,n){o("#formModal").empty().append('")})})}),o.each(o("input[input=daterange]"),function(t,e){o(e).daterangepicker({autoUpdateInput:!1,showDropdowns:!0,autoApply:!0,locale:{format:o(e).attr("format"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",fromLabel:"From",toLabel:"To",customRangeLabel:"Custom",weekLabel:"W"}})}),o("input[input=daterange]").on("apply.daterangepicker",function(t,e){o(this).val(e.startDate.format(o(this).attr("format")))}),o("input[input=daterange]").on("cancel.daterangepicker",function(t,e){o(this).val("")})}(window.jQuery,window,document); //# sourceMappingURL=backend.adminlte.top.min.js.map