1/** 2 * Bootstrap Italia è un tema Bootstrap 4 per la creazione di applicazioni web nel pieno rispetto delle Linee guida di design per i servizi web della PA 3 * @version v1.2.0 4 * @link https://italia.github.io/bootstrap-italia/ 5 * @license BSD-3-Clause 6 */ 7 8if (typeof jQuery === 'undefined') { 9 throw new Error('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.') 10} 11 12+function ($) { 13 var version = $.fn.jquery.split(' ')[0].split('.') 14 if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] >= 4)) { 15 throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0') 16 } 17}(jQuery); 18 19 20+function () { 21function _defineProperties(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _createClass2(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),t}function showCapsLockMsg(t){$(".password-caps").remove(),t.parents(".form-group").append('<small class="password-caps form-text text-warning position-absolute bg-white w-100">CAPS LOCK inserito</small>')}!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self).bootstrap={},t.jQuery,t.Popper)}(this,function(t,f,d){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function l(s){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{},e=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(a).filter(function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.forEach(function(t){var e,i,n;e=s,n=a[i=t],i in e?Object.defineProperty(e,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[i]=n})}return s}f=f&&f.hasOwnProperty("default")?f.default:f,d=d&&d.hasOwnProperty("default")?d.default:d;var e="transitionend";function i(t){var e=this,i=!1;return f(this).one(m.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||m.triggerTransitionEnd(e)},t),this}var m={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var i=t.getAttribute("href");e=i&&"#"!==i?i.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=f(t).css("transition-duration"),i=f(t).css("transition-delay"),n=parseFloat(e),s=parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(parseFloat(e)+parseFloat(i))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){f(t).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var s=i[n],a=e[n],o=a&&m.isElement(a)?"element":(r=a,{}.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(s).test(o))throw new Error(t.toUpperCase()+': Option "'+n+'" provided type "'+o+'" but expected type "'+s+'".')}var r},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"!=typeof t.getRootNode)return t instanceof ShadowRoot?t:t.parentNode?m.findShadowRoot(t.parentNode):null;var e=t.getRootNode();return e instanceof ShadowRoot?e:null}};f.fn.emulateTransitionEnd=i,f.event.special[m.TRANSITION_END]={bindType:e,delegateType:e,handle:function(t){if(f(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var s="alert",a="bs.alert",r="."+a,c=f.fn[s],h={CLOSE:"close"+r,CLOSED:"closed"+r,CLICK_DATA_API:"click"+r+".data-api"},u="alert",p="fade",g="show",v=function(){function n(t){this._element=t}var t=n.prototype;return t.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)}
21,t.dispose=function(){f.removeData(this._element,a),this._element=null},t._getRootElement=function(t){var e=m.getSelectorFromElement(t),i=!1;return e&&(i=document.querySelector(e)),i||(i=f(t).closest("."+u)[0]),i},t._triggerCloseEvent=function(t){var e=f.Event(h.CLOSE);return f(t).trigger(e),e},t._removeElement=function(e){var i=this;if(f(e).removeClass(g),f(e).hasClass(p)){var t=m.getTransitionDurationFromElement(e);f(e).one(m.TRANSITION_END,function(t){return i._destroyElement(e,t)}).emulateTransitionEnd(t)}else this._destroyElement(e)},t._destroyElement=function(t){f(t).detach().trigger(h.CLOSED).remove()},n._jQueryInterface=function(i){return this.each(function(){var t=f(this),e=t.data(a);e||(e=new n(this),t.data(a,e)),"close"===i&&e[i](this)})},n._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},o(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();f(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',v._handleDismiss(new v)),f.fn[s]=v._jQueryInterface,f.fn[s].Constructor=v,f.fn[s].noConflict=function(){return f.fn[s]=c,v._jQueryInterface};var b="button",_="bs.button",y="."+_,w=".data-api",C=f.fn[b],k="active",$="btn",E="focus",x='[data-toggle^="button"]',I='[data-toggle="buttons"]',D='input:not([type="hidden"])',T=".active",A=".btn",S={CLICK_DATA_API:"click"+y+w,FOCUS_BLUR_DATA_API:"focus"+y+w+" blur"+y+w},L=function(){function i(t){this._element=t}var t=i.prototype;return t.toggle=function(){var t=!0,e=!0,i=f(this._element).closest(I)[0];if(i){var n=this._element.querySelector(D);if(n){if("radio"===n.type)if(n.checked&&this._element.classList.contains(k))t=!1;else{var s=i.querySelector(T);s&&f(s).removeClass(k)}if(t){if(n.hasAttribute("disabled")||i.hasAttribute("disabled")||n.classList.contains("disabled")||i.classList.contains("disabled"))return;n.checked=!this._element.classList.contains(k),f(n).trigger("change")}n.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(k)),t&&f(this._element).toggleClass(k)},t.dispose=function(){f.removeData(this._element,_),this._element=null},i._jQueryInterface=function(e){return this.each(function(){var t=f(this).data(_);t||(t=new i(this),f(this).data(_,t)),"toggle"===e&&t[e]()})},o(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i}();f(document).on(S.CLICK_DATA_API,x,function(t){t.preventDefault();var e=t.target;f(e).hasClass($)||(e=f(e).closest(A)),L._jQueryInterface.call(f(e),"toggle")}).on(S.FOCUS_BLUR_DATA_API,x,function(t){var e=f(t.target).closest(A)[0];f(e).toggleClass(E,/^focus(in)?$/.test(t.type))}),f.fn[b]=L._jQueryInterface,f.fn[b].Constructor=L,f.fn[b].noConflict=function(){return f.fn[b]=C,L._jQueryInterface};var O="carousel",P="bs.carousel",M="."+P,U=".data-api",N=f.fn[O],B={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},F={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},H="next",R="prev",W="left",j="right",z={SLIDE:"slide"+M,SLID:"slid"+M,KEYDOWN:"keydown"+M,MOUSEENTER:"mouseenter"+M,MOUSELEAVE:"mouseleave"+M,TOUCHSTART:"touchstart"+M,TOUCHMOVE:"touchmove"+M,TOUCHEND:"touchend"+M,POINTERDOWN:"pointerdown"+M,POINTERUP:"pointerup"+M,DRAG_START:"dragstart"+M,LOAD_DATA_API:"load"+M+U,CLICK_DATA_API:"click"+M+U},Y="carousel",K="active",q="slide",G="carousel-item-right",V="carousel-item-left",Q="carousel-item-next",X="carousel-item-prev",J="pointer-event",Z=".active",tt=".active.carousel-item",et=".carousel-item",it=".carousel-item img",nt=".carousel-item-next, .carousel-item-prev",st=".carousel-indicators",at="[data-slide], [data-slide-to]",ot='[data-ride="carousel"]',rt={TOUCH:"touch",PEN:"pen"},lt=function(){function a(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(st),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=a.prototype;return t.next=function(){this._isSliding||this._slide(H)},t.nextWhenVisible=function(){!document.hidden&&f(this._element).is(":visible")&&"hidden"
21!==f(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(R)},t.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(nt)&&(m.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(t){var e=this;this._activeElement=this._element.querySelector(tt);var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)f(this._element).one(z.SLID,function(){return e.to(t)});else{if(i===t)return this.pause(),void this.cycle();var n=i<t?H:R;this._slide(n,this._items[t])}},t.dispose=function(){f(this._element).off(M),f.removeData(this._element,P),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(t){return t=l({},B,t),m.typeCheckConfig(O,t,F),t},t._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;0<e&&this.prev(),e<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&f(this._element).on(z.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&f(this._element).on(z.MOUSEENTER,function(t){return e.pause(t)}).on(z.MOUSELEAVE,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var i=this;if(this._touchSupported){var e=function(t){i._pointerEvent&&rt[t.originalEvent.pointerType.toUpperCase()]?i.touchStartX=t.originalEvent.clientX:i._pointerEvent||(i.touchStartX=t.originalEvent.touches[0].clientX)},n=function(t){i._pointerEvent&&rt[t.originalEvent.pointerType.toUpperCase()]&&(i.touchDeltaX=t.originalEvent.clientX-i.touchStartX),i._handleSwipe(),"hover"===i._config.pause&&(i.pause(),i.touchTimeout&&clearTimeout(i.touchTimeout),i.touchTimeout=setTimeout(function(t){return i.cycle(t)},500+i._config.interval))};f(this._element.querySelectorAll(it)).on(z.DRAG_START,function(t){return t.preventDefault()}),this._pointerEvent?(f(this._element).on(z.POINTERDOWN,function(t){return e(t)}),f(this._element).on(z.POINTERUP,function(t){return n(t)}),this._element.classList.add(J)):(f(this._element).on(z.TOUCHSTART,function(t){return e(t)}),f(this._element).on(z.TOUCHMOVE,function(t){var e;(e=t).originalEvent.touches&&1<e.originalEvent.touches.length?i.touchDeltaX=0:i.touchDeltaX=e.originalEvent.touches[0].clientX-i.touchStartX}),f(this._element).on(z.TOUCHEND,function(t){return n(t)}))}},t._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},t._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(et)):[],this._items.indexOf(t)},t._getItemByDirection=function(t,e){var i=t===H,n=t===R,s=this._getItemIndex(e),a=this._items.length-1;if((n&&0===s||i&&s===a)&&!this._config.wrap)return e;var o=(s+(t===R?-1:1))%this._items.length;return-1===o?this._items[this._items.length-1]:this._items[o]},t._triggerSlideEvent=function(t,e){var i=this._getItemIndex(t),n=this._getItemIndex(this._element.querySelector(tt)),s=f.Event(z.SLIDE,{relatedTarget:t,direction:e,from:n,to:i});return f(this._element).trigger(s),s},t._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(Z));f(e).removeClass(K);var i=this._indicatorsElement.children[this._getItemIndex(t)];i&&f(i).addClass(K)}},t._slide=function(t,e){var i,n,s,a=this,o=this._element.querySelector(tt),r=this._getItemIndex(o),l=e||o&&this._getItemByDirection(t,o),c=this._getItemIndex(l),h=Boolean(this._interval);if(s=t===H?(i=V,n=Q,W):(i=G,n=X,j),l&&f(l).hasClass(K))this._isSliding=!1;else if(!this._triggerSlideEvent(l,s).isDefaultPrevented()&&o&&l){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(l);var d=f.Event(z.SLID,{relatedTarget:l,direction:s,from:r,to:c});if(f(this._element).hasClass(q)){f(l).addClass(n),m.reflow(l),f(o).addClass(i),f(l).addClass(i);var u=parseInt(l.getAttribute("data-interval"),10);this._config.interval=u?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,u):this._config.defaultInterval||this._config.interval;var p=m.getTransitionDurationFromElement(o);f(o).one(m.TRANSITION_END,function(){f(l).removeClass(i+" "+n).addClass(K),f(o).removeClass(K+" "+n+" "+i),a._isSliding=!1,setTimeout(function(){return f(a._element).trigger(d)},0)}).emulateTransitionEnd(p)}else f(o).removeClass(K),f(l).addClass(K),this._isSliding=!1,f(this._element).trigger(d);h&&this.cycle()}},a._jQueryInterface=function(n){return this.each(function(){var t=f(this).data(P),e=l({},B,f(this).data());"object"==typeof n&&(e=l({},e,n));var i="string"==typeof n?n:e.slide;if(t||(t=new a(this,e),f(this).data(P,t)),"number"==typeof n)t.to(n);else if("string"==typeof i){if(void 0===t[i])throw new TypeError('No method n
21amed "'+i+'"');t[i]()}else e.interval&&e.ride&&(t.pause(),t.cycle())})},a._dataApiClickHandler=function(t){var e=m.getSelectorFromElement(this);if(e){var i=f(e)[0];if(i&&f(i).hasClass(Y)){var n=l({},f(i).data(),f(this).data()),s=this.getAttribute("data-slide-to");s&&(n.interval=!1),a._jQueryInterface.call(f(i),n),s&&f(i).data(P).to(s),t.preventDefault()}}},o(a,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return B}}]),a}();f(document).on(z.CLICK_DATA_API,at,lt._dataApiClickHandler),f(window).on(z.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(ot)),e=0,i=t.length;e<i;e++){var n=f(t[e]);lt._jQueryInterface.call(n,n.data())}}),f.fn[O]=lt._jQueryInterface,f.fn[O].Constructor=lt,f.fn[O].noConflict=function(){return f.fn[O]=N,lt._jQueryInterface};var ct="collapse",ht="bs.collapse",dt="."+ht,ut=f.fn[ct],pt={toggle:!0,parent:""},ft={toggle:"boolean",parent:"(string|element)"},mt={SHOW:"show"+dt,SHOWN:"shown"+dt,HIDE:"hide"+dt,HIDDEN:"hidden"+dt,CLICK_DATA_API:"click"+dt+".data-api"},gt="show",vt="collapse",bt="collapsing",_t="collapsed",yt="width",wt="height",Ct=".show, .collapsing",kt='[data-toggle="collapse"]',$t=function(){function r(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i=[].slice.call(document.querySelectorAll(kt)),n=0,s=i.length;n<s;n++){var a=i[n],o=m.getSelectorFromElement(a),r=[].slice.call(document.querySelectorAll(o)).filter(function(t){return t===e});null!==o&&0<r.length&&(this._selector=o,this._triggerArray.push(a))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=r.prototype;return t.toggle=function(){f(this._element).hasClass(gt)?this.hide():this.show()},t.show=function(){var t,e,i=this;if(!this._isTransitioning&&!f(this._element).hasClass(gt)&&(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(Ct)).filter(function(t){return"string"==typeof i._config.parent?t.getAttribute("data-parent")===i._config.parent:t.classList.contains(vt)})).length&&(t=null),!(t&&(e=f(t).not(this._selector).data(ht))&&e._isTransitioning))){var n=f.Event(mt.SHOW);if(f(this._element).trigger(n),!n.isDefaultPrevented()){t&&(r._jQueryInterface.call(f(t).not(this._selector),"hide"),e||f(t).data(ht,null));var s=this._getDimension();f(this._element).removeClass(vt).addClass(bt),this._element.style[s]=0,this._triggerArray.length&&f(this._triggerArray).removeClass(_t).attr("aria-expanded",!0),this.setTransitioning(!0);var a="scroll"+(s[0].toUpperCase()+s.slice(1)),o=m.getTransitionDurationFromElement(this._element);f(this._element).one(m.TRANSITION_END,function(){f(i._element).removeClass(bt).addClass(vt).addClass(gt),i._element.style[s]="",i.setTransitioning(!1),f(i._element).trigger(mt.SHOWN)}).emulateTransitionEnd(o),this._element.style[s]=this._element[a]+"px"}}},t.hide=function(){var t=this;if(!this._isTransitioning&&f(this._element).hasClass(gt)){var e=f.Event(mt.HIDE);if(f(this._element).trigger(e),!e.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",m.reflow(this._element),f(this._element).addClass(bt).removeClass(vt).removeClass(gt);var n=this._triggerArray.length;if(0<n)for(var s=0;s<n;s++){var a=this._triggerArray[s],o=m.getSelectorFromElement(a);if(null!==o)f([].slice.call(document.querySelectorAll(o))).hasClass(gt)||f(a).addClass(_t).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[i]="";var r=m.getTransitionDurationFromElement(this._element);f(this._element).one(m.TRANSITION_END,function(){t.setTransitioning(!1),f(t._element).removeClass(bt).addClass(vt).trigger(mt.HIDDEN)}).emulateTransitionEnd(r)}}},t.setTransitioning=function(t){this._isTransitioning=t},t.dispose=function(){f.removeData(this._element,ht),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(t){return(t=l({},pt,t)).toggle=Boolean(t.toggle),m.typeCheckConfig(ct,t,ft),t},t._getDimension=function(){return f(this._element).hasClass(yt)?yt:wt},t._getParent=function(){var t,i=this;m.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var e='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',n=[].slice.call(t.querySelectorAll(e));return f(n).each(function(t,e){i._addAriaAndCollapsedClass(r._getTargetFromElement(e),[e])}),t},t._addAriaAndCollapsedClass=function(t,e){var i=f(t).hasClass(gt);e.length&&f(e).toggleClass(_t,!i).attr("aria-expanded",i)},r._getTargetFromElement=function(t){var e=m.getSelectorFromElement(t);return e?document.querySelector(e):null},r._jQueryInterface=function(n){return this.each(function(){var t=f(this),e=t.data(ht),i=l({},pt,t.data(),"object"==typeof n&&n?n:{});if(!e&&i.toggle&&/show|hide/.test(n)&&(i.toggle=!1),e||(e=new r(this,i),t.data(ht,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method n
21amed "'+n+'"');e[n]()}})},o(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return pt}}]),r}();f(document).on(mt.CLICK_DATA_API,kt,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var i=f(this),e=m.getSelectorFromElement(this),n=[].slice.call(document.querySelectorAll(e));f(n).each(function(){var t=f(this),e=t.data(ht)?"toggle":i.data();$t._jQueryInterface.call(t,e)})}),f.fn[ct]=$t._jQueryInterface,f.fn[ct].Constructor=$t,f.fn[ct].noConflict=function(){return f.fn[ct]=ut,$t._jQueryInterface};var Et="dropdown",xt="bs.dropdown",It="."+xt,Dt=".data-api",Tt=f.fn[Et],At=new RegExp("38|40|27"),St={HIDE:"hide"+It,HIDDEN:"hidden"+It,SHOW:"show"+It,SHOWN:"shown"+It,CLICK:"click"+It,CLICK_DATA_API:"click"+It+Dt,KEYDOWN_DATA_API:"keydown"+It+Dt,KEYUP_DATA_API:"keyup"+It+Dt},Lt="disabled",Ot="show",Pt="dropup",Mt="dropright",Ut="dropleft",Nt="dropdown-menu-right",Bt="position-static",Ft='[data-toggle="dropdown"]',Ht=".dropdown form",Rt=".dropdown-menu",Wt=".navbar-nav",jt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",zt="top-start",Yt="top-end",Kt="bottom-start",qt="bottom-end",Gt="right-start",Vt="left-start",Qt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},Xt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Jt=function(){function c(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=c.prototype;return t.toggle=function(){if(!this._element.disabled&&!f(this._element).hasClass(Lt)){var t=c._getParentFromElement(this._element),e=f(this._menu).hasClass(Ot);if(c._clearMenus(),!e){var i={relatedTarget:this._element},n=f.Event(St.SHOW,i);if(f(t).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar){if(void 0===d)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var s=this._element;"parent"===this._config.reference?s=t:m.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&f(t).addClass(Bt),this._popper=new d(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===f(t).closest(Wt).length&&f(document.body).children().on("mouseover",null,f.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),f(this._menu).toggleClass(Ot),f(t).toggleClass(Ot).trigger(f.Event(St.SHOWN,i))}}}},t.show=function(){if(!(this._element.disabled||f(this._element).hasClass(Lt)||f(this._menu).hasClass(Ot))){var t={relatedTarget:this._element},e=f.Event(St.SHOW,t),i=c._getParentFromElement(this._element);f(i).trigger(e),e.isDefaultPrevented()||(f(this._menu).toggleClass(Ot),f(i).toggleClass(Ot).trigger(f.Event(St.SHOWN,t)))}},t.hide=function(){if(!this._element.disabled&&!f(this._element).hasClass(Lt)&&f(this._menu).hasClass(Ot)){var t={relatedTarget:this._element},e=f.Event(St.HIDE,t),i=c._getParentFromElement(this._element);f(i).trigger(e),e.isDefaultPrevented()||(f(this._menu).toggleClass(Ot),f(i).toggleClass(Ot).trigger(f.Event(St.HIDDEN,t)))}},t.dispose=function(){f.removeData(this._element,xt),f(this._element).off(It),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;f(this._element).on(St.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(t){return t=l({},this.constructor.Default,f(this._element).data(),t),m.typeCheckConfig(Et,t,this.constructor.DefaultType),t},t._getMenuElement=function(){if(!this._menu){var t=c._getParentFromElement(this._element);t&&(this._menu=t.querySelector(Rt))}return this._menu},t._getPlacement=function(){var t=f(this._element.parentNode),e=Kt;return t.hasClass(Pt)?(e=zt,f(this._menu).hasClass(Nt)&&(e=Yt)):t.hasClass(Mt)?e=Gt:t.hasClass(Ut)?e=Vt:f(this._menu).hasClass(Nt)&&(e=qt),e},t._detectNavbar=function(){return 0<f(this._element).closest(".
21navbar").length},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),t},c._jQueryInterface=function(e){return this.each(function(){var t=f(this).data(xt);if(t||(t=new c(this,"object"==typeof e?e:null),f(this).data(xt,t)),"string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},c._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=[].slice.call(document.querySelectorAll(Ft)),i=0,n=e.length;i<n;i++){var s=c._getParentFromElement(e[i]),a=f(e[i]).data(xt),o={relatedTarget:e[i]};if(t&&"click"===t.type&&(o.clickEvent=t),a){var r=a._menu;if(f(s).hasClass(Ot)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&f.contains(s,t.target))){var l=f.Event(St.HIDE,o);f(s).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&f(document.body).children().off("mouseover",null,f.noop),e[i].setAttribute("aria-expanded","false"),f(r).removeClass(Ot),f(s).removeClass(Ot).trigger(f.Event(St.HIDDEN,o)))}}}},c._getParentFromElement=function(t){var e,i=m.getSelectorFromElement(t);return i&&(e=document.querySelector(i)),e||t.parentNode},c._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||f(t.target).closest(Rt).length)):At.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!f(this).hasClass(Lt))){var e=c._getParentFromElement(this),i=f(e).hasClass(Ot);if(i&&(!i||27!==t.which&&32!==t.which)){var n=[].slice.call(e.querySelectorAll(jt));if(0!==n.length){var s=n.indexOf(t.target);38===t.which&&0<s&&s--,40===t.which&&s<n.length-1&&s++,s<0&&(s=0),n[s].focus()}}else{if(27===t.which){var a=e.querySelector(Ft);f(a).trigger("focus")}f(this).trigger("click")}}},o(c,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Qt}},{key:"DefaultType",get:function(){return Xt}}]),c}();f(document).on(St.KEYDOWN_DATA_API,Ft,Jt._dataApiKeydownHandler).on(St.KEYDOWN_DATA_API,Rt,Jt._dataApiKeydownHandler).on(St.CLICK_DATA_API+" "+St.KEYUP_DATA_API,Jt._clearMenus).on(St.CLICK_DATA_API,Ft,function(t){t.preventDefault(),t.stopPropagation(),Jt._jQueryInterface.call(f(this),"toggle")}).on(St.CLICK_DATA_API,Ht,function(t){t.stopPropagation()}),f.fn[Et]=Jt._jQueryInterface,f.fn[Et].Constructor=Jt,f.fn[Et].noConflict=function(){return f.fn[Et]=Tt,Jt._jQueryInterface};var Zt="modal",te="bs.modal",ee="."+te,ie=f.fn[Zt],ne={backdrop:!0,keyboard:!0,focus:!0,show:!0},se={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},ae={HIDE:"hide"+ee,HIDDEN:"hidden"+ee,SHOW:"show"+ee,SHOWN:"shown"+ee,FOCUSIN:"focusin"+ee,RESIZE:"resize"+ee,CLICK_DISMISS:"click.dismiss"+ee,KEYDOWN_DISMISS:"keydown.dismiss"+ee,MOUSEUP_DISMISS:"mouseup.dismiss"+ee,MOUSEDOWN_DISMISS:"mousedown.dismiss"+ee,CLICK_DATA_API:"click"+ee+".data-api"},oe="modal-dialog-scrollable",re="modal-scrollbar-measure",le="modal-backdrop",ce="modal-open",he="fade",de="show",ue=".modal-dialog",pe=".modal-body",fe='[data-toggle="modal"]',me='[data-dismiss="modal"]',ge=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ve=".sticky-top",be=function(){function s(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(ue),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=s.prototype;return t.toggle=function(t){return this._isShown?this.hide():this.show(t)},t.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){f(this._element).hasClass(he)&&(this._isTransitioning=!0);var i=f.Event(ae.SHOW,{relatedTarget:t});f(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),f(this._element).on(ae.CLICK_DISMISS,me,function(t){return e.hide(t)}),f(this._dialog).on(ae.MOUSEDOWN_DISMISS,function(){f(e._element).one(ae.MOUSEUP_DISMISS,function(t){f(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},t.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var i=f.Event(ae.HIDE);if(f(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var n=f(this._element).hasClass(he);if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),f(document).off(ae.FOCUSIN),f(this._element).removeClass(de),f(this._element).off(ae.CLICK_DISMISS),f(this._dialog).off(ae.MOUSEDOWN_DISMISS),n){var s=m.getTransitionDurationFromElement(this._element);f(this._element).one(m.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(s)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return f(t).off(ee)}),f(document).off(ae.FOCUSIN),f.removeData(this._element,te),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(t){return t=l({},ne,t),m.typeCheckConfig(Zt,t,se),t},t._showElement=function(t){var e=this,i=f(this._element).hasClass(he);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),f(this._dialog).hasClass(oe)?this._dialog.querySelector(pe).scrollTop=0:this._element.scrollTop=0,i&&m.reflow(this._element),f(this._element).addClass(de),this._config.focus&&this._enforceFocus();var n=f.Event(ae.SHOWN,{relatedTarget:t}),s=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,f(e._element).trigger(n)};if(i){var a=m.getTransitionDurationFromElement(this._dialog);f(this._dialog).one(m.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},t._enforceFocus=function(){var e=this;f(document).off(ae.FOCUSIN).on(ae.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===f(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?f(this._element).on(ae.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||f(this._element).off(ae.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?f(window).on(ae.RESIZE,function(t){return e.handleUpdate(t)}):f(window).off(ae.RESIZE)},t._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){f(document.body).removeClass(ce),t._resetAdjustments(),t._resetScrollbar(),f(t._element).trigger(ae.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&(f(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(t){var e=this,i=f(this._element).hasClass(he)?he:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=le,i&&this._backdrop.classList.add(i),f(this._backdrop).appendTo(document.body),f(this._element).on(ae.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),i&&m.reflow(this._backdrop),f(this._backdrop).addClass(de),!t)return;if(!i)return void t();var n=m.getTransitionDurationFromElement(this._backdrop);f(this._backdrop).one(m.TRANSITION_END,t).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){f(this._backdrop).removeClass(de);var s=function(){e._removeBackdrop(),t&&t()};if(f(this._element).hasClass(he)){var a=m.getTransitionDurationFromElement(this._backdrop);f(this._backdrop).one(m.TRANSITION_END,s).emulateTransitionEnd(a)}else s()}else t&&t()},t._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var s=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(ge)),e=[].slice.call(document.querySelectorAll(ve));f(t).each(function(t,e){var i=e.style.paddingRight,n=f(e).css("padding-right");f(e).data("padding-right",i).css("padding-right",parseFloat(n)+s._scrollbarWidth+"px")}),f(e).each(function(t,e){var i=e.style.marginRight,n=f(e).css("margin-right");f(e).data("margin-right",i).css("margin-right",parseFloat(n)-s._scrollbarWidth+"px")});var i=document.body.style.paddingRight,n=f(document.body).css("padding-right");f(document.body).data("padding-right",i).css("padding-right",parseFloat(n)+this._scrollbarWidth+"px")}f(document.body).addClass(ce)},t._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(ge));f(t).each(function(t,e){var i=f(e).data("padding-right");f(e).removeData("padding-right"),e.style.paddingRight=i||""});var e=[].slice.call(document.querySelectorAll(""+ve));f(e).each(function(t,e){var i=f(e).data("margin-right");void 0!==i&&f(e).css("margin-right",i).removeData("margin-right")});var i=f(document.body).data("padding-right");f(document.body).removeData("padding-right"),document.body.style.paddingRight=i||""},t._getScrollbarWidth=function(){var t=document.createElement("div");t.className=re,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},s._jQueryInterface=function(i,n){return this.each(function(){var t=f(this).data(te),e=l({},ne,f(this).data(),"object"==typeof i&&i?i:{});if(t||(t=new s(this,e),f(this).data(te,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method n
21amed "'+i+'"');t[i](n)}else e.show&&t.show(n)})},o(s,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return ne}}]),s}();f(document).on(ae.CLICK_DATA_API,fe,function(t){var e,i=this,n=m.getSelectorFromElement(this);n&&(e=document.querySelector(n));var s=f(e).data(te)?"toggle":l({},f(e).data(),f(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=f(e).one(ae.SHOW,function(t){t.isDefaultPrevented()||a.one(ae.HIDDEN,function(){f(i).is(":visible")&&i.focus()})});be._jQueryInterface.call(f(e),s,this)}),f.fn[Zt]=be._jQueryInterface,f.fn[Zt].Constructor=be,f.fn[Zt].noConflict=function(){return f.fn[Zt]=ie,be._jQueryInterface};var _e=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],ye={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},we=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Ce=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function ke(t,o,e){if(0===t.length)return t;if(e&&"function"==typeof e)return e(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),r=Object.keys(o),l=[].slice.call(i.body.querySelectorAll("*")),n=function(t,e){var i=l[t],n=i.nodeName.toLowerCase();if(-1===r.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var s=[].slice.call(i.attributes),a=[].concat(o["*"]||[],o[n]||[]);s.forEach(function(t){(function(t,e){var i=t.nodeName.toLowerCase();if(-1!==e.indexOf(i))return-1===_e.indexOf(i)||Boolean(t.nodeValue.match(we)||t.nodeValue.match(Ce));for(var n=e.filter(function(t){return t instanceof RegExp}),s=0,a=n.length;s<a;s++)if(i.match(n[s]))return!0;return!1})(t,a)||i.removeAttribute(t.nodeName)})},s=0,a=l.length;s<a;s++)n(s);return i.body.innerHTML}var $e="tooltip",Ee="bs.tooltip",xe="."+Ee,Ie=f.fn[$e],De="bs-tooltip",Te=new RegExp("(^|\\s)"+De+"\\S+","g"),Ae=["sanitize","whiteList","sanitizeFn"],Se={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object"},Le={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Oe={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:ye},Pe="show",Me="out",Ue={HIDE:"hide"+xe,HIDDEN:"hidden"+xe,SHOW:"show"+xe,SHOWN:"shown"+xe,INSERTED:"inserted"+xe,CLICK:"click"+xe,FOCUSIN:"focusin"+xe,FOCUSOUT:"focusout"+xe,MOUSEENTER:"mouseenter"+xe,MOUSELEAVE:"mouseleave"+xe},Ne="fade",Be="show",Fe=".tooltip-inner",He=".arrow",Re="hover",We="focus",je="click",ze="manual",Ye=function(){function n(t,e){if(void 0===d)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=n.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,i=f(t.currentTarget).data(e);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(f(this.getTipElement()).hasClass(Be))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),f.removeData(this.element,this.constructor.DATA_KEY),f(this.element).off(this.constructor.EVENT_KEY),f(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&f(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},t.show=function(){var e=this;if("none"===f(this.element).css("display"))throw new Error("Please use show on visible elements");var t=f.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){f(this.element).trigger(t);var i=m.findShadowRoot(this.element),n=f.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;var s=this.getTipElement(),a=m.getUID(this.constructor.NAME);s.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&f(s).addClass(Ne);var o="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,r=this._getAttachment(o);this.addAttachmentClass(r);var l=this._getContainer();f(s).data(this.constructor.DATA_KEY,this),f.contains(this.element.ownerDocument.documentElement,this.tip)||f(s).appendTo(l),f(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new d(this.element,s,{placement:r,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:He}
21,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),f(s).addClass(Be),"ontouchstart"in document.documentElement&&f(document.body).children().on("mouseover",null,f.noop);var c=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,f(e.element).trigger(e.constructor.Event.SHOWN),t===Me&&e._leave(null,e)};if(f(this.tip).hasClass(Ne)){var h=m.getTransitionDurationFromElement(this.tip);f(this.tip).one(m.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},t.hide=function(t){var e=this,i=this.getTipElement(),n=f.Event(this.constructor.Event.HIDE),s=function(){e._hoverState!==Pe&&i.parentNode&&i.parentNode.removeChild(i),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),f(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(f(this.element).trigger(n),!n.isDefaultPrevented()){if(f(i).removeClass(Be),"ontouchstart"in document.documentElement&&f(document.body).children().off("mouseover",null,f.noop),this._activeTrigger[je]=!1,this._activeTrigger[We]=!1,this._activeTrigger[Re]=!1,f(this.tip).hasClass(Ne)){var a=m.getTransitionDurationFromElement(i);f(i).one(m.TRANSITION_END,s).emulateTransitionEnd(a)}else s();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){f(this.getTipElement()).addClass(De+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||f(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(f(t.querySelectorAll(Fe)),this.getTitle()),f(t).removeClass(Ne+" "+Be)},t.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=ke(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?f(e).parent().is(t)||t.empty().append(e):t.text(f(e).text())},t.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:m.isElement(this.config.container)?f(this.config.container):f(document).find(this.config.container)},t._getAttachment=function(t){return Le[t.toUpperCase()]},t._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)f(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(t!==ze){var e=t===Re?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,i=t===Re?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;f(n.element).on(e,n.config.selector,function(t){return n._enter(t)}).on(i,n.config.selector,function(t){return n._leave(t)})}}),f(this.element).closest(".modal").on("hide.bs.modal",function(){n.element&&n.hide()}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(t,e){var i=this.constructor.DATA_KEY;(e=e||f(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusin"===t.type?We:Re]=!0),f(e.getTipElement()).hasClass(Be)||e._hoverState===Pe?e._hoverState=Pe:(clearTimeout(e._timeout),e._hoverState=Pe,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===Pe&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||f(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusout"===t.type?We:Re]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=Me,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===Me&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){var e=f(this.element).data();return Object.keys(e).forEach(function(t){-1!==Ae.indexOf(t)&&delete e[t]}),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),m.typeCheckConfig($e,t,this.constructor.DefaultType),t.sanitize&&(t.template=ke(t.template,t.whiteList,t.sanitizeFn)),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=f(this.getTipElement()),e=t.attr("class").match(Te);null!==e&&e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(f(t).removeClass(Ne),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},n._jQueryInterface=function(i){return this.each(function(){var t=f(this).data(Ee),e="object"==typeof i&&i;if((t||!/dispose|hide/.test(i))&&(t||(t=new n(this,e),f(this).data(Ee,t)),"string"==typeof i)){if(void 0===t[i])throw new TypeError('No method n
21amed "'+i+'"');t[i]()}})},o(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Oe}},{key:"NAME",get:function(){return $e}},{key:"DATA_KEY",get:function(){return Ee}},{key:"Event",get:function(){return Ue}},{key:"EVENT_KEY",get:function(){return xe}},{key:"DefaultType",get:function(){return Se}}]),n}();f.fn[$e]=Ye._jQueryInterface,f.fn[$e].Constructor=Ye,f.fn[$e].noConflict=function(){return f.fn[$e]=Ie,Ye._jQueryInterface};var Ke="popover",qe="bs.popover",Ge="."+qe,Ve=f.fn[Ke],Qe="bs-popover",Xe=new RegExp("(^|\\s)"+Qe+"\\S+","g"),Je=l({},Ye.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Ze=l({},Ye.DefaultType,{content:"(string|element|function)"}),ti="fade",ei="show",ii=".popover-header",ni=".popover-body",si={HIDE:"hide"+Ge,HIDDEN:"hidden"+Ge,SHOW:"show"+Ge,SHOWN:"shown"+Ge,INSERTED:"inserted"+Ge,CLICK:"click"+Ge,FOCUSIN:"focusin"+Ge,FOCUSOUT:"focusout"+Ge,MOUSEENTER:"mouseenter"+Ge,MOUSELEAVE:"mouseleave"+Ge},ai=function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),(e.prototype.constructor=e).__proto__=i;var s=n.prototype;return s.isWithContent=function(){return this.getTitle()||this._getContent()},s.addAttachmentClass=function(t){f(this.getTipElement()).addClass(Qe+"-"+t)},s.getTipElement=function(){return this.tip=this.tip||f(this.config.template)[0],this.tip},s.setContent=function(){var t=f(this.getTipElement());this.setElementContent(t.find(ii),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(ni),e),t.removeClass(ti+" "+ei)},s._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},s._cleanTipClass=function(){var t=f(this.getTipElement()),e=t.attr("class").match(Xe);null!==e&&0<e.length&&t.removeClass(e.join(""))},n._jQueryInterface=function(i){return this.each(function(){var t=f(this).data(qe),e="object"==typeof i?i:null;if((t||!/dispose|hide/.test(i))&&(t||(t=new n(this,e),f(this).data(qe,t)),"string"==typeof i)){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},o(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Je}},{key:"NAME",get:function(){return Ke}},{key:"DATA_KEY",get:function(){return qe}},{key:"Event",get:function(){return si}},{key:"EVENT_KEY",get:function(){return Ge}},{key:"DefaultType",get:function(){return Ze}}]),n}(Ye);f.fn[Ke]=ai._jQueryInterface,f.fn[Ke].Constructor=ai,f.fn[Ke].noConflict=function(){return f.fn[Ke]=Ve,ai._jQueryInterface};var oi="scrollspy",ri="bs.scrollspy",li="."+ri,ci=f.fn[oi],hi={offset:10,method:"auto",target:""},di={offset:"number",method:"string",target:"(string|element)"},ui={ACTIVATE:"activate"+li,SCROLL:"scroll"+li,LOAD_DATA_API:"load"+li+".data-api"},pi="dropdown-item",fi="active",mi='[data-spy="scroll"]',gi=".nav, .list-group",vi=".nav-link",bi=".nav-item",_i=".list-group-item",yi=".dropdown",wi=".dropdown-item",Ci=".dropdown-toggle",ki="offset",$i="position",Ei=function(){function i(t,e){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+vi+","+this._config.target+" "+_i+","+this._config.target+" "+wi,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,f(this._scrollElement).on(ui.SCROLL,function(t){return i._process(t)}),this.refresh(),this._process()}var t=i.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?ki:$i,s="auto"===this._config.method?t:this._config.method,a=s===$i?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,i=m.getSelectorFromElement(t);if(i&&(e=document.querySelector(i)),e){var n=e.getBoundingClientRect();if(n.width||n.height)return[f(e)[s]().top+a,i]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}
21).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){f.removeData(this._element,ri),f(this._scrollElement).off(li),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(t){if("string"!=typeof(t=l({},hi,"object"==typeof t&&t?t:{})).target){var e=f(t.target).attr("id");e||(e=m.getUID(oi),f(t.target).attr("id",e)),t.target="#"+e}return m.typeCheckConfig(oi,t,di),t},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),i<=t){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;){this._activeTarget!==this._targets[s]&&t>=this._offsets[s]&&(void 0===this._offsets[s+1]||t<this._offsets[s+1])&&this._activate(this._targets[s])}}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}),i=f([].slice.call(document.querySelectorAll(t.join(","))));i.hasClass(pi)?(i.closest(yi).find(Ci).addClass(fi),i.addClass(fi)):(i.addClass(fi),i.parents(gi).prev(vi+", "+_i).addClass(fi),i.parents(gi).prev(bi).children(vi).addClass(fi)),f(this._scrollElement).trigger(ui.ACTIVATE,{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(fi)}).forEach(function(t){return t.classList.remove(fi)})},i._jQueryInterface=function(e){return this.each(function(){var t=f(this).data(ri);if(t||(t=new i(this,"object"==typeof e&&e),f(this).data(ri,t)),"string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},o(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return hi}}]),i}();f(window).on(ui.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(mi)),e=t.length;e--;){var i=f(t[e]);Ei._jQueryInterface.call(i,i.data())}}),f.fn[oi]=Ei._jQueryInterface,f.fn[oi].Constructor=Ei,f.fn[oi].noConflict=function(){return f.fn[oi]=ci,Ei._jQueryInterface};var xi="bs.tab",Ii="."+xi,Di=f.fn.tab,Ti={HIDE:"hide"+Ii,HIDDEN:"hidden"+Ii,SHOW:"show"+Ii,SHOWN:"shown"+Ii,CLICK_DATA_API:"click"+Ii+".data-api"},Ai="dropdown-menu",Si="active",Li="disabled",Oi="fade",Pi="show",Mi=".dropdown",Ui=".nav, .list-group",Ni=".active",Bi="> li > .active",Fi='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',Hi=".dropdown-toggle",Ri="> .dropdown-menu .active",Wi=function(){function n(t){this._element=t}var t=n.prototype;return t.show=function(){var i=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&f(this._element).hasClass(Si)||f(this._element).hasClass(Li))){var t,n,e=f(this._element).closest(Ui)[0],s=m.getSelectorFromElement(this._element);if(e){var a="UL"===e.nodeName||"OL"===e.nodeName?Bi:Ni;n=(n=f.makeArray(f(e).find(a)))[n.length-1]}var o=f.Event(Ti.HIDE,{relatedTarget:this._element}),r=f.Event(Ti.SHOW,{relatedTarget:n});if(n&&f(n).trigger(o),f(this._element).trigger(r),!r.isDefaultPrevented()&&!o.isDefaultPrevented()){s&&(t=document.querySelector(s)),this._activate(this._element,e);var l=function(){var t=f.Event(Ti.HIDDEN,{relatedTarget:i._element}),e=f.Event(Ti.SHOWN,{relatedTarget:n});f(n).trigger(t),f(i._element).trigger(e)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){f.removeData(this._element,xi),this._element=null}
21,t._activate=function(t,e,i){var n=this,s=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?f(e).children(Ni):f(e).find(Bi))[0],a=i&&s&&f(s).hasClass(Oi),o=function(){return n._transitionComplete(t,s,i)};if(s&&a){var r=m.getTransitionDurationFromElement(s);f(s).removeClass(Pi).one(m.TRANSITION_END,o).emulateTransitionEnd(r)}else o()},t._transitionComplete=function(t,e,i){if(e){f(e).removeClass(Si);var n=f(e.parentNode).find(Ri)[0];n&&f(n).removeClass(Si),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(f(t).addClass(Si),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),m.reflow(t),t.classList.contains(Oi)&&t.classList.add(Pi),t.parentNode&&f(t.parentNode).hasClass(Ai)){var s=f(t).closest(Mi)[0];if(s){var a=[].slice.call(s.querySelectorAll(Hi));f(a).addClass(Si)}t.setAttribute("aria-expanded",!0)}i&&i()},n._jQueryInterface=function(i){return this.each(function(){var t=f(this),e=t.data(xi);if(e||(e=new n(this),t.data(xi,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},o(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();f(document).on(Ti.CLICK_DATA_API,Fi,function(t){t.preventDefault(),Wi._jQueryInterface.call(f(this),"show")}),f.fn.tab=Wi._jQueryInterface,f.fn.tab.Constructor=Wi,f.fn.tab.noConflict=function(){return f.fn.tab=Di,Wi._jQueryInterface};var ji="toast",zi="bs.toast",Yi="."+zi,Ki=f.fn[ji],qi={CLICK_DISMISS:"click.dismiss"+Yi,HIDE:"hide"+Yi,HIDDEN:"hidden"+Yi,SHOW:"show"+Yi,SHOWN:"shown"+Yi},Gi="fade",Vi="hide",Qi="show",Xi="showing",Ji={animation:"boolean",autohide:"boolean",delay:"number"},Zi={animation:!0,autohide:!0,delay:500},tn='[data-dismiss="toast"]',en=function(){function n(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var t=n.prototype;return t.show=function(){var t=this;f(this._element).trigger(qi.SHOW),this._config.animation&&this._element.classList.add(Gi);var e=function(){t._element.classList.remove(Xi),t._element.classList.add(Qi),f(t._element).trigger(qi.SHOWN),t._config.autohide&&t.hide()};if(this._element.classList.remove(Vi),this._element.classList.add(Xi),this._config.animation){var i=m.getTransitionDurationFromElement(this._element);f(this._element).one(m.TRANSITION_END,e).emulateTransitionEnd(i)}else e()},t.hide=function(t){var e=this;this._element.classList.contains(Qi)&&(f(this._element).trigger(qi.HIDE),t?this._close():this._timeout=setTimeout(function(){e._close()},this._config.delay))},t.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Qi)&&this._element.classList.remove(Qi),f(this._element).off(qi.CLICK_DISMISS),f.removeData(this._element,zi),this._element=null,this._config=null},t._getConfig=function(t){return t=l({},Zi,f(this._element).data(),"object"==typeof t&&t?t:{}),m.typeCheckConfig(ji,t,this.constructor.DefaultType),t},t._setListeners=function(){var t=this;f(this._element).on(qi.CLICK_DISMISS,tn,function(){return t.hide(!0)})},t._close=function(){var t=this,e=function(){t._element.classList.add(Vi),f(t._element).trigger(qi.HIDDEN)};if(this._element.classList.remove(Qi),this._config.animation){var i=m.getTransitionDurationFromElement(this._element);f(this._element).one(m.TRANSITION_END,e).emulateTransitionEnd(i)}else e()},n._jQueryInterface=function(i){return this.each(function(){var t=f(this),e=t.data(zi);if(e||(e=new n(this,"object"==typeof i&&i),t.data(zi,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i](this)}})},o(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return Ji}},{key:"Default",get:function(){return Zi}}]),n}();f.fn[ji]=en._jQueryInterface,f.fn[ji].Constructor=en,f.fn[ji].noConflict=function(){return f.fn[ji]=Ki,en._jQueryInterface},function(){if(void 0===f)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=f.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),t.Util=m,t.Alert=v,t.Button=L,t.Carousel=lt,t.Collapse=$t,t.Dropdown=Jt,t.Modal=be,t.Popover=ai,t.Scrollspy=Ei,t.Tab=Wi,t.Toast=en,t.Tooltip=Ye,Object.defineProperty(t,"__esMo
21dule",{value:!0})}),function(K){"use strict";"classList"in document.createElement("_")||function(t){if("Element"in t){var e="classList",i="prototype",n=t.Element[i],s=Object,a=function(){var i=K(this);return{add:function(t){return i.addClass(t)},remove:function(t){return i.removeClass(t)},toggle:function(t,e){return i.toggleClass(t,e)},contains:function(t){return i.hasClass(t)}}};if(s.defineProperty){var o={get:a,enumerable:!0,configurable:!0};try{s.defineProperty(n,e,o)}catch(t){void 0!==t.number&&-2146823252!==t.number||(o.enumerable=!1,s.defineProperty(n,e,o))}}else s[i].__defineGetter__&&n.__defineGetter__(e,a)}}(window);var t,c,e,i=document.createElement("_");if(i.classList.toggle("c3",!1),i.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}function E(t){var e,i=[],n=t&&t.options;if(t.multiple)for(var s=0,a=n.length;s<a;s++)(e=n[s]).selected&&i.push(e.value||e.text);else i=t.value;return i}i=null,String.prototype.startsWith||(t=function(){try{var t={},e=Object.defineProperty,i=e(t,t,t)&&e}catch(t){}return i}(),c={}.toString,e=function(t){if(null==this)throw new TypeError;var e=String(this);if(t&&"[object RegExp]"==c.call(t))throw new TypeError;var i=e.length,n=String(t),s=n.length,a=1<arguments.length?arguments[1]:void 0,o=a?Number(a):0;o!=o&&(o=0);var r=Math.min(Math.max(o,0),i);if(i<s+r)return!1;for(var l=-1;++l<s;)if(e.charCodeAt(r+l)!=n.charCodeAt(l))return!1;return!0},t?t(String.prototype,"startsWith",{value:e,configurable:!0,writable:!0}):String.prototype.startsWith=e),Object.keys||(Object.keys=function(t,e,i){for(e in i=[],t)i.hasOwnProperty.call(t,e)&&i.push(e);return i});var a={useDefault:!1,_set:K.valHooks.select.set};K.valHooks.select.set=function(t,e){return e&&!a.useDefault&&K(t).data("selected",!0),a._set.apply(this,arguments)};var x=null,s=function(){try{return new Event("change"),!0}catch(t){return!1}}();function k(t,e,i,n){for(var s=["content","subtext","tokens"],a=!1,o=0;o<s.length;o++){var r=s[o],l=t[r];if(l&&(l=l.toString(),"content"===r&&(l=l.replace(/<[^>]+>/g,"")),n&&(l=m(l)),l=l.toUpperCase(),a="contains"===i?0<=l.indexOf(e):l.startsWith(e)))break}return a}function T(t){return parseInt(t,10)||0}K.fn.triggerNative=function(t){var e,i=this[0];i.dispatchEvent?(s?e=new Event(t,{bubbles:!0}):(e=document.createEvent("Event")).initEvent(t,!0,!1),i.dispatchEvent(e)):i.fireEvent?((e=document.createEventObject()).eventType=t,i.fireEvent("on"+t,e)):this.trigger(t)};var o={"Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã
":"A","à ":"a","á":"a","â":"a","ã":"a","ä":"a","Ã¥":"a","Ã":"C","ç":"c","Ã":"D","ð":"d","Ã":"E","Ã":"E","Ã":"E","Ã":"E","è":"e","é":"e","ê":"e","ë":"e","Ã":"I","Ã":"I","Ã":"I","Ã":"I","ì":"i","Ã":"i","î":"i","ï":"i","Ã":"N","ñ":"n","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ã":"U","Ã":"U","Ã":"U","Ã":"U","ù":"u","ú":"u","û":"u","ü":"u","Ã":"Y","ý":"y","ÿ":"y","Ã":"Ae","æ":"ae","Ã":"Th","þ":"th","Ã":"ss","Ä":"A","Ä":"A","Ä":"A","Ä":"a","Ä":"a","Ä
":"a","Ä":"C","Ä":"C","Ä":"C","Ä":"C","Ä":"c","Ä":"c","Ä":"c","Ä":"c","Ä":"D","Ä":"D","Ä":"d","Ä":"d","Ä":"E","Ä":"E","Ä":"E","Ä":"E","Ä":"E","Ä":"e","Ä":"e","Ä":"e","Ä":"e","Ä":"e","Ä":"G","Ä":"G","Ä ":"G","Ä¢":"G","Ä":"g","Ä":"g","Ä¡":"g","Ä£":"g","Ĥ":"H","Ħ":"H","Ä¥":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Ä®":"I","İ":"I","Ä©":"i","Ä«":"i","Ä":"i","į":"i","ı":"i","Ä´":"J","ĵ":"j","Ķ":"K","Ä·":"k","ĸ":"k","Ĺ":"L","Ä»":"L","Ľ":"L","Ä¿":"L","Å":"L","ĺ":"l","ļ":"l","ľ":"l","Å":"l","Å":"l","Å":"N","Å
":"N","Å":"N","Å":"N","Å":"n","Å":"n","Å":"n","Å":"n","Å":"O","Å":"O","Å":"O","Å":"o","Å":"o","Å":"o","Å":"R","Å":"R","Å":"R","Å":"r","Å":"r","Å":"r","Å":"S","Å":"S","Å":"S","Å ":"S","Å":"s","Å":"s","Å":"s","Å¡":"s","Å¢":"T","Ť":"T","Ŧ":"T","Å£":"t","Å¥":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Å®":"U","Ű":"U","Ų":"U","Å©":"u","Å«":"u","Å":"u","ů":"u","ű":"u","ų":"u","Å´":"W","ŵ":"w","Ŷ":"Y","Å·":"y","Ÿ":"Y","Ź":"Z","Å»":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Å":"Oe","Å":"oe","Å":"'n","Å¿":"s"}
21,r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,l=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");function h(t){return o[t]}function m(t){return(t=t.toString())&&t.replace(r,h).replace(l,"")}var d=function(e){var i=function(t){return e[t]},t="(?:"+Object.keys(e).join("|")+")",n=RegExp(t),s=RegExp(t,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(s,i):t}},q=d({"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"}),g=d({"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"}),$={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},I=27,D=13,A=32,S=9,L=38,O=40,G={success:!1,major:"3"};try{G.full=(K.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),G.major=G.full[0],G.success=!0}catch(t){console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",t)}var u=0,P=".bs.select",V={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title"},M={MENU:"."+V.MENU};"4"===G.major&&(V.DIVIDER="dropdown-divider",V.SHOW="show",V.BUTTONCLASS="btn-light",V.POPOVERHEADER="popover-header");var U=new RegExp(L+"|"+O),N=new RegExp("^"+S+"$|"+I),p=function t(e,i){var n=this;a.useDefault||(K.valHooks.select.set=a._set,a.useDefault=!0),this.$element=K(e),this.$newElement=null,this.$button=null,this.$menu=null,this.options=i,this.selectpicker={main:{map:{newIndex:{},originalIndex:{}}},current:{map:{}},search:{map:{}},view:{},keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout(function(){n.selectpicker.keydown.keyHistory=""},800)}}}},null===this.options.title&&(this.options.title=this.$element.attr("title"));var s=this.options.windowPadding;"number"==typeof s&&(this.options.windowPadding=[s,s,s,s]),this.val=t.prototype.val,this.render=t.prototype.render,this.refresh=t.prototype.refresh,this.setStyle=t.prototype.setStyle,this.selectAll=t.prototype.selectAll,this.deselectAll=t.prototype.deselectAll,this.destroy=t.prototype.destroy,this.remove=t.prototype.remove,this.show=t.prototype.show,this.hide=t.prototype.hide,this.init()};function f(t){var a,o=arguments,r=t;if([].shift.apply(o),!G.success){try{G.full=(K.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(t){G.full=p.BootstrapVersion.split(" ")[0].split(".")}G.major=G.full[0],G.success=!0,"4"===G.major&&(V.DIVIDER="dropdown-divider",V.SHOW="show",V.BUTTONCLASS="btn-light",p.DEFAULTS.style=V.BUTTONCLASS="btn-light",V.POPOVERHEADER="popover-header")}var e=this.each(function(){var t=K(this);if(t.is("select")){var e=t.data("selectpicker"),i="object"==typeof r&&r;if(e){if(i)for(var n in i)i.hasOwnProperty(n)&&(e.options[n]=i[n])}else{var s=K.extend({},p.DEFAULTS,K.fn.selectpicker.defaults||{},t.data(),i);s.template=K.extend({},p.DEFAULTS.template,K.fn.selectpicker.defaults?K.fn.selectpicker.defaults.template:{},t.data().template,i.template),t.data("selectpicker",e=new p(this,s))}"string"==typeof r&&(a=e[r]instanceof Function?e[r].apply(e,o):e.options[r])}});return void 0!==a?a:e}p.VERSION="1.13.5",p.BootstrapVersion=G.major,p.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(t,e){return 1==t?"{0} item selected":"{0} items selected"},maxOptionsText:function(t,e){return[1==t?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==e?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:V.BUTTONCLASS,size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:"glyphicon",tickIcon:"glyphicon-ok",showTick:!1,template:{caret:'<span class="caret"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1},"4"===G.major&&(p.DEFAULTS.style="btn-light",p.DEFAULTS.iconBase="",p.DEFAULTS.tickIcon="bs-ok-default"),p.prototype={constructor:p,init:function(){var i=this,t=this.$element.attr("id");this.selectId=u++,this.$element.addClass("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$newElement=this.createDropdown(),this.createLi(),this.$element.after(this.$newElement).prependTo(this.$newElement),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(M.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$element.removeClass("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu.addClass(V.MENURIGHT),void 0!==t&&this.$button.attr("data-id",t),this.checkDisabled(),this.clickListener(),this.options.liveSearch&&this.liveSearchListener(),this.render(),this.setStyle(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide"+P,function(){if(i.isVirtual()){var t=i.$menuInner[0],e=t.firstChild.cloneNode(!1);t.replaceChild(e,t.firstChild),t.scrollTop=0}}),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(t){i.$menuInner.attr("aria-expanded",!1),i.$element.trigger("hide"+P,t)},"hidden.bs.dropdown":function(t){i.$element.trigger("hidden"+P,t)},"show.bs.dropdown":function(t){i.$menuInner.attr("aria-expanded",!0),i.$element.trigger("show"+P,t)},"shown.bs.dropdown":function(t){i.$element.trigger("shown"+P,t)}}),i.$element[0].hasAttribute("required")&&this.$element.on("invalid",function(){i.$button.addClass("bs-invalid"),i.$element.on("shown"+P+".invali
21d",function(){i.$element.val(i.$element.val()).off("shown"+P+".invalid")}).on("rendered"+P,function(){this.validity.valid&&i.$button.removeClass("bs-invalid"),i.$element.off("rendered"+P)}),i.$button.on("blur"+P,function(){i.$element.focus().blur(),i.$button.off("blur"+P)})}),setTimeout(function(){i.$element.trigger("loaded"+P)})},createDropdown:function(){var t,e=this.multiple||this.options.showTick?" show-tick":"",i=this.autofocus?" autofocus":"",n="",s="",a="",o="";return this.options.header&&(n='<div class="'+V.POPOVERHEADER+'"><button type="button" class="close" aria-hidden="true">×</button>'+this.options.header+"</div>"),this.options.liveSearch&&(s='<div class="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+q(this.options.liveSearchPlaceholder)+'"')+' role="textbox" aria-label="Search"></div>'),this.multiple&&this.options.actionsBox&&(a='<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn '+V.BUTTONCLASS+'">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn '+V.BUTTONCLASS+'">'+this.options.deselectAllText+"</button></div></div>"),this.multiple&&this.options.doneButton&&(o='<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm '+V.BUTTONCLASS+'">'+this.options.doneButtonText+"</button></div></div>"),t='<div class="dropdown bootstrap-select'+e+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" '+("static"===this.options.display?'data-display="static"':"")+'data-toggle="dropdown"'+i+' role="button"><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"></div></div> </div>'+("4"===G.major?"":'<span class="bs-caret">'+this.options.template.caret+"</span>")+'</button><div class="'+V.MENU+" "+("4"===G.major?"":V.SHOW)+'" role="combobox">'+n+s+a+'<div class="inner '+V.SHOW+'" role="listbox" aria-expanded="false" tabindex="-1"><ul class="'+V.MENU+" inner "+("4"===G.major?V.SHOW:"")+'"></ul></div>'+o+"</div></div>",K(t)},setPositionData:function(){this.selectpicker.view.canHighlight=[];for(var t=0;t<this.selectpicker.current.data.length;t++){var e=this.selectpicker.current.data[t],i=!0;"divider"===e.type?(i=!1,e.height=this.sizeInfo.dividerHeight):"optgroup-label"===e.type?(i=!1,e.height=this.sizeInfo.dropdownHeaderHeight):e.height=this.sizeInfo.liHeight,e.disabled&&(i=!1),this.selectpicker.view.canHighlight.push(i),e.position=(0===t?0:this.selectpicker.current.data[t-1].position)+e.height}},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.elements.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(I,t){t=t||0;var D=this;this.selectpicker.current=I?this.selectpicker.search:this.selectpicker.main;var T,A,S=[];function i(t,e){var i,n,s,a,o,r,l,c,h,d,u=D.selectpicker.current.elements.length,p=[],f=!0,m=D.isVirtual();D.selectpicker.view.scrollTop=t,!0===m&&D.sizeInfo.hasScrollBar&&D.$menu[0].offsetWidth>D.sizeInfo.totalMenuWidth&&(D.sizeInfo.menuWidth=D.$menu[0].offsetWidth,D.sizeInfo.totalMenuWidth=D.sizeInfo.menuWidth+D.sizeInfo.scrollBarWidth,D.$menu.css("min-width",D.sizeInfo.menuWidth)),i=Math.ceil(D.sizeInfo.menuInnerHeight/D.sizeInfo.liHeight*1.5),n=Math.round(u/i)||1;for(var g=0;g<n;g++){var v=(g+1)*i;if(g===n-1&&(v=u),p[g]=[g*i+(g?1:0),v],!u)break;void 0===o&&t<=D.selectpicker.current.data[v-1].position-D.sizeInfo.menuInnerHeight&&(o=g)}if(void 0===o&&(o=0),r=[D.selectpicker.view.position0,D.selectpicker.view.position1],s=Math.max(0,o-1),a=Math.min(n-1,o+1),D.selectpicker.view.position0=Math.max(0,p[s][0])||0,D.selectpicker.view.position1=Math.min(u,p[a][1])||0,l=r[0]!==D.selectpicker.view.position0||r[1]!==D.selectpicker.view.position1,void 0!==D.activeIndex&&(A=D.selectpicker.current.elements[D.selectpicker.current.map.newIndex[D.prevActiveIndex]],S=D.selectpicker.current.elements[D.selectpicker.current.map.newIndex[D.activeIndex]],T=D.selectpicker.current.elements[D.selectpicker.current.map.newIndex[D.selectedIndex]],e&&(D.activeIndex!==D.selectedIndex&&(S.classList.remove("active"),S.firstChild&&S.firstChild.classList.remove("active")),D.activeIndex=void 0),D.activeIndex&&D.activeIndex!==D.selectedIndex&&T&&T.length&&(T.classList.remove("active"),T.firstChild&&T.firstChild.classList.remove("active"))),void 0!==D.prevActiveIndex&&D.prevActiveIndex!==D.activeIndex&&D.prevActiveIndex!==D.selectedIndex&&A&&A.length&&(A.classList.remove("active"),A.firstChild&&A.firstChild.classList.remove("active")),(e||l)&&(c=D.selectpicker.view.visibleElements?D.selectpicker.view.visibleElements.slice():[],D.selectpicker.view.visibleElements=D.selectpicker.current.elements.slice(D.selectpicker.view.position0,D.selectpicker.view.position1),D.setOptionStatus(),(I||!1===m&&e)&&(h=c,d=D.selectpicker.view.visibleElements,f=!(h.length===d.length&&h.every(function(t,e){return t===d[e]}))),(e||!0===m)&&f)){var b,_,y=D.$menuInner[0],w=document.createDocumentFragment(),C=y.firstChild.cloneNode(!1),k=!0===m?D.selectpicker.view.visibleElements:D.selectpicker.current.elements;y.replaceChild(C,y.firstChild);g=0;for(var $=k.length;g<$;g++)w.appendChild(k[g]);!0===m&&(b=0===D.selectpicker.view.position0?0:D.selectpicker.current.data[D.selectpicker.view.position0-1].position,_=D.selectpicker.view.position1>u-1?0:D.selectpicker.current.data[u-1].position-D.selectpicker.current.data[D.selectpicker.view.position1-1].position,y.firstChild.style.marginTop=b+"px",y.firstChild.style.marginBottom=_+"px"),y.firstChild.appendChild(w)}if(D.prevActiveIndex=D.activeIndex,D.options.liveSearch){if(I&&e){var E,x=0;D.selectpicker.view.canHighlight[x]||(x=1+D.selectpicker.view.canHighlight.slice(1).indexOf(!0)),E=D.selectpicker.view.visibleElements[x],D.selectpicker.view.currentActive&&(D.selectpicker.view.currentActive.classList.remove("active"),D.selectpicker.view.currentActive.firstChild&&D.selectpicker.view.currentActive.firstChild.classList.remove("active")),E&&(E.classList.add("active"),E.firstChild&&E.firstChild.classList.add("active")),D.activeIndex=D.selectpicker.current.map.originalIndex[x]}}else D.$menuInner.focus()}this.setPositionData(),i(t,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",function(t,e){D.noScroll||i(this.scrollTop,e),D.noScroll=!1}),K(window).off("resize"+P+"."+this.selectId+".createView").on("resize"+P+"."+this.selectId+".createView",function(){D.$newElement.hasClass(V.SHOW)&&i(D.$menuInner[0].scrollTop)})},createLi:function(){var A,S=this,L=[],O={},P=0,M=0,U=[],N=0,B=0,F=-1;this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option"));var t,H={span:document.createElement("span"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode("Â ")},R=document.createDocumentFragment();(S.options.showTick||S.multiple)&&((t=H.span.cloneNode(!1)).className=S.options.iconBase+" "+S.options.tickIcon+" check-mark",H.a.appendChild(t)),H.a.setAttribute("role","option"),H.subtext.className="text-muted",H.text=H.span.cloneNode(!1),H.text.className="text";
21var W=function(t,e,i){var n=H.li.cloneNode(!1);return t&&(1===t.nodeType||11===t.nodeType?n.appendChild(t):n.innerHTML=t),void 0!==e&&""!==e&&(n.className=e),null!=i&&n.classList.add("optgroup-"+i),n},j=function(t,e,i){var n=H.a.cloneNode(!0);return t&&(11===t.nodeType?n.appendChild(t):n.insertAdjacentHTML("beforeend",t)),void 0!==e&&""!==e&&(n.className=e),"4"===G.major&&n.classList.add("dropdown-item"),i&&n.setAttribute("style",i),n},z=function(t){var e,i,n=H.text.cloneNode(!1);if(t.optionContent)n.innerHTML=t.optionContent;else{if(n.textContent=t.text,t.optionIcon){var s=H.whitespace.cloneNode(!1);(i=H.span.cloneNode(!1)).className=S.options.iconBase+" "+t.optionIcon,R.appendChild(i),R.appendChild(s)}t.optionSubtext&&((e=H.subtext.cloneNode(!1)).innerHTML=t.optionSubtext,n.appendChild(e))}return R.appendChild(n),R};if(this.options.title&&!this.multiple){F--;var e=this.$element[0],i=!1,n=!this.selectpicker.view.titleOption.parentNode;if(n)this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",i=void 0===K(e.options[e.selectedIndex]).attr("selected")&&void 0===this.$element.data("selected");(n||0!==this.selectpicker.view.titleOption.index)&&e.insertBefore(this.selectpicker.view.titleOption,e.firstChild),i&&(e.selectedIndex=0)}var Y=this.$element.find("option");Y.each(function(t){var e=K(this);if(F++,!e.hasClass("bs-title-option")){var i,n,s,a,o=e.data(),r=this.className||"",l=q(this.style.cssText),c=o.content,h=this.textContent,d=o.tokens,u=o.subtext,p=o.icon,f=e.parent(),m=f[0],g="OPTGROUP"===m.tagName,v=g&&m.disabled,b=this.disabled||v,_=this.previousElementSibling&&"OPTGROUP"===this.previousElementSibling.tagName,y=f.data();if(!0===o.hidden||this.hidden||S.options.hideDisabled&&(b||v))return i=o.prevHiddenIndex,e.next().data("prevHiddenIndex",void 0!==i?i:t),F--,O[t]={type:"hidden",data:o},_||void 0!==i&&(a=Y[i].previousElementSibling)&&"OPTGROUP"===a.tagName&&!a.disabled&&(_=!0),void(_&&"divider"!==U[U.length-1].type&&(F++,L.push(W(!1,V.DIVIDER,N+"div")),U.push({type:"divider",optID:N})));if(g&&!0!==o.divider){if(S.options.hideDisabled&&b){if(void 0===y.allOptionsDisabled){var w=f.children();f.data("allOptionsDisabled",w.filter(":disabled").length===w.length)}if(f.data("allOptionsDisabled"))return void F--}var C=" "+m.className||"",k=this.previousElementSibling;if(void 0!==(i=o.prevHiddenIndex)&&(k=Y[i].previousElementSibling),!k){N+=1;var $=m.label,E=q($),x=y.subtext,I=y.icon;0!==t&&0<L.length&&(F++,L.push(W(!1,V.DIVIDER,N+"div")),U.push({type:"divider",optID:N})),F++,s=function(t){var e,i,n=H.text.cloneNode(!1);if(n.innerHTML=t.labelEscaped,t.labelIcon){var s=H.whitespace.cloneNode(!1);(i=H.span.cloneNode(!1)).className=S.options.iconBase+" "+t.labelIcon,R.appendChild(i),R.appendChild(s)}return t.labelSubtext&&((e=H.subtext.cloneNode(!1)).textContent=t.labelSubtext,n.appendChild(e)),R.appendChild(n),R}({labelEscaped:E,labelSubtext:x,labelIcon:I}),L.push(W(s,"dropdown-header"+C,N)),U.push({content:E,subtext:x,type:"optgroup-label",optID:N}),B=F-1}n=z({text:h,optionContent:c,optionSubtext:u,optionIcon:p}),L.push(W(j(n,"opt "+r+C,l),"",N)),U.push({content:c||h,subtext:u,tokens:d,type:"option",optID:N,headerIndex:B,lastIndex:B+m.childElementCount,originalIndex:t,data:o}),P++}else!0===o.divider?(L.push(W(!1,V.DIVIDER)),U.push({type:"divider",originalIndex:t,data:o})):(!_&&S.options.hideDisabled&&void 0!==(i=o.prevHiddenIndex)&&(a=Y[i].previousElementSibling)&&"OPTGROUP"===a.tagName&&!a.disabled&&(_=!0),_&&"divider"!==U[U.length-1].type&&(F++,L.push(W(!1,V.DIVIDER,N+"div")),U.push({type:"divider",optID:N})),n=z({text:h,optionContent:c,optionSubtext:u,optionIcon:p}),L.push(W(j(n,r,l))),U.push({content:c||h,subtext:u,tokens:d,type:"option",originalIndex:t,data:o}),P++);S.selectpicker.main.map.newIndex[t]=F,S.selectpicker.main.map.originalIndex[F]=t;var D=U[U.length-1];D.disabled=b;var T=0;D.content&&(T+=D.content.length),D.subtext&&(T+=D.subtext.length),p&&(T+=1),M<T&&(M=T,A=L[L.length-1])}}),this.selectpicker.main.elements=L,this.selectpicker.main.data=U,this.selectpicker.main.hidden=O,this.selectpicker.current=this.selectpicker.main,this.selectpicker.view.widestOption=A,this.selectpicker.view.availableOptionsCount=P}
21,findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){var t=this,e=this.$element.find("option"),i=[],n=[];this.togglePlaceholder(),this.tabIndex();for(var s=0,a=e.length;s<a;s++){var o=t.selectpicker.main.map.newIndex[s],r=e[s],l=t.selectpicker.main.data[o]||t.selectpicker.main.hidden[s];if(r&&r.selected&&l&&(i.push(r),n.length<100&&"count"!==t.options.selectedTextFormat||1===i.length)){var c,h,d=l.data,u=d.icon&&t.options.showIcon?'<i class="'+t.options.iconBase+" "+d.icon+'"></i> ':"";c=t.options.showSubtext&&d.subtext&&!t.multiple?' <small class="text-muted">'+d.subtext+"</small>":"",h=r.title?r.title:d.content&&t.options.showContent?d.content.toString():u+r.innerHTML.trim()+c,n.push(h)}}var p=this.multiple?n.join(this.options.multipleSeparator):n[0];if(50<i.length&&(p+="..."),this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")){var f=this.options.selectedTextFormat.split(">");if(1<f.length&&i.length>f[1]||1===f.length&&2<=i.length){var m=this.selectpicker.view.availableOptionsCount;p=("function"==typeof this.options.countSelectedText?this.options.countSelectedText(i.length,m):this.options.countSelectedText).replace("{0}",i.length.toString()).replace("{1}",m.toString())}}null==this.options.title&&(this.options.title=this.$element.attr("title")),"static"==this.options.selectedTextFormat&&(p=this.options.title),p||(p=void 0!==this.options.title?this.options.title:this.options.noneSelectedText),this.$button[0].title=g(p.replace(/<[^>]*>?/g,"").trim()),this.$button.find(".filter-option-inner-inner")[0].innerHTML=p,this.$element.trigger("rendered"+P)},setStyle:function(t,e){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var i=t||this.options.style;"add"==e?this.$button.addClass(i):"remove"==e?this.$button.removeClass(i):(this.$button.removeClass(this.options.style),this.$button.addClass(i))},liHeight:function(t){if(t||!1!==this.options.size&&!this.sizeInfo){this.sizeInfo||(this.sizeInfo={});var e=document.createElement("div"),i=document.createElement("div"),n=document.createElement("div"),s=document.createElement("ul"),a=document.createElement("li"),o=document.createElement("li"),r=document.createElement("li"),l=document.createElement("a"),c=document.createElement("span"),h=this.options.header&&0<this.$menu.find("."+V.POPOVERHEADER).length?this.$menu.find("."+V.POPOVERHEADER)[0].cloneNode(!0):null,d=this.options.liveSearch?document.createElement("div"):null,u=this.options.actionsBox&&this.multiple&&0<this.$menu.find(".bs-actionsbox").length?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,p=this.options.doneButton&&this.multiple&&0<this.$menu.find(".bs-donebutton").length?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,f=this.$element.find("option")[0];if(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,c.className="text",l.className="dropdown-item "+(f?f.className:""),e.className=this.$menu[0].parentNode.className+" "+V.SHOW,e.style.width=this.sizeInfo.selectWidth+"px","auto"===this.options.width&&(i.style.minWidth=0),i.className=V.MENU+" "+V.SHOW,n.className="inner "+V.SHOW,s.className=V.MENU+" inner "+("4"===G.major?V.SHOW:""),a.className=V.DIVIDER,o.className="dropdown-header",c.appendChild(document.createTextNode("â")),l.appendChild(c),r.appendChild(l),o.appendChild(c.cloneNode(!0)),this.selectpicker.view.widestOption&&s.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),s.appendChild(r),s.appendChild(a),s.appendChild(o),h&&i.appendChild(h),d){var m=document.createElement("input");d.className="bs-searchbox",m.className="form-control",d.appendChild(m),i.appendChild(d)}u&&i.appendChild(u),n.appendChild(s),i.appendChild(n),p&&i.appendChild(p),e.appendChild(i),document.body.appendChild(e);var g,v=l.offsetHeight,b=o?o.offsetHeight:0,_=h?h.offsetHeight:0,y=d?d.offsetHeight:0,w=u?u.offsetHeight:0,C=p?p.offsetHeight:0,k=K(a).outerHeight(!0),$=!!window.getComputedStyle&&window.getComputedStyle(i),E=i.offsetWidth,x=$?null:K(i),I={vert:T($?$.paddingTop:x.css("paddingTop"))+T($?$.paddingBottom:x.css("paddingBottom"))+T($?$.borderTopWidth:x.css("borderTopWidth"))+T($?$.borderBottomWidth:x.css("borderBottomWidth")),horiz:T($?$.paddingLeft:x.css("paddingLeft"))+T($?$.paddingRight:x.css("paddingRight"))+T($?$.borderLeftWidth:x.css("borderLeftWidth"))+T($?$.borderRightWidth:x.css("borderRightWidth"))},D={vert:I.vert+T($?$.marginTop:x.css("marginTop"))+T($?$.marginBottom:x.css("marginBottom"))+2,horiz:I.horiz+T($?$.marginLeft:x.css("marginLeft"))+T($?$.marginRight:x.css("marginRight"))+2};n.style.overflowY="scroll",g=i.offsetWidth-E,document.body.removeChild(e),this.sizeInfo.liHeight=v,this.sizeInfo.dropdownHeaderHeight=b,this.sizeInfo.headerHeight=_,this.sizeInfo.searchHeight=y,this.sizeInfo.actionsHeight=w,this.sizeInfo.doneButtonHeight=C,this.sizeInfo.dividerHeight=k,this.sizeInfo.menuPadding=I,this.sizeInfo.menuExtras=D,this.sizeInfo.menuWidth=E,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth,this.sizeInfo.scrollBarWidth=g,this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight,this.setPositionData()}},getSelectPosition:function(){var t,e=K(window),i=this.$newElement.offset(),n=K(this.options.container);this.options.container&&!n.is("body")?((t=n.offset()).top+=parseInt(n.css("borderTopWidth")),t.left+=parseInt(n.css("borderLeftWidth"))):t={top:0,left:0};var s=this.options.windowPadding;this.sizeInfo.selectOffsetTop=i.top-t.top-e.scrollTop(),this.sizeInfo.selectOffsetBot=e.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-t.top-s[2],this.sizeInfo.selectOffsetLeft=i.left-t.left-e.scrollLeft(),this.sizeInfo.selectOffsetRight=e.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-t.left-s[1],this.sizeInfo.selectOffsetTop-=s[0],this.sizeInfo.selectOffsetLeft-=s[3]}
vendor: 5,585 bytes, line 21
21,setMenuSize:function(t){this.getSelectPosition();var e,i,n,s,a,o,r,l=this.sizeInfo.selectWidth,c=this.sizeInfo.liHeight,h=this.sizeInfo.headerHeight,d=this.sizeInfo.searchHeight,u=this.sizeInfo.actionsHeight,p=this.sizeInfo.doneButtonHeight,f=this.sizeInfo.dividerHeight,m=this.sizeInfo.menuPadding,g=0;if(this.options.dropupAuto&&(r=c*this.selectpicker.current.elements.length+m.vert,this.$newElement.toggleClass(V.DROPUP,this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&r+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot)),"auto"===this.options.size)s=3<this.selectpicker.current.elements.length?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,i=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,n=s+h+d+u+p,o=Math.max(s-m.vert,0),this.$newElement.hasClass(V.DROPUP)&&(i=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),e=(a=i)-h-d-u-p-m.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var v=0;v<this.options.size;v++)"divider"===this.selectpicker.current.data[v].type&&g++;e=(i=c*this.options.size+g*f+m.vert)-m.vert,a=i+h+d+u+p,n=o=""}"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(V.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.sizeInfo.totalMenuWidth-l),this.$menu.css({"max-height":a+"px",overflow:"hidden","min-height":n+"px"}),this.$menuInner.css({"max-height":e+"px","overflow-y":"auto","min-height":o+"px"}),this.sizeInfo.menuInnerHeight=e,this.selectpicker.current.data.length&&this.selectpicker.current.data[this.selectpicker.current.data.length-1].position>this.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth,this.$menu.css("min-width",this.sizeInfo.totalMenuWidth)),this.dropdown&&this.dropdown._popper&&this.dropdown._popper.update()},setSize:function(t){if(this.liHeight(t),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var e,i=this,n=K(window),s=0;this.setMenuSize(),"auto"===this.options.size?(this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",function(){return i.setMenuSize()}),n.off("resize"+P+"."+this.selectId+".setMenuSize scroll"+P+"."+this.selectId+".setMenuSize").on("resize"+P+"."+this.selectId+".setMenuSize scroll"+P+"."+this.selectId+".setMenuSize",function(){return i.setMenuSize()})):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&(this.$searchbox.off("input.setMenuSize propertychange.setMenuSize"),n.off("resize"+P+"."+this.selectId+".setMenuSize scroll"+P+"."+this.selectId+".setMenuSize")),t?s=this.$menuInner[0].scrollTop:i.multiple||"number"==typeof(e=i.selectpicker.main.map.newIndex[i.$element[0].selectedIndex])&&!1!==i.options.size&&(s=(s=i.sizeInfo.liHeight*e)-i.sizeInfo.menuInnerHeight/2+i.sizeInfo.liHeight/2),i.createView(!1,s)}},setWidth:function(){var i=this;"auto"===this.options.width?requestAnimationFrame(function(){i.$menu.css("min-width","0"),i.liHeight(),i.setMenuSize();var t=i.$newElement.clone().appendTo("body"),e=t.css("width","auto").children("button").outerWidth();t.remove(),i.sizeInfo.selectWidth=Math.max(i.sizeInfo.totalMenuWidth,e),i.$newElement.css("width",i.sizeInfo.selectWidth+"px")}):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement.removeClass("fit-width")},selectPosition:function(){this.$bsContainer=K('<div class="bs-container" />');var n,s,a,o=this,r=K(this.options.container),t=function(t){var e={},i=o.options.display||!!K.fn.dropdown.Constructor.Default&&K.fn.dropdown.Constructor.Default.display;o.$bsContainer.addClass(t.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(V.DROPUP,t.hasClass(V.DROPUP)),n=t.offset(),r.is("body")?s={top:0,left:0}:((s=r.offset()).top+=parseInt(r.css("borderTopWidth"))-r.scrollTop(),s.left+=parseInt(r.css("borderLeftWidth"))-r.scrollLeft()),a=t.hasClass(V.DROPUP)?0:t[0].offsetHeight,(G.major<4||"static"===i)&&(e.top=n.top-s.top+a,e.left=n.left-s.left),e.width=t[0].offsetWidth,o.$bsContainer.css(e)};this.$button.on("click.bs.dropdown.data-api",function(){o.isDisabled()||(t(o.$newElement),o.$bsContainer.appendTo(o.options.container).toggleClass(V.SHOW,!o.$button.hasClass(V.SHOW)).append(o.$menu))}),K(window).off("resize"+P+"."+this.selectId+" scroll"+P+"."+this.selectId).on("resize"+P+"."+this.selectId+" scroll"+P+"."+this.selectId,function(){o.$newElement.hasClass(V.SHOW)&&t(o.$newElement)}),this.$element.on("hide"+P,function(){o.$menu.data("height",o.$menu.height()),o.$bsContainer.detach()})},setOptionStatus:function(){var t=this,e=this.$element.find("option");if(t.noScroll=!1,t.selectpicker.view.visibleElements&&t.selectpicker.view.visibleElements.length)for(var i=0;i<t.selectpicker.view.visibleElements.length;i++){var n=t.selectpicker.current.map.originalIndex[i+t.selectpicker.view.position0],s=e[n];if(s){var a=this.selectpicker.main.map.newIndex[n],o=this.selectpicker.main.elements[a];t.setDisabled(n,s.disabled||"OPTGROUP"===s.parentNode.tagName&&s.parentNode.disabled,a,o),t.setSelected(n,s.selected,a,o)}}}
21,setSelected:function(t,e,i,n){var s,a,o,r=void 0!==this.activeIndex,l=this.activeIndex===t||e&&!this.multiple&&!r;i||(i=this.selectpicker.main.map.newIndex[t]),n||(n=this.selectpicker.main.elements[i]),o=n.firstChild,e&&(this.selectedIndex=t),n.classList.toggle("selected",e),n.classList.toggle("active",l),l&&(this.selectpicker.view.currentActive=n,this.activeIndex=t),o&&(o.classList.toggle("selected",e),o.classList.toggle("active",l),o.setAttribute("aria-selected",e)),l||!r&&e&&void 0!==this.prevActiveIndex&&(s=this.selectpicker.main.map.newIndex[this.prevActiveIndex],(a=this.selectpicker.main.elements[s]).classList.remove("active"),a.firstChild&&a.firstChild.classList.remove("active"))},setDisabled:function(t,e,i,n){var s;i||(i=this.selectpicker.main.map.newIndex[t]),n||(n=this.selectpicker.main.elements[i]),s=n.firstChild,n.classList.toggle(V.DISABLED,e),s&&("4"===G.major&&s.classList.toggle(V.DISABLED,e),s.setAttribute("aria-disabled",e),e?s.setAttribute("tabindex",-1):s.setAttribute("tabindex",0))},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var t=this;this.isDisabled()?(this.$newElement.addClass(V.DISABLED),this.$button.addClass(V.DISABLED).attr("tabindex",-1).attr("aria-disabled",!0)):(this.$button.hasClass(V.DISABLED)&&(this.$newElement.removeClass(V.DISABLED),this.$button.removeClass(V.DISABLED).attr("aria-disabled",!1)),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex")),this.$button.click(function(){return!t.isDisabled()})},togglePlaceholder:function(){var t=this.$element[0],e=t.selectedIndex,i=-1===e;i||t.options[e].value||(i=!0),this.$button.toggleClass("bs-placeholder",i)},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&-98!==this.$element.attr("tabindex")&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex"))),this.$element.attr("tabindex",-98)},clickListener:function(){var $=this,e=K(document);function t(){$.options.liveSearch?$.$searchbox.focus():$.$menuInner.focus()}function i(){$.dropdown&&$.dropdown._popper&&$.dropdown._popper.state.isCreated?t():requestAnimationFrame(i)}e.data("spaceSelect",!1),this.$button.on("keyup",function(t){/(32)/.test(t.keyCode.toString(10))&&e.data("spaceSelect")&&(t.preventDefault(),e.data("spaceSelect",!1))}),this.$newElement.on("show.bs.dropdown",function(){3<G.major&&!$.dropdown&&($.dropdown=$.$button.data("bs.dropdown"),$.dropdown._menu=$.$menu[0])}),this.$button.on("click.bs.dropdown.data-api",function(){$.$newElement.hasClass(V.SHOW)||$.setSize()}),this.$element.on("shown"+P,function(){$.$menuInner[0].scrollTop!==$.selectpicker.view.scrollTop&&($.$menuInner[0].scrollTop=$.selectpicker.view.scrollTop),3<G.major?requestAnimationFrame(i):t()}),this.$menuInner.on("click","li a",function(t,e){var i=K(this),n=$.isVirtual()?$.selectpicker.view.position0:0,s=$.selectpicker.current.map.originalIndex[i.parent().index()+n],a=E($.$element[0]),o=$.$element.prop("selectedIndex"),r=!0;if($.multiple&&1!==$.options.maxOptions&&t.stopPropagation(),t.preventDefault(),!$.isDisabled()&&!i.parent().hasClass(V.DISABLED)){var l=$.$element.find("option"),c=l.eq(s),h=c.prop("selected"),d=c.parent("optgroup"),u=d.find("option"),p=$.options.maxOptions,f=d.data("maxOptions")||!1;if(s===$.activeIndex&&(e=!0),e||($.prevActiveIndex=$.activeIndex,$.activeIndex=void 0),$.multiple){if(c.prop("selected",!h),$.setSelected(s,!h),i.blur(),!1!==p||!1!==f){var m=p<l.filter(":selected").length,g=f<d.find("option:selected").length;if(p&&m||f&&g)if(p&&1==p){l.prop("selected",!1),c.prop("selected",!0);for(var v=0;v<l.length;v++)$.setSelected(v,!1);$.setSelected(s,!0)}else if(f&&1==f){d.find("option:selected").prop("selected",!1),c.prop("selected",!0);for(v=0;v<u.length;v++){var b=u[v];$.setSelected(l.index(b),!1)}$.setSelected(s,!0)}else{var _="string"==typeof $.options.maxOptionsText?[$.options.maxOptionsText,$.options.maxOptionsText]:$.options.maxOptionsText,y="function"==typeof _?_(p,f):_,w=y[0].replace("{n}",p),C=y[1].replace("{n}",f),k=K('<div class="notify"></div>');y[2]&&(w=w.replace("{var}",y[2][1<p?0:1]),C=C.replace("{var}",y[2][1<f?0:1])),c.prop("selected",!1),$.$menu.append(k),p&&m&&(k.append(K("<div>"+w+"</div>")),r=!1,$.$element.trigger("maxReached"+P)),f&&g&&(k.append(K("<div>"+C+"</div>")),r=!1,$.$element.trigger("maxReachedGrp"+P)),setTimeout(function(){$.setSelected(s,!1)},10),k.delay(750).fadeOut(300,function(){K(this).remove()})}}}else l.prop("selected",!1),c.prop("selected",!0),$.setSelected(s,!0);!$.multiple||$.multiple&&1===$.options.maxOptions?$.$button.focus():$.options.liveSearch&&$.$searchbox.focus(),r&&(a!=E($.$element[0])&&$.multiple||o!=$.$element.prop("selectedIndex")&&!$.multiple)&&(x=[s,c.prop("selected"),a],$.$element.triggerNative("change"))}}),this.$menu.on("click","li."+V.DISABLED+" a, ."+V.POPOVERHEADER+", ."+V.POPOVERHEADER+" :not(.close)",function(t){t.currentTarget==this&&(t.preventDefault(),t.stopPropagation(),$.options.liveSearch&&!K(t.target).hasClass("close")?$.$searchbox.focus():$.$button.focus())}
21),this.$menuInner.on("click",".divider, .dropdown-header",function(t){t.preventDefault(),t.stopPropagation(),$.options.liveSearch?$.$searchbox.focus():$.$button.focus()}),this.$menu.on("click","."+V.POPOVERHEADER+" .close",function(){$.$button.click()}),this.$searchbox.on("click",function(t){t.stopPropagation()}),this.$menu.on("click",".actions-btn",function(t){$.options.liveSearch?$.$searchbox.focus():$.$button.focus(),t.preventDefault(),t.stopPropagation(),K(this).hasClass("bs-select-all")?$.selectAll():$.deselectAll()}),this.$element.on({change:function(){$.render(),$.$element.trigger("changed"+P,x),x=null},focus:function(){$.options.mobile||$.$button.focus()}})},liveSearchListener:function(){var p=this,f=document.createElement("li");this.$button.on("click.bs.dropdown.data-api",function(){p.$searchbox.val()&&p.$searchbox.val("")}),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",function(t){t.stopPropagation()}),this.$searchbox.on("input propertychange",function(){var t=p.$searchbox.val();if(p.selectpicker.search.map.newIndex={},p.selectpicker.search.map.originalIndex={},p.selectpicker.search.elements=[],p.selectpicker.search.data=[],t){var e=[],i=t.toUpperCase(),n={},s=[],a=p._searchStyle(),o=p.options.liveSearchNormalize;o&&(i=m(i)),p._$lisSelected=p.$menuInner.find(".selected");for(var r=0;r<p.selectpicker.main.data.length;r++){var l=p.selectpicker.main.data[r];n[r]||(n[r]=k(l,i,a,o)),n[r]&&void 0!==l.headerIndex&&-1===s.indexOf(l.headerIndex)&&(0<l.headerIndex&&(n[l.headerIndex-1]=!0,s.push(l.headerIndex-1)),n[l.headerIndex]=!0,s.push(l.headerIndex),n[l.lastIndex+1]=!0),n[r]&&"optgroup-label"!==l.type&&s.push(r)}r=0;for(var c=s.length;r<c;r++){var h=s[r],d=s[r-1],u=(l=p.selectpicker.main.data[h],p.selectpicker.main.data[d]);("divider"!==l.type||"divider"===l.type&&u&&"divider"!==u.type&&c-1!==r)&&(p.selectpicker.search.data.push(l),e.push(p.selectpicker.main.elements[h]),l.hasOwnProperty("originalIndex")&&(p.selectpicker.search.map.newIndex[l.originalIndex]=e.length-1,p.selectpicker.search.map.originalIndex[e.length-1]=l.originalIndex))}p.activeIndex=void 0,p.noScroll=!0,p.$menuInner.scrollTop(0),p.selectpicker.search.elements=e,p.createView(!0),e.length||(f.className="no-results",f.innerHTML=p.options.noneResultsText.replace("{0}",'"'+q(t)+'"'),p.$menuInner[0].firstChild.appendChild(f))}else p.$menuInner.scrollTop(0),p.createView(!1)})},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(t){return void 0!==t?(this.$element.val(t).triggerNative("change"),this.$element):this.$element.val()},changeAll:function(t){if(this.multiple){void 0===t&&(t=!0);var e=this.$element.find("option"),i=0,n=0,s=E(this.$element[0]);this.$element.addClass("bs-select-hidden");for(var a=0;a<this.selectpicker.current.elements.length;a++){var o=this.selectpicker.current.data[a],r=e[this.selectpicker.current.map.originalIndex[a]];r&&!r.disabled&&"divider"!==o.type&&(r.selected&&i++,r.selected=t,r.selected&&n++)}this.$element.removeClass("bs-select-hidden"),i!==n&&(this.setOptionStatus(),this.togglePlaceholder(),x=[null,null,s],this.$element.triggerNative("change"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(t){(t=t||window.event)&&t.stopPropagation(),this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(t){var e,i,n,s,a,o=K(this),r=o.hasClass("dropdown-toggle"),l=(r?o.closest(".dropdown"):o.closest(M.MENU)).data("this"),c=l.findLis(),h=!1,d=t.which===S&&!r&&!l.options.selectOnTab,u=U.test(t.which)||d,p=l.$menuInner[0].scrollTop,f=l.isVirtual(),m=!0===f?l.selectpicker.view.position0:0;if(!(i=l.$newElement.hasClass(V.SHOW))&&(u||48<=t.which&&t.which<=57||96<=t.which&&t.which<=105||65<=t.which&&t.which<=90)&&l.$button.trigger("click.bs.dropdown.data-api"),t.which===I&&i&&(t.preventDefault(),l.$button.trigger("click.bs.dropdown.data-api").focus()),u){if(!c.length)return;void 0===(e=!0===f?c.index(c.filter(".active")):l.selectpicker.current.map.newIndex[l.activeIndex])&&(e=-1),-1!==e&&((n=l.selectpicker.current.elements[e+m]).classList.remove("active"),n.firstChild&&n.firstChild.classList.remove("active")),t.which===L?(-1!==e&&e--,e+m<0&&(e+=c.length),l.selectpicker.view.canHighlight[e+m]||-1===(e=l.selectpicker.view.canHighlight.slice(0,e+m).lastIndexOf(!0)-m)&&(e=c.length-1)):(t.which===O||d)&&(++e+m>=l.selectpicker.view.canHighlight.length&&(e=0),l.selectpicker.view.canHighlight[e+m]||(e=e+1+l.selectpicker.view.canHighlight.slice(e+m+1).indexOf(!0))),t.preventDefault();var g=m+e;t.which===L?0===m&&e===c.length-1?(l.$menuInner[0].scrollTop=l.$menuInner[0].scrollHeight,g=l.selectpicker.current.elements.length-1):h=(a=(s=l.selectpicker.current.data[g]).position-s.height)<p:(t.which===O||d)&&(0===e?g=l.$menuInner[0].scrollTop=0:h=p<(a=(s=l.selectpicker.current.data[g]).position-l.sizeInfo.menuInnerHeight)),(n=l.selectpicker.current.elements[g])&&(n.classList.add("active"),n.firstChild&&n.firstChild.classList.add("active")),l.activeIndex=l.selectpicker.current.map.originalIndex[g],l.selectpicker.view.currentActive=n,h&&(l.$menuInner[0].scrollTop=a),l.options.liveSearch?l.$searchbox.focus():o.focus()}else if(!o.is("input")&&!N.test(t.which)||t.which===A&&l.selectpicker.keydown.keyHistory){var v,b,_=[];t.preventDefault(),l.selectpicker.keydown.keyHistory+=$[t.which],l.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(l.selectpicker.keydown.resetKeyHistory.cancel),l.selectpicker.keydown.resetKeyHistory.cancel=l.selectpicker.keydown.resetKeyHistory.start(),b=l.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(b)&&(b=b.charAt(0));for(var y=0;y<l.selectpicker.current.data.length;y++){var w=l.selectpicker.current.data[y];k(w,b,"startsWith",!0)&&l.selectpicker.view.canHighlight[y]&&(w.index=y,_.push(w.originalIndex))}if(_.length){var C=0;c.removeClass("active").find("a").removeClass("active"),1===b.length&&(-1===(C=_.indexOf(l.activeIndex))||C===_.length-1?C=0:C++),v=l.selectpicker.current.map.newIndex[_[C]],h=0<p-(s=l.selectpicker.current.data[v]).position?(a=s.position-s.height,!0):(a=s.position-l.sizeInfo.menuInnerHeight,s.position>p+l.sizeInfo.menuInnerHeight),(n=l.selectpicker.current.elements[v]).classList.add("active"),n.firstChild&&n.firstChild.classList.add("active"),l.activeIndex=_[C],n.firstChild.focus(),h&&(l.$menuInner[0].scrollTop=a),o.focus()}}i&&(t.which===A&&!l.selectpicker.keydown.keyHistory||t.which===D||t.which===S&&l.options.selectOnTab)&&(t.which!==A&&t.preventDefault(),l.options.liveSearch&&t.which===A||(l.$menuInner.find(".active a").trigger("click",!0),o.focus(),l.options.liveSearch||(t.preventDefault(),K(document).data("spaceSelect",!0))))},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){var t=K.extend({},this.options,this.$element.data());this.options=t,this.selectpicker.main.map.newIndex={},this.selectpicker.main.map.originalIndex={},this.createLi(),this.checkDisabled(),this.render(),this.setStyle(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed"+P)},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.$element.off(P).removeData("selectpicker").removeClass("bs-select-hidden selectpicker"),K(window).off(P+"."+this.selectId)}};var v=K.fn.selectpicker;K.fn.selectpicker=f,K.fn.selectpicker.Constructor=p,K.fn.selectpicker.noConflict=function(){return K.fn.selectpicker=v,this},K(document).off("keydown.bs.dropdown.data-api").on("keydown"+P,'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',p.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',function(t){t.stopPropagation()}),K(window).on("load"+P+".data-api",function(){K(".selectpicker").each(function(){var t=K(this);f.call(t,t.data())})})}(jQuery),jQuery.fn.selectpicker.defaults={noneSelectedText:"Nessuna selezione",noneResultsText:"Nessun risultato per {0}",countSelectedText:function(t,e){return 1==t?"Selezionato {0} di {1}":"Selezionati {0} di {1}"},maxOptionsText:["Limite raggiunto ({n} {var} max)","Limite del gruppo raggiunto ({n} {var} max)",["elementi","elemento"]],multipleSeparator:", ",selectAllText:"Seleziona Tutto",deselectAllText:"Deseleziona Tutto"},function(p){function l(t){return t*Math.PI/180}function f(t,e,i){var n=p("#"+i+"canvas")[0],s=p("#"+i+"canvas"),a=n.getContext("2d"),o=n.width/2,r=n.height/2;a.beginPath(),a.arc(o,r,p(s).attr("data-radius"),0,2*Math.PI,!1),a.fillStyle="transparent",a.fill(),a.lineWidth=p(s).attr("data-width"),a.strokeStyle=p(s).attr("data-progressBarBackgroun
21d"),a.stroke(),a.closePath(),a.beginPath(),a.arc(o,r,p(s).attr("data-radius"),-l(90),-l(90)+l(t/100*360),!1),a.fillStyle="transparent",a.fill(),a.lineWidth=p(s).attr("data-width"),a.strokeStyle=p(s).attr("data-stroke"),a.stroke(),a.closePath(),"true"==p(s).attr("data-text").toLocaleLowerCase()&&p("#"+i+" .clProg").val(e+("true"==p(s).attr("data-percent").toLocaleLowerCase()?"%":""))}p.fn.circularloader=function(t){var e=this[0],i=e.id;if(0==p("#"+i+"canvas").length){var n=p.extend({backgroundColor:"#ffffff",fontColor:"#000000",fontSize:"40px",radius:70,progressBarBackground:"#cdcdcd",progressBarColor:"#aaaaaa",progressBarWidth:25,progressPercent:0,progressValue:0,showText:!0,title:""},t),s=parseInt(n.radius),a=parseInt(n.progressBarWidth),o=parseInt(0<parseInt(n.progressValue)?n.progressValue:n.progressPercent),r=parseInt(n.progressPercent),l="color:"+n.fontColor+";font-size:"+parseInt(n.fontSize)+"px;width:"+2*(s+a)+"px;vertical-align:middle;position:relative;background-color:transparent;border:0 none;transform:translateY(-48%);-webkit-transform: translateY(-48%);-ms-transform: translateY(-48%);height:"+2*(s+a)+"px;margin-left:-"+2*(s+a)+"px;text-align:center;padding:0;"+(n.showText?"":"display:none;");p('<canvas data-width="'+a+'" data-radius="'+s+'" data-stroke="'+n.progressBarColor+'" data-progressBarBackgroun
21d="'+n.progressBarBackground+'" data-backgroundColor="'+n.backgroundColor+'" data-text='+n.showText+" data-percent="+(null==t.progressValue)+' id="'+i+'canvas" width='+2*(s+a)+" height="+2*(s+a)+"></canvas>").appendTo(e),p('<input class="clProg" style="'+l+'" value="'+o+(null==t.progressValue?"%":"")+'" aria-hidden="true"></input>').appendTo(e),""==n.title?p("#"+i).css("height",2*(s+a)):(p("#"+i).css("height",2*(s+a)+20),p("#"+i+"canvas").before("<div class='titleCircularLoader' style='height:19px;text-align:center;'>"+n.title+"</div>"),p(".titleCircularLoader").css("width",2*(s+a)));var c=p("#"+i+"canvas")[0],h=c.getContext("2d"),d=c.width/2,u=c.height/2;p("#"+i+"canvas").offset().left,p("#"+i+"canvas").offset().top,h.beginPath(),h.arc(d,u,s,0,2*Math.PI,!1),h.fillStyle=n.backgroundColor,h.fill(),h.lineWidth=a,h.strokeStyle=n.progressBarBackground,h.stroke(),h.closePath(),0<r&&f(r,o,i)}else if(null!=t.progressPercent||null!=t.progressValue){r=0,o=0;r=null==t.progressPercent?100<parseInt(t.progressValue)?100:parseInt(t.progressValue):100<parseInt(t.progressPercent)?100:parseInt(t.progressPercent),o=null==t.progressValue?100<parseInt(t.progressPercent)?100:parseInt(t.progressPercent):parseInt(t.progressValue),f(r,o,i)}return this}}(jQuery),function(h){"use strict";var e=function(o,r){function l(t){return-1===t?"danger":-2===t?"muted":(t=t<0?0:t)<26?"danger":t<51?"warning":"success"}function c(t,e){for(var i="",n=!1,s=0;s<e.length;s++){n=!0;for(var a=0;a<t&&a+s+t<e.length;a++)n=n&&e.charAt(a+s)===e.charAt(a+s+t);a<t&&(n=!1),n?(s+=t-1,n=!1):i+=e.charAt(s)}return i}return r=h.extend({},{shortPass:"Password molto debole",badPass:"Password debole",goodPass:"Password sicura",strongPass:"Password molto sicura",enterPass:"Inserisci almeno 8 caratteri e una lettera maiuscola",showText:!0,minimumLength:4},r),function(){var s=r.showText,t=h("<div>").addClass("password-meter progress rounded-0 position-absolute");t.append('<div class="row position-absolute w-100 m-0">\n <div class="col-3 border-left border-right border-white"></div>\n <div class="col-3 border-left border-right border-white"></div>\n <div class="col-3 border-left border-right border-white"></div>\n <div class="col-3 border-left border-right border-white"></div>\n </div>');var a=h("<div>").attr({class:"progress-bar",role:"progressbar","aria-valuenow":"0","aria-valuemin":"0","aria-valuemax":"100"}),e=h("<div>").append(t.append(a));return r.showText&&(s=h("<small>").addClass("form-text text-muted").html(r.enterPass),e.prepend(s)),o.after(e),o.keyup(function(){var t=function(t){var e=0;if(t.length<r.minimumLength)return-1;e+=4*t.length,e+=c(1,t).length-t.length,e+=c(2,t).length-t.length,e+=c(3,t).length-t.length,e+=c(4,t).length-t.length,t.match(/(.*[0-9].*[0-9].*[0-9])/)&&(e+=5);var i=".*[!,@,#,$,%,^,&,*,?,_,~]";return i=new RegExp("("+i+i+")"),t.match(i)&&(e+=5),t.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&(e+=10),t.match(/([a-zA-Z])/)&&t.match(/([0-9])/)&&(e+=15),t.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&t.match(/([0-9])/)&&(e+=15),t.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&t.match(/([a-zA-Z])/)&&(e+=15),(t.match(/^\w+$/)||t.match(/^\d+$/))&&(e-=10),100<e&&(e=100),e<0&&(e=0),e}(o.val());o.trigger("password.score",[t]);var e,i=t<0?0:t;if(a.removeClass(function(t,e){return(e.match(/(^|\s)bg-\S+/g)||[]).join(" ")}),a.addClass("bg-"+l(t)),a.css({width:i+"%"}),a.attr("aria-valuenow",i),r.showText){var n=-1===(e=t)?r.shortPass:(e=e<0?0:e)<26?r.shortPass:e<51?r.badPass:e<76?r.goodPass:r.strongPass;!o.val().length&&t<=0&&(n=r.enterPass),s.html()!==h("<div>").html(n).html()&&(s.html(n),s.removeClass(function(t,e){return(e.match(/(^|\s)text-\S+/g)||[]).join(" ")}),s.addClass("text-"+l(t)),o.trigger("password.text",[n,t]))}}),this}.call(this)};h.fn.password=function(t){return this.each(function(){new e(h(this),t)})}}(jQuery),$(function(){var i=!1,n=null;$(".input-password").on("keydown",function(t){16==(t.keyCode?t.keyCode:t.which)&&(i=!0)}).on("keyup",function(t){var e=t.keyCode?t.keyCode:t.which;16==e&&(i=!1),20==e&&(n?(n=!1,$(".password-caps").remove()):(n=!0,$("input:focus").each(function(t){showCapsLockMsg($(this))})))}).on("keypress",function(t){var e=t.keyCode?t.keyCode:t.which;65<=e&&e<=90&&!i&&(n=!0,showCapsLockMsg($(this)))}),$(".input-password-strength-meter").password(),$(".password-icon").on("click",function(t){$(this).find('[class^="password-icon"]').toggleClass("d-none");
21var e=$(this).siblings(".input-password"),i="password"===e.attr("type")?"text":"password";e.attr("type",i)})}),function(){"use strict";void 0===Date.dp_locales&&(Date.dp_locales={texts:{buttonTitle:"Scegli la data ...",buttonLabel:"Fare clic o premere il tasto Invio o la barra spaziatrice per aprire il calendario",prevButtonLabel:"Vai al mese precedente",nextButtonLabel:"Vai al mese successivo",closeButtonTitle:"Chiudere",closeButtonLabel:"Chiudere il calendario",prevMonthButtonLabel:"Vai al precedente esercizio",prevYearButtonLabel:"Vai a vent'anni precedenti",nextMonthButtonLabel:"Vai al prossimo anno",nextYearButtonLabel:"Vai ai prossimi 20 anni",changeMonthButtonLabel:"Fare clic o premere il tasto Invio o la barra spaziatrice per cambiare il mese",changeYearButtonLabel:"Fare clic o premere il tasto Invio o la barra spaziatrice per cambiare l'anno",changeRangeButtonLabel:"Fare clic o premere il tasto Invio o la barra spaziatrice per andare ai prossimi 20 anni",calendarHelp:"- Freccia e Freccia giù - va allo stesso giorno della settimana in settimana precedente o successiva, rispettivamente. Se viene raggiunta la fine del mese, continua nel mese precedente o successivo a seconda dei casi.\r\n- Freccia Sinistra e Freccia destra - avanza un giorno all'altro, anche in un continuum. Visivamente fuoco viene spostato da un giorno all'altro e avvolge da riga a riga nella griglia di giorni.\r\n- Control + Pagina Su - Passa alla stessa data dell'anno precedente.\r\n- Control + Pagina giù - Passa alla stessa data nel prossimo anno.\r\n- Home - Passa al primo giorno del mese in corso.\r\n- End - Passa l'ultimo giorno del mese corrente.\r\n- Pagina Su - Passa alla stessa data del mese precedente.\r\n- Pagina giù - Passa alla stessa data del mese successivo.\r\n- Invio o Espace - chiude il calendario e la data selezionata viene visualizzata nella casella di testo associato.\r\n- Escape - chiude il calendario senza alcuna azione."},directionality:"LTR",month_names:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],month_names_abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],month_names_narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],day_names:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],day_names_abbreviated:["dom","lun","mar","mer","gio","ven","sab"],day_names_short:["dom","lun","mar","mer","gio","ven","sab"],day_names_narrow:["D","L","M","M","G","V","S"],day_periods:{am:"AM",noon:"mezzogiorno",pm:"PM"},day_periods_abbreviated:{am:"AM",noon:"mezzogiorno",pm:"PM"},day_periods_narrow:{am:"m.",noon:"n",pm:"p."},quarter_names:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"],quarter_names_abbreviated:["T1","T2","T3","T4"],quarter_names_narrow:["1","2","3","4"],era_names:["a.C.","d.C."],era_names_abbreviated:["aC","dC"],era_names_narrow:["aC","dC"],full_format:"EEEE d MMMM y",long_format:"d MMMM y",medium_format:"dd MMM y",short_format:"dd/MM/yy",firstday_of_week:1})}(),function(){"use strict";void 0===Date.dp_locales&&(Date.dp_locales={texts:{buttonTitle:"Select date ...",buttonLabel:"Click or press the Enter key or the spacebar to open the calendar",prevButtonLabel:"Go to previous month",prevMonthButtonLabel:"Go to the previous year",prevYearButtonLabel:"Go to the previous twenty years",nextButtonLabel:"Go to next month",nextMonthButtonLabel:"Go to the next year",nextYearButtonLabel:"Go to the next twenty years",changeMonthButtonLabel:"Click or press the Enter key or the spacebar to change the month",changeYearButtonLabel:"Click or press the Enter key or the spacebar to change the year",changeRangeButtonLabel:"Click or press the Enter key or the spacebar to go to the next twenty years",closeButtonTitle:"Close",closeButtonLabel:"Close the calendar",calendarHelp:"- Up Arrow and Down Arrow - goes to the same day of the week in the previous or next week respectively. If the end of the month is reached, continues into the next or previous month as appropriate.\r\n- Left Arrow and Right Arrow - advances one day to the next, also in a continuum. Visually focus is moved from day to day and wraps from row to row in the grid of days.\r\n- Control+Page Up - Moves to the same date in the previous year.\r\n- Control+Page Down - Moves to the same date in the next year.\r\n- Home - Moves to the first day of the current month.\r\n- End - Moves to the last day of the current month.\r\n- Page Up - Moves to the same date in the previous month.\r\n- Page Down - Moves to the same date in the next month.\r\n- Enter or Espace - closes the calendar, and the selected date is shown in the associated text box.\r\n- Escape - closes the calendar without any action."},directionality:"LTR",month_names:["January","February","March","April","May","June","July","August","September","October","November","December"],month_names_abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],month_names_narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],day_names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
21ay","Saturday"],day_names_abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],day_names_short:["Su","Mo","Tu","We","Th","Fr","Sa"],day_names_narrow:["S","M","T","W","T","F","S"],day_periods:{am:"AM",noon:"noon",pm:"PM"},day_periods_abbreviated:{am:"AM",noon:"noon",pm:"PM"},day_periods_narrow:{am:"a",noon:"n",pm:"p"},quarter_names:["1st quarter","2nd quarter","3rd quarter","4th quarter"],quarter_names_abbreviated:["Q1","Q2","Q3","Q4"],quarter_names_narrow:["1","2","3","4"],era_names:["Before Christ","Anno Domini"],era_names_abbreviated:["BC","AD"],era_names_narrow:["B","A"],full_format:"EEEE, MMMM d, y",long_format:"MMMM d, y",medium_format:"MMM d, y",short_format:"M/d/yy",firstday_of_week:0})}(),function(t){if("function"==typeof define&&define.amd)define(["jquery"],t);else if("object"==typeof exports)t(require("jquery"));else{if("undefined"==typeof jQuery)throw new Error("Datepicker's JavaScript requires jQuery");t(jQuery)}}(function(b,d){"use strict";var o=['<a class="datepicker-button input-group-addon btn" role="button" aria-haspopup="true" tabindex="0" aria-labelledby="datepicker-bn-open-label-CALENDARID">','\t<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>it-calendar</title><g><path d="M21,9V8a3,3,0,0,0-3-3h-.55V4a1,1,0,0,0-2,0V5h-7V4a1,1,0,1,0-2,0V5H6A3,3,0,0,0,3,8V18a3,3,0,0,0,3,3H18a3,3,0,0,0,3-3V9ZM15.46,5h2V6a1,1,0,1,1-2,0Zm-9,0h2V6a1,1,0,1,1-2,0ZM20,18a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V10H20Z"/></g></svg>',"</a>"],r=['<div class="datepicker-calendar" id="datepicker-calendar-CALENDARID" aria-hidden="false">','\t<div class="datepicker-month-wrap">','\t\t<div class="datepicker-month-fast-next pull-right" role="button" aria-labelledby="datepicker-bn-fast-next-label-CALENDARID" tabindex="0"><span class="icon-right"></span><span class="icon-right"></span></div>','\t\t<div class="datepicker-month-next pull-right" role="button" aria-labelledby="datepicker-bn-next-label-CALENDARID" tabindex="0"><span class="icon-right"></span></div>','\t\t<div class="datepicker-month-fast-prev pull-left" role="button" aria-labelledby="datepicker-bn-fast-prev-label-CALENDARID" tabindex="0"><span class="icon-left"></span><span class="icon-left"></span></div>','\t\t<div class="datepicker-month-prev pull-left" role="button" aria-labelledby="datepicker-bn-prev-label-CALENDARID" tabindex="0"><span class="icon-left"></span></div>','\t\t<div id="datepicker-month-CALENDARID" class="datepicker-month" tabindex="0" role="heading" aria-live="assertive" aria-atomic="true" title="Click or press the Enter key or the spacebar to change the month">July 2015</div>',"\t</div>",'\t<table class="datepicker-grid" role="grid" aria-readonly="true" aria-activedescendant="datepicker-err-msg-CALENDARID" aria-labelledby="datepicker-month-CALENDARID" tabindex="0">',"\t\t<thead>",'\t\t\t<tr class="datepicker-weekdays" role="row">','\t\t\t\t<th scope="col" id="day0-header-CALENDARID" class="datepicker-day" role="columnheader" aria-label="Sunday"><abbr title="Sunday">Su</abbr></th>','\t\t\t\t<th scope="col" id="day1-header-CALENDARID" class="datepicker-day" role="columnheader" aria-label="Monday"><abbr title="Monday">Mo</abbr></th>','\t\t\t\t<th scope="col" id="day2-header-CALENDARID" class="datepicker-day" role="columnheader" aria-label="Tuesday"><abbr title="Tuesday">Tu</abbr></th>','\t\t\t\t<th scope="col" id="day3-header-CALENDARID" class="datepicker-day" role="columnheader" aria-label="Wednesday"><abbr title="Wednesday">We</abbr></th>','\t\t\t\t<th scope="col" id="day4-header-CALENDARID" class="datepicker-day" role="columnheader" aria-label="Thursday"><abbr title="Thursday">Th</abbr></th>','\t\t\t\t<th scope="col" id="day5-header-CALENDARID" class="datepicker-day" role="columnheader" aria-label="Friday"><abbr title="Friday">Fr</abbr></th>','\t\t\t\t<th scope="col" id="day6-header-CALENDARID" class="datepicker-day" role="columnheader" aria-label="Saturday"><abbr title="Saturday">Sa</abbr></th>',"\t\t\t</tr>","\t\t</thead>","\t\t<tbody>","\t\t\t<tr>",'\t\t\t\t<td id="datepicker-err-msg-CALENDARID" colspan="7"><span>Javascript must be enabled</span></td>',"\t\t\t</tr>","\t\t</tbody>","\t</table>",'\t<div class="datepicker-close-wrap">','\t\t<button class="datepicker-close" id="datepicker-close-CALENDARID" aria-labelledby="datepicker-bn-close-label-CALENDARID">Close</button>',"\t</div>",'\t<div id="datepicker-bn-open-label-CALENDARID" class="datepicker-bn-open-label offscreen">Click or press the Enter key or the spacebar to open the calendar</div>','\t<div id="datepicker-bn-prev-label-CALENDARID" class="datepicker-bn-prev-label offscreen">Go to previous month</div>','\t<div id="datepicker-bn-next-label-CALENDARID" class="datepicker-bn-next-label offscreen">Go to next month</div>','\t<div id="datepicker-bn-fast-prev-label-CALENDARID" class="datepicker-bn-fast-prev-label offscreen">Go to previous year</div>','\t<div id="datepicker-bn-fast-next-label-CALENDARID" class="datepicker-bn-fast-next-label offscreen">Go to next year</div>','\t<div id="datepicker-bn-close-label-CALENDARID" class="datepicker-bn-close-label offscreen">Close the date picker</div>',"</div>"],a=function t(e,i){var n=this;this.$target=b(e),this.options=b.extend({},t.DEFAULTS,i),this.locales=Date.dp_locales,this.startview(this.options.startView),"string"==typeof this.options.inputFormat&&(this.options.inputFormat=[this.options.inputFormat]),b.isArray(this.options.datesDisabled)||(this.options.datesDisabled=[this.options.datesDisabled]),b.each(this.options.datesDisabled,function(t,e){if("string"==typeof e){var i=n.parseDate(e);n.options.datesDisabled[t]=null===i?null:n.format(i)}else e instanceof Date&&!isNaN(e.valueOf())?n.options.datesDisabled[t]=n.format(e):n.options.datesDisabled[t]=null}),null!=this.options.min?this.options.min=this.parseDate(this.options.min):this.$target.attr("min")&&(this.options.min=this.parseDate(this.$target.attr("min"))),null!=this.options.max?this.options.max=this.parseDate(this.options.max):this.$target.attr("max")&&(this.options.max=this.parseDate(this.$target.attr("max"))),"string"==typeof this.options.previous?this.options.previous=b(this.options.previous):this.options.previous instanceof jQuery||
21(this.options.previous=null),"string"==typeof this.options.next?this.options.next=b(this.options.next):this.options.next instanceof jQuery||(this.options.next=null),this.id=this.$target.attr("id")||"datepicker-"+Math.floor(1e5*Math.random());var s=r.join("");s=s.replace(/CALENDARID/g,this.id+""),0==this.$target.parent(".input-group").length&&this.$target.wrap('<div class="input-group"></div>'),this.$label=this.$target.parents().find("label[for="+this.id+"]"),this.$group=this.$target.parent(".input-group"),this.$target.attr("aria-autocomplete","none"),this.$target.css("min-width","7em"),this.$target.addClass("form-control"),this.$target.attr("placeholder")||this.$target.attr("placeholder",this.options.inputFormat[0]);var a=o.join("");a=a.replace(/CALENDARID/g,this.id+""),this.$button=b(a),this.$button.addClass(this.options.theme),this.$calendar=b(s),this.$calendar.addClass(this.options.theme),this.$target.after(this.$button),"static"===this.$calendar.parent().css("position")&&this.$calendar.parent().css("position","relative"),this.$calendar.find(".datepicker-bn-open-label").html(this.options.buttonLabel),this.$target.attr("id")&&this.$calendar.attr("aria-controls",this.$target.attr("id")),this.$button.find("span").attr("title",this.options.buttonTitle),this.$calendar.css("left",this.$target.parent().position().left+"px"),this.$monthObj=this.$calendar.find(".datepicker-month"),this.$prev=this.$calendar.find(".datepicker-month-prev"),this.$next=this.$calendar.find(".datepicker-month-next"),this.$fastprev=this.$calendar.find(".datepicker-month-fast-prev"),this.$fastnext=this.$calendar.find(".datepicker-month-fast-next"),this.$grid=this.$calendar.find(".datepicker-grid"),"RTL"===this.locales.directionality&&this.$grid.addClass("rtl");this.$grid.find("th.datepicker-day abbr");(this.drawCalendarHeader(),0==this.options.inline&&1==this.options.modal?(this.$close=this.$calendar.find(".datepicker-close"),this.$close.html(this.options.closeButtonTitle).attr("title",this.options.closeButtonLabel),this.$calendar.find(".datepicker-bn-close-label").html(this.options.closeButtonLabel)):(this.hideObject(this.$calendar.find(".datepicker-close-wrap")),this.hideObject(this.$calendar.find(".datepicker-bn-close-label"))),0!=this.options.inline)?(this.hideObject(this.$button),("string"==typeof this.options.inline?b("#"+this.options.inline):this.options.inline).append(this.$calendar),this.$calendar.css({position:"relative",left:"0px"}),this.initializeDate()):(this.$calendar.css({display:"none"}),this.$target.parent().after(this.$calendar),this.hide(!this.options.gainFocusOnConstruction));this.keys={tab:9,enter:13,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,left:37,up:38,right:39,down:40},this.bindHandlers(),this.$button.click(function(t){return b(this).hasClass("disabled")||("true"===n.$calendar.attr("aria-hidden")?(n.initializeDate(),n.show()):n.hide(),n.selectGridCell(n.$grid.attr("aria-activedescendant"))),t.stopPropagation(),!1}),this.$button.keydown(function(t){var e=t||event;if(e.keyCode==n.keys.enter||e.keyCode==n.keys.space)return b(this).trigger("click"),!1}),this.$calendar.on("blur",function(t){"false"===n.$calendar.attr("aria-hidden")&&n.hide()})};a.VERSION="2.1.10",a.DEFAULTS={firstDayOfWeek:Date.dp_locales.firstday_of_week,weekDayFormat:"short",startView:0,daysOfWeekDisabled:[],datesDisabled:[],isDateDisabled:null,isMonthDisabled:null,isYearDisabled:null,inputFormat:[Date.dp_locales.short_format],outputFormat:Date.dp_locales.short_format,titleFormat:Date.dp_locales.full_format,buttonTitle:Date.dp_locales.texts.buttonTitle,buttonLabel:Date.dp_locales.texts.buttonLabel,prevButtonLabel:Date.dp_locales.texts.prevButtonLabel,prevMonthButtonLabel:Date.dp_locales.texts.prevMonthButtonLabel,prevYearButtonLabel:Date.dp_locales.texts.prevYearButtonLabel,nextButtonLabel:Date.dp_locales.texts.nextButtonLabel,nextMonthButtonLabel:Date.dp_locales.texts.nextMonthButtonLabel,nextYearButtonLabel:Date.dp_locales.texts.nextYearButtonLabel,changeMonthButtonLabel:Date.dp_locales.texts.changeMonthButtonLabel,changeYearButtonLabel:Date.dp_locales.texts.changeYearButtonLabel,changeRangeButtonLabel:Date.dp_locales.texts.changeRangeButtonLabel,closeButtonTitle:Date.dp_locales.texts.closeButtonTitle,closeButtonLabel:Date.dp_locales.texts.closeButtonLabel,onUpdate:function(t){},previous:null,next:null,theme:"default",modal:!1,inline:!1,gainFocusOnConstruction:!1,min:null,max:null},a.prototype.initializeDate=function(){var t=this.$target.val(),e=""===t?new Date:this.parseDate(t);this.setDate(e,!0)},a.prototype.getDate=function(){var t=this.$target.val();return""===t?new Date:this.parseDate(t)},a.prototype.setDate=function(t,e){switch(this.dateObj=t,e=void 0!==e&&e,null==this.dateObj&&(this.$target.attr("aria-invalid",!0),this.$target.parents(".form-group").addClass("has-error"),this.dateObj=new Date,this.dateObj.setHours(0,0,0,0)),null!=this.options.min&&this.dateObj<this.options.min?(this.$target.attr("aria-invalid",!0),this.$target.parents(".form-group").addClass("has-error"),this.dateObj=this.options.min):null!=this.options.max&&this.dateObj>this.options.max&&(this.$target.attr("aria-invalid",!0),this.$target.parents(".form-group").addClass("has-error"),this.dateObj=this.options.max),e&&""==this.$target.val()||this.$target.val(this.format(this.dateObj)),this.curYear=this.dateObj.getFullYear(),this.year=this.curYear,this.curMonth=this.dateObj.getMonth(),this.month=this.curMonth,this.date=this.dateObj.getDate(),this.options.startView){case 1:this.populateMonthsCalendar(
21),this.$grid.attr("aria-activedescendant",this.$grid.find(".curMonth").attr("id"));break;case 2:this.populateYearsCalendar(),this.$grid.attr("aria-activedescendant",this.$grid.find(".curYear").attr("id"));break;default:this.populateDaysCalendar(),this.$grid.attr("aria-activedescendant",this.$grid.find(".curDay").attr("id"))}},a.prototype.drawCalendarHeader=function(){for(var t=this.$grid.find("th.datepicker-day"),e=this.options.firstDayOfWeek,i=0;i<7;i++)t.eq(i).attr("aria-label",this.locales.day_names[e]),t.children("abbr").eq(i).attr("title",this.locales.day_names[e]).text("short"===this.options.weekDayFormat?this.locales.day_names_short[e]:this.locales.day_names_narrow[e]),e=(e+1)%7},a.prototype.populateDaysCalendar=function(){this.$calendar.find(".datepicker-bn-prev-label").html(this.options.prevButtonLabel),this.$calendar.find(".datepicker-bn-next-label").html(this.options.nextButtonLabel),this.$calendar.find(".datepicker-bn-fast-prev-label").html(this.options.prevMonthButtonLabel),this.$calendar.find(".datepicker-bn-fast-next-label").html(this.options.nextMonthButtonLabel),null!=this.options.min&&(this.year-1<this.options.min.getFullYear()||this.year-1==this.options.min.getFullYear()&&this.month<this.options.min.getMonth())?(this.$fastprev.attr("title",""),this.$fastprev.addClass("disabled"),this.$fastprev.removeClass("enabled")):(this.$fastprev.attr("title",this.options.prevMonthButtonLabel),this.$fastprev.addClass("enabled"),this.$fastprev.removeClass("disabled"));var t=this.previousMonth(this.year,this.month);null!=this.options.min&&(t.year<this.options.min.getFullYear()||t.year==this.options.min.getFullYear()&&t.month<this.options.min.getMonth())?(this.$prev.attr("title",""),this.$prev.addClass("disabled"),this.$prev.removeClass("enabled")):(this.$prev.attr("title",this.options.prevButtonLabel),this.$prev.addClass("enabled"),this.$prev.removeClass("disabled")),this.$monthObj.attr("title",this.options.changeMonthButtonLabel);var e=this.nextMonth(this.year,this.month);null!=this.options.max&&(e.year>this.options.max.getFullYear()||e.year==this.options.max.getFullYear()&&e.month>this.options.max.getMonth())?(this.$next.attr("title",""),this.$next.addClass("disabled"),this.$next.removeClass("enabled")):(this.$next.attr("title",this.options.nextButtonLabel),this.$next.addClass("enabled"),this.$next.removeClass("disabled")),null!=this.options.max&&(this.year+1>this.options.max.getFullYear()||this.year+1==this.options.max.getFullYear()&&this.month>this.options.max.getMonth())?(this.$fastnext.attr("title",""),this.$fastnext.addClass("disabled"),this.$fastnext.removeClass("enabled")):(this.$fastnext.attr("title",this.options.nextMonthButtonLabel),this.$fastnext.addClass("enabled"),this.$fastnext.removeClass("disabled")),this.showObject(this.$fastprev),this.showObject(this.$fastnext);var i=this.getDaysInMonth(this.year,this.month),n=this.getDaysInMonth(t.year,t.month),s=new Date(this.year,this.month,1).getDay(),a=(this.options.firstDayOfWeek+6)%7,o=1,r=1;this.$monthObj.html(this.locales.month_names[this.month]+" "+this.year),this.showObject(this.$grid.find("thead"));for(var l='\t<tr id="row0-'+this.id+'" role="row">\n',c=0,h=this.options.firstDayOfWeek;h!=s;)c++,h=(h+1)%7;for(;0<c;c--)l+='\t\t<td class="empty">'+(n-c+1)+"</td>\n";var d=this.options.isYearDisabled&&this.options.isYearDisabled(this.year),u=this.options.isMonthDisabled&&this.options.isMonthDisabled(this.year,this.month+1);for(o=1;o<=i;o++){var p=new Date(this.year,this.month,o,0,0,0,0),f=this.formatDate(p,this.options.titleFormat),m=o==this.date&&this.month==this.curMonth&&this.year==this.curYear?" curDay":"";d||u?l+='\t\t<td id="cell'+o+"-"+this.id+'" class="day unselectable'+m+'"':-1<b.inArray(h,this.options.daysOfWeekDisabled)?l+='\t\t<td id="cell'+o+"-"+this.id+'" class="day unselectable'+m+'"':null!=this.options.min&&p<this.options.min?l+='\t\t<td id="cell'+o+"-"+this.id+'" class="day unselectable'+m+'"':null!=this.options.max&&p>this.options.max?l+='\t\t<td id="cell'+o+"-"+this.id+'" class="day unselectable'+m+'"':-1<b.inArray(this.format(p),this.options.datesDisabled)?l+='\t\t<td id="cell'+o+"-"+this.id+'" class="day unselectable'+m+'"':this.options.isDateDisabled&&this.options.isDateDisabled(p)?l+='\t\t<td id="cell'+o+"-"+this.id+'" class="day unselectable'+m+'"':l+='\t\t<td id="cell'+o+"-"+this.id+'" class="day selectable'+m+'"',l+=' data-value="'+o+'"',l+=' title="'+f+'"',l+=' aria-label="'+f+'"',l+=' headers="day'+h+"-header-"+this.id+'" role="gridcell" tabindex="-1" aria-selected="false"><span>'+o+"</span>",l+="</td>",h==a&&o<i&&(l+='\t</tr>\n\t<tr id="row'+r+"-"+this.id+'" role="row">\n',r++),o<i&&(h=(h+1)%7)}for(;h!=a;)l+='\t\t<td class="empty">'+ ++c+"</td>\n",h=(h+1)%7;l+="\t</tr>";var g=this.$grid.find("tbody");g.empty(),g.append(l),this.gridType=0},a.prototype.populateMonthsCalendar=function(){this.$calendar.find(".datepicker-bn-prev-label").html(this.options.prevMonthButtonLabel),this.$calendar.find(".datepicker-bn-next-label").html(this.options.nextMonthButtonLabel),this.hideObject(this.$fastprev),this.hideObject(this.$fastnext),null!=this.options.min&&this.year-1<this.options.min.getFullYear()?(this.$prev.attr("title",""),this.$prev.addClass("disabled"),this.$prev.removeClass("enabled")):(this.$prev.attr("title",this.options.prevMonthButtonLabel),this.$prev.addClass("enabled"),this.$prev.removeClass("disabled")),this.$monthObj.attr("title",this.options.changeYearButtonLabel),null!=this.options.max&&this.year+1>this.options.max.getFullYear()?(this.$next.attr("title",""),this.$next.addClass("disabled"),this.$next.removeClass("enabled")):(this.$next.attr("title",this.options.nextMonthButtonLabel),this.$next.addClass("enabled"),this.$next.removeClass("disabled"));var t=0,e=1,i=this.$grid.find("tbody");this.$monthObj.html(this.year),this.hideObject(this.$grid.find("thead")),i.empty(),b("#datepicker-err-msg-"+this.id
21).empty();var n='\t<tr id="row0-'+this.id+'" role="row">\n',s=this.options.isYearDisabled&&this.options.isYearDisabled(this.year);for(t=0;t<12;t++)s?n+='\t\t<td id="cell'+(t+1)+"-"+this.id+'" class="month unselectable"':t==this.month&&this.year==this.curYear?n+='\t\t<td id="cell'+(t+1)+"-"+this.id+'" class="month curMonth selectable"':null!=this.options.min&&(this.year<this.options.min.getFullYear()||this.year==this.options.min.getFullYear()&&t<this.options.min.getMonth())?n+='\t\t<td id="cell'+(t+1)+"-"+this.id+'" class="month unselectable"':null!=this.options.max&&(this.year>this.options.max.getFullYear()||this.year==this.options.max.getFullYear()&&t>this.options.max.getMonth())?n+='\t\t<td id="cell'+(t+1)+"-"+this.id+'" class="month unselectable"':this.options.isMonthDisabled&&this.options.isMonthDisabled(this.year,t+1)?n+='\t\t<td id="cell'+(t+1)+"-"+this.id+'" class="month unselectable"':n+='\t\t<td id="cell'+(t+1)+"-"+this.id+'" class="month selectable"',n+=' data-value="'+t+'"',n+=' title="'+this.locales.month_names[t]+" "+this.year+'"',n+=' aria-label="'+this.locales.month_names[t]+" "+this.year+'"',n+=' role="gridcell" tabindex="-1" aria-selected="false">'+this.locales.month_names_abbreviated[t],n+="</td>",3!=t&&7!=t||(n+='\t</tr>\n\t<tr id="row'+e+"-"+this.id+'" role="row">\n',e++);n+="\t</tr>",i.append(n),this.gridType=1},a.prototype.populateYearsCalendar=function(){this.$calendar.find(".datepicker-bn-prev-label").html(this.options.prevYearButtonLabel),this.$calendar.find(".datepicker-bn-next-label").html(this.options.nextYearButtonLabel),this.hideObject(this.$fastprev),this.hideObject(this.$fastnext),null!=this.options.min&&this.year-20<this.options.min.getFullYear()?(this.$prev.attr("title",""),this.$prev.addClass("disabled"),this.$prev.removeClass("enabled")):(this.$prev.attr("title",this.options.prevYearButtonLabel),this.$prev.addClass("enabled"),this.$prev.removeClass("disabled")),this.$monthObj.attr("title",this.options.changeRangeButtonLabel),null!=this.options.max&&this.year+20>this.options.max.getFullYear()?(this.$next.attr("title",""),this.$next.addClass("disabled"),this.$next.removeClass("enabled")):(this.$next.attr("title",this.options.nextYearButtonLabel),this.$next.addClass("enabled"),this.$next.removeClass("disabled"));var t=10*Math.floor(this.year/10),e=t+19,i=1,n=this.$grid.find("tbody");this.$monthObj.html(t+"-"+e),this.hideObject(this.$grid.find("thead")),n.empty(),b("#datepicker-err-msg-"+this.id).empty();for(var s='\t<tr id="row0-'+this.id+'" role="row">\n',a=t;a<=e;a++){a==this.year?s+='\t\t<td id="cell'+(a-t+1)+"-"+this.id+'" class="year curYear selectable"':null!=this.options.min&&a<this.options.min.getFullYear()?s+='\t\t<td id="cell'+(a-t+1)+"-"+this.id+'" class="year unselectable"':null!=this.options.max&&a>this.options.max.getFullYear()?s+='\t\t<td id="cell'+(a-t+1)+"-"+this.id+'" class="year unselectable"':this.options.isYearDisabled&&this.options.isYearDisabled(a)?s+='\t\t<td id="cell'+(a-t+1)+"-"+this.id+'" class="year unselectable"':s+='\t\t<td id="cell'+(a-t+1)+"-"+this.id+'" class="year selectable"',s+=' data-value="'+a+'"',s+=' title="'+a+'"',s+=' role="gridcell" tabindex="-1" aria-selected="false">'+a,s+="</td>";var o=a-t;4!=o&&9!=o&&14!=o||(s+='\t</tr>\n\t<tr id="row'+i+"-"+this.id+'" role="row">\n',i++)}s+="\t</tr>",n.append(s),this.gridType=2},a.prototype.showDaysOfPrevMonth=function(t){var e=this.previousMonth(this.year,this.month);if(null!=this.options.min&&(e.year<this.options.min.getFullYear()||e.year==this.options.min.getFullYear()&&e.month<this.options.min.getMonth()))return!1;if(this.month=e.month,this.year=e.year,this.populateDaysCalendar(),null!=t){var i="cell"+(this.getDaysInMonth(this.year,this.month)-t)+"-"+this.id;this.$grid.attr("aria-activedescendant",i),this.selectGridCell(i)}return!0},a.prototype.showDaysOfMonth=function(t){if(null!=this.options.min&&(this.year<this.options.min.getFullYear()||this.year==this.options.min.getFullYear()&&t<this.options.min.getMonth()))return!1;if(null!=this.options.max&&(this.year>this.options.max.getFullYear()||this.year==this.options.max.getFullYear()&&t>this.options.max.getMonth()))return!1;this.month=t,this.date=Math.min(this.date,this.getDaysInMonth(this.year,this.month)),this.populateDaysCalendar(
21);var e=this.$grid.find("tbody td[data-value='"+this.date+"']");return this.selectGridCell(e.attr("id")),!0},a.prototype.showMonthsOfPrevYear=function(t){if(null!=this.options.min&&this.year-1<this.options.min.getFullYear())return!1;if(this.year--,this.populateMonthsCalendar(),null!=t){var e="cell"+(12-t)+"-"+this.id;this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e)}return!0},a.prototype.showMonthsOfYear=function(t){if(null!=this.options.min&&t<this.options.min.getFullYear())return!1;if(null!=this.options.max&&t>this.options.max.getFullYear())return!1;this.year=t,this.populateMonthsCalendar();var e=this.$grid.find("tbody td[data-value='"+this.month+"']");return this.$grid.attr("aria-activedescendant",e.attr("id")),this.selectGridCell(e.attr("id")),!0},a.prototype.showYearsOfPrevRange=function(t){if(null!=this.options.min&&this.year-20<this.options.min.getFullYear())return!1;if(this.year-=20,this.populateYearsCalendar(),null!=t){var e="cell"+(20-t)+"-"+this.id;this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e)}return!0},a.prototype.showDaysOfNextMonth=function(t){var e=this.nextMonth(this.year,this.month);if(null!=this.options.max&&(e.year>this.options.max.getFullYear()||e.year==this.options.max.getFullYear()&&e.month>this.options.max.getMonth()))return!1;if(this.month=e.month,this.year=e.year,this.populateDaysCalendar(),null!=t){var i="cell"+t+"-"+this.id;this.$grid.attr("aria-activedescendant",i),this.selectGridCell(i)}return!0},a.prototype.showMonthsOfNextYear=function(t){if(null!=this.options.max&&this.year+1>this.options.max.getFullYear())return!1;if(this.year++,this.populateMonthsCalendar(),null!=t){var e="cell"+t+"-"+this.id;this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e)}return!0},a.prototype.showYearsOfNextRange=function(t){if(null!=this.options.max&&this.year+20>this.options.max.getFullYear())return!1;if(this.year+=20,this.populateYearsCalendar(),null!=t){var e="cell"+t+"-"+this.id;this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e)}return!0},a.prototype.showDaysOfPrevYear=function(){return(null==this.options.min||!(this.year-1<this.options.min.getFullYear()||this.year-1==this.options.min.getFullYear()&&this.month<this.options.min.getMonth()))&&(this.year--,this.populateDaysCalendar(),!0)},a.prototype.showDaysOfNextYear=function(){return(null==this.options.max||!(this.year+1>this.options.max.getFullYear()||this.year+1==this.options.max.getFullYear()&&this.month>this.options.max.getMonth()))&&(this.year++,this.populateDaysCalendar(),!0)},a.prototype.bindHandlers=function(){var i=this;this.$fastprev.click(function(t){return i.handleFastPrevClick(t)}),this.$prev.click(function(t){return i.handlePrevClick(t)}),this.$next.click(function(t){return i.handleNextClick(t)}),this.$fastnext.click(function(t){return i.handleFastNextClick(t)}),this.$monthObj.click(function(t){return i.handleMonthClick(t)}),this.$monthObj.keydown(function(t){return i.handleMonthKeyDown(t)}),this.$fastprev.keydown(function(t){return i.handleFastPrevKeyDown(t)}),this.$prev.keydown(function(t){return i.handlePrevKeyDown(t)}),this.$next.keydown(function(t){return i.handleNextKeyDown(t)}),this.$fastnext.keydown(function(t){return i.handleFastNextKeyDown(t)}),1==this.options.modal&&(this.$close.click(function(t){return i.handleCloseClick(t)}),this.$close.keydown(function(t){return i.handleCloseKeyDown(t)})),this.$grid.keydown(function(t){return i.handleGridKeyDown(t)}),this.$grid.keypress(function(t){return i.handleGridKeyPress(t)}),this.$grid.focus(function(t){return i.handleGridFocus(t)}),this.$grid.blur(function(t){return i.handleGridBlur(t)}),this.$grid.delegate("td","click",function(t){return i.handleGridClick(this,t)}),this.$target.change(function(t){var e=i.parseDate(b(this).val());i.updateLinked(e)})},a.prototype.handleFastPrevClick=function(t){if(this.showDaysOfPrevYear()){var e=this.$grid.attr("aria-activedescendant");this.month!=this.curMonth||this.year!=this.curYear?(this.$grid.attr("aria-activedescendant","cell1-"+this.id),this.selectGridCell("cell1-"+this.id)):(this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e))}return t.stopPropagation(),!1},a.prototype.handlePrevClick=function(t){var e=this.$grid.attr("aria-activedescendant");switch(this.gridType){case 0:(t.ctrlKey?this.showDaysOfPrevYear():this.showDaysOfPrevMonth())&&(this.month!=this.curMonth||this.year!=this.curYear?(this.$grid.attr("aria-activedescendant","cell1-"+this.id
21),this.selectGridCell("cell1-"+this.id)):(this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e)));break;case 1:this.showMonthsOfPrevYear()&&(this.year!=this.curYear?(this.$grid.attr("aria-activedescendant","cell1-"+this.id),this.selectGridCell("cell1-"+this.id)):(this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e)));break;case 2:this.showYearsOfPrevRange()&&(this.$grid.attr("aria-activedescendant","cell1-"+this.id),this.selectGridCell("cell1-"+this.id))}return t.stopPropagation(),!1},a.prototype.handleMonthClick=function(t){return this.changeGrid(t),t.stopPropagation(),!1},a.prototype.handleNextClick=function(t){var e=this.$grid.attr("aria-activedescendant");switch(this.gridType){case 0:(t.ctrlKey?this.showDaysOfNextYear():this.showDaysOfNextMonth())&&(this.month!=this.curMonth||this.year!=this.curYear?(this.$grid.attr("aria-activedescendant","cell1-"+this.id),this.selectGridCell("cell1-"+this.id)):(this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e)));break;case 1:this.showMonthsOfNextYear()&&(this.year!=this.curYear?(this.$grid.attr("aria-activedescendant","cell1-"+this.id),this.selectGridCell("cell1-"+this.id)):(this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e)));break;case 2:this.showYearsOfNextRange()&&(this.$grid.attr("aria-activedescendant","cell1-"+this.id),this.selectGridCell("cell1-"+this.id))}return t.stopPropagation(),!1},a.prototype.handleFastNextClick=function(t){if(this.showDaysOfNextYear()){var e=this.$grid.attr("aria-activedescendant");this.month!=this.curMonth||this.year!=this.curYear?(this.$grid.attr("aria-activedescendant","cell1-"+this.id),this.selectGridCell("cell1-"+this.id)):(this.$grid.attr("aria-activedescendant",e),this.selectGridCell(e))}return t.stopPropagation(),!1},a.prototype.handleCloseClick=function(t){return this.hide(),t.stopPropagation(),!1},a.prototype.handleFastPrevKeyDown=function(t){if(t.altKey)return!0;switch(t.keyCode){case this.keys.tab:return!(0!=this.options.modal&&!t.ctrlKey)||(t.shiftKey?this.$close.focus():this.$prev.focus(),t.stopPropagation(),!1);case this.keys.enter:case this.keys.space:return!(!t.shiftKey&&!t.ctrlKey)||(this.showDaysOfPrevYear(),t.stopPropagation(),!1);case this.keys.esc:return this.hide(),t.stopPropagation(),!1}return!0},a.prototype.handlePrevKeyDown=function(t){if(t.altKey)return!0;switch(t.keyCode){case this.keys.tab:return!(0!=this.options.modal&&!t.ctrlKey)||(t.shiftKey?0==this.gridType?this.$fastprev.focus():this.$close.focus():this.$monthObj.focus(),t.stopPropagation(),!1);case this.keys.enter:case this.keys.space:if(t.shiftKey)return!0;switch(this.gridType){case 0:t.ctrlKey?this.showDaysOfPrevYear():this.showDaysOfPrevMonth();break;case 1:this.showMonthsOfPrevYear();break;case 2:this.showYearsOfPrevRange()}return t.stopPropagation(),!1;case this.keys.esc:return this.hide(),t.stopPropagation(),!1}return!0},a.prototype.handleMonthKeyDown=function(t){if(t.altKey)return!0;switch(t.keyCode){case this.keys.tab:return!(0!=this.options.modal&&!t.ctrlKey)||(t.shiftKey?this.$prev.focus():this.$next.focus(),t.stopPropagation(),!1);case this.keys.enter:case this.keys.space:return this.changeGrid(t),t.stopPropagation(),!1;case this.keys.esc:return this.hide(),t.stopPropagation(),!1}return!0},a.prototype.handleNextKeyDown=function(t){if(t.altKey)return!0;switch(t.keyCode){case this.keys.tab:return!(0!=this.options.modal&&!t.ctrlKey)||(t.shiftKey?this.$monthObj.focus():0==this.gridType?this.$fastnext.focus():this.$grid.focus(),t.stopPropagation(),!1);case this.keys.enter:case this.keys.space:switch(this.gridType){case 0:t.ctrlKey?this.showDaysOfNextYear():this.showDaysOfNextMonth();break;case 1:this.showMonthsOfNextYear();break;case 2:this.showYearsOfNextRange()}return t.stopPropagation(),!1;case this.keys.esc:return this.hide(),t.stopPropagation(),!1}return!0},a.prototype.handleFastNextKeyDown=function(t){if(t.altKey)return!0;switch(t.keyCode){case this.keys.tab:return!(0!=this.options.modal&&!t.ctrlKey)||(t.shiftKey?this.$next.focus():this.$grid.focus(),t.stopPropagation(),!1);case this.keys.enter:case this.keys.space:return this.showDaysOfNextYear(),t.stopPropagation(),!1;case this.keys.esc:return this.hide(),t.stopPropagation(),!1}return!0},a.prototype.handleCloseKeyDown=function(t){if(t.altKey)return!0;switch(t.keyCode){case this.keys.tab:return!!t.ctrlKey||(t.shiftKey?this.$grid.focus():0==this.gridType?this.$fastprev.focus():this.$prev.focus(),t.stopPropagation(),!1);case this.keys.enter:case this.keys.esc:case this.keys.space:return!(!t.shiftKey&&!t.ctrlKey)||(this.hide(),t.stopPropagation(),!1)}return!0},a.prototype.handleGridKeyDown=function(t){var e=b("#"+this.$grid.attr("aria-activedescendant")),i=this.$grid.find("td.selectable"),n=this.$grid.find("tbody tr").eq(0).find("td").length;if(t.altKey&&t.keyCode!=this.keys.pageup&&t.keyCode!=this.keys.pagedown)return!0;switch(t.keyCode){case this.keys.tab:return 1==this.options.modal?t.shiftKey?0==this.gridType?this.$fastnext.focus():this.$next.focus():this.$close.focus():(this.hide(),this.handleTabOut(t)),t.stopPropagation(),!1;case this.keys.enter:case this.keys.space:if(t.ctrlKey)return!0;switch(this.gridType){case 0:this.update(),this.hide();break;case 1:this.showDaysOfMonth(parseInt(e.attr("data-value"),10));break;case 2:this.showMonthsOfYear(parseInt(e.attr("data-value"),10))}return t.stopPropagation(),!1;case this.keys.esc:return this.hide(),t.stopPropagation(),!1;case this.keys.left:case this.keys.right:if(t.keyCode==this.keys.left&&"LTR"===this.locales.directionality||t.keyCode==this.keys.right&&"RTL"===this.locales.directionality){if(t.ctrlKey||t.shiftKey)return!0;var s=null;if(0<=(o=i.index(e)-1))s=i.eq(o),this.unSelectGridCell(e.attr("id")),this.$grid.attr("aria-activedescendant",s.attr("id")),this.selectGridCell(s.attr("id"));else switch(this.gridType){case 0:this.showDaysOfPrevMonth(0);break;case 1:this.showMonthsOfPrevYear(0);break;case 2:this.showYearsOfPrevRange(0)}return t.stopPropagation(),!1}if(t.ctrlKey||t.shiftKey)return!0;var a=null;if((o=i.index(e)+1)<i.length)a=i.eq(o),this.unSelectGridCell(e.attr("id")),this.$grid.attr("aria-activedescendant",a.attr("id")),this.selectGridCell(a.attr("id"));else switch(this.gridType){case 0:this.showDaysOfNextMonth(1);break;case 1:this.showMonthsOfNextYear(1);break;case 2:this.showYearsOfNextRange(1)}return t.stopPropagation(),!1;case this.keys.up:if(t.ctrlKey||t.shiftKey)return!0;s=null;if(0<=(o=i.index(e)-n))s=i.eq(o),this.unSelectGridCell(e.attr("id")),this.$grid.attr("aria-activedescendant",s.attr("id")),this.selectGridCell(s.attr("id"));else switch(o=n-1-i.index(e),this.gridType){case 0:this.showDaysOfPrevMonth(o);break;case 1:this.showMonthsOfPrevYear(o);break;case 2:this.showYearsOfPrevRange(o)}return t.stopPropagation(),!1;case this.keys.down:if(t.ctrlKey||t.shiftKey)return!0;var o;a=null;if((o=i.index(e)+n)<i.length)a=i.eq(o),this.unSelectGridCell(e.attr("id")),this.$grid.attr("aria-activedescendant",a.attr("id")),this.selectGridCell(a.attr("id"));else switch(o=n+1-(i.length-i.index(e)),this.gridType){case 0:this.showDaysOfNextMonth(o);break;case 1:this.showMonthsOfNextYear(o);break;case 2:this.showYearsOfNextRange(o)}return t.stopPropagation(),!1;case this.keys.pageup:var r=this.$grid.attr("aria-activedescendant");if(t.shiftKey||t.ctrlKey)return!0;t.preventDefault();var l=!1;switch(this.gridType){case 0:l=t.altKey?(t.stopImmediatePropagation(),this.showDaysOfPrevYear()):this.showDaysOfPrevMonth();break;case 1:l=this.showMonthsOfPrevYear();break;case 2:l=this.showYearsOfPrevRange()}if(l)if(b("#"+r).attr("id")==d){var c=(i=this.$grid.find("td.selectable")).eq(i.length-1);this.$grid.attr("aria-activedescendant",c.attr("id")),this.selectGridCell(c.attr("id"))}else this.selectGridCell(r);return t.stopPropagation(),!1;case this.keys.pagedown:r=this.$grid.attr("aria-activedescendant");if(t.shiftKey||t.ctrlKey)return!0;t.preventDefault();l=!1;switch(this.gridType){case 0:l=t.altKey?(t.stopImmediatePropagation(),this.showDaysOfNextYear()):this.showDaysOfNextMonth();break;case 1:l=this.showMonthsOfNextYear();break;case 2:l=this.showYearsOfNextRange()}if(l)if(b("#"+r).attr("id")==d){c=(i=this.$grid.find("td.selectable")).eq(i.length-1);this.$grid.attr("aria-activedescendant",c.attr("id")),this.selectGridCell(c.attr("id"))}else this.selectGridCell(r);return t.stopPropagation(),!1;case this.keys.home:if(t.ctrlKey||t.shiftKey)return!0;var h=i.eq(0);return this.unSelectGridCell(e.attr("id")),this.$grid.attr("aria-activedescendant",h.attr("id")),this.selectGridCell(h.attr("id")),t.stopPropagation(),!1;case this.keys.end:if(t.ctrlKey||t.shiftKey)return!0;c=i.eq(i.length-1);return this.unSelectGridCell(e.attr("id")),this.$grid.attr("aria-activedescendant",c.attr("id")),this.selectGridCell(c.attr("id")),t.stopPropagation(),!1}return!0},a.prototype.handleGridKeyPress=function(t){if(t.altKey)return!0;switch(t.keyCode){case this.keys.tab:case this.keys.enter:case this.keys.space:case this.keys.esc:case this.keys.left:case this.keys.right:case this.keys.up:case this.keys.down:case this.keys.pageup:case this.keys.pagedown:case this.keys.home:case this.keys.end:return t.stopPropagation(),!1}return!0},a.prototype.handleGridClick=function(t,e){var i=b(t);if(i.is(".empty")||i.is(".unselectable"))return!0;switch(this.$grid.find(".focus").removeClass("focus").attr("aria-selected","false").attr("tabindex",-1),this.gridType){case 0:this.$grid.attr("aria-activedescendant",i.attr("id")),this.selectGridCell(i.attr("id")),this.update(),this.hide();break;case 1:this.showDaysOfMonth(parseInt(i.attr("data-value"),10));break;case 2:this.showMonthsOfYear(parseInt(i.attr("data-value"),10))}return e.stopPropagation(),!1},a.prototype.handleGridFocus=function(t){var e=this.$grid.attr("aria-activedescendant");if(b("#"+e).attr("id")==d){var i=this.$grid.find("td.selectable"),n=i.eq(i.length-1);this.$grid.attr("aria-activedescendant",n.attr("id")),this.selectGridCell(n.attr("id"))}else this.selectGridCell(e);return!0},a.prototype.handleGridBlur=function(t){return this.unSelectGridCell(this.$grid.attr("aria-activedescendant")),!0},a.prototype.handleTabOut=function(t){var e=b("body").find("input:visible,textarea:visible,select:visible"),i=e.index(this.$target);return-1<i&&i<e.length&&(t.shiftKey?0<i&&i--:i+1<e.length&&i++,e.eq(i).focus()),!0},a.prototype.changeGrid=function(t){switch(this.gridType){case 0:if(this.populateMonthsCalendar(
21),this.year!=this.curYear){var e=this.$grid.find("td.selectable");this.$grid.attr("aria-activedescendant",e.eq(0).attr("id"))}else this.$grid.attr("aria-activedescendant",this.$grid.find(".curMonth").attr("id"));this.selectGridCell(this.$grid.attr("aria-activedescendant"));break;case 2:t.shiftKey?this.year-=20:this.year+=20;case 1:if(this.populateYearsCalendar(),this.year!=this.curYear){e=this.$grid.find("td.selectable");this.$grid.attr("aria-activedescendant",e.eq(0).attr("id"))}else this.$grid.attr("aria-activedescendant",this.$grid.find(".curYear").attr("id"));this.selectGridCell(this.$grid.attr("aria-activedescendant"))}return!0},a.prototype.selectGridCell=function(t){b("#"+t).addClass("focus").attr("aria-selected","true").attr("tabindex",0).focus()},a.prototype.unSelectGridCell=function(t){b("#"+t).removeClass("focus").attr("aria-selected","false").attr("tabindex",-1)},a.prototype.update=function(){var t=b("#"+this.$grid.attr("aria-activedescendant")),e=new Date(this.year,this.month,parseInt(t.attr("data-value"),10)),i=this.formatDate(e,this.options.outputFormat);this.$target.val(i),this.$target.removeAttr("aria-invalid"),this.$target.parents(".form-group").removeClass("has-error"),this.$target.trigger("change"),this.options.onUpdate&&this.options.onUpdate(i)},a.prototype.updateLinked=function(t){if(null!==this.options.previous&&""!==this.options.previous.val()&&t<this.options.previous.datepicker("getDate")){var e=this.formatDate(t,this.options.previous.datepicker("outputFormat"));this.options.previous.val(e)}if(null!==this.options.next&&""!==this.options.next.val()&&this.options.next.datepicker("getDate")<t){var i=this.formatDate(t,this.options.next.datepicker("outputFormat"));this.options.next.val(i)}},a.prototype.hideObject=function(t){t.attr("aria-hidden",!0),t.fadeOut(100)},a.prototype.showObject=function(t){t.attr("aria-hidden",!1),t.fadeIn(100)},a.prototype.show=function(){var i=this;if(b(".datepicker-calendar").trigger("ab.datepicker.opening",[i.id]),1==this.options.modal){this.modalEventHandler||(this.modalEventHandler=function(t){return i.$grid.focus(),t.stopPropagation,!1}),b(document).on("click mousedown mouseup",this.modalEventHandler),this.greyOut(!0);var t=parseInt(b("#datepicker-overlay").css("z-index"),10)||40;this.$calendar.css("z-index",t+1)}else b(document).on("click",b.proxy(this.handleDocumentClick,this)),this.$calendar.on("ab.datepicker.opening",function(t,e){e!=i.id?i.hide():i.$grid.focus()});this.$calendar.on("ab.datepicker.opened",function(t,e){e==i.id&&i.$grid.focus()});var e=Math.max(0,Math.floor(this.$group.offset().top-this.$label.offset().top)),n=Math.max(0,Math.floor(this.$group.offset().left-this.$label.offset().left)),s=parseInt(this.$calendar.parent().css("padding-left"),10),a=this.$calendar.outerHeight(),o=this.$group.offset().top,r=(this.$group.offset().left,this.$group.outerHeight(!0)),l=Math.floor(o-b(window).scrollTop()),c=Math.floor(b(window).height()-(o+r-b(window).scrollTop()));c<a&&c<l?(this.$calendar.addClass("above"),this.$calendar.css({top:e-a+"px",left:n+s+"px"})):(this.$calendar.addClass("below"),this.$calendar.css({top:r+e+"px",left:n+s+"px"})),this.$calendar.attr("aria-hidden","false"),this.$calendar.fadeIn(100),b(".datepicker-calendar").trigger("ab.datepicker.opened",[i.id])},a.prototype.refresh=function(){switch(this.drawCalendarHeader(),this.gridType){case 0:this.populateDaysCalendar();break;case 1:this.populateMonthsCalendar();break;case 2:this.populateYearsCalendar()}},a.prototype.handleDocumentClick=function(t){return 0==b(t.target).parents("#datepicker-calendar-"+this.id
21).length?(this.hide(),!0):(this.$grid.focus(),t.stopPropagation,!1)},a.prototype.hide=function(t){if(0==this.options.inline){1==this.options.modal?(this.modalEventHandler&&b(document).off("click mousedown mouseup",this.modalEventHandler),this.greyOut(!1)):(b(document).off("click",this.handleDocumentClick),this.$calendar.off("ab.datepicker.opening")),this.$calendar.removeClass("above below"),this.$calendar.attr("aria-hidden","true"),this.$calendar.fadeOut(100),b(".datepicker-calendar").trigger("ab.datepicker.closed",[this.id]),t||this.$target.focus()}},a.prototype.greyOut=function(t){var e=b("#datepicker-overlay");0==e.length&&t&&(b("body").append('<div id="datepicker-overlay" class="datepicker-overlay"></div>'),e=b("#datepicker-overlay")),t?e.fadeIn(100):e.fadeOut(100)},a.prototype.absolutePosition=function(t){var e=0,i=0;if(t.getBoundingClientRect){var n=t.getBoundingClientRect(),s=document.body,a=document.documentElement,o=window.pageYOffset||a.scrollTop||s.scrollTop,r=window.pageXOffset||a.scrollLeft||s.scrollLeft,l=a.clientTop||s.clientTop||0,c=a.clientLeft||s.clientLeft||0;e=Math.round(n.top+o-l),i=Math.round(n.left+r-c)}else for(;t;)e+=parseInt(t.offsetTop,10),i+=parseInt(t.offsetLeft,10),t=t.offsetParent;return{top:e,left:i}},a.prototype.getDaysInMonth=function(t,e){return 32-new Date(t,e,32).getDate()},a.prototype.previousMonth=function(t,e){return 0==e?(e=11,t--):e--,{year:t,month:e}},a.prototype.nextMonth=function(t,e){return 11==e?(e=0,t++):e++,{year:t,month:e}},a.prototype.formatDate=function(t,e){var i,n,s,a,o,r=function(t){return(t<0||9<t?"":"0")+t},l=function(t){var e=new Date(t.getTime());return e.setHours(0),t-e},c=t.getFullYear()+"",h=t.getMonth()+1,d=t.getDate(),u=(i=t,n=new Date(i.getFullYear(),0,0),Math.floor((i-n)/864e5)),p=t.getDay(),f=t.getHours(),m=t.getMinutes(),g=t.getSeconds(),v=(s=t,a=new Date(s.getFullYear(),0,1),Math.ceil(((s-a)/864e5+a.getDay()+1)/7)),b=(o=t,Math.ceil((o.getDate()-1-o.getDay())/7)),_=Math.floor(t.getDate()/7)+1,y=Math.ceil((t.getMonth()+1)/3),w=t.getFullYear()<1?0:1,C={y:""+c,yyyy:c,yy:c.substring(2,4),L:h,LL:r(h),LLL:this.locales.month_names_abbreviated[h-1],LLLL:this.locales.month_names[h-1],LLLLL:this.locales.month_names_narrow[h-1],M:h,MM:r(h),MMM:this.locales.month_names_abbreviated[h-1],MMMM:this.locales.month_names[h-1],MMMMM:this.locales.month_names_narrow[h-1],d:d,dd:r(d),D:u,DD:u,DDD:u,A:Math.round(l(t)*Math.pow(10,-2)),AA:Math.round(l(t)*Math.pow(10,-1)),AAA:Math.round(l(t)*Math.pow(10,0)),AAAA:Math.round(l(t)*Math.pow(10,1)),AAAAA:Math.round(l(t)*Math.pow(10,2)),AAAAAA:Math.round(l(t)*Math.pow(10,3)),E:this.locales.day_names_abbreviated[p],EE:this.locales.day_names_abbreviated[p],EEE:this.locales.day_names_abbreviated[p],EEEE:this.locales.day_names[p],EEEEE:this.locales.day_names_narrow[p],EEEEEE:this.locales.day_names_short[p],e:p,ee:p,eee:this.locales.day_names_abbreviated[p],eeee:this.locales.day_names[p],eeeee:this.locales.day_names_narrow[p],eeeeee:this.locales.day_names_short[p],c:p,cc:p,ccc:this.locales.day_names_abbreviated[p],cccc:this.locales.day_names[p],ccccc:this.locales.day_names_narrow[p],cccccc:this.locales.day_names_short[p],F:_,G:this.locales.era_names_abbreviated[w],GG:this.locales.era_names_abbreviated[w],GGG:this.locales.era_names_abbreviated[w],GGGG:this.locales.era_names[w],GGGGG:this.locales.era_names_narrow[w],Q:y,QQ:r(y),QQQ:this.locales.quarter_names_abbreviated[y-1],QQQQ:this.locales.quarter_names[y-1],QQQQQ:this.locales.quarter_names_narrow[y-1],q:y,qq:r(y),qqq:this.locales.quarter_names_abbreviated[y-1],qqqq:this.locales.quarter_names[y-1],qqqqq:this.locales.quarter_names_narrow[y-1],H:f,HH:r(f),h:0==f?12:12<f?f-12:f,hh:r(0==f?12:12<f?f-12:f),K:11<f?f-12:f,k:f+1,KK:r(11<f?f-12:f),kk:r(f+1),a:11<f?this.locales.day_periods.pm:this.locales.day_periods.am,m:m,mm:r(m),s:g,ss:r(g),w:v,ww:r(v),W:b};return e.replace(/('[^']+'|y{1,4}|L{1,5}|M{1,5}|c{1,6}|d{1,2}|D{1,3}|E{1,6}|e{1,6}|F{1,1}|G{1,5}|Q{1,5}|q{1,5}|H{1,2}|h{1,2}|K{1,2}|k{1,2}|m{1,2}|s{1,2}|w{1,2}|W{1,1}|A{1,6})/g,function(t){return"'"===t.charAt(0)?t.substr(1,t.length-2):C[t]||t})},a.prototype.createDateFromFormat=function(t,o){var r=function(t,e,
21i,n){for(var s=n;i<=s;s--){var a=t.substring(e,e+s);if(a.length<i)return null;if(/^\d+$/.test(a))return a}return null},l=function(t,e){for(var i=0;i<t.length;i++){var n=t[i];if(o.substring(e,e+n.length).toLowerCase()==n.toLowerCase())return n.length}return 0},c=0,e=new Date,h=e.getYear(),d=e.getMonth()+1,u=1,p=0,f=0,m=0,g="",v=this;if(b.each(t.match(/(.).*?\1*/g),function(t,e){switch(e){case"yyyy":null!=(h=r(o,c,4,4))&&(c+=h.length);break;case"yy":null!=(h=r(o,c,2,2))&&(c+=h.length);break;case"y":null!=(h=r(o,c,2,4))&&(c+=h.length);break;case"MMM":case"LLL":for(var i=d=0;i<v.locales.month_names_abbreviated.length;i++){var n=v.locales.month_names_abbreviated[i];if(o.substring(c,c+n.length).toLowerCase()==n.toLowerCase()){d=i+1,c+=n.length;break}}break;case"MMMM":case"LLLL":for(i=d=0;i<v.locales.month_names.length;i++){n=v.locales.month_names[i];if(o.substring(c,c+n.length).toLowerCase()==n.toLowerCase()){d=i+1,c+=n.length;break}}break;case"EEE":case"EE":case"E":case"eee":c+=l(v.locales.day_names_abbreviated,c);break;case"EEEE":case"eeee":case"cccc":c+=l(v.locales.day_names,c);break;case"EEEEEE":case"eeeeee":case"cccccc":c+=l(v.locales.day_names_short,c);break;case"MM":case"M":case"LL":case"L":if(null==(d=r(o,c,e.length,2))||d<1||12<d)return null;c+=d.length;break;case"dd":case"d":if(null==(u=r(o,c,e.length,2))||u<1||31<u)return null;c+=u.length;break;case"hh":case"h":if(null==(p=r(o,c,e.length,2))||p<1||12<p)return null;c+=p.length;break;case"HH":case"H":if(null==(p=r(o,c,e.length,2))||p<0||23<p)return null;c+=p.length;break;case"KK":case"K":if(null==(p=r(o,c,e.length,2))||p<0||11<p)return null;c+=p.length;break;case"kk":case"k":if(null==(p=r(o,c,e.length,2))||p<1||24<p)return null;c+=p.length,p--;break;case"mm":case"m":if(null==(f=r(o,c,e.length,2))||f<0||59<f)return null;c+=f.length;break;case"ss":case"s":if(null==(m=r(o,c,e.length,2))||m<0||59<m)return null;c+=m.length;break;case"a":var s=v.locales.day_periods.am.length,a=v.locales.day_periods.pm.length;if(o.substring(c,c+s)==v.locales.day_periods.am)g="AM",c+=s;else{if(o.substring(c,c+a)!=v.locales.day_periods.pm)return null;g="PM",c+=a}break;default:if(o.substring(c,c+e.length)!=e)return null;c+=e.length}}),c!=o.length)return null;if(null==h)return null;if(2==h.length&&(h=50<h?h-0+1900:h-0+2e3),d<1||12<d)return null;if(2==d)if(h%4==0&&h%100!=0||h%400==0){if(29<u)return null}else if(28<u)return null;return(4==d||6==d||9==d||11==d)&&30<u?null:(p<12&&"PM"==g?p=p-0+12:11<p&&"AM"==g&&(p-=12),new Date(h,d-1,u,p,f,m))},a.prototype.parseDate=function(i){var n=null,s=this;return b.each(this.options.inputFormat,function(t,e){if(null!=(n=s.createDateFromFormat(e,i)))return!1}),null==n&&(n=s.createDateFromFormat(this.options.outputFormat,i)),n},a.prototype.min=function(t){return null!=t&&(this.options.min=t instanceof Date?t:this.parseDate(t),null!=this.options.min&&this.dateObj<this.options.min&&(this.$target.attr("aria-invalid",!0),this.$target.parents(".form-group").addClass("has-error"),this.dateObj=this.options.min),0!=this.options.inline&&this.refresh()),this.options.min},a.prototype.max=function(t){return null!=t&&(this.options.max=t instanceof Date?t:this.parseDate(t),null!=this.options.max&&this.dateObj>this.options.max&&(this.$target.attr("aria-invalid",!0),this.$target.parents(".form-group").addClass("has-error"),this.dateObj=this.options.max),0!=this.options.inline&&this.refresh()),this.options.max},a.prototype.theme=function(t){return null!=t&&(this.$button.removeClass(this.options.theme),this.$calendar.removeClass(this.options.theme),this.options.theme=t,this.$button.addClass(this.options.theme),this.$calendar.addClass(this.options.theme)),this.options.theme},a.prototype.firstDayOfWeek=function(t){return null!=t&&(this.options.firstDayOfWeek=parseInt(t,10),0==this.options.inline?this.drawCalendarHeader():this.refresh()),this.options.firstDayOfWeek},a.prototype.daysOfWeekDisabled=function(t){if(null!=t){this.options.daysOfWeekDisabled=[],b.isArray(t)||(t=[t]);var i=this;b.each(t,function(t,e){"number"==typeof e?i.options.daysOfWeekDisabled.push(e):"string"==typeof e&&i.options.daysOfWeekDisabled.push(parseInt(e,10))})}return this.options.daysOfWeekDisabled},a.prototype.weekDayFormat=function(t){return null!=t&&(this.options.weekDayFormat=t,this.drawCalendarHeader()),this.options.weekDayFormat},a.prototype.inputFormat=function(t){return null!=t&&(b.isArray(t)||(t=[t]),this.$target.attr("placeholder")==this.options.inputFormat[0]&&this.$target.attr("placeholder",t[0]),this.options.inputFormat=t),this.options.inputFormat},a.prototype.outputFormat=function(t){return null!=t&&(this.options.outputFormat=t),this.options.outputFormat},a.prototype.modal=function(t){if(null!=t)if(this.options.modal=t,1==this.options.modal){0==this.options.inline&&(this.showObject(this.$calendar.find(".datepicker-close-wrap")),this.showObject(this.$calendar.find(".datepicker-bn-close-label"))),this.$close=this.$calendar.find(".datepicker-close"),this.$close.html(this.options.closeButtonTitle).attr("title",this.options.closeButtonLabel),this.$calendar.find(".datepicker-bn-close-label").html(this.options.closeButtonLabel);var e=this;this.$close.click(function(t){return e.handleCloseClick(t)}),this.$close.keydown(function(t){return e.handleCloseKeyDown(t)})}else this.hideObject(this.$calendar.find(".datepicker-close-wrap")),this.hideObject(this.$calendar.find(".datepicker-bn-close-label"));return this.options.modal},a.prototype.inline=function(t){null!=t&&(0!=t?(this.hideObject(this.$button),this.hideObject(this.$calendar.find(".datepicker-close-wrap")),this.hideObject(this.$calendar.find(".datepicker-bn-close-label")),("string"==typeof t?b("#"+t):t).append(this.$calendar),this.$calendar.css({position:"relative",left:"0px",top:"0px"}),this.options.inline=t,this.initializeDate(),this.showObject(this.$calendar)):(this.$target.parent().after(this.$calendar),this.showObject(this.$button),1==this.options.modal&&(this.showObject(this.$calendar.find(".datepicker-close-wrap")),this.showObject(this.$calendar.find(".datepicker-bn-close-label"))),"static"===this.$calendar.parent().css("position")&&this.$calendar.parent().css("position","relative"),this.$calendar.css({position:"absolute"}),this.options.inline=t,this.hide()));return this.options.inline},a.prototype.format=function(t){return this.formatDate(t,this.options.outputFormat)},a.prototype.enable=function(){this.$button.removeClass("disabled"),this.$button.attr("aria-disabled",!1),this.$button.attr("tabindex",0)},a.prototype.disable=function(){this.hide(),this.$button.addClass("disabled"),this.$button.attr("aria-disabled",!0),this.$button.attr("tabindex",-1)},a.prototype.datesDisabled=function(t){this.options.datesDisabled=[],b.isArray(t)||(t=[t]);var n=this;b.each(t,function(t,e){if("string"==typeof e){var i=n.parseDate(e);null!==i&&n.options.datesDisabled.push(n.format(i))}else e instanceof Date&&!isNaN(e.valueOf())&&n.options.datesDisabled.push(n.format(e))})},a.prototype.startview=function(t){switch(t){case 1:case"months":this.options.startView=1;break;case 2:case"years":this.options.startView=2;break;default:this.options.startView=0}},a.prototype.setLocales=function(t){this.locales=t,this.options.inputFormat=[this.locales.short_format],this.options.outputFormat=this.locales.short_format,this.options.titleFormat=this.locales.full_format,this.options.firstDayOfWeek=this.locales.firstday_of_week,this.options.buttonTitle=this.locales.texts.buttonTitle,this.$button.find("span").attr("title",this.options.buttonTitle),this.options.buttonLabel=this.locales.texts.buttonLabel,this.options.prevButtonLabel=this.locales.texts.prevButtonLabel,this.options.prevMonthButtonLabel=this.locales.texts.prevMonthButtonLabel,this.options.prevYearButtonLabel=this.locales.texts.prevYearButtonLabel,this.options.nextButtonLabel=this.locales.texts.nextButtonLabel,this.options.nextMonthButtonLabel=this.locales.texts.nextMonthButtonLabel,this.options.nextYearButtonLabel=this.locales.texts.nextYearButtonLabel,this.options.changeMonthButtonLabel=this.locales.texts.changeMonthButtonLabel,this.options.changeYearButtonLabel=this.locales.texts.changeYearButtonLabel,this.options.changeRangeButtonLabel=this.locales.texts.changeRangeButtonLabel,this.options.closeButtonTitle=this.locales.texts.closeButtonTitle,this.options.closeButtonLabel=this.locales.texts.closeButtonLabel,this.options.calendarHelp=this.locales.texts.calendarHelp,this.drawCalendarHeader(),"RTL"===this.locales.directionality?this.$grid.addClass("rtl"):this.$grid.removeClass("rtl")};
21var t=b.fn.datepicker;b.fn.datepicker=function(n,s){if("string"!=typeof n||1!=b(this).length)return this.each(function(){var t=b(this),e=t.data("ab.datepicker"),i=b.extend({},a.DEFAULTS,t.data(),"object"==typeof n&&n);e||t.data("ab.datepicker",e=new a(this,i)),"string"==typeof n&&e[n](s)});var t=b(this).eq(0).data("ab.datepicker");return t?t[n](s):void 0},b.fn.datepicker.Constructor=a,b.fn.datepicker.noConflict=function(){return b.fn.datepicker=t,this}}),function(r){var t,e=["","-webkit-","-ms-","-moz-","-o-"],i=document.createElement("div"),n=!1,s=!1,_=!1,y=0,a=["56"],o=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,l=0,w=[],c={unstick:function(){for(var t,e,i=r(this).data("sticky-id"),n=w.length-1;0<=n;n--)if(w[n].id==i){t=n;break}return void 0!==t&&(e=w.splice(t,1)),void 0!==e&&r(this).removeAttr("style").next("."+e[0].options.holderClass).remove(),this}};if(!function(){if(!window.chrome)return!1;var t=/Chrom(e|ium)\/(\d+)/.exec(navigator.appVersion);return t&&~a.indexOf(t[2])}())for(var h=0,d=e.length;h<d;h++)if(i.setAttribute("style","position:"+e[h]+"sticky"),""!==i.style.position){n=!0;break}function C(t){var e,i,n,s,a,o,r,l={top:0,left:0},c=t&&t.ownerDocument;if(c)return(i=c.body)===t?{top:i.offsetTop,left:i.offsetLeft}:(e=c.documentElement,void 0!==t.getBoundingClientRect&&(l=t.getBoundingClientRect()),n=window,s=e.clientTop||i.clientTop||0,a=e.clientLeft||i.clientLeft||0,o=n.pageYOffset||e.scrollTop,r=n.pageXOffset||e.scrollLeft,{top:l.top+o-s,left:l.left+r-a});options.debug&&console.error("i-sticky: no element.ownerDocument defined")}function u(){var t=y,e=window.pageXOffset||document.documentElement.scrollLeft,i=t+(window.innerHeight||document.documentElement.clientHeight);_=!1;for(var n=0,s=w.length;n<s;n++){var a=w[n],o=a.el.offsetHeight,r=C(a.parent),l=a.style.isStuck?C(a.holder):C(a.el),c=a.style.top?a.style.top.px:0,h=a.style.bottom?a.style.bottom.px:0,d=a.style.home,u=!0,p=a.el.className.split(" "),f=0,m=(r.top,l.top-c),g=r.top+a.parent.offsetHeight-o-c,v=r.top+o+h,b=l.top+o+h;for(f in p)p[f]===a.options.stuckClass&&p.splice(f,1);a.el.className=p.join(" "),a.style.bottom&&i<=v?d=a.style.bottom.opposite:a.style.bottom&&v<i&&i<b?d=a.style.bottom.fixed:a.style.top&&m<t&&t<g?d=a.style.top.fixed:a.style.top&&g<=t?d=a.style.top.opposite:u=!1,a.style.isStuck!==u&&(a.holder.style.display=u?"block":"none"),u&&a.options.stuckClass&&(a.el.className+=" "+a.options.stuckClass),u&&(d+="margin-left:-"+(e-a.style.margin.left)+"px;"),a.options.fixWidth?d+="width:"+(u?a.holder.offsetWidth+"px;":"auto;"):d+="min-width:"+(u?a.holder.offsetWidth+"px;":"auto;"),d!==a.style.current&&(a.el.setAttribute("style",d),a.style.isStuck=u,a.style.current=d),a.options.holderAutoHeight&&u&&o!=a.style.height&&(a.holder.style.height=o+"px",a.style.height=o)}e}function p(){w.length&&(y=document.documentElement.scrollTop||document.body.scrollTop,_||(_=!0,o?o(u):(t&&clearTimeout(t),t=setTimeout(u,15))))}function f(){s||(r(window).on("scroll",p).on("resize",p),p(),s=!0)}r.fn.iSticky=function(t){if(n){if("object"!=typeof t||!t.force)return this;f()}if("string"==typeof t&&c[t])return c[t].apply(this,Array.prototype.slice.call(arguments,1));var a=r.extend({holderClass:"i-sticky__holder",holderAutoHeight:!0,debug:!1,fixWidth:!0,stuckClass:""},t),o=this.selector;return this.each(function(){var t,e,i,n=r(this),s="sticky-"+ ++l;n.hide(),t=n.css("top"),e=n.css("bottom"),n.show(),t||e?(n.data("sticky-id",s).after('<span class="'+a.holderClass+'" style="display:none;"></span>'),i={id:s,el:this,parent:this.parentElement,holder:this.nextSibling,style:{home:"position:static;",top:void 0,bottom:void 0,current:"",height:0,isStuck:!1,margin:{left:parseInt(n.css("margin-left"),10)}},options:{holderClass:a.holderClass,holderAutoHeight:a.holderAutoHeight,fixWidth:a.fixWidth,stuckClass:a.stuckClass||""}},"auto"!==t&&(i.style.top={fixed:"position:fixed;top:"+t+";bottom:auto;",opposite:"position:absolute;bottom:0;top:auto;",px:parseInt(t,10)}),"auto"!==e&&(i.style.bottom={fixed:"position:fixed;bottom:"+e+";top:auto;",opposite:"position:absolute;top:0;bottom:auto;",px:parseInt(e,10)}),w.push(i),p()):a.debug&&console.warn("i-sticky: element `top` or `bottom` properties must be set in pixels",o,this)})},n||f()}(jQuery);$(function(){$.fn.autocomplete=function(t){return t=$.extend({data:{}},t),this.each(function(){var c=$(this),h=null,d=c.data("autocomplete");d&&Object.keys(d).length&&((h=$('<ul class="autocomplete-list"></ul>')).insertAfter($(this).next()),c.on("keyup",function(t){var e=c.val();if(h.empty(),e.length)for(var i in d){var n=new RegExp("("+e+")","gi"),s=d[i].text.replace(n,"<mark>$1</mark>"),a=d[i].label?"<em>"+d[i].label+"</em>":"",o=d[i].icon?d[i].icon:"",r=d[i].link?d[i].link:"#";if(-1!==s.toLowerCase().indexOf(e.toLowerCase())){$(this).closest(".form-group").find(".autocomplete-list").addClass("autocomplete-list-show");var l=$('<li>\n <a href="'+r+'">
21\n '+o+'\n <span class="autocomplete-list-text">\n <span>'+s+"</span>\n "+a+"\n </span>\n </a>\n </li>");h.append(l)}}else $(this).closest(".form-group").find(".autocomplete-list").removeClass("autocomplete-list-show")}))})},$(".autocomplete").autocomplete()}),$(function(){var t=$('a[data-attribute*="back-to-top"]');$(window).on("scroll",function(){t.toggleClass("back-to-top-show",t.length&&100<=$(this).scrollTop())}),t.on("click",function(){$("body,html").animate({scrollTop:0},800,"easeOutExpo")})});var ComponenteBase=function(s){var t="componenteBase",a="bs.componente-base",e=s.fn[t],i={CLICK_DATA_API:"click.bs.componente-base.data-api"},n=function(){function n(t){this._element=t}return n.prototype.publicFunction=function(t){console.log(s(t).data("value"),n.VERSION)},n._jQueryInterface=function(i){return this.each(function(){var t=s(this),e=t.data(a);if(e||(e=new n(this),t.data(a,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i](this)}})},n._handleConsole=function(e){return function(t){t&&t.preventDefault(),e.publicFunction(this)}},_createClass2(n,null,[{key:"VERSION",get:function(){return"1.0.0"}}]),n}();return s(document).on(i.CLICK_DATA_API,".componente-base",n._handleConsole(new n)),s.fn[t]=n._jQueryInterface,s.fn[t].Constructor=n,s.fn[t].noConflict=function(){return s.fn[t]=e,n._jQueryInterface},n}($),Cookiebar=function(s){var t="cookiebar",a="bs.cookiebar",e="."+a,i=".data-api",n=s.fn[t],o="cookies_consent",r=".cookiebar",l='[data-accept="cookiebar"]',c={CLOSE:"close"+e,CLOSED:"closed"+e,LOAD_DATA_API:"load"+e+i,CLICK_DATA_API:"click"+e+i},h="cookiebar",d="show",u=function(){function n(t){this._element=t}var t=n.prototype;return t.show=function(t){s(t).addClass(d).attr("aria-hidden","false").attr("aria-live","polite")},t.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||(this._setCookieEU(),this._removeElement(e))},t.dispose=function(){s.removeData(this._element,a),this._element=null},t._setCookieEU=function(){var t=new Date;t.setDate(t.getDate()+30);var e=escape("true")+"; expires="+t.toUTCString();document.cookie=o+"="+e+"; path=/"},t._getSelectorFromElement=function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var i=t.getAttribute("href");e=i&&"#"!==i?i.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},t._getRootElement=function(t){var e=this._getSelectorFromElement(t),i=!1;return e&&(i=s(e)[0]),i||(i=s(t).closest("."+h)[0]),i},t._triggerCloseEvent=function(t){var e=s.Event(c.CLOSE);return s(t).trigger(e),e},t._removeElement=function(t){s(t).removeClass(d).attr("aria-hidden","true").attr("aria-live","off"),this._destroyElement(t)},t._destroyElement=function(t){s(t).detach().trigger(c.CLOSED).remove()},n._jQueryInterface=function(i){return this.each(function(){var t=s(this),e=t.data(a);if(e||(e=new n(this),t.data(a,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i](this)}})},n._handleAccept=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},n._handleConsent=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},n._getCookieEU=function(){var t,e,i,n=document.cookie.split(";");for(t=0;t<n.length;t++)if(e=n[t].substr(0,n[t].indexOf("=")),i=n[t].substr(n[t].indexOf("=")+1),(e=e.replace(/^\s+|\s+$/g,""))==o)return unescape(i)},_createClass2(n,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),n}();return s(document).on(c.CLICK_DATA_API,l,u._handleAccept(new u)),s(window).on(c.LOAD_DATA_API,function(){var t=s.makeArray(s(r));if(!u._getCookieEU())for(var e=t.length;e--;){var i=s(t[e]);u._jQueryInterface.call(i,"show")}}),s.fn[t]=u._jQueryInterface,s.fn[t].Constructor=u,s.fn[t].noConflict=function(){return s.fn[t]=n,u._jQueryInterface},u}($);function notificationShow(t,e){if($("#"+t).fadeIn(300),!$("#"+t).hasClass("dismissable")){if($("#"+t).fadeIn(300),"number"==typeof e)var i=e;else i=7e3;setTimeout(function(){$("#"+t).fadeOut(100)},i)}}$(function(){$(".navbar .dropdown").on("show.bs.dropdown",function(){window.matchMedia("(max-width: 992px)").matches&&$(this).find(".dropdown-menu").first().stop(!0,!0).slideDown(180)}),$(".navbar .dropdown").on("hide.bs.dropdown",function(){window.matchMedia("(max-width: 992px)").matches&&$(this).find(".dropdown-menu").first().stop(!0,!0).slideUp(180)}),$(window).resize(function(){window.matchMedia("(min-width: 993px)").matches&&$(".navbar .dropdown-menu.show").removeAttr("style")})}),$(function(){var t='input[type="text"],input[type="password"],input[type="email"],input[type="email"],input[type="url"],input[type="tel"],input[type="number"],input[type="search"],textarea',e='input[type="file"]',a=function(t){var e=t.siblings("label:not(.active)");if(e&&e.length){var i=e[0].offsetWidth>t[0].offsetWidth-20?t[0].offsetWidth:"auto";$(e[0]).css("width",i)}};
21$(document).on("focus",t,function(t){var e=$(t.target);e.siblings("label, i").addClass("active");var i=e.siblings("label");i&&i.length&&$(i[0]).css("width","auto")}).on("blur",t,function(t){var e=$(t.target),i=!e.val(),n=!e.attr("placeholder");i&&n&&(e.siblings("label, i").removeClass("active"),a(e))}).on("change",t,function(t){var e=$(t.target);n(e),s(e)}).on("blur",e,function(t){$(t.target).siblings("label").addClass("active")}).on("change",e,function(t){var e=$(t.target),n=t.currentTarget.files.length,s="",a="";for(i=0;i<n;i++)fileSize=parseInt(t.currentTarget.files[i].size,10)/1024,filesize=Math.round(fileSize),s=s+t.currentTarget.files[i].name+" ("+filesize+"kb); ";1<n&&(a=n+" file da caricare: "),e.siblings(".form-file-name").text(a+s)});var n=function(t){var e=t.siblings("label, i"),i=t.val().length,n=!!t.attr("placeholder");i||n?e.addClass("active"):e.removeClass("active")},s=function(t){if(t.hasClass("validate")){var e=t.val(),i=!e.length,n=!t[0].validity.badInput;if(i&&n)t.removeClass("valid").removeClass("invalid");else{var s=t.is(":valid"),a=Number(t.attr("length"))||0;s&&(!a||a>e.length)?t.removeClass("invalid").addClass("valid"):t.removeClass("valid").addClass("invalid")}}};$("body").find(t).removeClass("valid invalid").each(function(t,e){var i=$(e),n=!!i.val(),s=!!i.attr("placeholder");(n||s)&&i.siblings("label, i").css("transition","none").addClass("active"),n||s||(i.siblings("label, i").removeClass("active"),a(i))}),$(window).resize(function(){$(t).each(function(t,e){var i=$(e);a(i)})})}),$(function(){var e;$(document).on("keydown mousedown",function(t){e="mousedown"===t.type}).on("focusin",function(t){e&&t.target.classList.add("focus--mouse")}).on("focusout",function(t){t.target.classList.remove("focus--mouse")})}),$(function(){$('a[data-attribute*="forward"]').on("click",function(t){var e=$(this.hash);e.length&&(t.preventDefault(),$("html, body").animate({scrollTop:e.offset().top},500))})}),$(function(){var t=$(".custom-navbar-toggler"),e=$(".close-div"),i=$(".overlay"),n=$(".it-back-button"),s=$(".navbar-collapsable a");$(t).on("click",function(t){var e=$(this).attr("data-target"),i=$(e).find(".overlay");$(this).attr("aria-expanded","true"),$(n).fadeIn(),$(e).show(),$(i).fadeIn(),$(e).addClass("expanded")}),$(i).on("click",function(){var t=$(this).closest(".navbar-collapsable"),e=$(this).closest(".navbar").find(".custom-navbar-toggler"),i=$(t).find(".overlay");$(e).attr("aria-expanded","false"),$(t).removeClass("expanded"),$(i).fadeOut(),setTimeout(function(){$(t).hide()},300)}),$(e).on("click",function(t){var e=$(this).closest(".navbar-collapsable"),i=$(this).closest(".navbar").find(".custom-navbar-toggler"),n=$(e).find(".overlay");$(i).attr("aria-expanded","false"),$(e).removeClass("expanded"),$(n).fadeOut(),setTimeout(function(){$(e).hide()},300)}),$(s).on("blur",function(t){closemenu=$(this).closest(".navbar-collapsable").find(".close-div .btn"),$(this).closest(".navbar-collapsable").hasClass("expanded")&&setTimeout(function(){var t=document.activeElement;0==$(t).closest(".navbar-collapsable").length&&$(closemenu).trigger("click")},50)}),$(e).on("blur",function(t){closemenu=$(this),$(this).closest(".navbar-collapsable").hasClass("expanded")&&setTimeout(function(){var t=document.activeElement;0==$(t).closest(".navbar-collapsable").length&&$(closemenu).trigger("click")},50)})}),$(function(){var t=$(".it-back-button");$('.it-bottom-navscroll ul li a[href^="#"]').on("click",function(t){t.preventDefault();var e=this.hash;$("html, body").animate({scrollTop:$(e).offset().top-150},600,function(){history.pushState?history.pushState(null,null,e):location.hash=e}),$(overlay).trigger("click")}),$(t).click(function(t){$(overlay).trigger("click"),$(this).fadeOut(),t.preventDefault()}),$(window).on("scroll",function(){var o=$(window).scrollTop();$(".it-page-section").each(function(t){if($(this).position().top<=o){$(".it-navscroll-wrapper .menu-wrapper a.active").removeClass("active"),$(".it-navscroll-wrapper .menu-wrapper a").eq(t).addClass("active");var e=$(".it-navscroll-wrapper .menu-wrapper a").eq(t).closest("ul").prev("a"),i=$(e).closest("ul").prev("a");$(e).addClass("active"),$(i).addClass("active");var n=$(".it-navscroll-wrapper .menu-wrapper a").eq(t).find("span").text(),s=$(".it-bottom-navscroll .custom-navbar-toggler"),a=s.find("span.it-list");s.text(n),s.prepend(a)}})}).scroll()}),$(function(){$(".go-back").on("click",function(){return window.history.back(),!1})}),$(document).on("click",".notification-close",function(){$(this).closest(".
21notification").fadeOut(100)}),$(function(){$(".upload-dragdrop:not(.success)").on("drag dragstart dragend dragover dragenter dragleave drop",function(t){t.preventDefault(),t.stopPropagation()}).on("dragover dragenter",function(){$(this).addClass("dragover")}).on("dragleave dragend drop",function(){$(this).removeClass("dragover")}).on("drop",function(t){$(this).addClass("loading"),$(this).find(".upload-progress").circularloader({backgroundColor:"#ffffff",fontColor:"#000000",fontSize:"40px",radius:130,progressBarBackground:"transparent",progressBarColor:"#0073e6",progressBarWidth:96,progressPercent:0})})});var progressDonut=function(i){return{generate:function(t,e){i(t).circularloader({backgroundColor:"#fff",fontColor:"#000",fontSize:40,radius:130,progressBarBackground:"transparent",progressBarColor:"#0073e6",progressBarWidth:96,progressPercent:e}),i(t).next().html("Progresso "+e+"%")},update:function(t,e){i(t).circularloader({progressPercent:e})}}}($);$(function(){$(".it-has-checkbox").on("click",function(t){var e=$(this).find("input");$(e).prop("checked")?($(e).prop("checked",!1),$(this).removeClass("active")):($(e).prop("checked",!0),$(this).addClass("active")),t.preventDefault()})}),$(function(){var t;t=window.navigator.userAgent,/msie|Trident.*rv[ :]*11\./gi.test(t)&&$(".img-wrapper").each(function(){var t=$(this),e=t.find("img").prop("src");e&&t.css("backgroundImage","url("+e+")").addClass("custom-object-fit")})}),$(function(){function r(t){var e=t.closest(".input-number");e.hasClass("input-number-adaptive")&&(e.hasClass("input-number-percentage")||t.css("width",2*t.val().length+"ch"),e.hasClass("input-number-currency")&&t.css("width","calc(40px + "+2*t.val().length+"ch)"))}$(".input-number input[type=number]").each(function(t){r($(this))}),$(".input-number button").click(function(t){t.preventDefault();var e=$(this).closest(".input-number").find("input[type=number]"),i=parseFloat(e.val());if(!isNaN(i)){var n=0,s=parseFloat(e.attr("max")),a=parseFloat(e.attr("min")),o=parseFloat(e.attr("step"));o||(o=1),$(this).hasClass("input-number-add")&&(n=!isNaN(s)&&s<=i+o?s:i+o,e.val(n)),$(this).hasClass("input-number-sub")&&(n=!isNaN(a)&&i-o<=a?a:i-o,e.val(n))}r(e)}),$(".input-number input[type=number]").change(function(t){var e=$(this),i=parseFloat(e.val());if(!isNaN(i)){var n=parseFloat(e.attr("max")),s=parseFloat(e.attr("min"));s&&i<s&&(i=s),n&&n<i&&(i=n),e.val(i)}r(e)})}),$(function(){var t,e,i,n,s,a,o,r,l,c,h,d,u,p,f,m,g,v,b,_,y,w,C,k,E,x,I,D,T,A,S,L,O,P=$(".owl-carousel.it-carousel-all");$(P).each(function(){$(this).closest(".it-carousel-wrapper").hasClass("it-carousel-landscape-abstract-three-cols")&&(n=[],s=300,a=500,o=200,h=!(c=l=r=!(e=!(t=!0))),u=u,f=!(p=!(d="page")),m=1,_=!(b=!(v=24)),y=2,w=g=40,E=!(k=!(C=24)),A=!(T=!(x=i=3)),S=3,O=L=D=I=0,$(this).hasClass("it-card-bg")&&(w=g=40,L=I=12,O=D=C=v=24),$(this).hasClass("it-img-card")&&(w=g=40,L=I=0,O=D=C=v=24),$(this).hasClass("it-img-card")&&$(this).hasClass("it-big-img")&&(e=!0,v=g=0,w=160,C=24,L=I=320,O=D=48,S=x=y=1),$(this).hasClass("it-img-card")&&$(this).hasClass("it-standard-image")&&(e=!0,g=40,m=1,y=2,I=68,L=w=48,O=D=C=v=24,S=x=3)),$(this).closest(".it-carousel-wrapper").hasClass("it-carousel-landscape-abstract")&&(n=[],s=300,a=500,o=200,h=!(c=l=r=!(e=!(t=!0))),u=u,f=!(p=!(d="page")),_=!(b=!(v=24)),E=!(k=!(C=w=24)),A=!(T=!(x=y=m=i=1)),S=1,O=L=D=I=g=0),$(this).owlCarousel&&$(this).owlCarousel({nav:t,loop:e,margin:24,items:i,navText:n,navSpeed:s,smartSpeed:a,dotsSpeed:o,navElement:"button",dotElement:"button",controlsAriaHidden:r,mouseDrag:l,touchDrag:c,dots:h,slideBy:d,stagePadding:u,responsive:{0:{nav:p,dots:f,items:m,stagePadding:g,margin:v},768:{nav:b,dots:_,stagePadding:w,items:y,margin:C},992:{nav:k,dots:E,items:x,stagePadding:I,margin:D},1200:{nav:T,dots:A,stagePadding:L,items:S,margin:O}},onInitialized:function(t){$(t.target).find(".owl-dot").each(function(t){$(this).attr("aria-labelledby","owl-dot-"+t)})}})})}),$(function(){var t=$(".transfer-header input"),e=$(".transfer-group input"),a=$(".it-transfer-block").find("a.transfer"),o=$(".it-transfer-block").find("a.backtransfer"),n=$(".it-transfer-block").find("a.reset");function s(t,e){var i=t.find(".transfer-group input:checked"),n=i.closest(".form-check"),s=t.find(".transfer-header input"),a=t.find(".transfer-header span.num"),o=i.length,r=t.find(".transfer-group input").length,l=e.find(".transfer-group"),c=e.find(".transfer-group input").length+o,h=e.find(".transfer-header span.num"),d=e.find(".transfer-header input");n.each(function(){$(this).detach().appendTo(l).find("input").prop("checked",!1)});var u=r-o,p=c;a.text(u),h.text(p),0==u&&s.prop("disabled",!0),0<p&&d.prop("disabled",!1),s.removeClass("semi-checked").prop("checked",!1)}$(t).click(function(){var t,e,i,n,s=$(this).closest(".it-transfer-wrapper");t=s,e=$(t).find(".transfer-group input"),i=$(t).find(".transfer-group input:checked"),n=$(t).find(".transfer-header input"),a=t.closest(".it-transfer-block").find("a.transfer"),o=t.closest(".it-transfer-block").find("a.backtransfer"),0<i.length?($(e).prop("checked",!1),$(n).removeClass("semi-checked").prop("checked",!1),t.hasClass("source")?a.removeClass("active"):o.removeClass("active")):($(e).prop("checked",!0),t.hasClass("source")?a.addClass("active"):o.addClass("active"))}),$(e).click(function(){var t,e,i,n,s=$(this).closest(".it-transfer-wrapper");t=s,e=$(t).find(".transfer-group input"),i=$(t).find(".transfer-group input:checked"),n=$(t).find(".transfer-header input"),a=t.closest(".it-transfer-block").find("a.transfer"),o=t.closest(".it-transfer-block").find("a.backtransfer"),0==i.length?(n.removeClass("semi-checked").prop("checked",!1),t.hasClass("source")?a.removeClass("active"):o.removeClass("active")):i.length==e.length?n.removeClass("semi-checked").prop("checked",!0):(n.addClass("semi-checked").prop("checked",!1),t.hasClass("source")?a.addClass("active"):o.addClass("active"))}
21),$(a).click(function(t){var e=$(this).closest(".it-transfer-block").find(".source"),i=$(this).closest(".it-transfer-block").find(".target");(n=$(this).closest(".it-transfer-block").find("a.reset")).addClass("active"),$(this).removeClass("active"),s(e,i),t.preventDefault()}),$(o).click(function(t){var e=$(this).closest(".it-transfer-block").find(".source"),i=$(this).closest(".it-transfer-block").find(".target");n=$(this).closest(".it-transfer-block").find("a.reset"),$(this).removeClass("active"),n.addClass("active"),s(i,e),t.preventDefault()});var d=$(".source .transfer-group .form-check"),u=$(".target .transfer-group .form-check"),p=d.length,f=u.length;$(d).each(function(t){this}),$(u).each(function(t){this}),$(n).click(function(t){var e,i,n,s,a,o,r,l=$(this).closest(".it-transfer-block"),c=l.find("a.transfer"),h=l.find("a.backtransfer");c.removeClass("active"),h.removeClass("active"),$(this).removeClass("active"),i=(e=l).find(".source .transfer-group"),n=e.find(".target .transfer-group"),s=e.find(".source .transfer-header span.num"),a=e.find(".target .transfer-header span.num"),o=e.find(".transfer-header input"),r=e.find(".transfer-group input"),$(i).find(".form-check").detach(),$(n).find(".form-check").detach(),$(i).append(d),$(n).append(u),$(s).text(p),$(a).text(f),$(o).prop("disabled",!1).removeClass("semi-checked"),$(o).prop("checked",!1),$(r).prop("checked",!1),t.preventDefault()})}),$(function(){$(".bootstrap-select-wrapper select").selectpicker().on("changed.bs.select",function(){$(".dropdown-menu li.selected").find('input[type="checkbox"]').prop("checked",!0),$(".dropdown-menu li:not(.selected)").find('input[type="checkbox"]').prop("checked",!1)})}),$(function(){$(".rating.rating-label input[type=radio]").on("click",function(t){var e=$(this).val(),i="stelle";1==e&&(i="stella"),$(this).closest(".rating-label").find("legend span:not(.sr-only)").text(e+" "+i)})}),$(function(){$.fn.dimmerShow=function(){return this.each(function(){"flex"!=$(this).css("display")&&$(this).css("display","flex").hide().fadeIn(200)})},$.fn.dimmerHide=function(t){return this.each(function(){$(this).fadeOut(200)})}}); 22}(); 23 24//# sourceMappingURL=bootstrap-italia.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.