/* Bootstrap v5.0.0 (https://getbootstrap.com/) */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,function(){"use strict";const t="transitionend",e=t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},i=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},n=t=>{const e=i(t);return e&&document.querySelector(e)?e:null},s=t=>{const e=i(t);return e?document.querySelector(e):null},o=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0},r=e=>{e.dispatchEvent(new Event(t))},a=t=>(t[0]||t).nodeType,l=(e,i)=>{let n=!1;const s=i+5;e.addEventListener(t,function i(){n=!0,e.removeEventListener(t,i)}),setTimeout(()=>{n||r(e)},s)},c=(t,e,i)=>{Object.keys(i).forEach(n=>{const s=i[n],o=e[n],r=o&&a(o)?"element":(t=>null==t?`${t}`:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase())(o);if(!new RegExp(s).test(r))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${s}".`)})},h=t=>{if(!t)return!1;if(t.style&&t.parentNode&&t.parentNode.style){const e=getComputedStyle(t),i=getComputedStyle(t.parentNode);return"none"!==e.display&&"none"!==i.display&&"hidden"!==e.visibility}return!1},d=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),u=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?u(t.parentNode):null},f=()=>{},p=t=>t.offsetHeight,m=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},g=()=>"rtl"===document.documentElement.dir,_=(t,e)=>{(t=>{"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()})(()=>{const i=m();if(i){const n=i.fn[t];i.fn[t]=e.jQueryInterface,i.fn[t].Constructor=e,i.fn[t].noConflict=(()=>(i.fn[t]=n,e.jQueryInterface))}})},v=t=>{"function"==typeof t&&t()},b=new Map;var y={set(t,e,i){b.has(t)||b.set(t,new Map);const n=b.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,e)=>b.has(t)&&b.get(t).get(e)||null,remove(t,e){if(!b.has(t))return;const i=b.get(t);i.delete(e),0===i.size&&b.delete(t)}};const w=/[^.]*(?=\..*)\.|.*/,E=/\..*/,T=/::\d+$/,A={};let O=1;const L={mouseenter:"mouseover",mouseleave:"mouseout"},k=/^(mouseenter|mouseleave)/i,x=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function D(t,e){return e&&`${e}::${O++}`||t.uidEvent||O++}function $(t){const e=D(t);return t.uidEvent=e,A[e]=A[e]||{},A[e]}function C(t,e,i=null){const n=Object.keys(t);for(let s=0,o=n.length;s<o;s++){const o=t[n[s]];if(o.originalHandler===e&&o.delegationSelector===i)return o}return null}function S(t,e,i){const n="string"==typeof e,s=n?i:e;let o=P(t);return x.has(o)||(o=t),[n,s,o]}function N(t,e,i,n,s){if("string"!=typeof e||!t)return;if(i||(i=n,n=null),k.test(e)){const t=t=>(function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)});n?n=t(n):i=t(i)}const[o,r,a]=S(e,i,n),l=$(t),c=l[a]||(l[a]={}),h=C(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=D(r,e.replace(w,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return s.delegateTarget=r,n.oneOff&&I.off(t,s.type,e,i),i.apply(r,[s]);return null}}(t,i,n):function(t,e){return function i(n){return n.delegateTarget=t,i.oneOff&&I.off(t,n.type,e),e.apply(t,[n])}}(t,i);u.delegationSelector=o?i:null,u.originalHandler=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function j(t,e,i,n,s){const o=C(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function P(t){return t=t.replace(E,""),L[t]||t}const I={on(t,e,i,n){N(t,e,i,n,!1)},one(t,e,i,n){N(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=S(e,i,n),a=r!==e,l=$(t),c=e.startsWith(".");if(void 0!==o){if(!l||!l[r])return;return void j(t,l,r,o,s?i:null)}c&&Object.keys(l).forEach(i=>{!function(t,e,i,n){const s=e[i]||{};Object.keys(s).forEach(o=>{if(o.includes(n)){const n=s[o];j(t,e,i,n.originalHandler,n.delegationSelector)}})}(t,l,i,e.slice(1))});const h=l[r]||{};Object.keys(h).forEach(i=>{const n=i.replace(T,"");if(!a||e.includes(n)){const e=h[i];j(t,l,r,e.originalHandler,e.delegationSelector)}})},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=m(),s=P(e),o=e!==s,r=x.has(s);let a,l=!0,c=!0,h=!1,d=null;return o&&n&&(a=n.Event(e,i),n(t).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),h=a.isDefaultPrevented()),r?(d=document.createEvent("HTMLEvents")).initEvent(s,l,!0):d=new CustomEvent(e,{bubbles:l,cancelable:!0}),void 0!==i&&Object.keys(i).forEach(t=>{Object.defineProperty(d,t,{get:()=>i[t]})}),h&&d.preventDefault(),c&&t.dispatchEvent(d),d.defaultPrevented&&void 0!==a&&a.preventDefault(),d}},M="5.0.0";class H{constructor(t){(t="string"==typeof t?document.querySelector(t):t)&&(this._element=t,y.set(this._element,this.constructor.DATA_KEY,this))}dispose(){y.remove(this._element,this.constructor.DATA_KEY),I.off(this._element,`.${this.constructor.DATA_KEY}`),this._element=null}static getInstance(t){return y.get(t,this.DATA_KEY)}static get VERSION(){return M}}const R="bs.alert",B=`.${R}`,W=`close${B}`,z=`closed${B}`,F=`click${B}.data-api`,q="alert",U="fade",Y="show";class K extends H{static get DATA_KEY(){return R}close(t){const e=t?this._getRootElement(t):this._element,i=this._triggerCloseEvent(e);null===i||i.defaultPrevented||this._removeElement(e)}_getRootElement(t){return s(t)||t.closest(`.${q}`)}_triggerCloseEvent(t){return I.trigger(t,W)}_removeElement(t){if(t.classList.remove(Y),!t.classList.contains(U))return void this._destroyElement(t);const e=o(t);I.one(t,"transitionend",()=>this._destroyElement(t)),l(t,e)}_destroyElement(t){t.parentNode&&t.parentNode.removeChild(t),I.trigger(t,z)}static jQueryInterface(t){return this.each(function(){let e=y.get(this,R);e||(e=new K(this)),"close"===t&&e[t](this)})}static handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}I.on(document,F,'[data-bs-dismiss="alert"]',K.handleDismiss(new K)),_("alert",K);const V="bs.button",X="active",Q=`click${`.${V}`}.data-api`;class G extends H{static get DATA_KEY(){return V}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(X))}static jQueryInterface(t){return this.each(function(){let e=y.get(this,V);e||(e=new G(this)),"toggle"===t&&e[t]()})}}function Z(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function J(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}I.on(document,Q,'[data-bs-toggle="button"]',t=>{t.preventDefault();const e=t.target.closest('[data-bs-toggle="button"]');let i=y.get(e,V);i||(i=new G(e)),i.toggle()}),_("button",G);const tt={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${J(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${J(e)}`)},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter(t=>t.startsWith("bs")).forEach(i=>{let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),e[n]=Z(t.dataset[i])}),e},getDataAttribute:(t,e)=>Z(t.getAttribute(`data-bs-${J(e)}`)),offset(t){const e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},et={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const i=[];let n=t.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(e)&&i.push(n),n=n.parentNode;return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]}},it="carousel",nt="bs.carousel",st=`.${nt}`,ot="ArrowLeft",rt="ArrowRight",at=500,lt=40,ct={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},ht={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},dt="next",ut="prev",ft="left",pt="right",mt=`slide${st}`,gt=`slid${st}`,_t=`keydown${st}`,vt=`mouseenter${st}`,bt=`mouseleave${st}`,yt=`touchstart${st}`,wt=`touchmove${st}`,Et=`touchend${st}`,Tt=`pointerdown${st}`,At=`pointerup${st}`,Ot=`dragstart${st}`,Lt=`load${st}.data-api`,kt=`click${st}.data-api`,xt="carousel",Dt="active",$t="slide",Ct="carousel-item-end",St="carousel-item-start",Nt="carousel-item-next",jt="carousel-item-prev",Pt="pointer-event",It=".active",Mt=".active.carousel-item",Ht=".carousel-item",Rt=".carousel-item img",Bt=".carousel-item-next, .carousel-item-prev",Wt=".carousel-indicators",zt="[data-bs-target]",Ft="touch",qt="pen";class Ut extends H{constructor(t,e){super(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(e),this._indicatorsElement=et.findOne(Wt,this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return ct}static get DATA_KEY(){return nt}next(){this._isSliding||this._slide(dt)}nextWhenVisible(){!document.hidden&&h(this._element)&&this.next()}prev(){this._isSliding||this._slide(ut)}pause(t){t||(this._isPaused=!0),et.findOne(Bt,this._element)&&(r(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=et.findOne(Mt,this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void I.one(this._element,gt,()=>this.to(t));if(e===t)return this.pause(),void this.cycle();const i=t>e?dt:ut;this._slide(i,this._items[t])}dispose(){this._items=null,this._config=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null,super.dispose()}_getConfig(t){return t={...ct,...t},c(it,t,ht),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=lt)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?pt:ft)}_addEventListeners(){this._config.keyboard&&I.on(this._element,_t,t=>this._keydown(t)),"hover"===this._config.pause&&(I.on(this._element,vt,t=>this.pause(t)),I.on(this._element,bt,t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=t=>{!this._pointerEvent||t.pointerType!==qt&&t.pointerType!==Ft?this._pointerEvent||(this.touchStartX=t.touches[0].clientX):this.touchStartX=t.clientX},e=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},i=t=>{!this._pointerEvent||t.pointerType!==qt&&t.pointerType!==Ft||(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(t=>this.cycle(t),at+this._config.interval))};et.find(Rt,this._element).forEach(t=>{I.on(t,Ot,t=>t.preventDefault())}),this._pointerEvent?(I.on(this._element,Tt,e=>t(e)),I.on(this._element,At,t=>i(t)),this._element.classList.add(Pt)):(I.on(this._element,yt,e=>t(e)),I.on(this._element,wt,t=>e(t)),I.on(this._element,Et,t=>i(t)))}_keydown(t){/input|textarea/i.test(t.target.tagName)||(t.key===ot?(t.preventDefault(),this._slide(pt)):t.key===rt&&(t.preventDefault(),this._slide(ft)))}_getItemIndex(t){return this._items=t&&t.parentNode?et.find(Ht,t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){const i=t===dt,n=t===ut,s=this._getItemIndex(e),o=this._items.length-1;if((n&&0===s||i&&s===o)&&!this._config.wrap)return e;const r=(s+(n?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]}_triggerSlideEvent(t,e){const i=this._getItemIndex(t),n=this._getItemIndex(et.findOne(Mt,this._element));return I.trigger(this._element,mt,{relatedTarget:t,direction:e,from:n,to:i})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=et.findOne(It,this._indicatorsElement);e.classList.remove(Dt),e.removeAttribute("aria-current");const i=et.find(zt,this._indicatorsElement);for(let e=0;e<i.length;e++)if(Number.parseInt(i[e].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){i[e].classList.add(Dt),i[e].setAttribute("aria-current","true");break}}}_updateInterval(){const t=this._activeElement||et.findOne(Mt,this._element);if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,e){const i=this._directionToOrder(t),n=et.findOne(Mt,this._element),s=this._getItemIndex(n),r=e||this._getItemByOrder(i,n),a=this._getItemIndex(r),c=Boolean(this._interval),h=i===dt,d=h?St:Ct,u=h?Nt:jt,f=this._orderToDirection(i);if(r&&r.classList.contains(Dt))this._isSliding=!1;else if(!this._triggerSlideEvent(r,f).defaultPrevented&&n&&r){if(this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(r),this._activeElement=r,this._element.classList.contains($t)){r.classList.add(u),p(r),n.classList.add(d),r.classList.add(d);const t=o(n);I.one(n,"transitionend",()=>{r.classList.remove(d,u),r.classList.add(Dt),n.classList.remove(Dt,u,d),this._isSliding=!1,setTimeout(()=>{I.trigger(this._element,gt,{relatedTarget:r,direction:f,from:s,to:a})},0)}),l(n,t)}else n.classList.remove(Dt),r.classList.add(Dt),this._isSliding=!1,I.trigger(this._element,gt,{relatedTarget:r,direction:f,from:s,to:a});c&&this.cycle()}}_directionToOrder(t){return[pt,ft].includes(t)?g()?t===ft?ut:dt:t===ft?dt:ut:t}_orderToDirection(t){return[dt,ut].includes(t)?g()?t===ut?ft:pt:t===ut?pt:ft:t}static carouselInterface(t,e){let i=y.get(t,nt),n={...ct,...tt.getDataAttributes(t)};"object"==typeof e&&(n={...n,...e});const s="string"==typeof e?e:n.slide;if(i||(i=new Ut(t,n)),"number"==typeof e)i.to(e);else if("string"==typeof s){if(void 0===i[s])throw new TypeError(`No method named "${s}"`);i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}static jQueryInterface(t){return this.each(function(){Ut.carouselInterface(this,t)})}static dataApiClickHandler(t){const e=s(this);if(!e||!e.classList.contains(xt))return;const i={...tt.getDataAttributes(e),...tt.getDataAttributes(this)},n=this.getAttribute("data-bs-slide-to");n&&(i.interval=!1),Ut.carouselInterface(e,i),n&&y.get(e,nt).to(n),t.preventDefault()}}I.on(document,kt,"[data-bs-slide], [data-bs-slide-to]",Ut.dataApiClickHandler),I.on(window,Lt,()=>{const t=et.find('[data-bs-ride="carousel"]');for(let e=0,i=t.length;e<i;e++)Ut.carouselInterface(t[e],y.get(t[e],nt))}),_(it,Ut);var Yt="top",Kt="bottom",Vt="right",Xt="left",Qt="auto",Gt=[Yt,Kt,Vt,Xt],Zt="start",Jt="end",te="clippingParents",ee="viewport",ie="popper",ne="reference",se=Gt.reduce(function(t,e){return t.concat([e+"-"+Zt,e+"-"+Jt])},[]),oe=[].concat(Gt,[Qt]).reduce(function(t,e){return t.concat([e,e+"-"+Zt,e+"-"+Jt])},[]),re=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ae(t){return t?(t.nodeName||"").toLowerCase():null}function le(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ce(t){return t instanceof le(t).Element||t instanceof Element}function he(t){return t instanceof le(t).HTMLElement||t instanceof HTMLElement}function de(t){return"undefined"!=typeof ShadowRoot&&(t instanceof le(t).ShadowRoot||t instanceof ShadowRoot)}var ue={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];he(s)&&ae(s)&&(Object.assign(s.style,i),Object.keys(n).forEach(function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce(function(t,e){return t[e]="",t},{});he(n)&&ae(n)&&(Object.assign(n.style,o),Object.keys(s).forEach(function(t){n.removeAttribute(t)}))})}},requires:["computeStyles"]};function fe(t){return t.split("-")[0]}function pe(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function me(t){var e=pe(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function ge(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&de(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function _e(t){return le(t).getComputedStyle(t)}function ve(t){return["table","td","th"].indexOf(ae(t))>=0}function be(t){return((ce(t)?t.ownerDocument:t.document)||window.document).documentElement}function ye(t){return"html"===ae(t)?t:t.assignedSlot||t.parentNode||(de(t)?t.host:null)||be(t)}function we(t){return he(t)&&"fixed"!==_e(t).position?t.offsetParent:null}function Ee(t){for(var e=le(t),i=we(t);i&&ve(i)&&"static"===_e(i).position;)i=we(i);return i&&("html"===ae(i)||"body"===ae(i)&&"static"===_e(i).position)?e:i||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&he(t)&&"fixed"===_e(t).position)return null;for(var i=ye(t);he(i)&&["html","body"].indexOf(ae(i))<0;){var n=_e(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function Te(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var Ae=Math.max,Oe=Math.min,Le=Math.round;function ke(t,e,i){return Ae(t,Oe(e,i))}function xe(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function De(t,e){return e.reduce(function(e,i){return e[i]=t,e},{})}var $e=function(t,e){return xe("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:De(t,Gt))};var Ce={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=fe(i.placement),l=Te(a),c=[Xt,Vt].indexOf(a)>=0?"height":"width";if(o&&r){var h=$e(s.padding,i),d=me(o),u="y"===l?Yt:Xt,f="y"===l?Kt:Vt,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],m=r[l]-i.rects.reference[l],g=Ee(o),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=p/2-m/2,b=h[u],y=_-d[c]-h[f],w=_/2-d[c]/2+v,E=ke(b,w,y),T=l;i.modifiersData[n]=((e={})[T]=E,e.centerOffset=E-w,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&ge(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},Se={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ne(t){var e,i=t.popper,n=t.popperRect,s=t.placement,o=t.offsets,r=t.position,a=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,h=!0===c?function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Le(Le(e*n)/n)||0,y:Le(Le(i*n)/n)||0}}(o):"function"==typeof c?c(o):o,d=h.x,u=void 0===d?0:d,f=h.y,p=void 0===f?0:f,m=o.hasOwnProperty("x"),g=o.hasOwnProperty("y"),_=Xt,v=Yt,b=window;if(l){var y=Ee(i),w="clientHeight",E="clientWidth";y===le(i)&&"static"!==_e(y=be(i)).position&&(w="scrollHeight",E="scrollWidth"),y=y,s===Yt&&(v=Kt,p-=y[w]-n.height,p*=a?1:-1),s===Xt&&(_=Vt,u-=y[E]-n.width,u*=a?1:-1)}var T,A=Object.assign({position:r},l&&Se);return a?Object.assign({},A,((T={})[v]=g?"0":"",T[_]=m?"0":"",T.transform=(b.devicePixelRatio||1)<2?"translate("+u+"px, "+p+"px)":"translate3d("+u+"px, "+p+"px, 0)",T)):Object.assign({},A,((e={})[v]=g?p+"px":"",e[_]=m?u+"px":"",e.transform="",e))}var je={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:fe(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Ne(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ne(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},Pe={passive:!0};var Ie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=le(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(t){t.addEventListener("scroll",i.update,Pe)}),a&&l.addEventListener("resize",i.update,Pe),function(){o&&c.forEach(function(t){t.removeEventListener("scroll",i.update,Pe)}),a&&l.removeEventListener("resize",i.update,Pe)}},data:{}},Me={left:"right",right:"left",bottom:"top",top:"bottom"};function He(t){return t.replace(/left|right|bottom|top/g,function(t){return Me[t]})}var Re={start:"end",end:"start"};function Be(t){return t.replace(/start|end/g,function(t){return Re[t]})}function We(t){var e=le(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ze(t){return pe(be(t)).left+We(t).scrollLeft}function Fe(t){var e=_e(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function qe(t,e){var i;void 0===e&&(e=[]);var n=function t(e){return["html","body","#document"].indexOf(ae(e))>=0?e.ownerDocument.body:he(e)&&Fe(e)?e:t(ye(e))}(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=le(n),r=s?[o].concat(o.visualViewport||[],Fe(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(qe(ye(r)))}function Ue(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ye(t,e){return e===ee?Ue(function(t){var e=le(t),i=be(t),n=e.visualViewport,s=i.clientWidth,o=i.clientHeight,r=0,a=0;return n&&(s=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=n.offsetLeft,a=n.offsetTop)),{width:s,height:o,x:r+ze(t),y:a}}(t)):he(e)?function(t){var e=pe(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Ue(function(t){var e,i=be(t),n=We(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=Ae(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Ae(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+ze(t),l=-n.scrollTop;return"rtl"===_e(s||i).direction&&(a+=Ae(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(be(t)))}function Ke(t,e,i){var n="clippingParents"===e?function(t){var e=qe(ye(t)),i=["absolute","fixed"].indexOf(_e(t).position)>=0&&he(t)?Ee(t):t;return ce(i)?e.filter(function(t){return ce(t)&&ge(t,i)&&"body"!==ae(t)}):[]}(t):[].concat(e),s=[].concat(n,[i]),o=s[0],r=s.reduce(function(e,i){var n=Ye(t,i);return e.top=Ae(n.top,e.top),e.right=Oe(n.right,e.right),e.bottom=Oe(n.bottom,e.bottom),e.left=Ae(n.left,e.left),e},Ye(t,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function Ve(t){return t.split("-")[1]}function Xe(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?fe(s):null,r=s?Ve(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case Yt:e={x:a,y:i.y-n.height};break;case Kt:e={x:a,y:i.y+i.height};break;case Vt:e={x:i.x+i.width,y:l};break;case Xt:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?Te(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case Zt:e[c]=e[c]-(i[h]/2-n[h]/2);break;case Jt:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function Qe(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,o=i.boundary,r=void 0===o?te:o,a=i.rootBoundary,l=void 0===a?ee:a,c=i.elementContext,h=void 0===c?ie:c,d=i.altBoundary,u=void 0!==d&&d,f=i.padding,p=void 0===f?0:f,m=xe("number"!=typeof p?p:De(p,Gt)),g=h===ie?ne:ie,_=t.elements.reference,v=t.rects.popper,b=t.elements[u?g:h],y=Ke(ce(b)?b:b.contextElement||be(t.elements.popper),r,l),w=pe(_),E=Xe({reference:w,element:v,strategy:"absolute",placement:s}),T=Ue(Object.assign({},v,E)),A=h===ie?T:w,O={top:y.top-A.top+m.top,bottom:A.bottom-y.bottom+m.bottom,left:y.left-A.left+m.left,right:A.right-y.right+m.right},L=t.modifiersData.offset;if(h===ie&&L){var k=L[s];Object.keys(O).forEach(function(t){var e=[Vt,Kt].indexOf(t)>=0?1:-1,i=[Yt,Kt].indexOf(t)>=0?"y":"x";O[t]+=k[i]*e})}return O}function Ge(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?oe:l,h=Ve(n),d=h?a?se:se.filter(function(t){return Ve(t)===h}):Gt,u=d.filter(function(t){return c.indexOf(t)>=0});0===u.length&&(u=d);var f=u.reduce(function(e,i){return e[i]=Qe(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[fe(i)],e},{});return Object.keys(f).sort(function(t,e){return f[t]-f[e]})}var Ze={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=e.options.placement,_=fe(g),v=l||(_!==g&&p?function(t){if(fe(t)===Qt)return[];var e=He(t);return[Be(t),e,Be(e)]}(g):[He(g)]),b=[g].concat(v).reduce(function(t,i){return t.concat(fe(i)===Qt?Ge(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)},[]),y=e.rects.reference,w=e.rects.popper,E=new Map,T=!0,A=b[0],O=0;O<b.length;O++){var L=b[O],k=fe(L),x=Ve(L)===Zt,D=[Yt,Kt].indexOf(k)>=0,$=D?"width":"height",C=Qe(e,{placement:L,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),S=D?x?Vt:Xt:x?Kt:Yt;y[$]>w[$]&&(S=He(S));var N=He(S),j=[];if(o&&j.push(C[k]<=0),a&&j.push(C[S]<=0,C[N]<=0),j.every(function(t){return t})){A=L,T=!1;break}E.set(L,j)}if(T)for(var P=function(t){var e=b.find(function(e){var i=E.get(e);if(i)return i.slice(0,t).every(function(t){return t})});if(e)return A=e,"break"},I=p?3:1;I>0&&"break"!==P(I);I--);e.placement!==A&&(e.modifiersData[n]._skip=!0,e.placement=A,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Je(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function ti(t){return[Yt,Vt,Kt,Xt].some(function(e){return t[e]>=0})}var ei={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=Qe(e,{elementContext:"reference"}),a=Qe(e,{altBoundary:!0}),l=Je(r,n),c=Je(a,s,o),h=ti(l),d=ti(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}};var ii={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=oe.reduce(function(t,i){return t[i]=function(t,e,i){var n=fe(t),s=[Xt,Yt].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[Xt,Vt].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,e.rects,o),t},{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}};var ni={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Xe({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var si={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,m=void 0===p?0:p,g=Qe(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),_=fe(e.placement),v=Ve(e.placement),b=!v,y=Te(_),w="x"===y?"y":"x",E=e.modifiersData.popperOffsets,T=e.rects.reference,A=e.rects.popper,O="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,L={x:0,y:0};if(E){if(o||a){var k="y"===y?Yt:Xt,x="y"===y?Kt:Vt,D="y"===y?"height":"width",$=E[y],C=E[y]+g[k],S=E[y]-g[x],N=f?-A[D]/2:0,j=v===Zt?T[D]:A[D],P=v===Zt?-A[D]:-T[D],I=e.elements.arrow,M=f&&I?me(I):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},R=H[k],B=H[x],W=ke(0,T[D],M[D]),z=b?T[D]/2-N-W-R-O:j-W-R-O,F=b?-T[D]/2+N+W+B+O:P+W+B+O,q=e.elements.arrow&&Ee(e.elements.arrow),U=q?"y"===y?q.clientTop||0:q.clientLeft||0:0,Y=e.modifiersData.offset?e.modifiersData.offset[e.placement][y]:0,K=E[y]+z-Y-U,V=E[y]+F-Y;if(o){var X=ke(f?Oe(C,K):C,$,f?Ae(S,V):S);E[y]=X,L[y]=X-$}if(a){var Q="x"===y?Yt:Xt,G="x"===y?Kt:Vt,Z=E[w],J=Z+g[Q],tt=Z-g[G],et=ke(f?Oe(J,K):J,Z,f?Ae(tt,V):tt);E[w]=et,L[w]=et-Z}}e.modifiersData[n]=L}},requiresIfExists:["offset"]};function oi(t,e,i){void 0===i&&(i=!1);var n,s,o=be(e),r=pe(t),a=he(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!i)&&(("body"!==ae(e)||Fe(o))&&(l=(n=e)!==le(n)&&he(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:We(n)),he(e)?((c=pe(e)).x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=ze(o))),{x:r.left+l.scrollLeft-c.x,y:r.top+l.scrollTop-c.y,width:r.width,height:r.height}}function ri(t){var e=new Map,i=new Set,n=[];return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){i.has(t.name)||function t(s){i.add(s.name),[].concat(s.requires||[],s.requiresIfExists||[]).forEach(function(n){if(!i.has(n)){var s=e.get(n);s&&t(s)}}),n.push(s)}(t)}),n}var ai={placement:"bottom",modifiers:[],strategy:"absolute"};function li(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function ci(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,o=void 0===s?ai:s;return function(t,e,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},ai,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,h={state:a,setOptions:function(i){d(),a.options=Object.assign({},o,a.options,i),a.scrollParents={reference:ce(t)?qe(t):t.contextElement?qe(t.contextElement):[],popper:qe(e)};var s,r,c=function(t){var e=ri(t);return re.reduce(function(t,i){return t.concat(e.filter(function(t){return t.phase===i}))},[])}((s=[].concat(n,a.options.modifiers),r=s.reduce(function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t},{}),Object.keys(r).map(function(t){return r[t]})));return a.orderedModifiers=c.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var o=s({state:a,name:e,instance:h,options:n});l.push(o||function(){})}}),h.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(li(e,i)){a.rects={reference:oi(e,Ee(i),"fixed"===a.options.strategy),popper:me(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],o=s.fn,r=s.options,l=void 0===r?{}:r,d=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:d,instance:h})||a)}else a.reset=!1,n=-1}}},update:(s=function(){return new Promise(function(t){h.forceUpdate(),t(a)})},function(){return r||(r=new Promise(function(t){Promise.resolve().then(function(){r=void 0,t(s())})})),r}),destroy:function(){d(),c=!0}};if(!li(t,e))return h;function d(){l.forEach(function(t){return t()}),l=[]}return h.setOptions(i).then(function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)}),h}}var hi=ci(),di=ci({defaultModifiers:[Ie,ni,je,ue]}),ui=ci({defaultModifiers:[Ie,ni,je,ue,ii,Ze,si,Ce,ei]}),fi=Object.freeze({__proto__:null,popperGenerator:ci,detectOverflow:Qe,createPopperBase:hi,createPopper:ui,createPopperLite:di,top:Yt,bottom:Kt,right:Vt,left:Xt,auto:Qt,basePlacements:Gt,start:Zt,end:Jt,clippingParents:te,viewport:ee,popper:ie,reference:ne,variationPlacements:se,placements:oe,beforeRead:"beforeRead",read:"read",afterRead:"afterRead",beforeMain:"beforeMain",main:"main",afterMain:"afterMain",beforeWrite:"beforeWrite",write:"write",afterWrite:"afterWrite",modifierPhases:re,applyStyles:ue,arrow:Ce,computeStyles:je,eventListeners:Ie,flip:Ze,hide:ei,offset:ii,popperOffsets:ni,preventOverflow:si});const pi="dropdown",mi="bs.dropdown",gi=`.${mi}`,_i="Escape",vi="Space",bi="Tab",yi="ArrowUp",wi="ArrowDown",Ei=2,Ti=new RegExp(`${yi}|${wi}|${_i}`),Ai=`hide${gi}`,Oi=`hidden${gi}`,Li=`show${gi}`,ki=`shown${gi}`,xi=`click${gi}`,Di=`click${gi}.data-api`,$i=`keydown${gi}.data-api`,Ci=`keyup${gi}.data-api`,Si="show",Ni="dropup",ji="dropend",Pi="dropstart",Ii="navbar",Mi='[data-bs-toggle="dropdown"]',Hi=".dropdown-menu",Ri=".navbar-nav",Bi=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Wi=g()?"top-end":"top-start",zi=g()?"top-start":"top-end",Fi=g()?"bottom-end":"bottom-start",qi=g()?"bottom-start":"bottom-end",Ui=g()?"left-start":"right-start",Yi=g()?"right-start":"left-start",Ki={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},Vi={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class Xi extends H{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get Default(){return Ki}static get DefaultType(){return Vi}static get DATA_KEY(){return mi}toggle(){if(d(this._element))return;this._element.classList.contains(Si)?this.hide():this.show()}show(){if(d(this._element)||this._menu.classList.contains(Si))return;const t=Xi.getParentFromElement(this._element),e={relatedTarget:this._element};if(!I.trigger(this._element,Li,e).defaultPrevented){if(this._inNavbar)tt.setDataAttribute(this._menu,"popper","none");else{if(void 0===fi)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:a(this._config.reference)?(e=this._config.reference,void 0!==this._config.reference.jquery&&(e=this._config.reference[0])):"object"==typeof this._config.reference&&(e=this._config.reference);const i=this._getPopperConfig(),n=i.modifiers.find(t=>"applyStyles"===t.name&&!1===t.enabled);this._popper=ui(e,this._menu,i),n&&tt.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!t.closest(Ri)&&[].concat(...document.body.children).forEach(t=>I.on(t,"mouseover",f)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle(Si),this._element.classList.toggle(Si),I.trigger(this._element,ki,e)}}hide(){if(d(this._element)||!this._menu.classList.contains(Si))return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._menu=null,this._popper&&(this._popper.destroy(),this._popper=null),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_addEventListeners(){I.on(this._element,xi,t=>{t.preventDefault(),this.toggle()})}_completeHide(t){I.trigger(this._element,Ai,t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>I.off(t,"mouseover",f)),this._popper&&this._popper.destroy(),this._menu.classList.remove(Si),this._element.classList.remove(Si),this._element.setAttribute("aria-expanded","false"),tt.removeDataAttribute(this._menu,"popper"),I.trigger(this._element,Oi,t))}_getConfig(t){if(t={...this.constructor.Default,...tt.getDataAttributes(this._element),...t},c(pi,t,this.constructor.DefaultType),"object"==typeof t.reference&&!a(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${pi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_getMenuElement(){return et.next(this._element,Hi)[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains(ji))return Ui;if(t.classList.contains(Pi))return Yi;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains(Ni)?e?zi:Wi:e?qi:Fi}_detectNavbar(){return null!==this._element.closest(`.${Ii}`)}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem(t){const e=et.find(Bi,this._menu).filter(h);if(!e.length)return;let i=e.indexOf(t.target);t.key===yi&&i>0&&i--,t.key===wi&&i<e.length-1&&i++,e[i=-1===i?0:i].focus()}static dropdownInterface(t,e){let i=y.get(t,mi);if(i||(i=new Xi(t,"object"==typeof e?e:null)),"string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}static jQueryInterface(t){return this.each(function(){Xi.dropdownInterface(this,t)})}static clearMenus(t){if(t){if(t.button===Ei||"keyup"===t.type&&t.key!==bi)return;if(/input|select|option|textarea|form/i.test(t.target.tagName))return}const e=et.find(Mi);for(let i=0,n=e.length;i<n;i++){const n=y.get(e[i],mi);if(!n||!1===n._config.autoClose)continue;if(!n._element.classList.contains(Si))continue;const s={relatedTarget:n._element};if(t){const e=t.composedPath(),i=e.includes(n._menu);if(e.includes(n._element)||"inside"===n._config.autoClose&&!i||"outside"===n._config.autoClose&&i)continue;if("keyup"===t.type&&t.key===bi&&n._menu.contains(t.target))continue;"click"===t.type&&(s.clickEvent=t)}n._completeHide(s)}}static getParentFromElement(t){return s(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?t.key===vi||t.key!==_i&&(t.key!==wi&&t.key!==yi||t.target.closest(Hi)):!Ti.test(t.key))return;const e=this.classList.contains(Si);if(!e&&t.key===_i)return;if(t.preventDefault(),t.stopPropagation(),d(this))return;const i=()=>this.matches(Mi)?this:et.prev(this,Mi)[0];if(t.key===_i)return i().focus(),void Xi.clearMenus();e||t.key!==yi&&t.key!==wi?e&&t.key!==vi?Xi.getInstance(i())._selectMenuItem(t):Xi.clearMenus():i().click()}}I.on(document,$i,Mi,Xi.dataApiKeydownHandler),I.on(document,$i,Hi,Xi.dataApiKeydownHandler),I.on(document,Di,Xi.clearMenus),I.on(document,Ci,Xi.clearMenus),I.on(document,Di,Mi,function(t){t.preventDefault(),Xi.dropdownInterface(this)}),_(pi,Xi);const Qi=()=>{const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)},Gi=(t=Qi())=>{Zi(),Ji("body","paddingRight",e=>e+t),Ji(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight",e=>e+t),Ji(".sticky-top","marginRight",e=>e-t)},Zi=()=>{const t=document.body.style.overflow;t&&tt.setDataAttribute(document.body,"overflow",t),document.body.style.overflow="hidden"},Ji=(t,e,i)=>{const n=Qi();et.find(t).forEach(t=>{if(t!==document.body&&window.innerWidth>t.clientWidth+n)return;const s=t.style[e],o=window.getComputedStyle(t)[e];tt.setDataAttribute(t,e,s),t.style[e]=`${i(Number.parseFloat(o))}px`})},tn=()=>{en("body","overflow"),en("body","paddingRight"),en(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight"),en(".sticky-top","marginRight")},en=(t,e)=>{et.find(t).forEach(t=>{const i=tt.getDataAttribute(t,e);void 0===i?t.style.removeProperty(e):(tt.removeDataAttribute(t,e),t.style[e]=i)})},nn={isVisible:!0,isAnimated:!1,rootElement:document.body,clickCallback:null},sn={isVisible:"boolean",isAnimated:"boolean",rootElement:"element",clickCallback:"(function|null)"},on="backdrop",rn="modal-backdrop",an="fade",ln="show",cn=`mousedown.bs.${on}`;class hn{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&p(this._getElement()),this._getElement().classList.add(ln),this._emulateAnimation(()=>{v(t)})):v(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove(ln),this._emulateAnimation(()=>{this.dispose(),v(t)})):v(t)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=rn,this._config.isAnimated&&t.classList.add(an),this._element=t}return this._element}_getConfig(t){return t={...nn,..."object"==typeof t?t:{}},c(on,t,sn),t}_append(){this._isAppended||(this._config.rootElement.appendChild(this._getElement()),I.on(this._getElement(),cn,()=>{v(this._config.clickCallback)}),this._isAppended=!0)}dispose(){this._isAppended&&(I.off(this._element,cn),this._getElement().parentNode.removeChild(this._element),this._isAppended=!1)}_emulateAnimation(t){if(!this._config.isAnimated)return void v(t);const e=o(this._getElement());I.one(this._getElement(),"transitionend",()=>v(t)),l(this._getElement(),e)}}const dn="modal",un="bs.modal",fn=`.${un}`,pn="Escape",mn={backdrop:!0,keyboard:!0,focus:!0},gn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},_n=`hide${fn}`,vn=`hidePrevented${fn}`,bn=`hidden${fn}`,yn=`show${fn}`,wn=`shown${fn}`,En=`focusin${fn}`,Tn=`resize${fn}`,An=`click.dismiss${fn}`,On=`keydown.dismiss${fn}`,Ln=`mouseup.dismiss${fn}`,kn=`mousedown.dismiss${fn}`,xn=`click${fn}.data-api`,Dn="modal-open",$n="fade",Cn="show",Sn="modal-static",Nn=".modal-dialog",jn=".modal-body",Pn='[data-bs-dismiss="modal"]';class In extends H{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=et.findOne(Nn,this._element),this._backdrop=this._initializeBackDrop(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1}static get Default(){return mn}static get DATA_KEY(){return un}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;this._isAnimated()&&(this._isTransitioning=!0);const e=I.trigger(this._element,yn,{relatedTarget:t});this._isShown||e.defaultPrevented||(this._isShown=!0,Gi(),document.body.classList.add(Dn),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),I.on(this._element,An,Pn,t=>this.hide(t)),I.on(this._dialog,kn,()=>{I.one(this._element,Ln,t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(t){if(t&&t.preventDefault(),!this._isShown||this._isTransitioning)return;if(I.trigger(this._element,_n).defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();if(e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),I.off(document,En),this._element.classList.remove(Cn),I.off(this._element,An),I.off(this._dialog,kn),e){const t=o(this._element);I.one(this._element,"transitionend",t=>this._hideModal(t)),l(this._element,t)}else this._hideModal()}dispose(){[window,this._dialog].forEach(t=>I.off(t,fn)),super.dispose(),I.off(document,En),this._config=null,this._dialog=null,this._backdrop.dispose(),this._backdrop=null,this._isShown=null,this._ignoreBackdropClick=null,this._isTransitioning=null}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new hn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_getConfig(t){return t={...mn,...tt.getDataAttributes(this._element),...t},c(dn,t,gn),t}_showElement(t){const e=this._isAnimated(),i=et.findOne(jn,this._dialog);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),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,i&&(i.scrollTop=0),e&&p(this._element),this._element.classList.add(Cn),this._config.focus&&this._enforceFocus();const n=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,I.trigger(this._element,wn,{relatedTarget:t})};if(e){const t=o(this._dialog);I.one(this._dialog,"transitionend",n),l(this._dialog,t)}else n()}_enforceFocus(){I.off(document,En),I.on(document,En,t=>{document===t.target||this._element===t.target||this._element.contains(t.target)||this._element.focus()})}_setEscapeEvent(){this._isShown?I.on(this._element,On,t=>{this._config.keyboard&&t.key===pn?(t.preventDefault(),this.hide()):this._config.keyboard||t.key!==pn||this._triggerBackdropTransition()}):I.off(this._element,On)}_setResizeEvent(){this._isShown?I.on(window,Tn,()=>this._adjustDialog()):I.off(window,Tn)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Dn),this._resetAdjustments(),tn(),I.trigger(this._element,bn)})}_showBackdrop(t){I.on(this._element,An,t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())}),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains($n)}_triggerBackdropTransition(){if(I.trigger(this._element,vn).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight;t||(this._element.style.overflowY="hidden"),this._element.classList.add(Sn);const e=o(this._dialog);I.off(this._element,"transitionend"),I.one(this._element,"transitionend",()=>{this._element.classList.remove(Sn),t||(I.one(this._element,"transitionend",()=>{this._element.style.overflowY=""}),l(this._element,e))}),l(this._element,e),this._element.focus()}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=Qi(),i=e>0;(!i&&t&&!g()||i&&!t&&g())&&(this._element.style.paddingLeft=`${e}px`),(i&&!t&&!g()||!i&&t&&g())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const i=In.getInstance(this)||new In(this,"object"==typeof t?t:{});if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}})}}I.on(document,xn,'[data-bs-toggle="modal"]',function(t){const e=s(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),I.one(e,yn,t=>{t.defaultPrevented||I.one(e,bn,()=>{h(this)&&this.focus()})}),(In.getInstance(e)||new In(e)).toggle(this)}),_(dn,In);const Mn="offcanvas",Hn="bs.offcanvas",Rn=`.${Hn}`,Bn=`load${Rn}.data-api`,Wn="Escape",zn={backdrop:!0,keyboard:!0,scroll:!1},Fn={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},qn="show",Un=`show${Rn}`,Yn=`shown${Rn}`,Kn=`hide${Rn}`,Vn=`hidden${Rn}`,Xn=`focusin${Rn}`,Qn=`click${Rn}.data-api`,Gn=`click.dismiss${Rn}`,Zn=`keydown.dismiss${Rn}`,Jn='[data-bs-dismiss="offcanvas"]';class ts extends H{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._addEventListeners()}static get Default(){return zn}static get DATA_KEY(){return Hn}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(I.trigger(this._element,Un,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(Gi(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(qn);const e=o(this._element);I.one(this._element,"transitionend",()=>{I.trigger(this._element,Yn,{relatedTarget:t})}),l(this._element,e)}hide(){if(!this._isShown)return;if(I.trigger(this._element,Kn).defaultPrevented)return;I.off(document,Xn),this._element.blur(),this._isShown=!1,this._element.classList.remove(qn),this._backdrop.hide();const t=o(this._element);I.one(this._element,"transitionend",()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||tn(),I.trigger(this._element,Vn)}),l(this._element,t)}dispose(){this._backdrop.dispose(),super.dispose(),I.off(document,Xn),this._config=null,this._backdrop=null}_getConfig(t){return t={...zn,...tt.getDataAttributes(this._element),..."object"==typeof t?t:{}},c(Mn,t,Fn),t}_initializeBackDrop(){return new hn({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_enforceFocusOnElement(t){I.off(document,Xn),I.on(document,Xn,e=>{document===e.target||t===e.target||t.contains(e.target)||t.focus()}),t.focus()}_addEventListeners(){I.on(this._element,Gn,Jn,()=>this.hide()),I.on(this._element,Zn,t=>{this._config.keyboard&&t.key===Wn&&this.hide()})}static jQueryInterface(t){return this.each(function(){const e=y.get(this,Hn)||new ts(this,"object"==typeof t?t:{});if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}I.on(document,Qn,'[data-bs-toggle="offcanvas"]',function(t){const e=s(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),d(this))return;I.one(e,Vn,()=>{h(this)&&this.focus()});const i=et.findOne(".offcanvas.show");i&&i!==e&&ts.getInstance(i).hide(),(y.get(e,Hn)||new ts(e)).toggle(this)}),I.on(window,Bn,()=>{et.find(".offcanvas.show").forEach(t=>(y.get(t,Hn)||new ts(t)).show())}),_(Mn,ts);const es=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),is=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,ns=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,ss=(t,e)=>{const i=t.nodeName.toLowerCase();if(e.includes(i))return!es.has(i)||Boolean(is.test(t.nodeValue)||ns.test(t.nodeValue));const n=e.filter(t=>t instanceof RegExp);for(let t=0,e=n.length;t<e;t++)if(n[t].test(i))return!0;return!1},os={"*":["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","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function rs(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=Object.keys(e),o=[].concat(...n.body.querySelectorAll("*"));for(let t=0,i=o.length;t<i;t++){const i=o[t],n=i.nodeName.toLowerCase();if(!s.includes(n)){i.parentNode.removeChild(i);continue}const r=[].concat(...i.attributes),a=[].concat(e["*"]||[],e[n]||[]);r.forEach(t=>{ss(t,a)||i.removeAttribute(t.nodeName)})}return n.body.innerHTML}const as="tooltip",ls="bs.tooltip",cs=`.${ls}`,hs="bs-tooltip",ds=new RegExp(`(^|\\s)${hs}\\S+`,"g"),us=new Set(["sanitize","allowList","sanitizeFn"]),fs={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},ps={AUTO:"auto",TOP:"top",RIGHT:g()?"left":"right",BOTTOM:"bottom",LEFT:g()?"right":"left"},ms={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:os,popperConfig:null},gs={HIDE:`hide${cs}`,HIDDEN:`hidden${cs}`,SHOW:`show${cs}`,SHOWN:`shown${cs}`,INSERTED:`inserted${cs}`,CLICK:`click${cs}`,FOCUSIN:`focusin${cs}`,FOCUSOUT:`focusout${cs}`,MOUSEENTER:`mouseenter${cs}`,MOUSELEAVE:`mouseleave${cs}`},_s="fade",vs="modal",bs="show",ys="show",ws="out",Es=".tooltip-inner",Ts="hover",As="focus",Os="click",Ls="manual";class ks extends H{constructor(t,e){if(void 0===fi)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return ms}static get NAME(){return as}static get DATA_KEY(){return ls}static get Event(){return gs}static get EVENT_KEY(){return cs}static get DefaultType(){return fs}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(bs))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),I.off(this._element.closest(`.${vs}`),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.config=null,this.tip=null,super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const t=I.trigger(this._element,this.constructor.Event.SHOW),i=u(this._element),n=null===i?this._element.ownerDocument.documentElement.contains(this._element):i.contains(this._element);if(t.defaultPrevented||!n)return;const s=this.getTipElement(),r=e(this.constructor.NAME);s.setAttribute("id",r),this._element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&s.classList.add(_s);const a="function"==typeof this.config.placement?this.config.placement.call(this,s,this._element):this.config.placement,c=this._getAttachment(a);this._addAttachmentClass(c);const h=this._getContainer();y.set(s,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(h.appendChild(s),I.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=ui(this._element,s,this._getPopperConfig(c)),s.classList.add(bs);const d="function"==typeof this.config.customClass?this.config.customClass():this.config.customClass;d&&s.classList.add(...d.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>{I.on(t,"mouseover",f)});const p=()=>{const t=this._hoverState;this._hoverState=null,I.trigger(this._element,this.constructor.Event.SHOWN),t===ws&&this._leave(null,this)};if(this.tip.classList.contains(_s)){const t=o(this.tip);I.one(this.tip,"transitionend",p),l(this.tip,t)}else p()}hide(){if(!this._popper)return;const t=this.getTipElement(),e=()=>{this._isWithActiveTrigger()||(this._hoverState!==ys&&t.parentNode&&t.parentNode.removeChild(t),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),I.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))};if(!I.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){if(t.classList.remove(bs),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>I.off(t,"mouseover",f)),this._activeTrigger[Os]=!1,this._activeTrigger[As]=!1,this._activeTrigger[Ts]=!1,this.tip.classList.contains(_s)){const i=o(t);I.one(t,"transitionend",e),l(t,i)}else e();this._hoverState=""}}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");return t.innerHTML=this.config.template,this.tip=t.children[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(et.findOne(Es,t),this.getTitle()),t.classList.remove(_s,bs)}setElementContent(t,e){if(null!==t)return"object"==typeof e&&a(e)?(e.jquery&&(e=e[0]),void(this.config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this.config.html?(this.config.sanitize&&(e=rs(e,this.config.allowList,this.config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){let t=this._element.getAttribute("data-bs-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this._element):this.config.title),t}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){const i=this.constructor.DATA_KEY;return(e=e||y.get(t.delegateTarget,i))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),y.set(t.delegateTarget,i,e)),e}_getOffset(){const{offset:t}=this.config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this.config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this.config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this.config.popperConfig?this.config.popperConfig(e):this.config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`${hs}-${this.updateAttachment(t)}`)}_getContainer(){return!1===this.config.container?document.getElementById("lfb_bootstraped"):a(this.config.container)?this.config.container:et.findOne(this.config.container)}_getAttachment(t){return ps[t.toUpperCase()]}_setListeners(){this.config.trigger.split(" ").forEach(t=>{if("click"===t)I.on(this._element,this.constructor.Event.CLICK,this.config.selector,t=>this.toggle(t));else if(t!==Ls){const e=t===Ts?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i=t===Ts?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;I.on(this._element,e,this.config.selector,t=>this._enter(t)),I.on(this._element,i,this.config.selector,t=>this._leave(t))}}),this._hideModalHandler=(()=>{this._element&&this.hide()}),I.on(this._element.closest(`.${vs}`),"hide.bs.modal",this._hideModalHandler),this.config.selector?this.config={...this.config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?As:Ts]=!0),e.getTipElement().classList.contains(bs)||e._hoverState===ys?e._hoverState=ys:(clearTimeout(e._timeout),e._hoverState=ys,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(()=>{e._hoverState===ys&&e.show()},e.config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?As:Ts]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=ws,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(()=>{e._hoverState===ws&&e.hide()},e.config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=tt.getDataAttributes(this._element);return Object.keys(e).forEach(t=>{us.has(t)&&delete e[t]}),t&&"object"==typeof t.container&&t.container.jquery&&(t.container=t.container[0]),"number"==typeof(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),c(as,t,this.constructor.DefaultType),t.sanitize&&(t.template=rs(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};if(this.config)for(const e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(ds);null!==e&&e.length>0&&e.map(t=>t.trim()).forEach(e=>t.classList.remove(e))}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}static jQueryInterface(t){return this.each(function(){let e=y.get(this,ls);const i="object"==typeof t&&t;if((e||!/dispose|hide/.test(t))&&(e||(e=new ks(this,i)),"string"==typeof t)){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}_(as,ks);const xs="scrollspy",Ds="bs.scrollspy",$s=`.${Ds}`,Cs={offset:10,method:"auto",target:""},Ss={offset:"number",method:"string",target:"(string|element)"},Ns=`activate${$s}`,js=`scroll${$s}`,Ps=`load${$s}.data-api`,Is="dropdown-item",Ms="active",Hs=".nav, .list-group",Rs=".nav-link",Bs=".nav-item",Ws=".list-group-item",zs=".dropdown",Fs=".dropdown-toggle",qs="offset",Us="position";class Ys extends H{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._selector=`${this._config.target} ${Rs}, ${this._config.target} ${Ws}, ${this._config.target} .${Is}`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,I.on(this._scrollElement,js,()=>this._process()),this.refresh(),this._process()}static get Default(){return Cs}static get DATA_KEY(){return Ds}refresh(){const t=this._scrollElement===this._scrollElement.window?qs:Us,e="auto"===this._config.method?t:this._config.method,i=e===Us?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),et.find(this._selector).map(t=>{const s=n(t),o=s?et.findOne(s):null;if(o){const t=o.getBoundingClientRect();if(t.width||t.height)return[tt[e](o).top+i,s]}return null}).filter(t=>t).sort((t,e)=>t[0]-e[0]).forEach(t=>{this._offsets.push(t[0]),this._targets.push(t[1])})}dispose(){super.dispose(),I.off(this._scrollElement,$s),this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null}_getConfig(t){if("string"!=typeof(t={...Cs,...tt.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}}).target&&a(t.target)){let{id:i}=t.target;i||(i=e(xs),t.target.id=i),t.target=`#${i}`}return c(xs,t,Ss),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;){this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}}_activate(t){this._activeTarget=t,this._clear();const e=this._selector.split(",").map(e=>`${e}[data-bs-target="${t}"],${e}[href="${t}"]`),i=et.findOne(e.join(","));i.classList.contains(Is)?(et.findOne(Fs,i.closest(zs)).classList.add(Ms),i.classList.add(Ms)):(i.classList.add(Ms),et.parents(i,Hs).forEach(t=>{et.prev(t,`${Rs}, ${Ws}`).forEach(t=>t.classList.add(Ms)),et.prev(t,Bs).forEach(t=>{et.children(t,Rs).forEach(t=>t.classList.add(Ms))})})),I.trigger(this._scrollElement,Ns,{relatedTarget:t})}_clear(){et.find(this._selector).filter(t=>t.classList.contains(Ms)).forEach(t=>t.classList.remove(Ms))}static jQueryInterface(t){return this.each(function(){const e=Ys.getInstance(this)||new Ys(this,"object"==typeof t?t:{});if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}I.on(window,Ps,()=>{et.find('[data-bs-spy="scroll"]').forEach(t=>new Ys(t))}),_(xs,Ys);const Ks="bs.tab",Vs=`.${Ks}`,Xs=`hide${Vs}`,Qs=`hidden${Vs}`,Gs=`show${Vs}`,Zs=`shown${Vs}`,Js=`click${Vs}.data-api`,to="dropdown-menu",eo="active",io="fade",no="show",so=".dropdown",oo=".nav, .list-group",ro=".active",ao=":scope > li > .active",lo=".dropdown-toggle",co=":scope > .dropdown-menu .active";class ho extends H{static get DATA_KEY(){return Ks}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(eo))return;let t;const e=s(this._element),i=this._element.closest(oo);if(i){const e="UL"===i.nodeName||"OL"===i.nodeName?ao:ro;t=(t=et.find(e,i))[t.length-1]}const n=t?I.trigger(t,Xs,{relatedTarget:this._element}):null;if(I.trigger(this._element,Gs,{relatedTarget:t}).defaultPrevented||null!==n&&n.defaultPrevented)return;this._activate(this._element,i);const o=()=>{I.trigger(t,Qs,{relatedTarget:this._element}),I.trigger(this._element,Zs,{relatedTarget:t})};e?this._activate(e,e.parentNode,o):o()}_activate(t,e,i){const n=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?et.children(e,ro):et.find(ao,e))[0],s=i&&n&&n.classList.contains(io),r=()=>this._transitionComplete(t,n,i);if(n&&s){const t=o(n);n.classList.remove(no),I.one(n,"transitionend",r),l(n,t)}else r()}_transitionComplete(t,e,i){if(e){e.classList.remove(eo);const t=et.findOne(co,e.parentNode);t&&t.classList.remove(eo),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add(eo),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),p(t),t.classList.contains(io)&&t.classList.add(no);let n=t.parentNode;if(n&&"LI"===n.nodeName&&(n=n.parentNode),n&&n.classList.contains(to)){const e=t.closest(so);e&&et.find(lo,e).forEach(t=>t.classList.add(eo)),t.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(t){return this.each(function(){const e=y.get(this,Ks)||new ho(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}I.on(document,Js,'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),d(this))return;(y.get(this,Ks)||new ho(this)).show()}),_("tab",ho);const uo="toast",fo="bs.toast",po=`.${fo}`,mo=`click.dismiss${po}`,go=`hide${po}`,_o=`hidden${po}`,vo=`show${po}`,bo=`shown${po}`,yo="fade",wo="hide",Eo="show",To="showing",Ao={animation:"boolean",autohide:"boolean",delay:"number"},Oo={animation:!0,autohide:!0,delay:5e3},Lo='[data-bs-dismiss="toast"]';class ko extends H{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._setListeners()}static get DefaultType(){return Ao}static get Default(){return Oo}static get DATA_KEY(){return fo}show(){if(I.trigger(this._element,vo).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(yo);const t=()=>{this._element.classList.remove(To),this._element.classList.add(Eo),I.trigger(this._element,bo),this._config.autohide&&(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))};if(this._element.classList.remove(wo),p(this._element),this._element.classList.add(To),this._config.animation){const e=o(this._element);I.one(this._element,"transitionend",t),l(this._element,e)}else t()}hide(){if(!this._element.classList.contains(Eo))return;if(I.trigger(this._element,go).defaultPrevented)return;const t=()=>{this._element.classList.add(wo),I.trigger(this._element,_o)};if(this._element.classList.remove(Eo),this._config.animation){const e=o(this._element);I.one(this._element,"transitionend",t),l(this._element,e)}else t()}dispose(){this._clearTimeout(),this._element.classList.contains(Eo)&&this._element.classList.remove(Eo),super.dispose(),this._config=null}_getConfig(t){return t={...Oo,...tt.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},c(uo,t,this.constructor.DefaultType),t}_setListeners(){I.on(this._element,mo,Lo,()=>this.hide())}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let e=y.get(this,fo);if(e||(e=new ko(this,"object"==typeof t&&t)),"string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}return _(uo,ko),{Alert:K,Button:G,Carousel:Ut,Dropdown:Xi,Modal:In,Offcanvas:ts,ScrollSpy:Ys,Tab:ho,Toast:ko,Tooltip:ks}});

/* bootstrapSwitch v1.3 by Larentis Mattia @spiritualGuru */
!function(a){a.fn.bootstrapSwitch=function(c){var b={init:function(){return this.each(function(){var p=a(this),m,f,l,o,h="",g=p.attr("class"),i,d,j="ON",e="OFF",n=false;a.each(["switch-mini","switch-small","switch-large"],function(q,r){if(g.indexOf(r)>=0){h=r}});p.addClass("has-switch");if(p.data("on")!==undefined){i="switch-"+p.data("on")}if(p.data("on-label")!==undefined){j=p.data("on-label")}if(p.data("off-label")!==undefined){e=p.data("off-label")}if(p.data("icon")!==undefined){n=p.data("icon")}f=a("<span>").addClass("switch-left").addClass(h).addClass(i).html(j);i="";if(p.data("off")!==undefined){i="switch-"+p.data("off")}l=a("<span>").addClass("switch-right").addClass(h).addClass(i).html(e);o=a("<label>").html("&nbsp;").addClass(h).attr("for",p.find("input").attr("id"));if(n){o.html('<i class="'+n+'"></i>')}m=p.find(":checkbox").wrap(a("<div>")).parent().data("animated",false);if(p.data("animated")!==false){m.addClass("switch-animate").data("animated",true)}m.append(f).append(o).append(l);p.find(">div").addClass(p.find("input").is(":checked")?"switch-on":"switch-off");if(p.find("input").is(":disabled")){a(this).addClass("deactivate")}var k=function(q){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){q.siblings("label").trigger("mousedown").trigger("mouseup").trigger("click")}};p.on("keydown",function(q){if(q.keyCode===32){q.stopImmediatePropagation();q.preventDefault();k(a(q.target).find("span:first"))}});f.on("click",function(q){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){k(a(this))}});l.on("click",function(q){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){k(a(this))}});p.find("input").on("change",function(u){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){var t=a(this),r=t.parent(),q=t.is(":checked"),s=r.is(".switch-off");u.preventDefault();r.css("left","");if(s===q){if(q){r.removeClass("switch-off").addClass("switch-on")}else{r.removeClass("switch-on").addClass("switch-off")}if(r.data("animated")!==false){r.addClass("switch-animate")}r.parent().trigger("switch-change",{el:t,value:q})}}});p.find("label").on("mousedown touchstart",function(r){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){var q=a(this);d=false;r.preventDefault();r.stopImmediatePropagation();q.closest("div").removeClass("switch-animate");if(q.closest(".has-switch").is(".deactivate")){q.unbind("click")}else{q.on("mousemove touchmove",function(x){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){var s=a(this).closest(".switch"),u=(x.pageX||x.originalEvent.targetTouches[0].pageX)-s.offset().left,v=(u/s.width())*100,w=25,t=75;d=true;if(v<w){v=w}else{if(v>t){v=t}}s.find(">div").css("left",(v-t)+"%")}});q.on("click touchend",function(u){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){var t=a(this),s=a(u.target),v=s.siblings("input");u.stopImmediatePropagation();u.preventDefault();t.unbind("mouseleave");if(d){v.prop("checked",!(parseInt(t.parent().css("left"))<-25))}else{v.prop("checked",!v.is(":checked"))}d=false;v.trigger("change")}});q.on("mouseleave",function(t){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){var s=a(this),u=s.siblings("input");t.preventDefault();t.stopImmediatePropagation();s.unbind("mouseleave");s.trigger("mouseup");u.prop("checked",!(parseInt(s.parent().css("left"))<-25)).trigger("change")}});q.on("mouseup",function(s){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){s.stopImmediatePropagation();s.preventDefault();a(this).unbind("mousemove")}})}}})})},toggleActivation:function(){a(this).toggleClass("deactivate")},isActive:function(){return !a(this).hasClass("deactivate")},setActive:function(d){if(d){a(this).removeClass("deactivate")}else{a(this).addClass("deactivate")}},toggleState:function(d){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){var e=a(this).find("input:checkbox");e.prop("checked",!e.is(":checked")).trigger("change",d)}},setState:function(e,d){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){a(this).find("input:checkbox").prop("checked",e).trigger("change",d)}},status:function(){return a(this).find("input:checkbox").is(":checked")},destroy:function(){var d=a(this).find("div"),e;d.find(":not(input:checkbox)").remove();e=d.children();e.unwrap().unwrap();e.unbind("change");return e}};if(b[c]){return b[c].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof c==="object"||!c){return b.init.apply(this,arguments)}else{a.error("Method "+c+" does not exist!")}}}}(window.jQuery);
/* colpick Color Picker */
(function(d){var p=function(){var c={showEvent:"click",onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},colorScheme:"light",color:"00ff62",livePreview:!0,flat:!1,layout:"full",submit:1,submitText:"OK",height:156,parent:"body"},n=function(a,b){a=m(a);d(b).data("colpick").fields.eq(1).val(a.r).end().eq(2).val(a.g).end().eq(3).val(a.b).end()},f=function(a,b){d(b).data("colpick").fields.eq(4).val(Math.round(a.h)).end().eq(5).val(Math.round(a.s)).end().eq(6).val(Math.round(a.b)).end()},
e=function(a,b){d(b).data("colpick").fields.eq(0).val(g(a))},k=function(a,b){d(b).data("colpick").selector.css("backgroundColor","#"+g({h:a.h,s:100,b:100}));d(b).data("colpick").selectorIndic.css({left:parseInt(d(b).data("colpick").height*a.s/100,10),top:parseInt(d(b).data("colpick").height*(100-a.b)/100,10)})},u=function(a,b){d(b).data("colpick").hue.css("top",parseInt(d(b).data("colpick").height-d(b).data("colpick").height*a.h/360,10))},p=function(a,b){d(b).data("colpick").currentColor.css("backgroundColor",
"#"+g(a))},v=function(a,b){d(b).data("colpick").newColor.css("backgroundColor","#"+g(a))},q=function(a){a=d(this).parent().parent();if(0<this.parentNode.className.indexOf("_hex")){var b=a.data("colpick");var r=this.value,c=6-r.length;if(0<c){for(var h=[],l=0;l<c;l++)h.push("0");h.push(r);r=h.join("")}b.color=b=w(r);n(b,a.get(0));f(b,a.get(0))}else 0<this.parentNode.className.indexOf("_hsb")?(a.data("colpick").color=b=z({h:parseInt(a.data("colpick").fields.eq(4).val(),10),s:parseInt(a.data("colpick").fields.eq(5).val(),
10),b:parseInt(a.data("colpick").fields.eq(6).val(),10)}),n(b,a.get(0)),e(b,a.get(0))):(b=a.data("colpick"),r=parseInt(a.data("colpick").fields.eq(1).val(),10),c=parseInt(a.data("colpick").fields.eq(2).val(),10),h=parseInt(a.data("colpick").fields.eq(3).val(),10),b.color=b=t({r:Math.min(255,Math.max(0,r)),g:Math.min(255,Math.max(0,c)),b:Math.min(255,Math.max(0,h))}),e(b,a.get(0)),f(b,a.get(0)));k(b,a.get(0));u(b,a.get(0));v(b,a.get(0));a.data("colpick").onChange.apply(a.parent(),[b,g(b),m(b),a.data("colpick").el,
0])},x=function(a){d(this).parent().removeClass("colpick_focus")},y=function(){d(this).parent().parent().data("colpick").fields.parent().removeClass("colpick_focus");d(this).parent().addClass("colpick_focus")},I=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1;var b=d(this).parent().find("input").focus();a={el:d(this).parent().addClass("colpick_slider"),max:0<this.parentNode.className.indexOf("_hsb_h")?360:0<this.parentNode.className.indexOf("_hsb")?100:255,y:a.pageY,field:b,val:parseInt(b.val(),
10),preview:d(this).parent().parent().data("colpick").livePreview};d(document).on("mouseup",a,A);d(document).on("mousemove",a,B)},B=function(a){a.data.field.val(Math.max(0,Math.min(a.data.max,parseInt(a.data.val-a.pageY+a.data.y,10))));a.data.preview&&q.apply(a.data.field.get(0),[!0]);return!1},A=function(a){q.apply(a.data.field.get(0),[!0]);a.data.el.removeClass("colpick_slider").find("input").focus();d(document).off("mouseup",A);d(document).off("mousemove",B);return!1},J=function(a){a.preventDefault?
a.preventDefault():a.returnValue=!1;var b={cal:d(this).parent(),y:d(this).offset().top};d(document).on("mouseup touchend",b,C);d(document).on("mousemove touchmove",b,D);a="touchstart"==a.type?a.originalEvent.changedTouches[0].pageY:a.pageY;q.apply(b.cal.data("colpick").fields.eq(4).val(parseInt(360*(b.cal.data("colpick").height-(a-b.y))/b.cal.data("colpick").height,10)).get(0),[b.cal.data("colpick").livePreview]);return!1},D=function(a){var b="touchmove"==a.type?a.originalEvent.changedTouches[0].pageY:
a.pageY;q.apply(a.data.cal.data("colpick").fields.eq(4).val(parseInt(360*(a.data.cal.data("colpick").height-Math.max(0,Math.min(a.data.cal.data("colpick").height,b-a.data.y)))/a.data.cal.data("colpick").height,10)).get(0),[a.data.preview]);return!1},C=function(a){n(a.data.cal.data("colpick").color,a.data.cal.get(0));e(a.data.cal.data("colpick").color,a.data.cal.get(0));d(document).off("mouseup touchend",C);d(document).off("mousemove touchmove",D);return!1},K=function(a){a.preventDefault?a.preventDefault():
a.returnValue=!1;var b={cal:d(this).parent(),pos:d(this).offset()};b.preview=b.cal.data("colpick").livePreview;d(document).on("mouseup touchend",b,E);d(document).on("mousemove touchmove",b,F);if("touchstart"==a.type){var c=a.originalEvent.changedTouches[0].pageX;a=a.originalEvent.changedTouches[0].pageY}else c=a.pageX,a=a.pageY;q.apply(b.cal.data("colpick").fields.eq(6).val(parseInt(100*(b.cal.data("colpick").height-(a-b.pos.top))/b.cal.data("colpick").height,10)).end().eq(5).val(parseInt(100*(c-
b.pos.left)/b.cal.data("colpick").height,10)).get(0),[b.preview]);return!1},F=function(a){if("touchmove"==a.type){var b=a.originalEvent.changedTouches[0].pageX;var d=a.originalEvent.changedTouches[0].pageY}else b=a.pageX,d=a.pageY;q.apply(a.data.cal.data("colpick").fields.eq(6).val(parseInt(100*(a.data.cal.data("colpick").height-Math.max(0,Math.min(a.data.cal.data("colpick").height,d-a.data.pos.top)))/a.data.cal.data("colpick").height,10)).end().eq(5).val(parseInt(100*Math.max(0,Math.min(a.data.cal.data("colpick").height,
b-a.data.pos.left))/a.data.cal.data("colpick").height,10)).get(0),[a.data.preview]);return!1},E=function(a){n(a.data.cal.data("colpick").color,a.data.cal.get(0));e(a.data.cal.data("colpick").color,a.data.cal.get(0));d(document).off("mouseup touchend",E);d(document).off("mousemove touchmove",F);return!1},L=function(a){a=d(this).parent();var b=a.data("colpick").color;a.data("colpick").origColor=b;p(b,a.get(0));a.data("colpick").onSubmit(b,g(b),m(b),a.data("colpick").el)},H=function(a){a.stopPropagation();
a=d("#"+d(this).data("colpickId"));a.data("colpick").onBeforeShow.apply(this,[a.get(0)]);var b=d(this).offset(),c=b.top+this.offsetHeight;b=b.left;var n=M(),e=a.width();b+e>n.l+n.w&&(b-=e);a.css({left:b+"px",top:c+"px"});0!=a.data("colpick").onShow.apply(this,[a.get(0)])&&a.fadeIn();d("html").on("mousedown",{cal:a},G);a.on("mousedown",function(a){a.stopPropagation()})},G=function(a){0!=a.data.cal.data("colpick").onHide.apply(this,[a.data.cal.get(0)])&&a.data.cal.hide();d("html").off("mousedown",G)},
M=function(){var a="CSS1Compat"==document.compatMode;return{l:window.pageXOffset||(a?document.documentElement.scrollLeft:document.body.scrollLeft),w:window.innerWidth||(a?document.documentElement.clientWidth:document.body.clientWidth)}},z=function(a){return{h:Math.min(360,Math.max(0,a.h)),s:Math.min(100,Math.max(0,a.s)),b:Math.min(100,Math.max(0,a.b))}},N=function(){var a=d(this).parent(),b=a.data("colpick").origColor;a.data("colpick").color=b;n(b,a.get(0));e(b,a.get(0));f(b,a.get(0));k(b,a.get(0));
u(b,a.get(0));v(b,a.get(0))};return{init:function(a){a=d.extend({},c,a||{});if("string"==typeof a.color)a.color=w(a.color);else if(void 0!=a.color.r&&void 0!=a.color.g&&void 0!=a.color.b)a.color=t(a.color);else if(void 0!=a.color.h&&void 0!=a.color.s&&void 0!=a.color.b)a.color=z(a.color);else return this;return this.each(function(){if(!d(this).data("colpickId")){var b=d.extend({},a);b.origColor=a.color;var c="collorpicker_"+parseInt(1E3*Math.random());d(this).data("colpickId",c);c=d('<div class="colpick"><div class="colpick_color"><div class="colpick_color_overlay1"><div class="colpick_color_overlay2"><div class="colpick_selector_outer"><div class="colpick_selector_inner"></div></div></div></div></div><div class="colpick_hue"><div class="colpick_hue_arrs"><div class="colpick_hue_larr"></div><div class="colpick_hue_rarr"></div></div></div><div class="colpick_new_color"></div><div class="colpick_current_color"></div><div class="colpick_hex_field"><div class="colpick_field_letter">#</div><input type="text" maxlength="6" size="6" /></div><div class="colpick_rgb_r colpick_field"><div class="colpick_field_letter">R</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_rgb_g colpick_field"><div class="colpick_field_letter">G</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_rgb_b colpick_field"><div class="colpick_field_letter">B</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_hsb_h colpick_field"><div class="colpick_field_letter">H</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_hsb_s colpick_field"><div class="colpick_field_letter">S</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_hsb_b colpick_field"><div class="colpick_field_letter">B</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_submit"></div></div>').attr("id",
c);c.addClass("colpick_"+b.layout+(b.submit?"":" colpick_"+b.layout+"_ns"));"light"!=b.colorScheme&&c.addClass("colpick_"+b.colorScheme);c.find("div.colpick_submit").html(b.submitText).on("click",L);b.fields=c.find("input").on("change",q).on("focusout",x).on("focusin",y);c.find("div.colpick_field_arrs").on("mousedown",I).end().find("div.colpick_current_color").on("click",N);b.selector=c.find("div.colpick_color").on("mousedown touchstart",K);b.selectorIndic=b.selector.find("div.colpick_selector_outer");
b.el=this;b.hue=c.find("div.colpick_hue_arrs");var g=b.hue.parent(),h=navigator.userAgent.toLowerCase(),l="Microsoft Internet Explorer"===navigator.appName,m=l?parseFloat(h.match(/msie ([0-9]{1,}[\.0-9]{0,})/)[1]):0;h="#ff0000 #ff0080 #ff00ff #8000ff #0000ff #0080ff #00ffff #00ff80 #00ff00 #80ff00 #ffff00 #ff8000 #ff0000".split(" ");if(l&&10>m)for(l=0;11>=l;l++)m=d("<div></div>").attr("style","height:8.333333%; filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr="+h[l]+
", endColorstr="+h[l+1]+'); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='+h[l]+", endColorstr="+h[l+1]+')";'),g.append(m);else h=h.join(","),g.attr("style","background:-webkit-linear-gradient(top,"+h+"); background: -o-linear-gradient(top,"+h+"); background: -ms-linear-gradient(top,"+h+"); background:-moz-linear-gradient(top,"+h+"); -webkit-linear-gradient(top,"+h+"); background:linear-gradient(to bottom,"+h+"); ");c.find("div.colpick_hue").on("mousedown touchstart",
J);b.newColor=c.find("div.colpick_new_color");b.currentColor=c.find("div.colpick_current_color");c.data("colpick",b);n(b.color,c.get(0));f(b.color,c.get(0));e(b.color,c.get(0));u(b.color,c.get(0));k(b.color,c.get(0));p(b.color,c.get(0));v(b.color,c.get(0));b.flat?(c.appendTo(this).show(),c.css({position:"relative",display:"block"})):("body"==b.parent?c.appendTo(document.body):c.appendTo(b.parent),d(this).on(b.showEvent,H),c.css({position:"absolute"}))}})},showPicker:function(){return this.each(function(){d(this).data("colpickId")&&
H.apply(this)})},hidePicker:function(){return this.each(function(){d(this).data("colpickId")&&d("#"+d(this).data("colpickId")).hide()})},setColor:function(a,b){b="undefined"===typeof b?1:b;if("string"==typeof a)a=w(a);else if(void 0!=a.r&&void 0!=a.g&&void 0!=a.b)a=t(a);else if(void 0!=a.h&&void 0!=a.s&&void 0!=a.b)a=z(a);else return this;return this.each(function(){if(d(this).data("colpickId")){var c=d("#"+d(this).data("colpickId"));c.data("colpick").color=a;c.data("colpick").origColor=a;n(a,c.get(0));
f(a,c.get(0));e(a,c.get(0));u(a,c.get(0));k(a,c.get(0));v(a,c.get(0));c.data("colpick").onChange.apply(c.parent(),[a,g(a),m(a),c.data("colpick").el,1]);b&&p(a,c.get(0))}})}}}(),x=function(c){c=parseInt(-1<c.indexOf("#")?c.substring(1):c,16);return{r:c>>16,g:(c&65280)>>8,b:c&255}},w=function(c){return t(x(c))},t=function(c){var d={h:0,s:0,b:0},f=Math.max(c.r,c.g,c.b),e=f-Math.min(c.r,c.g,c.b);d.b=f;d.s=0!=f?255*e/f:0;d.h=0!=d.s?c.r==f?(c.g-c.b)/e:c.g==f?2+(c.b-c.r)/e:4+(c.r-c.g)/e:-1;d.h*=60;0>d.h&&
(d.h+=360);d.s*=100/255;d.b*=100/255;return d},m=function(c){var d,f;var e=c.h;var k=255*c.s/100;c=255*c.b/100;if(0==k)e=d=f=c;else{k=(255-k)*c/255;var g=e%60*(c-k)/60;360==e&&(e=0);60>e?(e=c,f=k,d=k+g):120>e?(d=c,f=k,e=c-g):180>e?(d=c,e=k,f=k+g):240>e?(f=c,e=k,d=c-g):300>e?(f=c,d=k,e=k+g):360>e?(e=c,d=k,f=c-g):f=d=e=0}return{r:Math.round(e),g:Math.round(d),b:Math.round(f)}},y=function(c){var g=[c.r.toString(16),c.g.toString(16),c.b.toString(16)];d.each(g,function(c,d){1==d.length&&(g[c]="0"+d)});
return g.join("")},g=function(c){return y(m(c))};d.fn.extend({colpick:p.init,colpickHide:p.hidePicker,colpickShow:p.showPicker,colpickSetColor:p.setColor});d.extend({colpick:{rgbToHex:y,rgbToHsb:t,hsbToHex:g,hsbToRgb:m,hexToHsb:w,hexToRgb:x}})})(jQuery);
/* Dropzone*/
(function(){"use strict";var o,t,e,d,l,i,n,N,U,a=[].slice,s={}.hasOwnProperty;function r(){}function R(e,t){if(this.element=e,this.version=R.version,this.defaultOptions.previewTemplate=this.defaultOptions.previewTemplate.replace(/\n*/g,""),this.clickableElements=[],this.listeners=[],this.files=[],"string"==typeof this.element&&(this.element=document.querySelector(this.element)),!this.element||null==this.element.nodeType)throw new Error("Invalid dropzone element.");if(this.element.dropzone)throw new Error("Dropzone already attached.");if(R.instances.push(this),this.element.dropzone=this,e=null!=(e=R.optionsForElement(this.element))?e:{},this.options=N({},this.defaultOptions,e,null!=t?t:{}),this.options.forceFallback||!R.isBrowserSupported())return this.options.fallback.call(this);if(null==this.options.url&&(this.options.url=this.element.getAttribute("action")),!this.options.url)throw new Error("No URL provided.");if(this.options.acceptedFiles&&this.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");this.options.acceptedMimeTypes&&(this.options.acceptedFiles=this.options.acceptedMimeTypes,delete this.options.acceptedMimeTypes),this.options.method=this.options.method.toUpperCase(),(t=this.getExistingFallback())&&t.parentNode&&t.parentNode.removeChild(t),!1!==this.options.previewsContainer&&(this.options.previewsContainer?this.previewsContainer=R.getElement(this.options.previewsContainer,"previewsContainer"):this.previewsContainer=this.element),this.options.clickable&&(!0===this.options.clickable?this.clickableElements=[this.element]:this.clickableElements=R.getElements(this.options.clickable,"clickable")),this.init()}i=function(){},r.prototype.addEventListener=r.prototype.on,r.prototype.on=function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},r.prototype.emit=function(){var e,t,i,n=arguments[0],s=2<=arguments.length?a.call(arguments,1):[];if(this._callbacks=this._callbacks||{},e=this._callbacks[n])for(t=0,i=e.length;t<i;t++)e[t].apply(this,s);return this},r.prototype.removeListener=r.prototype.off,r.prototype.removeAllListeners=r.prototype.off,r.prototype.removeEventListener=r.prototype.off,r.prototype.off=function(e,t){var i,n,s,r;if(!this._callbacks||0===arguments.length)return this._callbacks={},this;if(!(i=this._callbacks[e]))return this;if(1===arguments.length)return delete this._callbacks[e],this;for(n=s=0,r=i.length;s<r;n=++s)if(i[n]===t){i.splice(n,1);break}return this},function(e,t){for(var i in t)s.call(t,i)&&(e[i]=t[i]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(R,e=r),R.prototype.Emitter=e,R.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],R.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,parallelUploads:2,uploadMultiple:!1,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,filesizeBase:1e3,maxFiles:null,params:{},clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",accept:function(e,t){return t()},init:function(){return i},forceFallback:!1,fallback:function(){var e,t,i,n,s,r;for(this.element.className=this.element.className+" dz-browser-not-supported",n=0,s=(r=this.element.getElementsByTagName("div")).length;n<s;n++)e=r[n],/(^| )dz-message($| )/.test(e.className)&&((t=e).className="dz-message");return t||(t=R.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(t)),(i=t.getElementsByTagName("span")[0])&&(null!=i.textContent?i.textContent=this.options.dictFallbackMessage:null!=i.innerText&&(i.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,i={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height;return i.optWidth=this.options.thumbnailWidth,i.optHeight=this.options.thumbnailHeight,null==i.optWidth&&null==i.optHeight?(i.optWidth=i.srcWidth,i.optHeight=i.srcHeight):null==i.optWidth?i.optWidth=n*i.optHeight:null==i.optHeight&&(i.optHeight=1/n*i.optWidth),t=i.optWidth/i.optHeight,e.height<i.optHeight||e.width<i.optWidth?(i.trgHeight=i.srcHeight,i.trgWidth=i.srcWidth):t<n?(i.srcHeight=e.height,i.srcWidth=i.srcHeight*t):(i.srcWidth=e.width,i.srcHeight=i.srcWidth/t),i.srcX=(e.width-i.srcWidth)/2,i.srcY=(e.height-i.srcHeight)/2,i},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:i,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:i,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){var e,i,n,s,r,o,l,a,p,u,d,c,h;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(t.previewElement=R.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement),n=0,o=(p=t.previewElement.querySelectorAll("[data-dz-name]")).length;n<o;n++)p[n].textContent=this._renameFilename(t.name);for(s=0,l=(u=t.previewElement.querySelectorAll("[data-dz-size]")).length;s<l;s++)u[s].innerHTML=this.filesize(t.size);for(this.options.addRemoveLinks&&(t._removeLink=R.createElement('<a class="dz-remove fas fa-trash" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),t.previewElement.appendChild(t._removeLink)),h=this,e=function(e){return e.preventDefault(),e.stopPropagation(),t.status===R.UPLOADING?R.confirm(h.options.dictCancelUploadConfirmation,function(){return h.removeFile(t)}):h.options.dictRemoveFileConfirmation?R.confirm(h.options.dictRemoveFileConfirmation,function(){return h.removeFile(t)}):h.removeFile(t)},c=[],r=0,a=(d=t.previewElement.querySelectorAll("[data-dz-remove]")).length;r<a;r++)i=d[r],c.push(i.addEventListener("click",e));return c}},removedfile:function(e){var t;return e.previewElement&&null!=(t=e.previewElement)&&t.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){var i,n,s,r;if(e.previewElement){for(e.previewElement.classList.remove("dz-file-preview"),n=0,s=(r=e.previewElement.querySelectorAll("[data-dz-thumbnail]")).length;n<s;n++)(i=r[n]).alt=e.name,i.src=t;return setTimeout(function(){return e.previewElement.classList.add("dz-image-preview")},1)}},error:function(e,t){var i,n,s,r,o;if(e.previewElement){for(e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error),o=[],n=0,s=(r=e.previewElement.querySelectorAll("[data-dz-errormessage]")).length;n<s;n++)i=r[n],o.push(i.textContent=t);return o}},errormultiple:i,processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.textContent=this.options.dictCancelUpload},processingmultiple:i,uploadprogress:function(e,t,i){var n,s,r,o,l;if(e.previewElement){for(l=[],s=0,r=(o=e.previewElement.querySelectorAll("[data-dz-uploadprogress]")).length;s<r;s++)"PROGRESS"===(n=o[s]).nodeName?l.push(n.value=t):l.push(n.style.width=t+"%");return l}},totaluploadprogress:i,sending:i,sendingmultiple:i,success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:i,canceled:function(e){return this.emit("error",e,"Upload canceled.")},canceledmultiple:i,complete:function(e){if(e._removeLink&&(e._removeLink.textContent=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:i,maxfilesexceeded:i,maxfilesreached:i,queuecomplete:i,addedfiles:i,previewTemplate:'<div class="dz-preview dz-file-preview">\n  <div class="dz-image"><img data-dz-thumbnail /></div>\n  <div class="dz-details">\n    <div class="dz-size"><span data-dz-size></span></div>\n    <div class="dz-filename"><span data-dz-name></span></div>\n  </div>\n  <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n  <div class="dz-error-message"><span data-dz-errormessage></span></div>\n  <div class="dz-success-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Check</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n      </g>\n    </svg>\n  </div>\n  <div class="dz-error-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Error</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n          <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n        </g>\n      </g>\n    </svg>\n  </div>\n</div>'},N=function(){for(var e,t,i,n=arguments[0],s=2<=arguments.length?a.call(arguments,1):[],r=0,o=s.length;r<o;r++)for(e in t=s[r])i=t[e],n[e]=i;return n},R.prototype.getAcceptedFiles=function(){for(var e,t=this.files,i=[],n=0,s=t.length;n<s;n++)(e=t[n]).accepted&&i.push(e);return i},R.prototype.getRejectedFiles=function(){for(var e,t=this.files,i=[],n=0,s=t.length;n<s;n++)(e=t[n]).accepted||i.push(e);return i},R.prototype.getFilesWithStatus=function(e){for(var t,i=this.files,n=[],s=0,r=i.length;s<r;s++)(t=i[s]).status===e&&n.push(t);return n},R.prototype.getQueuedFiles=function(){return this.getFilesWithStatus(R.QUEUED)},R.prototype.getUploadingFiles=function(){return this.getFilesWithStatus(R.UPLOADING)},R.prototype.getAddedFiles=function(){return this.getFilesWithStatus(R.ADDED)},R.prototype.getActiveFiles=function(){for(var e,t=this.files,i=[],n=0,s=t.length;n<s;n++)(e=t[n]).status!==R.UPLOADING&&e.status!==R.QUEUED||i.push(e);return i},R.prototype.init=function(){var e,i,s,t,n,r,o,l,a,p,u,d,c,h,m,f,g,v,y;for("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(R.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length&&(l=this,(s=function(){return l.hiddenFileInput&&l.hiddenFileInput.parentNode.removeChild(l.hiddenFileInput),l.hiddenFileInput=document.createElement("input"),l.hiddenFileInput.setAttribute("type","file"),(null==l.options.maxFiles||1<l.options.maxFiles)&&l.hiddenFileInput.setAttribute("multiple","multiple"),l.hiddenFileInput.className="dz-hidden-input",null!=l.options.acceptedFiles&&l.hiddenFileInput.setAttribute("accept",l.options.acceptedFiles),null!=l.options.capture&&l.hiddenFileInput.setAttribute("capture",l.options.capture),l.hiddenFileInput.style.visibility="hidden",l.hiddenFileInput.style.position="absolute",l.hiddenFileInput.style.top="0",l.hiddenFileInput.style.left="0",l.hiddenFileInput.style.height="0",l.hiddenFileInput.style.width="0",document.querySelector(l.options.hiddenInputContainer).appendChild(l.hiddenFileInput),l.hiddenFileInput.addEventListener("change",function(){var e,t,i,n=l.hiddenFileInput.files;if(n.length)for(t=0,i=n.length;t<i;t++)e=n[t],l.addFile(e);return l.emit("addedfiles",n),s()})})()),this.URL=null!=(r=window.URL)?r:window.webkitURL,t=0,n=(o=this.events).length;t<n;t++)e=o[t],this.on(e,this.options[e]);return this.on("uploadprogress",(a=this,function(){return a.updateTotalUploadProgress()})),this.on("removedfile",(p=this,function(){return p.updateTotalUploadProgress()})),this.on("canceled",(u=this,function(e){return u.emit("complete",e)})),this.on("complete",(d=this,function(e){if(0===d.getAddedFiles().length&&0===d.getUploadingFiles().length&&0===d.getQueuedFiles().length)return setTimeout(function(){return d.emit("queuecomplete")},0)})),i=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1},this.listeners=[{element:this.element,events:{dragstart:function(e){return v.emit("dragstart",e)},dragenter:function(e){return i(e),g.emit("dragenter",e)},dragover:function(e){var t;try{t=e.dataTransfer.effectAllowed}catch(e){}return e.dataTransfer.dropEffect="move"===t||"linkMove"===t?"move":"copy",i(e),f.emit("dragover",e)},dragleave:function(e){return m.emit("dragleave",e)},drop:function(e){return i(e),h.drop(e)},dragend:(c=h=m=f=g=v=this,function(e){return c.emit("dragend",e)})}}],this.clickableElements.forEach((y=this,function(t){return y.listeners.push({element:t,events:{click:function(e){return t===y.element&&e.target!==y.element&&!R.elementInside(e.target,y.element.querySelector(".dz-message"))||y.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)},R.prototype.destroy=function(){var e;return this.disable(),this.removeAllFiles(!0),null!=(e=this.hiddenFileInput)&&e.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,R.instances.splice(R.instances.indexOf(this),1)},R.prototype.updateTotalUploadProgress=function(){var e,t,i,n,s,r=0,o=0;if(this.getActiveFiles().length){for(i=0,n=(s=this.getActiveFiles()).length;i<n;i++)r+=(e=s[i]).upload.bytesSent,o+=e.upload.total;t=100*r/o}else t=100;return this.emit("totaluploadprogress",t,o,r)},R.prototype._getParamName=function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")},R.prototype._renameFilename=function(e){return"function"!=typeof this.options.renameFilename?e:this.options.renameFilename(e)},R.prototype.getFallbackForm=function(){var e,t;return(e=this.getExistingFallback())?e:(e='<div class="dz-fallback">',this.options.dictFallbackText&&(e+="<p>"+this.options.dictFallbackText+"</p>"),e+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>',e=R.createElement(e),"FORM"!==this.element.tagName?(t=R.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>')).appendChild(e):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:e)},R.prototype.getExistingFallback=function(){for(var e,t=function(e){for(var t,i=0,n=e.length;i<n;i++)if(t=e[i],/(^| )fallback($| )/.test(t.className))return t},i=["div","form"],n=0,s=i.length;n<s;n++)if(e=i[n],e=t(this.element.getElementsByTagName(e)))return e},R.prototype.setupEventListeners=function(){for(var i,n,s,e=this.listeners,t=[],r=0,o=e.length;r<o;r++)i=e[r],t.push(function(){var e=i.events,t=[];for(n in e)s=e[n],t.push(i.element.addEventListener(n,s,!1));return t}());return t},R.prototype.removeEventListeners=function(){for(var i,n,s,e=this.listeners,t=[],r=0,o=e.length;r<o;r++)i=e[r],t.push(function(){var e=i.events,t=[];for(n in e)s=e[n],t.push(i.element.removeEventListener(n,s,!1));return t}());return t},R.prototype.disable=function(){var e,t,i,n,s;for(this.clickableElements.forEach(function(e){return e.classList.remove("dz-clickable")}),this.removeEventListeners(),s=[],t=0,i=(n=this.files).length;t<i;t++)e=n[t],s.push(this.cancelUpload(e));return s},R.prototype.enable=function(){return this.clickableElements.forEach(function(e){return e.classList.add("dz-clickable")}),this.setupEventListeners()},R.prototype.filesize=function(e){var t,i,n,s,r,o=0,l="b";if(0<e){for(t=s=0,r=(n=["TB","GB","MB","KB","b"]).length;s<r;t=++s)if(i=n[t],Math.pow(this.options.filesizeBase,4-t)/10<=e){o=e/Math.pow(this.options.filesizeBase,4-t),l=i;break}o=Math.round(10*o)/10}return"<strong>"+o+"</strong> "+l},R.prototype._updateMaxFilesReachedClass=function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")},R.prototype.drop=function(e){var t;e.dataTransfer&&(this.emit("drop",e),t=e.dataTransfer.files,this.emit("addedfiles",t),t.length&&((e=e.dataTransfer.items)&&e.length&&null!=e[0].webkitGetAsEntry?this._addFilesFromItems(e):this.handleFiles(t)))},R.prototype.paste=function(e){var t;if(null!=(null!=e&&null!=(t=e.clipboardData)?t.items:void 0))return this.emit("paste",e),(e=e.clipboardData.items).length?this._addFilesFromItems(e):void 0},R.prototype.handleFiles=function(e){for(var t,i=[],n=0,s=e.length;n<s;n++)t=e[n],i.push(this.addFile(t));return i},R.prototype._addFilesFromItems=function(e){for(var t,i,n=[],s=0,r=e.length;s<r;s++)null!=(i=e[s]).webkitGetAsEntry&&(t=i.webkitGetAsEntry())?t.isFile?n.push(this.addFile(i.getAsFile())):t.isDirectory?n.push(this._addFilesFromDirectory(t,t.name)):n.push(void 0):null!=i.getAsFile&&(null==i.kind||"file"===i.kind)?n.push(this.addFile(i.getAsFile())):n.push(void 0);return n},R.prototype._addFilesFromDirectory=function(e,s){var r,o,t=e.createReader(),i=function(e){return"undefined"!=typeof console&&null!==console&&"function"==typeof console.log?console.log(e):void 0};return o=this,(r=function(){return t.readEntries(function(e){var t,i,n;if(0<e.length){for(i=0,n=e.length;i<n;i++)(t=e[i]).isFile?t.file(function(e){if(!o.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=s+"/"+e.name,o.addFile(e)}):t.isDirectory&&o._addFilesFromDirectory(t,s+"/"+t.name);r()}return null},i)})()},R.prototype.accept=function(e,t){return e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):R.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)},R.prototype.addFile=function(t){return t.upload={progress:0,total:t.size,bytesSent:0},this.files.push(t),t.status=R.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,(i=this,function(e){return e?(t.accepted=!1,i._errorProcessing([t],e)):(t.accepted=!0,i.options.autoQueue&&i.enqueueFile(t)),i._updateMaxFilesReachedClass()}));var i},R.prototype.enqueueFiles=function(e){for(var t,i=0,n=e.length;i<n;i++)t=e[i],this.enqueueFile(t);return null},R.prototype.enqueueFile=function(e){if(e.status!==R.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=R.QUEUED,this.options.autoProcessQueue)return setTimeout((t=this,function(){return t.processQueue()}),0);var t},R.prototype._thumbnailQueue=[],R.prototype._processingThumbnail=!1,R.prototype._enqueueThumbnail=function(e){if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout((t=this,function(){return t._processThumbnailQueue()}),0);var t},R.prototype._processThumbnailQueue=function(){var e;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length)return this._processingThumbnail=!0,this.createThumbnail(this._thumbnailQueue.shift(),(e=this,function(){return e._processingThumbnail=!1,e._processThumbnailQueue()}))},R.prototype.removeFile=function(e){if(e.status===R.UPLOADING&&this.cancelUpload(e),this.files=n(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")},R.prototype.removeAllFiles=function(e){var t,i,n,s;for(null==e&&(e=!1),i=0,n=(s=this.files.slice()).length;i<n;i++)(t=s[i]).status===R.UPLOADING&&!e||this.removeFile(t);return null},R.prototype.createThumbnail=function(e,t){var i,n=new FileReader;return n.onload=(i=this,function(){return"image/svg+xml"===e.type?(i.emit("thumbnail",e,n.result),void(null!=t&&t())):i.createThumbnailFromUrl(e,n.result,t)}),n.readAsDataURL(e)},R.prototype.createThumbnailFromUrl=function(n,e,s,t){var r,o=document.createElement("img");return t&&(o.crossOrigin=t),o.onload=(r=this,function(){var e,t,i;if(n.width=o.width,n.height=o.height,null==(e=r.options.resize.call(r,n)).trgWidth&&(e.trgWidth=e.optWidth),null==e.trgHeight&&(e.trgHeight=e.optHeight),i=(t=document.createElement("canvas")).getContext("2d"),t.width=e.trgWidth,t.height=e.trgHeight,l(i,o,null!=(i=e.srcX)?i:0,null!=(i=e.srcY)?i:0,e.srcWidth,e.srcHeight,null!=(i=e.trgX)?i:0,null!=(i=e.trgY)?i:0,e.trgWidth,e.trgHeight),t=t.toDataURL("image/png"),r.emit("thumbnail",n,t),null!=s)return s()}),null!=s&&(o.onerror=s),o.src=e},R.prototype.processQueue=function(){var e,t=this.options.parallelUploads,i=this.getUploadingFiles().length,n=i;if(!(t<=i)&&0<(e=this.getQueuedFiles()).length){if(this.options.uploadMultiple)return this.processFiles(e.slice(0,t-i));for(;n<t;){if(!e.length)return;this.processFile(e.shift()),n++}}},R.prototype.processFile=function(e){return this.processFiles([e])},R.prototype.processFiles=function(e){for(var t,i=0,n=e.length;i<n;i++)(t=e[i]).processing=!0,t.status=R.UPLOADING,this.emit("processing",t);return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)},R.prototype._getFilesWithXhr=function(s){var r;return function(){for(var e=this.files,t=[],i=0,n=e.length;i<n;i++)(r=e[i]).xhr===s&&t.push(r);return t}.call(this)},R.prototype.cancelUpload=function(e){var t,i,n,s,r,o,l;if(e.status===R.UPLOADING){for(n=0,r=(i=this._getFilesWithXhr(e.xhr)).length;n<r;n++)(t=i[n]).status=R.CANCELED;for(e.xhr.abort(),s=0,o=i.length;s<o;s++)t=i[s],this.emit("canceled",t);this.options.uploadMultiple&&this.emit("canceledmultiple",i)}else(l=e.status)!==R.ADDED&&l!==R.QUEUED||(e.status=R.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()},U=function(){var e=arguments[0],t=2<=arguments.length?a.call(arguments,1):[];return"function"==typeof e?e.apply(this,t):e},R.prototype.uploadFile=function(e){return this.uploadFiles([e])},R.prototype.uploadFiles=function(u){for(var d,e,i,t,n,s,r,o,l,a,p,c,h,m,f,g,v,y,F,w,E,b,C,k,z,L,x,A,T,D,S,_=new XMLHttpRequest,M=0,I=u.length;M<I;M++)(d=u[M]).xhr=_;for(t in p=U(this.options.method,u),C=U(this.options.url,u),_.open(p,C,!0),_.withCredentials=!!this.options.withCredentials,h=null,i=function(){for(var e=[],t=0,i=u.length;t<i;t++)d=u[t],e.push(T._errorProcessing(u,h||T.options.dictResponseError.replace("{{statusCode}}",_.status),_));return e},D=T=this,m=function(e){var t,i,n,s,r,o,l,a,p;if(null!=e)for(i=100*e.loaded/e.total,n=0,o=u.length;n<o;n++)(d=u[n]).upload={progress:i,total:e.total,bytesSent:e.loaded};else{for(t=!0,i=100,s=0,l=u.length;s<l;s++)100===(d=u[s]).upload.progress&&d.upload.bytesSent===d.upload.total||(t=!1),d.upload.progress=i,d.upload.bytesSent=d.upload.total;if(t)return}for(p=[],r=0,a=u.length;r<a;r++)d=u[r],p.push(D.emit("uploadprogress",d,i,d.upload.bytesSent));return p},_.onload=(S=this,function(t){var e;if(u[0].status!==R.CANCELED&&4===_.readyState){if(h=_.responseText,_.getResponseHeader("content-type")&&~_.getResponseHeader("content-type").indexOf("application/json"))try{h=JSON.parse(h)}catch(e){t=e,h="Invalid JSON response from server."}return m(),200<=(e=_.status)&&e<300?S._finished(u,h,t):i()}}),_.onerror=function(){if(u[0].status!==R.CANCELED)return i()},(null!=(C=_.upload)?C:_).onprogress=m,s={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"},this.options.headers&&N(s,this.options.headers),s)(n=s[t])&&_.setRequestHeader(t,n);if(e=new FormData,this.options.params)for(a in k=this.options.params)f=k[a],e.append(a,f);for(g=0,F=u.length;g<F;g++)d=u[g],this.emit("sending",d,_,e);if(this.options.uploadMultiple&&this.emit("sendingmultiple",u,_,e),"FORM"===this.element.tagName)for(v=0,w=(z=this.element.querySelectorAll("input, textarea, select, button")).length;v<w;v++)if(l=(o=z[v]).getAttribute("name"),x=o.getAttribute("type"),"SELECT"===o.tagName&&o.hasAttribute("multiple"))for(y=0,E=(L=o.options).length;y<E;y++)(c=L[y]).selected&&e.append(l,c.value);else(!x||"checkbox"!==(x=x.toLowerCase())&&"radio"!==x||o.checked)&&e.append(l,o.value);for(r=b=0,A=u.length-1;0<=A?b<=A:A<=b;r=0<=A?++b:--b)e.append(this._getParamName(r),u[r],this._renameFilename(u[r].name));return this.submitRequest(_,e,u)},R.prototype.submitRequest=function(e,t,i){return e.send(t)},R.prototype._finished=function(e,t,i){for(var n,s=0,r=e.length;s<r;s++)(n=e[s]).status=R.SUCCESS,this.emit("success",n,t,i),this.emit("complete",n);if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,i),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()},R.prototype._errorProcessing=function(e,t,i){for(var n,s=0,r=e.length;s<r;s++)(n=e[s]).status=R.ERROR,this.emit("error",n,t,i),this.emit("complete",n);if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,i),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()},(o=R).version="4.3.0",o.options={},o.optionsForElement=function(e){if(e.getAttribute("id"))return o.options[t(e.getAttribute("id"))]},o.instances=[],o.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},o.autoDiscover=!1,o.discover=function(){var e,t,r,i,n,s;for(document.querySelectorAll?r=document.querySelectorAll(".dropzone"):(r=[],(e=function(e){for(var t,i=[],n=0,s=e.length;n<s;n++)t=e[n],/(^| )dropzone($| )/.test(t.className)?i.push(r.push(t)):i.push(void 0);return i})(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))),s=[],i=0,n=r.length;i<n;i++)t=r[i],!1!==o.optionsForElement(t)?s.push(new o(t)):s.push(void 0);return s},o.blacklistedBrowsers=[/opera.*Macintosh.*version\/12/i],o.isBrowserSupported=function(){var e,t,i,n=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(e=0,t=(i=o.blacklistedBrowsers).length;e<t;e++)i[e].test(navigator.userAgent)&&(n=!1);else n=!1;else n=!1;return n},n=function(e,t){for(var i,n=[],s=0,r=e.length;s<r;s++)(i=e[s])!==t&&n.push(i);return n},t=function(e){return e.replace(/[\-_](\w)/g,function(e){return e.charAt(1).toUpperCase()})},o.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},o.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},o.getElement=function(e,t){var i;if("string"==typeof e?i=document.querySelector(e):null!=e.nodeType&&(i=e),null==i)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return i},o.getElements=function(e,t){var i,n,s,r,o,l,a;if(e instanceof Array){n=[];try{for(s=0,o=e.length;s<o;s++)i=e[s],n.push(this.getElement(i,t))}catch(e){n=null}}else if("string"==typeof e)for(n=[],r=0,l=(a=document.querySelectorAll(e)).length;r<l;r++)i=a[r],n.push(i);else null!=e.nodeType&&(n=[e]);if(null==n||!n.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return n},o.confirm=function(e,t,i){return window.confirm(e)?t():null!=i?i():void 0},o.isValidFile=function(e,t){var i,n,s,r,o;if(!t)return!0;for(t=t.split(","),i=(n=e.type).replace(/\/.*$/,""),r=0,o=t.length;r<o;r++)if("."===(s=(s=t[r]).trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(s.toLowerCase(),e.name.length-s.length))return!0}else if(/\/\*$/.test(s)){if(i===s.replace(/\/.*$/,""))return!0}else if(n===s)return!0;return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each(function(){return new o(this,e)})}),"undefined"!=typeof module&&null!==module?module.exports=o:window.Dropzone=o,o.ADDED="added",o.QUEUED="queued",o.ACCEPTED=o.QUEUED,o.UPLOADING="uploading",o.PROCESSING=o.UPLOADING,o.CANCELED="canceled",o.ERROR="error",o.SUCCESS="success",d=function(e){e.naturalWidth;var t,i,n,s,r=e.naturalHeight,o=document.createElement("canvas");for(o.width=1,o.height=r,(o=o.getContext("2d")).drawImage(e,0,0),t=o.getImageData(0,0,1,r).data,s=0,n=i=r;s<n;)0===t[4*(n-1)+3]?i=n:s=n,n=i+s>>1;return 0==(r=n/r)?1:r},l=function(e,t,i,n,s,r,o,l,a,p){var u=d(t);return e.drawImage(t,i,n,s,r,o,l,a,p/u)},e=function(t,i){var n=!1,e=!0,s=t.document,r=s.documentElement,o=s.addEventListener?"addEventListener":"attachEvent",l=s.addEventListener?"removeEventListener":"detachEvent",a=s.addEventListener?"":"on",p=function(e){if("readystatechange"!==e.type||"complete"===s.readyState)return("load"===e.type?t:s)[l](a+e.type,p,!1),!n&&(n=!0)?i.call(t,e.type||e):void 0},u=function(){try{r.doScroll("left")}catch(e){return void setTimeout(u,50)}return p("poll")};if("complete"!==s.readyState){if(s.createEventObject&&r.doScroll){try{e=!t.frameElement}catch(e){}e&&u()}return s[o](a+"DOMContentLoaded",p,!1),s[o](a+"readystatechange",p,!1),t[o](a+"load",p,!1)}},o._autoDiscoverFunction=function(){if(o.autoDiscover)return o.discover()},e(window,o._autoDiscoverFunction)}).call(this);


/*  bootstrap-datetimepicker.js*/
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(jQuery)}(function(M,h){"use strict";function b(){return new Date(Date.UTC.apply(Date,arguments))}"indexOf"in Array.prototype||(Array.prototype.indexOf=function(t,e){e===h&&(e=0),e<0&&(e+=this.length),e<0&&(e=0);for(var i=this.length;e<i;e++)if(e in this&&this[e]===t)return e;return-1});function w(t,n){var e=this;this.element=M(t),this.container=n.container||"body",this.language=n.language||this.element.data("date-language")||"en",this.language=this.language in V?this.language:this.language.split("-")[0],this.language=this.language in V?this.language:"en",this.isRTL=V[this.language].rtl||!1,this.formatType=n.formatType||this.element.data("format-type")||"standard",this.format=S.parseFormat(n.format||this.element.data("date-format")||V[this.language].format||S.getDefaultFormat(this.formatType,"input"),this.formatType),this.isInline=!1,this.isVisible=!1,this.isInput=this.element.is("input"),this.fontAwesome=n.fontAwesome||this.element.data("font-awesome")||!1,this.bootcssVer=n.bootcssVer||(this.isInput?this.element.is(".form-control")?3:2:this.bootcssVer=this.element.is(".input-group")?3:2),this.component=!!this.element.is(".date")&&(3===this.bootcssVer?this.element.find(".input-group-addon .glyphicon-th, .input-group-addon .glyphicon-time, .input-group-addon .glyphicon-remove, .input-group-addon .glyphicon-calendar, .input-group-addon .fa-calendar, .input-group-addon .fa-clock-o"):this.element.find(".add-on .icon-th, .add-on .icon-time, .add-on .icon-calendar, .add-on .fa-calendar, .add-on .fa-clock-o")).parent(),this.componentReset=!!this.element.is(".date")&&(3===this.bootcssVer?this.element.find(".input-group-addon .glyphicon-remove, .input-group-addon .fa-times"):this.element.find(".add-on .icon-remove, .add-on .fa-times")).parent(),this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.linkField=n.linkField||this.element.data("link-field")||!1,this.linkFormat=S.parseFormat(n.linkFormat||this.element.data("link-format")||S.getDefaultFormat(this.formatType,"link"),this.formatType),this.minuteStep=n.minuteStep||this.element.data("minute-step")||5,this.pickerPosition=n.pickerPosition||this.element.data("picker-position")||"bottom-right",this.showMeridian=n.showMeridian||this.element.data("show-meridian")||!1,this.initialDate=n.initialDate||new Date,this.zIndex=n.zIndex||this.element.data("z-index")||h,this.title=void 0!==n.title&&n.title,this.timezone=n.timezone||function(){var t,e,i,s=(new Date).toString(),a=(null!=(i=s.split("(")[1])?i.slice(0,-1):0)||s.split(" ");if(a instanceof Array){e=[];for(var n=0,h=a.length;n<h;n++)(t=null!==(i=a[n].match(/\b[A-Z]+\b/)))&&i[0]&&e.push(t);a=e.pop()}return a}(),this.icons={leftArrow:this.fontAwesome?"fa-arrow-left":3===this.bootcssVer?"glyphicon-arrow-left":"icon-arrow-left",rightArrow:this.fontAwesome?"fa-arrow-right":3===this.bootcssVer?"glyphicon-arrow-right":"icon-arrow-right"},this.icontype=this.fontAwesome?"fa":"glyphicon",this._attachEvents(),this.clickedOutside=function(t){0===M(t.target).closest(".datetimepicker").length&&e.hide()},this.formatViewType="datetime","formatViewType"in n?this.formatViewType=n.formatViewType:"formatViewType"in this.element.data()&&(this.formatViewType=this.element.data("formatViewType")),this.minView=0,"minView"in n?this.minView=n.minView:"minView"in this.element.data()&&(this.minView=this.element.data("min-view")),this.minView=S.convertViewMode(this.minView),this.maxView=S.modes.length-1,"maxView"in n?this.maxView=n.maxView:"maxView"in this.element.data()&&(this.maxView=this.element.data("max-view")),this.maxView=S.convertViewMode(this.maxView),this.wheelViewModeNavigation=!1,"wheelViewModeNavigation"in n?this.wheelViewModeNavigation=n.wheelViewModeNavigation:"wheelViewModeNavigation"in this.element.data()&&(this.wheelViewModeNavigation=this.element.data("view-mode-wheel-navigation")),this.wheelViewModeNavigationInverseDirection=!1,"wheelViewModeNavigationInverseDirection"in n?this.wheelViewModeNavigationInverseDirection=n.wheelViewModeNavigationInverseDirection:"wheelViewModeNavigationInverseDirection"in this.element.data()&&(this.wheelViewModeNavigationInverseDirection=this.element.data("view-mode-wheel-navigation-inverse-dir")),this.wheelViewModeNavigationDelay=100,"wheelViewModeNavigationDelay"in n?this.wheelViewModeNavigationDelay=n.wheelViewModeNavigationDelay:"wheelViewModeNavigationDelay"in this.element.data()&&(this.wheelViewModeNavigationDelay=this.element.data("view-mode-wheel-navigation-delay")),this.startViewMode=2,"startView"in n?this.startViewMode=n.startView:"startView"in this.element.data()&&(this.startViewMode=this.element.data("start-view")),this.startViewMode=S.convertViewMode(this.startViewMode),this.viewMode=this.startViewMode,this.viewSelect=this.minView,"viewSelect"in n?this.viewSelect=n.viewSelect:"viewSelect"in this.element.data()&&(this.viewSelect=this.element.data("view-select")),this.viewSelect=S.convertViewMode(this.viewSelect),this.forceParse=!0,"forceParse"in n?this.forceParse=n.forceParse:"dateForceParse"in this.element.data()&&(this.forceParse=this.element.data("date-force-parse"));for(var i=3===this.bootcssVer?S.templateV3:S.template;-1!==i.indexOf("{iconType}");)i=i.replace("{iconType}",this.icontype);for(;-1!==i.indexOf("{leftArrow}");)i=i.replace("{leftArrow}",this.icons.leftArrow);for(;-1!==i.indexOf("{rightArrow}");)i=i.replace("{rightArrow}",this.icons.rightArrow);this.picker=M(i).appendTo(this.isInline?this.element:this.container).on({click:M.proxy(this.click,this)}),this.wheelViewModeNavigation&&(M.fn.mousewheel?this.picker.on({mousewheel:M.proxy(this.mousewheel,this)}):console.log("Mouse Wheel event is not supported. Please include the jQuery Mouse Wheel plugin before enabling this option")),this.isInline?this.picker.addClass("datetimepicker-inline"):this.picker.addClass("datetimepicker-dropdown-"+this.pickerPosition+" dropdown-menu"),this.isRTL&&(this.picker.addClass("datetimepicker-rtl"),t=3===this.bootcssVer?".prev span, .next span":".prev i, .next i",this.picker.find(t).toggleClass(this.icons.leftArrow+" "+this.icons.rightArrow)),M(document).on("mousedown touchend",this.clickedOutside),this.autoclose=!1,"autoclose"in n?this.autoclose=n.autoclose:"dateAutoclose"in this.element.data()&&(this.autoclose=this.element.data("date-autoclose")),this.keyboardNavigation=!0,"keyboardNavigation"in n?this.keyboardNavigation=n.keyboardNavigation:"dateKeyboardNavigation"in this.element.data()&&(this.keyboardNavigation=this.element.data("date-keyboard-navigation")),this.todayBtn=n.todayBtn||this.element.data("date-today-btn")||!1,this.clearBtn=n.clearBtn||this.element.data("date-clear-btn")||!1,this.todayHighlight=n.todayHighlight||this.element.data("date-today-highlight")||!1,void(this.weekStart=0)!==n.weekStart?this.weekStart=n.weekStart:void 0!==this.element.data("date-weekstart")?this.weekStart=this.element.data("date-weekstart"):void 0!==V[this.language].weekStart&&(this.weekStart=V[this.language].weekStart),this.weekStart=this.weekStart%7,this.weekEnd=(this.weekStart+6)%7,this.onRenderDay=function(t){t=(n.onRenderDay||function(){return[]})(t);"string"==typeof t&&(t=[t]);return["day"].concat(t||[])},this.onRenderHour=function(t){t=(n.onRenderHour||function(){return[]})(t);return"string"==typeof t&&(t=[t]),["hour"].concat(t||[])},this.onRenderMinute=function(t){var e=(n.onRenderMinute||function(){return[]})(t),i=["minute"];return"string"==typeof e&&(e=[e]),t<this.startDate||t>this.endDate?i.push("disabled"):Math.floor(this.date.getUTCMinutes()/this.minuteStep)===Math.floor(t.getUTCMinutes()/this.minuteStep)&&i.push("active"),i.concat(e||[])},this.onRenderYear=function(t){var e=(n.onRenderYear||function(){return[]})(t),i=["year"];"string"==typeof e&&(e=[e]),this.date.getUTCFullYear()===t.getUTCFullYear()&&i.push("active");var s=t.getUTCFullYear(),a=this.endDate.getUTCFullYear();return(t<this.startDate||a<s)&&i.push("disabled"),i.concat(e||[])},this.onRenderMonth=function(t){t=(n.onRenderMonth||function(){return[]})(t);return"string"==typeof t&&(t=[t]),["month"].concat(t||[])},this.startDate=new Date(-8639968443048e3),this.endDate=new Date(8639968443048e3),this.datesDisabled=[],this.daysOfWeekDisabled=[],this.setStartDate(n.startDate||this.element.data("date-startdate")),this.setEndDate(n.endDate||this.element.data("date-enddate")),this.setDatesDisabled(n.datesDisabled||this.element.data("date-dates-disabled")),this.setDaysOfWeekDisabled(n.daysOfWeekDisabled||this.element.data("date-days-of-week-disabled")),this.setMinutesDisabled(n.minutesDisabled||this.element.data("date-minute-disabled")),this.setHoursDisabled(n.hoursDisabled||this.element.data("date-hour-disabled")),this.fillDow(),this.fillMonths(),this.update(),this.showMode(),this.isInline&&this.show()}w.prototype={constructor:w,_events:[],_attachEvents:function(){this._detachEvents(),this.isInput?this._events=[[this.element,{focus:M.proxy(this.show,this),keyup:M.proxy(this.update,this),keydown:M.proxy(this.keydown,this)}]]:this.component&&this.hasInput?(this._events=[[this.element.find("input"),{focus:M.proxy(this.show,this),keyup:M.proxy(this.update,this),keydown:M.proxy(this.keydown,this)}],[this.component,{click:M.proxy(this.show,this)}]],this.componentReset&&this._events.push([this.componentReset,{click:M.proxy(this.reset,this)}])):this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:M.proxy(this.show,this)}]];for(var t,e,i=0;i<this._events.length;i++)t=this._events[i][0],e=this._events[i][1],t.on(e)},_detachEvents:function(){for(var t,e,i=0;i<this._events.length;i++)t=this._events[i][0],e=this._events[i][1],t.off(e);this._events=[]},show:function(t){this.picker.show(),this.height=(this.component||this.element).outerHeight(),this.forceParse&&this.update(),this.place(),M(window).on("resize",M.proxy(this.place,this)),t&&(t.stopPropagation(),t.preventDefault()),this.isVisible=!0,this.element.trigger({type:"show",date:this.date})},hide:function(){this.isVisible&&(this.isInline||(this.picker.hide(),M(window).off("resize",this.place),this.viewMode=this.startViewMode,this.showMode(),this.isInput||M(document).off("mousedown",this.hide),this.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this.isVisible=!1,this.element.trigger({type:"hide",date:this.date})))},remove:function(){this._detachEvents(),M(document).off("mousedown",this.clickedOutside),this.picker.remove(),delete this.picker,delete this.element.data().datetimepicker},getViewDate:function(){return this.viewDate},getDate:function(){var t=this.getUTCDate();return null==t?null:new Date(t.getTime()+6e4*t.getTimezoneOffset())},getUTCDate:function(){return this.date},getInitialDate:function(){return this.initialDate},setInitialDate:function(t){this.initialDate=t},setDate:function(t){this.setUTCDate(new Date(t.getTime()-6e4*t.getTimezoneOffset()))},setUTCDate:function(t){t>=this.startDate&&t<=this.endDate?(this.date=t,this.setValue(),this.viewDate=this.date,this.fill()):this.element.trigger({type:"outOfRange",date:t,startDate:this.startDate,endDate:this.endDate})},setFormat:function(t){var e;this.format=S.parseFormat(t,this.formatType),this.isInput?e=this.element:this.component&&(e=this.element.find("input")),e&&e.val()&&this.setValue()},setValue:function(){var t=this.getFormattedDate();this.isInput?this.element.val(t):(this.component&&this.element.find("input").val(t),this.element.data("date",t)),this.linkField&&M("#"+this.linkField).val(this.getFormattedDate(this.linkFormat))},getFormattedDate:function(t){return t=t||this.format,S.formatDate(this.date,t,this.language,this.formatType,this.timezone)},setStartDate:function(t){this.startDate=t||this.startDate,8639968443048e3!==this.startDate.valueOf()&&(this.startDate=S.parseDate(this.startDate,this.format,this.language,this.formatType,this.timezone)),this.update(),this.updateNavArrows()},setEndDate:function(t){this.endDate=t||this.endDate,8639968443048e3!==this.endDate.valueOf()&&(this.endDate=S.parseDate(this.endDate,this.format,this.language,this.formatType,this.timezone)),this.update(),this.updateNavArrows()},setDatesDisabled:function(t){this.datesDisabled=t||[],M.isArray(this.datesDisabled)||(this.datesDisabled=this.datesDisabled.split(/,\s*/));var e=this;this.datesDisabled=M.map(this.datesDisabled,function(t){return S.parseDate(t,e.format,e.language,e.formatType,e.timezone).toDateString()}),this.update(),this.updateNavArrows()},setTitle:function(t,e){return this.picker.find(t).find("th:eq(1)").text(!1===this.title?e:this.title)},setDaysOfWeekDisabled:function(t){this.daysOfWeekDisabled=t||[],M.isArray(this.daysOfWeekDisabled)||(this.daysOfWeekDisabled=this.daysOfWeekDisabled.split(/,\s*/)),this.daysOfWeekDisabled=M.map(this.daysOfWeekDisabled,function(t){return parseInt(t,10)}),this.update(),this.updateNavArrows()},setMinutesDisabled:function(t){this.minutesDisabled=t||[],M.isArray(this.minutesDisabled)||(this.minutesDisabled=this.minutesDisabled.split(/,\s*/)),this.minutesDisabled=M.map(this.minutesDisabled,function(t){return parseInt(t,10)}),this.update(),this.updateNavArrows()},setHoursDisabled:function(t){this.hoursDisabled=t||[],M.isArray(this.hoursDisabled)||(this.hoursDisabled=this.hoursDisabled.split(/,\s*/)),this.hoursDisabled=M.map(this.hoursDisabled,function(t){return parseInt(t,10)}),this.update(),this.updateNavArrows()},place:function(){var e,t,i,s,a;this.isInline||(this.zIndex||(e=0,M("div").each(function(){var t=parseInt(M(this).css("zIndex"),10);e<t&&(e=t)}),this.zIndex=e+10),s=(this.container instanceof M?this.container:M(this.container)).offset(),this.component?(i=(t=this.component.offset()).left,"bottom-left"!==this.pickerPosition&&"top-left"!==this.pickerPosition||(i+=this.component.outerWidth()-this.picker.outerWidth())):(i=(t=this.element.offset()).left,"bottom-left"!==this.pickerPosition&&"top-left"!==this.pickerPosition||(i+=this.element.outerWidth()-this.picker.outerWidth())),(a=document.body.clientWidth||window.innerWidth)<i+220&&(i=a-220),t="top-left"===this.pickerPosition||"top-right"===this.pickerPosition?t.top-this.picker.outerHeight():t.top+this.height,t-=s.top,i-=s.left,this.picker.css({top:t,left:i,zIndex:this.zIndex}))},hour_minute:"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]",update:function(){var t,e=!1;arguments&&arguments.length&&("string"==typeof arguments[0]||arguments[0]instanceof Date)?(t=arguments[0],e=!0):"string"==typeof(t=(this.isInput?this.element:this.element.find("input")).val()||this.element.data("date")||this.initialDate)&&(t=t.replace(/^\s+|\s+$/g,"")),t||(t=new Date,e=!1),"string"==typeof t&&(new RegExp(this.hour_minute).test(t)||new RegExp(this.hour_minute+":[0-5][0-9]").test(t))&&(t=this.getDate()),this.date=S.parseDate(t,this.format,this.language,this.formatType,this.timezone),e&&this.setValue(),this.date<this.startDate?this.viewDate=new Date(this.startDate):this.date>this.endDate?this.viewDate=new Date(this.endDate):this.viewDate=new Date(this.date),this.fill()},fillDow:function(){for(var t=this.weekStart,e="<tr>";t<this.weekStart+7;)e+='<th class="dow">'+V[this.language].daysMin[t++%7]+"</th>";e+="</tr>",this.picker.find(".datetimepicker-days thead").append(e)},fillMonths:function(){for(var t="",e=new Date(this.viewDate),i=0;i<12;i++)e.setUTCMonth(i),t+='<span class="'+this.onRenderMonth(e).join(" ")+'">'+V[this.language].monthsShort[i]+"</span>";this.picker.find(".datetimepicker-months td").html(t)},fill:function(){if(this.date&&this.viewDate){var t=(D=new Date(this.viewDate)).getUTCFullYear(),e=D.getUTCMonth(),i=D.getUTCDate(),s=D.getUTCHours(),a=this.startDate.getUTCFullYear(),n=this.startDate.getUTCMonth(),h=this.endDate.getUTCFullYear(),o=this.endDate.getUTCMonth()+1,r=new b(this.date.getUTCFullYear(),this.date.getUTCMonth(),this.date.getUTCDate()).valueOf(),d=new Date;this.setTitle(".datetimepicker-days",V[this.language].months[e]+" "+t),"time"===this.formatViewType?(k=this.getFormattedDate(),this.setTitle(".datetimepicker-hours",k),this.setTitle(".datetimepicker-minutes",k)):(this.setTitle(".datetimepicker-hours",i+" "+V[this.language].months[e]+" "+t),this.setTitle(".datetimepicker-minutes",i+" "+V[this.language].months[e]+" "+t)),this.picker.find("tfoot th.today").text(V[this.language].today||V.en.today).toggle(!1!==this.todayBtn),this.picker.find("tfoot th.clear").text(V[this.language].clear||V.en.clear).toggle(!1!==this.clearBtn),this.updateNavArrows(),this.fillMonths();var l=b(t,e-1,28,0,0,0,0),c=S.getDaysInMonth(l.getUTCFullYear(),l.getUTCMonth());l.setUTCDate(c),l.setUTCDate(c-(l.getUTCDay()-this.weekStart+7)%7);var u=new Date(l);u.setUTCDate(u.getUTCDate()+42),u=u.valueOf();for(var p,m=[];l.valueOf()<u;)l.getUTCDay()===this.weekStart&&m.push("<tr>"),p=this.onRenderDay(l),l.getUTCFullYear()<t||l.getUTCFullYear()===t&&l.getUTCMonth()<e?p.push("old"):(l.getUTCFullYear()>t||l.getUTCFullYear()===t&&l.getUTCMonth()>e)&&p.push("new"),this.todayHighlight&&l.getUTCFullYear()===d.getFullYear()&&l.getUTCMonth()===d.getMonth()&&l.getUTCDate()===d.getDate()&&p.push("today"),l.valueOf()===r&&p.push("active"),(l.valueOf()+864e5<=this.startDate||l.valueOf()>this.endDate||-1!==M.inArray(l.getUTCDay(),this.daysOfWeekDisabled)||-1!==M.inArray(l.toDateString(),this.datesDisabled))&&p.push("disabled"),m.push('<td class="'+p.join(" ")+'">'+l.getUTCDate()+"</td>"),l.getUTCDay()===this.weekEnd&&m.push("</tr>"),l.setUTCDate(l.getUTCDate()+1);this.picker.find(".datetimepicker-days tbody").empty().append(m.join("")),m=[];for(var g="",f="",v="",w=this.hoursDisabled||[],D=new Date(this.viewDate),y=0;y<24;y++){D.setUTCHours(y),p=this.onRenderHour(D),-1!==w.indexOf(y)&&p.push("disabled");var T=b(t,e,i,y);T.valueOf()+36e5<=this.startDate||T.valueOf()>this.endDate?p.push("disabled"):s===y&&p.push("active"),this.showMeridian&&2===V[this.language].meridiem.length?((f=y<12?V[this.language].meridiem[0]:V[this.language].meridiem[1])!==v&&(""!==v&&m.push("</fieldset>"),m.push('<fieldset class="hour"><legend>'+f.toUpperCase()+"</legend>")),v=f,g=y%12||12,y<12?p.push("hour_am"):p.push("hour_pm"),m.push('<span class="'+p.join(" ")+'">'+g+"</span>"),23===y&&m.push("</fieldset>")):(g=y+":00",m.push('<span class="'+p.join(" ")+'">'+g+"</span>"))}this.picker.find(".datetimepicker-hours td").html(m.join("")),m=[],v=f=g="";var C=this.minutesDisabled||[];D=new Date(this.viewDate);for(y=0;y<60;y+=this.minuteStep)-1===C.indexOf(y)&&(D.setUTCMinutes(y),D.setUTCSeconds(0),p=this.onRenderMinute(D),this.showMeridian&&2===V[this.language].meridiem.length?((f=s<12?V[this.language].meridiem[0]:V[this.language].meridiem[1])!==v&&(""!==v&&m.push("</fieldset>"),m.push('<fieldset class="minute"><legend>'+f.toUpperCase()+"</legend>")),v=f,g=s%12||12,m.push('<span class="'+p.join(" ")+'">'+g+":"+(y<10?"0"+y:y)+"</span>"),59===y&&m.push("</fieldset>")):(g=y+":00",m.push('<span class="'+p.join(" ")+'">'+s+":"+(y<10?"0"+y:y)+"</span>")));this.picker.find(".datetimepicker-minutes td").html(m.join(""));var k=this.date.getUTCFullYear(),c=this.setTitle(".datetimepicker-months",t).end().find(".month").removeClass("active");k===t&&c.eq(this.date.getUTCMonth()).addClass("active"),(t<a||h<t)&&c.addClass("disabled"),t===a&&c.slice(0,n).addClass("disabled"),t===h&&c.slice(o).addClass("disabled"),m="",t=10*parseInt(t/10,10);o=this.setTitle(".datetimepicker-years",t+"-"+(t+9)).end().find("td");--t,D=new Date(this.viewDate);for(y=-1;y<11;y++)D.setUTCFullYear(t),p=this.onRenderYear(D),-1!==y&&10!==y||p.push(U),m+='<span class="'+p.join(" ")+'">'+t+"</span>",t+=1;o.html(m),this.place()}},updateNavArrows:function(){var t=new Date(this.viewDate),e=t.getUTCFullYear(),i=t.getUTCMonth(),s=t.getUTCDate(),a=t.getUTCHours();switch(this.viewMode){case 0:e<=this.startDate.getUTCFullYear()&&i<=this.startDate.getUTCMonth()&&s<=this.startDate.getUTCDate()&&a<=this.startDate.getUTCHours()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),e>=this.endDate.getUTCFullYear()&&i>=this.endDate.getUTCMonth()&&s>=this.endDate.getUTCDate()&&a>=this.endDate.getUTCHours()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:e<=this.startDate.getUTCFullYear()&&i<=this.startDate.getUTCMonth()&&s<=this.startDate.getUTCDate()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),e>=this.endDate.getUTCFullYear()&&i>=this.endDate.getUTCMonth()&&s>=this.endDate.getUTCDate()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 2:e<=this.startDate.getUTCFullYear()&&i<=this.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),e>=this.endDate.getUTCFullYear()&&i>=this.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 3:case 4:e<=this.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),e>=this.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}},mousewheel:function(t){t.preventDefault(),t.stopPropagation(),this.wheelPause||(this.wheelPause=!0,t=0<(t=t.originalEvent.wheelDelta)?1:0===t?0:-1,this.wheelViewModeNavigationInverseDirection&&(t=-t),this.showMode(t),setTimeout(M.proxy(function(){this.wheelPause=!1},this),this.wheelViewModeNavigationDelay))},click:function(t){t.stopPropagation(),t.preventDefault();var e,i,s,a,n,h,o=M(t.target).closest("span, td, th, legend");if(o.is("."+this.icontype)&&(o=M(o).parent().closest("span, td, th, legend")),1===o.length)if(o.is(".disabled"))this.element.trigger({type:"outOfRange",date:this.viewDate,startDate:this.startDate,endDate:this.endDate});else switch(o[0].nodeName.toLowerCase()){case"th":switch(o[0].className){case"switch":this.showMode(1);break;case"prev":case"next":var r=S.modes[this.viewMode].navStep*("prev"===o[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveHour(this.viewDate,r);break;case 1:this.viewDate=this.moveDate(this.viewDate,r);break;case 2:this.viewDate=this.moveMonth(this.viewDate,r);break;case 3:case 4:this.viewDate=this.moveYear(this.viewDate,r)}this.fill(),this.element.trigger({type:o[0].className+":"+this.convertViewModeText(this.viewMode),date:this.viewDate,startDate:this.startDate,endDate:this.endDate});break;case"clear":this.reset(),this.autoclose&&this.hide();break;case"today":var d=new Date;(d=b(d.getFullYear(),d.getMonth(),d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds(),0))<this.startDate?d=this.startDate:d>this.endDate&&(d=this.endDate),this.viewMode=this.startViewMode,this.showMode(0),this._setDate(d),this.fill(),this.autoclose&&this.hide()}break;case"span":o.is(".disabled")||(i=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),e=this.viewDate.getUTCDate(),a=this.viewDate.getUTCHours(),n=this.viewDate.getUTCMinutes(),h=this.viewDate.getUTCSeconds(),o.is(".month")?(this.viewDate.setUTCDate(1),s=o.parent().find("span").index(o),e=this.viewDate.getUTCDate(),this.viewDate.setUTCMonth(s),this.element.trigger({type:"changeMonth",date:this.viewDate}),3<=this.viewSelect&&this._setDate(b(i,s,e,a,n,h,0))):o.is(".year")?(this.viewDate.setUTCDate(1),i=parseInt(o.text(),10)||0,this.viewDate.setUTCFullYear(i),this.element.trigger({type:"changeYear",date:this.viewDate}),4<=this.viewSelect&&this._setDate(b(i,s,e,a,n,h,0))):o.is(".hour")?(a=parseInt(o.text(),10)||0,(o.hasClass("hour_am")||o.hasClass("hour_pm"))&&(12===a&&o.hasClass("hour_am")?a=0:12!==a&&o.hasClass("hour_pm")&&(a+=12)),this.viewDate.setUTCHours(a),this.element.trigger({type:"changeHour",date:this.viewDate}),1<=this.viewSelect&&this._setDate(b(i,s,e,a,n,h,0))):o.is(".minute")&&(n=parseInt(o.text().substr(o.text().indexOf(":")+1),10)||0,this.viewDate.setUTCMinutes(n),this.element.trigger({type:"changeMinute",date:this.viewDate}),0<=this.viewSelect&&this._setDate(b(i,s,e,a,n,h,0))),0!==this.viewMode?(l=this.viewMode,this.showMode(-1),this.fill(),l===this.viewMode&&this.autoclose&&this.hide()):(this.fill(),this.autoclose&&this.hide()));break;case"td":o.is(".day")&&!o.is(".disabled")&&(e=parseInt(o.text(),10)||1,i=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),a=this.viewDate.getUTCHours(),n=this.viewDate.getUTCMinutes(),h=this.viewDate.getUTCSeconds(),o.is(".old")?0===s?(s=11,--i):--s:o.is(".new")&&(11===s?(s=0,i+=1):s+=1),this.viewDate.setUTCFullYear(i),this.viewDate.setUTCMonth(s,e),this.element.trigger({type:"changeDay",date:this.viewDate}),2<=this.viewSelect&&this._setDate(b(i,s,e,a,n,h,0)));var l=this.viewMode;this.showMode(-1),this.fill(),l===this.viewMode&&this.autoclose&&this.hide()}},_setDate:function(t,e){var i;e&&"date"!==e||(this.date=t),e&&"view"!==e||(this.viewDate=t),this.fill(),this.setValue(),this.isInput?i=this.element:this.component&&(i=this.element.find("input")),i&&i.change(),this.element.trigger({type:"changeDate",date:this.getDate()}),null===t&&(this.date=this.viewDate)},moveMinute:function(t,e){if(!e)return t;t=new Date(t.valueOf());return t.setUTCMinutes(t.getUTCMinutes()+e*this.minuteStep),t},moveHour:function(t,e){if(!e)return t;t=new Date(t.valueOf());return t.setUTCHours(t.getUTCHours()+e),t},moveDate:function(t,e){if(!e)return t;t=new Date(t.valueOf());t.setUTCDate(t.getUTCDate()+e);var i=this;return setTimeout(function(){i.element.trigger({type:"changeDay",date:i.viewDate})},100),t},moveMonth:function(t,e){if(!e)return t;var i,s,a=new Date(t.valueOf()),n=a.getUTCDate(),h=a.getUTCMonth(),o=Math.abs(e);if(e=0<e?1:-1,1===o)s=-1===e?function(){return a.getUTCMonth()===h}:function(){return a.getUTCMonth()!==i},i=h+e,a.setUTCMonth(i),(i<0||11<i)&&(i=(i+12)%12);else{for(var r=0;r<o;r++)a=this.moveMonth(a,e);i=a.getUTCMonth(),a.setUTCDate(n),s=function(){return i!==a.getUTCMonth()}}for(;s();)a.setUTCDate(--n),a.setUTCMonth(i);return a},moveYear:function(t,e){return this.moveMonth(t,12*e)},dateWithinRange:function(t){return t>=this.startDate&&t<=this.endDate},keydown:function(t){if(this.picker.is(":not(:visible)"))27===t.keyCode&&this.show();else{var e,i,s,a,n=!1;switch(t.keyCode){case 27:this.hide(),t.preventDefault();break;case 37:case 39:if(!this.keyboardNavigation)break;e=37===t.keyCode?-1:1;var h=this.viewMode;t.ctrlKey?h+=2:t.shiftKey&&(h+=1),4===h?(i=this.moveYear(this.date,e),s=this.moveYear(this.viewDate,e)):3===h?(i=this.moveMonth(this.date,e),s=this.moveMonth(this.viewDate,e)):2===h?(i=this.moveDate(this.date,e),s=this.moveDate(this.viewDate,e)):1===h?(i=this.moveHour(this.date,e),s=this.moveHour(this.viewDate,e)):0===h&&(i=this.moveMinute(this.date,e),s=this.moveMinute(this.viewDate,e)),this.dateWithinRange(i)&&(this.date=i,this.viewDate=s,this.setValue(),this.update(),t.preventDefault(),n=!0);break;case 38:case 40:if(!this.keyboardNavigation)break;e=38===t.keyCode?-1:1,h=this.viewMode,t.ctrlKey?h+=2:t.shiftKey&&(h+=1),4===h?(i=this.moveYear(this.date,e),s=this.moveYear(this.viewDate,e)):3===h?(i=this.moveMonth(this.date,e),s=this.moveMonth(this.viewDate,e)):2===h?(i=this.moveDate(this.date,7*e),s=this.moveDate(this.viewDate,7*e)):1===h?s=this.showMeridian?(i=this.moveHour(this.date,6*e),this.moveHour(this.viewDate,6*e)):(i=this.moveHour(this.date,4*e),this.moveHour(this.viewDate,4*e)):0===h&&(i=this.moveMinute(this.date,4*e),s=this.moveMinute(this.viewDate,4*e)),this.dateWithinRange(i)&&(this.date=i,this.viewDate=s,this.setValue(),this.update(),t.preventDefault(),n=!0);break;case 13:0!==this.viewMode?(s=this.viewMode,this.showMode(-1),this.fill(),s===this.viewMode&&this.autoclose&&this.hide()):(this.fill(),this.autoclose&&this.hide()),t.preventDefault();break;case 9:this.hide()}n&&(this.isInput?a=this.element:this.component&&(a=this.element.find("input")),a&&a.change(),this.element.trigger({type:"changeDate",date:this.getDate()}))}},showMode:function(t){!t||(t=Math.max(0,Math.min(S.modes.length-1,this.viewMode+t)))>=this.minView&&t<=this.maxView&&(this.element.trigger({type:"changeMode",date:this.viewDate,oldViewMode:this.viewMode,newViewMode:t}),this.viewMode=t),this.picker.find(">div").hide().filter(".datetimepicker-"+S.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()},reset:function(){this._setDate(null,"date")},convertViewModeText:function(t){switch(t){case 4:return"decade";case 3:return"year";case 2:return"month";case 1:return"day";case 0:return"hour"}}};var U=M.fn.datetimepicker;M.fn.datetimepicker=function(s){var a,n=Array.apply(null,arguments);return n.shift(),this.each(function(){var t=M(this),e=t.data("datetimepicker"),i="object"==typeof s&&s;if(e||t.data("datetimepicker",e=new w(this,M.extend({},M.fn.datetimepicker.defaults,i))),"string"==typeof s&&"function"==typeof e[s]&&(a=e[s].apply(e,n))!==h)return!1}),a!==h?a:this},M.fn.datetimepicker.defaults={},M.fn.datetimepicker.Constructor=w;var V=M.fn.datetimepicker.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"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],today:"Today",clear:"Clear"}},S={modes:[{clsName:"minutes",navFnc:"Hours",navStep:1},{clsName:"hours",navFnc:"Date",navStep:1},{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,S.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},getDefaultFormat:function(t,e){if("standard"===t)return"input"===e?"yyyy-mm-dd hh:ii":"yyyy-mm-dd hh:ii:ss";if("php"===t)return"input"===e?"Y-m-d H:i":"Y-m-d H:i:s";throw new Error("Invalid format type.")},validParts:function(t){if("standard"===t)return/t|hh?|HH?|p|P|z|Z|ii?|ss?|dd?|DD?|mm?|MM?|yy(?:yy)?/g;if("php"===t)return/[dDjlNwzFmMnStyYaABgGhHis]/g;throw new Error("Invalid format type.")},nonpunctuation:/[^ -\/:-@\[-`{-~\t\n\rTZ]+/g,parseFormat:function(t,e){var i=t.replace(this.validParts(e),"\0").split("\0"),e=t.match(this.validParts(e));if(!i||!i.length||!e||0===e.length)throw new Error("Invalid date format.");return{separators:i,parts:e}},parseDate:function(t,e,i,s,a){if(t instanceof Date){var n=new Date(t.valueOf()-6e4*t.getTimezoneOffset());return n.setMilliseconds(0),n}if(/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(t)&&(e=this.parseFormat("yyyy-mm-dd",s)),/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(t)&&(e=this.parseFormat("yyyy-mm-dd hh:ii",s)),/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(t)&&(e=this.parseFormat("yyyy-mm-dd hh:ii:ss",s)),/^[-+]\d+[dmwy]([\s,]+[-+]\d+[dmwy])*$/.test(t)){var h,o=/([-+]\d+)([dmwy])/,r=t.match(/([-+]\d+)([dmwy])/g);t=new Date;for(var d=0;d<r.length;d++)switch(u=o.exec(r[d]),h=parseInt(u[1]),u[2]){case"d":t.setUTCDate(t.getUTCDate()+h);break;case"m":t=w.prototype.moveMonth.call(w.prototype,t,h);break;case"w":t.setUTCDate(t.getUTCDate()+7*h);break;case"y":t=w.prototype.moveYear.call(w.prototype,t,h)}return b(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0)}var l,c,u,r=t&&t.toString().match(this.nonpunctuation)||[],t=new Date(0,0,0,0,0,0,0),p={},m=["hh","h","ii","i","ss","s","yyyy","yy","M","MM","m","mm","D","DD","d","dd","H","HH","p","P","z","Z"],g={hh:function(t,e){return t.setUTCHours(e)},h:function(t,e){return t.setUTCHours(e)},HH:function(t,e){return t.setUTCHours(12===e?0:e)},H:function(t,e){return t.setUTCHours(12===e?0:e)},ii:function(t,e){return t.setUTCMinutes(e)},i:function(t,e){return t.setUTCMinutes(e)},ss:function(t,e){return t.setUTCSeconds(e)},s:function(t,e){return t.setUTCSeconds(e)},yyyy:function(t,e){return t.setUTCFullYear(e)},yy:function(t,e){return t.setUTCFullYear(2e3+e)},m:function(t,e){for(--e;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;){if(isNaN(t.getUTCMonth()))return t;t.setUTCDate(t.getUTCDate()-1)}return t},d:function(t,e){return t.setUTCDate(e)},p:function(t,e){return t.setUTCHours(1===e?t.getUTCHours()+12:t.getUTCHours())},z:function(){return a}};if(g.M=g.MM=g.mm=g.m,g.dd=g.d,g.P=g.p,g.Z=g.z,t=b(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()),r.length===e.parts.length){for(var d=0,f=e.parts.length;d<f;d++){if(l=parseInt(r[d],10),u=e.parts[d],isNaN(l))switch(u){case"MM":c=M(V[i].months).filter(function(){var t=this.slice(0,r[d].length);return t===r[d].slice(0,t.length)}),l=M.inArray(c[0],V[i].months)+1;break;case"M":c=M(V[i].monthsShort).filter(function(){var t=this.slice(0,r[d].length),e=r[d].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}),l=M.inArray(c[0],V[i].monthsShort)+1;break;case"p":case"P":l=M.inArray(r[d].toLowerCase(),V[i].meridiem)}p[u]=l}for(var v,d=0;d<m.length;d++)(v=m[d])in p&&!isNaN(p[v])&&g[v](t,p[v])}return t},formatDate:function(t,e,i,s,a){if(null===t)return"";var n;if("standard"===s)n={t:t.getTime(),yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear(),m:t.getUTCMonth()+1,M:V[i].monthsShort[t.getUTCMonth()],MM:V[i].months[t.getUTCMonth()],d:t.getUTCDate(),D:V[i].daysShort[t.getUTCDay()],DD:V[i].days[t.getUTCDay()],p:2===V[i].meridiem.length?V[i].meridiem[t.getUTCHours()<12?0:1]:"",h:t.getUTCHours(),i:t.getUTCMinutes(),s:t.getUTCSeconds(),z:a},2===V[i].meridiem.length?n.H=n.h%12==0?12:n.h%12:n.H=n.h,n.HH=(n.H<10?"0":"")+n.H,n.P=n.p.toUpperCase(),n.Z=n.z,n.hh=(n.h<10?"0":"")+n.h,n.ii=(n.i<10?"0":"")+n.i,n.ss=(n.s<10?"0":"")+n.s,n.dd=(n.d<10?"0":"")+n.d,n.mm=(n.m<10?"0":"")+n.m;else{if("php"!==s)throw new Error("Invalid format type.");(n={y:t.getUTCFullYear().toString().substring(2),Y:t.getUTCFullYear(),F:V[i].months[t.getUTCMonth()],M:V[i].monthsShort[t.getUTCMonth()],n:t.getUTCMonth()+1,t:S.getDaysInMonth(t.getUTCFullYear(),t.getUTCMonth()),j:t.getUTCDate(),l:V[i].days[t.getUTCDay()],D:V[i].daysShort[t.getUTCDay()],w:t.getUTCDay(),N:0===t.getUTCDay()?7:t.getUTCDay(),S:t.getUTCDate()%10<=V[i].suffix.length?V[i].suffix[t.getUTCDate()%10-1]:"",a:2===V[i].meridiem.length?V[i].meridiem[t.getUTCHours()<12?0:1]:"",g:t.getUTCHours()%12==0?12:t.getUTCHours()%12,G:t.getUTCHours(),i:t.getUTCMinutes(),s:t.getUTCSeconds()}).m=(n.n<10?"0":"")+n.n,n.d=(n.j<10?"0":"")+n.j,n.A=n.a.toString().toUpperCase(),n.h=(n.g<10?"0":"")+n.g,n.H=(n.G<10?"0":"")+n.G,n.i=(n.i<10?"0":"")+n.i,n.s=(n.s<10?"0":"")+n.s}for(var t=[],h=M.extend([],e.separators),o=0,r=e.parts.length;o<r;o++)h.length&&t.push(h.shift()),t.push(n[e.parts[o]]);return h.length&&t.push(h.shift()),t.join("")},convertViewMode:function(t){switch(t){case 4:case"decade":t=4;break;case 3:case"year":t=3;break;case 2:case"month":t=2;break;case 1:case"day":t=1;break;case 0:case"hour":t=0}return t},headTemplate:'<thead><tr><th class="prev"><i class="{iconType} {leftArrow}"/></th><th colspan="5" class="switch"></th><th class="next"><i class="{iconType} {rightArrow}"/></th></tr></thead>',headTemplateV3:'<thead><tr><th class="prev"><span class="{iconType} {leftArrow}"></span> </th><th colspan="5" class="switch"></th><th class="next"><span class="{iconType} {rightArrow}"></span> </th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};S.template='<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">'+S.headTemplate+S.contTemplate+S.footTemplate+'</table></div><div class="datetimepicker-hours"><table class=" table-condensed">'+S.headTemplate+S.contTemplate+S.footTemplate+'</table></div><div class="datetimepicker-days"><table class=" table-condensed">'+S.headTemplate+"<tbody></tbody>"+S.footTemplate+'</table></div><div class="datetimepicker-months"><table class="table-condensed">'+S.headTemplate+S.contTemplate+S.footTemplate+'</table></div><div class="datetimepicker-years"><table class="table-condensed">'+S.headTemplate+S.contTemplate+S.footTemplate+"</table></div></div>",S.templateV3='<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">'+S.headTemplateV3+S.contTemplate+S.footTemplate+'</table></div><div class="datetimepicker-hours"><table class=" table-condensed">'+S.headTemplateV3+S.contTemplate+S.footTemplate+'</table></div><div class="datetimepicker-days"><table class=" table-condensed">'+S.headTemplateV3+"<tbody></tbody>"+S.footTemplate+'</table></div><div class="datetimepicker-months"><table class="table-condensed">'+S.headTemplateV3+S.contTemplate+S.footTemplate+'</table></div><div class="datetimepicker-years"><table class="table-condensed">'+S.headTemplateV3+S.contTemplate+S.footTemplate+"</table></div></div>",M.fn.datetimepicker.DPGlobal=S,M.fn.datetimepicker.noConflict=function(){return M.fn.datetimepicker=U,this},M(document).on("focus.datetimepicker.data-api click.datetimepicker.data-api",'[data-provide="datetimepicker"]',function(t){var e=M(this);e.data("datetimepicker")||(t.preventDefault(),e.datetimepicker("show"))}),M(function(){M('[data-provide="datetimepicker-inline"]').datetimepicker()})});

/* Moment JS */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e,s;function m(){return e.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(c(e,t))return;return 1}function l(e){return void 0===e}function h(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function i(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function r(e,t){for(var n=[],s=e.length,i=0;i<s;++i)n.push(t(e[i],i));return n}function d(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,s){return xt(e,t,n,s,!0).utc()}function _(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function y(e){if(null==e._isValid){var t=_(e),n=s.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function g(e){var t=f(NaN);return null!=e?d(_(t),e):_(t).userInvalidated=!0,t}s=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};var w=m.momentProperties=[],t=!1;function p(e,t){var n,s,i,r=w.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=_(t)),l(t._locale)||(e._locale=t._locale),0<r)for(n=0;n<r;n++)l(i=t[s=w[n]])||(e[s]=i);return e}function v(e){p(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,m.updateOffset(this),t=!1)}function k(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function M(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(r,a){var o=!0;return d(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,r),o){for(var e,t,n=[],s=arguments.length,i=0;i<s;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])c(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];n.push(e)}M(r+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),o=!1}return a.apply(this,arguments)},a)}var D,S={};function Y(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),S[e]||(M(t),S[e]=!0)}function O(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function b(e,t){var n,s=d({},e);for(n in t)c(t,n)&&(o(e[n])&&o(t[n])?(s[n]={},d(s[n],e[n]),d(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)c(e,n)&&!c(t,n)&&o(e[n])&&(s[n]=d({},s[n]));return s}function x(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null,D=Object.keys||function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};function T(e,t,n){var s=""+Math.abs(e),t=t-s.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t)).toString().substr(1)+s}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},W={};function C(e,t,n,s){var i="string"==typeof s?function(){return this[s]()}:s;e&&(W[e]=i),t&&(W[t[0]]=function(){return T(i.apply(this,arguments),t[1],t[2])}),n&&(W[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=H(t,e.localeData()),R[t]=R[t]||function(s){for(var e,i=s.match(N),t=0,r=i.length;t<r;t++)W[i[t]]?i[t]=W[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<r;n++)t+=O(i[n])?i[n].call(e,s):i[n];return t}}(t),R[t](e)):e.localeData().invalidDate()}function H(e,t){var n=5;function s(e){return t.longDateFormat(e)||e}for(P.lastIndex=0;0<=n&&P.test(e);)e=e.replace(P,s),P.lastIndex=0,--n;return e}var F={};function L(e,t){var n=e.toLowerCase();F[n]=F[n+"s"]=F[t]=e}function V(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function G(e){var t,n,s={};for(n in e)c(e,n)&&(t=V(n))&&(s[t]=e[n]);return s}var E={};function A(e,t){E[e]=t}function I(e){return e%4==0&&e%100!=0||e%400==0}function j(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Z(e){var t=+e,e=0;return 0!=t&&isFinite(t)&&(e=j(t)),e}function z(t,n){return function(e){return null!=e?(q(this,t,e),m.updateOffset(this,n),this):$(this,t)}}function $(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function q(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&I(e.year())&&1===e.month()&&29===e.date()?(n=Z(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),xe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var B,J=/\d/,Q=/\d\d/,X=/\d{3}/,K=/\d{4}/,ee=/[+-]?\d{6}/,te=/\d\d?/,ne=/\d\d\d\d?/,se=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,re=/\d{1,4}/,ae=/[+-]?\d{1,6}/,oe=/\d+/,ue=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,he=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ce(e,n,s){B[e]=O(n)?n:function(e,t){return e&&s?s:n}}function fe(e,t){return c(B,e)?B[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i})))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}B={};var _e={};function ye(e,n){var t,s,i=n;for("string"==typeof e&&(e=[e]),h(n)&&(i=function(e,t){t[n]=Z(e)}),s=e.length,t=0;t<s;t++)_e[e[t]]=i}function ge(e,i){ye(e,function(e,t,n,s){n._w=n._w||{},i(e,n._w,n,s)})}var we,pe=0,ve=1,ke=2,Me=3,De=4,Se=5,Ye=6,Oe=7,be=8;function xe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,n=(t%(n=12)+n)%n;return e+=(t-n)/12,1==n?I(e)?29:28:31-n%7%2}we=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},C("M",["MM",2],"Mo",function(){return this.month()+1}),C("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),C("MMMM",0,0,function(e){return this.localeData().months(this,e)}),L("month","M"),A("month",8),ce("M",te),ce("MM",te,Q),ce("MMM",function(e,t){return t.monthsShortRegex(e)}),ce("MMMM",function(e,t){return t.monthsRegex(e)}),ye(["M","MM"],function(e,t){t[ve]=Z(e)-1}),ye(["MMM","MMMM"],function(e,t,n,s){s=n._locale.monthsParse(e,s,n._strict);null!=s?t[ve]=s:_(n).invalidMonth=e});var Te="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Pe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Re=de,We=de;function Ce(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Z(t);else if(!h(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),xe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ue(e){return null!=e?(Ce(this,e),m.updateOffset(this,!0),this):$(this,"Month")}function He(){function e(e,t){return t.length-e.length}for(var t,n=[],s=[],i=[],r=0;r<12;r++)t=f([2e3,r]),n.push(this.monthsShort(t,"")),s.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(n.sort(e),s.sort(e),i.sort(e),r=0;r<12;r++)n[r]=me(n[r]),s[r]=me(s[r]);for(r=0;r<24;r++)i[r]=me(i[r]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Fe(e){return I(e)?366:365}C("Y",0,0,function(){var e=this.year();return e<=9999?T(e,4):"+"+e}),C(0,["YY",2],0,function(){return this.year()%100}),C(0,["YYYY",4],0,"year"),C(0,["YYYYY",5],0,"year"),C(0,["YYYYYY",6,!0],0,"year"),L("year","y"),A("year",1),ce("Y",ue),ce("YY",te,Q),ce("YYYY",re,K),ce("YYYYY",ae,ee),ce("YYYYYY",ae,ee),ye(["YYYYY","YYYYYY"],pe),ye("YYYY",function(e,t){t[pe]=2===e.length?m.parseTwoDigitYear(e):Z(e)}),ye("YY",function(e,t){t[pe]=m.parseTwoDigitYear(e)}),ye("Y",function(e,t){t[pe]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return Z(e)+(68<Z(e)?1900:2e3)};var Le=z("FullYear",!0);function Ve(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ge(e,t,n){n=7+t-n;return n-(7+Ve(e,0,n).getUTCDay()-t)%7-1}function Ee(e,t,n,s,i){var r,i=1+7*(t-1)+(7+n-s)%7+Ge(e,s,i),i=i<=0?Fe(r=e-1)+i:i>Fe(e)?(r=e+1,i-Fe(e)):(r=e,i);return{year:r,dayOfYear:i}}function Ae(e,t,n){var s,i,r=Ge(e.year(),t,n),r=Math.floor((e.dayOfYear()-r-1)/7)+1;return r<1?s=r+Ie(i=e.year()-1,t,n):r>Ie(e.year(),t,n)?(s=r-Ie(e.year(),t,n),i=e.year()+1):(i=e.year(),s=r),{week:s,year:i}}function Ie(e,t,n){var s=Ge(e,t,n),n=Ge(e+1,t,n);return(Fe(e)-s+n)/7}C("w",["ww",2],"wo","week"),C("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),A("week",5),A("isoWeek",5),ce("w",te),ce("ww",te,Q),ce("W",te),ce("WW",te,Q),ge(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=Z(e)});function je(e,t){return e.slice(t,7).concat(e.slice(0,t))}C("d",0,"do","day"),C("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),C("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),C("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),C("e",0,0,"weekday"),C("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),A("day",11),A("weekday",11),A("isoWeekday",11),ce("d",te),ce("e",te),ce("E",te),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,n,s){s=n._locale.weekdaysParse(e,s,n._strict);null!=s?t.d=s:_(n).invalidWeekday=e}),ge(["d","e","E"],function(e,t,n,s){t[s]=Z(e)});var Ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),qe=de,Be=de,Je=de;function Qe(){function e(e,t){return t.length-e.length}for(var t,n,s,i=[],r=[],a=[],o=[],u=0;u<7;u++)s=f([2e3,1]).day(u),t=me(this.weekdaysMin(s,"")),n=me(this.weekdaysShort(s,"")),s=me(this.weekdays(s,"")),i.push(t),r.push(n),a.push(s),o.push(t),o.push(n),o.push(s);i.sort(e),r.sort(e),a.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Xe(){return this.hours()%12||12}function Ke(e,t){C(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}C("H",["HH",2],0,"hour"),C("h",["hh",2],0,Xe),C("k",["kk",2],0,function(){return this.hours()||24}),C("hmm",0,0,function(){return""+Xe.apply(this)+T(this.minutes(),2)}),C("hmmss",0,0,function(){return""+Xe.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),C("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),C("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),L("hour","h"),A("hour",13),ce("a",et),ce("A",et),ce("H",te),ce("h",te),ce("k",te),ce("HH",te,Q),ce("hh",te,Q),ce("kk",te,Q),ce("hmm",ne),ce("hmmss",se),ce("Hmm",ne),ce("Hmmss",se),ye(["H","HH"],Me),ye(["k","kk"],function(e,t,n){e=Z(e);t[Me]=24===e?0:e}),ye(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ye(["h","hh"],function(e,t,n){t[Me]=Z(e),_(n).bigHour=!0}),ye("hmm",function(e,t,n){var s=e.length-2;t[Me]=Z(e.substr(0,s)),t[De]=Z(e.substr(s)),_(n).bigHour=!0}),ye("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[Me]=Z(e.substr(0,s)),t[De]=Z(e.substr(s,2)),t[Se]=Z(e.substr(i)),_(n).bigHour=!0}),ye("Hmm",function(e,t,n){var s=e.length-2;t[Me]=Z(e.substr(0,s)),t[De]=Z(e.substr(s))}),ye("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[Me]=Z(e.substr(0,s)),t[De]=Z(e.substr(s,2)),t[Se]=Z(e.substr(i))});var tt=z("Hours",!0);var nt,st={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Te,monthsShort:Ne,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:$e,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},it={},rt={};function at(e){return e&&e.toLowerCase().replace("_","-")}function ot(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=at(e[r]).split("-")).length,n=(n=at(e[r+1]))?n.split("-"):null;0<t;){if(s=ut(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),s=0;s<n;s+=1)if(e[s]!==t[s])return s;return n}(i,n)>=t-1)break;t--}r++}return nt}function ut(t){var e;if(void 0===it[t]&&"undefined"!=typeof module&&module&&module.exports&&null!=t.match("^[^/\\\\]*$"))try{e=nt._abbr,require("./locale/"+t),lt(e)}catch(e){it[t]=null}return it[t]}function lt(e,t){return e&&((t=l(t)?dt(e):ht(e,t))?nt=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nt._abbr}function ht(e,t){if(null===t)return delete it[e],null;var n,s=st;if(t.abbr=e,null!=it[e])Y("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])s=it[t.parentLocale]._config;else{if(null==(n=ut(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return it[e]=new x(b(s,t)),rt[e]&&rt[e].forEach(function(e){ht(e.name,e.config)}),lt(e),it[e]}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return nt;if(!a(e)){if(t=ut(e))return t;e=[e]}return ot(e)}function ct(e){var t=e._a;return t&&-2===_(e).overflow&&(t=t[ve]<0||11<t[ve]?ve:t[ke]<1||t[ke]>xe(t[pe],t[ve])?ke:t[Me]<0||24<t[Me]||24===t[Me]&&(0!==t[De]||0!==t[Se]||0!==t[Ye])?Me:t[De]<0||59<t[De]?De:t[Se]<0||59<t[Se]?Se:t[Ye]<0||999<t[Ye]?Ye:-1,_(e)._overflowDayOfYear&&(t<pe||ke<t)&&(t=ke),_(e)._overflowWeeks&&-1===t&&(t=Oe),_(e)._overflowWeekday&&-1===t&&(t=be),_(e).overflow=t),e}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],gt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((-?\d+)/i,pt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,vt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kt(e){var t,n,s,i,r,a,o=e._i,u=ft.exec(o)||mt.exec(o),l=yt.length,o=gt.length;if(u){for(_(e).iso=!0,t=0,n=l;t<n;t++)if(yt[t][1].exec(u[1])){i=yt[t][0],s=!1!==yt[t][2];break}if(null!=i){if(u[3]){for(t=0,n=o;t<n;t++)if(gt[t][1].exec(u[3])){r=(u[2]||" ")+gt[t][0];break}if(null==r)return void(e._isValid=!1)}if(s||null==r){if(u[4]){if(!_t.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),Ot(e)}else e._isValid=!1}else e._isValid=!1}else e._isValid=!1}function Mt(e,t,n,s,i,r){i=[function(e){e=parseInt(e,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(e),Ne.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&i.push(parseInt(r,10)),i}function Dt(e){var t,n,s,i,r=pt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));r?(t=Mt(r[4],r[3],r[2],r[5],r[6],r[7]),n=r[1],s=t,i=e,n&&ze.indexOf(n)!==new Date(s[0],s[1],s[2]).getDay()?(_(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(i=r[8],t=r[9],r=r[10],i?vt[i]:t?0:60*(((t=parseInt(r,10))-(r=t%100))/100)+r),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0)):e._isValid=!1}function St(e,t,n){return null!=e?e:null!=t?t:n}function Yt(e){var t,n,s,i,r,a,o,u,l,h,d,c,f=[];if(!e._d){for(r=e,c=new Date(m.now()),n=r._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()],e._w&&null==e._a[ke]&&null==e._a[ve]&&(null!=(r=(i=e)._w).GG||null!=r.W||null!=r.E?(l=1,h=4,a=St(r.GG,i._a[pe],Ae(Tt(),1,4).year),o=St(r.W,1),((u=St(r.E,1))<1||7<u)&&(d=!0)):(l=i._locale._week.dow,h=i._locale._week.doy,c=Ae(Tt(),l,h),a=St(r.gg,i._a[pe],c.year),o=St(r.w,c.week),null!=r.d?((u=r.d)<0||6<u)&&(d=!0):null!=r.e?(u=r.e+l,(r.e<0||6<r.e)&&(d=!0)):u=l),o<1||o>Ie(a,l,h)?_(i)._overflowWeeks=!0:null!=d?_(i)._overflowWeekday=!0:(h=Ee(a,o,u,l,h),i._a[pe]=h.year,i._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(s=St(e._a[pe],n[pe]),(e._dayOfYear>Fe(s)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),s=Ve(s,0,e._dayOfYear),e._a[ve]=s.getUTCMonth(),e._a[ke]=s.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=f[t]=n[t];for(;t<7;t++)e._a[t]=f[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Me]&&0===e._a[De]&&0===e._a[Se]&&0===e._a[Ye]&&(e._nextDay=!0,e._a[Me]=0),e._d=(e._useUTC?Ve:function(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}).apply(null,f),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Me]=24),e._w&&void 0!==e._w.d&&e._w.d!==s&&(_(e).weekdayMismatch=!0)}}function Ot(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],_(e).empty=!0;for(var t,n,s,i,r,a=""+e._i,o=a.length,u=0,l=H(e._f,e._locale).match(N)||[],h=l.length,d=0;d<h;d++)n=l[d],(t=(a.match(fe(n,e))||[])[0])&&(0<(i=a.substr(0,a.indexOf(t))).length&&_(e).unusedInput.push(i),a=a.slice(a.indexOf(t)+t.length),u+=t.length),W[n]?(t?_(e).empty=!1:_(e).unusedTokens.push(n),s=n,r=e,null!=(i=t)&&c(_e,s)&&_e[s](i,r._a,r,s)):e._strict&&!t&&_(e).unusedTokens.push(n);_(e).charsLeftOver=o-u,0<a.length&&_(e).unusedInput.push(a),e._a[Me]<=12&&!0===_(e).bigHour&&0<e._a[Me]&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[Me]=function(e,t,n){if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((n=e.isPM(n))&&t<12&&(t+=12),n||12!==t||(t=0)),t)}(e._locale,e._a[Me],e._meridiem),null!==(o=_(e).era)&&(e._a[pe]=e._locale.erasConvertYear(o,e._a[pe])),Yt(e),ct(e)}else Dt(e);else kt(e)}function bt(e){var t=e._i,n=e._f;return e._locale=e._locale||dt(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new v(ct(t)):(i(t)?e._d=t:a(n)?function(e){var t,n,s,i,r,a,o=!1,u=e._f.length;if(0===u)return _(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<u;i++)r=0,a=!1,t=p({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Ot(t),y(t)&&(a=!0),r+=_(t).charsLeftOver,r+=10*_(t).unusedTokens.length,_(t).score=r,o?r<s&&(s=r,n=t):(null==s||r<s||a)&&(s=r,n=t,a&&(o=!0));d(e,n||t)}(e):n?Ot(e):l(n=(t=e)._i)?t._d=new Date(m.now()):i(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(e){var t=wt.exec(e._i);null===t?(kt(e),!1===e._isValid&&(delete e._isValid,Dt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:m.createFromInputFallback(e)))):e._d=new Date(+t[1])}(t):a(n)?(t._a=r(n.slice(0),function(e){return parseInt(e,10)}),Yt(t)):o(n)?function(e){var t,n;e._d||(n=void 0===(t=G(e._i)).day?t.date:t.day,e._a=r([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Yt(e))}(t):h(n)?t._d=new Date(n):m.createFromInputFallback(t),y(e)||(e._d=null),e))}function xt(e,t,n,s,i){var r={};return!0!==t&&!1!==t||(s=t,t=void 0),!0!==n&&!1!==n||(s=n,n=void 0),(o(e)&&u(e)||a(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=i,r._l=n,r._i=e,r._f=t,r._strict=s,(r=new v(ct(bt(r=r))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function Tt(e,t,n,s){return xt(e,t,n,s,!1)}m.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};var Nt=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Pt=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:g()});function Rt(e,t){var n,s;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n}var Wt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ct(e){var t=G(e),n=t.year||0,s=t.quarter||0,i=t.month||0,r=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,e=t.millisecond||0;this._isValid=function(e){var t,n,s=!1,i=Wt.length;for(t in e)if(c(e,t)&&(-1===we.call(Wt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Wt[n]]){if(s)return!1;parseFloat(e[Wt[n]])!==Z(e[Wt[n]])&&(s=!0)}return!0}(t),this._milliseconds=+e+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*r,this._months=+i+3*s+12*n,this._data={},this._locale=dt(),this._bubble()}function Ut(e){return e instanceof Ct}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,n){C(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+T(~~(e/60),2)+n+T(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),ce("Z",he),ce("ZZ",he),ye(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Vt(he,e)});var Lt=/([\+\-]|\d\d)/gi;function Vt(e,t){t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Lt)||["-",0,0])[1]+Z(e[2]))?0:"+"===e[0]?t:-t}function Gt(e,t){var n;return t._isUTC?(n=t.clone(),t=(k(e)||i(e)?e:Tt(e)).valueOf()-n.valueOf(),n._d.setTime(n._d.valueOf()+t),m.updateOffset(n,!1),n):Tt(e).local()}function Et(e){return-Math.round(e._d.getTimezoneOffset())}function At(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}m.updateOffset=function(){};var It=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Zt(e,t){var n,s=e,i=null;return Ut(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:h(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(i=It.exec(e))?(n="-"===i[1]?-1:1,s={y:0,d:Z(i[ke])*n,h:Z(i[Me])*n,m:Z(i[De])*n,s:Z(i[Se])*n,ms:Z(Ht(1e3*i[Ye]))*n}):(i=jt.exec(e))?(n="-"===i[1]?-1:1,s={y:zt(i[2],n),M:zt(i[3],n),w:zt(i[4],n),d:zt(i[5],n),h:zt(i[6],n),m:zt(i[7],n),s:zt(i[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(n=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Gt(t,e),e.isBefore(t)?n=$t(e,t):((n=$t(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Tt(s.from),Tt(s.to)),(s={}).ms=n.milliseconds,s.M=n.months),s=new Ct(s),Ut(e)&&c(e,"_locale")&&(s._locale=e._locale),Ut(e)&&c(e,"_isValid")&&(s._isValid=e._isValid),s}function zt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function $t(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qt(s,i){return function(e,t){var n;return null===t||isNaN(+t)||(Y(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),Bt(this,Zt(e,t),s),this}}function Bt(e,t,n,s){var i=t._milliseconds,r=Ht(t._days),t=Ht(t._months);e.isValid()&&(s=null==s||s,t&&Ce(e,$(e,"Month")+t*n),r&&q(e,"Date",$(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s&&m.updateOffset(e,r||t))}Zt.fn=Ct.prototype,Zt.invalid=function(){return Zt(NaN)};var Jt=qt(1,"add"),de=qt(-1,"subtract");function Qt(e){return"string"==typeof e||e instanceof String}function Xt(e){return k(e)||i(e)||Qt(e)||h(e)||function(t){var e=a(t),n=!1;e&&(n=0===t.filter(function(e){return!h(e)&&Qt(t)}).length);return e&&n}(e)||function(e){var t,n,s=o(e)&&!u(e),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=r.length;for(t=0;t<a;t+=1)n=r[t],i=i||c(e,n);return s&&i}(e)||null==e}function Kt(e,t){if(e.date()<t.date())return-Kt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(n,"months"),s=t-s<0?(t-s)/(s-e.clone().add(n-1,"months")):(t-s)/(e.clone().add(1+n,"months")-s);return-(n+s)||0}function en(e){return void 0===e?this._locale._abbr:(null!=(e=dt(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";ne=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function tn(){return this._locale}var nn=126227808e5;function sn(e,t){return(e%t+t)%t}function rn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-nn:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-nn:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function un(){for(var e=[],t=[],n=[],s=[],i=this.eras(),r=0,a=i.length;r<a;++r)t.push(me(i[r].name)),e.push(me(i[r].abbr)),n.push(me(i[r].narrow)),s.push(me(i[r].name)),s.push(me(i[r].abbr)),s.push(me(i[r].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function ln(e,t){C(0,[e,e.length],0,t)}function hn(e,t,n,s,i){var r;return null==e?Ae(this,s,i).year:((r=Ie(e,s,i))<t&&(t=r),function(e,t,n,s,i){i=Ee(e,t,n,s,i),i=Ve(i.year,0,i.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}.call(this,e,t,n,s,i))}C("N",0,0,"eraAbbr"),C("NN",0,0,"eraAbbr"),C("NNN",0,0,"eraAbbr"),C("NNNN",0,0,"eraName"),C("NNNNN",0,0,"eraNarrow"),C("y",["y",1],"yo","eraYear"),C("y",["yy",2],0,"eraYear"),C("y",["yyy",3],0,"eraYear"),C("y",["yyyy",4],0,"eraYear"),ce("N",on),ce("NN",on),ce("NNN",on),ce("NNNN",function(e,t){return t.erasNameRegex(e)}),ce("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ye(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){s=n._locale.erasParse(e,s,n._strict);s?_(n).era=s:_(n).invalidEra=e}),ce("y",oe),ce("yy",oe),ce("yyy",oe),ce("yyyy",oe),ce("yo",function(e,t){return t._eraYearOrdinalRegex||oe}),ye(["y","yy","yyy","yyyy"],pe),ye(["yo"],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[pe]=n._locale.eraYearOrdinalParse(e,i):t[pe]=parseInt(e,10)}),C(0,["gg",2],0,function(){return this.weekYear()%100}),C(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),A("weekYear",1),A("isoWeekYear",1),ce("G",ue),ce("g",ue),ce("GG",te,Q),ce("gg",te,Q),ce("GGGG",re,K),ce("gggg",re,K),ce("GGGGG",ae,ee),ce("ggggg",ae,ee),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=Z(e)}),ge(["gg","GG"],function(e,t,n,s){t[s]=m.parseTwoDigitYear(e)}),C("Q",0,"Qo","quarter"),L("quarter","Q"),A("quarter",7),ce("Q",J),ye("Q",function(e,t){t[ve]=3*(Z(e)-1)}),C("D",["DD",2],"Do","date"),L("date","D"),A("date",9),ce("D",te),ce("DD",te,Q),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ye(["D","DD"],ke),ye("Do",function(e,t){t[ke]=Z(e.match(te)[0])});se=z("Date",!0);C("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),A("dayOfYear",4),ce("DDD",ie),ce("DDDD",X),ye(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Z(e)}),C("m",["mm",2],0,"minute"),L("minute","m"),A("minute",14),ce("m",te),ce("mm",te,Q),ye(["m","mm"],De);Te=z("Minutes",!1);C("s",["ss",2],0,"second"),L("second","s"),A("second",15),ce("s",te),ce("ss",te,Q),ye(["s","ss"],Se);var dn,Ze=z("Seconds",!1);for(C("S",0,0,function(){return~~(this.millisecond()/100)}),C(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),C(0,["SSS",3],0,"millisecond"),C(0,["SSSS",4],0,function(){return 10*this.millisecond()}),C(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),C(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),C(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),C(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),C(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),A("millisecond",16),ce("S",ie,J),ce("SS",ie,Q),ce("SSS",ie,X),dn="SSSS";dn.length<=9;dn+="S")ce(dn,oe);function cn(e,t){t[Ye]=Z(1e3*("0."+e))}for(dn="S";dn.length<=9;dn+="S")ye(dn,cn);$e=z("Milliseconds",!1),C("z",0,0,"zoneAbbr"),C("zz",0,0,"zoneName");re=v.prototype;function fn(e){return e}re.add=Jt,re.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=o(e)&&!u(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<s.length;i+=1)n=n||c(e,s[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var n=e||Tt(),e=Gt(n,this).startOf("day"),e=m.calendarFormat(this,e)||"sameElse",t=t&&(O(t[e])?t[e].call(this,n):t[e]);return this.format(t||this.localeData().calendar(e,this,Tt(n)))},re.clone=function(){return new v(this)},re.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Gt(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=V(t)){case"year":r=Kt(this,s)/12;break;case"month":r=Kt(this,s);break;case"quarter":r=Kt(this,s)/3;break;case"second":r=(this-s)/1e3;break;case"minute":r=(this-s)/6e4;break;case"hour":r=(this-s)/36e5;break;case"day":r=(this-s-i)/864e5;break;case"week":r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:j(r)},re.endOf=function(e){var t,n;if(void 0===(e=V(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-sn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-sn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-sn(t,1e3)-1}return this._d.setTime(t),m.updateOffset(this,!0),this},re.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=U(this,e),this.localeData().postformat(e)},re.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||Tt(e).isValid())?Zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},re.fromNow=function(e){return this.from(Tt(),e)},re.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||Tt(e).isValid())?Zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},re.toNow=function(e){return this.to(Tt(),e)},re.get=function(e){return O(this[e=V(e)])?this[e]():this},re.invalidAt=function(){return _(this).overflow},re.isAfter=function(e,t){return e=k(e)?e:Tt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},re.isBefore=function(e,t){return e=k(e)?e:Tt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},re.isBetween=function(e,t,n,s){return e=k(e)?e:Tt(e),t=k(t)?t:Tt(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&(("("===(s=s||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===s[1]?this.isBefore(t,n):!this.isAfter(t,n)))},re.isSame=function(e,t){return e=k(e)?e:Tt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},re.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},re.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},re.isValid=function(){return y(this)},re.lang=ne,re.locale=en,re.localeData=tn,re.max=Pt,re.min=Nt,re.parsingFlags=function(){return d({},_(this))},re.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)c(e,t)&&n.push({unit:t,priority:E[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=G(e)),s=n.length,i=0;i<s;i++)this[n[i].unit](e[n[i].unit]);else if(O(this[e=V(e)]))return this[e](t);return this},re.startOf=function(e){var t,n;if(void 0===(e=V(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=sn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=sn(t,6e4);break;case"second":t=this._d.valueOf(),t-=sn(t,1e3)}return this._d.setTime(t),m.updateOffset(this,!0),this},re.subtract=de,re.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},re.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},re.toDate=function(){return new Date(this.valueOf())},re.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e;return(e=t?this.clone().utc():this).year()<0||9999<e.year()?U(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(e,"Z")):U(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},re.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",n="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),e="["+t+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=n+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(re[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),re.toJSON=function(){return this.isValid()?this.toISOString():null},re.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},re.unix=function(){return Math.floor(this.valueOf()/1e3)},re.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},re.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},re.eraName=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},re.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},re.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},re.eraYear=function(){for(var e,t,n=this.localeData().eras(),s=0,i=n.length;s<i;++s)if(e=n[s].since<=n[s].until?1:-1,t=this.clone().startOf("day").valueOf(),n[s].since<=t&&t<=n[s].until||n[s].until<=t&&t<=n[s].since)return(this.year()-m(n[s].since).year())*e+n[s].offset;return this.year()},re.year=Le,re.isLeapYear=function(){return I(this.year())},re.weekYear=function(e){return hn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},re.isoWeekYear=function(e){return hn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},re.quarter=re.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},re.month=Ue,re.daysInMonth=function(){return xe(this.year(),this.month())},re.week=re.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},re.isoWeek=re.isoWeeks=function(e){var t=Ae(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},re.weeksInYear=function(){var e=this.localeData()._week;return Ie(this.year(),e.dow,e.doy)},re.weeksInWeekYear=function(){var e=this.localeData()._week;return Ie(this.weekYear(),e.dow,e.doy)},re.isoWeeksInYear=function(){return Ie(this.year(),1,4)},re.isoWeeksInISOWeekYear=function(){return Ie(this.isoWeekYear(),1,4)},re.date=se,re.day=re.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,s=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-s,"d")):s},re.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},re.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t=(t=e,e=this.localeData(),"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?t:t-7)},re.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},re.hour=re.hours=tt,re.minute=re.minutes=Te,re.second=re.seconds=Ze,re.millisecond=re.milliseconds=$e,re.utcOffset=function(e,t,n){var s,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Et(this);if("string"==typeof e){if(null===(e=Vt(he,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=Et(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?Bt(this,Zt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},re.utc=function(e){return this.utcOffset(0,e)},re.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Et(this),"m")),this},re.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Vt(le,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},re.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},re.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},re.isLocal=function(){return!!this.isValid()&&!this._isUTC},re.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},re.isUtc=At,re.isUTC=At,re.zoneAbbr=function(){return this._isUTC?"UTC":""},re.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},re.dates=n("dates accessor is deprecated. Use date instead.",se),re.months=n("months accessor is deprecated. Use month instead",Ue),re.years=n("years accessor is deprecated. Use year instead",Le),re.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),re.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return p(t,this),(t=bt(t))._a?(e=(t._isUTC?f:Tt)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var s=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0,a=0;a<s;a++)(n&&e[a]!==t[a]||!n&&Z(e[a])!==Z(t[a]))&&r++;return r+i}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});K=x.prototype;function mn(e,t,n,s){var i=dt(),t=f().set(s,t);return i[n](t,e)}function _n(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||"",null!=t)return mn(e,t,n,"month");for(var s=[],i=0;i<12;i++)s[i]=mn(e,i,n,"month");return s}function yn(e,t,n,s){t=("boolean"==typeof e?h(t)&&(n=t,t=void 0):(t=e,e=!1,h(n=t)&&(n=t,t=void 0)),t||"");var i,r=dt(),a=e?r._week.dow:0,o=[];if(null!=n)return mn(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=mn(t,(i+a)%7,s,"day");return o}K.calendar=function(e,t,n){return O(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},K.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},K.invalidDate=function(){return this._invalidDate},K.ordinal=function(e){return this._ordinal.replace("%d",e)},K.preparse=fn,K.postformat=fn,K.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return O(i)?i(e,t,n,s):i.replace(/%d/i,e)},K.pastFuture=function(e,t){return O(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},K.set=function(e){var t,n;for(n in e)c(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},K.eras=function(e,t){for(var n,s=this._eras||dt("en")._eras,i=0,r=s.length;i<r;++i)switch("string"==typeof s[i].since&&(n=m(s[i].since).startOf("day"),s[i].since=n.valueOf()),typeof s[i].until){case"undefined":s[i].until=1/0;break;case"string":n=m(s[i].until).startOf("day").valueOf(),s[i].until=n.valueOf()}return s},K.erasParse=function(e,t,n){var s,i,r,a,o,u=this.eras();for(e=e.toUpperCase(),s=0,i=u.length;s<i;++s)if(r=u[s].name.toUpperCase(),a=u[s].abbr.toUpperCase(),o=u[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[s];break;case"NNNN":if(r===e)return u[s];break;case"NNNNN":if(o===e)return u[s]}else if(0<=[r,a,o].indexOf(e))return u[s]},K.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*n},K.erasAbbrRegex=function(e){return c(this,"_erasAbbrRegex")||un.call(this),e?this._erasAbbrRegex:this._erasRegex},K.erasNameRegex=function(e){return c(this,"_erasNameRegex")||un.call(this),e?this._erasNameRegex:this._erasRegex},K.erasNarrowRegex=function(e){return c(this,"_erasNarrowRegex")||un.call(this),e?this._erasNarrowRegex:this._erasRegex},K.months=function(e,t){return e?(a(this._months)?this._months:this._months[(this._months.isFormat||Pe).test(t)?"format":"standalone"])[e.month()]:a(this._months)?this._months:this._months.standalone},K.monthsShort=function(e,t){return e?(a(this._monthsShort)?this._monthsShort:this._monthsShort[Pe.test(t)?"format":"standalone"])[e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},K.monthsParse=function(e,t,n){var s,i;if(this._monthsParseExact)return function(e,t,n){var s,i,r,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=f([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=we.call(this._shortMonthsParse,e))?i:null:-1!==(i=we.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=we.call(this._shortMonthsParse,e))||-1!==(i=we.call(this._longMonthsParse,e))?i:null:-1!==(i=we.call(this._longMonthsParse,e))||-1!==(i=we.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=f([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},K.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||He.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=We),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},K.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||He.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},K.week=function(e){return Ae(e,this._week.dow,this._week.doy).week},K.firstDayOfYear=function(){return this._week.doy},K.firstDayOfWeek=function(){return this._week.dow},K.weekdays=function(e,t){return t=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?je(t,this._week.dow):e?t[e.day()]:t},K.weekdaysMin=function(e){return!0===e?je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},K.weekdaysShort=function(e){return!0===e?je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},K.weekdaysParse=function(e,t,n){var s,i;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=f([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=we.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=we.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=we.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=we.call(this._weekdaysParse,e))||-1!==(i=we.call(this._shortWeekdaysParse,e))||-1!==(i=we.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=we.call(this._shortWeekdaysParse,e))||-1!==(i=we.call(this._weekdaysParse,e))||-1!==(i=we.call(this._minWeekdaysParse,e))?i:null:-1!==(i=we.call(this._minWeekdaysParse,e))||-1!==(i=we.call(this._weekdaysParse,e))||-1!==(i=we.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=f([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},K.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},K.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Be),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},K.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},K.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},K.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},lt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Z(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=n("moment.lang is deprecated. Use moment.locale instead.",lt),m.langData=n("moment.langData is deprecated. Use moment.localeData instead.",dt);var gn=Math.abs;function wn(e,t,n,s){n=Zt(t,n);return e._milliseconds+=s*n._milliseconds,e._days+=s*n._days,e._months+=s*n._months,e._bubble()}function pn(e){return e<0?Math.floor(e):Math.ceil(e)}function vn(e){return 4800*e/146097}function kn(e){return 146097*e/4800}function Mn(e){return function(){return this.as(e)}}ae=Mn("ms"),ee=Mn("s"),J=Mn("m"),Q=Mn("h"),ie=Mn("d"),X=Mn("w"),Jt=Mn("M"),Pt=Mn("Q"),Nt=Mn("y");function Dn(e){return function(){return this.isValid()?this._data[e]:NaN}}de=Dn("milliseconds"),tt=Dn("seconds"),Te=Dn("minutes"),Ze=Dn("hours"),$e=Dn("days"),se=Dn("months"),Le=Dn("years");var Sn=Math.round,Yn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function On(e,t,n,s){var i=Zt(e).abs(),r=Sn(i.as("s")),a=Sn(i.as("m")),o=Sn(i.as("h")),u=Sn(i.as("d")),l=Sn(i.as("M")),h=Sn(i.as("w")),i=Sn(i.as("y")),u=(r<=n.ss?["s",r]:r<n.s&&["ss",r])||a<=1&&["m"]||a<n.m&&["mm",a]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(u=u||h<=1&&["w"]||h<n.w&&["ww",h]),(u=u||l<=1&&["M"]||l<n.M&&["MM",l]||i<=1&&["y"]||["yy",i])[2]=t,u[3]=0<+e,u[4]=s,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}.apply(null,u)}var bn=Math.abs;function xn(e){return(0<e)-(e<0)||+e}function Tn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,i,r,a,o=bn(this._milliseconds)/1e3,u=bn(this._days),l=bn(this._months),h=this.asSeconds();return h?(e=j(o/60),t=j(e/60),o%=60,e%=60,n=j(l/12),l%=12,s=o?o.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",r=xn(this._months)!==xn(h)?"-":"",a=xn(this._days)!==xn(h)?"-":"",h=xn(this._milliseconds)!==xn(h)?"-":"",i+"P"+(n?r+n+"Y":"")+(l?r+l+"M":"")+(u?a+u+"D":"")+(t||e||o?"T":"")+(t?h+t+"H":"")+(e?h+e+"M":"")+(o?h+s+"S":"")):"P0D"}K=Ct.prototype;return K.isValid=function(){return this._isValid},K.abs=function(){var e=this._data;return this._milliseconds=gn(this._milliseconds),this._days=gn(this._days),this._months=gn(this._months),e.milliseconds=gn(e.milliseconds),e.seconds=gn(e.seconds),e.minutes=gn(e.minutes),e.hours=gn(e.hours),e.months=gn(e.months),e.years=gn(e.years),this},K.add=function(e,t){return wn(this,e,t,1)},K.subtract=function(e,t){return wn(this,e,t,-1)},K.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=V(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+vn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(kn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}},K.asMilliseconds=ae,K.asSeconds=ee,K.asMinutes=J,K.asHours=Q,K.asDays=ie,K.asWeeks=X,K.asMonths=Jt,K.asQuarters=Pt,K.asYears=Nt,K.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Z(this._months/12):NaN},K._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,s=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*pn(kn(n)+t),n=t=0),s.milliseconds=e%1e3,e=j(e/1e3),s.seconds=e%60,e=j(e/60),s.minutes=e%60,e=j(e/60),s.hours=e%24,t+=j(e/24),n+=e=j(vn(t)),t-=pn(kn(e)),e=j(n/12),n%=12,s.days=t,s.months=n,s.years=e,this},K.clone=function(){return Zt(this)},K.get=function(e){return e=V(e),this.isValid()?this[e+"s"]():NaN},K.milliseconds=de,K.seconds=tt,K.minutes=Te,K.hours=Ze,K.days=$e,K.weeks=function(){return j(this.days()/7)},K.months=se,K.years=Le,K.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,s=Yn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(s=Object.assign({},Yn,t),null!=t.s&&null==t.ss&&(s.ss=t.s-1)),t=this.localeData(),s=On(this,!n,s,t),n&&(s=t.pastFuture(+this,s)),t.postformat(s)},K.toISOString=Tn,K.toString=Tn,K.toJSON=Tn,K.locale=en,K.localeData=tn,K.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Tn),K.lang=ne,C("X",0,0,"unix"),C("x",0,0,"valueOf"),ce("x",ue),ce("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ye("x",function(e,t,n){n._d=new Date(Z(e))}),m.version="2.29.4",e=Tt,m.fn=re,m.min=function(){return Rt("isBefore",[].slice.call(arguments,0))},m.max=function(){return Rt("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=f,m.unix=function(e){return Tt(1e3*e)},m.months=function(e,t){return _n(e,t,"months")},m.isDate=i,m.locale=lt,m.invalid=g,m.duration=Zt,m.isMoment=k,m.weekdays=function(e,t,n){return yn(e,t,n,"weekdays")},m.parseZone=function(){return Tt.apply(null,arguments).parseZone()},m.localeData=dt,m.isDuration=Ut,m.monthsShort=function(e,t){return _n(e,t,"monthsShort")},m.weekdaysMin=function(e,t,n){return yn(e,t,n,"weekdaysMin")},m.defineLocale=ht,m.updateLocale=function(e,t){var n,s;return null!=t?(s=st,null!=it[e]&&null!=it[e].parentLocale?it[e].set(b(it[e]._config,t)):(null!=(n=ut(e))&&(s=n._config),t=b(s,t),null==n&&(t.abbr=e),(t=new x(t)).parentLocale=it[e],it[e]=t),lt(e)):null!=it[e]&&(null!=it[e].parentLocale?(it[e]=it[e].parentLocale,e===lt()&&lt(e)):null!=it[e]&&delete it[e]),it[e]},m.locales=function(){return D(it)},m.weekdaysShort=function(e,t,n){return yn(e,t,n,"weekdaysShort")},m.normalizeUnits=V,m.relativeTimeRounding=function(e){return void 0===e?Sn:"function"==typeof e&&(Sn=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Yn[e]&&(void 0===t?Yn[e]:(Yn[e]=t,"s"===e&&(Yn.ss=t-1),!0))},m.calendarFormat=function(e,t){return(t=e.diff(t,"days",!0))<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},m.prototype=re,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m});

// jQuery Mask Plugin v1.14.16
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,n,f){a instanceof String&&(a=String(a));for(var p=a.length,k=0;k<p;k++){var b=a[k];if(n.call(f,b,k,a))return{i:k,v:b}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,n,f){a!=Array.prototype&&a!=Object.prototype&&(a[n]=f.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(a,n,f,p){if(n){f=$jscomp.global;a=a.split(".");for(p=0;p<a.length-1;p++){var k=a[p];k in f||(f[k]={});f=f[k]}a=a[a.length-1];p=f[a];n=n(p);n!=p&&null!=n&&$jscomp.defineProperty(f,a,{configurable:!0,writable:!0,value:n})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,f){return $jscomp.findInternal(this,a,f).v}},"es6","es3");
(function(a,n,f){"function"===typeof define&&define.amd?define(["jquery"],a):"object"===typeof exports&&"undefined"===typeof Meteor?module.exports=a(require("jquery")):a(n||f)})(function(a){var n=function(b,d,e){var c={invalid:[],getCaret:function(){try{var a=0,r=b.get(0),h=document.selection,d=r.selectionStart;if(h&&-1===navigator.appVersion.indexOf("MSIE 10")){var e=h.createRange();e.moveStart("character",-c.val().length);a=e.text.length}else if(d||"0"===d)a=d;return a}catch(C){}},setCaret:function(a){try{if(b.is(":focus")){var c=
b.get(0);if(c.setSelectionRange)c.setSelectionRange(a,a);else{var g=c.createTextRange();g.collapse(!0);g.moveEnd("character",a);g.moveStart("character",a);g.select()}}}catch(B){}},events:function(){b.on("keydown.mask",function(a){b.data("mask-keycode",a.keyCode||a.which);b.data("mask-previus-value",b.val());b.data("mask-previus-caret-pos",c.getCaret());c.maskDigitPosMapOld=c.maskDigitPosMap}).on(a.jMaskGlobals.useInput?"input.mask":"keyup.mask",c.behaviour).on("paste.mask drop.mask",function(){setTimeout(function(){b.keydown().keyup()},
100)}).on("change.mask",function(){b.data("changed",!0)}).on("blur.mask",function(){f===c.val()||b.data("changed")||b.trigger("change");b.data("changed",!1)}).on("blur.mask",function(){f=c.val()}).on("focus.mask",function(b){!0===e.selectOnFocus&&a(b.target).select()}).on("focusout.mask",function(){e.clearIfNotMatch&&!k.test(c.val())&&c.val("")})},getRegexMask:function(){for(var a=[],b,c,e,t,f=0;f<d.length;f++)(b=l.translation[d.charAt(f)])?(c=b.pattern.toString().replace(/.{1}$|^.{1}/g,""),e=b.optional,
(b=b.recursive)?(a.push(d.charAt(f)),t={digit:d.charAt(f),pattern:c}):a.push(e||b?c+"?":c)):a.push(d.charAt(f).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"));a=a.join("");t&&(a=a.replace(new RegExp("("+t.digit+"(.*"+t.digit+")?)"),"($1)?").replace(new RegExp(t.digit,"g"),t.pattern));return new RegExp(a)},destroyEvents:function(){b.off("input keydown keyup paste drop blur focusout ".split(" ").join(".mask "))},val:function(a){var c=b.is("input")?"val":"text";if(0<arguments.length){if(b[c]()!==a)b[c](a);
c=b}else c=b[c]();return c},calculateCaretPosition:function(a){var d=c.getMasked(),h=c.getCaret();if(a!==d){var e=b.data("mask-previus-caret-pos")||0;d=d.length;var g=a.length,f=a=0,l=0,k=0,m;for(m=h;m<d&&c.maskDigitPosMap[m];m++)f++;for(m=h-1;0<=m&&c.maskDigitPosMap[m];m--)a++;for(m=h-1;0<=m;m--)c.maskDigitPosMap[m]&&l++;for(m=e-1;0<=m;m--)c.maskDigitPosMapOld[m]&&k++;h>g?h=10*d:e>=h&&e!==g?c.maskDigitPosMapOld[h]||(e=h,h=h-(k-l)-a,c.maskDigitPosMap[h]&&(h=e)):h>e&&(h=h+(l-k)+f)}return h},behaviour:function(d){d=
d||window.event;c.invalid=[];var e=b.data("mask-keycode");if(-1===a.inArray(e,l.byPassKeys)){e=c.getMasked();var h=c.getCaret(),g=b.data("mask-previus-value")||"";setTimeout(function(){c.setCaret(c.calculateCaretPosition(g))},a.jMaskGlobals.keyStrokeCompensation);c.val(e);c.setCaret(h);return c.callbacks(d)}},getMasked:function(a,b){var h=[],f=void 0===b?c.val():b+"",g=0,k=d.length,n=0,p=f.length,m=1,r="push",u=-1,w=0;b=[];if(e.reverse){r="unshift";m=-1;var x=0;g=k-1;n=p-1;var A=function(){return-1<
g&&-1<n}}else x=k-1,A=function(){return g<k&&n<p};for(var z;A();){var y=d.charAt(g),v=f.charAt(n),q=l.translation[y];if(q)v.match(q.pattern)?(h[r](v),q.recursive&&(-1===u?u=g:g===x&&g!==u&&(g=u-m),x===u&&(g-=m)),g+=m):v===z?(w--,z=void 0):q.optional?(g+=m,n-=m):q.fallback?(h[r](q.fallback),g+=m,n-=m):c.invalid.push({p:n,v:v,e:q.pattern}),n+=m;else{if(!a)h[r](y);v===y?(b.push(n),n+=m):(z=y,b.push(n+w),w++);g+=m}}a=d.charAt(x);k!==p+1||l.translation[a]||h.push(a);h=h.join("");c.mapMaskdigitPositions(h,
b,p);return h},mapMaskdigitPositions:function(a,b,d){a=e.reverse?a.length-d:0;c.maskDigitPosMap={};for(d=0;d<b.length;d++)c.maskDigitPosMap[b[d]+a]=1},callbacks:function(a){var g=c.val(),h=g!==f,k=[g,a,b,e],l=function(a,b,c){"function"===typeof e[a]&&b&&e[a].apply(this,c)};l("onChange",!0===h,k);l("onKeyPress",!0===h,k);l("onComplete",g.length===d.length,k);l("onInvalid",0<c.invalid.length,[g,a,b,c.invalid,e])}};b=a(b);var l=this,f=c.val(),k;d="function"===typeof d?d(c.val(),void 0,b,e):d;l.mask=
d;l.options=e;l.remove=function(){var a=c.getCaret();l.options.placeholder&&b.removeAttr("placeholder");b.data("mask-maxlength")&&b.removeAttr("maxlength");c.destroyEvents();c.val(l.getCleanVal());c.setCaret(a);return b};l.getCleanVal=function(){return c.getMasked(!0)};l.getMaskedVal=function(a){return c.getMasked(!1,a)};l.init=function(g){g=g||!1;e=e||{};l.clearIfNotMatch=a.jMaskGlobals.clearIfNotMatch;l.byPassKeys=a.jMaskGlobals.byPassKeys;l.translation=a.extend({},a.jMaskGlobals.translation,e.translation);
l=a.extend(!0,{},l,e);k=c.getRegexMask();if(g)c.events(),c.val(c.getMasked());else{e.placeholder&&b.attr("placeholder",e.placeholder);b.data("mask")&&b.attr("autocomplete","off");g=0;for(var f=!0;g<d.length;g++){var h=l.translation[d.charAt(g)];if(h&&h.recursive){f=!1;break}}f&&b.attr("maxlength",d.length).data("mask-maxlength",!0);c.destroyEvents();c.events();g=c.getCaret();c.val(c.getMasked());c.setCaret(g)}};l.init(!b.is("input"))};a.maskWatchers={};var f=function(){var b=a(this),d={},e=b.attr("data-mask");
b.attr("data-mask-reverse")&&(d.reverse=!0);b.attr("data-mask-clearifnotmatch")&&(d.clearIfNotMatch=!0);"true"===b.attr("data-mask-selectonfocus")&&(d.selectOnFocus=!0);if(p(b,e,d))return b.data("mask",new n(this,e,d))},p=function(b,d,e){e=e||{};var c=a(b).data("mask"),f=JSON.stringify;b=a(b).val()||a(b).text();try{return"function"===typeof d&&(d=d(b)),"object"!==typeof c||f(c.options)!==f(e)||c.mask!==d}catch(w){}},k=function(a){var b=document.createElement("div");a="on"+a;var e=a in b;e||(b.setAttribute(a,
"return;"),e="function"===typeof b[a]);return e};a.fn.mask=function(b,d){d=d||{};var e=this.selector,c=a.jMaskGlobals,f=c.watchInterval;c=d.watchInputs||c.watchInputs;var k=function(){if(p(this,b,d))return a(this).data("mask",new n(this,b,d))};a(this).each(k);e&&""!==e&&c&&(clearInterval(a.maskWatchers[e]),a.maskWatchers[e]=setInterval(function(){a(document).find(e).each(k)},f));return this};a.fn.masked=function(a){return this.data("mask").getMaskedVal(a)};a.fn.unmask=function(){clearInterval(a.maskWatchers[this.selector]);
delete a.maskWatchers[this.selector];return this.each(function(){var b=a(this).data("mask");b&&b.remove().removeData("mask")})};a.fn.cleanVal=function(){return this.data("mask").getCleanVal()};a.applyDataMask=function(b){b=b||a.jMaskGlobals.maskElements;(b instanceof a?b:a(b)).filter(a.jMaskGlobals.dataMaskAttr).each(f)};k={maskElements:"input,td,span,div",dataMaskAttr:"*[data-mask]",dataMask:!0,watchInterval:300,watchInputs:!0,keyStrokeCompensation:10,useInput:!/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent)&&
k("input"),watchDataMask:!1,byPassKeys:[9,16,17,18,36,37,38,39,40,91],translation:{0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}};a.jMaskGlobals=a.jMaskGlobals||{};k=a.jMaskGlobals=a.extend(!0,{},k,a.jMaskGlobals);k.dataMask&&a.applyDataMask();setInterval(function(){a.jMaskGlobals.watchDataMask&&a.applyDataMask()},k.watchInterval)},window.jQuery,window.Zepto);
/* https://github.com/auxiliary/rater */
(function(b,l){function e(a,c){this.element=a;this.settings=b.extend({},b.fn.rate.settings,c);this.set_faces={};this.build()}b.fn.textWidth=function(){var a=b("<span>"+b(this).html()+"</span>");a.css("font-size",b(this).css("font-size")).hide();a.prependTo("body");var c=a.width();a.remove();if(0==c){var d=0;b(this).eq(0).children().each(function(){d+=b(this).textWidth()});return d}return c};b.fn.textHeight=function(){var a=b("<span>"+b(this).html()+"</span>");a.css("font-size",b(this).css("font-size")).hide();
a.prependTo("body");var c=a.height();a.remove();return c};Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)};String.prototype.getCodePointLength=function(){return this.length-this.split(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g).length+1};String.fromCodePoint=function(){for(var a=Array.prototype.slice.call(arguments),b=a.length;0<b--;){var d=a[b]-65536;0<=d&&a.splice(b,1,55296+(d>>10),56320+(d&1023))}return String.fromCharCode.apply(null,a)};b.fn.rate=function(a){if(void 0===
a||"object"===typeof a)return this.each(function(){b.data(this,"rate")||b.data(this,"rate",new e(this,a))});if("string"===typeof a){var c=arguments,d;this.each(function(){var f=b.data(this,"rate");f instanceof e&&"function"===typeof f[a]&&(d=f[a].apply(f,Array.prototype.slice.call(c,1)));"destroy"===a&&(b(f.element).off(),b.data(this,"rate",null))});return void 0!==d?d:this}};e.prototype.build=function(){this.layers={};this.value=0;this.raise_select_layer=!1;this.settings.initial_value&&(this.value=
this.settings.initial_value);b(this.element).attr("data-rate-value")&&(this.value=b(this.element).attr("data-rate-value"));var a=this.value/this.settings.max_value*100;if("string"===typeof this.settings.symbols[this.settings.selected_symbol_type]){var c=this.settings.symbols[this.settings.selected_symbol_type];this.settings.symbols[this.settings.selected_symbol_type]={};this.settings.symbols[this.settings.selected_symbol_type].base=c;this.settings.symbols[this.settings.selected_symbol_type].selected=
c;this.settings.symbols[this.settings.selected_symbol_type].hover=c}c=this.addLayer("base-layer",100,this.settings.symbols[this.settings.selected_symbol_type].base,!0);a=this.addLayer("select-layer",a,this.settings.symbols[this.settings.selected_symbol_type].selected,!0);var d=this.addLayer("hover-layer",0,this.settings.symbols[this.settings.selected_symbol_type].hover,!1);this.layers.base_layer=c;this.layers.select_layer=a;this.layers.hover_layer=d;b(this.element).on("mousemove",b.proxy(this.hover,
this));b(this.element).on("click",b.proxy(this.select,this));b(this.element).on("mouseleave",b.proxy(this.mouseout,this));b(this.element).css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"});this.settings.hasOwnProperty("update_input_field_name")&&this.settings.update_input_field_name.val(this.value)};e.prototype.addLayer=function(a,c,d,e){for(var f="<div>",g=0;g<this.settings.max_value;g++)Array.isArray(d)?
(this.settings.convert_to_utf8&&(d[g]=String.fromCodePoint(d[g])),f+="<span>"+d[g]+"</span>"):(this.settings.convert_to_utf8&&(d=String.fromCodePoint(d)),f+="<span>"+d+"</span>");a=b(f+"</div>").addClass("rate-"+a).appendTo(this.element);b(a).css({width:c+"%",height:b(a).children().eq(0).textHeight(),overflow:"hidden",position:"absolute",top:0,display:e?"block":"none","white-space":"nowrap"});b(this.element).css({width:b(a).textWidth()+"px",height:b(a).height(),position:"relative",cursor:this.settings.cursor});
return a};e.prototype.updateServer=function(){void 0!=this.settings.url&&b.ajax({url:this.settings.url,type:this.settings.ajax_method,data:b.extend({},{value:this.getValue()},this.settings.additional_data),success:b.proxy(function(a){b(this.element).trigger("updateSuccess",[a])},this),error:b.proxy(function(a,c,d){b(this.element).trigger("updateError",[a,c,d])},this)})};e.prototype.getValue=function(){return this.value};e.prototype.hover=function(a){var c=parseInt(b(this.element).css("padding-left").replace("px",
""));a=a.pageX-b(this.element).offset().left-c;a=this.toValue(a,!0);a!=this.value&&(this.raise_select_layer=!1);this.raise_select_layer||this.settings.readonly||(c=this.toWidth(a),this.layers.select_layer.css({display:"none"}),this.settings.only_select_one_symbol?(a=Math.floor(a),this.layers.hover_layer.css({width:"100%",display:"block"}),this.layers.hover_layer.children("span").css({visibility:"hidden"}),this.layers.hover_layer.children("span").eq(0!=a?a-1:0).css({visibility:"visible"})):this.layers.hover_layer.css({width:c+
"%",display:"block"}))};e.prototype.select=function(a){if(!this.settings.readonly){this.getValue();var c=parseInt(b(this.element).css("padding-left").replace("px",""));a=a.pageX-b(this.element).offset().left-c;a=this.toWidth(this.toValue(a,!0));this.setValue(this.toValue(a));this.raise_select_layer=!0}};e.prototype.mouseout=function(){this.layers.hover_layer.css({display:"none"});this.layers.select_layer.css({display:"block"})};e.prototype.toWidth=function(a){return a/this.settings.max_value*100};
e.prototype.toValue=function(a,b){a=b?a/this.layers.base_layer.textWidth()*this.settings.max_value:a/100*this.settings.max_value;b=a/this.settings.step_size;5E-5>b-Math.floor(b)&&(a=Math.round(a/this.settings.step_size)*this.settings.step_size);a=Math.ceil(a/this.settings.step_size)*this.settings.step_size;return a=a>this.settings.max_value?this.settings.max_value:a};e.prototype.getElement=function(a,c){return b(this.element).find(".rate-"+a+" span").eq(c-1)};e.prototype.getLayers=function(){return this.layers};
e.prototype.setFace=function(a,b){this.set_faces[a]=b};e.prototype.setAdditionalData=function(a){this.settings.additional_data=a};e.prototype.getAdditionalData=function(){return this.settings.additional_data};e.prototype.removeFace=function(a){delete this.set_faces[a]};e.prototype.setValue=function(a){if(!this.settings.readonly){0>a?a=0:a>this.settings.max_value&&(a=this.settings.max_value);var c=this.getValue();this.value=a;b(this.element).trigger("change",{from:c,to:this.value});b(this.element).find(".rate-face").remove();
b(this.element).find("span").css({visibility:"visible"});a=Math.ceil(this.value);if(this.set_faces.hasOwnProperty(a)){var d="<div>"+this.set_faces[a]+"</div>",e=this.getElement("base-layer",a),h=this.getElement("select-layer",a),g=this.getElement("hover-layer",a),k=e.textWidth()*(a-1)+(e.textWidth()-b(d).textWidth())/2;b(d).appendTo(this.element).css({display:"inline-block",position:"absolute",left:k}).addClass("rate-face");e.css({visibility:"hidden"});h.css({visibility:"hidden"});g.css({visibility:"hidden"})}this.settings.only_select_one_symbol?
(d=this.toWidth(this.settings.max_value),this.layers.select_layer.css({display:"block",width:d+"%",height:this.layers.base_layer.css("height")}),this.layers.hover_layer.css({display:"none",height:this.layers.base_layer.css("height")}),this.layers.select_layer.children("span").css({visibility:"hidden"}),this.layers.select_layer.children("span").eq(0!=a?a-1:0).css({visibility:"visible"})):(d=this.toWidth(this.value),this.layers.select_layer.css({display:"block",width:d+"%",height:this.layers.base_layer.css("height")}),
this.layers.hover_layer.css({display:"none",height:this.layers.base_layer.css("height")}));b(this.element).attr("data-rate-value",this.value);this.settings.change_once&&(this.settings.readonly=!0);this.updateServer();b(this.element).trigger("afterChange",{from:c,to:this.value});this.settings.hasOwnProperty("update_input_field_name")&&this.settings.update_input_field_name.val(this.value)}};e.prototype.increment=function(){this.setValue(this.getValue()+this.settings.step_size)};e.prototype.decrement=
function(){this.setValue(this.getValue()-this.settings.step_size)};b.fn.rate.settings={max_value:5,step_size:.5,initial_value:0,symbols:{utf8_star:{base:"\u2606",hover:"\u2605",selected:"\u2605"},utf8_hexagon:{base:"\u2b21",hover:"\u2b22",selected:"\u2b22"},hearts:"&hearts;",fontawesome_beer:'<i class="fa fa-beer"></i>',fontawesome_star:{base:'<i class="fa fa-star-o"></i>',hover:'<i class="fa fa-star"></i>',selected:'<i class="fa fa-star"></i>'},utf8_emoticons:{base:[128549,128531,128530,128516],
hover:[128549,128531,128530,128516],selected:[128549,128531,128530,128516]}},selected_symbol_type:"utf8_star",convert_to_utf8:!1,cursor:"default",readonly:!1,change_once:!1,only_select_one_symbol:!1,ajax_method:"POST",additional_data:{}}})(jQuery,window);