(function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.Popper=t()})(this,function(){"use strict";function et(n){return n&&"[object Function]"==={}.toString.call(n)}function r(n,t){if(1!==n.nodeType)return[];var i=getComputedStyle(n,null);return t?i[t]:i}function p(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function s(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var t=r(n),i=t.overflow,u=t.overflowX,f=t.overflowY;return/(auto|scroll|overlay)/.test(i+f+u)?n:s(p(n))}function u(n){return 11===n?ui:10===n?fi:ui||fi}function f(n){var e,t,i;if(!n)return document.documentElement;for(e=u(10)?document.body:null,t=n.offsetParent;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;return i=t&&t.nodeName,i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===r(t,"position")?f(t):t:n?n.ownerDocument.documentElement:document.documentElement}function oi(n){var t=n.nodeName;return"BODY"!==t&&("HTML"===t||f(n.firstElementChild)===n)}function w(n){return null===n.parentNode?n:w(n.parentNode)}function c(n,t){var i,u;if(!n||!n.nodeType||!t||!t.nodeType)return document.documentElement;var e=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=e?n:t,s=e?t:n,r=document.createRange();return(r.setStart(o,0),r.setEnd(s,0),i=r.commonAncestorContainer,n!==i&&t!==i||o.contains(s))?oi(i)?i:f(i):(u=w(n),u.host?c(u.host,t):c(n,w(t).host))}function e(n){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top",t="top"===f?"scrollTop":"scrollLeft",i=n.nodeName,r,u;return"BODY"===i||"HTML"===i?(r=n.ownerDocument.documentElement,u=n.ownerDocument.scrollingElement||r,u[t]):n[t]}function si(n,t){var f=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=e(t,"top"),u=e(t,"left"),i=f?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=u*i,n.right+=u*i,n}function ot(n,t){var i="x"===t?"Left":"Top",r="Left"==i?"Right":"Bottom";return parseFloat(n["border"+i+"Width"],10)+parseFloat(n["border"+r+"Width"],10)}function st(n,i,r,f){return t(i["offset"+n],i["scroll"+n],r["client"+n],r["offset"+n],r["scroll"+n],u(10)?r["offset"+n]+f["margin"+("Height"===n?"Top":"Left")]+f["margin"+("Height"===n?"Bottom":"Right")]:0)}function ht(){var t=document.body,n=document.documentElement,i=u(10)&&getComputedStyle(n);return{height:st("Height",t,n,i),width:st("Width",t,n,i)}}function i(t){return n({},t,{right:t.left+t.width,bottom:t.top+t.height})}function b(n){var t={},o,s,l;try{u(10)?(t=n.getBoundingClientRect(),o=e(n,"top"),s=e(n,"left"),t.top+=o,t.left+=s,t.bottom+=o,t.right+=s):t=n.getBoundingClientRect()}catch(r){}var f={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===n.nodeName?ht():{},v=a.width||n.clientWidth||f.right-f.left,y=a.height||n.clientHeight||f.bottom-f.top,h=n.offsetWidth-v,c=n.offsetHeight-y;return(h||c)&&(l=r(n),h-=ot(l,"x"),c-=ot(l,"y"),f.width-=h,f.height-=c),i(f)}function k(n,f){var w=2<arguments.length&&void 0!==arguments[2]&&arguments[2],k=u(10),d="HTML"===f.nodeName,h=b(n),o=b(f),v=s(n),c=r(f),y=parseFloat(c.borderTopWidth,10),p=parseFloat(c.borderLeftWidth,10),e,l,a;return w&&"HTML"===f.nodeName&&(o.top=t(o.top,0),o.left=t(o.left,0)),e=i({top:h.top-o.top-y,left:h.left-o.left-p,width:h.width,height:h.height}),(e.marginTop=0,e.marginLeft=0,!k&&d)&&(l=parseFloat(c.marginTop,10),a=parseFloat(c.marginLeft,10),e.top-=y-l,e.bottom-=y-l,e.left-=p-a,e.right-=p-a,e.marginTop=l,e.marginLeft=a),(k&&!w?f.contains(v):f===v&&"BODY"!==v.nodeName)&&(e=si(e,f)),e}function hi(n){var f=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=n.ownerDocument.documentElement,u=k(n,r),o=t(r.clientWidth,window.innerWidth||0),s=t(r.clientHeight,window.innerHeight||0),h=f?0:e(r),c=f?0:e(r,"left"),l={top:h-u.top+u.marginTop,left:c-u.left+u.marginLeft,width:o,height:s};return i(l)}function ct(n){var t=n.nodeName;return"BODY"===t||"HTML"===t?!1:"fixed"===r(n,"position")||ct(p(n))}function lt(n){if(!n||!n.parentElement||u())return document.documentElement;for(var t=n.parentElement;t&&"none"===r(t,"transform");)t=t.parentElement;return t||document.documentElement}function d(n,t,i,r){var o=4<arguments.length&&void 0!==arguments[4]&&arguments[4],u={top:0,left:0},h=o?lt(n):c(n,t),e,f;if("viewport"===r)u=hi(h,o);else if("scrollParent"===r?(e=s(p(t)),"BODY"===e.nodeName&&(e=n.ownerDocument.documentElement)):e="window"===r?n.ownerDocument.documentElement:r,f=k(e,h,o),"HTML"!==e.nodeName||ct(h))u=f;else{var l=ht(),a=l.height,v=l.width;u.top+=f.top-f.marginTop;u.bottom=a+f.top;u.left+=f.left-f.marginLeft;u.right=v+f.left}return u.left+=i,u.top+=i,u.right-=i,u.bottom-=i,u}function ci(n){var t=n.width,i=n.height;return t*i}function at(t,i,r,u,f){var l=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var e=d(r,u,l,f),o={top:{width:e.width,height:i.top-e.top},right:{width:e.right-i.right,height:e.height},bottom:{width:e.width,height:e.bottom-i.bottom},left:{width:i.left-e.left,height:e.height}},s=Object.keys(o).map(function(t){return n({key:t},o[t],{area:ci(o[t])})}).sort(function(n,t){return t.area-n.area}),h=s.filter(function(n){var t=n.width,i=n.height;return t>=r.clientWidth&&i>=r.clientHeight}),a=0<h.length?h[0].key:s[0].key,c=t.split("-")[1];return a+(c?"-"+c:"")}function vt(n,t,i){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,u=r?lt(t):c(t,i);return k(i,u,r)}function yt(n){var t=getComputedStyle(n),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function l(n){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(n){return t[n]})}function pt(n,t,i){i=i.split("-")[0];var r=yt(n),e={width:r.width,height:r.height},u=-1!==["right","left"].indexOf(i),o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[l(f)],e}function h(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function li(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=h(n,function(n){return n[t]===i});return n.indexOf(r)}function wt(n,t,r){var u=void 0===r?n:n.slice(0,li(n,"name",r));return u.forEach(function(n){n["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=n["function"]||n.fn;n.enabled&&et(r)&&(t.offsets.popper=i(t.offsets.popper),t.offsets.reference=i(t.offsets.reference),t=r(t,n))}),t}function ai(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=vt(this.state,this.popper,this.reference,this.options.positionFixed);n.placement=at(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);n.originalPlacement=n.placement;n.positionFixed=this.options.positionFixed;n.offsets.popper=pt(this.popper,n.offsets.reference,n.placement);n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";n=wt(this.modifiers,n);this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function bt(n,t){return n.some(function(n){var i=n.name,r=n.enabled;return r&&i===t})}function g(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length;t++)if(i=u[t],r=i?""+i+f:n,"undefined"!=typeof document.body.style[r])return r;return null}function vi(){return this.state.isDestroyed=!0,bt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[g("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function kt(n){var t=n.ownerDocument;return t?t.defaultView:window}function dt(n,t,i,r){var f="BODY"===n.nodeName,u=f?n.ownerDocument.defaultView:n;u.addEventListener(t,i,{passive:!0});f||dt(s(u.parentNode),t,i,r);r.push(u)}function yi(n,t,i,r){i.updateBound=r;kt(n).addEventListener("resize",i.updateBound,{passive:!0});var u=s(n);return dt(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function pi(){this.state.eventsEnabled||(this.state=yi(this.reference,this.options,this.state,this.scheduleUpdate))}function wi(n,t){return kt(n).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function bi(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=wi(this.reference,this.state))}function nt(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function tt(n,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&nt(t[i])&&(r="px");n.style[i]=t[i]+r})}function ki(n,t){Object.keys(t).forEach(function(i){var r=t[i];!1===r?n.removeAttribute(i):n.setAttribute(i,t[i])})}function gt(n,t,i){var u=h(n,function(n){var i=n.name;return i===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r;return f||(r="`"+t+"`",console.warn("`"+i+"` modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function di(n){return"end"===n?"start":"start"===n?"end":n}function ni(n){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t=ut.indexOf(n),i=ut.slice(t+1).concat(ut.slice(0,t));return r?i.reverse():i}function gi(n,r,u,f){var h=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+h[1],e=h[2],s,c,l;if(!o)return n;if(0===e.indexOf("%")){switch(e){case"%p":s=u;break;case"%":case"%r":default:s=f}return c=i(s),c[r]/100*o}return"vh"===e||"vw"===e?(l="vh"===e?t(document.documentElement.clientHeight,window.innerHeight||0):t(document.documentElement.clientWidth,window.innerWidth||0),l/100*o):o}function nr(n,t,i,r){var s=[0,0],c=-1!==["right","left"].indexOf(r),u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(h(u,function(n){return-1!==n.search(/,|\s/)})),o,e;return u[f]&&-1===u[f].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),o=/\s*,\s*|\s+/,e=-1===f?[u]:[u.slice(0,f).concat([u[f].split(o)[0]]),[u[f].split(o)[1]].concat(u.slice(f+1))],e=e.map(function(n,r){var f=(1===r?!c:c)?"height":"width",u=!1;return n.reduce(function(n,t){return""===n[n.length-1]&&-1!==["+","-"].indexOf(t)?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return gi(n,f,t,i)})}),e.forEach(function(n,t){n.forEach(function(i,r){nt(i)&&(s[t]+=i*("-"===n[r-1]?-1:1))})}),s}function tr(n,t){var r,f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0];return r=nt(+f)?[+f,0]:nr(f,i,s,u),"left"===u?(i.top+=r[0],i.left-=r[1]):"right"===u?(i.top+=r[0],i.left+=r[1]):"top"===u?(i.left+=r[0],i.top-=r[1]):"bottom"===u&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n}for(var ti=Math.min,it=Math.round,a=Math.floor,t=Math.max,v="undefined"!=typeof window&&"undefined"!=typeof document,ii=["Edge","Trident","Firefox"],ri=0,rt=0;rt<ii.length;rt+=1)if(v&&0<=navigator.userAgent.indexOf(ii[rt])){ri=1;break}var ir=v&&window.Promise,rr=ir?function(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}:function(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},ri))}},ui=v&&!!(window.MSInputMethodContext&&document.documentMode),fi=v&&/MSIE 10/.test(navigator.userAgent),ur=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},fr=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),o=function(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n},n=Object.assign||function(n){for(var t,r,i=1;i<arguments.length;i++)for(r in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},ei=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ut=ei.slice(3),ft={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},y=function(){function t(i,r){var u=this,f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},e;ur(this,t);this.scheduleUpdate=function(){return requestAnimationFrame(u.update)};this.update=rr(this.update.bind(this));this.options=n({},t.Defaults,f);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=i&&i.jquery?i[0]:i;this.popper=r&&r.jquery?r[0]:r;this.options.modifiers={};Object.keys(n({},t.Defaults.modifiers,f.modifiers)).forEach(function(i){u.options.modifiers[i]=n({},t.Defaults.modifiers[i]||{},f.modifiers?f.modifiers[i]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(t){return n({name:t},u.options.modifiers[t])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){n.enabled&&et(n.onLoad)&&n.onLoad(u.reference,u.popper,u.options,n,u.state)});this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners();this.state.eventsEnabled=e}return fr(t,[{key:"update",value:function(){return ai.call(this)}},{key:"destroy",value:function(){return vi.call(this)}},{key:"enableEventListeners",value:function(){return pi.call(this)}},{key:"disableEventListeners",value:function(){return bi.call(this)}}]),t}();return y.Utils=("undefined"==typeof window?global:window).PopperUtils,y.placements=ei,y.Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var u=t.placement,l=u.split("-")[0],f=u.split("-")[1];if(f){var e=t.offsets,r=e.reference,s=e.popper,h=-1!==["bottom","top"].indexOf(l),i=h?"left":"top",c=h?"width":"height",a={start:o({},i,r[i]),end:o({},i,r[i]+r[c]-s[c])};t.offsets.popper=n({},s,a[f])}return t}},offset:{order:200,enabled:!0,fn:tr,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(i,r){var h=r.boundariesElement||f(i.instance.popper),s;i.instance.reference===h&&(h=f(h));var c=g("transform"),e=i.instance.popper.style,l=e.top,a=e.left,v=e[c];e.top="";e.left="";e[c]="";s=d(i.instance.popper,i.instance.reference,r.padding,h,i.positionFixed);e.top=l;e.left=a;e[c]=v;r.boundaries=s;var y=r.priority,u=i.offsets.popper,p={primary:function(n){var i=u[n];return u[n]<s[n]&&!r.escapeWithReference&&(i=t(u[n],s[n])),o({},n,i)},secondary:function(n){var t="right"===n?"left":"top",i=u[t];return u[n]>s[n]&&!r.escapeWithReference&&(i=ti(u[t],s[n]-("right"===n?u.width:u.height))),o({},t,i)}};return y.forEach(function(t){var i=-1===["left","top"].indexOf(t)?"secondary":"primary";u=n({},u,p[i](t))}),i.offsets.popper=u,i},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(n){var o=n.offsets,u=o.popper,i=o.reference,s=n.placement.split("-")[0],r=a,f=-1!==["top","bottom"].indexOf(s),e=f?"right":"bottom",t=f?"left":"top",h=f?"width":"height";return u[e]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[h]),u[t]>r(i[e])&&(n.offsets.popper[t]=r(i[e])),n}},arrow:{order:500,enabled:!0,fn:function(n,u){var l,e;if(!gt(n.instance.modifiers,"arrow","keepTogether"))return n;if(e=u.element,"string"==typeof e){if(e=n.instance.popper.querySelector(e),!e)return n}else if(!n.instance.popper.contains(e))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var d=n.placement.split("-")[0],b=n.offsets,c=b.popper,s=b.reference,a=-1!==["left","right"].indexOf(d),y=a?"height":"width",p=a?"Top":"Left",f=p.toLowerCase(),g=a?"left":"top",v=a?"bottom":"right",h=yt(e)[y];s[v]-h<c[f]&&(n.offsets.popper[f]-=c[f]-(s[v]-h));s[f]+h>c[v]&&(n.offsets.popper[f]+=s[f]+h-c[v]);n.offsets.popper=i(n.offsets.popper);var nt=s[f]+s[y]/2-h/2,k=r(n.instance.popper),tt=parseFloat(k["margin"+p],10),rt=parseFloat(k["border"+p+"Width"],10),w=nt-n.offsets.popper[f]-tt-rt;return w=t(ti(c[y]-h,w),0),n.arrowElement=e,n.offsets.arrow=(l={},o(l,f,it(w)),o(l,g,""),l),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,i){if(bt(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var e=d(t.instance.popper,t.instance.reference,i.padding,i.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],o=l(r),u=t.placement.split("-")[1]||"",f=[];switch(i.behavior){case ft.FLIP:f=[r,o];break;case ft.CLOCKWISE:f=ni(r);break;case ft.COUNTERCLOCKWISE:f=ni(r,!0);break;default:f=i.behavior}return f.forEach(function(s,h){if(r!==s||f.length===h+1)return t;r=t.placement.split("-")[0];o=l(r);var v=t.offsets.popper,y=t.offsets.reference,c=a,w="left"===r&&c(v.right)>c(y.left)||"right"===r&&c(v.left)<c(y.right)||"top"===r&&c(v.bottom)>c(y.top)||"bottom"===r&&c(v.top)<c(y.bottom),b=c(v.left)<c(e.left),k=c(v.right)>c(e.right),d=c(v.top)<c(e.top),g=c(v.bottom)>c(e.bottom),nt="left"===r&&b||"right"===r&&k||"top"===r&&d||"bottom"===r&&g,p=-1!==["top","bottom"].indexOf(r),tt=!!i.flipVariations&&(p&&"start"===u&&b||p&&"end"===u&&k||!p&&"start"===u&&d||!p&&"end"===u&&g);(w||nt||tt)&&(t.flipped=!0,(w||nt)&&(r=f[h+1]),tt&&(u=di(u)),t.placement=r+(u?"-"+u:""),t.offsets.popper=n({},t.offsets.popper,pt(t.instance.popper,t.offsets.reference,t.placement)),t=wt(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(n){var u=n.placement,t=u.split("-")[0],f=n.offsets,r=f.popper,o=f.reference,e=-1!==["left","right"].indexOf(t),s=-1===["top","left"].indexOf(t);return r[e?"left":"top"]=o[t]-(s?r[e?"width":"height"]:0),n.placement=l(u),n.offsets.popper=i(r),n}},hide:{order:800,enabled:!0,fn:function(n){if(!gt(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=h(n.instance.modifiers,function(n){return"preventOverflow"===n.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===n.hide)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function(t,i){var nt=i.x,tt=i.y,u=t.offsets.popper,c=h(t.instance.modifiers,function(n){return"applyStyle"===n.name}).gpuAcceleration,w,k,d;void 0!==c&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var l,v,rt=void 0===c?i.gpuAcceleration:c,ut=f(t.instance.popper),y=b(ut),r={position:u.position},s={left:a(u.left),top:it(u.top),bottom:it(u.bottom),right:a(u.right)},e="bottom"===nt?"top":"bottom",o="right"===tt?"left":"right",p=g("transform");return(v="bottom"==e?-y.height+s.bottom:s.top,l="right"==o?-y.width+s.right:s.left,rt&&p)?(r[p]="translate3d("+l+"px, "+v+"px, 0)",r[e]=0,r[o]=0,r.willChange="transform"):(w="bottom"==e?-1:1,k="right"==o?-1:1,r[e]=v*w,r[o]=l*k,r.willChange=e+", "+o),d={"x-placement":t.placement},t.attributes=n({},d,t.attributes),t.styles=n({},r,t.styles),t.arrowStyles=n({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(n){return tt(n.instance.popper,n.styles),ki(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&tt(n.arrowElement,n.arrowStyles),n},onLoad:function(n,t,i,r,u){var f=vt(u,t,n,i.positionFixed),e=at(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),tt(t,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}},y});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t((n=n||self).bootstrap={},n.jQuery,n.Popper)}(this,function(n,t,i){"use strict";function uu(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function l(n,t,i){return t&&uu(n.prototype,t),i&&uu(n,i),n}function f(n){for(var i,r,t=1;t<arguments.length;t++)i=null!=arguments[t]?arguments[t]:{},r=Object.keys(i),"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable}))),r.forEach(function(t){var r,u,f;r=n;f=i[u=t];u in r?Object.defineProperty(r,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):r[u]=f});return n}function cf(n){var u=this,i=!1;return t(this).one(r.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||r.triggerTransitionEnd(u)},n),this}function wu(n,t,i){if(0===n.length)return n;if(i&&"function"==typeof i)return i(n);for(var u=(new window.DOMParser).parseFromString(n,"text/html"),e=Object.keys(t),f=[].slice.call(u.body.querySelectorAll("*")),o=function(n){var i=f[n],o=i.nodeName.toLowerCase(),r,u;if(-1===e.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";r=[].slice.call(i.attributes);u=[].concat(t["*"]||[],t[o]||[]);r.forEach(function(n){(function(n,t){var i=n.nodeName.toLowerCase();if(-1!==t.indexOf(i))return-1===us.indexOf(i)||Boolean(n.nodeValue.match(fs)||n.nodeValue.match(es));for(var u=t.filter(function(n){return n instanceof RegExp}),r=0,f=u.length;r<f;r++)if(i.match(u[r]))return!0;return!1})(n,u)||i.removeAttribute(n.nodeName)})},r=0,s=f.length;r<s;r++)o(r);return u.body.innerHTML}var at,r;t=t&&t.hasOwnProperty("default")?t.default:t;i=i&&i.hasOwnProperty("default")?i.default:i;at="transitionend";r={TRANSITION_END:"bsTransitionEnd",getUID:function(n){for(;n+=~~(1e6*Math.random()),document.getElementById(n););return n},getSelectorFromElement:function(n){var t=n.getAttribute("data-target"),i;t&&"#"!==t||(i=n.getAttribute("href"),t=i&&"#"!==i?i.trim():"");try{return document.querySelector(t)?t:null}catch(n){return null}},getTransitionDurationFromElement:function(n){if(!n)return 0;var i=t(n).css("transition-duration"),r=t(n).css("transition-delay"),u=parseFloat(i),f=parseFloat(r);return u||f?(i=i.split(",")[0],r=r.split(",")[0],1e3*(parseFloat(i)+parseFloat(r))):0},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(at)},supportsTransitionEnd:function(){return Boolean(at)},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(n,t,i){var u,s;for(u in i)if(Object.prototype.hasOwnProperty.call(i,u)){var e=i[u],f=t[u],o=f&&r.isElement(f)?"element":(s=f,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(e).test(o))throw new Error(n.toUpperCase()+': Option "'+u+'" provided type "'+o+'" but expected type "'+e+'".');}},findShadowRoot:function(n){if(!document.documentElement.attachShadow)return null;if("function"!=typeof n.getRootNode)return n instanceof ShadowRoot?n:n.parentNode?r.findShadowRoot(n.parentNode):null;var t=n.getRootNode();return t instanceof ShadowRoot?t:null}};t.fn.emulateTransitionEnd=cf;t.event.special[r.TRANSITION_END]={bindType:at,delegateType:at,handle:function(n){if(t(n.target).is(this))return n.handleObj.handler.apply(this,arguments)}};var vt="alert",pi="bs.alert",cr="."+pi,lf=t.fn[vt],lr={CLOSE:"close"+cr,CLOSED:"closed"+cr,CLICK_DATA_API:"click"+cr+".data-api"},af="alert",vf="fade",yf="show",it=function(){function n(n){this._element=n}var i=n.prototype;return i.close=function(n){var t=this._element;n&&(t=this._getRootElement(n));this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},i.dispose=function(){t.removeData(this._element,pi);this._element=null},i._getRootElement=function(n){var u=r.getSelectorFromElement(n),i=!1;return u&&(i=document.querySelector(u)),i||(i=t(n).closest("."+af)[0]),i},i._triggerCloseEvent=function(n){var i=t.Event(lr.CLOSE);return t(n).trigger(i),i},i._removeElement=function(n){var u=this,i;(t(n).removeClass(yf),t(n).hasClass(vf))?(i=r.getTransitionDurationFromElement(n),t(n).one(r.TRANSITION_END,function(t){return u._destroyElement(n,t)}).emulateTransitionEnd(i)):this._destroyElement(n)},i._destroyElement=function(n){t(n).detach().trigger(lr.CLOSED).remove()},n._jQueryInterface=function(i){return this.each(function(){var u=t(this),r=u.data(pi);r||(r=new n(this),u.data(pi,r));"close"===i&&r[i](this)})},n._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},l(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();t(document).on(lr.CLICK_DATA_API,'[data-dismiss="alert"]',it._handleDismiss(new it));t.fn[vt]=it._jQueryInterface;t.fn[vt].Constructor=it;t.fn[vt].noConflict=function(){return t.fn[vt]=lf,it._jQueryInterface};var yt="button",wi="bs.button",ar="."+wi,vr=".data-api",pf=t.fn[yt],pt="active",wf="btn",bf="focus",fu='[data-toggle^="button"]',kf='[data-toggle="buttons"]',df='input:not([type="hidden"])',gf=".active",eu=".btn",ou={CLICK_DATA_API:"click"+ar+vr,FOCUS_BLUR_DATA_API:"focus"+ar+vr+" blur"+ar+vr},wt=function(){function n(n){this._element=n}var i=n.prototype;return i.toggle=function(){var r=!0,f=!0,i=t(this._element).closest(kf)[0],n,u;if(i&&(n=this._element.querySelector(df),n)){if("radio"===n.type&&(n.checked&&this._element.classList.contains(pt)?r=!1:(u=i.querySelector(gf),u&&t(u).removeClass(pt))),r){if(n.hasAttribute("disabled")||i.hasAttribute("disabled")||n.classList.contains("disabled")||i.classList.contains("disabled"))return;n.checked=!this._element.classList.contains(pt);t(n).trigger("change")}n.focus();f=!1}f&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(pt));r&&t(this._element).toggleClass(pt)},i.dispose=function(){t.removeData(this._element,wi);this._element=null},n._jQueryInterface=function(i){return this.each(function(){var r=t(this).data(wi);r||(r=new n(this),t(this).data(wi,r));"toggle"===i&&r[i]()})},l(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();t(document).on(ou.CLICK_DATA_API,fu,function(n){n.preventDefault();var i=n.target;t(i).hasClass(wf)||(i=t(i).closest(eu));wt._jQueryInterface.call(t(i),"toggle")}).on(ou.FOCUS_BLUR_DATA_API,fu,function(n){var i=t(n.target).closest(eu)[0];t(i).toggleClass(bf,/^focus(in)?$/.test(n.type))});t.fn[yt]=wt._jQueryInterface;t.fn[yt].Constructor=wt;t.fn[yt].noConflict=function(){return t.fn[yt]=pf,wt._jQueryInterface};var rt="carousel",bt="bs.carousel",o="."+bt,su=".data-api",ne=t.fn[rt],yr={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},te={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},bi="next",ki="prev",ie="left",re="right",s={SLIDE:"slide"+o,SLID:"slid"+o,KEYDOWN:"keydown"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o,TOUCHSTART:"touchstart"+o,TOUCHMOVE:"touchmove"+o,TOUCHEND:"touchend"+o,POINTERDOWN:"pointerdown"+o,POINTERUP:"pointerup"+o,DRAG_START:"dragstart"+o,LOAD_DATA_API:"load"+o+su,CLICK_DATA_API:"click"+o+su},ue="carousel",w="active",fe="slide",ee="carousel-item-right",oe="carousel-item-left",se="carousel-item-next",he="carousel-item-prev",ce="pointer-event",le=".active",pr=".active.carousel-item",ae=".carousel-item",ve=".carousel-item img",ye=".carousel-item-next, .carousel-item-prev",pe=".carousel-indicators",we='[data-ride="carousel"]',hu={TOUCH:"touch",PEN:"pen"},ut=function(){function i(n,t){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(t);this._element=n;this._indicatorsElement=this._element.querySelector(pe);this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints;this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent);this._addEventListeners()}var n=i.prototype;return n.next=function(){this._isSliding||this._slide(bi)},n.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(ki)},n.pause=function(n){n||(this._isPaused=!0);this._element.querySelector(ye)&&(r.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},n.cycle=function(n){n||(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))},n.to=function(n){var u=this,i,r;if(this._activeElement=this._element.querySelector(pr),i=this._getItemIndex(this._activeElement),!(n>this._items.length-1||n<0))if(this._isSliding)t(this._element).one(s.SLID,function(){return u.to(n)});else{if(i===n)return this.pause(),void this.cycle();r=i<n?bi:ki;this._slide(r,this._items[n])}},n.dispose=function(){t(this._element).off(o);t.removeData(this._element,bt);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},n._getConfig=function(n){return n=f({},yr,n),r.typeCheckConfig(rt,n,te),n},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX),n;t<=40||(n=t/this.touchDeltaX,0<n&&this.prev(),n<0&&this.next())},n._addEventListeners=function(){var n=this;this._config.keyboard&&t(this._element).on(s.KEYDOWN,function(t){return n._keydown(t)});"hover"===this._config.pause&&t(this._element).on(s.MOUSEENTER,function(t){return n.pause(t)}).on(s.MOUSELEAVE,function(t){return n.cycle(t)});this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var n=this,i,r;this._touchSupported&&(i=function(t){n._pointerEvent&&hu[t.originalEvent.pointerType.toUpperCase()]?n.touchStartX=t.originalEvent.clientX:n._pointerEvent||(n.touchStartX=t.originalEvent.touches[0].clientX)},r=function(t){n._pointerEvent&&hu[t.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=t.originalEvent.clientX-n.touchStartX);n._handleSwipe();"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))},t(this._element.querySelectorAll(ve)).on(s.DRAG_START,function(n){return n.preventDefault()}),this._pointerEvent?(t(this._element).on(s.POINTERDOWN,function(n){return i(n)}),t(this._element).on(s.POINTERUP,function(n){return r(n)}),this._element.classList.add(ce)):(t(this._element).on(s.TOUCHSTART,function(n){return i(n)}),t(this._element).on(s.TOUCHMOVE,function(t){var i;n.touchDeltaX=(i=t).originalEvent.touches&&1<i.originalEvent.touches.length?0:i.originalEvent.touches[0].clientX-n.touchStartX}),t(this._element).on(s.TOUCHEND,function(n){return r(n)})))},n._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case 37:n.preventDefault();this.prev();break;case 39:n.preventDefault();this.next()}},n._getItemIndex=function(n){return this._items=n&&n.parentNode?[].slice.call(n.parentNode.querySelectorAll(ae)):[],this._items.indexOf(n)},n._getItemByDirection=function(n,t){var u=n===bi,f=n===ki,i=this._getItemIndex(t),e=this._items.length-1,r;return(f&&0===i||u&&i===e)&&!this._config.wrap?t:(r=(i+(n===ki?-1:1))%this._items.length,-1===r?this._items[this._items.length-1]:this._items[r])},n._triggerSlideEvent=function(n,i){var u=this._getItemIndex(n),f=this._getItemIndex(this._element.querySelector(pr)),r=t.Event(s.SLIDE,{relatedTarget:n,direction:i,from:f,to:u});return t(this._element).trigger(r),r},n._setActiveIndicatorElement=function(n){var r,i;this._indicatorsElement&&(r=[].slice.call(this._indicatorsElement.querySelectorAll(le)),t(r).removeClass(w),i=this._indicatorsElement.children[this._getItemIndex(n)],i&&t(i).addClass(w))},n._slide=function(n,i){var e,o,h,a=this,f=this._element.querySelector(pr),p=this._getItemIndex(f),u=i||f&&this._getItemByDirection(n,f),b=this._getItemIndex(u),v=Boolean(this._interval),c,l,y;(h=n===bi?(e=oe,o=se,ie):(e=ee,o=he,re),u&&t(u).hasClass(w))?this._isSliding=!1:!this._triggerSlideEvent(u,h).isDefaultPrevented()&&f&&u&&(this._isSliding=!0,v&&this.pause(),this._setActiveIndicatorElement(u),c=t.Event(s.SLID,{relatedTarget:u,direction:h,from:p,to:b}),t(this._element).hasClass(fe)?(t(u).addClass(o),r.reflow(u),t(f).addClass(e),t(u).addClass(e),l=parseInt(u.getAttribute("data-interval"),10),this._config.interval=l?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,l):this._config.defaultInterval||this._config.interval,y=r.getTransitionDurationFromElement(f),t(f).one(r.TRANSITION_END,function(){t(u).removeClass(e+" "+o).addClass(w);t(f).removeClass(w+" "+o+" "+e);a._isSliding=!1;setTimeout(function(){return t(a._element).trigger(c)},0)}).emulateTransitionEnd(y)):(t(f).removeClass(w),t(u).addClass(w),this._isSliding=!1,t(this._element).trigger(c)),v&&this.cycle())},i._jQueryInterface=function(n){return this.each(function(){var r=t(this).data(bt),u=f({},yr,t(this).data()),e;if("object"==typeof n&&(u=f({},u,n)),e="string"==typeof n?n:u.slide,r||(r=new i(this,u),t(this).data(bt,r)),"number"==typeof n)r.to(n);else if("string"==typeof e){if("undefined"==typeof r[e])throw new TypeError('No method named "'+e+'"');r[e]()}else u.interval&&u.ride&&(r.pause(),r.cycle())})},i._dataApiClickHandler=function(n){var s=r.getSelectorFromElement(this),u,o,e;s&&(u=t(s)[0],u&&t(u).hasClass(ue)&&(o=f({},t(u).data(),t(this).data()),e=this.getAttribute("data-slide-to"),e&&(o.interval=!1),i._jQueryInterface.call(t(u),o),e&&t(u).data(bt).to(e),n.preventDefault()))},l(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return yr}}]),i}();t(document).on(s.CLICK_DATA_API,"[data-slide], [data-slide-to]",ut._dataApiClickHandler);t(window).on(s.LOAD_DATA_API,function(){for(var i,r=[].slice.call(document.querySelectorAll(we)),n=0,u=r.length;n<u;n++)i=t(r[n]),ut._jQueryInterface.call(i,i.data())});t.fn[rt]=ut._jQueryInterface;t.fn[rt].Constructor=ut;t.fn[rt].noConflict=function(){return t.fn[rt]=ne,ut._jQueryInterface};var ft="collapse",b="bs.collapse",kt="."+b,be=t.fn[ft],wr={toggle:!0,parent:""},ke={toggle:"boolean",parent:"(string|element)"},dt={SHOW:"show"+kt,SHOWN:"shown"+kt,HIDE:"hide"+kt,HIDDEN:"hidden"+kt,CLICK_DATA_API:"click"+kt+".data-api"},k="show",gt="collapse",di="collapsing",br="collapsed",cu="width",de="height",ge=".show, .collapsing",lu='[data-toggle="collapse"]',ni=function(){function i(n,t){this._isTransitioning=!1;this._element=n;this._config=this._getConfig(t);this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'));for(var f=[].slice.call(document.querySelectorAll(lu)),i=0,o=f.length;i<o;i++){var e=f[i],u=r.getSelectorFromElement(e),s=[].slice.call(document.querySelectorAll(u)).filter(function(t){return t===n});null!==u&&0<s.length&&(this._selector=u,this._triggerArray.push(e))}this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}var n=i.prototype;return n.toggle=function(){t(this._element).hasClass(k)?this.hide():this.show()},n.show=function(){var n,e,u=this,o,f,s,h;this._isTransitioning||t(this._element).hasClass(k)||(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(ge)).filter(function(n){return"string"==typeof u._config.parent?n.getAttribute("data-parent")===u._config.parent:n.classList.contains(gt)})).length&&(n=null),n&&(e=t(n).not(this._selector).data(b))&&e._isTransitioning)||(o=t.Event(dt.SHOW),(t(this._element).trigger(o),o.isDefaultPrevented())||(n&&(i._jQueryInterface.call(t(n).not(this._selector),"hide"),e||t(n).data(b,null)),f=this._getDimension(),t(this._element).removeClass(gt).addClass(di),this._element.style[f]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(br).attr("aria-expanded",!0),this.setTransitioning(!0),s="scroll"+(f[0].toUpperCase()+f.slice(1)),h=r.getTransitionDurationFromElement(this._element),t(this._element).one(r.TRANSITION_END,function(){t(u._element).removeClass(di).addClass(gt).addClass(k);u._element.style[f]="";u.setTransitioning(!1);t(u._element).trigger(dt.SHOWN)}).emulateTransitionEnd(h),this._element.style[f]=this._element[s]+"px"))},n.hide=function(){var s=this,u,n,f,i,e,o,h;if(!this._isTransitioning&&t(this._element).hasClass(k)&&(u=t.Event(dt.HIDE),t(this._element).trigger(u),!u.isDefaultPrevented())){if(n=this._getDimension(),this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",r.reflow(this._element),t(this._element).addClass(di).removeClass(gt).removeClass(k),f=this._triggerArray.length,0<f)for(i=0;i<f;i++)e=this._triggerArray[i],o=r.getSelectorFromElement(e),null!==o&&(t([].slice.call(document.querySelectorAll(o))).hasClass(k)||t(e).addClass(br).attr("aria-expanded",!1));this.setTransitioning(!0);this._element.style[n]="";h=r.getTransitionDurationFromElement(this._element);t(this._element).one(r.TRANSITION_END,function(){s.setTransitioning(!1);t(s._element).removeClass(di).addClass(gt).trigger(dt.HIDDEN)}).emulateTransitionEnd(h)}},n.setTransitioning=function(n){this._isTransitioning=n},n.dispose=function(){t.removeData(this._element,b);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},n._getConfig=function(n){return(n=f({},wr,n)).toggle=Boolean(n.toggle),r.typeCheckConfig(ft,n,ke),n},n._getDimension=function(){return t(this._element).hasClass(cu)?cu:de},n._getParent=function(){var n,e=this,u,f;return r.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent),u='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',f=[].slice.call(n.querySelectorAll(u)),t(f).each(function(n,t){e._addAriaAndCollapsedClass(i._getTargetFromElement(t),[t])}),n},n._addAriaAndCollapsedClass=function(n,i){var r=t(n).hasClass(k);i.length&&t(i).toggleClass(br,!r).attr("aria-expanded",r)},i._getTargetFromElement=function(n){var t=r.getSelectorFromElement(n);return t?document.querySelector(t):null},i._jQueryInterface=function(n){return this.each(function(){var u=t(this),r=u.data(b),e=f({},wr,u.data(),"object"==typeof n&&n?n:{});if(!r&&e.toggle&&/show|hide/.test(n)&&(e.toggle=!1),r||(r=new i(this,e),u.data(b,r)),"string"==typeof n){if("undefined"==typeof r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},l(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return wr}}]),i}();t(document).on(dt.CLICK_DATA_API,lu,function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var i=t(this),u=r.getSelectorFromElement(this),f=[].slice.call(document.querySelectorAll(u));t(f).each(function(){var n=t(this),r=n.data(b)?"toggle":i.data();ni._jQueryInterface.call(n,r)})});t.fn[ft]=ni._jQueryInterface;t.fn[ft].Constructor=ni;t.fn[ft].noConflict=function(){return t.fn[ft]=be,ni._jQueryInterface};var et="dropdown",ti="bs.dropdown",y="."+ti,kr=".data-api",no=t.fn[et],to=new RegExp("38|40|27"),e={HIDE:"hide"+y,HIDDEN:"hidden"+y,SHOW:"show"+y,SHOWN:"shown"+y,CLICK:"click"+y,CLICK_DATA_API:"click"+y+kr,KEYDOWN_DATA_API:"keydown"+y+kr,KEYUP_DATA_API:"keyup"+y+kr},gi="disabled",h="show",io="dropup",ro="dropright",uo="dropleft",au="dropdown-menu-right",fo="position-static",nr='[data-toggle="dropdown"]',dr=".dropdown-menu",eo=".navbar-nav",oo=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",so="top-start",ho="top-end",co="bottom-start",lo="bottom-end",ao="right-start",vo="left-start",yo={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},po={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},p=function(){function n(n,t){this._element=n;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var u=n.prototype;return u.toggle=function(){var u,c,o,s,f;if(!this._element.disabled&&!t(this._element).hasClass(gi)&&(u=n._getParentFromElement(this._element),c=t(this._menu).hasClass(h),(n._clearMenus(),!c)&&(o={relatedTarget:this._element},s=t.Event(e.SHOW,o),t(u).trigger(s),!s.isDefaultPrevented()))){if(!this._inNavbar){if("undefined"==typeof i)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");f=this._element;"parent"===this._config.reference?f=u:r.isElement(this._config.reference)&&(f=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(f=this._config.reference[0]));"scrollParent"!==this._config.boundary&&t(u).addClass(fo);this._popper=new i(f,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(u).closest(eo).length&&t(document.body).children().on("mouseover",null,t.noop);this._element.focus();this._element.setAttribute("aria-expanded",!0);t(this._menu).toggleClass(h);t(u).toggleClass(h).trigger(t.Event(e.SHOWN,o))}},u.show=function(){if(!(this._element.disabled||t(this._element).hasClass(gi)||t(this._menu).hasClass(h))){var i={relatedTarget:this._element},r=t.Event(e.SHOW,i),u=n._getParentFromElement(this._element);t(u).trigger(r);r.isDefaultPrevented()||(t(this._menu).toggleClass(h),t(u).toggleClass(h).trigger(t.Event(e.SHOWN,i)))}},u.hide=function(){if(!this._element.disabled&&!t(this._element).hasClass(gi)&&t(this._menu).hasClass(h)){var i={relatedTarget:this._element},r=t.Event(e.HIDE,i),u=n._getParentFromElement(this._element);t(u).trigger(r);r.isDefaultPrevented()||(t(this._menu).toggleClass(h),t(u).toggleClass(h).trigger(t.Event(e.HIDDEN,i)))}},u.dispose=function(){t.removeData(this._element,ti);t(this._element).off(y);this._element=null;(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},u.update=function(){this._inNavbar=this._detectNavbar();null!==this._popper&&this._popper.scheduleUpdate()},u._addEventListeners=function(){var n=this;t(this._element).on(e.CLICK,function(t){t.preventDefault();t.stopPropagation();n.toggle()})},u._getConfig=function(n){return n=f({},this.constructor.Default,t(this._element).data(),n),r.typeCheckConfig(et,n,this.constructor.DefaultType),n},u._getMenuElement=function(){if(!this._menu){var t=n._getParentFromElement(this._element);t&&(this._menu=t.querySelector(dr))}return this._menu},u._getPlacement=function(){var i=t(this._element.parentNode),n=co;return i.hasClass(io)?(n=so,t(this._menu).hasClass(au)&&(n=ho)):i.hasClass(ro)?n=ao:i.hasClass(uo)?n=vo:t(this._menu).hasClass(au)&&(n=lo),n},u._detectNavbar=function(){return 0<t(this._element).closest(".navbar").length},u._getOffset=function(){var t=this,n={};return"function"==typeof this._config.offset?n.fn=function(n){return n.offsets=f({},n.offsets,t._config.offset(n.offsets,t._element)||{}),n}:n.offset=this._config.offset,n},u._getPopperConfig=function(){var n={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},n._jQueryInterface=function(i){return this.each(function(){var r=t(this).data(ti);if(r||(r=new n(this,"object"==typeof i?i:null),t(this).data(ti,r)),"string"==typeof i){if("undefined"==typeof r[i])throw new TypeError('No method named "'+i+'"');r[i]()}})},n._clearMenus=function(i){var l,s;if(!i||3!==i.which&&("keyup"!==i.type||9===i.which))for(var u=[].slice.call(document.querySelectorAll(nr)),r=0,a=u.length;r<a;r++){var f=n._getParentFromElement(u[r]),c=t(u[r]).data(ti),o={relatedTarget:u[r]};(i&&"click"===i.type&&(o.clickEvent=i),c)&&(l=c._menu,!t(f).hasClass(h)||i&&("click"===i.type&&/input|textarea/i.test(i.target.tagName)||"keyup"===i.type&&9===i.which)&&t.contains(f,i.target)||(s=t.Event(e.HIDE,o),t(f).trigger(s),s.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),u[r].setAttribute("aria-expanded","false"),t(l).removeClass(h),t(f).removeClass(h).trigger(t.Event(e.HIDDEN,o)))))}},n._getParentFromElement=function(n){var t,i=r.getSelectorFromElement(n);return i&&(t=document.querySelector(i)),t||n.parentNode},n._dataApiKeydownHandler=function(i){var f,e,u,r,o;(/input|textarea/i.test(i.target.tagName)?32===i.which||27!==i.which&&(40!==i.which&&38!==i.which||t(i.target).closest(dr).length):!to.test(i.which))||(i.preventDefault(),i.stopPropagation(),this.disabled||t(this).hasClass(gi))||(f=n._getParentFromElement(this),e=t(f).hasClass(h),e&&(!e||27!==i.which&&32!==i.which)?(u=[].slice.call(f.querySelectorAll(oo)),0!==u.length&&(r=u.indexOf(i.target),38===i.which&&0<r&&r--,40===i.which&&r<u.length-1&&r++,r<0&&(r=0),u[r].focus())):(27===i.which&&(o=f.querySelector(nr),t(o).trigger("focus")),t(this).trigger("click")))},l(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return yo}},{key:"DefaultType",get:function(){return po}}]),n}();t(document).on(e.KEYDOWN_DATA_API,nr,p._dataApiKeydownHandler).on(e.KEYDOWN_DATA_API,dr,p._dataApiKeydownHandler).on(e.CLICK_DATA_API+" "+e.KEYUP_DATA_API,p._clearMenus).on(e.CLICK_DATA_API,nr,function(n){n.preventDefault();n.stopPropagation();p._jQueryInterface.call(t(this),"toggle")}).on(e.CLICK_DATA_API,".dropdown form",function(n){n.stopPropagation()});t.fn[et]=p._jQueryInterface;t.fn[et].Constructor=p;t.fn[et].noConflict=function(){return t.fn[et]=no,p._jQueryInterface};var ot="modal",ii="bs.modal",c="."+ii,wo=t.fn[ot],gr={backdrop:!0,keyboard:!0,focus:!0,show:!0},bo={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},u={HIDE:"hide"+c,HIDDEN:"hidden"+c,SHOW:"show"+c,SHOWN:"shown"+c,FOCUSIN:"focusin"+c,RESIZE:"resize"+c,CLICK_DISMISS:"click.dismiss"+c,KEYDOWN_DISMISS:"keydown.dismiss"+c,MOUSEUP_DISMISS:"mouseup.dismiss"+c,MOUSEDOWN_DISMISS:"mousedown.dismiss"+c,CLICK_DATA_API:"click"+c+".data-api"},ko="modal-dialog-scrollable",go="modal-scrollbar-measure",ns="modal-backdrop",vu="modal-open",st="fade",tr="show",ts=".modal-dialog",is=".modal-body",rs='[data-dismiss="modal"]',yu=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",pu=".sticky-top",ri=function(){function i(n,t){this._config=this._getConfig(t);this._element=n;this._dialog=n.querySelector(ts);this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._isTransitioning=!1;this._scrollbarWidth=0}var n=i.prototype;return n.toggle=function(n){return this._isShown?this.hide():this.show(n)},n.show=function(n){var i=this,r;this._isShown||this._isTransitioning||(t(this._element).hasClass(st)&&(this._isTransitioning=!0),r=t.Event(u.SHOW,{relatedTarget:n}),t(this._element).trigger(r),this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(u.CLICK_DISMISS,rs,function(n){return i.hide(n)}),t(this._dialog).on(u.MOUSEDOWN_DISMISS,function(){t(i._element).one(u.MOUSEUP_DISMISS,function(n){t(n.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(n)})))},n.hide=function(n){var o=this,i,f,e;(n&&n.preventDefault(),this._isShown&&!this._isTransitioning)&&(i=t.Event(u.HIDE),(t(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented())&&(this._isShown=!1,f=t(this._element).hasClass(st),(f&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(u.FOCUSIN),t(this._element).removeClass(tr),t(this._element).off(u.CLICK_DISMISS),t(this._dialog).off(u.MOUSEDOWN_DISMISS),f)?(e=r.getTransitionDurationFromElement(this._element),t(this._element).one(r.TRANSITION_END,function(n){return o._hideModal(n)}).emulateTransitionEnd(e)):this._hideModal()))},n.dispose=function(){[window,this._element,this._dialog].forEach(function(n){return t(n).off(c)});t(document).off(u.FOCUSIN);t.removeData(this._element,ii);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},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(n){return n=f({},gr,n),r.typeCheckConfig(ot,n,bo),n},n._showElement=function(n){var i=this,e=t(this._element).hasClass(st),o,f,s;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);t(this._dialog).hasClass(ko)?this._dialog.querySelector(is).scrollTop=0:this._element.scrollTop=0;e&&r.reflow(this._element);t(this._element).addClass(tr);this._config.focus&&this._enforceFocus();o=t.Event(u.SHOWN,{relatedTarget:n});f=function(){i._config.focus&&i._element.focus();i._isTransitioning=!1;t(i._element).trigger(o)};e?(s=r.getTransitionDurationFromElement(this._dialog),t(this._dialog).one(r.TRANSITION_END,f).emulateTransitionEnd(s)):f()},n._enforceFocus=function(){var n=this;t(document).off(u.FOCUSIN).on(u.FOCUSIN,function(i){document!==i.target&&n._element!==i.target&&0===t(n._element).has(i.target).length&&n._element.focus()})},n._setEscapeEvent=function(){var n=this;this._isShown&&this._config.keyboard?t(this._element).on(u.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),n.hide())}):this._isShown||t(this._element).off(u.KEYDOWN_DISMISS)},n._setResizeEvent=function(){var n=this;this._isShown?t(window).on(u.RESIZE,function(t){return n.handleUpdate(t)}):t(window).off(u.RESIZE)},n._hideModal=function(){var n=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",!0);this._element.removeAttribute("aria-modal");this._isTransitioning=!1;this._showBackdrop(function(){t(document.body).removeClass(vu);n._resetAdjustments();n._resetScrollbar();t(n._element).trigger(u.HIDDEN)})},n._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(n){var i=this,f=t(this._element).hasClass(st)?st:"",o,e,s;if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=ns,f&&this._backdrop.classList.add(f),t(this._backdrop).appendTo(document.body),t(this._element).on(u.CLICK_DISMISS,function(n){i._ignoreBackdropClick?i._ignoreBackdropClick=!1:n.target===n.currentTarget&&("static"===i._config.backdrop?i._element.focus():i.hide())}),f&&r.reflow(this._backdrop),t(this._backdrop).addClass(tr),!n)return;if(!f)return void n();o=r.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(r.TRANSITION_END,n).emulateTransitionEnd(o)}else!this._isShown&&this._backdrop?(t(this._backdrop).removeClass(tr),e=function(){i._removeBackdrop();n&&n()},t(this._element).hasClass(st)?(s=r.getTransitionDurationFromElement(this._backdrop),t(this._backdrop).one(r.TRANSITION_END,e).emulateTransitionEnd(s)):e()):n&&n()},n._adjustDialog=function(){var n=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&n&&(this._element.style.paddingLeft=this._scrollbarWidth+"px");this._isBodyOverflowing&&!n&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},n._checkScrollbar=function(){var n=document.body.getBoundingClientRect();this._isBodyOverflowing=n.left+n.right<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var n=this,i,r,u,f;this._isBodyOverflowing&&(i=[].slice.call(document.querySelectorAll(yu)),r=[].slice.call(document.querySelectorAll(pu)),t(i).each(function(i,r){var u=r.style.paddingRight,f=t(r).css("padding-right");t(r).data("padding-right",u).css("padding-right",parseFloat(f)+n._scrollbarWidth+"px")}),t(r).each(function(i,r){var u=r.style.marginRight,f=t(r).css("margin-right");t(r).data("margin-right",u).css("margin-right",parseFloat(f)-n._scrollbarWidth+"px")}),u=document.body.style.paddingRight,f=t(document.body).css("padding-right"),t(document.body).data("padding-right",u).css("padding-right",parseFloat(f)+this._scrollbarWidth+"px"));t(document.body).addClass(vu)},n._resetScrollbar=function(){var r=[].slice.call(document.querySelectorAll(yu)),n,i;t(r).each(function(n,i){var r=t(i).data("padding-right");t(i).removeData("padding-right");i.style.paddingRight=r||""});n=[].slice.call(document.querySelectorAll(""+pu));t(n).each(function(n,i){var r=t(i).data("margin-right");"undefined"!=typeof r&&t(i).css("margin-right",r).removeData("margin-right")});i=t(document.body).data("padding-right");t(document.body).removeData("padding-right");document.body.style.paddingRight=i||""},n._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className=go,document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t},i._jQueryInterface=function(n,r){return this.each(function(){var u=t(this).data(ii),e=f({},gr,t(this).data(),"object"==typeof n&&n?n:{});if(u||(u=new i(this,e),t(this).data(ii,u)),"string"==typeof n){if("undefined"==typeof u[n])throw new TypeError('No method named "'+n+'"');u[n](r)}else e.show&&u.show(r)})},l(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return gr}}]),i}();t(document).on(u.CLICK_DATA_API,'[data-toggle="modal"]',function(n){var i,e=this,o=r.getSelectorFromElement(this),s,h;o&&(i=document.querySelector(o));s=t(i).data(ii)?"toggle":f({},t(i).data(),t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||n.preventDefault();h=t(i).one(u.SHOW,function(n){n.isDefaultPrevented()||h.one(u.HIDDEN,function(){t(e).is(":visible")&&e.focus()})});ri._jQueryInterface.call(t(i),s,this)});t.fn[ot]=ri._jQueryInterface;t.fn[ot].Constructor=ri;t.fn[ot].noConflict=function(){return t.fn[ot]=wo,ri._jQueryInterface};var us=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],fs=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,es=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;var d="tooltip",ir="bs.tooltip",a="."+ir,os=t.fn[d],bu="bs-tooltip",ss=new RegExp("(^|\\s)"+bu+"\\S+","g"),hs=["sanitize","whiteList","sanitizeFn"],cs={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"},ls={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},as={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:{"*":["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:[]}},ui="show",nu="out",vs={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,INSERTED:"inserted"+a,CLICK:"click"+a,FOCUSIN:"focusin"+a,FOCUSOUT:"focusout"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a},fi="fade",ei="show",ys=".tooltip-inner",ps=".arrow",oi="hover",tu="focus",ws="click",bs="manual",g=function(){function u(n,t){if("undefined"==typeof i)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=n;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var n=u.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(n){if(this._isEnabled)if(n){var r=this.constructor.DATA_KEY,i=t(n.currentTarget).data(r);i||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));i._activeTrigger.click=!i._activeTrigger.click;i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(ei))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout);t.removeData(this.element,this.constructor.DATA_KEY);t(this.element).off(this.constructor.EVENT_KEY);t(this.element).closest(".modal").off("hide.bs.modal");this.tip&&t(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},n.show=function(){var n=this,f,e,c,u,o,l,s,a,h,v;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");if(f=t.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(t(this.element).trigger(f),e=r.findShadowRoot(this.element),c=t.contains(null!==e?e:this.element.ownerDocument.documentElement,this.element),f.isDefaultPrevented()||!c)return;u=this.getTipElement();o=r.getUID(this.constructor.NAME);u.setAttribute("id",o);this.element.setAttribute("aria-describedby",o);this.setContent();this.config.animation&&t(u).addClass(fi);l="function"==typeof this.config.placement?this.config.placement.call(this,u,this.element):this.config.placement;s=this._getAttachment(l);this.addAttachmentClass(s);a=this._getContainer();t(u).data(this.constructor.DATA_KEY,this);t.contains(this.element.ownerDocument.documentElement,this.tip)||t(u).appendTo(a);t(this.element).trigger(this.constructor.Event.INSERTED);this._popper=new i(this.element,u,{placement:s,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:ps},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&n._handlePopperPlacementChange(t)},onUpdate:function(t){return n._handlePopperPlacementChange(t)}});t(u).addClass(ei);"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);h=function(){n.config.animation&&n._fixTransition();var i=n._hoverState;n._hoverState=null;t(n.element).trigger(n.constructor.Event.SHOWN);i===nu&&n._leave(null,n)};t(this.tip).hasClass(fi)?(v=r.getTransitionDurationFromElement(this.tip),t(this.tip).one(r.TRANSITION_END,h).emulateTransitionEnd(v)):h()}},n.hide=function(n){var i=this,u=this.getTipElement(),f=t.Event(this.constructor.Event.HIDE),e=function(){i._hoverState!==ui&&u.parentNode&&u.parentNode.removeChild(u);i._cleanTipClass();i.element.removeAttribute("aria-describedby");t(i.element).trigger(i.constructor.Event.HIDDEN);null!==i._popper&&i._popper.destroy();n&&n()},o;(t(this.element).trigger(f),f.isDefaultPrevented())||((t(u).removeClass(ei),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[ws]=!1,this._activeTrigger[tu]=!1,this._activeTrigger[oi]=!1,t(this.tip).hasClass(fi))?(o=r.getTransitionDurationFromElement(u),t(u).one(r.TRANSITION_END,e).emulateTransitionEnd(o)):e(),this._hoverState="")},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(n){t(this.getTipElement()).addClass(bu+"-"+n)},n.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},n.setContent=function(){var n=this.getTipElement();this.setElementContent(t(n.querySelectorAll(ys)),this.getTitle());t(n).removeClass(fi+" "+ei)},n.setElementContent=function(n,i){"object"!=typeof i||!i.nodeType&&!i.jquery?this.config.html?(this.config.sanitize&&(i=wu(i,this.config.whiteList,this.config.sanitizeFn)),n.html(i)):n.text(i):this.config.html?t(i).parent().is(n)||n.empty().append(i):n.text(t(i).text())},n.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||(n="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),n},n._getOffset=function(){var t=this,n={};return"function"==typeof this.config.offset?n.fn=function(n){return n.offsets=f({},n.offsets,t.config.offset(n.offsets,t.element)||{}),n}:n.offset=this.config.offset,n},n._getContainer=function(){return!1===this.config.container?document.body:r.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},n._getAttachment=function(n){return ls[n.toUpperCase()]},n._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(i){if("click"===i)t(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(i!==bs){var r=i===oi?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,u=i===oi?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;t(n.element).on(r,n.config.selector,function(t){return n._enter(t)}).on(u,n.config.selector,function(t){return n._leave(t)})}});t(this.element).closest(".modal").on("hide.bs.modal",function(){n.element&&n.hide()});this.config.selector?this.config=f({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var n=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==n)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(n,i){var r=this.constructor.DATA_KEY;(i=i||t(n.currentTarget).data(r))||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));n&&(i._activeTrigger["focusin"===n.type?tu:oi]=!0);t(i.getTipElement()).hasClass(ei)||i._hoverState===ui?i._hoverState=ui:(clearTimeout(i._timeout),i._hoverState=ui,i.config.delay&&i.config.delay.show?i._timeout=setTimeout(function(){i._hoverState===ui&&i.show()},i.config.delay.show):i.show())},n._leave=function(n,i){var r=this.constructor.DATA_KEY;(i=i||t(n.currentTarget).data(r))||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));n&&(i._activeTrigger["focusout"===n.type?tu:oi]=!1);i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState=nu,i.config.delay&&i.config.delay.hide?i._timeout=setTimeout(function(){i._hoverState===nu&&i.hide()},i.config.delay.hide):i.hide())},n._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},n._getConfig=function(n){var i=t(this.element).data();return Object.keys(i).forEach(function(n){-1!==hs.indexOf(n)&&delete i[n]}),"number"==typeof(n=f({},this.constructor.Default,i,"object"==typeof n&&n?n:{})).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),r.typeCheckConfig(d,n,this.constructor.DefaultType),n.sanitize&&(n.template=wu(n.template,n.whiteList,n.sanitizeFn)),n},n._getDelegateConfig=function(){var t={},n;if(this.config)for(n in this.config)this.constructor.Default[n]!==this.config[n]&&(t[n]=this.config[n]);return t},n._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(ss);null!==n&&n.length&&i.removeClass(n.join(""))},n._handlePopperPlacementChange=function(n){var t=n.instance;this.tip=t.popper;this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},n._fixTransition=function(){var n=this.getTipElement(),i=this.config.animation;null===n.getAttribute("x-placement")&&(t(n).removeClass(fi),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},u._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(ir),r="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new u(this,r),t(this).data(ir,i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},l(u,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return as}},{key:"NAME",get:function(){return d}},{key:"DATA_KEY",get:function(){return ir}},{key:"Event",get:function(){return vs}},{key:"EVENT_KEY",get:function(){return a}},{key:"DefaultType",get:function(){return cs}}]),u}();t.fn[d]=g._jQueryInterface;t.fn[d].Constructor=g;t.fn[d].noConflict=function(){return t.fn[d]=os,g._jQueryInterface};var ht="popover",rr="bs.popover",v="."+rr,ks=t.fn[ht],ku="bs-popover",ds=new RegExp("(^|\\s)"+ku+"\\S+","g"),gs=f({},g.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>'}),nh=f({},g.DefaultType,{content:"(string|element|function)"}),th="fade",ih="show",rh=".popover-header",uh=".popover-body",fh={HIDE:"hide"+v,HIDDEN:"hidden"+v,SHOW:"show"+v,SHOWN:"shown"+v,INSERTED:"inserted"+v,CLICK:"click"+v,FOCUSIN:"focusin"+v,FOCUSOUT:"focusout"+v,MOUSEENTER:"mouseenter"+v,MOUSELEAVE:"mouseleave"+v},ur=function(n){function r(){return n.apply(this,arguments)||this}var u,f,i;return f=n,(u=r).prototype=Object.create(f.prototype),(u.prototype.constructor=u).__proto__=f,i=r.prototype,i.isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(n){t(this.getTipElement()).addClass(ku+"-"+n)},i.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},i.setContent=function(){var i=t(this.getTipElement()),n;this.setElementContent(i.find(rh),this.getTitle());n=this._getContent();"function"==typeof n&&(n=n.call(this.element));this.setElementContent(i.find(uh),n);i.removeClass(th+" "+ih)},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(ds);null!==n&&0<n.length&&i.removeClass(n.join(""))},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(rr),u="object"==typeof n?n:null;if((i||!/dispose|hide/.test(n))&&(i||(i=new r(this,u),t(this).data(rr,i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},l(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return gs}},{key:"NAME",get:function(){return ht}},{key:"DATA_KEY",get:function(){return rr}},{key:"Event",get:function(){return fh}},{key:"EVENT_KEY",get:function(){return v}},{key:"DefaultType",get:function(){return nh}}]),r}(g);t.fn[ht]=ur._jQueryInterface;t.fn[ht].Constructor=ur;t.fn[ht].noConflict=function(){return t.fn[ht]=ks,ur._jQueryInterface};var nt="scrollspy",fr="bs.scrollspy",er="."+fr,eh=t.fn[nt],du={offset:10,method:"auto",target:""},oh={offset:"number",method:"string",target:"(string|element)"},iu={ACTIVATE:"activate"+er,SCROLL:"scroll"+er,LOAD_DATA_API:"load"+er+".data-api"},sh="dropdown-item",tt="active",hh='[data-spy="scroll"]',gu=".nav, .list-group",ru=".nav-link",ch=".nav-item",nf=".list-group-item",lh=".dropdown",ah=".dropdown-item",vh=".dropdown-toggle",yh="offset",tf="position",si=function(){function i(n,i){var r=this;this._element=n;this._scrollElement="BODY"===n.tagName?window:n;this._config=this._getConfig(i);this._selector=this._config.target+" "+ru+","+this._config.target+" "+nf+","+this._config.target+" "+ah;this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;t(this._scrollElement).on(iu.SCROLL,function(n){return r._process(n)});this.refresh();this._process()}var n=i.prototype;return n.refresh=function(){var n=this,u=this._scrollElement===this._scrollElement.window?yh:tf,i="auto"===this._config.method?u:this._config.method,f=i===tf?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();[].slice.call(document.querySelectorAll(this._selector)).map(function(n){var u,e=r.getSelectorFromElement(n),o;return(e&&(u=document.querySelector(e)),u)&&(o=u.getBoundingClientRect(),o.width||o.height)?[t(u)[i]().top+f,e]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(t){n._offsets.push(t[0]);n._targets.push(t[1])})},n.dispose=function(){t.removeData(this._element,fr);t(this._scrollElement).off(er);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},n._getConfig=function(n){if("string"!=typeof(n=f({},du,"object"==typeof n&&n?n:{})).target){var i=t(n.target).attr("id");i||(i=r.getUID(nt),t(n.target).attr("id",i));n.target="#"+i}return r.typeCheckConfig(nt,n,oh),n},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),u=this._config.offset+r-this._getOffsetHeight(),i,n;if(this._scrollHeight!==r&&this.refresh(),u<=t)i=this._targets[this._targets.length-1],this._activeTarget!==i&&this._activate(i);else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(n=this._offsets.length;n--;)this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&("undefined"==typeof this._offsets[n+1]||t<this._offsets[n+1])&&this._activate(this._targets[n])}},n._activate=function(n){this._activeTarget=n;this._clear();var r=this._selector.split(",").map(function(t){return t+'[data-target="'+n+'"],'+t+'[href="'+n+'"]'}),i=t([].slice.call(document.querySelectorAll(r.join(","))));i.hasClass(sh)?(i.closest(lh).find(vh).addClass(tt),i.addClass(tt)):(i.addClass(tt),i.parents(gu).prev(ru+", "+nf).addClass(tt),i.parents(gu).prev(ch).children(ru).addClass(tt));t(this._scrollElement).trigger(iu.ACTIVATE,{relatedTarget:n})},n._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(n){return n.classList.contains(tt)}).forEach(function(n){return n.classList.remove(tt)})},i._jQueryInterface=function(n){return this.each(function(){var r=t(this).data(fr);if(r||(r=new i(this,"object"==typeof n&&n),t(this).data(fr,r)),"string"==typeof n){if("undefined"==typeof r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},l(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return du}}]),i}();t(window).on(iu.LOAD_DATA_API,function(){for(var r,n=[].slice.call(document.querySelectorAll(hh)),i=n.length;i--;)r=t(n[i]),si._jQueryInterface.call(r,r.data())});t.fn[nt]=si._jQueryInterface;t.fn[nt].Constructor=si;t.fn[nt].noConflict=function(){return t.fn[nt]=eh,si._jQueryInterface};var or="bs.tab",hi="."+or,ph=t.fn.tab,ci={HIDE:"hide"+hi,HIDDEN:"hidden"+hi,SHOW:"show"+hi,SHOWN:"shown"+hi,CLICK_DATA_API:"click"+hi+".data-api"},wh="dropdown-menu",li="active",bh="disabled",rf="fade",uf="show",kh=".dropdown",dh=".nav, .list-group",ff=".active",ef="> li > .active",gh=".dropdown-toggle",nc="> .dropdown-menu .active",ai=function(){function n(n){this._element=n}var i=n.prototype;return i.show=function(){var h=this,u,n,i,f,c,e,o,s;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(li)||t(this._element).hasClass(bh)||(i=t(this._element).closest(dh)[0],f=r.getSelectorFromElement(this._element),i&&(c="UL"===i.nodeName||"OL"===i.nodeName?ef:ff,n=(n=t.makeArray(t(i).find(c)))[n.length-1]),e=t.Event(ci.HIDE,{relatedTarget:this._element}),o=t.Event(ci.SHOW,{relatedTarget:n}),(n&&t(n).trigger(e),t(this._element).trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(f&&(u=document.querySelector(f)),this._activate(this._element,i),s=function(){var i=t.Event(ci.HIDDEN,{relatedTarget:h._element}),r=t.Event(ci.SHOWN,{relatedTarget:n});t(n).trigger(i);t(h._element).trigger(r)},u?this._activate(u,u.parentNode,s):s()))},i.dispose=function(){t.removeData(this._element,or);this._element=null},i._activate=function(n,i,u){var s=this,f=(!i||"UL"!==i.nodeName&&"OL"!==i.nodeName?t(i).children(ff):t(i).find(ef))[0],h=u&&f&&t(f).hasClass(rf),e=function(){return s._transitionComplete(n,f,u)},o;f&&h?(o=r.getTransitionDurationFromElement(f),t(f).removeClass(uf).one(r.TRANSITION_END,e).emulateTransitionEnd(o)):e()},i._transitionComplete=function(n,i,u){var f,e,o;i&&(t(i).removeClass(li),f=t(i.parentNode).find(nc)[0],f&&t(f).removeClass(li),"tab"===i.getAttribute("role")&&i.setAttribute("aria-selected",!1));(t(n).addClass(li),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!0),r.reflow(n),n.classList.contains(rf)&&n.classList.add(uf),n.parentNode&&t(n.parentNode).hasClass(wh))&&(e=t(n).closest(kh)[0],e&&(o=[].slice.call(e.querySelectorAll(gh)),t(o).addClass(li)),n.setAttribute("aria-expanded",!0));u&&u()},n._jQueryInterface=function(i){return this.each(function(){var u=t(this),r=u.data(or);if(r||(r=new n(this),u.data(or,r)),"string"==typeof i){if("undefined"==typeof r[i])throw new TypeError('No method named "'+i+'"');r[i]()}})},l(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();t(document).on(ci.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(n){n.preventDefault();ai._jQueryInterface.call(t(this),"show")});t.fn.tab=ai._jQueryInterface;t.fn.tab.Constructor=ai;t.fn.tab.noConflict=function(){return t.fn.tab=ph,ai._jQueryInterface};var ct="toast",sr="bs.toast",vi="."+sr,tc=t.fn[ct],lt={CLICK_DISMISS:"click.dismiss"+vi,HIDE:"hide"+vi,HIDDEN:"hidden"+vi,SHOW:"show"+vi,SHOWN:"shown"+vi},ic="fade",of="hide",yi="show",sf="showing",rc={animation:"boolean",autohide:"boolean",delay:"number"},hf={animation:!0,autohide:!0,delay:500},uc='[data-dismiss="toast"]',hr=function(){function i(n,t){this._element=n;this._config=this._getConfig(t);this._timeout=null;this._setListeners()}var n=i.prototype;return n.show=function(){var n=this,i,u;t(this._element).trigger(lt.SHOW);this._config.animation&&this._element.classList.add(ic);i=function(){n._element.classList.remove(sf);n._element.classList.add(yi);t(n._element).trigger(lt.SHOWN);n._config.autohide&&n.hide()};(this._element.classList.remove(of),this._element.classList.add(sf),this._config.animation)?(u=r.getTransitionDurationFromElement(this._element),t(this._element).one(r.TRANSITION_END,i).emulateTransitionEnd(u)):i()},n.hide=function(n){var i=this;this._element.classList.contains(yi)&&(t(this._element).trigger(lt.HIDE),n?this._close():this._timeout=setTimeout(function(){i._close()},this._config.delay))},n.dispose=function(){clearTimeout(this._timeout);this._timeout=null;this._element.classList.contains(yi)&&this._element.classList.remove(yi);t(this._element).off(lt.CLICK_DISMISS);t.removeData(this._element,sr);this._element=null;this._config=null},n._getConfig=function(n){return n=f({},hf,t(this._element).data(),"object"==typeof n&&n?n:{}),r.typeCheckConfig(ct,n,this.constructor.DefaultType),n},n._setListeners=function(){var n=this;t(this._element).on(lt.CLICK_DISMISS,uc,function(){return n.hide(!0)})},n._close=function(){var n=this,i=function(){n._element.classList.add(of);t(n._element).trigger(lt.HIDDEN)},u;(this._element.classList.remove(yi),this._config.animation)?(u=r.getTransitionDurationFromElement(this._element),t(this._element).one(r.TRANSITION_END,i).emulateTransitionEnd(u)):i()},i._jQueryInterface=function(n){return this.each(function(){var u=t(this),r=u.data(sr);if(r||(r=new i(this,"object"==typeof n&&n),u.data(sr,r)),"string"==typeof n){if("undefined"==typeof r[n])throw new TypeError('No method named "'+n+'"');r[n](this)}})},l(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return rc}},{key:"Default",get:function(){return hf}}]),i}();t.fn[ct]=hr._jQueryInterface;t.fn[ct].Constructor=hr;t.fn[ct].noConflict=function(){return t.fn[ct]=tc,hr._jQueryInterface},function(){if("undefined"==typeof t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var n=t.fn.jquery.split(" ")[0].split(".");if(n[0]<2&&n[1]<9||1===n[0]&&9===n[1]&&n[2]<1||4<=n[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");}();n.Util=r;n.Alert=it;n.Button=wt;n.Carousel=ut;n.Collapse=ni;n.Dropdown=p;n.Modal=ri;n.Popover=ur;n.Scrollspy=si;n.Tab=ai;n.Toast=hr;n.Tooltip=g;Object.defineProperty(n,"__esModule",{value:!0})}),function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.PopperUtils={})}(this,function(n){"use strict";function t(n,t){if(1!==n.nodeType)return[];var i=getComputedStyle(n,null);return t?i[t]:i}function e(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function u(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var i=t(n),r=i.overflow,f=i.overflowX,o=i.overflowY;return/(auto|scroll|overlay)/.test(r+o+f)?n:u(e(n))}function f(n){return 11===n?gt:10===n?ni:gt||ni}function o(n){var u,i,r;if(!n)return document.documentElement;for(u=f(10)?document.body:null,i=n.offsetParent;i===u&&n.nextElementSibling;)i=(n=n.nextElementSibling).offsetParent;return r=i&&i.nodeName,r&&"BODY"!==r&&"HTML"!==r?-1!==["TD","TABLE"].indexOf(i.nodeName)&&"static"===t(i,"position")?o(i):i:n?n.ownerDocument.documentElement:document.documentElement}function fi(n){var t=n.nodeName;return"BODY"!==t&&("HTML"===t||o(n.firstElementChild)===n)}function w(n){return null===n.parentNode?n:w(n.parentNode)}function l(n,t){var i,u;if(!n||!n.nodeType||!t||!t.nodeType)return document.documentElement;var f=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,e=f?n:t,s=f?t:n,r=document.createRange();return(r.setStart(e,0),r.setEnd(s,0),i=r.commonAncestorContainer,n!==i&&t!==i||e.contains(s))?fi(i)?i:o(i):(u=w(n),u.host?l(u.host,t):l(n,w(t).host))}function i(n){var f=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"top",t="top"===f?"scrollTop":"scrollLeft",i=n.nodeName,r,u;return"BODY"===i||"HTML"===i?(r=n.ownerDocument.documentElement,u=n.ownerDocument.scrollingElement||r,u[t]):n[t]}function ei(n,t){var e=2<arguments.length&&void 0!==arguments[2]&&arguments[2],u=i(t,"top"),f=i(t,"left"),r=e?-1:1;return n.top+=u*r,n.bottom+=u*r,n.left+=f*r,n.right+=f*r,n}function a(n,t){var i="x"===t?"Left":"Top",r="Left"==i?"Right":"Bottom";return parseFloat(n["border"+i+"Width"],10)+parseFloat(n["border"+r+"Width"],10)}function rt(n,t,i,r){return c(t["offset"+n],t["scroll"+n],i["client"+n],i["offset"+n],i["scroll"+n],f(10)?i["offset"+n]+r["margin"+("Height"===n?"Top":"Left")]+r["margin"+("Height"===n?"Bottom":"Right")]:0)}function s(){var t=document.body,n=document.documentElement,i=f(10)&&getComputedStyle(n);return{height:rt("Height",t,n,i),width:rt("Width",t,n,i)}}function r(n){return ti({},n,{right:n.left+n.width,bottom:n.top+n.height})}function v(n){var u={},o,h,v;try{f(10)?(u=n.getBoundingClientRect(),o=i(n,"top"),h=i(n,"left"),u.top+=o,u.left+=h,u.bottom+=o,u.right+=h):u=n.getBoundingClientRect()}catch(n){}var e={left:u.left,top:u.top,width:u.right-u.left,height:u.bottom-u.top},y="HTML"===n.nodeName?s():{},p=y.width||n.clientWidth||e.right-e.left,w=y.height||n.clientHeight||e.bottom-e.top,c=n.offsetWidth-p,l=n.offsetHeight-w;return(c||l)&&(v=t(n),c-=a(v,"x"),l-=a(v,"y"),e.width-=c,e.height-=l),r(e)}function h(n,i){var b=2<arguments.length&&void 0!==arguments[2]&&arguments[2],k=f(10),d="HTML"===i.nodeName,s=v(n),o=v(i),y=u(n),h=t(i),p=parseFloat(h.borderTopWidth,10),w=parseFloat(h.borderLeftWidth,10),e,l,a;return b&&"HTML"===i.nodeName&&(o.top=c(o.top,0),o.left=c(o.left,0)),e=r({top:s.top-o.top-p,left:s.left-o.left-w,width:s.width,height:s.height}),(e.marginTop=0,e.marginLeft=0,!k&&d)&&(l=parseFloat(h.marginTop,10),a=parseFloat(h.marginLeft,10),e.top-=p-l,e.bottom-=p-l,e.left-=w-a,e.right-=w-a,e.marginTop=l,e.marginLeft=a),(k&&!b?i.contains(y):i===y&&"BODY"!==y.nodeName)&&(e=ei(e,i)),e}function oi(n){var f=1<arguments.length&&arguments[1]!==void 0&&arguments[1],t=n.ownerDocument.documentElement,u=h(n,t),e=c(t.clientWidth,window.innerWidth||0),o=c(t.clientHeight,window.innerHeight||0),s=f?0:i(t),l=f?0:i(t,"left"),a={top:s-u.top+u.marginTop,left:l-u.left+u.marginLeft,width:e,height:o};return r(a)}function y(n){var i=n.nodeName;return"BODY"===i||"HTML"===i?!1:!("fixed"!==t(n,"position"))||y(e(n))}function ut(n){if(!n||!n.parentElement||f())return document.documentElement;for(var i=n.parentElement;i&&"none"===t(i,"transform");)i=i.parentElement;return i||document.documentElement}function b(n,t,i,r){var a=4<arguments.length&&void 0!==arguments[4]&&arguments[4],f={top:0,left:0},v=a?ut(n):l(n,t),c,o;if("viewport"===r)f=oi(v,a);else if("scrollParent"===r?(c=u(e(t)),"BODY"===c.nodeName&&(c=n.ownerDocument.documentElement)):c="window"===r?n.ownerDocument.documentElement:r,o=h(c,v,a),"HTML"!==c.nodeName||y(v))f=o;else{var p=s(),w=p.height,b=p.width;f.top+=o.top-o.marginTop;f.bottom=w+o.top;f.left+=o.left-o.marginLeft;f.right=b+o.left}return f.left+=i,f.top+=i,f.right-=i,f.bottom-=i,f}function si(n){var t=n.width,i=n.height;return t*i}function ft(n,t,i,r,u){var c=5<arguments.length&&arguments[5]!==void 0?arguments[5]:0;if(-1===n.indexOf("auto"))return n;var f=b(i,r,c,u),e={top:{width:f.width,height:t.top-f.top},right:{width:f.right-t.right,height:f.height},bottom:{width:f.width,height:f.bottom-t.bottom},left:{width:t.left-f.left,height:f.height}},o=Object.keys(e).map(function(n){return ti({key:n},e[n],{area:si(e[n])})}).sort(function(n,t){return t.area-n.area}),s=o.filter(function(n){var t=n.width,r=n.height;return t>=i.clientWidth&&r>=i.clientHeight}),l=0<s.length?s[0].key:o[0].key,h=n.split("-")[1];return l+(h?"-"+h:"")}function et(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function k(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=et(n,function(n){return n[t]===i});return n.indexOf(r)}function ot(n){var t;if("HTML"===n.nodeName){var i=s(),u=i.width,f=i.height;t={width:u,height:f,left:0,top:0}}else t={width:n.offsetWidth,height:n.offsetHeight,left:n.offsetLeft,top:n.offsetTop};return r(t)}function d(n){var t=getComputedStyle(n),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function hi(n){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(n){return t[n]})}function st(n,t,i){i=i.split("-")[0];var r=d(n),e={width:r.width,height:r.height},u=-1!==["right","left"].indexOf(i),o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[hi(f)],e}function ht(n,t,i){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null,u=r?ut(t):l(t,i);return h(i,u,r)}function ct(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length;t++)if(i=u[t],r=i?""+i+f:n,"undefined"!=typeof document.body.style[r])return r;return null}function g(n){return n&&"[object Function]"==={}.toString.call(n)}function lt(n,t){return n.some(function(n){var i=n.name,r=n.enabled;return r&&i===t})}function at(n,t,i){var u=et(n,function(n){var i=n.name;return i===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r;return f||(r="`"+t+"`",console.warn("`"+i+"` modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function nt(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function vt(n){var t=n.ownerDocument;return t?t.defaultView:window}function yt(n,t){return vt(n).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function pt(n,t,i){var u=void 0===i?n:n.slice(0,k(n,"name",i));return u.forEach(function(n){n["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=n["function"]||n.fn;n.enabled&&g(i)&&(t.offsets.popper=r(t.offsets.popper),t.offsets.reference=r(t.offsets.reference),t=i(t,n))}),t}function wt(n,t){Object.keys(t).forEach(function(i){var r=t[i];!1===r?n.removeAttribute(i):n.setAttribute(i,t[i])})}function bt(n,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&nt(t[i])&&(r="px");n.style[i]=t[i]+r})}function kt(n,t,i,r){var e="BODY"===n.nodeName,f=e?n.ownerDocument.defaultView:n;f.addEventListener(t,i,{passive:!0});e||kt(u(f.parentNode),t,i,r);r.push(f)}function dt(n,t,i,r){i.updateBound=r;vt(n).addEventListener("resize",i.updateBound,{passive:!0});var f=u(n);return kt(f,"scroll",i.updateBound,i.scrollParents),i.scrollElement=f,i.eventsEnabled=!0,i}for(var ui,it,c=Math.max,p="undefined"!=typeof window&&"undefined"!=typeof document,gt=p&&!!(window.MSInputMethodContext&&document.documentMode),ni=p&&/MSIE 10/.test(navigator.userAgent),ti=Object.assign||function(n){for(var t,r,i=1;i<arguments.length;i++)for(r in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},ii=["Edge","Trident","Firefox"],ri=0,tt=0;tt<ii.length;tt+=1)if(p&&0<=navigator.userAgent.indexOf(ii[tt])){ri=1;break}ui=p&&window.Promise;it=ui?function(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}:function(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},ri))}};n.computeAutoPlacement=ft;n.debounce=it;n.findIndex=k;n.getBordersSize=a;n.getBoundaries=b;n.getBoundingClientRect=v;n.getClientRect=r;n.getOffsetParent=o;n.getOffsetRect=ot;n.getOffsetRectRelativeToArbitraryNode=h;n.getOuterSizes=d;n.getParentNode=e;n.getPopperOffsets=st;n.getReferenceOffsets=ht;n.getScroll=i;n.getScrollParent=u;n.getStyleComputedProperty=t;n.getSupportedPropertyName=ct;n.getWindowSizes=s;n.isFixed=y;n.isFunction=g;n.isModifierEnabled=lt;n.isModifierRequired=at;n.isNumeric=nt;n.removeEventListeners=yt;n.runModifiers=pt;n.setAttributes=wt;n.setStyles=bt;n.setupEventListeners=dt;n["default"]={computeAutoPlacement:ft,debounce:it,findIndex:k,getBordersSize:a,getBoundaries:b,getBoundingClientRect:v,getClientRect:r,getOffsetParent:o,getOffsetRect:ot,getOffsetRectRelativeToArbitraryNode:h,getOuterSizes:d,getParentNode:e,getPopperOffsets:st,getReferenceOffsets:ht,getScroll:i,getScrollParent:u,getStyleComputedProperty:t,getSupportedPropertyName:ct,getWindowSizes:s,isFixed:y,isFunction:g,isModifierEnabled:lt,isModifierRequired:at,isNumeric:nt,removeEventListeners:yt,runModifiers:pt,setAttributes:wt,setStyles:bt,setupEventListeners:dt};Object.defineProperty(n,"__esModule",{value:!0})});!function(n,t){void 0===n&&void 0!==window&&(n=window);"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(n)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(n.jQuery)}(this,function(n){!function(n){"use strict";function gt(t,i){var r=t.nodeName.toLowerCase();if(-1!==n.inArray(r,i))return-1===n.inArray(r,bt)||Boolean(t.nodeValue.match(kt)||t.nodeValue.match(dt));for(var f=n(i).filter(function(n,t){return t instanceof RegExp}),u=0,e=f.length;u<e;u++)if(r.match(f[u]))return!0;return!1}function it(n,t,i){var r,e,s;if(i&&"function"==typeof i)return i(n);for(var l=Object.keys(t),u=0,a=n.length;u<a;u++)for(var h=n[u].querySelectorAll("*"),f=0,v=h.length;f<v;f++)if(r=h[f],e=r.nodeName.toLowerCase(),-1!==l.indexOf(e))for(var c=[].slice.call(r.attributes),y=[].concat(t["*"]||[],t[e]||[]),o=0,p=c.length;o<p;o++)s=c[o],gt(s,y)||r.removeAttribute(s.nodeName);else r.parentNode.removeChild(r)}function w(n){var i,r=[],u=n.selectedOptions,t,f;if(n.multiple)for(t=0,f=u.length;t<f;t++)i=u[t],r.push(i.value||i.text);else r=n.value;return r}function et(n,t,i,r){for(var e,u,o=["content","subtext","tokens"],s=!1,f=0;f<o.length;f++)if(e=o[f],u=n[e],u&&(u=u.toString(),"content"===e&&(u=u.replace(/<[^>]+>/g,"")),r&&(u=ot(u)),u=u.toUpperCase(),s="contains"===i?0<=u.indexOf(t):u.startsWith(t)))break;return s}function e(n){return parseInt(n,10)||0}function ri(n){return ni[n]}function ot(n){return(n=n.toString())&&n.replace(ti,ri).replace(ii,"")}function yt(i){var e,o=arguments,r=i,s;if([].shift.apply(o),!f.success){try{f.full=(n.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(i){f.full=u.BootstrapVersion.split(" ")[0].split(".")}f.major=f.full[0];f.success=!0;"4"===f.major&&(t.DIVIDER="dropdown-divider",t.SHOW="show",t.BUTTONCLASS="btn-light",u.DEFAULTS.style=t.BUTTONCLASS="btn-light",t.POPOVERHEADER="popover-header")}return s=this.each(function(){var s=n(this),t,i,h,f,c,l;if(s.is("select")){if(t=s.data("selectpicker"),i="object"==typeof r&&r,t){if(i)for(h in i)i.hasOwnProperty(h)&&(t.options[h]=i[h])}else{f=s.data();for(c in f)f.hasOwnProperty(c)&&-1!==n.inArray(c,wt)&&delete f[c];l=n.extend({},u.DEFAULTS,n.fn.selectpicker.defaults||{},f,i);l.template=n.extend({},u.DEFAULTS.template,n.fn.selectpicker.defaults?n.fn.selectpicker.defaults.template:{},f.template,i.template);s.data("selectpicker",t=new u(this,l))}"string"==typeof r&&(e=t[r]instanceof Function?t[r].apply(t,o):t.options[r])}}),void 0!==e?e:s}var wt=["sanitize","whiteList","sanitizeFn"],bt=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],tt={"*":["class","dir","id","lang","role","tabindex","style",/^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:[]},kt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,dt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i,y,rt,p,l,ut,o,c,ft,r,pt;"classList"in document.createElement("_")||function(t){var r;if("Element"in t){var u="classList",e="prototype",f=t.Element[e],i=Object,o=function(){var t=n(this);return{add:function(n){return t.addClass(n)},remove:function(n){return t.removeClass(n)},toggle:function(n,i){return t.toggleClass(n,i)},contains:function(n){return t.hasClass(n)}}};if(i.defineProperty){r={get:o,enumerable:!0,configurable:!0};try{i.defineProperty(f,u,r)}catch(t){void 0!==t.number&&-2146823252!==t.number||(r.enumerable=!1,i.defineProperty(f,u,r))}}else i[e].__defineGetter__&&f.__defineGetter__(u,o)}}(window);l=document.createElement("_");(l.classList.toggle("c3",!1),l.classList.contains("c3"))&&(ut=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(n,t){return 1 in arguments&&!this.contains(n)==!t?t:ut.call(this,n)});l=null;String.prototype.startsWith||(y=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(n){}return i}(),rt={}.toString,p=function(n){var r,u,i;if(null==this)throw new TypeError;if(r=String(this),n&&"[object RegExp]"==rt.call(n))throw new TypeError;var f=r.length,e=String(n),o=e.length,s=1<arguments.length?arguments[1]:void 0,t=s?Number(s):0;if(t!=t&&(t=0),u=Math.min(Math.max(t,0),f),f<o+u)return!1;for(i=-1;++i<o;)if(r.charCodeAt(u+i)!=e.charCodeAt(i))return!1;return!0},y?y(String.prototype,"startsWith",{value:p,configurable:!0,writable:!0}):String.prototype.startsWith=p);Object.keys||(Object.keys=function(n,t,i){for(t in i=[],n)i.hasOwnProperty.call(n,t)&&i.push(t);return i});HTMLSelectElement.prototype.hasOwnProperty("selectedOptions")||Object.defineProperty(HTMLSelectElement.prototype,"selectedOptions",{get:function(){return this.querySelectorAll(":checked")}});o={useDefault:!1,_set:n.valHooks.select.set};n.valHooks.select.set=function(t,i){return i&&!o.useDefault&&n(t).data("selected",!0),o._set.apply(this,arguments)};c=null;ft=function(){try{return new Event("change"),!0}catch(n){return!1}}();n.fn.triggerNative=function(n){var t,i=this[0];i.dispatchEvent?(ft?t=new Event(n,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(n,!0,!1),i.dispatchEvent(t)):i.fireEvent?((t=document.createEventObject()).eventType=n,i.fireEvent("on"+n,t)):this.trigger(n)};var ni={"À":"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","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"},ti=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ii=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");var b,st,k,ht,ct,a=(b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},st=function(n){return b[n]},k="(?:"+Object.keys(b).join("|")+")",ht=RegExp(k),ct=RegExp(k,"g"),function(n){return n=null==n?"":""+n,ht.test(n)?n.replace(ct,st):n}),ui={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"},lt=27,fi=13,v=32,d=9,g=38,nt=40,f={success:!1,major:"3"};try{f.full=(n.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".");f.major=f.full[0];f.success=!0}catch(tt){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.",tt)}var ei=0,i=".bs.select",t={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"},at={MENU:"."+t.MENU};"4"===f.major&&(t.DIVIDER="dropdown-divider",t.SHOW="show",t.BUTTONCLASS="btn-light",t.POPOVERHEADER="popover-header");r={span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode(" "),fragment:document.createDocumentFragment()};r.a.setAttribute("role","option");r.subtext.className="text-muted";r.text=r.span.cloneNode(!1);r.text.className="text";var oi=new RegExp(g+"|"+nt),si=new RegExp("^"+d+"$|"+lt),s=function(n,t,i){var u=r.li.cloneNode(!1);return n&&(1===n.nodeType||11===n.nodeType?u.appendChild(n):u.innerHTML=n),void 0!==t&&""!==t&&(u.className=t),null!=i&&u.classList.add("optgroup-"+i),u},vt=function(n,t,i){var u=r.a.cloneNode(!0);return n&&(11===n.nodeType?u.appendChild(n):u.insertAdjacentHTML("beforeend",n)),void 0!==t&&""!==t&&(u.className=t),"4"===f.major&&u.classList.add("dropdown-item"),i&&u.setAttribute("style",i),u},h=function(n,t){var u,f,i=r.text.cloneNode(!1),e;if(n.optionContent?i.innerHTML=n.optionContent:((i.textContent=n.text,n.optionIcon)&&(e=r.whitespace.cloneNode(!1),(f=(!0===t?r.i:r.span).cloneNode(!1)).className=n.iconBase+" "+n.optionIcon,r.fragment.appendChild(f),r.fragment.appendChild(e)),n.optionSubtext&&((u=r.subtext.cloneNode(!1)).textContent=n.optionSubtext,i.appendChild(u))),!0===t)for(;0<i.childNodes.length;)r.fragment.appendChild(i.childNodes[0]);else r.fragment.appendChild(i);return r.fragment},hi=function(n){var i,u,t=r.text.cloneNode(!1),f;return(t.innerHTML=n.labelEscaped,n.labelIcon)&&(f=r.whitespace.cloneNode(!1),(u=r.span.cloneNode(!1)).className=n.iconBase+" "+n.labelIcon,r.fragment.appendChild(u),r.fragment.appendChild(f)),n.labelSubtext&&((i=r.subtext.cloneNode(!1)).textContent=n.labelSubtext,t.appendChild(i)),r.fragment.appendChild(t),r.fragment},u=function(t,i){var f=this,r;o.useDefault||(n.valHooks.select.set=o._set,o.useDefault=!0);this.$element=n(t);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(){f.selectpicker.keydown.keyHistory=""},800)}}}};null===this.options.title&&(this.options.title=this.$element.attr("title"));r=this.options.windowPadding;"number"==typeof r&&(this.options.windowPadding=[r,r,r,r]);this.val=u.prototype.val;this.render=u.prototype.render;this.refresh=u.prototype.refresh;this.setStyle=u.prototype.setStyle;this.selectAll=u.prototype.selectAll;this.deselectAll=u.prototype.deselectAll;this.destroy=u.prototype.destroy;this.remove=u.prototype.remove;this.show=u.prototype.show;this.hide=u.prototype.hide;this.init()};u.VERSION="1.13.6";u.BootstrapVersion=f.major;u.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(n){return 1==n?"{0} item selected":"{0} items selected"},maxOptionsText:function(n,t){return[1==n?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==t?"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:t.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,sanitize:!0,sanitizeFn:null,whiteList:tt};"4"===f.major&&(u.DEFAULTS.style="btn-light",u.DEFAULTS.iconBase="",u.DEFAULTS.tickIcon="bs-ok-default");u.prototype={constructor:u,init:function(){var n=this,r=this.$element.attr("id");this.selectId=ei++;this.$element[0].classList.add("bs-select-hidden");this.multiple=this.$element.prop("multiple");this.autofocus=this.$element.prop("autofocus");this.$newElement=this.createDropdown();this.$element.after(this.$newElement).prependTo(this.$newElement);this.$button=this.$newElement.children("button");this.$menu=this.$newElement.children(at.MENU);this.$menuInner=this.$menu.children(".inner");this.$searchbox=this.$menu.find("input");this.$element[0].classList.remove("bs-select-hidden");!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(t.MENURIGHT);void 0!==r&&this.$button.attr("data-id",r);this.checkDisabled();this.clickListener();this.options.liveSearch&&this.liveSearchListener();this.render();this.setStyle();this.setWidth();this.options.container?this.selectPosition():this.$element.on("hide"+i,function(){if(n.isVirtual()){var t=n.$menuInner[0],i=t.firstChild.cloneNode(!1);t.replaceChild(i,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){n.$menuInner.attr("aria-expanded",!1);n.$element.trigger("hide"+i,t)},"hidden.bs.dropdown":function(t){n.$element.trigger("hidden"+i,t)},"show.bs.dropdown":function(t){n.$menuInner.attr("aria-expanded",!0);n.$element.trigger("show"+i,t)},"shown.bs.dropdown":function(t){n.$element.trigger("shown"+i,t)}});n.$element[0].hasAttribute("required")&&this.$element.on("invalid",function(){n.$button[0].classList.add("bs-invalid");n.$element.on("shown"+i+".invalid",function(){n.$element.val(n.$element.val()).off("shown"+i+".invalid")}).on("rendered"+i,function(){this.validity.valid&&n.$button[0].classList.remove("bs-invalid");n.$element.off("rendered"+i)});n.$button.on("blur"+i,function(){n.$element.trigger("focus").trigger("blur");n.$button.off("blur"+i)})});setTimeout(function(){n.createLi();n.$element.trigger("loaded"+i)})},createDropdown:function(){var i,s=this.multiple||this.options.showTick?" show-tick":"",h=this.autofocus?" autofocus":"",r="",u="",e="",o="";return this.options.header&&(r='<div class="'+t.POPOVERHEADER+'"><button type="button" class="close" aria-hidden="true">&times;<\/button>'+this.options.header+"<\/div>"),this.options.liveSearch&&(u='<div class="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+a(this.options.liveSearchPlaceholder)+'"')+' role="textbox" aria-label="Search"><\/div>'),this.multiple&&this.options.actionsBox&&(e='<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn '+t.BUTTONCLASS+'">'+this.options.selectAllText+'<\/button><button type="button" class="actions-btn bs-deselect-all btn '+t.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 '+t.BUTTONCLASS+'">'+this.options.doneButtonText+"<\/button><\/div><\/div>"),i='<div class="dropdown bootstrap-select'+s+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" '+("static"===this.options.display?'data-display="static"':"")+'data-toggle="dropdown"'+h+' role="button"><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"><\/div><\/div> <\/div>'+("4"===f.major?"":'<span class="bs-caret">'+this.options.template.caret+"<\/span>")+'<\/button><div class="'+t.MENU+" "+("4"===f.major?"":t.SHOW)+'" role="combobox">'+r+u+e+'<div class="inner '+t.SHOW+'" role="listbox" aria-expanded="false" tabindex="-1"><ul class="'+t.MENU+" inner "+("4"===f.major?t.SHOW:"")+'"><\/ul><\/div>'+o+"<\/div><\/div>",n(i)},setPositionData:function(){var t,n,i;for(this.selectpicker.view.canHighlight=[],t=0;t<this.selectpicker.current.data.length;t++)n=this.selectpicker.current.data[t],i=!0,"divider"===n.type?(i=!1,n.height=this.sizeInfo.dividerHeight):"optgroup-label"===n.type?(i=!1,n.height=this.sizeInfo.dropdownHeaderHeight):n.height=this.sizeInfo.liHeight,n.disabled&&(i=!1),this.selectpicker.view.canHighlight.push(i),n.position=(0===t?0:this.selectpicker.current.data[t-1].position)+n.height},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.elements.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(r,u){function h(n,t){var y,p,ut,ft,u,k,et,ot,d,g,h=f.selectpicker.current.elements.length,nt=[],st=!0,l=f.isVirtual(),i,w,vt,yt,b,rt,a,v;for(f.selectpicker.view.scrollTop=n,!0===l&&f.sizeInfo.hasScrollBar&&f.$menu[0].offsetWidth>f.sizeInfo.totalMenuWidth&&(f.sizeInfo.menuWidth=f.$menu[0].offsetWidth,f.sizeInfo.totalMenuWidth=f.sizeInfo.menuWidth+f.sizeInfo.scrollBarWidth,f.$menu.css("min-width",f.sizeInfo.menuWidth)),y=Math.ceil(f.sizeInfo.menuInnerHeight/f.sizeInfo.liHeight*1.5),p=Math.round(h/y)||1,i=0;i<p;i++){if(w=(i+1)*y,i===p-1&&(w=h),nt[i]=[i*y+(i?1:0),w],!h)break;void 0===u&&n<=f.selectpicker.current.data[w-1].position-f.sizeInfo.menuInnerHeight&&(u=i)}if(void 0===u&&(u=0),k=[f.selectpicker.view.position0,f.selectpicker.view.position1],ut=Math.max(0,u-1),ft=Math.min(p-1,u+1),f.selectpicker.view.position0=Math.max(0,nt[ut][0])||0,f.selectpicker.view.position1=Math.min(h,nt[ft][1])||0,et=k[0]!==f.selectpicker.view.position0||k[1]!==f.selectpicker.view.position1,void 0!==f.activeIndex&&(s=f.selectpicker.current.elements[f.selectpicker.current.map.newIndex[f.prevActiveIndex]],e=f.selectpicker.current.elements[f.selectpicker.current.map.newIndex[f.activeIndex]],o=f.selectpicker.current.elements[f.selectpicker.current.map.newIndex[f.selectedIndex]],t&&(f.activeIndex!==f.selectedIndex&&e&&e.length&&(e.classList.remove("active"),e.firstChild&&e.firstChild.classList.remove("active")),f.activeIndex=void 0),f.activeIndex&&f.activeIndex!==f.selectedIndex&&o&&o.length&&(o.classList.remove("active"),o.firstChild&&o.firstChild.classList.remove("active"))),void 0!==f.prevActiveIndex&&f.prevActiveIndex!==f.activeIndex&&f.prevActiveIndex!==f.selectedIndex&&s&&s.length&&(s.classList.remove("active"),s.firstChild&&s.firstChild.classList.remove("active")),(t||et)&&(ot=f.selectpicker.view.visibleElements?f.selectpicker.view.visibleElements.slice():[],f.selectpicker.view.visibleElements=f.selectpicker.current.elements.slice(f.selectpicker.view.position0,f.selectpicker.view.position1),f.setOptionStatus(),(r||!1===l&&t)&&(d=ot,g=f.selectpicker.view.visibleElements,st=!(d.length===g.length&&d.every(function(n,t){return n===g[t]}))),(t||!0===l)&&st)){var ht,ct,c=f.$menuInner[0],lt=document.createDocumentFragment(),pt=c.firstChild.cloneNode(!1),at=!0===l?f.selectpicker.view.visibleElements:f.selectpicker.current.elements,tt=[];for(c.replaceChild(pt,c.firstChild),i=0,vt=at.length;i<vt;i++)rt=at[i],f.options.sanitize&&(yt=rt.lastChild)&&(b=f.selectpicker.current.data[i+f.selectpicker.view.position0].data)&&b.content&&!b.sanitized&&(tt.push(yt),b.sanitized=!0),lt.appendChild(rt);f.options.sanitize&&tt.length&&it(tt,f.options.whiteList,f.options.sanitizeFn);!0===l&&(ht=0===f.selectpicker.view.position0?0:f.selectpicker.current.data[f.selectpicker.view.position0-1].position,ct=f.selectpicker.view.position1>h-1?0:f.selectpicker.current.data[h-1].position-f.selectpicker.current.data[f.selectpicker.view.position1-1].position,c.firstChild.style.marginTop=ht+"px",c.firstChild.style.marginBottom=ct+"px");c.firstChild.appendChild(lt)}(f.prevActiveIndex=f.activeIndex,f.options.liveSearch)?r&&t&&(v=0,f.selectpicker.view.canHighlight[v]||(v=1+f.selectpicker.view.canHighlight.slice(1).indexOf(!0)),a=f.selectpicker.view.visibleElements[v],f.selectpicker.view.currentActive&&(f.selectpicker.view.currentActive.classList.remove("active"),f.selectpicker.view.currentActive.firstChild&&f.selectpicker.view.currentActive.firstChild.classList.remove("active")),a&&(a.classList.add("active"),a.firstChild&&a.firstChild.classList.add("active")),f.activeIndex=f.selectpicker.current.map.originalIndex[v]):f.$menuInner.trigger("focus")}var f,o,s,e;u=u||0;f=this;this.selectpicker.current=r?this.selectpicker.search:this.selectpicker.main;e=[];this.setPositionData();h(u,!0);this.$menuInner.off("scroll.createView").on("scroll.createView",function(n,t){f.noScroll||h(this.scrollTop,t);f.noScroll=!1});n(window).off("resize"+i+"."+this.selectId+".createView").on("resize"+i+"."+this.selectId+".createView",function(){f.$newElement.hasClass(t.SHOW)&&h(f.$menuInner[0].scrollTop)})},setPlaceholder:function(){var i=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option"));i=!0;var t=this.$element[0],r=!1,u=!this.selectpicker.view.titleOption.parentNode;u&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",r=void 0===n(t.options[t.selectedIndex]).attr("selected")&&void 0===this.$element.data("selected"));(u||0!==this.selectpicker.view.titleOption.index)&&t.insertBefore(this.selectpicker.view.titleOption,t.firstChild);r&&(t.selectedIndex=0)}return i},createLi:function(){var ct,lt,v=this,g=v.options.iconBase,at=':not([hidden]):not([data-hidden="true"])',f=[],yt=0,u=[],o=0,et=0,c=-1,n,st,ht,p,w;this.options.hideDisabled&&(at+=":not(:disabled)");(v.options.showTick||v.multiple)&&((ct=r.span.cloneNode(!1)).className=g+" "+v.options.tickIcon+" check-mark",r.a.appendChild(ct));this.setPlaceholder()&&c--;for(var nt=this.$element[0].options,e=0,ii=nt.length;e<ii;e++)if(n=nt[e],c++,!n.classList.contains("bs-title-option")){var y,tt,pt,b,i={content:n.getAttribute("data-content"),tokens:n.getAttribute("data-tokens"),subtext:n.getAttribute("data-subtext"),icon:n.getAttribute("data-icon"),hidden:"true"===n.getAttribute("data-hidden"),divider:"true"===n.getAttribute("data-divider")},wt=n.className||"",bt=n.style.cssText,kt=bt?a(bt):"",it=i.content,rt=n.textContent,l=n.parentNode,k=n.nextElementSibling,ut=n.previousElementSibling,ot="OPTGROUP"===l.tagName,dt=ot&&l.disabled,gt=n.disabled||dt,ft=ut&&"OPTGROUP"===ut.tagName,d={hidden:"true"===l.getAttribute("data-hidden")};if(!0===i.hidden||n.hidden||ot&&(!0===d.hidden||l.hidden)||v.options.hideDisabled&&(gt||dt))y=n.prevHiddenIndex,k&&(k.prevHiddenIndex=void 0!==y?y:e),c--;else{if(k&&void 0!==k.prevHiddenIndex&&(k.prevHiddenIndex=void 0),ot&&!0!==i.divider){if(st=" "+l.className||"",ht=n.previousElementSibling,void 0!==(y=n.prevHiddenIndex)&&(ht=nt[y].previousElementSibling),!ht){o+=1;d.subtext=l.getAttribute("data-subtext");d.icon=l.getAttribute("data-icon");var ri=l.label,ni=a(ri),ti=d.subtext,ui=d.icon;0!==e&&0<f.length&&(c++,f.push(s(!1,t.DIVIDER,o+"div")),u.push({type:"divider",optID:o}));c++;pt=hi({labelEscaped:ni,labelSubtext:ti,labelIcon:ui,iconBase:g});f.push(s(pt,"dropdown-header"+st,o));u.push({content:ni,subtext:ti,type:"optgroup-label",optID:o});et=c-1}tt=h({text:rt,optionContent:it,optionSubtext:i.subtext,optionIcon:i.icon,iconBase:g});f.push(s(vt(tt,"opt "+wt+st,kt),"",o));u.push({content:it||rt,subtext:i.subtext,tokens:i.tokens,type:"option",optID:o,headerIndex:et,lastIndex:et+l.querySelectorAll("option"+at).length,originalIndex:e,data:i})}else!0===i.divider?(f.push(s(!1,t.DIVIDER)),u.push({type:"divider",originalIndex:e,data:i})):(v.options.hideDisabled&&(ft?ut.querySelectorAll("option:disabled").length===ut.children.length&&(ft=!1):void 0!==(y=n.prevHiddenIndex)&&(b=nt[y].previousElementSibling)&&"OPTGROUP"===b.tagName&&!b.disabled&&b.querySelectorAll("option:disabled").length<b.children.length&&(ft=!0)),ft&&u.length&&"divider"!==u[u.length-1].type&&(c++,f.push(s(!1,t.DIVIDER,o+"div")),u.push({type:"divider",optID:o})),tt=h({text:rt,optionContent:it,optionSubtext:i.subtext,optionIcon:i.icon,iconBase:g}),f.push(s(vt(tt,wt,kt))),u.push({content:it||rt,subtext:i.subtext,tokens:i.tokens,type:"option",originalIndex:e,data:i}));v.selectpicker.main.map.newIndex[e]=c;v.selectpicker.main.map.originalIndex[c]=e;p=u[u.length-1];p.disabled=gt;w=0;p.content&&(w+=p.content.length);p.subtext&&(w+=p.subtext.length);i.icon&&(w+=1);yt<w&&(yt=w,lt=f[f.length-1])}}this.selectpicker.main.elements=f;this.selectpicker.main.data=u;this.selectpicker.current=this.selectpicker.main;this.selectpicker.view.widestOption=lt},findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){var e,c,v,b;this.setPlaceholder();var l,a,f=this,y=this.$element[0].selectedOptions,t=y.length,p=this.$button.find(".filter-option-inner-inner")[0],k=document.createTextNode(this.options.multipleSeparator),n=r.fragment.cloneNode(!1),w=!1;if(this.togglePlaceholder(),this.tabIndex(),"static"===this.options.selectedTextFormat)n=h({text:this.options.title},!0);else if((l=this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&1<t)&&(l=1<(a=this.options.selectedTextFormat.split(">")).length&&t>a[1]||1===a.length&&2<=t),!1===l){for(e=0;e<t&&e<50;e++){var o=y[e],u={},s={content:o.getAttribute("data-content"),subtext:o.getAttribute("data-subtext"),icon:o.getAttribute("data-icon")};this.multiple&&0<e&&n.appendChild(k.cloneNode(!1));o.title?u.text=o.title:s.content&&f.options.showContent?(u.optionContent=s.content.toString(),w=!0):(f.options.showIcon&&(u.optionIcon=s.icon,u.iconBase=this.options.iconBase),f.options.showSubtext&&!f.multiple&&s.subtext&&(u.optionSubtext=" "+s.subtext),u.text=o.textContent.trim());n.appendChild(h(u,!0))}49<t&&n.appendChild(document.createTextNode("..."))}else c=':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])',this.options.hideDisabled&&(c+=":not(:disabled)"),v=this.$element[0].querySelectorAll("select > option"+c+", optgroup"+c+" option"+c).length,b="function"==typeof this.options.countSelectedText?this.options.countSelectedText(t,v):this.options.countSelectedText,n=h({text:b.replace("{0}",t.toString()).replace("{1}",v.toString())},!0);null==this.options.title&&(this.options.title=this.$element.attr("title"));n.childNodes.length||(n=h({text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0));this.$button[0].title=n.textContent.replace(/<[^>]*>?/g,"").trim();this.options.sanitize&&w&&it([n],f.options.whiteList,f.options.sanitizeFn);p.innerHTML="";p.appendChild(n);this.$element.trigger("rendered"+i)},setStyle:function(n,t){var i=this.$button[0],r;this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));r=n||this.options.style;"add"==t?i.classList.add(r):"remove"==t?i.classList.remove(r):(i.classList.remove(this.options.style),i.classList.add(r))},liHeight:function(i){var d;if(i||!1!==this.options.size&&!this.sizeInfo){this.sizeInfo||(this.sizeInfo={});var c=document.createElement("div"),u=document.createElement("div"),a=document.createElement("div"),s=document.createElement("ul"),k=document.createElement("li"),l=document.createElement("li"),nt=document.createElement("li"),v=document.createElement("a"),y=document.createElement("span"),p=this.options.header&&0<this.$menu.find("."+t.POPOVERHEADER).length?this.$menu.find("."+t.POPOVERHEADER)[0].cloneNode(!0):null,h=this.options.liveSearch?document.createElement("div"):null,w=this.options.actionsBox&&this.multiple&&0<this.$menu.find(".bs-actionsbox").length?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,b=this.options.doneButton&&this.multiple&&0<this.$menu.find(".bs-donebutton").length?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,tt=this.$element.find("option")[0];(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,y.className="text",v.className="dropdown-item "+(tt?tt.className:""),c.className=this.$menu[0].parentNode.className+" "+t.SHOW,c.style.width=this.sizeInfo.selectWidth+"px","auto"===this.options.width&&(u.style.minWidth=0),u.className=t.MENU+" "+t.SHOW,a.className="inner "+t.SHOW,s.className=t.MENU+" inner "+("4"===f.major?t.SHOW:""),k.className=t.DIVIDER,l.className="dropdown-header",y.appendChild(document.createTextNode("​")),v.appendChild(y),nt.appendChild(v),l.appendChild(y.cloneNode(!0)),this.selectpicker.view.widestOption&&s.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),s.appendChild(nt),s.appendChild(k),s.appendChild(l),p&&u.appendChild(p),h)&&(d=document.createElement("input"),h.className="bs-searchbox",d.className="form-control",h.appendChild(d),u.appendChild(h));w&&u.appendChild(w);a.appendChild(s);u.appendChild(a);b&&u.appendChild(b);c.appendChild(u);document.body.appendChild(c);var it,ut=v.offsetHeight,ft=l?l.offsetHeight:0,et=p?p.offsetHeight:0,ot=h?h.offsetHeight:0,st=w?w.offsetHeight:0,ht=b?b.offsetHeight:0,ct=n(k).outerHeight(!0),r=!!window.getComputedStyle&&window.getComputedStyle(u),rt=u.offsetWidth,o=r?null:n(u),g={vert:e(r?r.paddingTop:o.css("paddingTop"))+e(r?r.paddingBottom:o.css("paddingBottom"))+e(r?r.borderTopWidth:o.css("borderTopWidth"))+e(r?r.borderBottomWidth:o.css("borderBottomWidth")),horiz:e(r?r.paddingLeft:o.css("paddingLeft"))+e(r?r.paddingRight:o.css("paddingRight"))+e(r?r.borderLeftWidth:o.css("borderLeftWidth"))+e(r?r.borderRightWidth:o.css("borderRightWidth"))},lt={vert:g.vert+e(r?r.marginTop:o.css("marginTop"))+e(r?r.marginBottom:o.css("marginBottom"))+2,horiz:g.horiz+e(r?r.marginLeft:o.css("marginLeft"))+e(r?r.marginRight:o.css("marginRight"))+2};a.style.overflowY="scroll";it=u.offsetWidth-rt;document.body.removeChild(c);this.sizeInfo.liHeight=ut;this.sizeInfo.dropdownHeaderHeight=ft;this.sizeInfo.headerHeight=et;this.sizeInfo.searchHeight=ot;this.sizeInfo.actionsHeight=st;this.sizeInfo.doneButtonHeight=ht;this.sizeInfo.dividerHeight=ct;this.sizeInfo.menuPadding=g;this.sizeInfo.menuExtras=lt;this.sizeInfo.menuWidth=rt;this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth;this.sizeInfo.scrollBarWidth=it;this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight;this.setPositionData()}},getSelectPosition:function(){var t,u=n(window),f=this.$newElement.offset(),i=n(this.options.container),r;this.options.container&&i.length&&!i.is("body")?((t=i.offset()).top+=parseInt(i.css("borderTopWidth")),t.left+=parseInt(i.css("borderLeftWidth"))):t={top:0,left:0};r=this.options.windowPadding;this.sizeInfo.selectOffsetTop=f.top-t.top-u.scrollTop();this.sizeInfo.selectOffsetBot=u.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-t.top-r[2];this.sizeInfo.selectOffsetLeft=f.left-t.left-u.scrollLeft();this.sizeInfo.selectOffsetRight=u.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-t.left-r[1];this.sizeInfo.selectOffsetTop-=r[0];this.sizeInfo.selectOffsetLeft-=r[3]},setMenuSize:function(){var u;this.getSelectPosition();var r,n,f,e,o,s,v,w=this.sizeInfo.selectWidth,y=this.sizeInfo.liHeight,h=this.sizeInfo.headerHeight,c=this.sizeInfo.searchHeight,l=this.sizeInfo.actionsHeight,a=this.sizeInfo.doneButtonHeight,b=this.sizeInfo.dividerHeight,i=this.sizeInfo.menuPadding,p=0;if(this.options.dropupAuto&&(v=y*this.selectpicker.current.elements.length+i.vert,this.$newElement.toggleClass(t.DROPUP,this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&v+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot)),"auto"===this.options.size)e=3<this.selectpicker.current.elements.length?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,n=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,f=e+h+c+l+a,s=Math.max(e-i.vert,0),this.$newElement.hasClass(t.DROPUP)&&(n=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),r=(o=n)-h-c-l-a-i.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(u=0;u<this.options.size;u++)"divider"===this.selectpicker.current.data[u].type&&p++;r=(n=y*this.options.size+p*b+i.vert)-i.vert;o=n+h+c+l+a;f=s=""}"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(t.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.sizeInfo.totalMenuWidth-w);this.$menu.css({"max-height":o+"px",overflow:"hidden","min-height":f+"px"});this.$menuInner.css({"max-height":r+"px","overflow-y":"auto","min-height":s+"px"});this.sizeInfo.menuInnerHeight=Math.max(r,1);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 f,r=this,e=n(window),u=0;this.setMenuSize();this.options.liveSearch&&this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",function(){return r.setMenuSize()});"auto"===this.options.size?e.off("resize"+i+"."+this.selectId+".setMenuSize scroll"+i+"."+this.selectId+".setMenuSize").on("resize"+i+"."+this.selectId+".setMenuSize scroll"+i+"."+this.selectId+".setMenuSize",function(){return r.setMenuSize()}):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&e.off("resize"+i+"."+this.selectId+".setMenuSize scroll"+i+"."+this.selectId+".setMenuSize");t?u=this.$menuInner[0].scrollTop:r.multiple||"number"==typeof(f=r.selectpicker.main.map.newIndex[r.$element[0].selectedIndex])&&!1!==r.options.size&&(u=(u=r.sizeInfo.liHeight*f)-r.sizeInfo.menuInnerHeight/2+r.sizeInfo.liHeight/2);r.createView(!1,u)}},setWidth:function(){var n=this;"auto"===this.options.width?requestAnimationFrame(function(){n.$menu.css("min-width","0");n.liHeight();n.setMenuSize();var t=n.$newElement.clone().appendTo("body"),i=t.css("width","auto").children("button").outerWidth();t.remove();n.sizeInfo.selectWidth=Math.max(n.sizeInfo.totalMenuWidth,i);n.$newElement.css("width",n.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[0].classList.remove("fit-width")},selectPosition:function(){this.$bsContainer=n('<div class="bs-container" />');var o,e,s,r=this,u=n(this.options.container),h=function(i){var h={},c=r.options.display||!!n.fn.dropdown.Constructor.Default&&n.fn.dropdown.Constructor.Default.display;r.$bsContainer.addClass(i.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(t.DROPUP,i.hasClass(t.DROPUP));o=i.offset();u.is("body")?e={top:0,left:0}:((e=u.offset()).top+=parseInt(u.css("borderTopWidth"))-u.scrollTop(),e.left+=parseInt(u.css("borderLeftWidth"))-u.scrollLeft());s=i.hasClass(t.DROPUP)?0:i[0].offsetHeight;(f.major<4||"static"===c)&&(h.top=o.top-e.top+s,h.left=o.left-e.left);h.width=i[0].offsetWidth;r.$bsContainer.css(h)};this.$button.on("click.bs.dropdown.data-api",function(){r.isDisabled()||(h(r.$newElement),r.$bsContainer.appendTo(r.options.container).toggleClass(t.SHOW,!r.$button.hasClass(t.SHOW)).append(r.$menu))});n(window).off("resize"+i+"."+this.selectId+" scroll"+i+"."+this.selectId).on("resize"+i+"."+this.selectId+" scroll"+i+"."+this.selectId,function(){r.$newElement.hasClass(t.SHOW)&&h(r.$newElement)});this.$element.on("hide"+i,function(){r.$menu.data("height",r.$menu.height());r.$bsContainer.detach()})},setOptionStatus:function(){var n=this,e=this.$element[0].options,r,i,t,u,f;if(n.noScroll=!1,n.selectpicker.view.visibleElements&&n.selectpicker.view.visibleElements.length)for(r=0;r<n.selectpicker.view.visibleElements.length;r++)i=n.selectpicker.current.map.originalIndex[r+n.selectpicker.view.position0],t=e[i],t&&(u=this.selectpicker.main.map.newIndex[i],f=this.selectpicker.main.elements[u],n.setDisabled(i,t.disabled||"OPTGROUP"===t.parentNode.tagName&&t.parentNode.disabled,u,f),n.setSelected(i,t.selected,u,f))},setSelected:function(n,t,i,r){var o,e,u,s=void 0!==this.activeIndex,f=this.activeIndex===n||t&&!this.multiple&&!s;i||(i=this.selectpicker.main.map.newIndex[n]);r||(r=this.selectpicker.main.elements[i]);u=r.firstChild;t&&(this.selectedIndex=n);r.classList.toggle("selected",t);r.classList.toggle("active",f);f&&(this.selectpicker.view.currentActive=r,this.activeIndex=n);u&&(u.classList.toggle("selected",t),u.classList.toggle("active",f),u.setAttribute("aria-selected",t));f||!s&&t&&void 0!==this.prevActiveIndex&&(o=this.selectpicker.main.map.newIndex[this.prevActiveIndex],(e=this.selectpicker.main.elements[o]).classList.remove("active"),e.firstChild&&e.firstChild.classList.remove("active"))},setDisabled:function(n,i,r,u){var e;r||(r=this.selectpicker.main.map.newIndex[n]);u||(u=this.selectpicker.main.elements[r]);e=u.firstChild;u.classList.toggle(t.DISABLED,i);e&&("4"===f.major&&e.classList.toggle(t.DISABLED,i),e.setAttribute("aria-disabled",i),i?e.setAttribute("tabindex",-1):e.setAttribute("tabindex",0))},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var n=this;this.isDisabled()?(this.$newElement[0].classList.add(t.DISABLED),this.$button.addClass(t.DISABLED).attr("tabindex",-1).attr("aria-disabled",!0)):(this.$button[0].classList.contains(t.DISABLED)&&(this.$newElement[0].classList.remove(t.DISABLED),this.$button.removeClass(t.DISABLED).attr("aria-disabled",!1)),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex"));this.$button.on("click",function(){return!n.isDisabled()})},togglePlaceholder:function(){var t=this.$element[0],i=t.selectedIndex,n=-1===i;n||t.options[i].value||(n=!0);this.$button.toggleClass("bs-placeholder",n)},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(){function e(){r.options.liveSearch?r.$searchbox.trigger("focus"):r.$menuInner.trigger("focus")}function o(){r.dropdown&&r.dropdown._popper&&r.dropdown._popper.state.isCreated?e():requestAnimationFrame(o)}var r=this,u=n(document);u.data("spaceSelect",!1);this.$button.on("keyup",function(n){/(32)/.test(n.keyCode.toString(10))&&u.data("spaceSelect")&&(n.preventDefault(),u.data("spaceSelect",!1))});this.$newElement.on("show.bs.dropdown",function(){3<f.major&&!r.dropdown&&(r.dropdown=r.$button.data("bs.dropdown"),r.dropdown._menu=r.$menu[0])});this.$button.on("click.bs.dropdown.data-api",function(){r.$newElement.hasClass(t.SHOW)||r.setSize()});this.$element.on("shown"+i,function(){r.$menuInner[0].scrollTop!==r.selectpicker.view.scrollTop&&(r.$menuInner[0].scrollTop=r.selectpicker.view.scrollTop);3<f.major?requestAnimationFrame(o):e()});this.$menuInner.on("click","li a",function(u,f){var b=n(this),ot=r.isVirtual()?r.selectpicker.view.position0:0,s=r.selectpicker.current.map.originalIndex[b.parent().index()+ot],rt=w(r.$element[0]),st=r.$element.prop("selectedIndex"),k=!0,d,g,l,et;if(r.multiple&&1!==r.options.maxOptions&&u.stopPropagation(),u.preventDefault(),!r.isDisabled()&&!b.parent().hasClass(t.DISABLED)){var a=r.$element.find("option"),h=a.eq(s),ut=h.prop("selected"),y=h.parent("optgroup"),ft=y.find("option"),e=r.options.maxOptions,o=y.data("maxOptions")||!1;if(s===r.activeIndex&&(f=!0),f||(r.prevActiveIndex=r.activeIndex,r.activeIndex=void 0),r.multiple){if((h.prop("selected",!ut),r.setSelected(s,!ut),b.trigger("blur"),!1!==e||!1!==o)&&(d=e<a.filter(":selected").length,g=o<y.find("option:selected").length,e&&d||o&&g))if(e&&1==e){for(a.prop("selected",!1),h.prop("selected",!0),l=0;l<a.length;l++)r.setSelected(l,!1);r.setSelected(s,!0)}else if(o&&1==o){for(y.find("option:selected").prop("selected",!1),h.prop("selected",!0),l=0;l<ft.length;l++)et=ft[l],r.setSelected(a.index(et),!1);r.setSelected(s,!0)}else{var nt="string"==typeof r.options.maxOptionsText?[r.options.maxOptionsText,r.options.maxOptionsText]:r.options.maxOptionsText,v="function"==typeof nt?nt(e,o):nt,tt=v[0].replace("{n}",e),it=v[1].replace("{n}",o),p=n('<div class="notify"><\/div>');v[2]&&(tt=tt.replace("{var}",v[2][1<e?0:1]),it=it.replace("{var}",v[2][1<o?0:1]));h.prop("selected",!1);r.$menu.append(p);e&&d&&(p.append(n("<div>"+tt+"<\/div>")),k=!1,r.$element.trigger("maxReached"+i));o&&g&&(p.append(n("<div>"+it+"<\/div>")),k=!1,r.$element.trigger("maxReachedGrp"+i));setTimeout(function(){r.setSelected(s,!1)},10);p.delay(750).fadeOut(300,function(){n(this).remove()})}}else a.prop("selected",!1),h.prop("selected",!0),r.setSelected(s,!0);!r.multiple||r.multiple&&1===r.options.maxOptions?r.$button.trigger("focus"):r.options.liveSearch&&r.$searchbox.trigger("focus");k&&(rt!=w(r.$element[0])&&r.multiple||st!=r.$element.prop("selectedIndex")&&!r.multiple)&&(c=[s,h.prop("selected"),rt],r.$element.triggerNative("change"))}});this.$menu.on("click","li."+t.DISABLED+" a, ."+t.POPOVERHEADER+", ."+t.POPOVERHEADER+" :not(.close)",function(t){t.currentTarget==this&&(t.preventDefault(),t.stopPropagation(),r.options.liveSearch&&!n(t.target).hasClass("close")?r.$searchbox.trigger("focus"):r.$button.trigger("focus"))});this.$menuInner.on("click",".divider, .dropdown-header",function(n){n.preventDefault();n.stopPropagation();r.options.liveSearch?r.$searchbox.trigger("focus"):r.$button.trigger("focus")});this.$menu.on("click","."+t.POPOVERHEADER+" .close",function(){r.$button.trigger("click")});this.$searchbox.on("click",function(n){n.stopPropagation()});this.$menu.on("click",".actions-btn",function(t){r.options.liveSearch?r.$searchbox.trigger("focus"):r.$button.trigger("focus");t.preventDefault();t.stopPropagation();n(this).hasClass("bs-select-all")?r.selectAll():r.deselectAll()});this.$element.on({change:function(){r.render();r.$element.trigger("changed"+i,c);c=null},focus:function(){r.options.mobile||r.$button.trigger("focus")}})},liveSearchListener:function(){var n=this,t=document.createElement("li");this.$button.on("click.bs.dropdown.data-api",function(){n.$searchbox.val()&&n.$searchbox.val("")});this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",function(n){n.stopPropagation()});this.$searchbox.on("input propertychange",function(){var o=n.$searchbox.val(),r,i,h;if(n.selectpicker.search.map.newIndex={},n.selectpicker.search.map.originalIndex={},n.selectpicker.search.elements=[],n.selectpicker.search.data=[],o){var e=[],s=o.toUpperCase(),u={},f=[],y=n._searchStyle(),c=n.options.liveSearchNormalize;for(c&&(s=ot(s)),n._$lisSelected=n.$menuInner.find(".selected"),r=0;r<n.selectpicker.main.data.length;r++)i=n.selectpicker.main.data[r],u[r]||(u[r]=et(i,s,y,c)),u[r]&&void 0!==i.headerIndex&&-1===f.indexOf(i.headerIndex)&&(0<i.headerIndex&&(u[i.headerIndex-1]=!0,f.push(i.headerIndex-1)),u[i.headerIndex]=!0,f.push(i.headerIndex),u[i.lastIndex+1]=!0),u[r]&&"optgroup-label"!==i.type&&f.push(r);for(r=0,h=f.length;r<h;r++){var l=f[r],p=f[r-1],v=(i=n.selectpicker.main.data[l],n.selectpicker.main.data[p]);("divider"!==i.type||"divider"===i.type&&v&&"divider"!==v.type&&h-1!==r)&&(n.selectpicker.search.data.push(i),e.push(n.selectpicker.main.elements[l]),i.hasOwnProperty("originalIndex")&&(n.selectpicker.search.map.newIndex[i.originalIndex]=e.length-1,n.selectpicker.search.map.originalIndex[e.length-1]=i.originalIndex))}n.activeIndex=void 0;n.noScroll=!0;n.$menuInner.scrollTop(0);n.selectpicker.search.elements=e;n.createView(!0);e.length||(t.className="no-results",t.innerHTML=n.options.noneResultsText.replace("{0}",'"'+a(o)+'"'),n.$menuInner[0].firstChild.appendChild(t))}else n.$menuInner.scrollTop(0),n.createView(!1)})},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(n){return void 0!==n?(this.$element.val(n).triggerNative("change"),this.$element):this.$element.val()},changeAll:function(n){var t,e,o,i;if(this.multiple){void 0===n&&(n=!0);var r=this.$element[0],s=r.options,u=0,f=0,h=w(r);for(r.classList.add("bs-select-hidden"),t=0,e=this.selectpicker.current.elements.length;t<e;t++)o=this.selectpicker.current.data[t],i=s[this.selectpicker.current.map.originalIndex[t]],i&&!i.disabled&&"divider"!==o.type&&(i.selected&&u++,(i.selected=n)&&f++);r.classList.remove("bs-select-hidden");u!==f&&(this.setOptionStatus(),this.togglePlaceholder(),c=[null,null,h],this.$element.triggerNative("change"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(n){(n=n||window.event)&&n.stopPropagation();this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(i){var u,it,f,o,y,s=n(this),ft=s.hasClass("dropdown-toggle"),r=(ft?s.closest(".dropdown"):s.closest(at.MENU)).data("this"),h=r.findLis(),b=!1,rt=i.which===d&&!ft&&!r.options.selectOnTab,ot=oi.test(i.which)||rt,k=r.$menuInner[0].scrollTop,st=r.isVirtual(),e=!0===st?r.selectpicker.view.position0:0,c,ut,p,l,w,tt,a;if((it=r.$newElement.hasClass(t.SHOW))||!(ot||48<=i.which&&i.which<=57||96<=i.which&&i.which<=105||65<=i.which&&i.which<=90)||(r.$button.trigger("click.bs.dropdown.data-api"),!r.options.liveSearch)){if(i.which===lt&&it&&(i.preventDefault(),r.$button.trigger("click.bs.dropdown.data-api").trigger("focus")),ot){if(!h.length)return;void 0===(u=!0===st?h.index(h.filter(".active")):r.selectpicker.current.map.newIndex[r.activeIndex])&&(u=-1);-1!==u&&((f=r.selectpicker.current.elements[u+e]).classList.remove("active"),f.firstChild&&f.firstChild.classList.remove("active"));i.which===g?(-1!==u&&u--,u+e<0&&(u+=h.length),r.selectpicker.view.canHighlight[u+e]||-1==(u=r.selectpicker.view.canHighlight.slice(0,u+e).lastIndexOf(!0)-e)&&(u=h.length-1)):(i.which===nt||rt)&&(++u+e>=r.selectpicker.view.canHighlight.length&&(u=0),r.selectpicker.view.canHighlight[u+e]||(u=u+1+r.selectpicker.view.canHighlight.slice(u+e+1).indexOf(!0)));i.preventDefault();c=e+u;i.which===g?0===e&&u===h.length-1?(r.$menuInner[0].scrollTop=r.$menuInner[0].scrollHeight,c=r.selectpicker.current.elements.length-1):b=(y=(o=r.selectpicker.current.data[c]).position-o.height)<k:(i.which===nt||rt)&&(0===u?c=r.$menuInner[0].scrollTop=0:b=k<(y=(o=r.selectpicker.current.data[c]).position-r.sizeInfo.menuInnerHeight));(f=r.selectpicker.current.elements[c])&&(f.classList.add("active"),f.firstChild&&f.firstChild.classList.add("active"));r.activeIndex=r.selectpicker.current.map.originalIndex[c];r.selectpicker.view.currentActive=f;b&&(r.$menuInner[0].scrollTop=y);r.options.liveSearch?r.$searchbox.trigger("focus"):s.trigger("focus")}else if(!s.is("input")&&!si.test(i.which)||i.which===v&&r.selectpicker.keydown.keyHistory){for(l=[],i.preventDefault(),r.selectpicker.keydown.keyHistory+=ui[i.which],r.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(r.selectpicker.keydown.resetKeyHistory.cancel),r.selectpicker.keydown.resetKeyHistory.cancel=r.selectpicker.keydown.resetKeyHistory.start(),p=r.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(p)&&(p=p.charAt(0)),w=0;w<r.selectpicker.current.data.length;w++)tt=r.selectpicker.current.data[w],et(tt,p,"startsWith",!0)&&r.selectpicker.view.canHighlight[w]&&(tt.index=w,l.push(tt.originalIndex));l.length&&(a=0,h.removeClass("active").find("a").removeClass("active"),1===p.length&&(-1===(a=l.indexOf(r.activeIndex))||a===l.length-1?a=0:a++),ut=r.selectpicker.current.map.newIndex[l[a]],b=0<k-(o=r.selectpicker.current.data[ut]).position?(y=o.position-o.height,!0):(y=o.position-r.sizeInfo.menuInnerHeight,o.position>k+r.sizeInfo.menuInnerHeight),(f=r.selectpicker.current.elements[ut]).classList.add("active"),f.firstChild&&f.firstChild.classList.add("active"),r.activeIndex=l[a],f.firstChild.trigger("focus"),b&&(r.$menuInner[0].scrollTop=y),s.trigger("focus"))}it&&(i.which===v&&!r.selectpicker.keydown.keyHistory||i.which===fi||i.which===d&&r.options.selectOnTab)&&(i.which!==v&&i.preventDefault(),r.options.liveSearch&&i.which===v||(r.$menuInner.find(".active a").trigger("click",!0),s.trigger("focus"),r.options.liveSearch||(i.preventDefault(),n(document).data("spaceSelect",!0))))}else r.$searchbox.trigger("focus")},mobile:function(){this.$element[0].classList.add("mobile-device")},refresh:function(){var t=n.extend({},this.options,this.$element.data());this.options=t;this.selectpicker.main.map.newIndex={};this.selectpicker.main.map.originalIndex={};this.checkDisabled();this.render();this.createLi();this.setStyle();this.setWidth();this.setSize(!0);this.$element.trigger("refreshed"+i)},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(i).removeData("selectpicker").removeClass("bs-select-hidden selectpicker");n(window).off(i+"."+this.selectId)}};pt=n.fn.selectpicker;n.fn.selectpicker=yt;n.fn.selectpicker.Constructor=u;n.fn.selectpicker.noConflict=function(){return n.fn.selectpicker=pt,this};n(document).off("keydown.bs.dropdown.data-api").on("keydown"+i,'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',u.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',function(n){n.stopPropagation()});n(window).on("load"+i+".data-api",function(){n(".selectpicker").each(function(){var t=n(this);yt.call(t,t.data())})})}(n)}),function(n){n.fn.selectpicker.defaults={noneSelectedText:"Nessuna selezione",noneResultsText:"Nessun risultato per {0}",countSelectedText:function(n){return n==1?"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"}}(jQuery);!function(n){function u(){return new Date(Date.UTC.apply(Date,arguments))}var r=function(r,u){var f=this;this.element=n(r);this.language=u.language||this.element.data("date-language")||"en";this.language=this.language in i?this.language:"en";this.isRTL=i[this.language].rtl||!1;this.format=t.parseFormat(u.format||this.element.data("date-format")||"mm/dd/yyyy");this.isInline=!1;this.isInput=this.element.is("input");this.component=this.element.is(".date")?this.element.find(".add-on"):!1;this.hasInput=this.component&&this.element.find("input").length;this.component&&this.component.length===0&&(this.component=!1);this._attachEvents();this.forceParse=!0;"forceParse"in u?this.forceParse=u.forceParse:"dateForceParse"in this.element.data()&&(this.forceParse=this.element.data("date-force-parse"));this.picker=n(t.template).appendTo(this.isInline?this.element:"body").on({click:n.proxy(this.click,this),mousedown:n.proxy(this.mousedown,this)});this.isInline?this.picker.addClass("datepicker-inline"):this.picker.addClass("datepicker-dropdown dropdown-menu");this.isRTL&&(this.picker.addClass("datepicker-rtl"),this.picker.find(".prev i, .next i").toggleClass("icon-arrow-left icon-arrow-right"));n(document).on("mousedown",function(t){n(t.target).closest(".datepicker").length===0&&f.hide()});this.autoclose=!1;"autoclose"in u?this.autoclose=u.autoclose:"dateAutoclose"in this.element.data()&&(this.autoclose=this.element.data("date-autoclose"));this.keyboardNavigation=!0;"keyboardNavigation"in u?this.keyboardNavigation=u.keyboardNavigation:"dateKeyboardNavigation"in this.element.data()&&(this.keyboardNavigation=this.element.data("date-keyboard-navigation"));this.viewMode=this.startViewMode=0;switch(u.startView||this.element.data("date-start-view")){case 2:case"decade":this.viewMode=this.startViewMode=2;break;case 1:case"year":this.viewMode=this.startViewMode=1}this.todayBtn=u.todayBtn||this.element.data("date-today-btn")||!1;this.todayHighlight=u.todayHighlight||this.element.data("date-today-highlight")||!1;this.weekStart=(u.weekStart||this.element.data("date-weekstart")||i[this.language].weekStart||1)%7;this.weekEnd=(this.weekStart+6)%7;this.startDate=-Infinity;this.endDate=Infinity;this.daysOfWeekDisabled=[];this.setStartDate(u.startDate||this.element.data("date-startdate"));this.setEndDate(u.endDate||this.element.data("date-enddate"));this.setDaysOfWeekDisabled(u.daysOfWeekDisabled||this.element.data("date-days-of-week-disabled"));this.fillDow();this.fillMonths();this.update();this.showMode();this.isInline&&this.show()},i,t;r.prototype={constructor:r,_events:[],_attachEvents:function(){this._detachEvents();this.isInput?this._events=[[this.element,{focus:n.proxy(this.show,this),keyup:n.proxy(this.update,this),keydown:n.proxy(this.keydown,this)}]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),{focus:n.proxy(this.show,this),keyup:n.proxy(this.update,this),keydown:n.proxy(this.keydown,this)}],[this.component,{click:n.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:n.proxy(this.show,this)}]];for(var t=0,i,r;t<this._events.length;t++){i=this._events[t][0];r=this._events[t][1];i.on(r)}},_detachEvents:function(){for(var n=0,t,i;n<this._events.length;n++)t=this._events[n][0],i=this._events[n][1],t.off(i);this._events=[]},show:function(t){this.picker.show();this.height=this.component?this.component.outerHeight():this.element.outerHeight();this.update();this.place();n(window).on("resize",n.proxy(this.place,this));t&&(t.stopPropagation(),t.preventDefault());this.element.trigger({type:"show",date:this.date})},hide:function(){this.isInline||(this.picker.hide(),n(window).off("resize",this.place),this.viewMode=this.startViewMode,this.showMode(),this.isInput||n(document).off("mousedown",this.hide),this.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this.element.trigger({type:"hide",date:this.date}))},remove:function(){this._detachEvents();this.picker.remove();delete this.element.data().datepicker},getDate:function(){var n=this.getUTCDate();return new Date(n.getTime()+n.getTimezoneOffset()*6e4)},getUTCDate:function(){return this.date},setDate:function(n){this.setUTCDate(new Date(n.getTime()-n.getTimezoneOffset()*6e4))},setUTCDate:function(n){this.date=n;this.setValue()},setValue:function(){var n=this.getFormattedDate();this.isInput?this.element.val(n):(this.component&&this.element.find("input").val(n),this.element.data("date",n))},getFormattedDate:function(n){return n===undefined&&(n=this.format),t.formatDate(this.date,n,this.language)},setStartDate:function(n){this.startDate=n||-Infinity;this.startDate!==-Infinity&&(this.startDate=t.parseDate(this.startDate,this.format,this.language));this.update();this.updateNavArrows()},setEndDate:function(n){this.endDate=n||Infinity;this.endDate!==Infinity&&(this.endDate=t.parseDate(this.endDate,this.format,this.language));this.update();this.updateNavArrows()},setDaysOfWeekDisabled:function(t){this.daysOfWeekDisabled=t||[];n.isArray(this.daysOfWeekDisabled)||(this.daysOfWeekDisabled=this.daysOfWeekDisabled.split(/,\s*/));this.daysOfWeekDisabled=n.map(this.daysOfWeekDisabled,function(n){return parseInt(n,10)});this.update();this.updateNavArrows()},place:function(){if(!this.isInline){var i=parseInt(this.element.parents().filter(function(){return n(this).css("z-index")!="auto"}).first().css("z-index"))+10,t=this.component?this.component.offset():this.element.offset(),r=this.component?this.component.outerHeight(!0):this.element.outerHeight(!0);this.picker.css({top:t.top+r,left:t.left,zIndex:i})}},update:function(){var n,r=!1,i;arguments&&arguments.length&&(typeof arguments[0]=="string"||arguments[0]instanceof Date)?(n=arguments[0],r=!0):n=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val();this.date=t.parseDate(n,this.format,this.language);r&&this.setValue();i=this.viewDate;this.viewDate=this.date<this.startDate?new Date(this.startDate):this.date>this.endDate?new Date(this.endDate):new Date(this.date);i&&i.getTime()!=this.viewDate.getTime()&&this.element.trigger({type:"changeDate",date:this.viewDate});this.fill()},fillDow:function(){for(var t=this.weekStart,n="<tr>";t<this.weekStart+7;)n+='<th class="dow">'+i[this.language].daysMin[t++%7]+"<\/th>";n+="<\/tr>";this.picker.find(".datepicker-days thead").append(n)},fillMonths:function(){for(var n="",t=0;t<12;)n+='<span class="month">'+i[this.language].monthsShort[t++]+"<\/span>";this.picker.find(".datepicker-months td").html(n)},fill:function(){var b=new Date(this.viewDate),f=b.getUTCFullYear(),l=b.getUTCMonth(),v=this.startDate!==-Infinity?this.startDate.getUTCFullYear():-Infinity,g=this.startDate!==-Infinity?this.startDate.getUTCMonth():-Infinity,y=this.endDate!==Infinity?this.endDate.getUTCFullYear():Infinity,nt=this.endDate!==Infinity?this.endDate.getUTCMonth():Infinity,k=this.date&&this.date.valueOf(),p=new Date,r,w,s,e,o,a,h,d,c;for(this.picker.find(".datepicker-days thead th:eq(1)").text(i[this.language].months[l]+" "+f),this.picker.find("tfoot th.today").text(i[this.language].today).toggle(this.todayBtn!==!1),this.updateNavArrows(),this.fillMonths(),r=u(f,l-1,28,0,0,0,0),w=t.getDaysInMonth(r.getUTCFullYear(),r.getUTCMonth()),r.setUTCDate(w),r.setUTCDate(w-(r.getUTCDay()-this.weekStart+7)%7),s=new Date(r),s.setUTCDate(s.getUTCDate()+42),s=s.valueOf(),e=[];r.valueOf()<s;)r.getUTCDay()==this.weekStart&&e.push("<tr>"),o="",r.getUTCFullYear()<f||r.getUTCFullYear()==f&&r.getUTCMonth()<l?o+=" old":(r.getUTCFullYear()>f||r.getUTCFullYear()==f&&r.getUTCMonth()>l)&&(o+=" new"),this.todayHighlight&&r.getUTCFullYear()==p.getFullYear()&&r.getUTCMonth()==p.getMonth()&&r.getUTCDate()==p.getDate()&&(o+=" today"),k&&r.valueOf()==k&&(o+=" active"),(r.valueOf()<this.startDate||r.valueOf()>this.endDate||n.inArray(r.getUTCDay(),this.daysOfWeekDisabled)!==-1)&&(o+=" disabled"),e.push('<td class="day'+o+'">'+r.getUTCDate()+"<\/td>"),r.getUTCDay()==this.weekEnd&&e.push("<\/tr>"),r.setUTCDate(r.getUTCDate()+1);for(this.picker.find(".datepicker-days tbody").empty().append(e.join("")),a=this.date&&this.date.getUTCFullYear(),h=this.picker.find(".datepicker-months").find("th:eq(1)").text(f).end().find("span").removeClass("active"),a&&a==f&&h.eq(this.date.getUTCMonth()).addClass("active"),(f<v||f>y)&&h.addClass("disabled"),f==v&&h.slice(0,g).addClass("disabled"),f==y&&h.slice(nt+1).addClass("disabled"),e="",f=parseInt(f/10,10)*10,d=this.picker.find(".datepicker-years").find("th:eq(1)").text(f+"-"+(f+9)).end().find("td"),f-=1,c=-1;c<11;c++)e+='<span class="year'+(c==-1||c==10?" old":"")+(a==f?" active":"")+(f<v||f>y?" disabled":"")+'">'+f+"<\/span>",f+=1;d.html(e)},updateNavArrows:function(){var t=new Date(this.viewDate),n=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.startDate!==-Infinity&&n<=this.startDate.getUTCFullYear()&&i<=this.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.endDate!==Infinity&&n>=this.endDate.getUTCFullYear()&&i>=this.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.startDate!==-Infinity&&n<=this.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.endDate!==Infinity&&n>=this.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}},click:function(i){var r,s,e,h,f,o;if(i.stopPropagation(),i.preventDefault(),r=n(i.target).closest("span, td, th"),r.length==1)switch(r[0].nodeName.toLowerCase()){case"th":switch(r[0].className){case"switch":this.showMode(1);break;case"prev":case"next":s=t.modes[this.viewMode].navStep*(r[0].className=="prev"?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,s);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,s)}this.fill();break;case"today":e=new Date;e=u(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0);this.showMode(-2);h=this.todayBtn=="linked"?null:"view";this._setDate(e,h)}break;case"span":r.is(".disabled")||(this.viewDate.setUTCDate(1),r.is(".month")?(f=r.parent().find("span").index(r),this.viewDate.setUTCMonth(f),this.element.trigger({type:"changeMonth",date:this.viewDate})):(o=parseInt(r.text(),10)||0,this.viewDate.setUTCFullYear(o),this.element.trigger({type:"changeYear",date:this.viewDate})),this.showMode(-1),this.fill());break;case"td":if(r.is(".day")&&!r.is(".disabled")){var c=parseInt(r.text(),10)||1,o=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth();r.is(".old")?f===0?(f=11,o-=1):f-=1:r.is(".new")&&(f==11?(f=0,o+=1):f+=1);this._setDate(u(o,f,c,0,0,0,0))}}},_setDate:function(n,t){t&&t!="date"||(this.date=n);t&&t!="view"||(this.viewDate=n);this.fill();this.setValue();this.element.trigger({type:"changeDate",date:this.date});var i;this.isInput?i=this.element:this.component&&(i=this.element.find("input"));i&&(i.change(),this.autoclose&&(!t||t=="date")&&this.hide())},moveMonth:function(n,t){var f;if(!t)return n;var i=new Date(n.valueOf()),e=i.getUTCDate(),o=i.getUTCMonth(),s=Math.abs(t),r,u;if(t=t>0?1:-1,s==1)u=t==-1?function(){return i.getUTCMonth()==o}:function(){return i.getUTCMonth()!=r},r=o+t,i.setUTCMonth(r),(r<0||r>11)&&(r=(r+12)%12);else{for(f=0;f<s;f++)i=this.moveMonth(i,t);r=i.getUTCMonth();i.setUTCDate(e);u=function(){return r!=i.getUTCMonth()}}while(u())i.setUTCDate(--e),i.setUTCMonth(r);return i},moveYear:function(n,t){return this.moveMonth(n,t*12)},dateWithinRange:function(n){return n>=this.startDate&&n<=this.endDate},keydown:function(n){var u,t,i,r,f;if(this.picker.is(":not(:visible)")){n.keyCode==27&&this.show();return}u=!1;switch(n.keyCode){case 27:this.hide();n.preventDefault();break;case 37:case 39:if(!this.keyboardNavigation)break;t=n.keyCode==37?-1:1;n.ctrlKey?(i=this.moveYear(this.date,t),r=this.moveYear(this.viewDate,t)):n.shiftKey?(i=this.moveMonth(this.date,t),r=this.moveMonth(this.viewDate,t)):(i=new Date(this.date),i.setUTCDate(this.date.getUTCDate()+t),r=new Date(this.viewDate),r.setUTCDate(this.viewDate.getUTCDate()+t));this.dateWithinRange(i)&&(this.date=i,this.viewDate=r,this.setValue(),this.update(),n.preventDefault(),u=!0);break;case 38:case 40:if(!this.keyboardNavigation)break;t=n.keyCode==38?-1:1;n.ctrlKey?(i=this.moveYear(this.date,t),r=this.moveYear(this.viewDate,t)):n.shiftKey?(i=this.moveMonth(this.date,t),r=this.moveMonth(this.viewDate,t)):(i=new Date(this.date),i.setUTCDate(this.date.getUTCDate()+t*7),r=new Date(this.viewDate),r.setUTCDate(this.viewDate.getUTCDate()+t*7));this.dateWithinRange(i)&&(this.date=i,this.viewDate=r,this.setValue(),this.update(),n.preventDefault(),u=!0);break;case 13:this.hide();n.preventDefault();break;case 9:this.hide()}u&&(this.element.trigger({type:"changeDate",date:this.date}),this.isInput?f=this.element:this.component&&(f=this.element.find("input")),f&&f.change())},showMode:function(n){n&&(this.viewMode=Math.max(0,Math.min(2,this.viewMode+n)));this.picker.find(">div").hide().filter(".datepicker-"+t.modes[this.viewMode].clsName).css("display","block");this.updateNavArrows()}};n.fn.datepicker=function(t){var i=Array.apply(null,arguments);return i.shift(),this.each(function(){var f=n(this),u=f.data("datepicker"),e=typeof t=="object"&&t;u||f.data("datepicker",u=new r(this,n.extend({},n.fn.datepicker.defaults,e)));typeof t=="string"&&typeof u[t]=="function"&&u[t].apply(u,i)})};n.fn.datepicker.defaults={};n.fn.datepicker.Constructor=r;i=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today"},it:{days:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato","Domenica"],daysShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab","Dom"],daysMin:["Do","Lu","Ma","Me","Gi","Ve","Sa","Do"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthsShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],today:"Oggi"}};t={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(n){return n%4==0&&n%100!=0||n%400==0},getDaysInMonth:function(n,i){return[31,t.isLeapYear(n)?29:28,31,30,31,30,31,31,30,31,30,31][i]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(n){var t=n.replace(this.validParts,'\0').split('\0'),i=n.match(this.validParts);if(!t||!t.length||!i||i.length===0)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(t,f,e){var k,s,l,a,c,d,o,y;if(t instanceof Date)return t;if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(t)){for(k=/([\-+]\d+)([dmwy])/,s=t.match(/([\-+]\d+)([dmwy])/g),t=new Date,o=0;o<s.length;o++){l=k.exec(s[o]);a=parseInt(l[1]);switch(l[2]){case"d":t.setUTCDate(t.getUTCDate()+a);break;case"m":t=r.prototype.moveMonth.call(r.prototype,t,a);break;case"w":t.setUTCDate(t.getUTCDate()+a*7);break;case"y":t=r.prototype.moveYear.call(r.prototype,t,a)}}return u(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),0,0,0)}var s=t&&t.match(this.nonpunctuation)||[],t=new Date,p={},b=["yyyy","yy","M","MM","m","mm","d","dd"],h={yyyy:function(n,t){return n.setUTCFullYear(t)},yy:function(n,t){var r=(t+"").length,i=t;switch(r){case 3:i*=10;break;case 4:break;default:i+=2e3}return n.setUTCFullYear(i)},m:function(n,t){for(t-=1;t<0;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!=t;)n.setUTCDate(n.getUTCDate()-1);return n},d:function(n,t){return n.setUTCDate(t)}},v,w,l;if(h.M=h.MM=h.mm=h.m,h.dd=h.d,t=u(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0),c=f.parts.slice(),s.length!=c.length&&(c=n(c).filter(function(t,i){return n.inArray(i,b)!==-1}).toArray()),s.length==c.length){for(o=0,d=c.length;o<d;o++){if(v=parseInt(s[o],10),l=c[o],isNaN(v))switch(l){case"MM":w=n(i[e].months).filter(function(){var n=this.slice(0,s[o].length),t=s[o].slice(0,n.length);return n==t});v=n.inArray(w[0],i[e].months)+1;break;case"M":w=n(i[e].monthsShort).filter(function(){var n=this.slice(0,s[o].length),t=s[o].slice(0,n.length);return n==t});v=n.inArray(w[0],i[e].monthsShort)+1}p[l]=v}for(o=0;o<b.length;o++)y=b[o],y in p&&!isNaN(p[y])&&h[y](t,p[y])}return t},formatDate:function(t,r,u){var f={d:t.getUTCDate(),D:i[u].daysShort[t.getUTCDay()],DD:i[u].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:i[u].monthsShort[t.getUTCMonth()],MM:i[u].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()},t,o,e,s;for(f.dd=(f.d<10?"0":"")+f.d,f.mm=(f.m<10?"0":"")+f.m,t=[],o=n.extend([],r.separators),e=0,s=r.parts.length;e<s;e++)o.length&&t.push(o.shift()),t.push(f[r.parts[e]]);return t.join("")},headTemplate:'<thead><tr><th class="prev"><i class="icon-arrow-left"/><\/th><th colspan="5" class="switch"><\/th><th class="next"><i class="icon-arrow-right"/><\/th><\/tr><\/thead>',contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><\/tfoot>'};t.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+t.headTemplate+"<tbody><\/tbody>"+t.footTemplate+'<\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+t.headTemplate+t.contTemplate+t.footTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+t.headTemplate+t.contTemplate+t.footTemplate+"<\/table><\/div><\/div>";n.fn.datepicker.DPGlobal=t}(window.jQuery)