diff --git a/arctic/static/arctic/dist/assets/js/app.js b/arctic/static/arctic/dist/assets/js/app.js index 9c2985e8..a201bab8 100644 --- a/arctic/static/arctic/dist/assets/js/app.js +++ b/arctic/static/arctic/dist/assets/js/app.js @@ -1 +1 @@ -!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(k,e){"use strict";var t=[],C=k.document,i=Object.getPrototypeOf,a=t.slice,m=t.concat,l=t.push,r=t.indexOf,n={},o=n.toString,g=n.hasOwnProperty,s=g.toString,u=s.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},_=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,noModule:!0};function w(e,t,n){var i,r=(t=t||C).createElement("script");if(r.text=e,n)for(i in c)n[i]&&(r[i]=n[i]);t.head.appendChild(r).parentNode.removeChild(r)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var x=function(e,t){return new x.fn.init(e,t)},d=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function h(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!y(e)&&!_(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+F+")"+F+"*"),B=new RegExp("="+F+"*([^\\]'\"]*?)"+F+"*\\]","g"),q=new RegExp(L),V=new RegExp("^"+H+"$"),z={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+L),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),ee=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){D()},re=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{A.apply(t=N.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(n){A={apply:t.length?function(e,t){I.apply(e,N.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function oe(e,t,n,i){var r,o,s,a,l,u,c,d=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!i&&((t?t.ownerDocument||t:y)!==k&&D(t),t=t||k,C)){if(11!==h&&(l=X.exec(e)))if(r=l[1]){if(9===h){if(!(s=t.getElementById(r)))return n;if(s.id===r)return n.push(s),n}else if(d&&(s=d.getElementById(r))&&v(t,s)&&s.id===r)return n.push(s),n}else{if(l[2])return A.apply(n,t.getElementsByTagName(e)),n;if((r=l[3])&&f.getElementsByClassName&&t.getElementsByClassName)return A.apply(n,t.getElementsByClassName(r)),n}if(f.qsa&&!T[e+" "]&&(!g||!g.test(e))){if(1!==h)d=t,c=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(te,ne):t.setAttribute("id",a=x),o=(u=p(e)).length;o--;)u[o]="#"+a+" "+ve(u[o]);c=u.join(","),d=Z.test(e)&&me(t.parentNode)||t}if(c)try{return A.apply(n,d.querySelectorAll(c)),n}catch(e){}finally{a===x&&t.removeAttribute("id")}}}return m(e.replace(Y,"$1"),t,n,i)}function se(){var i=[];return function e(t,n){return i.push(t+" ")>w.cacheLength&&delete e[i.shift()],e[t+" "]=n}}function ae(e){return e[x]=!0,e}function le(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function ce(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function fe(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&&re(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function pe(s){return ae(function(o){return o=+o,ae(function(e,t){for(var n,i=s([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=oe.support={},r=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},D=oe.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:y;return i!==k&&9===i.nodeType&&i.documentElement&&(s=(k=i).documentElement,C=!r(k),y!==k&&(n=k.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",ie,!1):n.attachEvent&&n.attachEvent("onunload",ie)),f.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=le(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=Q.test(k.getElementsByClassName),f.getById=le(function(e){return s.appendChild(e).id=x,!k.getElementsByName||!k.getElementsByName(x).length}),f.getById?(w.filter.ID=function(e){var t=e.replace(J,ee);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var n=e.replace(J,ee);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&C){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},w.find.CLASS=f.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&C)return t.getElementsByClassName(e)},a=[],g=[],(f.qsa=Q.test(k.querySelectorAll))&&(le(function(e){s.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+F+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+x+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]")}),le(function(e){e.innerHTML="";var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+F+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(f.matchesSelector=Q.test(c=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&le(function(e){f.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),a.push("!=",L)}),g=g.length&&new RegExp(g.join("|")),a=a.length&&new RegExp(a.join("|")),t=Q.test(s.compareDocumentPosition),v=t||Q.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===k||e.ownerDocument===y&&v(y,e)?-1:t===k||t.ownerDocument===y&&v(y,t)?1:l?$(l,e)-$(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!r||!o)return e===k?-1:t===k?1:r?-1:o?1:l?$(l,e)-$(l,t):0;if(r===o)return ce(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ce(s[i],a[i]):s[i]===y?-1:a[i]===y?1:0}),k},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==k&&D(e),t=t.replace(B,"='$1']"),f.matchesSelector&&C&&!T[t+" "]&&(!a||!a.test(t))&&(!g||!g.test(t)))try{var n=c.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(J,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(J,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=p(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(J,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=h[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&h(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=oe.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(e,n,i){return y(n)?x.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?x.grep(e,function(e){return e===n!==i}):"string"!=typeof n?x.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||M,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:I.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),E.test(i[1])&&x.isPlainObject(t))for(i in t)y(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=C.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,M=x(C);var A=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function $(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]+)/i,ce=/^$|^module$|\/(?:java|ecma)script/i,de={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function he(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?x.merge([e],n):n}function fe(e,t){for(var n=0,i=e.length;nx",v.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue;var ye=C.documentElement,_e=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,be=/^([^.]*)(?:\.(.+)|)/;function De(){return!0}function ke(){return!1}function Ce(){try{return C.activeElement}catch(e){}}function xe(e,t,n,i,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)xe(e,a,n,i,t[a],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=ke;else if(!r)return e;return 1===o&&(s=r,(r=function(e){return x().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=x.guid++)),e.each(function(){x.event.add(this,t,r,i,n)})}x.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,u,c,d,h,f,p,m,g=G.get(t);if(g)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&x.find.matchesSelector(ye,r),n.guid||(n.guid=x.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(P)||[""]).length;u--;)f=m=(a=be.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f&&(d=x.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=x.event.special[f]||{},c=x.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,s)||t.addEventListener&&t.addEventListener(f,s)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),x.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,s,a,l,u,c,d,h,f,p,m,g=G.hasData(e)&&G.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(P)||[""]).length;u--;)if(f=m=(a=be.exec(t[u])||[])[1],p=(a[2]||"").split(".").sort(),f){for(d=x.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)c=h[o],!r&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||x.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)x.event.remove(e,f+t[u],n,i,!0);x.isEmptyObject(l)&&G.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,s,a=x.event.fix(e),l=new Array(arguments.length),u=(G.get(this,"events")||{})[a.type]||[],c=x.event.special[a.type]||{};for(l[0]=a,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,Te=/\s*$/g;function Me(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ae(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ne(e,t){var n,i,r,o,s,a,l,u;if(1===t.nodeType){if(G.hasData(e)&&(o=G.access(e),s=G.set(t,o),u=o.events))for(r in delete s.handle,s.events={},u)for(n=0,i=u[r].length;n")},clone:function(e,t,n){var i,r,o,s,a,l,u,c=e.cloneNode(!0),d=x.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(s=he(c),i=0,r=(o=he(e)).length;i").prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){i.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(i[0])},abort:function(){r&&r()}}});var Wt,Ut=[],Bt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ut.pop()||x.expando+"_"+wt++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,s=!1!==e.jsonp&&(Bt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Bt,"$1"+i):!1!==e.jsonp&&(e.url+=(bt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||x.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=k[i],k[i]=function(){o=arguments},n.always(function(){void 0===r?x(k).removeProp(i):k[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,Ut.push(i)),o&&y(r)&&r(o[0]),o=r=void 0}),"script"}),v.createHTMLDocument=((Wt=C.implementation.createHTMLDocument("").body).innerHTML="
",2===Wt.childNodes.length),x.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((i=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(i)):t=C),o=!n&&[],(r=E.exec(e))?[t.createElement(r[1])]:(r=ve([e],t,o),o&&o.length&&x(o).remove(),x.merge([],r.childNodes)));var i,r,o},x.fn.load=function(e,t,n){var i,r,o,s=this,a=e.indexOf(" ");return-1").append(x.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.expr.pseudos.animated=function(t){return x.grep(x.timers,function(e){return t===e.elem}).length},x.offset={setOffset:function(e,t,n){var i,r,o,s,a,l,u=x.css(e,"position"),c=x(e),d={};"static"===u&&(e.style.position="relative"),a=c.offset(),o=x.css(e,"top"),l=x.css(e,"left"),("absolute"===u||"fixed"===u)&&-1<(o+l).indexOf("auto")?(s=(i=c.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),y(t)&&(t=t.call(e,n,x.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):c.css(d)}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){x.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===x.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),r.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-x.css(i,"marginTop",!0),left:t.left-r.left-x.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||ye})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;x.fn[t]=function(e){return W(this,function(e,t,n){var i;if(_(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n)return i?i[r]:e[t];i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):e[t]=n},t,e,arguments.length)}}),x.each(["top","left"],function(e,n){x.cssHooks[n]=je(v.pixelPosition,function(e,t){if(t)return t=Le(e,n),Fe.test(t)?x(e).position()[n]+"px":t})}),x.each({Height:"height",Width:"width"},function(s,a){x.each({padding:"inner"+s,content:a,"":"outer"+s},function(i,o){x.fn[o]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return W(this,function(e,t,n){var i;return _(e)?0===o.indexOf("outer")?e["inner"+s]:e.document.documentElement["client"+s]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+s],i["scroll"+s],e.body["offset"+s],i["offset"+s],i["client"+s])):void 0===n?x.css(e,t,r):x.style(e,t,n,r)},a,n?e:void 0,n)}})}),x.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(e,n){x.fn[n]=function(e,t){return 0=i.clientWidth&&n>=i.clientHeight}),c=0l[e]&&!i.escapeWithReference&&(n=Math.min(c[t],l[e]-("right"===e?c.width:c.height))),b({},t,n)}};return u.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=D({},c,d[t](e))}),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",u=s?"width":"height";return n[a]o(i[a])&&(e.offsets.popper[l]=o(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Y(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],o=e.offsets,s=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(r),u=l?"height":"width",c=l?"Top":"Left",d=c.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=O(i)[u];a[f]-ps[f]&&(e.offsets.popper[d]+=a[d]+p-s[f]),e.offsets.popper=k(e.offsets.popper);var m=a[d]+a[u]/2-p/2,g=w(e.instance.popper),v=parseFloat(g["margin"+c],10),y=parseFloat(g["border"+c+"Width"],10),_=m-e.offsets.popper[d]-v-y;return _=Math.max(Math.min(s[u]-p,_),0),e.arrowElement=i,e.offsets.arrow=(b(n={},d,Math.round(_)),b(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(p,m){if($(p.instance.modifiers,"inner"))return p;if(p.flipped&&p.placement===p.originalPlacement)return p;var g=S(p.instance.popper,p.instance.reference,m.padding,m.boundariesElement,p.positionFixed),v=p.placement.split("-")[0],y=M(v),_=p.placement.split("-")[1]||"",w=[];switch(m.behavior){case q:w=[v,y];break;case V:w=B(v);break;case z:w=B(v,!0);break;default:w=m.behavior}return w.forEach(function(e,t){if(v!==e||w.length===t+1)return p;v=p.placement.split("-")[0],y=M(v);var n,i=p.offsets.popper,r=p.offsets.reference,o=Math.floor,s="left"===v&&o(i.right)>o(r.left)||"right"===v&&o(i.left)o(r.top)||"bottom"===v&&o(i.top)o(g.right),u=o(i.top)o(g.bottom),d="left"===v&&a||"right"===v&&l||"top"===v&&u||"bottom"===v&&c,h=-1!==["top","bottom"].indexOf(v),f=!!m.flipVariations&&(h&&"start"===_&&a||h&&"end"===_&&l||!h&&"start"===_&&u||!h&&"end"===_&&c);(s||d||f)&&(p.flipped=!0,(s||d)&&(v=w[t+1]),f&&(_="end"===(n=_)?"start":"start"===n?"end":n),p.placement=v+(_?"-"+_:""),p.offsets.popper=D({},p.offsets.popper,I(p.instance.popper,p.offsets.reference,p.placement)),p=N(p.instance.modifiers,p,"flip"))}),p},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=o[n]-(a?r[s?"width":"height"]:0),e.placement=M(t),e.offsets.popper=k(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Y(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=A(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.rightthis._items.length-1||e<0))if(this._isSliding)A(this._element).one(B.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var i=ndocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right
',trigger:"hover focus",title:"",delay:0,html:!(St={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(xt={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},Ot="out",Mt={HIDE:"hide"+bt,HIDDEN:"hidden"+bt,SHOW:(Et="show")+bt,SHOWN:"shown"+bt,INSERTED:"inserted"+bt,CLICK:"click"+bt,FOCUSIN:"focusin"+bt,FOCUSOUT:"focusout"+bt,MOUSEENTER:"mouseenter"+bt,MOUSELEAVE:"mouseleave"+bt},It="fade",At="show",Nt=".tooltip-inner",$t=".arrow",Pt="hover",Ft="focus",Ht="click",Rt="manual",Lt=function(){function i(e,t){if(void 0===c)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e=i.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=yt(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),yt(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(yt(this.getTipElement()).hasClass(At))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),yt.removeData(this.element,this.constructor.DATA_KEY),yt(this.element).off(this.constructor.EVENT_KEY),yt(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&yt(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===yt(this.element).css("display"))throw new Error("Please use show on visible elements");var e=yt.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){yt(this.element).trigger(e);var n=yt.contains(this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!n)return;var i=this.getTipElement(),r=Wn.getUID(this.constructor.NAME);i.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&yt(i).addClass(It);var o="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(o);this.addAttachmentClass(s);var a=!1===this.config.container?document.body:yt(this.config.container);yt(i).data(this.constructor.DATA_KEY,this),yt.contains(this.element.ownerDocument.documentElement,this.tip)||yt(i).appendTo(a),yt(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new c(this.element,i,{placement:s,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:$t},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){t._handlePopperPlacementChange(e)}}),yt(i).addClass(At),"ontouchstart"in document.documentElement&&yt(document.body).children().on("mouseover",null,yt.noop);var l=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,yt(t.element).trigger(t.constructor.Event.SHOWN),e===Ot&&t._leave(null,t)};if(yt(this.tip).hasClass(It)){var u=Wn.getTransitionDurationFromElement(this.tip);yt(this.tip).one(Wn.TRANSITION_END,l).emulateTransitionEnd(u)}else l()}},e.hide=function(e){var t=this,n=this.getTipElement(),i=yt.Event(this.constructor.Event.HIDE),r=function(){t._hoverState!==Et&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),yt(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(yt(this.element).trigger(i),!i.isDefaultPrevented()){if(yt(n).removeClass(At),"ontouchstart"in document.documentElement&&yt(document.body).children().off("mouseover",null,yt.noop),this._activeTrigger[Ht]=!1,this._activeTrigger[Ft]=!1,this._activeTrigger[Pt]=!1,yt(this.tip).hasClass(It)){var o=Wn.getTransitionDurationFromElement(n);yt(n).one(Wn.TRANSITION_END,r).emulateTransitionEnd(o)}else r();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(e){yt(this.getTipElement()).addClass(kt+"-"+e)},e.getTipElement=function(){return this.tip=this.tip||yt(this.config.template)[0],this.tip},e.setContent=function(){var e=yt(this.getTipElement());this.setElementContent(e.find(Nt),this.getTitle()),e.removeClass(It+" "+At)},e.setElementContent=function(e,t){var n=this.config.html;"object"==typeof t&&(t.nodeType||t.jquery)?n?yt(t).parent().is(e)||e.empty().append(t):e.text(yt(t).text()):e[n?"html":"text"](t)},e.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},e._getAttachment=function(e){return St[e.toUpperCase()]},e._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)yt(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)});else if(e!==Rt){var t=e===Pt?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=e===Pt?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;yt(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)})}yt(i.element).closest(".modal").on("hide.bs.modal",function(){return i.hide()})}),this.config.selector?this.config=u({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||yt(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),yt(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?Ft:Pt]=!0),yt(t.getTipElement()).hasClass(At)||t._hoverState===Et?t._hoverState=Et:(clearTimeout(t._timeout),t._hoverState=Et,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===Et&&t.show()},t.config.delay.show):t.show())},e._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||yt(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),yt(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?Ft:Pt]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=Ot,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===Ot&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function(e){return"number"==typeof(e=u({},this.constructor.Default,yt(this.element).data(),"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),Wn.typeCheckConfig(_t,e,this.constructor.DefaultType),e},e._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},e._cleanTipClass=function(){var e=yt(this.getTipElement()),t=e.attr("class").match(Ct);null!==t&&0

'}),Kt=u({},Gn.DefaultType,{content:"(string|element|function)"}),Gt="fade",Xt=".popover-header",Zt=".popover-body",Jt={HIDE:"hide"+Ut,HIDDEN:"hidden"+Ut,SHOW:(Qt="show")+Ut,SHOWN:"shown"+Ut,INSERTED:"inserted"+Ut,CLICK:"click"+Ut,FOCUSIN:"focusin"+Ut,FOCUSOUT:"focusout"+Ut,MOUSEENTER:"mouseenter"+Ut,MOUSELEAVE:"mouseleave"+Ut},en=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n;var r=i.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(e){jt(this.getTipElement()).addClass(qt+"-"+e)},r.getTipElement=function(){return this.tip=this.tip||jt(this.config.template)[0],this.tip},r.setContent=function(){var e=jt(this.getTipElement());this.setElementContent(e.find(Xt),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(Zt),t),e.removeClass(Gt+" "+Qt)},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var e=jt(this.getTipElement()),t=e.attr("class").match(Vt);null!==t&&0=this._offsets[r]&&(void 0===this._offsets[r+1]||e',nextHtml:'',navTitles:{days:"MM, yyyy",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:!1,onlyTimepicker:!1,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:"",onShow:"",onHide:"",onChangeMonth:"",onChangeYear:"",onChangeDecade:"",onChangeView:"",onRenderCell:""},l={ctrlRight:[17,39],ctrlUp:[17,38],ctrlLeft:[17,37],ctrlDown:[17,40],shiftRight:[16,39],shiftUp:[16,38],shiftLeft:[16,37],shiftDown:[16,40],altUp:[18,38],altRight:[18,39],altLeft:[18,37],altDown:[18,40],ctrlShiftUp:[16,17,38]},(p=u=function(e,t){this.el=e,this.$el=s(e),this.opts=s.extend(!0,{},a,t,this.$el.data()),n==o&&(n=s("body")),this.opts.startDate||(this.opts.startDate=new Date),"INPUT"==this.el.nodeName&&(this.elIsInput=!0),this.opts.altField&&(this.$altField="string"==typeof this.opts.altField?s(this.opts.altField):this.opts.altField),this.inited=!1,this.visible=!1,this.silent=!1,this.currentDate=this.opts.startDate,this.currentView=this.opts.view,this._createShortCuts(),this.selectedDates=[],this.views={},this.keys=[],this.minRange="",this.maxRange="",this._prevOnSelectValue="",this.init()}).prototype={VERSION:"2.2.3",viewIndexes:["days","months","years"],init:function(){t||this.opts.inline||!this.elIsInput||this._buildDatepickersContainer(),this._buildBaseHtml(),this._defineLocale(this.opts.language),this._syncWithMinMaxDates(),this.elIsInput&&(this.opts.inline||(this._setPositionClasses(this.opts.position),this._bindEvents()),this.opts.keyboardNav&&!this.opts.onlyTimepicker&&this._bindKeyboardEvents(),this.$datepicker.on("mousedown",this._onMouseDownDatepicker.bind(this)),this.$datepicker.on("mouseup",this._onMouseUpDatepicker.bind(this))),this.opts.classes&&this.$datepicker.addClass(this.opts.classes),this.opts.timepicker&&(this.timepicker=new s.fn.datepicker.Timepicker(this,this.opts),this._bindTimepickerEvents()),this.opts.onlyTimepicker&&this.$datepicker.addClass("-only-timepicker-"),this.views[this.currentView]=new s.fn.datepicker.Body(this,this.currentView,this.opts),this.views[this.currentView].show(),this.nav=new s.fn.datepicker.Navigation(this,this.opts),this.view=this.currentView,this.$el.on("clickCell.adp",this._onClickCell.bind(this)),this.$datepicker.on("mouseenter",".datepicker--cell",this._onMouseEnterCell.bind(this)),this.$datepicker.on("mouseleave",".datepicker--cell",this._onMouseLeaveCell.bind(this)),this.inited=!0},_createShortCuts:function(){this.minDate=this.opts.minDate?this.opts.minDate:new Date(-86399999136e5),this.maxDate=this.opts.maxDate?this.opts.maxDate:new Date(86399999136e5)},_bindEvents:function(){this.$el.on(this.opts.showEvent+".adp",this._onShowEvent.bind(this)),this.$el.on("mouseup.adp",this._onMouseUpEl.bind(this)),this.$el.on("blur.adp",this._onBlur.bind(this)),this.$el.on("keyup.adp",this._onKeyUpGeneral.bind(this)),s(e).on("resize.adp",this._onResize.bind(this)),s("body").on("mouseup.adp",this._onMouseUpBody.bind(this))},_bindKeyboardEvents:function(){this.$el.on("keydown.adp",this._onKeyDown.bind(this)),this.$el.on("keyup.adp",this._onKeyUp.bind(this)),this.$el.on("hotKey.adp",this._onHotKey.bind(this))},_bindTimepickerEvents:function(){this.$el.on("timeChange.adp",this._onTimeChange.bind(this))},isWeekend:function(e){return-1!==this.opts.weekends.indexOf(e)},_defineLocale:function(e){"string"==typeof e?(this.loc=s.fn.datepicker.language[e],this.loc||(console.warn("Can't find language \""+e+'" in Datepicker.language, will use "ru" instead'),this.loc=s.extend(!0,{},s.fn.datepicker.language.ru)),this.loc=s.extend(!0,{},s.fn.datepicker.language.ru,s.fn.datepicker.language[e])):this.loc=s.extend(!0,{},s.fn.datepicker.language.ru,e),this.opts.dateFormat&&(this.loc.dateFormat=this.opts.dateFormat),this.opts.timeFormat&&(this.loc.timeFormat=this.opts.timeFormat),""!==this.opts.firstDay&&(this.loc.firstDay=this.opts.firstDay),this.opts.timepicker&&(this.loc.dateFormat=[this.loc.dateFormat,this.loc.timeFormat].join(this.opts.dateTimeSeparator)),this.opts.onlyTimepicker&&(this.loc.dateFormat=this.loc.timeFormat);var t=this._getWordBoundaryRegExp;(this.loc.timeFormat.match(t("aa"))||this.loc.timeFormat.match(t("AA")))&&(this.ampm=!0)},_buildDatepickersContainer:function(){t=!0,n.append('
'),i=s("#datepickers-container")},_buildBaseHtml:function(){var e,t=s('
');e="INPUT"==this.el.nodeName?this.opts.inline?t.insertAfter(this.$el):i:t.appendTo(this.$el),this.$datepicker=s('
').appendTo(e),this.$content=s(".datepicker--content",this.$datepicker),this.$nav=s(".datepicker--nav",this.$datepicker)},_triggerOnChange:function(){if(!this.selectedDates.length){if(""===this._prevOnSelectValue)return;return this._prevOnSelectValue="",this.opts.onSelect("","",this)}var e,t=this.selectedDates,n=p.getParsedDate(t[0]),i=this,r=new Date(n.year,n.month,n.date,n.hours,n.minutes);e=t.map(function(e){return i.formatDate(i.loc.dateFormat,e)}).join(this.opts.multipleDatesSeparator),(this.opts.multipleDates||this.opts.range)&&(r=t.map(function(e){var t=p.getParsedDate(e);return new Date(t.year,t.month,t.date,t.hours,t.minutes)})),this._prevOnSelectValue=e,this.opts.onSelect(e,r,this)},next:function(){var e=this.parsedDate,t=this.opts;switch(this.view){case"days":this.date=new Date(e.year,e.month+1,1),t.onChangeMonth&&t.onChangeMonth(this.parsedDate.month,this.parsedDate.year);break;case"months":this.date=new Date(e.year+1,e.month,1),t.onChangeYear&&t.onChangeYear(this.parsedDate.year);break;case"years":this.date=new Date(e.year+10,0,1),t.onChangeDecade&&t.onChangeDecade(this.curDecade)}},prev:function(){var e=this.parsedDate,t=this.opts;switch(this.view){case"days":this.date=new Date(e.year,e.month-1,1),t.onChangeMonth&&t.onChangeMonth(this.parsedDate.month,this.parsedDate.year);break;case"months":this.date=new Date(e.year-1,e.month,1),t.onChangeYear&&t.onChangeYear(this.parsedDate.year);break;case"years":this.date=new Date(e.year-10,0,1),t.onChangeDecade&&t.onChangeDecade(this.curDecade)}},formatDate:function(e,t){t=t||this.date;var n,i=e,r=this._getWordBoundaryRegExp,o=this.loc,s=p.getLeadingZeroNum,a=p.getDecade(t),l=p.getParsedDate(t),u=l.fullHours,c=l.hours,d=e.match(r("aa"))||e.match(r("AA")),h="am",f=this._replacer;switch(this.opts.timepicker&&this.timepicker&&d&&(u=s((n=this.timepicker._getValidHoursFromDate(t,d)).hours),c=n.hours,h=n.dayPeriod),!0){case/@/.test(i):i=i.replace(/@/,t.getTime());case/aa/.test(i):i=f(i,r("aa"),h);case/AA/.test(i):i=f(i,r("AA"),h.toUpperCase());case/dd/.test(i):i=f(i,r("dd"),l.fullDate);case/d/.test(i):i=f(i,r("d"),l.date);case/DD/.test(i):i=f(i,r("DD"),o.days[l.day]);case/D/.test(i):i=f(i,r("D"),o.daysShort[l.day]);case/mm/.test(i):i=f(i,r("mm"),l.fullMonth);case/m/.test(i):i=f(i,r("m"),l.month+1);case/MM/.test(i):i=f(i,r("MM"),this.loc.months[l.month]);case/M/.test(i):i=f(i,r("M"),o.monthsShort[l.month]);case/ii/.test(i):i=f(i,r("ii"),l.fullMinutes);case/i/.test(i):i=f(i,r("i"),l.minutes);case/hh/.test(i):i=f(i,r("hh"),u);case/h/.test(i):i=f(i,r("h"),c);case/yyyy/.test(i):i=f(i,r("yyyy"),l.year);case/yyyy1/.test(i):i=f(i,r("yyyy1"),a[0]);case/yyyy2/.test(i):i=f(i,r("yyyy2"),a[1]);case/yy/.test(i):i=f(i,r("yy"),l.year.toString().slice(-2))}return i},_replacer:function(e,t,r){return e.replace(t,function(e,t,n,i){return t+r+i})},_getWordBoundaryRegExp:function(e){var t="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+t+")("+e+")($|<|"+t+")","g")},selectDate:function(e){var t=this,n=t.opts,i=t.parsedDate,r=t.selectedDates.length,o="";if(Array.isArray(e))e.forEach(function(e){t.selectDate(e)});else if(e instanceof Date){if(this.lastSelectedDate=e,this.timepicker&&this.timepicker._setTime(e),t._trigger("selectDate",e),this.timepicker&&(e.setHours(this.timepicker.hours),e.setMinutes(this.timepicker.minutes)),"days"==t.view&&e.getMonth()!=i.month&&n.moveToOtherMonthsOnSelect&&(o=new Date(e.getFullYear(),e.getMonth(),1)),"years"==t.view&&e.getFullYear()!=i.year&&n.moveToOtherYearsOnSelect&&(o=new Date(e.getFullYear(),0,1)),o&&(t.silent=!0,t.date=o,t.silent=!1,t.nav._render()),n.multipleDates&&!n.range){if(r===n.multipleDates)return;t._isSelected(e)||t.selectedDates.push(e)}else n.range?2==r?(t.selectedDates=[e],t.minRange=e,t.maxRange=""):1==r?(t.selectedDates.push(e),t.maxRange?t.minRange=e:t.maxRange=e,p.bigger(t.maxRange,t.minRange)&&(t.maxRange=t.minRange,t.minRange=e),t.selectedDates=[t.minRange,t.maxRange]):(t.selectedDates=[e],t.minRange=e):t.selectedDates=[e];t._setInputValue(),n.onSelect&&t._triggerOnChange(),n.autoClose&&!this.timepickerIsActive&&(n.multipleDates||n.range?n.range&&2==t.selectedDates.length&&t.hide():t.hide()),t.views[this.currentView]._render()}},removeDate:function(n){var i=this.selectedDates,r=this;if(n instanceof Date)return i.some(function(e,t){if(p.isSame(e,n))return i.splice(t,1),r.selectedDates.length?r.lastSelectedDate=r.selectedDates[r.selectedDates.length-1]:(r.minRange="",r.maxRange="",r.lastSelectedDate=""),r.views[r.currentView]._render(),r._setInputValue(),r.opts.onSelect&&r._triggerOnChange(),!0})},today:function(){this.silent=!0,this.view=this.opts.minView,this.silent=!1,this.date=new Date,this.opts.todayButton instanceof Date&&this.selectDate(this.opts.todayButton)},clear:function(){this.selectedDates=[],this.minRange="",this.maxRange="",this.views[this.currentView]._render(),this._setInputValue(),this.opts.onSelect&&this._triggerOnChange()},update:function(e,t){var n=arguments.length,i=this.lastSelectedDate;return 2==n?this.opts[e]=t:1==n&&"object"==typeof e&&(this.opts=s.extend(!0,this.opts,e)),this._createShortCuts(),this._syncWithMinMaxDates(),this._defineLocale(this.opts.language),this.nav._addButtonsIfNeed(),this.opts.onlyTimepicker||this.nav._render(),this.views[this.currentView]._render(),this.elIsInput&&!this.opts.inline&&(this._setPositionClasses(this.opts.position),this.visible&&this.setPosition(this.opts.position)),this.opts.classes&&this.$datepicker.addClass(this.opts.classes),this.opts.onlyTimepicker&&this.$datepicker.addClass("-only-timepicker-"),this.opts.timepicker&&(i&&this.timepicker._handleDate(i),this.timepicker._updateRanges(),this.timepicker._updateCurrentTime(),i&&(i.setHours(this.timepicker.hours),i.setMinutes(this.timepicker.minutes))),this._setInputValue(),this},_syncWithMinMaxDates:function(){var e=this.date.getTime();this.silent=!0,this.minTime>e&&(this.date=this.minDate),this.maxTime=this.minTime&&n<=this.maxTime,month:s>=this.minTime&&a<=this.maxTime,year:i.year>=r.year&&i.year<=o.year};return t?l[t]:l.day},_getDimensions:function(e){var t=e.offset();return{width:e.outerWidth(),height:e.outerHeight(),left:t.left,top:t.top}},_getDateFromCell:function(e){var t=this.parsedDate,n=e.data("year")||t.year,i=e.data("month")==o?t.month:e.data("month"),r=e.data("date")||1;return new Date(n,i,r)},_setPositionClasses:function(e){var t=(e=e.split(" "))[0],n="datepicker -"+t+"-"+e[1]+"- -from-"+t+"-";this.visible&&(n+=" active"),this.$datepicker.removeAttr("class").addClass(n)},setPosition:function(e){e=e||this.opts.position;var t,n,i=this._getDimensions(this.$el),r=this._getDimensions(this.$datepicker),o=e.split(" "),s=this.opts.offset,a=o[0],l=o[1];switch(a){case"top":t=i.top-r.height-s;break;case"right":n=i.left+i.width+s;break;case"bottom":t=i.top+i.height+s;break;case"left":n=i.left-r.width-s}switch(l){case"top":t=i.top;break;case"right":n=i.left+i.width-r.width;break;case"bottom":t=i.top+i.height-r.height;break;case"left":n=i.left;break;case"center":/left|right/.test(a)?t=i.top+i.height/2-r.height/2:n=i.left+i.width/2-r.width/2}this.$datepicker.css({left:n,top:t})},show:function(){var e=this.opts.onShow;this.setPosition(this.opts.position),this.$datepicker.addClass("active"),this.visible=!0,e&&this._bindVisionEvents(e)},hide:function(){var e=this.opts.onHide;this.$datepicker.removeClass("active").css({left:"-100000px"}),this.focused="",this.keys=[],this.inFocus=!1,this.visible=!1,this.$el.blur(),e&&this._bindVisionEvents(e)},down:function(e){this._changeView(e,"down")},up:function(e){this._changeView(e,"up")},_bindVisionEvents:function(e){this.$datepicker.off("transitionend.dp"),e(this,!1),this.$datepicker.one("transitionend.dp",e.bind(this,this,!0))},_changeView:function(e,t){e=e||this.focused||this.date;var n="up"==t?this.viewIndex+1:this.viewIndex-1;2this.maxTime&&(n=this.maxDate),this.focused=n,t=p.getParsedDate(n),s&&o.onChangeMonth&&o.onChangeMonth(t.month,t.year),a&&o.onChangeYear&&o.onChangeYear(t.year),l&&o.onChangeDecade&&o.onChangeDecade(this.curDecade)},_registerKey:function(t){this.keys.some(function(e){return e==t})||this.keys.push(t)},_unRegisterKey:function(e){var t=this.keys.indexOf(e);this.keys.splice(t,1)},_isHotKeyPressed:function(){var e,t=!1,n=this.keys.sort();for(var i in l)e=l[i],n.length==e.length&&e.every(function(e,t){return e==n[t]})&&(this._trigger("hotKey",i),t=!0);return t},_trigger:function(e,t){this.$el.trigger(e,t)},_focusNextCell:function(e,t){t=t||this.cellType;var n=p.getParsedDate(this._getFocusedDate()),i=n.year,r=n.month,o=n.date;if(!this._isHotKeyPressed()){switch(e){case 37:"day"==t&&(o-=1),"month"==t&&(r-=1),"year"==t&&(i-=1);break;case 38:"day"==t&&(o-=7),"month"==t&&(r-=3),"year"==t&&(i-=4);break;case 39:"day"==t&&(o+=1),"month"==t&&(r+=1),"year"==t&&(i+=1);break;case 40:"day"==t&&(o+=7),"month"==t&&(r+=3),"year"==t&&(i+=4)}var s=new Date(i,r,o);s.getTime()this.maxTime&&(s=this.maxDate),this.focused=s}},_getFocusedDate:function(){var e=this.focused||this.selectedDates[this.selectedDates.length-1],t=this.parsedDate;if(!e)switch(this.view){case"days":e=new Date(t.year,t.month,(new Date).getDate());break;case"months":e=new Date(t.year,t.month,1);break;case"years":e=new Date(t.year,0,1)}return e},_getCell:function(e,t){t=t||this.cellType;var n,i=p.getParsedDate(e),r='.datepicker--cell[data-year="'+i.year+'"]';switch(t){case"month":r='[data-month="'+i.month+'"]';break;case"day":r+='[data-month="'+i.month+'"][data-date="'+i.date+'"]'}return(n=this.views[this.currentView].$el.find(r)).length?n:s("")},destroy:function(){var e=this;e.$el.off(".adp").data("datepicker",""),e.selectedDates=[],e.focused="",e.views={},e.keys=[],e.minRange="",e.maxRange="",e.opts.inline||!e.elIsInput?e.$datepicker.closest(".datepicker-inline").remove():e.$datepicker.remove()},_handleAlreadySelectedDates:function(e,t){this.opts.range?this.opts.toggleSelected?this.removeDate(t):2!=this.selectedDates.length&&this._trigger("clickCell",t):this.opts.toggleSelected&&this.removeDate(t),this.opts.toggleSelected||(this.lastSelectedDate=e,this.opts.timepicker&&(this.timepicker._setTime(e),this.timepicker.update()))},_onShowEvent:function(e){this.visible||this.show()},_onBlur:function(){!this.inFocus&&this.visible&&this.hide()},_onMouseDownDatepicker:function(e){this.inFocus=!0},_onMouseUpDatepicker:function(e){this.inFocus=!1,e.originalEvent.inFocus=!0,e.originalEvent.timepickerFocus||this.$el.focus()},_onKeyUpGeneral:function(e){this.$el.val()||this.clear()},_onResize:function(){this.visible&&this.setPosition()},_onMouseUpBody:function(e){e.originalEvent.inFocus||this.visible&&!this.inFocus&&this.hide()},_onMouseUpEl:function(e){e.originalEvent.inFocus=!0,setTimeout(this._onKeyUpGeneral.bind(this),4)},_onKeyDown:function(e){var t=e.which;if(this._registerKey(t),37<=t&&t<=40&&(e.preventDefault(),this._focusNextCell(t)),13==t&&this.focused){if(this._getCell(this.focused).hasClass("-disabled-"))return;if(this.view!=this.opts.minView)this.down();else{var n=this._isSelected(this.focused,this.cellType);if(!n)return this.timepicker&&(this.focused.setHours(this.timepicker.hours),this.focused.setMinutes(this.timepicker.minutes)),void this.selectDate(this.focused);this._handleAlreadySelectedDates(n,this.focused)}}27==t&&this.hide()},_onKeyUp:function(e){var t=e.which;this._unRegisterKey(t)},_onHotKey:function(e,t){this._handleHotKey(t)},_onMouseEnterCell:function(e){var t=s(e.target).closest(".datepicker--cell"),n=this._getDateFromCell(t);this.silent=!0,this.focused&&(this.focused=""),t.addClass("-focus-"),this.focused=n,this.silent=!1,this.opts.range&&1==this.selectedDates.length&&(this.minRange=this.selectedDates[0],this.maxRange="",p.less(this.minRange,this.focused)&&(this.maxRange=this.minRange,this.minRange=""),this.views[this.currentView]._update())},_onMouseLeaveCell:function(e){s(e.target).closest(".datepicker--cell").removeClass("-focus-"),this.silent=!0,this.focused="",this.silent=!1},_onTimeChange:function(e,t,n){var i=new Date,r=!1;this.selectedDates.length&&(r=!0,i=this.lastSelectedDate),i.setHours(t),i.setMinutes(n),r||this._getCell(i).hasClass("-disabled-")?(this._setInputValue(),this.opts.onSelect&&this._triggerOnChange()):this.selectDate(i)},_onClickCell:function(e,t){this.timepicker&&(t.setHours(this.timepicker.hours),t.setMinutes(this.timepicker.minutes)),this.selectDate(t)},set focused(e){if(!e&&this.focused){var t=this._getCell(this.focused);t.length&&t.removeClass("-focus-")}this._focused=e,this.opts.range&&1==this.selectedDates.length&&(this.minRange=this.selectedDates[0],this.maxRange="",p.less(this.minRange,this._focused)&&(this.maxRange=this.minRange,this.minRange="")),this.silent||(this.date=e)},get focused(){return this._focused},get parsedDate(){return p.getParsedDate(this.date)},set date(e){if(e instanceof Date)return this.currentDate=e,this.inited&&!this.silent&&(this.views[this.view]._render(),this.nav._render(),this.visible&&this.elIsInput&&this.setPosition()),e},get date(){return this.currentDate},set view(e){if(this.viewIndex=this.viewIndexes.indexOf(e),!(this.viewIndex<0))return this.prevView=this.currentView,this.currentView=e,this.inited&&(this.views[e]?this.views[e]._render():this.views[e]=new s.fn.datepicker.Body(this,e,this.opts),this.views[this.prevView].hide(),this.views[e].show(),this.nav._render(),this.opts.onChangeView&&this.opts.onChangeView(e),this.elIsInput&&this.visible&&this.setPosition()),e},get view(){return this.currentView},get cellType(){return this.view.substring(0,this.view.length-1)},get minTime(){var e=p.getParsedDate(this.minDate);return new Date(e.year,e.month,e.date).getTime()},get maxTime(){var e=p.getParsedDate(this.maxDate);return new Date(e.year,e.month,e.date).getTime()},get curDecade(){return p.getDecade(this.date)}},p.getDaysCount=function(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()},p.getParsedDate=function(e){return{year:e.getFullYear(),month:e.getMonth(),fullMonth:e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,date:e.getDate(),fullDate:e.getDate()<10?"0"+e.getDate():e.getDate(),day:e.getDay(),hours:e.getHours(),fullHours:e.getHours()<10?"0"+e.getHours():e.getHours(),minutes:e.getMinutes(),fullMinutes:e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes()}},p.getDecade=function(e){var t=10*Math.floor(e.getFullYear()/10);return[t,t+9]},p.template=function(e,n){return e.replace(/#\{([\w]+)\}/g,function(e,t){if(n[t]||0===n[t])return n[t]})},p.isSame=function(e,t,n){if(!e||!t)return!1;var i=p.getParsedDate(e),r=p.getParsedDate(t),o=n||"day";return{day:i.date==r.date&&i.month==r.month&&i.year==r.year,month:i.month==r.month&&i.year==r.year,year:i.year==r.year}[o]},p.less=function(e,t,n){return!(!e||!t)&&t.getTime()e.getTime()},p.getLeadingZeroNum=function(e){return parseInt(e)<10?"0"+e:e},p.resetTime=function(e){if("object"==typeof e)return e=p.getParsedDate(e),new Date(e.year,e.month,e.date)},s.fn.datepicker=function(t){return this.each(function(){if(s.data(this,r)){var e=s.data(this,r);e.opts=s.extend(!0,e.opts,t),e.update()}else s.data(this,r,new u(this,t))})},s.fn.datepicker.Constructor=u,s.fn.datepicker.language={ru:{days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],daysShort:["Вос","Пон","Вто","Сре","Чет","Пят","Суб"],daysMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthsShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],today:"Сегодня",clear:"Очистить",dateFormat:"dd.mm.yyyy",timeFormat:"hh:ii",firstDay:1}},s(function(){s(".datepicker-here").datepicker()}),c={days:'
',months:'
',years:'
'},d=s.fn.datepicker,h=d.Constructor,d.Body=function(e,t,n){this.d=e,this.type=t,this.opts=n,this.$el=s(""),this.opts.onlyTimepicker||this.init()},d.Body.prototype={init:function(){this._buildBaseHtml(),this._render(),this._bindEvents()},_bindEvents:function(){this.$el.on("click",".datepicker--cell",s.proxy(this._onClickCell,this))},_buildBaseHtml:function(){this.$el=s(c[this.type]).appendTo(this.d.$content),this.$names=s(".datepicker--days-names",this.$el),this.$cells=s(".datepicker--cells",this.$el)},_getDayNamesHtml:function(e,t,n,i){return n=n||"",7<(i=i!=o?i:0)?n:7==(t=t!=o?t:e)?this._getDayNamesHtml(e,0,n,++i):(n+='
'+this.d.loc.daysMin[t]+"
",this._getDayNamesHtml(e,++t,n,++i))},_getCellContents:function(e,t){var n="datepicker--cell datepicker--cell-"+t,i=new Date,r=this.d,o=h.resetTime(r.minRange),s=h.resetTime(r.maxRange),a=r.opts,l=h.getParsedDate(e),u={},c=l.date;switch(t){case"day":r.isWeekend(l.day)&&(n+=" -weekend-"),l.month!=this.d.parsedDate.month&&(n+=" -other-month-",a.selectOtherMonths||(n+=" -disabled-"),a.showOtherMonths||(c=""));break;case"month":c=r.loc[r.opts.monthsField][l.month];break;case"year":var d=r.curDecade;c=l.year,(l.yeard[1])&&(n+=" -other-decade-",a.selectOtherYears||(n+=" -disabled-"),a.showOtherYears||(c=""))}return a.onRenderCell&&(c=(u=a.onRenderCell(e,t)||{}).html?u.html:c,n+=u.classes?" "+u.classes:""),a.range&&(h.isSame(o,e,t)&&(n+=" -range-from-"),h.isSame(s,e,t)&&(n+=" -range-to-"),1==r.selectedDates.length&&r.focused?((h.bigger(o,e)&&h.less(r.focused,e)||h.less(s,e)&&h.bigger(r.focused,e))&&(n+=" -in-range-"),h.less(s,e)&&h.isSame(r.focused,e)&&(n+=" -range-from-"),h.bigger(o,e)&&h.isSame(r.focused,e)&&(n+=" -range-to-")):2==r.selectedDates.length&&h.bigger(o,e)&&h.less(s,e)&&(n+=" -in-range-")),h.isSame(i,e,t)&&(n+=" -current-"),r.focused&&h.isSame(e,r.focused,t)&&(n+=" -focus-"),r._isSelected(e,t)&&(n+=" -selected-"),r._isInRange(e,t)&&!u.disabled||(n+=" -disabled-"),{html:c,classes:n}},_getDaysHtml:function(e){for(var t,n,i=h.getDaysCount(e),r=new Date(e.getFullYear(),e.getMonth(),1).getDay(),o=new Date(e.getFullYear(),e.getMonth(),i).getDay(),s=r-this.d.loc.firstDay,a=6-o+this.d.loc.firstDay,l="",u=1-(s=s<0?s+7:s),c=i+(a=6'+t.html+"
"},_getMonthsHtml:function(e){for(var t="",n=h.getParsedDate(e),i=0;i<12;)t+=this._getMonthHtml(new Date(n.year,i)),i++;return t},_getMonthHtml:function(e){var t=this._getCellContents(e,"month");return'
'+t.html+"
"},_getYearsHtml:function(e){h.getParsedDate(e);for(var t=h.getDecade(e),n="",i=t[0]-1;i<=t[1]+1;i++)n+=this._getYearHtml(new Date(i,0));return n},_getYearHtml:function(e){var t=this._getCellContents(e,"year");return'
'+t.html+"
"},_renderTypes:{days:function(){var e=this._getDayNamesHtml(this.d.loc.firstDay),t=this._getDaysHtml(this.d.currentDate);this.$cells.html(t),this.$names.html(e)},months:function(){var e=this._getMonthsHtml(this.d.currentDate);this.$cells.html(e)},years:function(){var e=this._getYearsHtml(this.d.currentDate);this.$cells.html(e)}},_render:function(){this.opts.onlyTimepicker||this._renderTypes[this.type].bind(this)()},_update:function(){var n,i,r,e=s(".datepicker--cell",this.$cells),o=this;e.each(function(e,t){i=s(this),r=o.d._getDateFromCell(s(this)),n=o._getCellContents(r,o.d.cellType),i.attr("class",n.classes)})},show:function(){this.opts.onlyTimepicker||(this.$el.addClass("active"),this.acitve=!0)},hide:function(){this.$el.removeClass("active"),this.active=!1},_handleClick:function(e){var t=e.data("date")||1,n=e.data("month")||0,i=e.data("year")||this.d.parsedDate.year,r=this.d;if(r.view==this.opts.minView){var o=new Date(i,n,t),s=this.d._isSelected(o,this.d.cellType);s?r._handleAlreadySelectedDates.bind(r,s,o)():r._trigger("clickCell",o)}else r.down(new Date(i,n,t))},_onClickCell:function(e){var t=s(e.target).closest(".datepicker--cell");t.hasClass("-disabled-")||this._handleClick.bind(this)(t)}},f=s.fn.datepicker,m=f.Constructor,f.Navigation=function(e,t){this.d=e,this.opts=t,this.$buttonsContainer="",this.init()},f.Navigation.prototype={init:function(){this._buildBaseHtml(),this._bindEvents()},_bindEvents:function(){this.d.$nav.on("click",".datepicker--nav-action",s.proxy(this._onClickNavButton,this)),this.d.$nav.on("click",".datepicker--nav-title",s.proxy(this._onClickNavTitle,this)),this.d.$datepicker.on("click",".datepicker--button",s.proxy(this._onClickNavButton,this))},_buildBaseHtml:function(){this.opts.onlyTimepicker||this._render(),this._addButtonsIfNeed()},_addButtonsIfNeed:function(){this.opts.todayButton&&this._addButton("today"),this.opts.clearButton&&this._addButton("clear")},_render:function(){var e=this._getTitle(this.d.currentDate),t=m.template('
#{prevHtml}
#{title}
#{nextHtml}
',s.extend({title:e},this.opts));this.d.$nav.html(t),"years"==this.d.view&&s(".datepicker--nav-title",this.d.$nav).addClass("-disabled-"),this.setNavStatus()},_getTitle:function(e){return this.d.formatDate(this.opts.navTitles[this.d.view],e)},_addButton:function(e){this.$buttonsContainer.length||this._addButtonsContainer();var t={action:e,label:this.d.loc[e]},n=m.template('#{label}',t);s("[data-action="+e+"]",this.$buttonsContainer).length||this.$buttonsContainer.append(n)},_addButtonsContainer:function(){this.d.$datepicker.append('
'),this.$buttonsContainer=s(".datepicker--buttons",this.d.$datepicker)},setNavStatus:function(){if((this.opts.minDate||this.opts.maxDate)&&this.opts.disableNavWhenOutOfRange){var e=this.d.parsedDate,t=e.month,n=e.year,i=e.date;switch(this.d.view){case"days":this.d._isInRange(new Date(n,t-1,1),"month")||this._disableNav("prev"),this.d._isInRange(new Date(n,t+1,1),"month")||this._disableNav("next");break;case"months":this.d._isInRange(new Date(n-1,t,i),"year")||this._disableNav("prev"),this.d._isInRange(new Date(n+1,t,i),"year")||this._disableNav("next");break;case"years":var r=m.getDecade(this.d.date);this.d._isInRange(new Date(r[0]-1,0,1),"year")||this._disableNav("prev"),this.d._isInRange(new Date(r[1]+1,0,1),"year")||this._disableNav("next")}}},_disableNav:function(e){s('[data-action="'+e+'"]',this.d.$nav).addClass("-disabled-")},_activateNav:function(e){s('[data-action="'+e+'"]',this.d.$nav).removeClass("-disabled-")},_onClickNavButton:function(e){var t=s(e.target).closest("[data-action]").data("action");this.d[t]()},_onClickNavTitle:function(e){if(!s(e.target).hasClass("-disabled-"))return"days"==this.d.view?this.d.view="months":void(this.d.view="years")}},g=s.fn.datepicker,v=g.Constructor,g.Timepicker=function(e,t){this.d=e,this.opts=t,this.init()},g.Timepicker.prototype={init:function(){var e="input";this._setTime(this.d.date),this._buildHTML(),navigator.userAgent.match(/trident/gi)&&(e="change"),this.d.$el.on("selectDate",this._onSelectDate.bind(this)),this.$ranges.on(e,this._onChangeRange.bind(this)),this.$ranges.on("mouseup",this._onMouseUpRange.bind(this)),this.$ranges.on("mousemove focus ",this._onMouseEnterRange.bind(this)),this.$ranges.on("mouseout blur",this._onMouseOutRange.bind(this))},_setTime:function(e){var t=v.getParsedDate(e);this._handleDate(e),this.hours=t.hourse.getHours()&&(this.minMinutes=this.opts.minMinutes)},_setMaxTimeFromDate:function(e){this.maxHours=e.getHours(),this.maxMinutes=e.getMinutes(),this.d.lastSelectedDate&&this.d.lastSelectedDate.getHours()this.maxHours&&(this.hours=this.maxHours),this.minutesthis.maxMinutes&&(this.minutes=this.maxMinutes)},_buildHTML:function(){var e=v.getLeadingZeroNum,t={hourMin:this.minHours,hourMax:e(this.maxHours),hourStep:this.opts.hoursStep,hourValue:this.hours,hourVisible:e(this.displayHours),minMin:this.minMinutes,minMax:e(this.maxMinutes),minStep:this.opts.minutesStep,minValue:e(this.minutes)},n=v.template('
#{hourVisible} : #{minValue}
',t);this.$timepicker=s(n).appendTo(this.d.$datepicker),this.$ranges=s('[type="range"]',this.$timepicker),this.$hours=s('[name="hours"]',this.$timepicker),this.$minutes=s('[name="minutes"]',this.$timepicker),this.$hoursText=s(".datepicker--time-current-hours",this.$timepicker),this.$minutesText=s(".datepicker--time-current-minutes",this.$timepicker),this.d.ampm&&(this.$ampm=s('').appendTo(s(".datepicker--time-current",this.$timepicker)).html(this.dayPeriod),this.$timepicker.addClass("-am-pm-"))},_updateCurrentTime:function(){var e=v.getLeadingZeroNum(this.displayHours),t=v.getLeadingZeroNum(this.minutes);this.$hoursText.html(e),this.$minutesText.html(t),this.d.ampm&&this.$ampm.html(this.dayPeriod)},_updateRanges:function(){this.$hours.attr({min:this.minHours,max:this.maxHours}).val(this.hours),this.$minutes.attr({min:this.minMinutes,max:this.maxMinutes}).val(this.minutes)},_handleDate:function(e){this._setDefaultMinMaxTime(),e&&(v.isSame(e,this.d.opts.minDate)?this._setMinTimeFromDate(this.d.opts.minDate):v.isSame(e,this.d.opts.maxDate)&&this._setMaxTimeFromDate(this.d.opts.maxDate)),this._validateHoursMinutes(e)},update:function(){this._updateRanges(),this._updateCurrentTime()},_getValidHoursFromDate:function(e,t){var n=e;e instanceof Date&&(n=v.getParsedDate(e).hours);var i="am";if(t||this.d.ampm)switch(!0){case 0==n:n=12;break;case 12==n:i="pm";break;case 11/g,">").replace(/"/g,""")},t={before:function(e,t,n){var i=e[t];e[t]=function(){return n.apply(e,arguments),i.apply(e,arguments)}},after:function(t,e,n){var i=t[e];t[e]=function(){var e=i.apply(t,arguments);return n.apply(t,arguments),e}}},n=function(t,n,e){var i,r=t.trigger,o={};for(i in t.trigger=function(){var e=arguments[0];if(-1===n.indexOf(e))return r.apply(t,arguments);o[e]=arguments},e.apply(t,[]),t.trigger=r,o)o.hasOwnProperty(i)&&r.apply(t,o[i])},p=function(e){var t={};if("selectionStart"in e)t.start=e.selectionStart,t.length=e.selectionEnd-t.start;else if(document.selection){e.focus();var n=document.selection.createRange(),i=document.selection.createRange().text.length;n.moveStart("character",-e.value.length),t.start=n.text.length-i,t.length=i}return t},E=function(h){var f=null,e=function(e,t){var n,i,r,o,s,a,l,u,c,d;(t=t||{},(e=e||window.event||{}).metaKey||e.altKey)||(t.force||!1!==h.data("grow"))&&(n=h.val(),e.type&&"keydown"===e.type.toLowerCase()&&(r=48<=(i=e.keyCode)&&i<=57||65<=i&&i<=90||96<=i&&i<=111||186<=i&&i<=222||32===i,46===i||8===i?(u=p(h[0])).length?n=n.substring(0,u.start)+n.substring(u.start+u.length):8===i&&u.start?n=n.substring(0,u.start-1)+n.substring(u.start+1):46===i&&void 0!==u.start&&(n=n.substring(0,u.start)+n.substring(u.start+1)):r&&(a=e.shiftKey,l=String.fromCharCode(e.keyCode),n+=l=a?l.toUpperCase():l.toLowerCase())),o=h.attr("placeholder"),!n&&o&&(n=o),d=h,(s=((c=n)?(_.$testInput||(_.$testInput=C("").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).appendTo("body")),_.$testInput.text(c),function(e,t,n){var i,r,o={};if(n)for(i=0,r=n.length;i").addClass(m.wrapperClass).addClass(a).addClass(s),t=C("
").addClass(m.inputClass).addClass("items").appendTo(e),n=C('').appendTo(t).attr("tabindex",_.is(":disabled")?"-1":p.tabIndex),o=C(m.dropdownParent||e),i=C("
").addClass(m.dropdownClass).addClass(s).hide().appendTo(o),r=C("
").addClass(m.dropdownContentClass).appendTo(i),(u=_.attr("id"))&&(n.attr("id",u+"-selectized"),C("label[for='"+u+"']").attr("for",u+"-selectized")),p.settings.copyClassesToDropdown&&i.addClass(a),e.css({width:_[0].style.width}),p.plugins.names.length&&(l="plugin-"+p.plugins.names.join(" plugin-"),e.addClass(l),i.addClass(l)),(null===m.maxItems||1[data-selectable]",function(e){e.stopImmediatePropagation()}),i.on("mouseenter","[data-selectable]",function(){return p.onOptionHover.apply(p,arguments)}),i.on("mousedown click","[data-selectable]",function(){return p.onOptionSelect.apply(p,arguments)}),d="mousedown",h="*:not(input)",f=function(){return p.onItemSelect.apply(p,arguments)},(c=t).on(d,h,function(e){for(var t=e.target;t&&t.parentNode!==c[0];)t=t.parentNode;return e.currentTarget=t,f.apply(this,[e])}),E(n),t.on({mousedown:function(){return p.onMouseDown.apply(p,arguments)},click:function(){return p.onClick.apply(p,arguments)}}),n.on({mousedown:function(e){e.stopPropagation()},keydown:function(){return p.onKeyDown.apply(p,arguments)},keyup:function(){return p.onKeyUp.apply(p,arguments)},keypress:function(){return p.onKeyPress.apply(p,arguments)},resize:function(){p.positionDropdown.apply(p,[])},blur:function(){return p.onBlur.apply(p,arguments)},focus:function(){return p.ignoreBlur=!1,p.onFocus.apply(p,arguments)},paste:function(){return p.onPaste.apply(p,arguments)}}),y.on("keydown"+g,function(e){p.isCmdDown=e[b?"metaKey":"ctrlKey"],p.isCtrlDown=e[b?"altKey":"ctrlKey"],p.isShiftDown=e.shiftKey}),y.on("keyup"+g,function(e){e.keyCode===k&&(p.isCtrlDown=!1),16===e.keyCode&&(p.isShiftDown=!1),e.keyCode===D&&(p.isCmdDown=!1)}),y.on("mousedown"+g,function(e){if(p.isFocused){if(e.target===p.$dropdown[0]||e.target.parentNode===p.$dropdown[0])return!1;p.$control.has(e.target).length||e.target===p.$control[0]||p.blur(e.target)}}),v.on(["scroll"+g,"resize"+g].join(" "),function(){p.isOpen&&p.positionDropdown.apply(p,arguments)}),v.on("mousemove"+g,function(){p.ignoreHover=!1}),this.revertSettings={$children:_.children().detach(),tabindex:_.attr("tabindex")},_.attr("tabindex",-1).hide().after(p.$wrapper),C.isArray(m.items)&&(p.setValue(m.items),delete m.items),S&&_.on("invalid"+g,function(e){e.preventDefault(),p.isInvalid=!0,p.refreshState()}),p.updateOriginalInput(),p.refreshItems(),p.refreshState(),p.updatePlaceholder(),p.isSetup=!0,_.is(":disabled")&&p.disable(),p.on("change",this.onChange),_.data("selectize",p),_.addClass("selectized"),p.trigger("initialize"),!0===m.preload&&p.onSearchChange("")},setupTemplates:function(){var n=this.settings.labelField,i=this.settings.optgroupLabelField,e={optgroup:function(e){return'
'+e.html+"
"},optgroup_header:function(e,t){return'
'+t(e[i])+"
"},option:function(e,t){return'
'+t(e[n])+"
"},item:function(e,t){return'
'+t(e[n])+"
"},option_create:function(e,t){return'
Add '+t(e.input)+"
"}};this.settings.render=C.extend({},e,this.settings.render)},setupCallbacks:function(){var e,t,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(e in n)n.hasOwnProperty(e)&&(t=this.settings[n[e]])&&this.on(e,t)},onClick:function(e){this.isFocused&&this.isOpen||(this.focus(),e.preventDefault())},onMouseDown:function(e){var t=this,n=e.isDefaultPrevented();C(e.target);if(t.isFocused){if(e.target!==t.$control_input[0])return"single"===t.settings.mode?t.isOpen?t.close():t.open():n||t.setActiveItem(null),!1}else n||window.setTimeout(function(){t.focus()},0)},onChange:function(){this.$input.trigger("change")},onPaste:function(e){var r=this;r.isFull()||r.isInputHidden||r.isLocked?e.preventDefault():r.settings.splitOn&&setTimeout(function(){var e=r.$control_input.val();if(e.match(r.settings.splitOn))for(var t=C.trim(e).split(r.settings.splitOn),n=0,i=t.length;n=this.settings.maxItems},updateOriginalInput:function(e){var t,n,i,r,o=this;if(e=e||{},1===o.tagType){for(i=[],t=0,n=o.items.length;t'+a(r)+"");i.length||this.$input.attr("multiple")||i.push(''),o.$input.html(i.join(""))}else o.$input.val(o.getValue()),o.$input.attr("value",o.$input.val());o.isSetup&&(e.silent||o.trigger("change",o.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var e=this.$control_input;this.items.length?e.removeAttr("placeholder"):e.attr("placeholder",this.settings.placeholder),e.triggerHandler("update",{force:!0})}},open:function(){var e=this;e.isLocked||e.isOpen||"multi"===e.settings.mode&&e.isFull()||(e.focus(),e.isOpen=!0,e.refreshState(),e.$dropdown.css({visibility:"hidden",display:"block"}),e.positionDropdown(),e.$dropdown.css({visibility:"visible"}),e.trigger("dropdown_open",e.$dropdown))},close:function(){var e=this,t=e.isOpen;"single"===e.settings.mode&&e.items.length&&(e.hideInput(),e.isBlurring||e.$control_input.blur()),e.isOpen=!1,e.$dropdown.hide(),e.setActiveOption(null),e.refreshState(),t&&e.trigger("dropdown_close",e.$dropdown)},positionDropdown:function(){var e=this.$control,t="body"===this.settings.dropdownParent?e.offset():e.position();t.top+=e.outerHeight(!0),this.$dropdown.css({width:e[0].getBoundingClientRect().width,top:t.top,left:t.left})},clear:function(e){var t=this;t.items.length&&(t.$control.children(":not(input)").remove(),t.items=[],t.lastQuery=null,t.setCaret(0),t.setActiveItem(null),t.updatePlaceholder(),t.updateOriginalInput({silent:e}),t.refreshState(),t.showInput(),t.trigger("clear"))},insertAtCaret:function(e){var t=Math.min(this.caretPos,this.items.length),n=e[0],i=this.buffer||this.$control[0];0===t?i.insertBefore(n,i.firstChild):i.insertBefore(n,i.childNodes[t]),this.setCaret(t+1)},deleteSelection:function(e){var t,n,i,r,o,s,a,l,u,c=this;if(i=e&&8===e.keyCode?-1:1,r=p(c.$control_input[0]),c.$activeOption&&!c.settings.hideSelected&&(a=c.getAdjacentOption(c.$activeOption,-1).attr("data-value")),o=[],c.$activeItems.length){for(u=c.$control.children(".active:"+(0
'+e.title+'×
'}},e),n.setup=(t=n.setup,function(){t.apply(n,arguments),n.$dropdown_header=C(e.html(e)),n.$dropdown.prepend(n.$dropdown_header)})}),_.define("optgroup_columns",function(a){var o,l=this;a=C.extend({equalizeWidth:!0,equalizeHeight:!0},a),this.getAdjacentOption=function(e,t){var n=e.closest("[data-group]").find("[data-selectable]"),i=n.index(e)+t;return 0<=i&&i
',e=e.firstChild,n.body.appendChild(e),t=u.width=e.offsetWidth-e.clientWidth,n.body.removeChild(e)),t},e=function(){var e,t,n,i,r,o,s;if((t=(s=C("[data-group]",l.$dropdown_content)).length)&&l.$dropdown_content.width()){if(a.equalizeHeight){for(e=n=0;e'+t.label+"",o.setup=(n=i.setup,function(){if(t.append){var r=i.settings.render.item;i.settings.render.item=function(e){return t=r.apply(o,arguments),n=s,i=t.search(/(<\/[^>]+>\s*)$/),t.substring(0,i)+n+t.substring(i);var t,n,i}}n.apply(o,arguments),o.$control.on("click","."+t.className,function(e){if(e.preventDefault(),!i.isLocked){var t=C(e.currentTarget).parent();i.setActiveItem(t),i.deleteSelection()&&i.setCaret(i.items.length)}})})):function(r,t){t.className="remove-single";var n,o=r,s=''+t.label+"";r.setup=(n=o.setup,function(){if(t.append){var e=C(o.$input.context).attr("id"),i=(C("#"+e),o.settings.render.item);o.settings.render.item=function(e){return t=i.apply(r,arguments),n=s,C("").append(t).append(n);var t,n}}n.apply(r,arguments),r.$control.on("click","."+t.className,function(e){e.preventDefault(),o.isLocked||o.clear()})})}(this,e)}),_.define("restore_on_backspace",function(i){var r,e=this;i.text=i.text||function(e){return e[this.settings.labelField]},this.onKeyDown=(r=e.onKeyDown,function(e){var t,n;return 8===e.keyCode&&""===this.$control_input.val()&&!this.$activeItems.length&&0<=(t=this.caretPos-1)&&t*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==W.supportPointer};for(var i in n)!(i in t)&&(t[i]=n[i]);for(var r in C(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&f,q(e,"mousedown",this._onTapStart),q(e,"touchstart",this._onTapStart),t.supportPointer&&q(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(q(e,"dragover",this),q(e,"dragenter",this)),k.push(this._onDragOver),t.store&&this.sort(t.store.get(this))}function U(e,t){"clone"!==e.lastPullMode&&(t=!0),E&&E.state!==t&&(K(E,"display",t?"none":""),t||E.state&&(e.options.group.revertClone?(O.insertBefore(E,M),e._animate(x,E)):O.insertBefore(E,x)),E.state=t)}function B(e,t,n){if(e){n=n||h;do{if(">*"===t&&e.parentNode===n||ne(e,t))return e}while(void 0,e=(r=(i=e).host)&&r.nodeType?r:i.parentNode)}var i,r;return null}function q(e,t,n){e.addEventListener(t,n,s)}function V(e,t,n){e.removeEventListener(t,n,s)}function z(e,t,n){if(e)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(r," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(r," ")}}function K(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return h.defaultView&&h.defaultView.getComputedStyle?n=h.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function G(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n)for(;r*"!==t&&!ne(e,t)||n++;return n}function ne(e,t){if(e){var n=(t=t.split(".")).shift().toUpperCase(),i=new RegExp("\\s("+t.join("|")+")(?=\\s)","g");return!(""!==n&&e.nodeName.toUpperCase()!=n||t.length&&((" "+e.className+" ").match(i)||[]).length!=t.length)}return!1}function ie(e,t){var n,i;return function(){void 0===n&&(n=arguments,i=this,L(function(){1===n.length?e.call(i,n[0]):e.apply(i,n),n=void 0},t))}}function re(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function oe(e){return n&&n.dom?n.dom(e).cloneNode(!0):t?t(e).clone(!0)[0]:e.cloneNode(!0)}function se(e){return L(e,0)}function ae(e){return clearTimeout(e)}return W.prototype={constructor:W,_onTapStart:function(e){var t,n=this,i=this.el,r=this.options,o=r.preventOnFilter,s=e.type,a=e.touches&&e.touches[0],l=(a||e).target,u=e.target.shadowRoot&&e.path&&e.path[0]||l,c=r.filter;if(function(e){var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var i=t[n];i.checked&&D.push(i)}}(i),!x&&!(/mousedown|pointerdown/.test(s)&&0!==e.button||r.disabled)&&!u.isContentEditable&&(l=B(l,r.draggable,i))&&d!==l){if(t=te(l,r.draggable),"function"==typeof c){if(c.call(this,e,l,this))return Q(n,u,"filter",l,i,i,t),void(o&&e.preventDefault())}else if(c&&(c=c.split(",").some(function(e){if(e=B(u,e.trim(),i))return Q(n,e,"filter",l,i,i,t),!0})))return void(o&&e.preventDefault());r.handle&&!B(u,r.handle,i)||this._prepareDragStart(e,a,l,t)}},_prepareDragStart:function(e,t,n,i){var r,o=this,s=o.el,a=o.options,l=s.ownerDocument;n&&!x&&n.parentNode===s&&(c=e,O=s,S=(x=n).parentNode,M=x.nextSibling,d=n,$=a.group,u=i,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,x.style["will-change"]="all",r=function(){o._disableDelayedDrag(),x.draggable=o.nativeDraggable,z(x,a.chosenClass,!0),o._triggerDragStart(e,t),Q(o,O,"choose",x,O,O,u)},a.ignore.split(",").forEach(function(e){G(x,e.trim(),Z)}),q(l,"mouseup",o._onDrop),q(l,"touchend",o._onDrop),q(l,"touchcancel",o._onDrop),q(l,"selectstart",o),a.supportPointer&&q(l,"pointercancel",o._onDrop),a.delay?(q(l,"mouseup",o._disableDelayedDrag),q(l,"touchend",o._disableDelayedDrag),q(l,"touchcancel",o._disableDelayedDrag),q(l,"mousemove",o._disableDelayedDrag),q(l,"touchmove",o._disableDelayedDrag),a.supportPointer&&q(l,"pointermove",o._disableDelayedDrag),o._dragStartTimer=L(r,a.delay)):r())},_disableDelayedDrag:function(){var e=this.el.ownerDocument;clearTimeout(this._dragStartTimer),V(e,"mouseup",this._disableDelayedDrag),V(e,"touchend",this._disableDelayedDrag),V(e,"touchcancel",this._disableDelayedDrag),V(e,"mousemove",this._disableDelayedDrag),V(e,"touchmove",this._disableDelayedDrag),V(e,"pointermove",this._disableDelayedDrag)},_triggerDragStart:function(e,t){(t=t||("touch"==e.pointerType?e:null))?(c={target:x,clientX:t.clientX,clientY:t.clientY},this._onDragStart(c,"touch")):this.nativeDraggable?(q(x,"dragend",this),q(O,"dragstart",this._onDragStart)):this._onDragStart(c,!0);try{h.selection?se(function(){h.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(){if(O&&x){var e=this.options;z(x,e.ghostClass,!0),z(x,e.dragClass,!1),Q(W.active=this,O,"start",x,O,O,u)}else this._nulling()},_emulateDragOver:function(){if(l){if(this._lastX===l.clientX&&this._lastY===l.clientY)return;this._lastX=l.clientX,this._lastY=l.clientY,p||K(T,"display","none");var e=h.elementFromPoint(l.clientX,l.clientY),t=e,n=k.length;if(e&&e.shadowRoot&&(t=e=e.shadowRoot.elementFromPoint(l.clientX,l.clientY)),t)do{if(t[R]){for(;n--;)k[n]({clientX:l.clientX,clientY:l.clientY,target:e,rootEl:t});break}e=t}while(t=t.parentNode);p||K(T,"display","")}},_onTouchMove:function(e){if(c){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,r=e.touches?e.touches[0]:e,o=r.clientX-c.clientX+i.x,s=r.clientY-c.clientY+i.y,a=e.touches?"translate3d("+o+"px,"+s+"px,0)":"translate("+o+"px,"+s+"px)";if(!W.active){if(n&&m(b(r.clientX-this._lastX),b(r.clientY-this._lastY))x.offsetWidth,y=t.offsetHeight>x.offsetHeight,_=.5<(g?(e.clientX-i.left)/p:(e.clientY-i.top)/m),w=t.nextElementSibling,b=!1;if(g){var D=x.offsetTop,k=t.offsetTop;b=D===k?t.previousElementSibling===x&&!v||_&&v:t.previousElementSibling===x||x.previousElementSibling===t?.5<(e.clientY-i.top)/m:D'+i+""),t.prev().height(t.height())},e.onload=function(e){t.html(''),t.height()<22?setTimeout(function(){t.prev().height(t.height())},20):t.prev().height(t.height())},e.src=n,$(t).next(".better-file-clear-checkbox")&&($(t).next(".better-file-clear-checkbox").prop("checked",!1),$(t).next().next().show()),!1}function arcticImageEvent(e,t){var n="";"function"==typeof Event?n=new CustomEvent(e,{detail:t}):((n=document.createEvent("Event")).detail=t,n.initEvent(e,!0,!0)),document.dispatchEvent(n)}function betterFile(){$(".better-file").each(function(){var e=$(this).find("input[type=file]"),n=$(this).find("label"),t=$(this).find(".better-file-clear");if($(e).off().on("change",function(){var e=URL.createObjectURL($(this).prop("files")[0]);get_file_preview(n,e,$(this).prop("files")[0].name);arcticImageEvent("arcticImageAdded",this)}),$(e).attr("initial")){var i=$(e).attr("initial"),r=i.split("\\").pop().split("/").pop();get_file_preview(n,i,r),t&&$(t).show()}$(n).off().on("click",function(){return"#upload"!=$(this).children().first().attr("href")||($(this).prev().click(),!1)}),$(t).off().on("click",function(){var e=$(this).prev(),t=$(this).parent().parent().find("input[type=file]");return $(e).prop("checked",!0),$(this).hide(),$(n).html(''+$(n).attr("placeholder")+""),$(n).prev().height(n.height()),t.val(null),arcticImageEvent("arcticImageRemoved",t),!1})})}function floatLabels(){$(".float-label input, .float-label textarea").each(function(){0==$(this).val().length&&0==$(this).text()&&($(this).addClass("empty"),$(this).val(""))}),$(".float-label input, .float-label textarea").off("blur.float").on("blur.float",function(){0<$(this).val().length||0<$(this).text().length?$(this).removeClass("empty"):($(this).addClass("empty"),$(this).val(""))}),$(".float-label .selectize-input.has-items").each(function(){$(this).css({paddingTop:"1.1rem",paddingBottom:".1rem"}),$(this).parent().next("label").css({top:".3rem",fontSize:"75%"})})}function django2datepicker(e){for(var t={"%":"",y:"yy",Y:"yyyy",m:"mm",d:"dd",H:"hh",I:"hh",M:"ii",p:"aa",S:""},n="",i=0,r=e.length;ib[a]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}t("Height"),t("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(b[a]&&b[a].bodyMargin)&&"0"!==(b[a]&&b[a].bodyMargin)||(b[a].bodyMarginV1=b[a].bodyMargin,b[a].bodyMargin=b[a].bodyMargin+"px"),r=H(a),k(n,"load",function(){var e,t;F("iFrame.onload",r,n,l,!0),e=b[a]&&b[a].firstRun,t=b[a]&&b[a].heightCalculationMethod in d,!e&&t&&N({iframe:n,height:0,width:0,type:"init"})}),F("init",r,n,l,!0),Function.prototype.bind&&b[a]&&(b[a].iframe.iFrameResizer={close:O.bind(null,b[a].iframe),resize:F.bind(null,"Window resize","resize",b[a].iframe),moveToAnchor:function(e){F("Move to anchor","moveToAnchor:"+e,b[a].iframe,a)},sendMessage:function(e){F("Send Message","message:"+(e=JSON.stringify(e)),b[a].iframe,a)}}))}function p(e,t){null===n&&(n=setTimeout(function(){n=null,e()},t))}function m(e){x("window","Trigger event: "+e),p(function(){R("Window "+e,"resize")},16)}function g(){"hidden"!==document.visibilityState&&(x("document","Trigger event: Visiblity change"),p(function(){R("Tab Visable","resize")},16))}function R(e,t){for(var n in b)b[i=n]&&"parent"===b[i].resizeFrom&&b[i].autoResize&&!b[i].firstRun&&F(e,t,document.getElementById(n),n);var i}function L(){function i(e,t){t&&(!function(){if(!t.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==t.tagName.toUpperCase())throw new TypeError("Expected