!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Swiper=t()}(this,(function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(s,a){void 0===s&&(s={}),void 0===a&&(a={}),Object.keys(a).forEach((i=>{void 0===s[i]?s[i]=a[i]:e(a[i])&&e(s[i])&&Object.keys(a[i]).length>0&&t(s[i],a[i])}))}const s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return t(e,s),e}const i={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,i),e}class n extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function l(e){void 0===e&&(e=[]);const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...l(e)):t.push(e)})),t}function o(e,t){return Array.prototype.filter.call(e,t)}function d(e,t){const s=r(),i=a();let l=[];if(!t&&e instanceof n)return e;if(!e)return new n(l);if("string"==typeof e){const s=e.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){let e="div";0===s.indexOf("<li")&&(e="ul"),0===s.indexOf("<tr")&&(e="tbody"),0!==s.indexOf("<td")&&0!==s.indexOf("<th")||(e="tr"),0===s.indexOf("<tbody")&&(e="table"),0===s.indexOf("<option")&&(e="select");const t=i.createElement(e);t.innerHTML=s;for(let e=0;e<t.childNodes.length;e+=1)l.push(t.childNodes[e])}else l=function(e,t){if("string"!=typeof e)return[e];const s=[],a=t.querySelectorAll(e);for(let e=0;e<a.length;e+=1)s.push(a[e]);return s}(e.trim(),t||i)}else if(e.nodeType||e===s||e===i)l.push(e);else if(Array.isArray(e)){if(e instanceof n)return e;l=e}return new n(function(e){const t=[];for(let s=0;s<e.length;s+=1)-1===t.indexOf(e[s])&&t.push(e[s]);return t}(l))}d.fn=n.prototype;const c={addClass:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];const a=l(t.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.add(...a)})),this},removeClass:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];const a=l(t.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.remove(...a)})),this},hasClass:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];const a=l(t.map((e=>e.split(" "))));return o(this,(e=>a.filter((t=>e.classList.contains(t))).length>0)).length>0},toggleClass:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];const a=l(t.map((e=>e.split(" "))));this.forEach((e=>{a.forEach((t=>{e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let s=0;s<this.length;s+=1)if(2===arguments.length)this[s].setAttribute(e,t);else for(const t in e)this[s][t]=e[t],this[s].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?`${e}ms`:e;return this},on:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];let[a,i,r,n]=t;function l(e){const t=e.target;if(!t)return;const s=e.target.dom7EventData||[];if(s.indexOf(e)<0&&s.unshift(e),d(t).is(i))r.apply(t,s);else{const e=d(t).parents();for(let t=0;t<e.length;t+=1)d(e[t]).is(i)&&r.apply(e[t],s)}}function o(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}"function"==typeof t[1]&&([a,r,n]=t,i=void 0),n||(n=!1);const c=a.split(" ");let p;for(let e=0;e<this.length;e+=1){const t=this[e];if(i)for(p=0;p<c.length;p+=1){const e=c[p];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:r,proxyListener:l}),t.addEventListener(e,l,n)}else for(p=0;p<c.length;p+=1){const e=c[p];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:r,proxyListener:o}),t.addEventListener(e,o,n)}}return this},off:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];let[a,i,r,n]=t;"function"==typeof t[1]&&([a,r,n]=t,i=void 0),n||(n=!1);const l=a.split(" ");for(let e=0;e<l.length;e+=1){const t=l[e];for(let e=0;e<this.length;e+=1){const s=this[e];let a;if(!i&&s.dom7Listeners?a=s.dom7Listeners[t]:i&&s.dom7LiveListeners&&(a=s.dom7LiveListeners[t]),a&&a.length)for(let e=a.length-1;e>=0;e-=1){const i=a[e];r&&i.listener===r||r&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===r?(s.removeEventListener(t,i.proxyListener,n),a.splice(e,1)):r||(s.removeEventListener(t,i.proxyListener,n),a.splice(e,1))}}}return this},trigger:function(){const e=r();for(var t=arguments.length,s=new Array(t),a=0;a<t;a++)s[a]=arguments[a];const i=s[0].split(" "),n=s[1];for(let t=0;t<i.length;t+=1){const a=i[t];for(let t=0;t<this.length;t+=1){const i=this[t];if(e.CustomEvent){const t=new e.CustomEvent(a,{detail:n,bubbles:!0,cancelable:!0});i.dom7EventData=s.filter(((e,t)=>t>0)),i.dispatchEvent(t),i.dom7EventData=[],delete i.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function s(a){a.target===this&&(e.call(this,a),t.off("transitionend",s))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=r();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=r(),t=a(),s=this[0],i=s.getBoundingClientRect(),n=t.body,l=s.clientTop||n.clientTop||0,o=s.clientLeft||n.clientLeft||0,d=s===e?e.scrollY:s.scrollTop,c=s===e?e.scrollX:s.scrollLeft;return{top:i.top+d-l,left:i.left+c-o}}return null},css:function(e,t){const s=r();let a;if(1===arguments.length){if("string"!=typeof e){for(a=0;a<this.length;a+=1)for(const t in e)this[a].style[t]=e[t];return this}if(this[0])return s.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(a=0;a<this.length;a+=1)this[a].style[e]=t;return this}return this},each:function(e){return e?(this.forEach(((t,s)=>{e.apply(t,[t,s])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){const t=r(),s=a(),i=this[0];let l,o;if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(l=d(e),o=0;o<l.length;o+=1)if(l[o]===i)return!0;return!1}if(e===s)return i===s;if(e===t)return i===t;if(e.nodeType||e instanceof n){for(l=e.nodeType?[e]:e,o=0;o<l.length;o+=1)if(l[o]===i)return!0;return!1}return!1},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;const t=this.length;if(e>t-1)return d([]);if(e<0){const s=t+e;return d(s<0?[]:[this[s]])}return d([this[e]])},append:function(){let e;const t=a();for(let s=0;s<arguments.length;s+=1){e=s<0||arguments.length<=s?void 0:arguments[s];for(let s=0;s<this.length;s+=1)if("string"==typeof e){const a=t.createElement("div");for(a.innerHTML=e;a.firstChild;)this[s].appendChild(a.firstChild)}else if(e instanceof n)for(let t=0;t<e.length;t+=1)this[s].appendChild(e[t]);else this[s].appendChild(e)}return this},prepend:function(e){const t=a();let s,i;for(s=0;s<this.length;s+=1)if("string"==typeof e){const a=t.createElement("div");for(a.innerHTML=e,i=a.childNodes.length-1;i>=0;i-=1)this[s].insertBefore(a.childNodes[i],this[s].childNodes[0])}else if(e instanceof n)for(i=0;i<e.length;i+=1)this[s].insertBefore(e[i],this[s].childNodes[0]);else this[s].insertBefore(e,this[s].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&d(this[0].nextElementSibling).is(e)?d([this[0].nextElementSibling]):d([]):this[0].nextElementSibling?d([this[0].nextElementSibling]):d([]):d([])},nextAll:function(e){const t=[];let s=this[0];if(!s)return d([]);for(;s.nextElementSibling;){const a=s.nextElementSibling;e?d(a).is(e)&&t.push(a):t.push(a),s=a}return d(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&d(t.previousElementSibling).is(e)?d([t.previousElementSibling]):d([]):t.previousElementSibling?d([t.previousElementSibling]):d([])}return d([])},prevAll:function(e){const t=[];let s=this[0];if(!s)return d([]);for(;s.previousElementSibling;){const a=s.previousElementSibling;e?d(a).is(e)&&t.push(a):t.push(a),s=a}return d(t)},parent:function(e){const t=[];for(let s=0;s<this.length;s+=1)null!==this[s].parentNode&&(e?d(this[s].parentNode).is(e)&&t.push(this[s].parentNode):t.push(this[s].parentNode));return d(t)},parents:function(e){const t=[];for(let s=0;s<this.length;s+=1){let a=this[s].parentNode;for(;a;)e?d(a).is(e)&&t.push(a):t.push(a),a=a.parentNode}return d(t)},closest:function(e){let t=this;return void 0===e?d([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){const t=[];for(let s=0;s<this.length;s+=1){const a=this[s].querySelectorAll(e);for(let e=0;e<a.length;e+=1)t.push(a[e])}return d(t)},children:function(e){const t=[];for(let s=0;s<this.length;s+=1){const a=this[s].children;for(let s=0;s<a.length;s+=1)e&&!d(a[s]).is(e)||t.push(a[s])}return d(t)},filter:function(e){return d(o(this,e))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};function p(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function u(){return Date.now()}function h(e,t){void 0===t&&(t="x");const s=r();let a,i,n;const l=function(e){const t=r();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}(e);return s.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),n=new s.WebKitCSSMatrix("none"===i?"":i)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=n.toString().split(",")),"x"===t&&(i=s.WebKitCSSMatrix?n.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(i=s.WebKitCSSMatrix?n.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),i||0}function m(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function f(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function g(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let s=1;s<arguments.length;s+=1){const a=s<0||arguments.length<=s?void 0:arguments[s];if(null!=a&&!f(a)){const s=Object.keys(Object(a)).filter((e=>t.indexOf(e)<0));for(let t=0,i=s.length;t<i;t+=1){const i=s[t],r=Object.getOwnPropertyDescriptor(a,i);void 0!==r&&r.enumerable&&(m(e[i])&&m(a[i])?a[i].__swiper__?e[i]=a[i]:g(e[i],a[i]):!m(e[i])&&m(a[i])?(e[i]={},a[i].__swiper__?e[i]=a[i]:g(e[i],a[i])):e[i]=a[i])}}}return e}function v(e,t,s){e.style.setProperty(t,s)}function w(e){let{swiper:t,targetPosition:s,side:a}=e;const i=r(),n=-t.translate;let l,o=null;const d=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const c=s>n?"next":"prev",p=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{l=(new Date).getTime(),null===o&&(o=l);const e=Math.max(Math.min((l-o)/d,1),0),r=.5-Math.cos(e*Math.PI)/2;let c=n+r*(s-n);if(p(c,s)&&(c=s),t.wrapperEl.scrollTo({[a]:c}),p(c,s))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[a]:c})})),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(u)};u()}let b,x,y;function E(){return b||(b=function(){const e=r(),t=a();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const s=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,s)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),b}function C(e){return void 0===e&&(e={}),x||(x=function(e){let{userAgent:t}=void 0===e?{}:e;const s=E(),a=r(),i=a.navigator.platform,n=t||a.navigator.userAgent,l={ios:!1,android:!1},o=a.screen.width,d=a.screen.height,c=n.match(/(Android);?[\s\/]+([\d.]+)?/);let p=n.match(/(iPad).*OS\s([\d_]+)/);const u=n.match(/(iPod)(.*OS\s([\d_]+))?/),h=!p&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m="Win32"===i;let f="MacIntel"===i;return!p&&f&&s.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${d}`)>=0&&(p=n.match(/(Version)\/([\d.]+)/),p||(p=[0,1,"13_0_0"]),f=!1),c&&!m&&(l.os="android",l.android=!0),(p||h||u)&&(l.os="ios",l.ios=!0),l}(e)),x}function T(){return y||(y=function(){const e=r();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),y}Object.keys(c).forEach((e=>{Object.defineProperty(d.fn,e,{value:c[e],writable:!0})}));var $={on(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;const i=s?"unshift":"push";return e.split(" ").forEach((e=>{a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][i](t)})),a},once(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;function i(){a.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];t.apply(a,r)}return i.__emitterProxy=t,a.on(e,i,s)},onAny(e,t){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof e)return s;const a=t?"unshift":"push";return s.eventsAnyListeners.indexOf(e)<0&&s.eventsAnyListeners[a](e),s},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const s=t.eventsAnyListeners.indexOf(e);return s>=0&&t.eventsAnyListeners.splice(s,1),t},off(e,t){const s=this;return!s.eventsListeners||s.destroyed?s:s.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?s.eventsListeners[e]=[]:s.eventsListeners[e]&&s.eventsListeners[e].forEach(((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&s.eventsListeners[e].splice(i,1)}))})),s):s},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,s,a;for(var i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];"string"==typeof r[0]||Array.isArray(r[0])?(t=r[0],s=r.slice(1,r.length),a=e):(t=r[0].events,s=r[0].data,a=r[0].context||e),s.unshift(a);return(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(a,[t,...s])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(a,s)}))})),e}};var S={updateSize:function(){const e=this;let t,s;const a=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:a[0].clientWidth,s=void 0!==e.params.height&&null!==e.params.height?e.params.height:a[0].clientHeight,0===t&&e.isHorizontal()||0===s&&e.isVertical()||(t=t-parseInt(a.css("padding-left")||0,10)-parseInt(a.css("padding-right")||0,10),s=s-parseInt(a.css("padding-top")||0,10)-parseInt(a.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(s)&&(s=0),Object.assign(e,{width:t,height:s,size:e.isHorizontal()?t:s}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function s(e,s){return parseFloat(e.getPropertyValue(t(s))||0)}const a=e.params,{$wrapperEl:i,size:r,rtlTranslate:n,wrongRTL:l}=e,o=e.virtual&&a.virtual.enabled,d=o?e.virtual.slides.length:e.slides.length,c=i.children(`.${e.params.slideClass}`),p=o?e.virtual.slides.length:c.length;let u=[];const h=[],m=[];let f=a.slidesOffsetBefore;"function"==typeof f&&(f=a.slidesOffsetBefore.call(e));let g=a.slidesOffsetAfter;"function"==typeof g&&(g=a.slidesOffsetAfter.call(e));const w=e.snapGrid.length,b=e.slidesGrid.length;let x=a.spaceBetween,y=-f,E=0,C=0;if(void 0===r)return;"string"==typeof x&&x.indexOf("%")>=0&&(x=parseFloat(x.replace("%",""))/100*r),e.virtualSize=-x,n?c.css({marginLeft:"",marginBottom:"",marginTop:""}):c.css({marginRight:"",marginBottom:"",marginTop:""}),a.centeredSlides&&a.cssMode&&(v(e.wrapperEl,"--swiper-centered-offset-before",""),v(e.wrapperEl,"--swiper-centered-offset-after",""));const T=a.grid&&a.grid.rows>1&&e.grid;let $;T&&e.grid.initSlides(p);const S="auto"===a.slidesPerView&&a.breakpoints&&Object.keys(a.breakpoints).filter((e=>void 0!==a.breakpoints[e].slidesPerView)).length>0;for(let i=0;i<p;i+=1){$=0;const n=c.eq(i);if(T&&e.grid.updateSlide(i,n,p,t),"none"!==n.css("display")){if("auto"===a.slidesPerView){S&&(c[i].style[t("width")]="");const r=getComputedStyle(n[0]),l=n[0].style.transform,o=n[0].style.webkitTransform;if(l&&(n[0].style.transform="none"),o&&(n[0].style.webkitTransform="none"),a.roundLengths)$=e.isHorizontal()?n.outerWidth(!0):n.outerHeight(!0);else{const e=s(r,"width"),t=s(r,"padding-left"),a=s(r,"padding-right"),i=s(r,"margin-left"),l=s(r,"margin-right"),o=r.getPropertyValue("box-sizing");if(o&&"border-box"===o)$=e+i+l;else{const{clientWidth:s,offsetWidth:r}=n[0];$=e+t+a+i+l+(r-s)}}l&&(n[0].style.transform=l),o&&(n[0].style.webkitTransform=o),a.roundLengths&&($=Math.floor($))}else $=(r-(a.slidesPerView-1)*x)/a.slidesPerView,a.roundLengths&&($=Math.floor($)),c[i]&&(c[i].style[t("width")]=`${$}px`);c[i]&&(c[i].swiperSlideSize=$),m.push($),a.centeredSlides?(y=y+$/2+E/2+x,0===E&&0!==i&&(y=y-r/2-x),0===i&&(y=y-r/2-x),Math.abs(y)<.001&&(y=0),a.roundLengths&&(y=Math.floor(y)),C%a.slidesPerGroup==0&&u.push(y),h.push(y)):(a.roundLengths&&(y=Math.floor(y)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup==0&&u.push(y),h.push(y),y=y+$+x),e.virtualSize+=$+x,E=$,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+g,n&&l&&("slide"===a.effect||"coverflow"===a.effect)&&i.css({width:`${e.virtualSize+a.spaceBetween}px`}),a.setWrapperSize&&i.css({[t("width")]:`${e.virtualSize+a.spaceBetween}px`}),T&&e.grid.updateWrapperSize($,u,t),!a.centeredSlides){const t=[];for(let s=0;s<u.length;s+=1){let i=u[s];a.roundLengths&&(i=Math.floor(i)),u[s]<=e.virtualSize-r&&t.push(i)}u=t,Math.floor(e.virtualSize-r)-Math.floor(u[u.length-1])>1&&u.push(e.virtualSize-r)}if(0===u.length&&(u=[0]),0!==a.spaceBetween){const s=e.isHorizontal()&&n?"marginLeft":t("marginRight");c.filter(((e,t)=>!a.cssMode||t!==c.length-1)).css({[s]:`${x}px`})}if(a.centeredSlides&&a.centeredSlidesBounds){let e=0;m.forEach((t=>{e+=t+(a.spaceBetween?a.spaceBetween:0)})),e-=a.spaceBetween;const t=e-r;u=u.map((e=>e<0?-f:e>t?t+g:e))}if(a.centerInsufficientSlides){let e=0;if(m.forEach((t=>{e+=t+(a.spaceBetween?a.spaceBetween:0)})),e-=a.spaceBetween,e<r){const t=(r-e)/2;u.forEach(((e,s)=>{u[s]=e-t})),h.forEach(((e,s)=>{h[s]=e+t}))}}if(Object.assign(e,{slides:c,snapGrid:u,slidesGrid:h,slidesSizesGrid:m}),a.centeredSlides&&a.cssMode&&!a.centeredSlidesBounds){v(e.wrapperEl,"--swiper-centered-offset-before",-u[0]+"px"),v(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-m[m.length-1]/2+"px");const t=-e.snapGrid[0],s=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+s))}if(p!==d&&e.emit("slidesLengthChange"),u.length!==w&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),a.watchSlidesProgress&&e.updateSlidesOffset(),!(o||a.cssMode||"slide"!==a.effect&&"fade"!==a.effect)){const t=`${a.containerModifierClass}backface-hidden`,s=e.$el.hasClass(t);p<=a.maxBackfaceHiddenSlides?s||e.$el.addClass(t):s&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,s=[],a=t.virtual&&t.params.virtual.enabled;let i,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const n=e=>a?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||d([])).each((e=>{s.push(e)}));else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!a)break;s.push(n(e))}else s.push(n(t.activeIndex));for(i=0;i<s.length;i+=1)if(void 0!==s[i]){const e=s[i].offsetHeight;r=e>r?e:r}(r||0===r)&&t.$wrapperEl.css("height",`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides;for(let s=0;s<t.length;s+=1)t[s].swiperSlideOffset=e.isHorizontal()?t[s].offsetLeft:t[s].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,s=t.params,{slides:a,rtlTranslate:i,snapGrid:r}=t;if(0===a.length)return;void 0===a[0].swiperSlideOffset&&t.updateSlidesOffset();let n=-e;i&&(n=e),a.removeClass(s.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let e=0;e<a.length;e+=1){const l=a[e];let o=l.swiperSlideOffset;s.cssMode&&s.centeredSlides&&(o-=a[0].swiperSlideOffset);const d=(n+(s.centeredSlides?t.minTranslate():0)-o)/(l.swiperSlideSize+s.spaceBetween),c=(n-r[0]+(s.centeredSlides?t.minTranslate():0)-o)/(l.swiperSlideSize+s.spaceBetween),p=-(n-o),u=p+t.slidesSizesGrid[e];(p>=0&&p<t.size-1||u>1&&u<=t.size||p<=0&&u>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e),a.eq(e).addClass(s.slideVisibleClass)),l.progress=i?-d:d,l.originalProgress=i?-c:c}t.visibleSlides=d(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const s=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*s||0}const s=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:r,isEnd:n}=t;const l=r,o=n;0===a?(i=0,r=!0,n=!0):(i=(e-t.minTranslate())/a,r=i<=0,n=i>=1),Object.assign(t,{progress:i,isBeginning:r,isEnd:n}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),n&&!o&&t.emit("reachEnd toEdge"),(l&&!r||o&&!n)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,$wrapperEl:a,activeIndex:i,realIndex:r}=e,n=e.virtual&&s.virtual.enabled;let l;t.removeClass(`${s.slideActiveClass} ${s.slideNextClass} ${s.slidePrevClass} ${s.slideDuplicateActiveClass} ${s.slideDuplicateNextClass} ${s.slideDuplicatePrevClass}`),l=n?e.$wrapperEl.find(`.${s.slideClass}[data-swiper-slide-index="${i}"]`):t.eq(i),l.addClass(s.slideActiveClass),s.loop&&(l.hasClass(s.slideDuplicateClass)?a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(s.slideDuplicateActiveClass):a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(s.slideDuplicateActiveClass));let o=l.nextAll(`.${s.slideClass}`).eq(0).addClass(s.slideNextClass);s.loop&&0===o.length&&(o=t.eq(0),o.addClass(s.slideNextClass));let d=l.prevAll(`.${s.slideClass}`).eq(0).addClass(s.slidePrevClass);s.loop&&0===d.length&&(d=t.eq(-1),d.addClass(s.slidePrevClass)),s.loop&&(o.hasClass(s.slideDuplicateClass)?a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass):a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass),d.hasClass(s.slideDuplicateClass)?a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass):a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:a,snapGrid:i,params:r,activeIndex:n,realIndex:l,snapIndex:o}=t;let d,c=e;if(void 0===c){for(let e=0;e<a.length;e+=1)void 0!==a[e+1]?s>=a[e]&&s<a[e+1]-(a[e+1]-a[e])/2?c=e:s>=a[e]&&s<a[e+1]&&(c=e+1):s>=a[e]&&(c=e);r.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(i.indexOf(s)>=0)d=i.indexOf(s);else{const e=Math.min(r.slidesPerGroupSkip,c);d=e+Math.floor((c-e)/r.slidesPerGroup)}if(d>=i.length&&(d=i.length-1),c===n)return void(d!==o&&(t.snapIndex=d,t.emit("snapIndexChange")));const p=parseInt(t.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(t,{snapIndex:d,realIndex:p,previousIndex:n,activeIndex:c}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),l!==p&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,s=t.params,a=d(e).closest(`.${s.slideClass}`)[0];let i,r=!1;if(a)for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===a){r=!0,i=e;break}if(!a||!r)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=a,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(d(a).attr("data-swiper-slide-index"),10):t.clickedIndex=i,s.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};var M={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:s,translate:a,$wrapperEl:i}=this;if(t.virtualTranslate)return s?-a:a;if(t.cssMode)return a;let r=h(i[0],e);return s&&(r=-r),r||0},setTranslate:function(e,t){const s=this,{rtlTranslate:a,params:i,$wrapperEl:r,wrapperEl:n,progress:l}=s;let o,d=0,c=0;s.isHorizontal()?d=a?-e:e:c=e,i.roundLengths&&(d=Math.floor(d),c=Math.floor(c)),i.cssMode?n[s.isHorizontal()?"scrollLeft":"scrollTop"]=s.isHorizontal()?-d:-c:i.virtualTranslate||r.transform(`translate3d(${d}px, ${c}px, 0px)`),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?d:c;const p=s.maxTranslate()-s.minTranslate();o=0===p?0:(e-s.minTranslate())/p,o!==l&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,s,a,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),void 0===a&&(a=!0);const r=this,{params:n,wrapperEl:l}=r;if(r.animating&&n.preventInteractionOnTransition)return!1;const o=r.minTranslate(),d=r.maxTranslate();let c;if(c=a&&e>o?o:a&&e<d?d:e,r.updateProgress(c),n.cssMode){const e=r.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-c;else{if(!r.support.smoothScroll)return w({swiper:r,targetPosition:-c,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,s&&r.emit("transitionEnd"))}),r.$wrapperEl[0].addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd))),!0}};function P(e){let{swiper:t,runCallbacks:s,direction:a,step:i}=e;const{activeIndex:r,previousIndex:n}=t;let l=a;if(l||(l=r>n?"next":r<n?"prev":"reset"),t.emit(`transition${i}`),s&&r!==n){if("reset"===l)return void t.emit(`slideResetTransition${i}`);t.emit(`slideChangeTransition${i}`),"next"===l?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`)}}var k={slideTo:function(e,t,s,a,i){if(void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),"number"!=typeof e&&"string"!=typeof e)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`);if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const r=this;let n=e;n<0&&(n=0);const{params:l,snapGrid:o,slidesGrid:d,previousIndex:c,activeIndex:p,rtlTranslate:u,wrapperEl:h,enabled:m}=r;if(r.animating&&l.preventInteractionOnTransition||!m&&!a&&!i)return!1;const f=Math.min(r.params.slidesPerGroupSkip,n);let g=f+Math.floor((n-f)/r.params.slidesPerGroup);g>=o.length&&(g=o.length-1);const v=-o[g];if(l.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){const t=-Math.floor(100*v),s=Math.floor(100*d[e]),a=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=s&&t<a-(a-s)/2?n=e:t>=s&&t<a&&(n=e+1):t>=s&&(n=e)}if(r.initialized&&n!==p){if(!r.allowSlideNext&&v<r.translate&&v<r.minTranslate())return!1;if(!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(p||0)!==n)return!1}let b;if(n!==(c||0)&&s&&r.emit("beforeSlideChangeStart"),r.updateProgress(v),b=n>p?"next":n<p?"prev":"reset",u&&-v===r.translate||!u&&v===r.translate)return r.updateActiveIndex(n),l.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==l.effect&&r.setTranslate(v),"reset"!==b&&(r.transitionStart(s,b),r.transitionEnd(s,b)),!1;if(l.cssMode){const e=r.isHorizontal(),s=u?v:-v;if(0===t){const t=r.virtual&&r.params.virtual.enabled;t&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),h[e?"scrollLeft":"scrollTop"]=s,t&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._swiperImmediateVirtual=!1}))}else{if(!r.support.smoothScroll)return w({swiper:r,targetPosition:s,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:s,behavior:"smooth"})}return!0}return r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(s,b),0===t?r.transitionEnd(s,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(s,b))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,s,a){if(void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),"string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const i=this;let r=e;return i.params.loop&&(r+=i.loopedSlides),i.slideTo(r,t,s,a)},slideNext:function(e,t,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const a=this,{animating:i,enabled:r,params:n}=a;if(!r)return a;let l=n.slidesPerGroup;"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(l=Math.max(a.slidesPerViewDynamic("current",!0),1));const o=a.activeIndex<n.slidesPerGroupSkip?1:l;if(n.loop){if(i&&n.loopPreventsSlide)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}return n.rewind&&a.isEnd?a.slideTo(0,e,t,s):a.slideTo(a.activeIndex+o,e,t,s)},slidePrev:function(e,t,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const a=this,{params:i,animating:r,snapGrid:n,slidesGrid:l,rtlTranslate:o,enabled:d}=a;if(!d)return a;if(i.loop){if(r&&i.loopPreventsSlide)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}function c(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=c(o?a.translate:-a.translate),u=n.map((e=>c(e)));let h=n[u.indexOf(p)-1];if(void 0===h&&i.cssMode){let e;n.forEach(((t,s)=>{p>=t&&(e=s)})),void 0!==e&&(h=n[e>0?e-1:e])}let m=0;if(void 0!==h&&(m=l.indexOf(h),m<0&&(m=a.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(m=m-a.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),i.rewind&&a.isBeginning){const i=a.params.virtual&&a.params.virtual.enabled&&a.virtual?a.virtual.slides.length-1:a.slides.length-1;return a.slideTo(i,e,t,s)}return a.slideTo(m,e,t,s)},slideReset:function(e,t,s){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,s)},slideToClosest:function(e,t,s,a){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===a&&(a=.5);const i=this;let r=i.activeIndex;const n=Math.min(i.params.slidesPerGroupSkip,r),l=n+Math.floor((r-n)/i.params.slidesPerGroup),o=i.rtlTranslate?i.translate:-i.translate;if(o>=i.snapGrid[l]){const e=i.snapGrid[l];o-e>(i.snapGrid[l+1]-e)*a&&(r+=i.params.slidesPerGroup)}else{const e=i.snapGrid[l-1];o-e<=(i.snapGrid[l]-e)*a&&(r-=i.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,i.slidesGrid.length-1),i.slideTo(r,e,t,s)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:s}=e,a="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,r=e.clickedIndex;if(t.loop){if(e.animating)return;i=parseInt(d(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-a/2||r>e.slides.length-e.loopedSlides+a/2?(e.loopFix(),r=s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),p((()=>{e.slideTo(r)}))):e.slideTo(r):r>e.slides.length-a?(e.loopFix(),r=s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),p((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}};var z={loopCreate:function(){const e=this,t=a(),{params:s,$wrapperEl:i}=e,r=i.children().length>0?d(i.children()[0].parentNode):i;r.children(`.${s.slideClass}.${s.slideDuplicateClass}`).remove();let n=r.children(`.${s.slideClass}`);if(s.loopFillGroupWithBlank){const e=s.slidesPerGroup-n.length%s.slidesPerGroup;if(e!==s.slidesPerGroup){for(let a=0;a<e;a+=1){const e=d(t.createElement("div")).addClass(`${s.slideClass} ${s.slideBlankClass}`);r.append(e)}n=r.children(`.${s.slideClass}`)}}"auto"!==s.slidesPerView||s.loopedSlides||(s.loopedSlides=n.length),e.loopedSlides=Math.ceil(parseFloat(s.loopedSlides||s.slidesPerView,10)),e.loopedSlides+=s.loopAdditionalSlides,e.loopedSlides>n.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=n.length);const l=[],o=[];n.each(((e,t)=>{d(e).attr("data-swiper-slide-index",t)}));for(let t=0;t<e.loopedSlides;t+=1){const e=t-Math.floor(t/n.length)*n.length;o.push(n.eq(e)[0]),l.unshift(n.eq(n.length-e-1)[0])}for(let e=0;e<o.length;e+=1)r.append(d(o[e].cloneNode(!0)).addClass(s.slideDuplicateClass));for(let e=l.length-1;e>=0;e-=1)r.prepend(d(l[e].cloneNode(!0)).addClass(s.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:s,loopedSlides:a,allowSlidePrev:i,allowSlideNext:r,snapGrid:n,rtlTranslate:l}=e;let o;e.allowSlidePrev=!0,e.allowSlideNext=!0;const d=-n[t]-e.getTranslate();if(t<a){o=s.length-3*a+t,o+=a;e.slideTo(o,0,!1,!0)&&0!==d&&e.setTranslate((l?-e.translate:e.translate)-d)}else if(t>=s.length-a){o=-s.length+t+a,o+=a;e.slideTo(o,0,!1,!0)&&0!==d&&e.setTranslate((l?-e.translate:e.translate)-d)}e.allowSlidePrev=i,e.allowSlideNext=r,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:s}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),s.removeAttr("data-swiper-slide-index")}};function L(e){const t=this,s=a(),i=r(),n=t.touchEventsData,{params:l,touches:o,enabled:c}=t;if(!c)return;if(t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let p=e;p.originalEvent&&(p=p.originalEvent);let h=d(p.target);if("wrapper"===l.touchEventsTarget&&!h.closest(t.wrapperEl).length)return;if(n.isTouchEvent="touchstart"===p.type,!n.isTouchEvent&&"which"in p&&3===p.which)return;if(!n.isTouchEvent&&"button"in p&&p.button>0)return;if(n.isTouched&&n.isMoved)return;const m=!!l.noSwipingClass&&""!==l.noSwipingClass,f=e.composedPath?e.composedPath():e.path;m&&p.target&&p.target.shadowRoot&&f&&(h=d(f[0]));const g=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,v=!(!p.target||!p.target.shadowRoot);if(l.noSwiping&&(v?function(e,t){return void 0===t&&(t=this),function t(s){if(!s||s===a()||s===r())return null;s.assignedSlot&&(s=s.assignedSlot);const i=s.closest(e);return i||s.getRootNode?i||t(s.getRootNode().host):null}(t)}(g,h[0]):h.closest(g)[0]))return void(t.allowClick=!0);if(l.swipeHandler&&!h.closest(l.swipeHandler)[0])return;o.currentX="touchstart"===p.type?p.targetTouches[0].pageX:p.pageX,o.currentY="touchstart"===p.type?p.targetTouches[0].pageY:p.pageY;const w=o.currentX,b=o.currentY,x=l.edgeSwipeDetection||l.iOSEdgeSwipeDetection,y=l.edgeSwipeThreshold||l.iOSEdgeSwipeThreshold;if(x&&(w<=y||w>=i.innerWidth-y)){if("prevent"!==x)return;e.preventDefault()}if(Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=w,o.startY=b,n.touchStartTime=u(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==p.type){let e=!0;h.is(n.focusableElements)&&(e=!1,"SELECT"===h[0].nodeName&&(n.isTouched=!1)),s.activeElement&&d(s.activeElement).is(n.focusableElements)&&s.activeElement!==h[0]&&s.activeElement.blur();const a=e&&t.allowTouchMove&&l.touchStartPreventDefault;!l.touchStartForcePreventDefault&&!a||h[0].isContentEditable||p.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",p)}function O(e){const t=a(),s=this,i=s.touchEventsData,{params:r,touches:n,rtlTranslate:l,enabled:o}=s;if(!o)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),!i.isTouched)return void(i.startMoving&&i.isScrolling&&s.emit("touchMoveOpposite",c));if(i.isTouchEvent&&"touchmove"!==c.type)return;const p="touchmove"===c.type&&c.targetTouches&&(c.targetTouches[0]||c.changedTouches[0]),h="touchmove"===c.type?p.pageX:c.pageX,m="touchmove"===c.type?p.pageY:c.pageY;if(c.preventedByNestedSwiper)return n.startX=h,void(n.startY=m);if(!s.allowTouchMove)return d(c.target).is(i.focusableElements)||(s.allowClick=!1),void(i.isTouched&&(Object.assign(n,{startX:h,startY:m,currentX:h,currentY:m}),i.touchStartTime=u()));if(i.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(s.isVertical()){if(m<n.startY&&s.translate<=s.maxTranslate()||m>n.startY&&s.translate>=s.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(h<n.startX&&s.translate<=s.maxTranslate()||h>n.startX&&s.translate>=s.minTranslate())return;if(i.isTouchEvent&&t.activeElement&&c.target===t.activeElement&&d(c.target).is(i.focusableElements))return i.isMoved=!0,void(s.allowClick=!1);if(i.allowTouchCallbacks&&s.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;n.currentX=h,n.currentY=m;const f=n.currentX-n.startX,g=n.currentY-n.startY;if(s.params.threshold&&Math.sqrt(f**2+g**2)<s.params.threshold)return;if(void 0===i.isScrolling){let e;s.isHorizontal()&&n.currentY===n.startY||s.isVertical()&&n.currentX===n.startX?i.isScrolling=!1:f*f+g*g>=25&&(e=180*Math.atan2(Math.abs(g),Math.abs(f))/Math.PI,i.isScrolling=s.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&s.emit("touchMoveOpposite",c),void 0===i.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(i.startMoving=!0)),i.isScrolling)return void(i.isTouched=!1);if(!i.startMoving)return;s.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation(),i.isMoved||(r.loop&&!r.cssMode&&s.loopFix(),i.startTranslate=s.getTranslate(),s.setTransition(0),s.animating&&s.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!r.grabCursor||!0!==s.allowSlideNext&&!0!==s.allowSlidePrev||s.setGrabCursor(!0),s.emit("sliderFirstMove",c)),s.emit("sliderMove",c),i.isMoved=!0;let v=s.isHorizontal()?f:g;n.diff=v,v*=r.touchRatio,l&&(v=-v),s.swipeDirection=v>0?"prev":"next",i.currentTranslate=v+i.startTranslate;let w=!0,b=r.resistanceRatio;if(r.touchReleaseOnEdges&&(b=0),v>0&&i.currentTranslate>s.minTranslate()?(w=!1,r.resistance&&(i.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+i.startTranslate+v)**b)):v<0&&i.currentTranslate<s.maxTranslate()&&(w=!1,r.resistance&&(i.currentTranslate=s.maxTranslate()+1-(s.maxTranslate()-i.startTranslate-v)**b)),w&&(c.preventedByNestedSwiper=!0),!s.allowSlideNext&&"next"===s.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!s.allowSlidePrev&&"prev"===s.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),s.allowSlidePrev||s.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(v)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,i.currentTranslate=i.startTranslate,void(n.diff=s.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&s.freeMode||r.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),s.params.freeMode&&r.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(i.currentTranslate),s.setTranslate(i.currentTranslate))}function I(e){const t=this,s=t.touchEventsData,{params:a,touches:i,rtlTranslate:r,slidesGrid:n,enabled:l}=t;if(!l)return;let o=e;if(o.originalEvent&&(o=o.originalEvent),s.allowTouchCallbacks&&t.emit("touchEnd",o),s.allowTouchCallbacks=!1,!s.isTouched)return s.isMoved&&a.grabCursor&&t.setGrabCursor(!1),s.isMoved=!1,void(s.startMoving=!1);a.grabCursor&&s.isMoved&&s.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=u(),c=d-s.touchStartTime;if(t.allowClick){const e=o.path||o.composedPath&&o.composedPath();t.updateClickedSlide(e&&e[0]||o.target),t.emit("tap click",o),c<300&&d-s.lastClickTime<300&&t.emit("doubleTap doubleClick",o)}if(s.lastClickTime=u(),p((()=>{t.destroyed||(t.allowClick=!0)})),!s.isTouched||!s.isMoved||!t.swipeDirection||0===i.diff||s.currentTranslate===s.startTranslate)return s.isTouched=!1,s.isMoved=!1,void(s.startMoving=!1);let h;if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,h=a.followFinger?r?t.translate:-t.translate:-s.currentTranslate,a.cssMode)return;if(t.params.freeMode&&a.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});let m=0,f=t.slidesSizesGrid[0];for(let e=0;e<n.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){const t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==n[e+t]?h>=n[e]&&h<n[e+t]&&(m=e,f=n[e+t]-n[e]):h>=n[e]&&(m=e,f=n[n.length-1]-n[n.length-2])}let g=null,v=null;a.rewind&&(t.isBeginning?v=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const w=(h-n[m])/f,b=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(c>a.longSwipesMs){if(!a.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(w>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?g:m+b):t.slideTo(m)),"prev"===t.swipeDirection&&(w>1-a.longSwipesRatio?t.slideTo(m+b):null!==v&&w<0&&Math.abs(w)>a.longSwipesRatio?t.slideTo(v):t.slideTo(m))}else{if(!a.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(o.target===t.navigation.nextEl||o.target===t.navigation.prevEl)?o.target===t.navigation.nextEl?t.slideTo(m+b):t.slideTo(m):("next"===t.swipeDirection&&t.slideTo(null!==g?g:m+b),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:m))}}function A(){const e=this,{params:t,el:s}=e;if(s&&0===s.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:i,snapGrid:r}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=i,e.allowSlideNext=a,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function D(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function G(){const e=this,{wrapperEl:t,rtlTranslate:s,enabled:a}=e;if(!a)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();i=0===r?0:(e.translate-e.minTranslate())/r,i!==e.progress&&e.updateProgress(s?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let N=!1;function B(){}const H=(e,t)=>{const s=a(),{params:i,touchEvents:r,el:n,wrapperEl:l,device:o,support:d}=e,c=!!i.nested,p="on"===t?"addEventListener":"removeEventListener",u=t;if(d.touch){const t=!("touchstart"!==r.start||!d.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};n[p](r.start,e.onTouchStart,t),n[p](r.move,e.onTouchMove,d.passiveListener?{passive:!1,capture:c}:c),n[p](r.end,e.onTouchEnd,t),r.cancel&&n[p](r.cancel,e.onTouchEnd,t)}else n[p](r.start,e.onTouchStart,!1),s[p](r.move,e.onTouchMove,c),s[p](r.end,e.onTouchEnd,!1);(i.preventClicks||i.preventClicksPropagation)&&n[p]("click",e.onClick,!0),i.cssMode&&l[p]("scroll",e.onScroll),i.updateOnWindowResize?e[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",A,!0):e[u]("observerUpdate",A,!0)};var X={attachEvents:function(){const e=this,t=a(),{params:s,support:i}=e;e.onTouchStart=L.bind(e),e.onTouchMove=O.bind(e),e.onTouchEnd=I.bind(e),s.cssMode&&(e.onScroll=G.bind(e)),e.onClick=D.bind(e),i.touch&&!N&&(t.addEventListener("touchstart",B),N=!0),H(e,"on")},detachEvents:function(){H(this,"off")}};const Y=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var R={addClasses:function(){const e=this,{classNames:t,params:s,rtl:a,$el:i,device:r,support:n}=e,l=function(e,t){const s=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((a=>{e[a]&&s.push(t+a)})):"string"==typeof e&&s.push(t+e)})),s}(["initialized",s.direction,{"pointer-events":!n.touch},{"free-mode":e.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:a},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&"column"===s.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);t.push(...l),i.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}};var W={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function q(e,t){return function(s){void 0===s&&(s={});const a=Object.keys(s)[0],i=s[a];"object"==typeof i&&null!==i?(["navigation","pagination","scrollbar"].indexOf(a)>=0&&!0===e[a]&&(e[a]={auto:!0}),a in e&&"enabled"in i?(!0===e[a]&&(e[a]={enabled:!0}),"object"!=typeof e[a]||"enabled"in e[a]||(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),g(t,s)):g(t,s)):g(t,s)}}const j={eventsEmitter:$,update:S,translate:M,transition:{setTransition:function(e,t){const s=this;s.params.cssMode||s.$wrapperEl.transition(e),s.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;a.cssMode||(a.autoHeight&&s.updateAutoHeight(),P({swiper:s,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;s.animating=!1,a.cssMode||(s.setTransition(0),P({swiper:s,runCallbacks:e,direction:t,step:"End"}))}},slide:k,loop:z,grabCursor:{setGrabCursor:function(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const s="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;s.style.cursor="move",s.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:X,breakpoints:{setBreakpoint:function(){const e=this,{activeIndex:t,initialized:s,loopedSlides:a=0,params:i,$el:r}=e,n=i.breakpoints;if(!n||n&&0===Object.keys(n).length)return;const l=e.getBreakpoint(n,e.params.breakpointsBase,e.el);if(!l||e.currentBreakpoint===l)return;const o=(l in n?n[l]:void 0)||e.originalParams,d=Y(e,i),c=Y(e,o),p=i.enabled;d&&!c?(r.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&c&&(r.addClass(`${i.containerModifierClass}grid`),(o.grid.fill&&"column"===o.grid.fill||!o.grid.fill&&"column"===i.grid.fill)&&r.addClass(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{const s=i[t]&&i[t].enabled,a=o[t]&&o[t].enabled;s&&!a&&e[t].disable(),!s&&a&&e[t].enable()}));const u=o.direction&&o.direction!==i.direction,h=i.loop&&(o.slidesPerView!==i.slidesPerView||u);u&&s&&e.changeDirection(),g(e.params,o);const m=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),p&&!m?e.disable():!p&&m&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",o),h&&s&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-a+e.loopedSlides,0,!1)),e.emit("breakpoint",o)},getBreakpoint:function(e,t,s){if(void 0===t&&(t="window"),!e||"container"===t&&!s)return;let a=!1;const i=r(),n="window"===t?i.innerHeight:s.clientHeight,l=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:n*t,point:e}}return{value:e,point:e}}));l.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<l.length;e+=1){const{point:r,value:n}=l[e];"window"===t?i.matchMedia(`(min-width: ${n}px)`).matches&&(a=r):n<=s.clientWidth&&(a=r)}return a||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:s}=e,{slidesOffsetBefore:a}=s;if(a){const t=e.slides.length-1,s=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*a;e.isLocked=e.size>s}else e.isLocked=1===e.snapGrid.length;!0===s.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===s.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:R,images:{loadImage:function(e,t,s,a,i,n){const l=r();let o;function c(){n&&n()}d(e).parent("picture")[0]||e.complete&&i?c():t?(o=new l.Image,o.onload=c,o.onerror=c,a&&(o.sizes=a),s&&(o.srcset=s),t&&(o.src=t)):c()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let s=0;s<e.imagesToLoad.length;s+=1){const a=e.imagesToLoad[s];e.loadImage(a,a.currentSrc||a.getAttribute("src"),a.srcset||a.getAttribute("srcset"),a.sizes||a.getAttribute("sizes"),!0,t)}}}},_={};class V{constructor(){let e,t;for(var s=arguments.length,a=new Array(s),i=0;i<s;i++)a[i]=arguments[i];if(1===a.length&&a[0].constructor&&"Object"===Object.prototype.toString.call(a[0]).slice(8,-1)?t=a[0]:[e,t]=a,t||(t={}),t=g({},t),e&&!t.el&&(t.el=e),t.el&&d(t.el).length>1){const e=[];return d(t.el).each((s=>{const a=g({},t,{el:s});e.push(new V(a))})),e}const r=this;r.__swiper__=!0,r.support=E(),r.device=C({userAgent:t.userAgent}),r.browser=T(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],t.modules&&Array.isArray(t.modules)&&r.modules.push(...t.modules);const n={};r.modules.forEach((e=>{e({swiper:r,extendParams:q(t,n),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})}));const l=g({},W,n);return r.params=g({},l,_,t),r.originalParams=g({},r.params),r.passedParams=g({},t),r.params&&r.params.on&&Object.keys(r.params.on).forEach((e=>{r.on(e,r.params.on[e])})),r.params&&r.params.onAny&&r.onAny(r.params.onAny),r.$=d,Object.assign(r,{enabled:r.params.enabled,el:e,classNames:[],slides:d(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return r.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},r.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},r.support.touch||!r.params.simulateTouch?r.touchEventsTouch:r.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:r.params.focusableElements,lastClickTime:u(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const s=this;e=Math.min(Math.max(e,0),1);const a=s.minTranslate(),i=(s.maxTranslate()-a)*e+a;s.translateTo(i,void 0===t?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((s=>{const a=e.getSlideClasses(s);t.push({slideEl:s,classNames:a}),e.emit("_slideClass",s,a)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:s,slides:a,slidesGrid:i,slidesSizesGrid:r,size:n,activeIndex:l}=this;let o=1;if(s.centeredSlides){let e,t=a[l].swiperSlideSize;for(let s=l+1;s<a.length;s+=1)a[s]&&!e&&(t+=a[s].swiperSlideSize,o+=1,t>n&&(e=!0));for(let s=l-1;s>=0;s-=1)a[s]&&!e&&(t+=a[s].swiperSlideSize,o+=1,t>n&&(e=!0))}else if("current"===e)for(let e=l+1;e<a.length;e+=1){(t?i[e]+r[e]-i[l]<n:i[e]-i[l]<n)&&(o+=1)}else for(let e=l-1;e>=0;e-=1){i[l]-i[e]<n&&(o+=1)}return o}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:s}=e;function a(){const t=e.rtlTranslate?-1*e.translate:e.translate,s=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses()}let i;s.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(a(),e.params.autoHeight&&e.updateAutoHeight()):(i=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),i||a()),s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const s=this,a=s.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(s.$el.removeClass(`${s.params.containerModifierClass}${a}`).addClass(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.each((t=>{"vertical"===e?t.style.width="":t.style.height=""})),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const s=d(e||t.params.el);if(!(e=s[0]))return!1;e.swiper=t;const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=d(e.shadowRoot.querySelector(i()));return t.children=e=>s.children(e),t}return s.children?s.children(i()):d(s).children(i())})();if(0===r.length&&t.params.createElements){const e=a().createElement("div");r=d(e),e.className=t.params.wrapperClass,s.append(e),s.children(`.${t.params.slideClass}`).each((e=>{r.append(e)}))}return Object.assign(t,{$el:s,el:e,$wrapperEl:r,wrapperEl:r[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===s.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===s.css("direction")),wrongRTL:"-webkit-box"===r.css("display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const s=this,{params:a,$el:i,$wrapperEl:r,slides:n}=s;return void 0===s.params||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),a.loop&&s.loopDestroy(),t&&(s.removeClasses(),i.removeAttr("style"),r.removeAttr("style"),n&&n.length&&n.removeClass([a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),s.emit("destroy"),Object.keys(s.eventsListeners).forEach((e=>{s.off(e)})),!1!==e&&(s.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(s)),s.destroyed=!0),null}static extendDefaults(e){g(_,e)}static get extendedDefaults(){return _}static get defaults(){return W}static installModule(e){V.prototype.__modules__||(V.prototype.__modules__=[]);const t=V.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>V.installModule(e))),V):(V.installModule(e),V)}}function F(e,t,s,i){const r=a();return e.params.createElements&&Object.keys(i).forEach((a=>{if(!s[a]&&!0===s.auto){let n=e.$el.children(`.${i[a]}`)[0];n||(n=r.createElement("div"),n.className=i[a],e.$el.append(n)),s[a]=n,t[a]=n}})),s}function U(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function K(e){const t=this,{$wrapperEl:s,params:a}=t;if(a.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&s.append(e[t]);else s.append(e);a.loop&&t.loopCreate(),a.observer||t.update()}function Z(e){const t=this,{params:s,$wrapperEl:a,activeIndex:i}=t;s.loop&&t.loopDestroy();let r=i+1;if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&a.prepend(e[t]);r=i+e.length}else a.prepend(e);s.loop&&t.loopCreate(),s.observer||t.update(),t.slideTo(r,0,!1)}function Q(e,t){const s=this,{$wrapperEl:a,params:i,activeIndex:r}=s;let n=r;i.loop&&(n-=s.loopedSlides,s.loopDestroy(),s.slides=a.children(`.${i.slideClass}`));const l=s.slides.length;if(e<=0)return void s.prependSlide(t);if(e>=l)return void s.appendSlide(t);let o=n>e?n+1:n;const d=[];for(let t=l-1;t>=e;t-=1){const e=s.slides.eq(t);e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&a.append(t[e]);o=n>e?n+t.length:n}else a.append(t);for(let e=0;e<d.length;e+=1)a.append(d[e]);i.loop&&s.loopCreate(),i.observer||s.update(),i.loop?s.slideTo(o+s.loopedSlides,0,!1):s.slideTo(o,0,!1)}function J(e){const t=this,{params:s,$wrapperEl:a,activeIndex:i}=t;let r=i;s.loop&&(r-=t.loopedSlides,t.loopDestroy(),t.slides=a.children(`.${s.slideClass}`));let n,l=r;if("object"==typeof e&&"length"in e){for(let s=0;s<e.length;s+=1)n=e[s],t.slides[n]&&t.slides.eq(n).remove(),n<l&&(l-=1);l=Math.max(l,0)}else n=e,t.slides[n]&&t.slides.eq(n).remove(),n<l&&(l-=1),l=Math.max(l,0);s.loop&&t.loopCreate(),s.observer||t.update(),s.loop?t.slideTo(l+t.loopedSlides,0,!1):t.slideTo(l,0,!1)}function ee(){const e=this,t=[];for(let s=0;s<e.slides.length;s+=1)t.push(s);e.removeSlide(t)}function te(e){const{effect:t,swiper:s,on:a,setTranslate:i,setTransition:r,overwriteParams:n,perspective:l,recreateShadows:o,getEffectParams:d}=e;let c;a("beforeInit",(()=>{if(s.params.effect!==t)return;s.classNames.push(`${s.params.containerModifierClass}${t}`),l&&l()&&s.classNames.push(`${s.params.containerModifierClass}3d`);const e=n?n():{};Object.assign(s.params,e),Object.assign(s.originalParams,e)})),a("setTranslate",(()=>{s.params.effect===t&&i()})),a("setTransition",((e,a)=>{s.params.effect===t&&r(a)})),a("transitionEnd",(()=>{if(s.params.effect===t&&o){if(!d||!d().slideShadows)return;s.slides.each((e=>{s.$(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()})),o()}})),a("virtualUpdate",(()=>{s.params.effect===t&&(s.slides.length||(c=!0),requestAnimationFrame((()=>{c&&s.slides&&s.slides.length&&(i(),c=!1)})))}))}function se(e,t){return e.transformEl?t.find(e.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):t}function ae(e){let{swiper:t,duration:s,transformEl:a,allSlides:i}=e;const{slides:r,activeIndex:n,$wrapperEl:l}=t;if(t.params.virtualTranslate&&0!==s){let e,s=!1;e=i?a?r.find(a):r:a?r.eq(n).find(a):r.eq(n),e.transitionEnd((()=>{if(s)return;if(!t||t.destroyed)return;s=!0,t.animating=!1;const e=["webkitTransitionEnd","transitionend"];for(let t=0;t<e.length;t+=1)l.trigger(e[t])}))}}function ie(e,t,s){const a="swiper-slide-shadow"+(s?`-${s}`:""),i=e.transformEl?t.find(e.transformEl):t;let r=i.children(`.${a}`);return r.length||(r=d(`<div class="swiper-slide-shadow${s?`-${s}`:""}"></div>`),i.append(r)),r}Object.keys(j).forEach((e=>{Object.keys(j[e]).forEach((t=>{V.prototype[t]=j[e][t]}))})),V.use([function(e){let{swiper:t,on:s,emit:a}=e;const i=r();let n=null,l=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(a("beforeResize"),a("resize"))},d=()=>{t&&!t.destroyed&&t.initialized&&a("orientationchange")};s("init",(()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(n=new ResizeObserver((e=>{l=i.requestAnimationFrame((()=>{const{width:s,height:a}=t;let i=s,r=a;e.forEach((e=>{let{contentBoxSize:s,contentRect:a,target:n}=e;n&&n!==t.el||(i=a?a.width:(s[0]||s).inlineSize,r=a?a.height:(s[0]||s).blockSize)})),i===s&&r===a||o()}))})),n.observe(t.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",d))})),s("destroy",(()=>{l&&i.cancelAnimationFrame(l),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",d)}))},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=[],l=r(),o=function(e,t){void 0===t&&(t={});const s=new(l.MutationObserver||l.WebkitMutationObserver)((e=>{if(1===e.length)return void i("observerUpdate",e[0]);const t=function(){i("observerUpdate",e[0])};l.requestAnimationFrame?l.requestAnimationFrame(t):l.setTimeout(t,0)}));s.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),n.push(s)};s({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let t=0;t<e.length;t+=1)o(e[t])}o(t.$el[0],{childList:t.params.observeSlideChildren}),o(t.$wrapperEl[0],{attributes:!1})}})),a("destroy",(()=>{n.forEach((e=>{e.disconnect()})),n.splice(0,n.length)}))}]);const re=[function(e){let t,{swiper:s,extendParams:a,on:i,emit:r}=e;function n(e,t){const a=s.params.virtual;if(a.cache&&s.virtual.cache[t])return s.virtual.cache[t];const i=a.renderSlide?d(a.renderSlide.call(s,e,t)):d(`<div class="${s.params.slideClass}" data-swiper-slide-index="${t}">${e}</div>`);return i.attr("data-swiper-slide-index")||i.attr("data-swiper-slide-index",t),a.cache&&(s.virtual.cache[t]=i),i}function l(e){const{slidesPerView:t,slidesPerGroup:a,centeredSlides:i}=s.params,{addSlidesBefore:l,addSlidesAfter:o}=s.params.virtual,{from:d,to:c,slides:p,slidesGrid:u,offset:h}=s.virtual;s.params.cssMode||s.updateActiveIndex();const m=s.activeIndex||0;let f,g,v;f=s.rtlTranslate?"right":s.isHorizontal()?"left":"top",i?(g=Math.floor(t/2)+a+o,v=Math.floor(t/2)+a+l):(g=t+(a-1)+o,v=a+l);const w=Math.max((m||0)-v,0),b=Math.min((m||0)+g,p.length-1),x=(s.slidesGrid[w]||0)-(s.slidesGrid[0]||0);function y(){s.updateSlides(),s.updateProgress(),s.updateSlidesClasses(),s.lazy&&s.params.lazy.enabled&&s.lazy.load(),r("virtualUpdate")}if(Object.assign(s.virtual,{from:w,to:b,offset:x,slidesGrid:s.slidesGrid}),d===w&&c===b&&!e)return s.slidesGrid!==u&&x!==h&&s.slides.css(f,`${x}px`),s.updateProgress(),void r("virtualUpdate");if(s.params.virtual.renderExternal)return s.params.virtual.renderExternal.call(s,{offset:x,from:w,to:b,slides:function(){const e=[];for(let t=w;t<=b;t+=1)e.push(p[t]);return e}()}),void(s.params.virtual.renderExternalUpdate?y():r("virtualUpdate"));const E=[],C=[];if(e)s.$wrapperEl.find(`.${s.params.slideClass}`).remove();else for(let e=d;e<=c;e+=1)(e<w||e>b)&&s.$wrapperEl.find(`.${s.params.slideClass}[data-swiper-slide-index="${e}"]`).remove();for(let t=0;t<p.length;t+=1)t>=w&&t<=b&&(void 0===c||e?C.push(t):(t>c&&C.push(t),t<d&&E.push(t)));C.forEach((e=>{s.$wrapperEl.append(n(p[e],e))})),E.sort(((e,t)=>t-e)).forEach((e=>{s.$wrapperEl.prepend(n(p[e],e))})),s.$wrapperEl.children(".swiper-slide").css(f,`${x}px`),y()}a({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}}),s.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]},i("beforeInit",(()=>{s.params.virtual.enabled&&(s.virtual.slides=s.params.virtual.slides,s.classNames.push(`${s.params.containerModifierClass}virtual`),s.params.watchSlidesProgress=!0,s.originalParams.watchSlidesProgress=!0,s.params.initialSlide||l())})),i("setTranslate",(()=>{s.params.virtual.enabled&&(s.params.cssMode&&!s._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{l()}),100)):l())})),i("init update resize",(()=>{s.params.virtual.enabled&&s.params.cssMode&&v(s.wrapperEl,"--swiper-virtual-size",`${s.virtualSize}px`)})),Object.assign(s.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&s.virtual.slides.push(e[t]);else s.virtual.slides.push(e);l(!0)},prependSlide:function(e){const t=s.activeIndex;let a=t+1,i=1;if(Array.isArray(e)){for(let t=0;t<e.length;t+=1)e[t]&&s.virtual.slides.unshift(e[t]);a=t+e.length,i=e.length}else s.virtual.slides.unshift(e);if(s.params.virtual.cache){const e=s.virtual.cache,t={};Object.keys(e).forEach((s=>{const a=e[s],r=a.attr("data-swiper-slide-index");r&&a.attr("data-swiper-slide-index",parseInt(r,10)+i),t[parseInt(s,10)+i]=a})),s.virtual.cache=t}l(!0),s.slideTo(a,0)},removeSlide:function(e){if(null==e)return;let t=s.activeIndex;if(Array.isArray(e))for(let a=e.length-1;a>=0;a-=1)s.virtual.slides.splice(e[a],1),s.params.virtual.cache&&delete s.virtual.cache[e[a]],e[a]<t&&(t-=1),t=Math.max(t,0);else s.virtual.slides.splice(e,1),s.params.virtual.cache&&delete s.virtual.cache[e],e<t&&(t-=1),t=Math.max(t,0);l(!0),s.slideTo(t,0)},removeAllSlides:function(){s.virtual.slides=[],s.params.virtual.cache&&(s.virtual.cache={}),l(!0),s.slideTo(0,0)},update:l})},function(e){let{swiper:t,extendParams:s,on:i,emit:n}=e;const l=a(),o=r();function c(e){if(!t.enabled)return;const{rtlTranslate:s}=t;let a=e;a.originalEvent&&(a=a.originalEvent);const i=a.keyCode||a.charCode,r=t.params.keyboard.pageUpDown,d=r&&33===i,c=r&&34===i,p=37===i,u=39===i,h=38===i,m=40===i;if(!t.allowSlideNext&&(t.isHorizontal()&&u||t.isVertical()&&m||c))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&p||t.isVertical()&&h||d))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||l.activeElement&&l.activeElement.nodeName&&("input"===l.activeElement.nodeName.toLowerCase()||"textarea"===l.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(d||c||p||u||h||m)){let e=!1;if(t.$el.parents(`.${t.params.slideClass}`).length>0&&0===t.$el.parents(`.${t.params.slideActiveClass}`).length)return;const a=t.$el,i=a[0].clientWidth,r=a[0].clientHeight,n=o.innerWidth,l=o.innerHeight,d=t.$el.offset();s&&(d.left-=t.$el[0].scrollLeft);const c=[[d.left,d.top],[d.left+i,d.top],[d.left,d.top+r],[d.left+i,d.top+r]];for(let t=0;t<c.length;t+=1){const s=c[t];if(s[0]>=0&&s[0]<=n&&s[1]>=0&&s[1]<=l){if(0===s[0]&&0===s[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((d||c||p||u)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((c||u)&&!s||(d||p)&&s)&&t.slideNext(),((d||p)&&!s||(c||u)&&s)&&t.slidePrev()):((d||c||h||m)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(c||m)&&t.slideNext(),(d||h)&&t.slidePrev()),n("keyPress",i)}}function p(){t.keyboard.enabled||(d(l).on("keydown",c),t.keyboard.enabled=!0)}function u(){t.keyboard.enabled&&(d(l).off("keydown",c),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},s({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",(()=>{t.params.keyboard.enabled&&p()})),i("destroy",(()=>{t.keyboard.enabled&&u()})),Object.assign(t.keyboard,{enable:p,disable:u})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=r();let l;s({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),t.mousewheel={enabled:!1};let o,c=u();const h=[];function m(){t.enabled&&(t.mouseEntered=!0)}function f(){t.enabled&&(t.mouseEntered=!1)}function g(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta)&&(!(t.params.mousewheel.thresholdTime&&u()-c<t.params.mousewheel.thresholdTime)&&(e.delta>=6&&u()-c<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),i("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),i("scroll",e.raw)),c=(new n.Date).getTime(),!1)))}function v(e){let s=e,a=!0;if(!t.enabled)return;const r=t.params.mousewheel;t.params.cssMode&&s.preventDefault();let n=t.$el;if("container"!==t.params.mousewheel.eventsTarget&&(n=d(t.params.mousewheel.eventsTarget)),!t.mouseEntered&&!n[0].contains(s.target)&&!r.releaseOnEdges)return!0;s.originalEvent&&(s=s.originalEvent);let c=0;const m=t.rtlTranslate?-1:1,f=function(e){let t=0,s=0,a=0,i=0;return"detail"in e&&(s=e.detail),"wheelDelta"in e&&(s=-e.wheelDelta/120),"wheelDeltaY"in e&&(s=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=s,s=0),a=10*t,i=10*s,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(a=e.deltaX),e.shiftKey&&!a&&(a=i,i=0),(a||i)&&e.deltaMode&&(1===e.deltaMode?(a*=40,i*=40):(a*=800,i*=800)),a&&!t&&(t=a<1?-1:1),i&&!s&&(s=i<1?-1:1),{spinX:t,spinY:s,pixelX:a,pixelY:i}}(s);if(r.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(f.pixelX)>Math.abs(f.pixelY)))return!0;c=-f.pixelX*m}else{if(!(Math.abs(f.pixelY)>Math.abs(f.pixelX)))return!0;c=-f.pixelY}else c=Math.abs(f.pixelX)>Math.abs(f.pixelY)?-f.pixelX*m:-f.pixelY;if(0===c)return!0;r.invert&&(c=-c);let v=t.getTranslate()+c*r.sensitivity;if(v>=t.minTranslate()&&(v=t.minTranslate()),v<=t.maxTranslate()&&(v=t.maxTranslate()),a=!!t.params.loop||!(v===t.minTranslate()||v===t.maxTranslate()),a&&t.params.nested&&s.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:u(),delta:Math.abs(c),direction:Math.sign(c)},a=o&&e.time<o.time+500&&e.delta<=o.delta&&e.direction===o.direction;if(!a){o=void 0,t.params.loop&&t.loopFix();let n=t.getTranslate()+c*r.sensitivity;const d=t.isBeginning,u=t.isEnd;if(n>=t.minTranslate()&&(n=t.minTranslate()),n<=t.maxTranslate()&&(n=t.maxTranslate()),t.setTransition(0),t.setTranslate(n),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!d&&t.isBeginning||!u&&t.isEnd)&&t.updateSlidesClasses(),t.params.freeMode.sticky){clearTimeout(l),l=void 0,h.length>=15&&h.shift();const s=h.length?h[h.length-1]:void 0,a=h[0];if(h.push(e),s&&(e.delta>s.delta||e.direction!==s.direction))h.splice(0);else if(h.length>=15&&e.time-a.time<500&&a.delta-e.delta>=1&&e.delta<=6){const s=c>0?.8:.2;o=e,h.splice(0),l=p((()=>{t.slideToClosest(t.params.speed,!0,void 0,s)}),0)}l||(l=p((()=>{o=e,h.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)}),500))}if(a||i("scroll",s),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),n===t.minTranslate()||n===t.maxTranslate())return!0}}else{const s={time:u(),delta:Math.abs(c),direction:Math.sign(c),raw:e};h.length>=2&&h.shift();const a=h.length?h[h.length-1]:void 0;if(h.push(s),a?(s.direction!==a.direction||s.delta>a.delta||s.time>a.time+150)&&g(s):g(s),function(e){const s=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&s.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&s.releaseOnEdges)return!0;return!1}(s))return!0}return s.preventDefault?s.preventDefault():s.returnValue=!1,!1}function w(e){let s=t.$el;"container"!==t.params.mousewheel.eventsTarget&&(s=d(t.params.mousewheel.eventsTarget)),s[e]("mouseenter",m),s[e]("mouseleave",f),s[e]("wheel",v)}function b(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",v),!0):!t.mousewheel.enabled&&(w("on"),t.mousewheel.enabled=!0,!0)}function x(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,v),!0):!!t.mousewheel.enabled&&(w("off"),t.mousewheel.enabled=!1,!0)}a("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&x(),t.params.mousewheel.enabled&&b()})),a("destroy",(()=>{t.params.cssMode&&b(),t.mousewheel.enabled&&x()})),Object.assign(t.mousewheel,{enable:b,disable:x})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;function r(e){let s;return e&&(s=d(e),t.params.uniqueNavElements&&"string"==typeof e&&s.length>1&&1===t.$el.find(e).length&&(s=t.$el.find(e))),s}function n(e,s){const a=t.params.navigation;e&&e.length>0&&(e[s?"addClass":"removeClass"](a.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=s),t.params.watchOverflow&&t.enabled&&e[t.isLocked?"addClass":"removeClass"](a.lockClass))}function l(){if(t.params.loop)return;const{$nextEl:e,$prevEl:s}=t.navigation;n(s,t.isBeginning&&!t.params.rewind),n(e,t.isEnd&&!t.params.rewind)}function o(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function p(){const e=t.params.navigation;if(t.params.navigation=F(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;const s=r(e.nextEl),a=r(e.prevEl);s&&s.length>0&&s.on("click",c),a&&a.length>0&&a.on("click",o),Object.assign(t.navigation,{$nextEl:s,nextEl:s&&s[0],$prevEl:a,prevEl:a&&a[0]}),t.enabled||(s&&s.addClass(e.lockClass),a&&a.addClass(e.lockClass))}function u(){const{$nextEl:e,$prevEl:s}=t.navigation;e&&e.length&&(e.off("click",c),e.removeClass(t.params.navigation.disabledClass)),s&&s.length&&(s.off("click",o),s.removeClass(t.params.navigation.disabledClass))}s({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},a("init",(()=>{!1===t.params.navigation.enabled?h():(p(),l())})),a("toEdge fromEdge lock unlock",(()=>{l()})),a("destroy",(()=>{u()})),a("enable disable",(()=>{const{$nextEl:e,$prevEl:s}=t.navigation;e&&e[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),s&&s[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)})),a("click",((e,s)=>{const{$nextEl:a,$prevEl:r}=t.navigation,n=s.target;if(t.params.navigation.hideOnClick&&!d(n).is(r)&&!d(n).is(a)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===n||t.pagination.el.contains(n)))return;let e;a?e=a.hasClass(t.params.navigation.hiddenClass):r&&(e=r.hasClass(t.params.navigation.hiddenClass)),i(!0===e?"navigationShow":"navigationHide"),a&&a.toggleClass(t.params.navigation.hiddenClass),r&&r.toggleClass(t.params.navigation.hiddenClass)}}));const h=()=>{t.$el.addClass(t.params.navigation.navigationDisabledClass),u()};Object.assign(t.navigation,{enable:()=>{t.$el.removeClass(t.params.navigation.navigationDisabledClass),p(),l()},disable:h,update:l,init:p,destroy:u})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const r="swiper-pagination";let n;s({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),t.pagination={el:null,$el:null,bullets:[]};let l=0;function o(){return!t.params.pagination.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length}function c(e,s){const{bulletActiveClass:a}=t.params.pagination;e[s]().addClass(`${a}-${s}`)[s]().addClass(`${a}-${s}-${s}`)}function p(){const e=t.rtl,s=t.params.pagination;if(o())return;const a=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,r=t.pagination.$el;let p;const u=t.params.loop?Math.ceil((a-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(p=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),p>a-1-2*t.loopedSlides&&(p-=a-2*t.loopedSlides),p>u-1&&(p-=u),p<0&&"bullets"!==t.params.paginationType&&(p=u+p)):p=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===s.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const a=t.pagination.bullets;let i,o,u;if(s.dynamicBullets&&(n=a.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),r.css(t.isHorizontal()?"width":"height",n*(s.dynamicMainBullets+4)+"px"),s.dynamicMainBullets>1&&void 0!==t.previousIndex&&(l+=p-(t.previousIndex-t.loopedSlides||0),l>s.dynamicMainBullets-1?l=s.dynamicMainBullets-1:l<0&&(l=0)),i=Math.max(p-l,0),o=i+(Math.min(a.length,s.dynamicMainBullets)-1),u=(o+i)/2),a.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${s.bulletActiveClass}${e}`)).join(" ")),r.length>1)a.each((e=>{const t=d(e),a=t.index();a===p&&t.addClass(s.bulletActiveClass),s.dynamicBullets&&(a>=i&&a<=o&&t.addClass(`${s.bulletActiveClass}-main`),a===i&&c(t,"prev"),a===o&&c(t,"next"))}));else{const e=a.eq(p),r=e.index();if(e.addClass(s.bulletActiveClass),s.dynamicBullets){const e=a.eq(i),n=a.eq(o);for(let e=i;e<=o;e+=1)a.eq(e).addClass(`${s.bulletActiveClass}-main`);if(t.params.loop)if(r>=a.length){for(let e=s.dynamicMainBullets;e>=0;e-=1)a.eq(a.length-e).addClass(`${s.bulletActiveClass}-main`);a.eq(a.length-s.dynamicMainBullets-1).addClass(`${s.bulletActiveClass}-prev`)}else c(e,"prev"),c(n,"next");else c(e,"prev"),c(n,"next")}}if(s.dynamicBullets){const i=Math.min(a.length,s.dynamicMainBullets+4),r=(n*i-n)/2-u*n,l=e?"right":"left";a.css(t.isHorizontal()?l:"top",`${r}px`)}}if("fraction"===s.type&&(r.find(U(s.currentClass)).text(s.formatFractionCurrent(p+1)),r.find(U(s.totalClass)).text(s.formatFractionTotal(u))),"progressbar"===s.type){let e;e=s.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const a=(p+1)/u;let i=1,n=1;"horizontal"===e?i=a:n=a,r.find(U(s.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${i}) scaleY(${n})`).transition(t.params.speed)}"custom"===s.type&&s.renderCustom?(r.html(s.renderCustom(t,p+1,u)),i("paginationRender",r[0])):i("paginationUpdate",r[0]),t.params.watchOverflow&&t.enabled&&r[t.isLocked?"addClass":"removeClass"](s.lockClass)}function u(){const e=t.params.pagination;if(o())return;const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,a=t.pagination.$el;let r="";if("bullets"===e.type){let i=t.params.loop?Math.ceil((s-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&!t.params.loop&&i>s&&(i=s);for(let s=0;s<i;s+=1)e.renderBullet?r+=e.renderBullet.call(t,s,e.bulletClass):r+=`<${e.bulletElement} class="${e.bulletClass}"></${e.bulletElement}>`;a.html(r),t.pagination.bullets=a.find(U(e.bulletClass))}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`,a.html(r)),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`,a.html(r)),"custom"!==e.type&&i("paginationRender",t.pagination.$el[0])}function h(){t.params.pagination=F(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let s=d(e.el);0!==s.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&s.length>1&&(s=t.$el.find(e.el),s.length>1&&(s=s.filter((e=>d(e).parents(".swiper")[0]===t.el)))),"bullets"===e.type&&e.clickable&&s.addClass(e.clickableClass),s.addClass(e.modifierClass+e.type),s.addClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(s.addClass(`${e.modifierClass}${e.type}-dynamic`),l=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&s.addClass(e.progressbarOppositeClass),e.clickable&&s.on("click",U(e.bulletClass),(function(e){e.preventDefault();let s=d(this).index()*t.params.slidesPerGroup;t.params.loop&&(s+=t.loopedSlides),t.slideTo(s)})),Object.assign(t.pagination,{$el:s,el:s[0]}),t.enabled||s.addClass(e.lockClass))}function m(){const e=t.params.pagination;if(o())return;const s=t.pagination.$el;s.removeClass(e.hiddenClass),s.removeClass(e.modifierClass+e.type),s.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.pagination.bullets&&t.pagination.bullets.removeClass&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&s.off("click",U(e.bulletClass))}a("init",(()=>{!1===t.params.pagination.enabled?f():(h(),u(),p())})),a("activeIndexChange",(()=>{(t.params.loop||void 0===t.snapIndex)&&p()})),a("snapIndexChange",(()=>{t.params.loop||p()})),a("slidesLengthChange",(()=>{t.params.loop&&(u(),p())})),a("snapGridLengthChange",(()=>{t.params.loop||(u(),p())})),a("destroy",(()=>{m()})),a("enable disable",(()=>{const{$el:e}=t.pagination;e&&e[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)})),a("lock unlock",(()=>{p()})),a("click",((e,s)=>{const a=s.target,{$el:r}=t.pagination;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&r&&r.length>0&&!d(a).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&a===t.navigation.nextEl||t.navigation.prevEl&&a===t.navigation.prevEl))return;const e=r.hasClass(t.params.pagination.hiddenClass);i(!0===e?"paginationShow":"paginationHide"),r.toggleClass(t.params.pagination.hiddenClass)}}));const f=()=>{t.$el.addClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.addClass(t.params.pagination.paginationDisabledClass),m()};Object.assign(t.pagination,{enable:()=>{t.$el.removeClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.removeClass(t.params.pagination.paginationDisabledClass),h(),u(),p()},disable:f,render:u,update:p,init:h,destroy:m})},function(e){let{swiper:t,extendParams:s,on:i,emit:r}=e;const n=a();let l,o,c,u,h=!1,m=null,f=null;function g(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:s,progress:a}=t,{$dragEl:i,$el:r}=e,n=t.params.scrollbar;let l=o,d=(c-o)*a;s?(d=-d,d>0?(l=o-d,d=0):-d+o>c&&(l=c+d)):d<0?(l=o+d,d=0):d+o>c&&(l=c-d),t.isHorizontal()?(i.transform(`translate3d(${d}px, 0, 0)`),i[0].style.width=`${l}px`):(i.transform(`translate3d(0px, ${d}px, 0)`),i[0].style.height=`${l}px`),n.hide&&(clearTimeout(m),r[0].style.opacity=1,m=setTimeout((()=>{r[0].style.opacity=0,r.transition(400)}),1e3))}function v(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{$dragEl:s,$el:a}=e;s[0].style.width="",s[0].style.height="",c=t.isHorizontal()?a[0].offsetWidth:a[0].offsetHeight,u=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),o="auto"===t.params.scrollbar.dragSize?c*u:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?s[0].style.width=`${o}px`:s[0].style.height=`${o}px`,a[0].style.display=u>=1?"none":"",t.params.scrollbar.hide&&(a[0].style.opacity=0),t.params.watchOverflow&&t.enabled&&e.$el[t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}function w(e){return t.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY}function b(e){const{scrollbar:s,rtlTranslate:a}=t,{$el:i}=s;let r;r=(w(e)-i.offset()[t.isHorizontal()?"left":"top"]-(null!==l?l:o/2))/(c-o),r=Math.max(Math.min(r,1),0),a&&(r=1-r);const n=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*r;t.updateProgress(n),t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}function x(e){const s=t.params.scrollbar,{scrollbar:a,$wrapperEl:i}=t,{$el:n,$dragEl:o}=a;h=!0,l=e.target===o[0]||e.target===o?w(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.transition(100),o.transition(100),b(e),clearTimeout(f),n.transition(0),s.hide&&n.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),r("scrollbarDragStart",e)}function y(e){const{scrollbar:s,$wrapperEl:a}=t,{$el:i,$dragEl:n}=s;h&&(e.preventDefault?e.preventDefault():e.returnValue=!1,b(e),a.transition(0),i.transition(0),n.transition(0),r("scrollbarDragMove",e))}function E(e){const s=t.params.scrollbar,{scrollbar:a,$wrapperEl:i}=t,{$el:n}=a;h&&(h=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),i.transition("")),s.hide&&(clearTimeout(f),f=p((()=>{n.css("opacity",0),n.transition(400)}),1e3)),r("scrollbarDragEnd",e),s.snapOnRelease&&t.slideToClosest())}function C(e){const{scrollbar:s,touchEventsTouch:a,touchEventsDesktop:i,params:r,support:l}=t,o=s.$el;if(!o)return;const d=o[0],c=!(!l.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},p=!(!l.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};if(!d)return;const u="on"===e?"addEventListener":"removeEventListener";l.touch?(d[u](a.start,x,c),d[u](a.move,y,c),d[u](a.end,E,p)):(d[u](i.start,x,c),n[u](i.move,y,c),n[u](i.end,E,p))}function T(){const{scrollbar:e,$el:s}=t;t.params.scrollbar=F(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const a=t.params.scrollbar;if(!a.el)return;let i=d(a.el);t.params.uniqueNavElements&&"string"==typeof a.el&&i.length>1&&1===s.find(a.el).length&&(i=s.find(a.el)),i.addClass(t.isHorizontal()?a.horizontalClass:a.verticalClass);let r=i.find(`.${t.params.scrollbar.dragClass}`);0===r.length&&(r=d(`<div class="${t.params.scrollbar.dragClass}"></div>`),i.append(r)),Object.assign(e,{$el:i,el:i[0],$dragEl:r,dragEl:r[0]}),a.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&C("on"),i&&i[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}function $(){const e=t.params.scrollbar,s=t.scrollbar.$el;s&&s.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.params.scrollbar.el&&t.scrollbar.el&&C("off")}s({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null},i("init",(()=>{!1===t.params.scrollbar.enabled?S():(T(),v(),g())})),i("update resize observerUpdate lock unlock",(()=>{v()})),i("setTranslate",(()=>{g()})),i("setTransition",((e,s)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)}(s)})),i("enable disable",(()=>{const{$el:e}=t.scrollbar;e&&e[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)})),i("destroy",(()=>{$()}));const S=()=>{t.$el.addClass(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.$el&&t.scrollbar.$el.addClass(t.params.scrollbar.scrollbarDisabledClass),$()};Object.assign(t.scrollbar,{enable:()=>{t.$el.removeClass(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.$el&&t.scrollbar.$el.removeClass(t.params.scrollbar.scrollbarDisabledClass),T(),v(),g()},disable:S,updateSize:v,setTranslate:g,init:T,destroy:$})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({parallax:{enabled:!1}});const i=(e,s)=>{const{rtl:a}=t,i=d(e),r=a?-1:1,n=i.attr("data-swiper-parallax")||"0";let l=i.attr("data-swiper-parallax-x"),o=i.attr("data-swiper-parallax-y");const c=i.attr("data-swiper-parallax-scale"),p=i.attr("data-swiper-parallax-opacity");if(l||o?(l=l||"0",o=o||"0"):t.isHorizontal()?(l=n,o="0"):(o=n,l="0"),l=l.indexOf("%")>=0?parseInt(l,10)*s*r+"%":l*s*r+"px",o=o.indexOf("%")>=0?parseInt(o,10)*s+"%":o*s+"px",null!=p){const e=p-(p-1)*(1-Math.abs(s));i[0].style.opacity=e}if(null==c)i.transform(`translate3d(${l}, ${o}, 0px)`);else{const e=c-(c-1)*(1-Math.abs(s));i.transform(`translate3d(${l}, ${o}, 0px) scale(${e})`)}},r=()=>{const{$el:e,slides:s,progress:a,snapGrid:r}=t;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{i(e,a)})),s.each(((e,s)=>{let n=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(n+=Math.ceil(s/2)-a*(r.length-1)),n=Math.min(Math.max(n,-1),1),d(e).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{i(e,n)}))}))};a("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),a("init",(()=>{t.params.parallax.enabled&&r()})),a("setTranslate",(()=>{t.params.parallax.enabled&&r()})),a("setTransition",((e,s)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{$el:s}=t;s.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t=>{const s=d(t);let a=parseInt(s.attr("data-swiper-parallax-duration"),10)||e;0===e&&(a=0),s.transition(a)}))}(s)}))},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=r();s({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let l,o,c,p=1,u=!1;const m={$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},f={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let v=1;function w(e){if(e.targetTouches.length<2)return 1;const t=e.targetTouches[0].pageX,s=e.targetTouches[0].pageY,a=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY;return Math.sqrt((a-t)**2+(i-s)**2)}function b(e){const s=t.support,a=t.params.zoom;if(o=!1,c=!1,!s.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;o=!0,m.scaleStart=w(e)}m.$slideEl&&m.$slideEl.length||(m.$slideEl=d(e.target).closest(`.${t.params.slideClass}`),0===m.$slideEl.length&&(m.$slideEl=t.slides.eq(t.activeIndex)),m.$imageEl=m.$slideEl.find(`.${a.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),m.$imageWrapEl=m.$imageEl.parent(`.${a.containerClass}`),m.maxRatio=m.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,0!==m.$imageWrapEl.length)?(m.$imageEl&&m.$imageEl.transition(0),u=!0):m.$imageEl=void 0}function x(e){const s=t.support,a=t.params.zoom,i=t.zoom;if(!s.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;c=!0,m.scaleMove=w(e)}m.$imageEl&&0!==m.$imageEl.length?(s.gestures?i.scale=e.scale*p:i.scale=m.scaleMove/m.scaleStart*p,i.scale>m.maxRatio&&(i.scale=m.maxRatio-1+(i.scale-m.maxRatio+1)**.5),i.scale<a.minRatio&&(i.scale=a.minRatio+1-(a.minRatio-i.scale+1)**.5),m.$imageEl.transform(`translate3d(0,0,0) scale(${i.scale})`)):"gesturechange"===e.type&&b(e)}function y(e){const s=t.device,a=t.support,i=t.params.zoom,r=t.zoom;if(!a.gestures){if(!o||!c)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!s.android)return;o=!1,c=!1}m.$imageEl&&0!==m.$imageEl.length&&(r.scale=Math.max(Math.min(r.scale,m.maxRatio),i.minRatio),m.$imageEl.transition(t.params.speed).transform(`translate3d(0,0,0) scale(${r.scale})`),p=r.scale,u=!1,1===r.scale&&(m.$slideEl=void 0))}function E(e){const s=t.zoom;if(!m.$imageEl||0===m.$imageEl.length)return;if(t.allowClick=!1,!f.isTouched||!m.$slideEl)return;f.isMoved||(f.width=m.$imageEl[0].offsetWidth,f.height=m.$imageEl[0].offsetHeight,f.startX=h(m.$imageWrapEl[0],"x")||0,f.startY=h(m.$imageWrapEl[0],"y")||0,m.slideWidth=m.$slideEl[0].offsetWidth,m.slideHeight=m.$slideEl[0].offsetHeight,m.$imageWrapEl.transition(0));const a=f.width*s.scale,i=f.height*s.scale;if(!(a<m.slideWidth&&i<m.slideHeight)){if(f.minX=Math.min(m.slideWidth/2-a/2,0),f.maxX=-f.minX,f.minY=Math.min(m.slideHeight/2-i/2,0),f.maxY=-f.minY,f.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,f.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!f.isMoved&&!u){if(t.isHorizontal()&&(Math.floor(f.minX)===Math.floor(f.startX)&&f.touchesCurrent.x<f.touchesStart.x||Math.floor(f.maxX)===Math.floor(f.startX)&&f.touchesCurrent.x>f.touchesStart.x))return void(f.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(f.minY)===Math.floor(f.startY)&&f.touchesCurrent.y<f.touchesStart.y||Math.floor(f.maxY)===Math.floor(f.startY)&&f.touchesCurrent.y>f.touchesStart.y))return void(f.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),f.isMoved=!0,f.currentX=f.touchesCurrent.x-f.touchesStart.x+f.startX,f.currentY=f.touchesCurrent.y-f.touchesStart.y+f.startY,f.currentX<f.minX&&(f.currentX=f.minX+1-(f.minX-f.currentX+1)**.8),f.currentX>f.maxX&&(f.currentX=f.maxX-1+(f.currentX-f.maxX+1)**.8),f.currentY<f.minY&&(f.currentY=f.minY+1-(f.minY-f.currentY+1)**.8),f.currentY>f.maxY&&(f.currentY=f.maxY-1+(f.currentY-f.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=f.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=f.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(f.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(f.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(f.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(f.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=f.touchesCurrent.x,g.prevPositionY=f.touchesCurrent.y,g.prevTime=Date.now(),m.$imageWrapEl.transform(`translate3d(${f.currentX}px, ${f.currentY}px,0)`)}}function C(){const e=t.zoom;m.$slideEl&&t.previousIndex!==t.activeIndex&&(m.$imageEl&&m.$imageEl.transform("translate3d(0,0,0) scale(1)"),m.$imageWrapEl&&m.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,p=1,m.$slideEl=void 0,m.$imageEl=void 0,m.$imageWrapEl=void 0)}function T(e){const s=t.zoom,a=t.params.zoom;if(m.$slideEl||(e&&e.target&&(m.$slideEl=d(e.target).closest(`.${t.params.slideClass}`)),m.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?m.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):m.$slideEl=t.slides.eq(t.activeIndex)),m.$imageEl=m.$slideEl.find(`.${a.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),m.$imageWrapEl=m.$imageEl.parent(`.${a.containerClass}`)),!m.$imageEl||0===m.$imageEl.length||!m.$imageWrapEl||0===m.$imageWrapEl.length)return;let i,r,l,o,c,u,h,g,v,w,b,x,y,E,C,T,$,S;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),m.$slideEl.addClass(`${a.zoomedSlideClass}`),void 0===f.touchesStart.x&&e?(i="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,r="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(i=f.touchesStart.x,r=f.touchesStart.y),s.scale=m.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,p=m.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,e?($=m.$slideEl[0].offsetWidth,S=m.$slideEl[0].offsetHeight,l=m.$slideEl.offset().left+n.scrollX,o=m.$slideEl.offset().top+n.scrollY,c=l+$/2-i,u=o+S/2-r,v=m.$imageEl[0].offsetWidth,w=m.$imageEl[0].offsetHeight,b=v*s.scale,x=w*s.scale,y=Math.min($/2-b/2,0),E=Math.min(S/2-x/2,0),C=-y,T=-E,h=c*s.scale,g=u*s.scale,h<y&&(h=y),h>C&&(h=C),g<E&&(g=E),g>T&&(g=T)):(h=0,g=0),m.$imageWrapEl.transition(300).transform(`translate3d(${h}px, ${g}px,0)`),m.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${s.scale})`)}function $(){const e=t.zoom,s=t.params.zoom;m.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?m.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):m.$slideEl=t.slides.eq(t.activeIndex),m.$imageEl=m.$slideEl.find(`.${s.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),m.$imageWrapEl=m.$imageEl.parent(`.${s.containerClass}`)),m.$imageEl&&0!==m.$imageEl.length&&m.$imageWrapEl&&0!==m.$imageWrapEl.length&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,p=1,m.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),m.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),m.$slideEl.removeClass(`${s.zoomedSlideClass}`),m.$slideEl=void 0)}function S(e){const s=t.zoom;s.scale&&1!==s.scale?$():T(e)}function M(){const e=t.support;return{passiveListener:!("touchstart"!==t.touchEvents.start||!e.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},activeListenerWithCapture:!e.passiveListener||{passive:!1,capture:!0}}}function P(){return`.${t.params.slideClass}`}function k(e){const{passiveListener:s}=M(),a=P();t.$wrapperEl[e]("gesturestart",a,b,s),t.$wrapperEl[e]("gesturechange",a,x,s),t.$wrapperEl[e]("gestureend",a,y,s)}function z(){l||(l=!0,k("on"))}function L(){l&&(l=!1,k("off"))}function O(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const s=t.support,{passiveListener:a,activeListenerWithCapture:i}=M(),r=P();s.gestures?(t.$wrapperEl.on(t.touchEvents.start,z,a),t.$wrapperEl.on(t.touchEvents.end,L,a)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,r,b,a),t.$wrapperEl.on(t.touchEvents.move,r,x,i),t.$wrapperEl.on(t.touchEvents.end,r,y,a),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,r,y,a)),t.$wrapperEl.on(t.touchEvents.move,`.${t.params.zoom.containerClass}`,E,i)}function I(){const e=t.zoom;if(!e.enabled)return;const s=t.support;e.enabled=!1;const{passiveListener:a,activeListenerWithCapture:i}=M(),r=P();s.gestures?(t.$wrapperEl.off(t.touchEvents.start,z,a),t.$wrapperEl.off(t.touchEvents.end,L,a)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,r,b,a),t.$wrapperEl.off(t.touchEvents.move,r,x,i),t.$wrapperEl.off(t.touchEvents.end,r,y,a),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,r,y,a)),t.$wrapperEl.off(t.touchEvents.move,`.${t.params.zoom.containerClass}`,E,i)}Object.defineProperty(t.zoom,"scale",{get:()=>v,set(e){if(v!==e){const t=m.$imageEl?m.$imageEl[0]:void 0,s=m.$slideEl?m.$slideEl[0]:void 0;i("zoomChange",e,t,s)}v=e}}),a("init",(()=>{t.params.zoom.enabled&&O()})),a("destroy",(()=>{I()})),a("touchStart",((e,s)=>{t.zoom.enabled&&function(e){const s=t.device;m.$imageEl&&0!==m.$imageEl.length&&(f.isTouched||(s.android&&e.cancelable&&e.preventDefault(),f.isTouched=!0,f.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,f.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))}(s)})),a("touchEnd",((e,s)=>{t.zoom.enabled&&function(){const e=t.zoom;if(!m.$imageEl||0===m.$imageEl.length)return;if(!f.isTouched||!f.isMoved)return f.isTouched=!1,void(f.isMoved=!1);f.isTouched=!1,f.isMoved=!1;let s=300,a=300;const i=g.x*s,r=f.currentX+i,n=g.y*a,l=f.currentY+n;0!==g.x&&(s=Math.abs((r-f.currentX)/g.x)),0!==g.y&&(a=Math.abs((l-f.currentY)/g.y));const o=Math.max(s,a);f.currentX=r,f.currentY=l;const d=f.width*e.scale,c=f.height*e.scale;f.minX=Math.min(m.slideWidth/2-d/2,0),f.maxX=-f.minX,f.minY=Math.min(m.slideHeight/2-c/2,0),f.maxY=-f.minY,f.currentX=Math.max(Math.min(f.currentX,f.maxX),f.minX),f.currentY=Math.max(Math.min(f.currentY,f.maxY),f.minY),m.$imageWrapEl.transition(o).transform(`translate3d(${f.currentX}px, ${f.currentY}px,0)`)}()})),a("doubleTap",((e,s)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&S(s)})),a("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&C()})),a("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&C()})),Object.assign(t.zoom,{enable:O,disable:I,in:T,out:$,toggle:S})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;s({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),t.lazy={};let n=!1,l=!1;function o(e,s){void 0===s&&(s=!0);const a=t.params.lazy;if(void 0===e)return;if(0===t.slides.length)return;const r=t.virtual&&t.params.virtual.enabled?t.$wrapperEl.children(`.${t.params.slideClass}[data-swiper-slide-index="${e}"]`):t.slides.eq(e),n=r.find(`.${a.elementClass}:not(.${a.loadedClass}):not(.${a.loadingClass})`);!r.hasClass(a.elementClass)||r.hasClass(a.loadedClass)||r.hasClass(a.loadingClass)||n.push(r[0]),0!==n.length&&n.each((e=>{const n=d(e);n.addClass(a.loadingClass);const l=n.attr("data-background"),c=n.attr("data-src"),p=n.attr("data-srcset"),u=n.attr("data-sizes"),h=n.parent("picture");t.loadImage(n[0],c||l,p,u,!1,(()=>{if(null!=t&&t&&(!t||t.params)&&!t.destroyed){if(l?(n.css("background-image",`url("${l}")`),n.removeAttr("data-background")):(p&&(n.attr("srcset",p),n.removeAttr("data-srcset")),u&&(n.attr("sizes",u),n.removeAttr("data-sizes")),h.length&&h.children("source").each((e=>{const t=d(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))})),c&&(n.attr("src",c),n.removeAttr("data-src"))),n.addClass(a.loadedClass).removeClass(a.loadingClass),r.find(`.${a.preloaderClass}`).remove(),t.params.loop&&s){const e=r.attr("data-swiper-slide-index");if(r.hasClass(t.params.slideDuplicateClass)){o(t.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${t.params.slideDuplicateClass})`).index(),!1)}else{o(t.$wrapperEl.children(`.${t.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`).index(),!1)}}i("lazyImageReady",r[0],n[0]),t.params.autoHeight&&t.updateAutoHeight()}})),i("lazyImageLoad",r[0],n[0])}))}function c(){const{$wrapperEl:e,params:s,slides:a,activeIndex:i}=t,r=t.virtual&&s.virtual.enabled,n=s.lazy;let c=s.slidesPerView;function p(t){if(r){if(e.children(`.${s.slideClass}[data-swiper-slide-index="${t}"]`).length)return!0}else if(a[t])return!0;return!1}function u(e){return r?d(e).attr("data-swiper-slide-index"):d(e).index()}if("auto"===c&&(c=0),l||(l=!0),t.params.watchSlidesProgress)e.children(`.${s.slideVisibleClass}`).each((e=>{o(r?d(e).attr("data-swiper-slide-index"):d(e).index())}));else if(c>1)for(let e=i;e<i+c;e+=1)p(e)&&o(e);else o(i);if(n.loadPrevNext)if(c>1||n.loadPrevNextAmount&&n.loadPrevNextAmount>1){const e=n.loadPrevNextAmount,t=Math.ceil(c),s=Math.min(i+t+Math.max(e,t),a.length),r=Math.max(i-Math.max(t,e),0);for(let e=i+t;e<s;e+=1)p(e)&&o(e);for(let e=r;e<i;e+=1)p(e)&&o(e)}else{const t=e.children(`.${s.slideNextClass}`);t.length>0&&o(u(t));const a=e.children(`.${s.slidePrevClass}`);a.length>0&&o(u(a))}}function p(){const e=r();if(!t||t.destroyed)return;const s=t.params.lazy.scrollingElement?d(t.params.lazy.scrollingElement):d(e),a=s[0]===e,i=a?e.innerWidth:s[0].offsetWidth,l=a?e.innerHeight:s[0].offsetHeight,o=t.$el.offset(),{rtlTranslate:u}=t;let h=!1;u&&(o.left-=t.$el[0].scrollLeft);const m=[[o.left,o.top],[o.left+t.width,o.top],[o.left,o.top+t.height],[o.left+t.width,o.top+t.height]];for(let e=0;e<m.length;e+=1){const t=m[e];if(t[0]>=0&&t[0]<=i&&t[1]>=0&&t[1]<=l){if(0===t[0]&&0===t[1])continue;h=!0}}const f=!("touchstart"!==t.touchEvents.start||!t.support.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};h?(c(),s.off("scroll",p,f)):n||(n=!0,s.on("scroll",p,f))}a("beforeInit",(()=>{t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)})),a("init",(()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?p():c())})),a("scroll",(()=>{t.params.freeMode&&t.params.freeMode.enabled&&!t.params.freeMode.sticky&&c()})),a("scrollbarDragMove resize _freeModeNoMomentumRelease",(()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?p():c())})),a("transitionStart",(()=>{t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!l)&&(t.params.lazy.checkInView?p():c())})),a("transitionEnd",(()=>{t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&(t.params.lazy.checkInView?p():c())})),a("slideChange",(()=>{const{lazy:e,cssMode:s,watchSlidesProgress:a,touchReleaseOnEdges:i,resistanceRatio:r}=t.params;e.enabled&&(s||a&&(i||0===r))&&c()})),a("destroy",(()=>{t.$el&&t.$el.find(`.${t.params.lazy.loadingClass}`).removeClass(t.params.lazy.loadingClass)})),Object.assign(t.lazy,{load:c,loadInSlide:o})},function(e){let{swiper:t,extendParams:s,on:a}=e;function i(e,t){const s=function(){let e,t,s;return(a,i)=>{for(t=-1,e=a.length;e-t>1;)s=e+t>>1,a[s]<=i?t=s:e=s;return e}}();let a,i;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=s(this.x,e),a=i-1,(e-this.x[a])*(this.y[i]-this.y[a])/(this.x[i]-this.x[a])+this.y[a]):0},this}function r(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}s({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},a("beforeInit",(()=>{t.controller.control=t.params.controller.control})),a("update",(()=>{r()})),a("resize",(()=>{r()})),a("observerUpdate",(()=>{r()})),a("setTranslate",((e,s,a)=>{t.controller.control&&t.controller.setTranslate(s,a)})),a("setTransition",((e,s,a)=>{t.controller.control&&t.controller.setTransition(s,a)})),Object.assign(t.controller,{setTranslate:function(e,s){const a=t.controller.control;let r,n;const l=t.constructor;function o(e){const s=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(!function(e){t.controller.spline||(t.controller.spline=t.params.loop?new i(t.slidesGrid,e.slidesGrid):new i(t.snapGrid,e.snapGrid))}(e),n=-t.controller.spline.interpolate(-s)),n&&"container"!==t.params.controller.by||(r=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),n=(s-t.minTranslate())*r+e.minTranslate()),t.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(let e=0;e<a.length;e+=1)a[e]!==s&&a[e]instanceof l&&o(a[e]);else a instanceof l&&s!==a&&o(a)},setTransition:function(e,s){const a=t.constructor,i=t.controller.control;let r;function n(s){s.setTransition(e,t),0!==e&&(s.transitionStart(),s.params.autoHeight&&p((()=>{s.updateAutoHeight()})),s.$wrapperEl.transitionEnd((()=>{i&&(s.params.loop&&"slide"===t.params.controller.by&&s.loopFix(),s.transitionEnd())})))}if(Array.isArray(i))for(r=0;r<i.length;r+=1)i[r]!==s&&i[r]instanceof a&&n(i[r]);else i instanceof a&&s!==i&&n(i)}})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),t.a11y={clicked:!1};let i=null;function r(e){const t=i;0!==t.length&&(t.html(""),t.html(e))}function n(e){e.attr("tabIndex","0")}function l(e){e.attr("tabIndex","-1")}function o(e,t){e.attr("role",t)}function c(e,t){e.attr("aria-roledescription",t)}function p(e,t){e.attr("aria-label",t)}function u(e){e.attr("aria-disabled",!0)}function h(e){e.attr("aria-disabled",!1)}function m(e){if(13!==e.keyCode&&32!==e.keyCode)return;const s=t.params.a11y,a=d(e.target);t.navigation&&t.navigation.$nextEl&&a.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?r(s.lastSlideMessage):r(s.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&a.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?r(s.firstSlideMessage):r(s.prevSlideMessage)),t.pagination&&a.is(U(t.params.pagination.bulletClass))&&a[0].click()}function f(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function g(){return f()&&t.params.pagination.clickable}const v=(e,t,s)=>{n(e),"BUTTON"!==e[0].tagName&&(o(e,"button"),e.on("keydown",m)),p(e,s),function(e,t){e.attr("aria-controls",t)}(e,t)},w=()=>{t.a11y.clicked=!0},b=()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},x=e=>{if(t.a11y.clicked)return;const s=e.target.closest(`.${t.params.slideClass}`);if(!s||!t.slides.includes(s))return;const a=t.slides.indexOf(s)===t.activeIndex,i=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(s);a||i||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,t.slideTo(t.slides.indexOf(s),0))},y=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&c(d(t.slides),e.itemRoleDescriptionMessage),e.slideRole&&o(d(t.slides),e.slideRole);const s=t.params.loop?t.slides.filter((e=>!e.classList.contains(t.params.slideDuplicateClass))).length:t.slides.length;e.slideLabelMessage&&t.slides.each(((a,i)=>{const r=d(a),n=t.params.loop?parseInt(r.attr("data-swiper-slide-index"),10):i;p(r,e.slideLabelMessage.replace(/\{\{index\}\}/,n+1).replace(/\{\{slidesLength\}\}/,s))}))},E=()=>{const e=t.params.a11y;t.$el.append(i);const s=t.$el;e.containerRoleDescriptionMessage&&c(s,e.containerRoleDescriptionMessage),e.containerMessage&&p(s,e.containerMessage);const a=t.$wrapperEl,r=e.id||a.attr("id")||`swiper-wrapper-${n=16,void 0===n&&(n=16),"x".repeat(n).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var n;const l=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var o;let d,u;o=r,a.attr("id",o),function(e,t){e.attr("aria-live",t)}(a,l),y(),t.navigation&&t.navigation.$nextEl&&(d=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(u=t.navigation.$prevEl),d&&d.length&&v(d,r,e.nextSlideMessage),u&&u.length&&v(u,r,e.prevSlideMessage),g()&&t.pagination.$el.on("keydown",U(t.params.pagination.bulletClass),m),t.$el.on("focus",x,!0),t.$el.on("pointerdown",w,!0),t.$el.on("pointerup",b,!0)};a("beforeInit",(()=>{i=d(`<span class="${t.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)})),a("afterInit",(()=>{t.params.a11y.enabled&&E()})),a("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&y()})),a("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{$nextEl:e,$prevEl:s}=t.navigation;s&&s.length>0&&(t.isBeginning?(u(s),l(s)):(h(s),n(s))),e&&e.length>0&&(t.isEnd?(u(e),l(e)):(h(e),n(e)))}()})),a("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;f()&&t.pagination.bullets.each((s=>{const a=d(s);t.params.pagination.clickable&&(n(a),t.params.pagination.renderBullet||(o(a,"button"),p(a,e.paginationBulletMessage.replace(/\{\{index\}\}/,a.index()+1)))),a.is(`.${t.params.pagination.bulletActiveClass}`)?a.attr("aria-current","true"):a.removeAttr("aria-current")}))}()})),a("destroy",(()=>{t.params.a11y.enabled&&function(){let e,s;i&&i.length>0&&i.remove(),t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(s=t.navigation.$prevEl),e&&e.off("keydown",m),s&&s.off("keydown",m),g()&&t.pagination.$el.off("keydown",U(t.params.pagination.bulletClass),m),t.$el.off("focus",x,!0),t.$el.off("pointerdown",w,!0),t.$el.off("pointerup",b,!0)}()}))},function(e){let{swiper:t,extendParams:s,on:a}=e;s({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let i=!1,n={};const l=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=e=>{const t=r();let s;s=e?new URL(e):t.location;const a=s.pathname.slice(1).split("/").filter((e=>""!==e)),i=a.length;return{key:a[i-2],value:a[i-1]}},d=(e,s)=>{const a=r();if(!i||!t.params.history.enabled)return;let n;n=t.params.url?new URL(t.params.url):a.location;const o=t.slides.eq(s);let d=l(o.attr("data-history"));if(t.params.history.root.length>0){let s=t.params.history.root;"/"===s[s.length-1]&&(s=s.slice(0,s.length-1)),d=`${s}/${e}/${d}`}else n.pathname.includes(e)||(d=`${e}/${d}`);t.params.history.keepQuery&&(d+=n.search);const c=a.history.state;c&&c.value===d||(t.params.history.replaceState?a.history.replaceState({value:d},null,d):a.history.pushState({value:d},null,d))},c=(e,s,a)=>{if(s)for(let i=0,r=t.slides.length;i<r;i+=1){const r=t.slides.eq(i);if(l(r.attr("data-history"))===s&&!r.hasClass(t.params.slideDuplicateClass)){const s=r.index();t.slideTo(s,e,a)}}else t.slideTo(0,e,a)},p=()=>{n=o(t.params.url),c(t.params.speed,n.value,!1)};a("init",(()=>{t.params.history.enabled&&(()=>{const e=r();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);i=!0,n=o(t.params.url),(n.key||n.value)&&(c(0,n.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",p))}})()})),a("destroy",(()=>{t.params.history.enabled&&(()=>{const e=r();t.params.history.replaceState||e.removeEventListener("popstate",p)})()})),a("transitionEnd _freeModeNoMomentumRelease",(()=>{i&&d(t.params.history.key,t.activeIndex)})),a("slideChange",(()=>{i&&t.params.cssMode&&d(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:s,emit:i,on:n}=e,l=!1;const o=a(),c=r();s({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}});const p=()=>{i("hashChange");const e=o.location.hash.replace("#","");if(e!==t.slides.eq(t.activeIndex).attr("data-hash")){const s=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index();if(void 0===s)return;t.slideTo(s)}},u=()=>{if(l&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&c.history&&c.history.replaceState)c.history.replaceState(null,null,`#${t.slides.eq(t.activeIndex).attr("data-hash")}`||""),i("hashSet");else{const e=t.slides.eq(t.activeIndex),s=e.attr("data-hash")||e.attr("data-history");o.location.hash=s||"",i("hashSet")}};n("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;l=!0;const e=o.location.hash.replace("#","");if(e){const s=0;for(let a=0,i=t.slides.length;a<i;a+=1){const i=t.slides.eq(a);if((i.attr("data-hash")||i.attr("data-history"))===e&&!i.hasClass(t.params.slideDuplicateClass)){const e=i.index();t.slideTo(e,s,t.params.runCallbacksOnInit,!0)}}}t.params.hashNavigation.watchState&&d(c).on("hashchange",p)})()})),n("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&d(c).off("hashchange",p)})),n("transitionEnd _freeModeNoMomentumRelease",(()=>{l&&u()})),n("slideChange",(()=>{l&&t.params.cssMode&&u()}))},function(e){let t,{swiper:s,extendParams:i,on:r,emit:n}=e;function l(){if(!s.size)return s.autoplay.running=!1,void(s.autoplay.paused=!1);const e=s.slides.eq(s.activeIndex);let a=s.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(a=e.attr("data-swiper-autoplay")||s.params.autoplay.delay),clearTimeout(t),t=p((()=>{let e;s.params.autoplay.reverseDirection?s.params.loop?(s.loopFix(),e=s.slidePrev(s.params.speed,!0,!0),n("autoplay")):s.isBeginning?s.params.autoplay.stopOnLastSlide?d():(e=s.slideTo(s.slides.length-1,s.params.speed,!0,!0),n("autoplay")):(e=s.slidePrev(s.params.speed,!0,!0),n("autoplay")):s.params.loop?(s.loopFix(),e=s.slideNext(s.params.speed,!0,!0),n("autoplay")):s.isEnd?s.params.autoplay.stopOnLastSlide?d():(e=s.slideTo(0,s.params.speed,!0,!0),n("autoplay")):(e=s.slideNext(s.params.speed,!0,!0),n("autoplay")),(s.params.cssMode&&s.autoplay.running||!1===e)&&l()}),a)}function o(){return void 0===t&&(!s.autoplay.running&&(s.autoplay.running=!0,n("autoplayStart"),l(),!0))}function d(){return!!s.autoplay.running&&(void 0!==t&&(t&&(clearTimeout(t),t=void 0),s.autoplay.running=!1,n("autoplayStop"),!0))}function c(e){s.autoplay.running&&(s.autoplay.paused||(t&&clearTimeout(t),s.autoplay.paused=!0,0!==e&&s.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((e=>{s.$wrapperEl[0].addEventListener(e,h)})):(s.autoplay.paused=!1,l())))}function u(){const e=a();"hidden"===e.visibilityState&&s.autoplay.running&&c(),"visible"===e.visibilityState&&s.autoplay.paused&&(l(),s.autoplay.paused=!1)}function h(e){s&&!s.destroyed&&s.$wrapperEl&&e.target===s.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((e=>{s.$wrapperEl[0].removeEventListener(e,h)})),s.autoplay.paused=!1,s.autoplay.running?l():d())}function m(){s.params.autoplay.disableOnInteraction?d():(n("autoplayPause"),c()),["transitionend","webkitTransitionEnd"].forEach((e=>{s.$wrapperEl[0].removeEventListener(e,h)}))}function f(){s.params.autoplay.disableOnInteraction||(s.autoplay.paused=!1,n("autoplayResume"),l())}s.autoplay={running:!1,paused:!1},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),r("init",(()=>{if(s.params.autoplay.enabled){o();a().addEventListener("visibilitychange",u),s.params.autoplay.pauseOnMouseEnter&&(s.$el.on("mouseenter",m),s.$el.on("mouseleave",f))}})),r("beforeTransitionStart",((e,t,a)=>{s.autoplay.running&&(a||!s.params.autoplay.disableOnInteraction?s.autoplay.pause(t):d())})),r("sliderFirstMove",(()=>{s.autoplay.running&&(s.params.autoplay.disableOnInteraction?d():c())})),r("touchEnd",(()=>{s.params.cssMode&&s.autoplay.paused&&!s.params.autoplay.disableOnInteraction&&l()})),r("destroy",(()=>{s.$el.off("mouseenter",m),s.$el.off("mouseleave",f),s.autoplay.running&&d();a().removeEventListener("visibilitychange",u)})),Object.assign(s.autoplay,{pause:c,run:l,start:o,stop:d})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let i=!1,r=!1;function n(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const s=e.clickedIndex,a=e.clickedSlide;if(a&&d(a).hasClass(t.params.thumbs.slideThumbActiveClass))return;if(null==s)return;let i;if(i=e.params.loop?parseInt(d(e.clickedSlide).attr("data-swiper-slide-index"),10):s,t.params.loop){let e=t.activeIndex;t.slides.eq(e).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,e=t.activeIndex);const s=t.slides.eq(e).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(),a=t.slides.eq(e).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index();i=void 0===s?a:void 0===a?s:a-e<e-s?a:s}t.slideTo(i)}function l(){const{thumbs:e}=t.params;if(i)return!1;i=!0;const s=t.constructor;if(e.swiper instanceof s)t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1});else if(m(e.swiper)){const a=Object.assign({},e.swiper);Object.assign(a,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new s(a),r=!0}return t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",n),!0}function o(e){const s=t.thumbs.swiper;if(!s||s.destroyed)return;const a="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():s.params.slidesPerView;let i=1;const r=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(i=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(i=1),i=Math.floor(i),s.slides.removeClass(r),s.params.loop||s.params.virtual&&s.params.virtual.enabled)for(let e=0;e<i;e+=1)s.$wrapperEl.children(`[data-swiper-slide-index="${t.realIndex+e}"]`).addClass(r);else for(let e=0;e<i;e+=1)s.slides.eq(t.realIndex+e).addClass(r);const n=t.params.thumbs.autoScrollOffset,l=n&&!s.params.loop;if(t.realIndex!==s.realIndex||l){let i,r,o=s.activeIndex;if(s.params.loop){s.slides.eq(o).hasClass(s.params.slideDuplicateClass)&&(s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft,o=s.activeIndex);const e=s.slides.eq(o).prevAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(),a=s.slides.eq(o).nextAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index();i=void 0===e?a:void 0===a?e:a-o==o-e?s.params.slidesPerGroup>1?a:o:a-o<o-e?a:e,r=t.activeIndex>t.previousIndex?"next":"prev"}else i=t.realIndex,r=i>t.previousIndex?"next":"prev";l&&(i+="next"===r?n:-1*n),s.visibleSlidesIndexes&&s.visibleSlidesIndexes.indexOf(i)<0&&(s.params.centeredSlides?i=i>o?i-Math.floor(a/2)+1:i+Math.floor(a/2)-1:i>o&&s.params.slidesPerGroup,s.slideTo(i,e?0:void 0))}}t.thumbs={swiper:null},a("beforeInit",(()=>{const{thumbs:e}=t.params;e&&e.swiper&&(l(),o(!0))})),a("slideChange update resize observerUpdate",(()=>{o()})),a("setTransition",((e,s)=>{const a=t.thumbs.swiper;a&&!a.destroyed&&a.setTransition(s)})),a("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&r&&e.destroy()})),Object.assign(t.thumbs,{init:l,update:o})},function(e){let{swiper:t,extendParams:s,emit:a,once:i}=e;s({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){const{touchEventsData:e,touches:s}=t;0===e.velocities.length&&e.velocities.push({position:s[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:s[t.isHorizontal()?"currentX":"currentY"],time:u()})},onTouchEnd:function(e){let{currentPos:s}=e;const{params:r,$wrapperEl:n,rtlTranslate:l,snapGrid:o,touchEventsData:d}=t,c=u()-d.touchStartTime;if(s<-t.minTranslate())t.slideTo(t.activeIndex);else if(s>-t.maxTranslate())t.slides.length<o.length?t.slideTo(o.length-1):t.slideTo(t.slides.length-1);else{if(r.freeMode.momentum){if(d.velocities.length>1){const e=d.velocities.pop(),s=d.velocities.pop(),a=e.position-s.position,i=e.time-s.time;t.velocity=a/i,t.velocity/=2,Math.abs(t.velocity)<r.freeMode.minimumVelocity&&(t.velocity=0),(i>150||u()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeMode.momentumVelocityRatio,d.velocities.length=0;let e=1e3*r.freeMode.momentumRatio;const s=t.velocity*e;let c=t.translate+s;l&&(c=-c);let p,h=!1;const m=20*Math.abs(t.velocity)*r.freeMode.momentumBounceRatio;let f;if(c<t.maxTranslate())r.freeMode.momentumBounce?(c+t.maxTranslate()<-m&&(c=t.maxTranslate()-m),p=t.maxTranslate(),h=!0,d.allowMomentumBounce=!0):c=t.maxTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(c>t.minTranslate())r.freeMode.momentumBounce?(c-t.minTranslate()>m&&(c=t.minTranslate()+m),p=t.minTranslate(),h=!0,d.allowMomentumBounce=!0):c=t.minTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(r.freeMode.sticky){let e;for(let t=0;t<o.length;t+=1)if(o[t]>-c){e=t;break}c=Math.abs(o[e]-c)<Math.abs(o[e-1]-c)||"next"===t.swipeDirection?o[e]:o[e-1],c=-c}if(f&&i("transitionEnd",(()=>{t.loopFix()})),0!==t.velocity){if(e=l?Math.abs((-c-t.translate)/t.velocity):Math.abs((c-t.translate)/t.velocity),r.freeMode.sticky){const s=Math.abs((l?-c:c)-t.translate),a=t.slidesSizesGrid[t.activeIndex];e=s<a?r.speed:s<2*a?1.5*r.speed:2.5*r.speed}}else if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode.momentumBounce&&h?(t.updateProgress(p),t.setTransition(e),t.setTranslate(c),t.transitionStart(!0,t.swipeDirection),t.animating=!0,n.transitionEnd((()=>{t&&!t.destroyed&&d.allowMomentumBounce&&(a("momentumBounce"),t.setTransition(r.speed),setTimeout((()=>{t.setTranslate(p),n.transitionEnd((()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(a("_freeModeNoMomentumRelease"),t.updateProgress(c),t.setTransition(e),t.setTranslate(c),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,n.transitionEnd((()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(c),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode&&a("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||c>=r.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,s,a,{swiper:i,extendParams:r}=e;r({grid:{rows:1,fill:"column"}}),i.grid={initSlides:e=>{const{slidesPerView:r}=i.params,{rows:n,fill:l}=i.params.grid;s=t/n,a=Math.floor(e/n),t=Math.floor(e/n)===e/n?e:Math.ceil(e/n)*n,"auto"!==r&&"row"===l&&(t=Math.max(t,r*n))},updateSlide:(e,r,n,l)=>{const{slidesPerGroup:o,spaceBetween:d}=i.params,{rows:c,fill:p}=i.params.grid;let u,h,m;if("row"===p&&o>1){const s=Math.floor(e/(o*c)),a=e-c*o*s,i=0===s?o:Math.min(Math.ceil((n-s*c*o)/c),o);m=Math.floor(a/i),h=a-m*i+s*o,u=h+m*t/c,r.css({"-webkit-order":u,order:u})}else"column"===p?(h=Math.floor(e/c),m=e-h*c,(h>a||h===a&&m===c-1)&&(m+=1,m>=c&&(m=0,h+=1))):(m=Math.floor(e/s),h=e-m*s);r.css(l("margin-top"),0!==m?d&&`${d}px`:"")},updateWrapperSize:(e,s,a)=>{const{spaceBetween:r,centeredSlides:n,roundLengths:l}=i.params,{rows:o}=i.params.grid;if(i.virtualSize=(e+r)*t,i.virtualSize=Math.ceil(i.virtualSize/o)-r,i.$wrapperEl.css({[a("width")]:`${i.virtualSize+r}px`}),n){s.splice(0,s.length);const e=[];for(let t=0;t<s.length;t+=1){let a=s[t];l&&(a=Math.floor(a)),s[t]<i.virtualSize+s[0]&&e.push(a)}s.push(...e)}}}},function(e){let{swiper:t}=e;Object.assign(t,{appendSlide:K.bind(t),prependSlide:Z.bind(t),addSlide:Q.bind(t),removeSlide:J.bind(t),removeAllSlides:ee.bind(t)})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({fadeEffect:{crossFade:!1,transformEl:null}}),te({effect:"fade",swiper:t,on:a,setTranslate:()=>{const{slides:e}=t,s=t.params.fadeEffect;for(let a=0;a<e.length;a+=1){const e=t.slides.eq(a);let i=-e[0].swiperSlideOffset;t.params.virtualTranslate||(i-=t.translate);let r=0;t.isHorizontal()||(r=i,i=0);const n=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e[0].progress),0):1+Math.min(Math.max(e[0].progress,-1),0);se(s,e).css({opacity:n}).transform(`translate3d(${i}px, ${r}px, 0px)`)}},setTransition:e=>{const{transformEl:s}=t.params.fadeEffect;(s?t.slides.find(s):t.slides).transition(e),ae({swiper:t,duration:e,transformEl:s,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(e,t,s)=>{let a=s?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),i=s?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===a.length&&(a=d(`<div class="swiper-slide-shadow-${s?"left":"top"}"></div>`),e.append(a)),0===i.length&&(i=d(`<div class="swiper-slide-shadow-${s?"right":"bottom"}"></div>`),e.append(i)),a.length&&(a[0].style.opacity=Math.max(-t,0)),i.length&&(i[0].style.opacity=Math.max(t,0))};te({effect:"cube",swiper:t,on:a,setTranslate:()=>{const{$el:e,$wrapperEl:s,slides:a,width:r,height:n,rtlTranslate:l,size:o,browser:c}=t,p=t.params.cubeEffect,u=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled;let m,f=0;p.shadow&&(u?(m=s.find(".swiper-cube-shadow"),0===m.length&&(m=d('<div class="swiper-cube-shadow"></div>'),s.append(m)),m.css({height:`${r}px`})):(m=e.find(".swiper-cube-shadow"),0===m.length&&(m=d('<div class="swiper-cube-shadow"></div>'),e.append(m))));for(let e=0;e<a.length;e+=1){const t=a.eq(e);let s=e;h&&(s=parseInt(t.attr("data-swiper-slide-index"),10));let r=90*s,n=Math.floor(r/360);l&&(r=-r,n=Math.floor(-r/360));const d=Math.max(Math.min(t[0].progress,1),-1);let c=0,m=0,g=0;s%4==0?(c=4*-n*o,g=0):(s-1)%4==0?(c=0,g=4*-n*o):(s-2)%4==0?(c=o+4*n*o,g=o):(s-3)%4==0&&(c=-o,g=3*o+4*o*n),l&&(c=-c),u||(m=c,c=0);const v=`rotateX(${u?0:-r}deg) rotateY(${u?r:0}deg) translate3d(${c}px, ${m}px, ${g}px)`;d<=1&&d>-1&&(f=90*s+90*d,l&&(f=90*-s-90*d)),t.transform(v),p.slideShadows&&i(t,d,u)}if(s.css({"-webkit-transform-origin":`50% 50% -${o/2}px`,"transform-origin":`50% 50% -${o/2}px`}),p.shadow)if(u)m.transform(`translate3d(0px, ${r/2+p.shadowOffset}px, ${-r/2}px) rotateX(90deg) rotateZ(0deg) scale(${p.shadowScale})`);else{const e=Math.abs(f)-90*Math.floor(Math.abs(f)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),s=p.shadowScale,a=p.shadowScale/t,i=p.shadowOffset;m.transform(`scale3d(${s}, 1, ${a}) translate3d(0px, ${n/2+i}px, ${-n/2/a}px) rotateX(-90deg)`)}const g=c.isSafari||c.isWebView?-o/2:0;s.transform(`translate3d(0px,0,${g}px) rotateX(${t.isHorizontal()?0:f}deg) rotateY(${t.isHorizontal()?-f:0}deg)`),s[0].style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:e=>{const{$el:s,slides:a}=t;a.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&s.find(".swiper-cube-shadow").transition(e)},recreateShadows:()=>{const e=t.isHorizontal();t.slides.each((t=>{const s=Math.max(Math.min(t.progress,1),-1);i(d(t),s,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}});const i=(e,s,a)=>{let i=t.isHorizontal()?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),r=t.isHorizontal()?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===i.length&&(i=ie(a,e,t.isHorizontal()?"left":"top")),0===r.length&&(r=ie(a,e,t.isHorizontal()?"right":"bottom")),i.length&&(i[0].style.opacity=Math.max(-s,0)),r.length&&(r[0].style.opacity=Math.max(s,0))};te({effect:"flip",swiper:t,on:a,setTranslate:()=>{const{slides:e,rtlTranslate:s}=t,a=t.params.flipEffect;for(let r=0;r<e.length;r+=1){const n=e.eq(r);let l=n[0].progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(n[0].progress,1),-1));const o=n[0].swiperSlideOffset;let d=-180*l,c=0,p=t.params.cssMode?-o-t.translate:-o,u=0;t.isHorizontal()?s&&(d=-d):(u=p,p=0,c=-d,d=0),n[0].style.zIndex=-Math.abs(Math.round(l))+e.length,a.slideShadows&&i(n,l,a);const h=`translate3d(${p}px, ${u}px, 0px) rotateX(${c}deg) rotateY(${d}deg)`;se(a,n).transform(h)}},setTransition:e=>{const{transformEl:s}=t.params.flipEffect;(s?t.slides.find(s):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),ae({swiper:t,duration:e,transformEl:s})},recreateShadows:()=>{const e=t.params.flipEffect;t.slides.each((s=>{const a=d(s);let r=a[0].progress;t.params.flipEffect.limitRotation&&(r=Math.max(Math.min(s.progress,1),-1)),i(a,r,e)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}}),te({effect:"coverflow",swiper:t,on:a,setTranslate:()=>{const{width:e,height:s,slides:a,slidesSizesGrid:i}=t,r=t.params.coverflowEffect,n=t.isHorizontal(),l=t.translate,o=n?e/2-l:s/2-l,d=n?r.rotate:-r.rotate,c=r.depth;for(let e=0,t=a.length;e<t;e+=1){const t=a.eq(e),s=i[e],l=(o-t[0].swiperSlideOffset-s/2)/s,p="function"==typeof r.modifier?r.modifier(l):l*r.modifier;let u=n?d*p:0,h=n?0:d*p,m=-c*Math.abs(p),f=r.stretch;"string"==typeof f&&-1!==f.indexOf("%")&&(f=parseFloat(r.stretch)/100*s);let g=n?0:f*p,v=n?f*p:0,w=1-(1-r.scale)*Math.abs(p);Math.abs(v)<.001&&(v=0),Math.abs(g)<.001&&(g=0),Math.abs(m)<.001&&(m=0),Math.abs(u)<.001&&(u=0),Math.abs(h)<.001&&(h=0),Math.abs(w)<.001&&(w=0);const b=`translate3d(${v}px,${g}px,${m}px)  rotateX(${h}deg) rotateY(${u}deg) scale(${w})`;if(se(r,t).transform(b),t[0].style.zIndex=1-Math.abs(Math.round(p)),r.slideShadows){let e=n?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),s=n?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===e.length&&(e=ie(r,t,n?"left":"top")),0===s.length&&(s=ie(r,t,n?"right":"bottom")),e.length&&(e[0].style.opacity=p>0?p:0),s.length&&(s[0].style.opacity=-p>0?-p:0)}}},setTransition:e=>{const{transformEl:s}=t.params.coverflowEffect;(s?t.slides.find(s):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({creativeEffect:{transformEl:null,limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=e=>"string"==typeof e?e:`${e}px`;te({effect:"creative",swiper:t,on:a,setTranslate:()=>{const{slides:e,$wrapperEl:s,slidesSizesGrid:a}=t,r=t.params.creativeEffect,{progressMultiplier:n}=r,l=t.params.centeredSlides;if(l){const e=a[0]/2-t.params.slidesOffsetBefore||0;s.transform(`translateX(calc(50% - ${e}px))`)}for(let s=0;s<e.length;s+=1){const a=e.eq(s),o=a[0].progress,d=Math.min(Math.max(a[0].progress,-r.limitProgress),r.limitProgress);let c=d;l||(c=Math.min(Math.max(a[0].originalProgress,-r.limitProgress),r.limitProgress));const p=a[0].swiperSlideOffset,u=[t.params.cssMode?-p-t.translate:-p,0,0],h=[0,0,0];let m=!1;t.isHorizontal()||(u[1]=u[0],u[0]=0);let f={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};d<0?(f=r.next,m=!0):d>0&&(f=r.prev,m=!0),u.forEach(((e,t)=>{u[t]=`calc(${e}px + (${i(f.translate[t])} * ${Math.abs(d*n)}))`})),h.forEach(((e,t)=>{h[t]=f.rotate[t]*Math.abs(d*n)})),a[0].style.zIndex=-Math.abs(Math.round(o))+e.length;const g=u.join(", "),v=`rotateX(${h[0]}deg) rotateY(${h[1]}deg) rotateZ(${h[2]}deg)`,w=c<0?`scale(${1+(1-f.scale)*c*n})`:`scale(${1-(1-f.scale)*c*n})`,b=c<0?1+(1-f.opacity)*c*n:1-(1-f.opacity)*c*n,x=`translate3d(${g}) ${v} ${w}`;if(m&&f.shadow||!m){let e=a.children(".swiper-slide-shadow");if(0===e.length&&f.shadow&&(e=ie(r,a)),e.length){const t=r.shadowPerProgress?d*(1/r.limitProgress):d;e[0].style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const y=se(r,a);y.transform(x).css({opacity:b}),f.origin&&y.css("transform-origin",f.origin)}},setTransition:e=>{const{transformEl:s}=t.params.creativeEffect;(s?t.slides.find(s):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),ae({swiper:t,duration:e,transformEl:s,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cardsEffect:{slideShadows:!0,transformEl:null,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),te({effect:"cards",swiper:t,on:a,setTranslate:()=>{const{slides:e,activeIndex:s}=t,a=t.params.cardsEffect,{startTranslate:i,isTouched:r}=t.touchEventsData,n=t.translate;for(let l=0;l<e.length;l+=1){const o=e.eq(l),d=o[0].progress,c=Math.min(Math.max(d,-4),4);let p=o[0].swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&t.$wrapperEl.transform(`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(p-=e[0].swiperSlideOffset);let u=t.params.cssMode?-p-t.translate:-p,h=0;const m=-100*Math.abs(c);let f=1,g=-a.perSlideRotate*c,v=a.perSlideOffset-.75*Math.abs(c);const w=t.virtual&&t.params.virtual.enabled?t.virtual.from+l:l,b=(w===s||w===s-1)&&c>0&&c<1&&(r||t.params.cssMode)&&n<i,x=(w===s||w===s+1)&&c<0&&c>-1&&(r||t.params.cssMode)&&n>i;if(b||x){const e=(1-Math.abs((Math.abs(c)-.5)/.5))**.5;g+=-28*c*e,f+=-.5*e,v+=96*e,h=-25*e*Math.abs(c)+"%"}if(u=c<0?`calc(${u}px + (${v*Math.abs(c)}%))`:c>0?`calc(${u}px + (-${v*Math.abs(c)}%))`:`${u}px`,!t.isHorizontal()){const e=h;h=u,u=e}const y=c<0?""+(1+(1-f)*c):""+(1-(1-f)*c),E=`\n        translate3d(${u}, ${h}, ${m}px)\n        rotateZ(${a.rotate?g:0}deg)\n        scale(${y})\n      `;if(a.slideShadows){let e=o.find(".swiper-slide-shadow");0===e.length&&(e=ie(a,o)),e.length&&(e[0].style.opacity=Math.min(Math.max((Math.abs(c)-.5)/.5,0),1))}o[0].style.zIndex=-Math.abs(Math.round(d))+e.length;se(a,o).transform(E)}},setTransition:e=>{const{transformEl:s}=t.params.cardsEffect;(s?t.slides.find(s):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),ae({swiper:t,duration:e,transformEl:s})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];return V.use(re),V}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("uikit",e):(t="undefined"!=typeof globalThis?globalThis:t||self).bdtUIkit=e()}(this,(function(){"use strict";const{hasOwnProperty:t,toString:e}=Object.prototype;function i(e,i){return t.call(e,i)}const n=/\B([A-Z])/g,s=Z((t=>t.replace(n,"-$1").toLowerCase())),o=/-(\w)/g,r=Z((t=>(t.charAt(0).toLowerCase()+t.slice(1)).replace(o,((t,e)=>e.toUpperCase())))),a=Z((t=>t.charAt(0).toUpperCase()+t.slice(1)));function l(t,e){var i;return null==(i=null==t?void 0:t.startsWith)?void 0:i.call(t,e)}function h(t,e){var i;return null==(i=null==t?void 0:t.endsWith)?void 0:i.call(t,e)}function c(t,e){var i;return null==(i=null==t?void 0:t.includes)?void 0:i.call(t,e)}function d(t,e){var i;return null==(i=null==t?void 0:t.findIndex)?void 0:i.call(t,e)}const{isArray:u,from:f}=Array,{assign:p}=Object;function g(t){return"function"==typeof t}function m(t){return null!==t&&"object"==typeof t}function v(t){return"[object Object]"===e.call(t)}function b(t){return m(t)&&t===t.window}function w(t){return 9===y(t)}function $(t){return y(t)>=1}function x(t){return 1===y(t)}function y(t){return!b(t)&&m(t)&&t.nodeType}function S(t){return"boolean"==typeof t}function I(t){return"string"==typeof t}function k(t){return"number"==typeof t}function C(t){return k(t)||I(t)&&!isNaN(t-parseFloat(t))}function T(t){return!(u(t)?t.length:m(t)&&Object.keys(t).length)}function E(t){return void 0===t}function A(t){return S(t)?t:"true"===t||"1"===t||""===t||"false"!==t&&"0"!==t&&t}function D(t){const e=Number(t);return!isNaN(e)&&e}function _(t){return parseFloat(t)||0}function M(t){return t&&P(t)[0]}function P(t){return $(t)?[t]:Array.from(t||[]).filter($)}function O(t){if(b(t))return t;const e=w(t=M(t))?t:null==t?void 0:t.ownerDocument;return(null==e?void 0:e.defaultView)||window}function B(t,e){return t===e||m(t)&&m(e)&&Object.keys(t).length===Object.keys(e).length&&H(t,((t,i)=>t===e[i]))}function N(t,e,i){return t.replace(new RegExp(`${e}|${i}`,"g"),(t=>t===e?i:e))}function z(t){return t[t.length-1]}function H(t,e){for(const i in t)if(!1===e(t[i],i))return!1;return!0}function F(t,e){return t.slice().sort((({[e]:t=0},{[e]:i=0})=>t>i?1:i>t?-1:0))}function j(t,e){return t.reduce(((t,i)=>t+_(g(e)?e(i):i[e])),0)}function L(t,e){const i=new Set;return t.filter((({[e]:t})=>!i.has(t)&&i.add(t)))}function W(t,e){return e.reduce(((e,i)=>({...e,[i]:t[i]})),{})}function q(t,e=0,i=1){return Math.min(Math.max(D(t)||0,e),i)}function V(){}function R(...t){return[["bottom","top"],["right","left"]].every((([e,i])=>Math.min(...t.map((({[e]:t})=>t)))-Math.max(...t.map((({[i]:t})=>t)))>0))}function U(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function Y(t,e,i){const n="width"===e?"height":"width";return{[n]:t[e]?Math.round(i*t[n]/t[e]):t[n],[e]:i}}function X(t,e){t={...t};for(const i in t)t=t[i]>e[i]?Y(t,i,e[i]):t;return t}const J={ratio:Y,contain:X,cover:function(t,e){t=X(t,e);for(const i in t)t=t[i]<e[i]?Y(t,i,e[i]):t;return t}};function G(t,e,i=0,n=!1){e=P(e);const{length:s}=e;return s?(t=C(t)?D(t):"next"===t?i+1:"previous"===t?i-1:"last"===t?s-1:e.indexOf(M(t)),n?q(t,0,s-1):(t%=s)<0?t+s:t):-1}function Z(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function K(t,...e){for(const i of P(t)){const t=nt(e).filter((t=>!et(i,t)));t.length&&i.classList.add(...t)}}function Q(t,...e){for(const i of P(t)){const t=nt(e).filter((t=>et(i,t)));t.length&&i.classList.remove(...t)}}function tt(t,e,i){i=nt(i),Q(t,e=nt(e).filter((t=>!c(i,t)))),K(t,i)}function et(t,e){return[e]=nt(e),P(t).some((t=>t.classList.contains(e)))}function it(t,e,i){const n=nt(e);E(i)||(i=!!i);for(const e of P(t))for(const t of n)e.classList.toggle(t,i)}function nt(t){return t?u(t)?t.map(nt).flat():String(t).split(" ").filter(Boolean):[]}function st(t,e,i){var n;if(m(e))for(const i in e)st(t,i,e[i]);else{if(E(i))return null==(n=M(t))?void 0:n.getAttribute(e);for(const n of P(t))g(i)&&(i=i.call(n,st(n,e))),null===i?rt(n,e):n.setAttribute(e,i)}}function ot(t,e){return P(t).some((t=>t.hasAttribute(e)))}function rt(t,e){P(t).forEach((t=>t.removeAttribute(e)))}function at(t,e){for(const i of[e,`data-${e}`])if(ot(t,i))return st(t,i)}const lt="undefined"!=typeof window,ht=lt&&"rtl"===document.dir,ct=lt&&"ontouchstart"in window,dt=lt&&window.PointerEvent,ut=dt?"pointerdown":ct?"touchstart":"mousedown",ft=dt?"pointermove":ct?"touchmove":"mousemove",pt=dt?"pointerup":ct?"touchend":"mouseup",gt=dt?"pointerenter":ct?"":"mouseenter",mt=dt?"pointerleave":ct?"":"mouseleave",vt=dt?"pointercancel":"touchcancel",bt={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function wt(t){return P(t).some((t=>bt[t.tagName.toLowerCase()]))}const $t=lt&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function xt(t){return P(t).some((t=>$t.call(t)))}const yt="input,select,textarea,button";function St(t){return P(t).some((t=>Et(t,yt)))}const It=`${yt},a[href],[tabindex]`;function kt(t){return Et(t,It)}function Ct(t){var e;return null==(e=M(t))?void 0:e.parentElement}function Tt(t,e){return P(t).filter((t=>Et(t,e)))}function Et(t,e){return P(t).some((t=>t.matches(e)))}function At(t,e){const i=[];for(;t=Ct(t);)e&&!Et(t,e)||i.push(t);return i}function Dt(t,e){const i=(t=M(t))?f(t.children):[];return e?Tt(i,e):i}function _t(t,e){return e?P(t).indexOf(M(e)):Dt(Ct(t)).indexOf(t)}function Mt(t){return(t=M(t))&&["origin","pathname","search"].every((e=>t[e]===location[e]))}function Pt(t){if(Mt(t)){const{hash:e,ownerDocument:i}=M(t),n=decodeURIComponent(e).slice(1);return i.getElementById(n)||i.getElementsByName(n)[0]}}function Ot(t,e){return Nt(t,Ht(t,e))}function Bt(t,e){return zt(t,Ht(t,e))}function Nt(t,e){return M(Vt(t,M(e),"querySelector"))}function zt(t,e){return P(Vt(t,M(e),"querySelectorAll"))}function Ht(t,e=document){return I(t)&&Lt(t).isContextSelector||w(e)?e:e.ownerDocument}const Ft=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,jt=/(\([^)]*\)|[^,])+/g,Lt=Z((t=>{t=t.replace(Ft,"$1 *");let e=!1;const i=[];for(let n of t.match(jt))n=n.trim(),e||(e=["!","+","~","-",">"].includes(n[0])),i.push(n);return{selector:i.join(","),selectors:i,isContextSelector:e}})),Wt=/(\([^)]*\)|\S)*/,qt=Z((t=>{t=t.slice(1).trim();const[e]=t.match(Wt);return[e,t.slice(e.length+1)]}));function Vt(t,e=document,i){if(!t||!I(t))return t;const n=Lt(t);if(!n.isContextSelector)return Rt(e,i,n.selector);t="";const s=1===n.selectors.length;for(let o of n.selectors){let n,r=e;if("!"===o[0]&&([n,o]=qt(o),r=e.parentElement.closest(n),!o&&s))return r;if(r&&"-"===o[0]&&([n,o]=qt(o),r=r.previousElementSibling,r=Et(r,n)?r:null,!o&&s))return r;if(r){if(s)return"~"===o[0]||"+"===o[0]?(o=`:scope > :nth-child(${_t(r)+1}) ${o}`,r=r.parentElement):">"===o[0]&&(o=`:scope ${o}`),Rt(r,i,o);t+=`${t?",":""}${Ut(r)} ${o}`}}return w(e)||(e=e.ownerDocument),Rt(e,i,t)}function Rt(t,e,i){try{return t[e](i)}catch(t){return null}}function Ut(t){const e=[];for(;t.parentNode;){const i=st(t,"id");if(i){e.unshift(`#${Yt(i)}`);break}{let{tagName:i}=t;"HTML"!==i&&(i+=`:nth-child(${_t(t)+1})`),e.unshift(i),t=t.parentNode}}return e.join(" > ")}function Yt(t){return I(t)?CSS.escape(t):""}function Xt(...t){let[e,i,n,s,o=!1]=Qt(t);s.length>1&&(s=function(t){return e=>u(e.detail)?t(e,...e.detail):t(e)}(s)),(null==o?void 0:o.self)&&(s=function(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}(s)),n&&(s=function(t,e){return i=>{const n=">"===t[0]?zt(t,i.currentTarget).reverse().find((t=>t.contains(i.target))):i.target.closest(t);n&&(i.current=n,e.call(this,i),delete i.current)}}(n,s));for(const t of i)for(const i of e)i.addEventListener(t,s,o);return()=>Jt(e,i,s,o)}function Jt(...t){let[e,i,,n,s=!1]=Qt(t);for(const t of i)for(const i of e)i.removeEventListener(t,n,s)}function Gt(...t){const[e,i,n,s,o=!1,r]=Qt(t),a=Xt(e,i,n,(t=>{const e=!r||r(t);e&&(a(),s(t,e))}),o);return a}function Zt(t,e,i){return ie(t).every((t=>t.dispatchEvent(Kt(e,!0,!0,i))))}function Kt(t,e=!0,i=!1,n){return I(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:i,detail:n})),t}function Qt(t){return t[0]=ie(t[0]),I(t[1])&&(t[1]=t[1].split(" ")),g(t[2])&&t.splice(2,0,!1),t}function te(t){return t&&"addEventListener"in t}function ee(t){return te(t)?t:M(t)}function ie(t){return u(t)?t.map(ee).filter(Boolean):I(t)?zt(t):te(t)?[t]:P(t)}function ne(t){return"touch"===t.pointerType||!!t.touches}function se(t){var e,i;const{clientX:n,clientY:s}=(null==(e=t.touches)?void 0:e[0])||(null==(i=t.changedTouches)?void 0:i[0])||t;return{x:n,y:s}}const oe={"animation-iteration-count":!0,"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,widows:!0,"z-index":!0,zoom:!0};function re(t,e,i,n){const s=P(t);for(const t of s)if(I(e)){if(e=ae(e),E(i))return getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,C(i)&&!oe[e]?`${i}px`:i||k(i)?i:"",n)}else{if(u(e)){const i={};for(const n of e)i[n]=re(t,n);return i}if(m(e))for(const n in e)re(t,n,e[n],i)}return s[0]}const ae=Z((t=>{if(l(t,"--"))return t;t=s(t);const{style:e}=document.documentElement;if(t in e)return t;for(const i of["webkit","moz"]){const n=`-${i}-${t}`;if(n in e)return n}})),le="bdt-transition",he="transitionend",ce="transitioncanceled";const de={start:function(t,e,i=400,n="linear"){return i=Math.round(i),Promise.all(P(t).map((t=>new Promise(((s,o)=>{for(const i in e)re(t,i);const r=setTimeout((()=>Zt(t,he)),i);Gt(t,[he,ce],(({type:e})=>{clearTimeout(r),Q(t,le),re(t,{transitionProperty:"",transitionDuration:"",transitionTimingFunction:""}),e===ce?o():s(t)}),{self:!0}),K(t,le),re(t,{transitionProperty:Object.keys(e).map(ae).join(","),transitionDuration:`${i}ms`,transitionTimingFunction:n,...e})})))))},async stop(t){Zt(t,he),await Promise.resolve()},async cancel(t){Zt(t,ce),await Promise.resolve()},inProgress:t=>et(t,le)},ue="bdt-animation",fe="animationend",pe="animationcanceled";function ge(t,e,i=200,n,s){return Promise.all(P(t).map((t=>new Promise(((o,r)=>{et(t,ue)&&Zt(t,pe);const a=[e,ue,`${ue}-${s?"leave":"enter"}`,n&&`bdt-transform-origin-${n}`,s&&`${ue}-reverse`],l=setTimeout((()=>Zt(t,fe)),i);Gt(t,[fe,pe],(({type:e})=>{clearTimeout(l),e===pe?r():o(t),re(t,"animationDuration",""),Q(t,a)}),{self:!0}),re(t,"animationDuration",`${i}ms`),K(t,a)})))))}const me={in:ge,out:(t,e,i,n)=>ge(t,e,i,n,!0),inProgress:t=>et(t,ue),cancel(t){Zt(t,pe)}};function ve(t,...e){return e.some((e=>{var i;return(null==(i=null==t?void 0:t.tagName)?void 0:i.toLowerCase())===e.toLowerCase()}))}function be(t){return(t=Pe(t)).innerHTML="",t}function we(t,e){return E(e)?Pe(t).innerHTML:xe(be(t),e)}const $e=Ie("prepend"),xe=Ie("append"),ye=Ie("before"),Se=Ie("after");function Ie(t){return function(e,i){var n;const s=P(I(i)?De(i):i);return null==(n=Pe(e))||n[t](...s),_e(s)}}function ke(t){P(t).forEach((t=>t.remove()))}function Ce(t,e){for(e=M(ye(t,e));e.firstElementChild;)e=e.firstElementChild;return xe(e,t),e}function Te(t,e){return P(P(t).map((t=>t.hasChildNodes()?Ce(f(t.childNodes),e):xe(t,e))))}function Ee(t){P(t).map(Ct).filter(((t,e,i)=>i.indexOf(t)===e)).forEach((t=>t.replaceWith(...t.childNodes)))}const Ae=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function De(t){const e=Ae.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),_e(i.content.childNodes)}function _e(t){return t.length>1?t:t[0]}function Me(t,e){if(x(t))for(e(t),t=t.firstElementChild;t;)Me(t,e),t=t.nextElementSibling}function Pe(t,e){return Be(t)?M(De(t)):Nt(t,e)}function Oe(t,e){return Be(t)?P(De(t)):zt(t,e)}function Be(t){return I(t)&&l(t.trim(),"<")}const Ne={width:["left","right"],height:["top","bottom"]};function ze(t){const e=x(t)?M(t).getBoundingClientRect():{height:Le(t),width:We(t),top:0,left:0};return{height:e.height,width:e.width,top:e.top,left:e.left,bottom:e.top+e.height,right:e.left+e.width}}function He(t,e){e&&re(t,{left:0,top:0});const i=ze(t);if(t){const{scrollY:e,scrollX:n}=O(t),s={height:e,width:n};for(const t in Ne)for(const e of Ne[t])i[e]+=s[t]}if(!e)return i;for(const n of["left","top"])re(t,n,e[n]-i[n])}function Fe(t){let{top:e,left:i}=He(t);const{ownerDocument:{body:n,documentElement:s},offsetParent:o}=M(t);let r=o||s;for(;r&&(r===n||r===s)&&"static"===re(r,"position");)r=r.parentNode;if(x(r)){const t=He(r);e-=t.top+_(re(r,"borderTopWidth")),i-=t.left+_(re(r,"borderLeftWidth"))}return{top:e-_(re(t,"marginTop")),left:i-_(re(t,"marginLeft"))}}function je(t){const e=[(t=M(t)).offsetTop,t.offsetLeft];for(;t=t.offsetParent;)if(e[0]+=t.offsetTop+_(re(t,"borderTopWidth")),e[1]+=t.offsetLeft+_(re(t,"borderLeftWidth")),"fixed"===re(t,"position")){const i=O(t);return e[0]+=i.scrollY,e[1]+=i.scrollX,e}return e}const Le=qe("height"),We=qe("width");function qe(t){const e=a(t);return(i,n)=>{if(E(n)){if(b(i))return i[`inner${e}`];if(w(i)){const t=i.documentElement;return Math.max(t[`offset${e}`],t[`scroll${e}`])}return(n="auto"===(n=re(i=M(i),t))?i[`offset${e}`]:_(n)||0)-Ve(i,t)}return re(i,t,n||0===n?+n+Ve(i,t)+"px":"")}}function Ve(t,e,i="border-box"){return re(t,"boxSizing")===i?j(Ne[e].map(a),(e=>_(re(t,`padding${e}`))+_(re(t,`border${e}Width`)))):0}function Re(t){for(const e in Ne)for(const i in Ne[e])if(Ne[e][i]===t)return Ne[e][1-i];return t}function Ue(t,e="width",i=window,n=!1){return I(t)?j(Xe(t),(t=>{const s=Ge(t);return s?function(t,e){return t*_(e)/100}("vh"===s?function(){if(Ze)return Ze;Ke||(Ke=Pe("<div>"),re(Ke,{height:"100vh",position:"fixed"}),Xt(window,"resize",(()=>Ze=null)));return xe(document.body,Ke),Ze=Ke.clientHeight,ke(Ke),Ze}():"vw"===s?We(O(i)):n?i[`offset${a(e)}`]:ze(i)[e],t):t})):_(t)}const Ye=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,Xe=Z((t=>t.toString().replace(/\s/g,"").match(Ye)||[])),Je=/(?:v[hw]|%)$/,Ge=Z((t=>(t.match(Je)||[])[0]));let Ze,Ke;const Qe={read:function(t){return ti.push(t),si(),t},write:function(t){return ei.push(t),si(),t},clear:function(t){ri(ti,t),ri(ei,t)},flush:ni},ti=[],ei=[];let ii=!1;function ni(){oi(ti),oi(ei.splice(0)),ii=!1,(ti.length||ei.length)&&si()}function si(){ii||(ii=!0,queueMicrotask(ni))}function oi(t){let e;for(;e=t.shift();)try{e()}catch(t){console.error(t)}}function ri(t,e){const i=t.indexOf(e);return~i&&t.splice(i,1)}class ai{init(){let t;this.positions=[],this.unbind=Xt(document,"mousemove",(e=>t=se(e))),this.interval=setInterval((()=>{t&&(this.positions.push(t),this.positions.length>5&&this.positions.shift())}),50)}cancel(){var t;null==(t=this.unbind)||t.call(this),clearInterval(this.interval)}movesTo(t){if(!this.positions||this.positions.length<2)return!1;const e=ze(t),{left:i,right:n,top:s,bottom:o}=e,[r]=this.positions,a=z(this.positions),l=[r,a];if(U(a,e))return!1;return[[{x:i,y:s},{x:n,y:o}],[{x:i,y:o},{x:n,y:s}]].some((t=>{const i=function([{x:t,y:e},{x:i,y:n}],[{x:s,y:o},{x:r,y:a}]){const l=(a-o)*(i-t)-(r-s)*(n-e);if(0===l)return!1;const h=((r-s)*(e-o)-(a-o)*(t-s))/l;if(h<0)return!1;return{x:t+h*(i-t),y:e+h*(n-e)}}(l,t);return i&&U(i,e)}))}}function li(t,e,i={},{intersecting:n=!0}={}){const s=new IntersectionObserver(n?(t,i)=>{t.some((t=>t.isIntersecting))&&e(t,i)}:e,i);for(const e of P(t))s.observe(e);return s}const hi=lt&&window.ResizeObserver;function ci(t,e,i={box:"border-box"}){if(hi)return fi(ResizeObserver,t,e,i);const n=[Xt(window,"load resize",e),Xt(document,"loadedmetadata load",e,!0)];return{disconnect:()=>n.map((t=>t()))}}function di(t){return{disconnect:Xt([window,window.visualViewport],"resize",t)}}function ui(t,e,i){return fi(MutationObserver,t,e,i)}function fi(t,e,i,n){const s=new t(i);for(const t of P(e))s.observe(t,n);return s}function pi(t){wi(t)&&yi(t,{func:"playVideo",method:"play"}),bi(t)&&t.play().catch(V)}function gi(t){wi(t)&&yi(t,{func:"pauseVideo",method:"pause"}),bi(t)&&t.pause()}function mi(t){wi(t)&&yi(t,{func:"mute",method:"setVolume",value:0}),bi(t)&&(t.muted=!0)}function vi(t){return bi(t)||wi(t)}function bi(t){return ve(t,"video")}function wi(t){return ve(t,"iframe")&&($i(t)||xi(t))}function $i(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function xi(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function yi(t,e){await function(t){if(t[Ii])return t[Ii];const e=$i(t),i=xi(t),n=++ki;let s;return t[Ii]=new Promise((o=>{e&&Gt(t,"load",(()=>{const e=()=>Si(t,{event:"listening",id:n});s=setInterval(e,100),e()})),Gt(window,"message",o,!1,(({data:t})=>{try{return t=JSON.parse(t),e&&(null==t?void 0:t.id)===n&&"onReady"===t.event||i&&Number(null==t?void 0:t.player_id)===n}catch(t){}})),t.src=`${t.src}${c(t.src,"?")?"&":"?"}${e?"enablejsapi=1":`api=1&player_id=${n}`}`})).then((()=>clearInterval(s)))}(t),Si(t,e)}function Si(t,e){t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}const Ii="_ukPlayer";let ki=0;function Ci(t,{offset:e=0}={}){const i=xt(t)?Ei(t,!1,["hidden"]):[];return i.reduce(((n,s,o)=>{const{scrollTop:r,scrollHeight:a,offsetHeight:l}=s,h=_i(s),c=a-h.height,{height:d,top:u}=i[o-1]?_i(i[o-1]):He(t);let f=Math.ceil(u-h.top-e+r);return e>0&&l<d+e?f+=e:e=0,f>c?(e-=f-c,f=c):f<0&&(e-=f,f=0),()=>function(t,e,n,s){return new Promise((o=>{const r=t.scrollTop,a=(l=Math.abs(e),40*Math.pow(l,.375));var l;const h=Date.now(),c=Bi(t)===t,d=He(n).top+(c?0:r);let u=0,f=15;!function l(){const p=(g=q((Date.now()-h)/a),.5*(1-Math.cos(Math.PI*g)));var g;let m=0;i[0]===t&&r+e<s&&(m=He(n).top+(c?0:t.scrollTop)-d-ze(Mi(n)).height),t.scrollTop=r+(e+m)*p,1!==p||u!==m&&f--?(u=m,requestAnimationFrame(l)):o()}()}))}(s,f-r,t,c).then(n)}),(()=>Promise.resolve()))()}function Ti(t,e=0,i=0){if(!xt(t))return 0;const n=Ai(t,!0),{scrollHeight:s,scrollTop:o}=n,{height:r}=_i(n),a=s-r,l=je(t)[0]-je(n)[0],h=Math.max(0,l-r+e),c=Math.min(a,l+t.offsetHeight-i);return h<c?q((o-h)/(c-h)):1}function Ei(t,e=!1,i=[]){const n=Bi(t);let s=At(t).reverse();s=s.slice(s.indexOf(n)+1);const o=d(s,(t=>"fixed"===re(t,"position")));return~o&&(s=s.slice(o)),[n].concat(s.filter((t=>re(t,"overflow").split(" ").some((t=>c(["auto","scroll",...i],t)))&&(!e||t.scrollHeight>_i(t).height)))).reverse()}function Ai(...t){return Ei(...t)[0]}function Di(t){return Ei(t,!1,["hidden","clip"])}function _i(t){const e=O(t),i=Bi(t),n=t.contains(i);if(n&&e.visualViewport){let{height:t,width:i,scale:n,pageTop:s,pageLeft:o}=e.visualViewport;return t=Math.round(t*n),i=Math.round(i*n),{height:t,width:i,top:s,left:o,bottom:s+t,right:o+i}}let s=He(n?e:t);if("inline"===re(t,"display"))return s;const{body:o,documentElement:r}=e.document,l=n?i===r||i.clientHeight<o.clientHeight?i:o:t;for(let[t,e,i,n]of[["width","x","left","right"],["height","y","top","bottom"]]){const o=s[t]%1;s[i]+=_(re(l,`border-${i}-width`)),s[t]=s[e]=l[`client${a(t)}`]-(o?o<.5?-o:1-o:0),s[n]=s[t]+s[i]}return s}function Mi(t){const{left:e,width:i,top:n}=ze(t);for(const s of n?[0,n]:[0]){let n;for(const o of O(t).document.elementsFromPoint(e+i/2,s))o.contains(t)||et(o,"bdt-togglable-leave")||!(Oi(o,"fixed")&&Pi(At(t).reverse().find((t=>!t.contains(o)&&!Oi(t,"static"))))<Pi(o)||Oi(o,"sticky")&&Ct(o).contains(t))||n&&!(ze(n).height<ze(o).height)||(n=o);if(n)return n}}function Pi(t){return _(re(t,"zIndex"))}function Oi(t,e){return re(t,"position")===e}function Bi(t){return O(t).document.scrollingElement}const Ni=[["width","x","left","right"],["height","y","top","bottom"]];function zi(t,e,i){i={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],placement:[],...i},u(e)||(e=[e,e]),He(t,Hi(t,e,i))}function Hi(t,e,i){const n=Fi(t,e,i),{boundary:s,viewportOffset:o=0,placement:r}=i;let a=n;for(const[l,[h,,c,d]]of Object.entries(Ni)){const u=Wi(t,e[l],o,s,l);if(Ui(n,u,l))continue;let f=0;if("flip"===r[l]){const s=i.attach.target[l];if(s===d&&n[d]<=u[d]||s===c&&n[c]>=u[c])continue;f=Yi(t,e,i,l)[c]-n[c];const r=qi(t,e[l],o,l);if(!Ui(ji(n,f,l),r,l)){if(Ui(n,r,l))continue;if(i.recursion)return!1;const s=Xi(t,e,i);if(s&&Ui(s,r,1-l))return s;continue}}else if("shift"===r[l]){const t=He(e[l]),{offset:s}=i;f=q(q(n[c],u[c],u[d]-n[h]),t[c]-n[h]+s[l],t[d]-s[l])-n[c]}a=ji(a,f,l)}return a}function Fi(t,e,i){let{attach:n,offset:s}={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],...i},o=He(t);for(const[t,[i,,r,a]]of Object.entries(Ni)){const l=n.target[t]===n.element[t]?_i(e[t]):He(e[t]);o=ji(o,l[r]-o[r]+Li(n.target[t],a,l[i])-Li(n.element[t],a,o[i])+ +s[t],t)}return o}function ji(t,e,i){const[,n,s,o]=Ni[i],r={...t};return r[s]=t[n]=t[s]+e,r[o]+=e,r}function Li(t,e,i){return"center"===t?i/2:t===e?i:0}function Wi(t,e,i,n,s){let o=Ri(...Vi(t,e).map(_i));return i&&(o[Ni[s][2]]+=i,o[Ni[s][3]]-=i),n&&(o=Ri(o,He(u(n)?n[s]:n))),o}function qi(t,e,i,n){const[s,o,r,l]=Ni[n],[h]=Vi(t,e),c=_i(h);return["auto","scroll"].includes(re(h,`overflow-${o}`))&&(c[r]-=h[`scroll${a(r)}`],c[l]=c[r]+h[`scroll${a(s)}`]),c[r]+=i,c[l]-=i,c}function Vi(t,e){return Di(e).filter((e=>e.contains(t)))}function Ri(...t){let e={};for(const i of t)for(const[,,t,n]of Ni)e[t]=Math.max(e[t]||0,i[t]),e[n]=Math.min(...[e[n],i[n]].filter(Boolean));return e}function Ui(t,e,i){const[,,n,s]=Ni[i];return t[n]>=e[n]&&t[s]<=e[s]}function Yi(t,e,{offset:i,attach:n},s){return Fi(t,e,{attach:{element:Ji(n.element,s),target:Ji(n.target,s)},offset:Zi(i,s)})}function Xi(t,e,i){return Hi(t,e,{...i,attach:{element:i.attach.element.map(Gi).reverse(),target:i.attach.target.map(Gi).reverse()},offset:i.offset.reverse(),placement:i.placement.reverse(),recursion:!0})}function Ji(t,e){const i=[...t],n=Ni[e].indexOf(t[e]);return~n&&(i[e]=Ni[e][1-n%2+2]),i}function Gi(t){for(let e=0;e<Ni.length;e++){const i=Ni[e].indexOf(t);if(~i)return Ni[1-e][i%2+2]}}function Zi(t,e){return(t=[...t])[e]*=-1,t}var Ki=Object.freeze({__proto__:null,$:Pe,$$:Oe,Animation:me,Dimensions:J,MouseTracker:ai,Transition:de,addClass:K,after:Se,append:xe,apply:Me,assign:p,attr:st,before:ye,boxModelAdjust:Ve,camelize:r,children:Dt,clamp:q,createEvent:Kt,css:re,data:at,dimensions:ze,each:H,empty:be,endsWith:h,escape:Yt,fastdom:Qe,filter:Tt,find:Nt,findAll:zt,findIndex:d,flipPosition:Re,fragment:De,getCoveringElement:Mi,getEventPos:se,getIndex:G,getTargetedElement:Pt,hasAttr:ot,hasClass:et,hasOwn:i,hasTouch:ct,height:Le,html:we,hyphenate:s,inBrowser:lt,includes:c,index:_t,intersectRect:R,isArray:u,isBoolean:S,isDocument:w,isElement:x,isEmpty:T,isEqual:B,isFocusable:kt,isFunction:g,isInView:function(t,e=0,i=0){return!!xt(t)&&R(...Di(t).map((t=>{const{top:n,left:s,bottom:o,right:r}=_i(t);return{top:n-e,left:s-i,bottom:o+e,right:r+i}})).concat(He(t)))},isInput:St,isNode:$,isNumber:k,isNumeric:C,isObject:m,isPlainObject:v,isRtl:ht,isSameSiteAnchor:Mt,isString:I,isTag:ve,isTouch:ne,isUndefined:E,isVideo:vi,isVisible:xt,isVoidElement:wt,isWindow:b,last:z,matches:Et,memoize:Z,mute:mi,noop:V,observeIntersection:li,observeMutation:ui,observeResize:ci,observeViewportResize:di,off:Jt,offset:He,offsetPosition:je,offsetViewport:_i,on:Xt,once:Gt,overflowParents:Di,parent:Ct,parents:At,pause:gi,pick:W,play:pi,pointInRect:U,pointerCancel:vt,pointerDown:ut,pointerEnter:gt,pointerLeave:mt,pointerMove:ft,pointerUp:pt,position:Fe,positionAt:zi,prepend:$e,propName:ae,query:Ot,queryAll:Bt,ready:function(t){"loading"===document.readyState?Gt(document,"DOMContentLoaded",t):t()},remove:ke,removeAttr:rt,removeClass:Q,replaceClass:tt,scrollIntoView:Ci,scrollParent:Ai,scrollParents:Ei,scrolledOver:Ti,selFocusable:It,selInput:yt,sortBy:F,startsWith:l,sumBy:j,swap:N,toArray:f,toBoolean:A,toEventTargets:ie,toFloat:_,toNode:M,toNodes:P,toNumber:D,toPx:Ue,toWindow:O,toggleClass:it,trigger:Zt,ucfirst:a,uniqueBy:L,unwrap:Ee,width:We,wrapAll:Ce,wrapInner:Te}),Qi={connected(){K(this.$el,this.$options.id)}};const tn=["days","hours","minutes","seconds"];var en={mixins:[Qi],props:{date:String,clsWrapper:String,role:String},data:{date:"",clsWrapper:".bdt-countdown-%unit%",role:"timer"},connected(){st(this.$el,"role",this.role),this.date=_(Date.parse(this.$props.date)),this.end=!1,this.start()},disconnected(){this.stop()},events:{name:"visibilitychange",el:()=>document,handler(){document.hidden?this.stop():this.start()}},methods:{start(){this.stop(),this.update(),this.timer||(Zt(this.$el,"countdownstart"),this.timer=setInterval(this.update,1e3))},stop(){this.timer&&(clearInterval(this.timer),Zt(this.$el,"countdownstop"),this.timer=null)},update(){const t=function(t){const e=Math.max(0,t-Date.now())/1e3;return{total:e,seconds:e%60,minutes:e/60%60,hours:e/60/60%24,days:e/60/60/24}}(this.date);t.total||(this.stop(),this.end||(Zt(this.$el,"countdownend"),this.end=!0));for(const e of tn){const i=Pe(this.clsWrapper.replace("%unit%",e),this.$el);if(!i)continue;let n=Math.trunc(t[e]).toString().padStart(2,"0");i.textContent!==n&&(n=n.split(""),n.length!==i.children.length&&we(i,n.map((()=>"<span></span>")).join("")),n.forEach(((t,e)=>i.children[e].textContent=t)))}}}};const nn={};function sn(t,e,i){return nn.computed(g(t)?t.call(i,i):t,g(e)?e.call(i,i):e)}function on(t,e){return t=t&&!u(t)?[t]:t,e?t?t.concat(e):u(e)?e:[e]:t}function rn(t,e){return E(e)?t:e}function an(t,e,n){const s={};if(g(e)&&(e=e.options),e.extends&&(t=an(t,e.extends,n)),e.mixins)for(const i of e.mixins)t=an(t,i,n);for(const e in t)o(e);for(const n in e)i(t,n)||o(n);function o(i){s[i]=(nn[i]||rn)(t[i],e[i],n)}return s}function ln(t,e=[]){try{return t?l(t,"{")?JSON.parse(t):e.length&&!c(t,":")?{[e[0]]:t}:t.split(";").reduce(((t,e)=>{const[i,n]=e.split(/:(.*)/);return i&&!E(n)&&(t[i.trim()]=n.trim()),t}),{}):{}}catch(t){return{}}}function hn(t,e){return t===Boolean?A(e):t===Number?D(e):"list"===t?function(t){return u(t)?t:I(t)?t.split(cn).map((t=>C(t)?D(t):A(t.trim()))):[t]}(e):t===Object&&I(e)?ln(e):t?t(e):e}nn.events=nn.watch=nn.observe=nn.created=nn.beforeConnect=nn.connected=nn.beforeDisconnect=nn.disconnected=nn.destroy=on,nn.args=function(t,e){return!1!==e&&on(e||t)},nn.update=function(t,e){return F(on(t,g(e)?{read:e}:e),"order")},nn.props=function(t,e){if(u(e)){const t={};for(const i of e)t[i]=String;e=t}return nn.methods(t,e)},nn.computed=nn.methods=function(t,e){return e?t?{...t,...e}:e:t},nn.i18n=nn.data=function(t,e,i){return i?sn(t,e,i):e?t?function(i){return sn(t,e,i)}:e:t};const cn=/,(?![^(]*\))/;function dn(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,Qe.read((()=>{t._connected&&function(t,e){for(const{read:i,write:n,events:s=[]}of t._updates){if(!e.has("update")&&!s.some((t=>e.has(t))))continue;let o;i&&(o=i.call(t,t._data,e),o&&v(o)&&p(t._data,o)),n&&!1!==o&&Qe.write((()=>{t._connected&&n.call(t,t._data,e)}))}}(t,t._queued),t._queued=null}))),t._queued.add(e.type||e))}function un(t){return wn(ci,t,"resize")}function fn(t){return wn(li,t)}function pn(t){return wn(ui,t)}function gn(t={}){return fn({handler:function(e,i){const{targets:n=this.$el,preload:s=5}=t;for(const t of P(g(n)?n(this):n))Oe('[loading="lazy"]',t).slice(0,s-1).forEach((t=>rt(t,"loading")));for(const t of e.filter((({isIntersecting:t})=>t)).map((({target:t})=>t)))i.unobserve(t)},...t})}function mn(t){return wn(((t,e)=>di(e)),t,"resize")}function vn(t){return wn(((t,e)=>{return{disconnect:Xt((i=t,P(i).map((t=>{const{ownerDocument:e}=t,i=Ai(t,!0);return i===e.scrollingElement?e:i}))),"scroll",e,{passive:!0})};var i}),t,"scroll")}function bn(t){return{observe:(t,e)=>({observe:V,unobserve:V,disconnect:Xt(t,ut,e,{passive:!0})}),handler(t){if(!ne(t))return;const e=se(t),i="tagName"in t.target?t.target:Ct(t.target);Gt(document,`${pt} ${vt} scroll`,(t=>{const{x:n,y:s}=se(t);("scroll"!==t.type&&i&&n&&Math.abs(e.x-n)>100||s&&Math.abs(e.y-s)>100)&&setTimeout((()=>{var t,o,r,a;Zt(i,"swipe"),Zt(i,"swipe"+(t=e.x,o=e.y,r=n,a=s,Math.abs(t-r)>=Math.abs(o-a)?t-r>0?"Left":"Right":o-a>0?"Up":"Down"))}))}))},...t}}function wn(t,e,i){return{observe:t,handler(){dn(this,i)},...e}}var $n={props:{margin:String,firstColumn:Boolean},data:{margin:"bdt-margin-small-top",firstColumn:"bdt-first-column"},observe:[pn({options:{childList:!0}}),pn({options:{attributes:!0,attributeFilter:["style"]},target:({$el:t})=>[t,...Dt(t)]}),un({target:({$el:t})=>[t,...Dt(t)]})],update:{read(){return{rows:xn(Dt(this.$el))}},write({rows:t}){for(const e of t)for(const i of e)it(i,this.margin,t[0]!==e),it(i,this.firstColumn,e[ht?e.length-1:0]===i)},events:["resize"]}};function xn(t){const e=[[]],i=t.some(((e,i)=>i&&t[i-1].offsetParent!==e.offsetParent));for(const n of t){if(!xt(n))continue;const t=yn(n,i);for(let s=e.length-1;s>=0;s--){const o=e[s];if(!o[0]){o.push(n);break}const r=yn(o[0],i);if(t.top>=r.bottom-1&&t.top!==r.top){e.push([n]);break}if(t.bottom-1>r.top||t.top===r.top){let e=o.length-1;for(;e>=0;e--){const n=yn(o[e],i);if(t.left>=n.left)break}o.splice(e+1,0,n);break}if(0===s){e.unshift([n]);break}}}return e}function yn(t,e=!1){let{offsetTop:i,offsetLeft:n,offsetHeight:s,offsetWidth:o}=t;return e&&([i,n]=je(t)),{top:i,left:n,bottom:i+s,right:n+o}}async function Sn(t,e,i){await Cn();let n=Dt(e);const s=n.map((t=>In(t,!0))),o={...re(e,["height","padding"]),display:"block"},r=n.concat(e);await Promise.all(r.map(de.cancel)),re(r,"transitionProperty","none"),await t(),n=n.concat(Dt(e).filter((t=>!c(n,t)))),await Promise.resolve(),re(r,"transitionProperty","");const a=st(e,"style"),l=re(e,["height","padding"]),[h,d]=function(t,e,i){const n=e.map(((t,e)=>!(!Ct(t)||!(e in i))&&(i[e]?xt(t)?kn(t):{opacity:0}:{opacity:xt(t)?1:0}))),s=n.map(((n,s)=>{const o=Ct(e[s])===t&&(i[s]||In(e[s]));if(!o)return!1;if(n){if(!("opacity"in n)){const{opacity:t}=o;t%1?n.opacity=1:delete o.opacity}}else delete o.opacity;return o}));return[n,s]}(e,n,s),u=n.map((t=>({style:st(t,"style")})));n.forEach(((t,e)=>d[e]&&re(t,d[e]))),re(e,o),Zt(e,"scroll"),await Cn();const f=n.map(((t,n)=>Ct(t)===e&&de.start(t,h[n],i,"ease"))).concat(de.start(e,l,i,"ease"));try{await Promise.all(f),n.forEach(((t,i)=>{st(t,u[i]),Ct(t)===e&&re(t,"display",0===h[i].opacity?"none":"")})),st(e,"style",a)}catch(t){st(n,"style",""),function(t,e){for(const i in e)re(t,i,"")}(e,o)}}function In(t,e){const i=re(t,"zIndex");return!!xt(t)&&{display:"",opacity:e?re(t,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:"auto"===i?_t(t):i,...kn(t)}}function kn(t){const{height:e,width:i}=ze(t);return{height:e,width:i,transform:"",...Fe(t),...re(t,["marginTop","marginLeft"])}}function Cn(){return new Promise((t=>requestAnimationFrame(t)))}const Tn="bdt-transition-leave",En="bdt-transition-enter";function An(t,e,i,n=0){const s=Dn(e,!0),o={opacity:1},r={opacity:0},a=t=>()=>s===Dn(e)?t():Promise.reject(),l=a((async()=>{K(e,Tn),await Promise.all(Mn(e).map(((t,e)=>new Promise((s=>setTimeout((()=>de.start(t,r,i/2,"ease").then(s)),e*n)))))),Q(e,Tn)})),h=a((async()=>{const a=Le(e);K(e,En),t(),re(Dt(e),{opacity:0}),await Cn();const l=Dt(e),h=Le(e);re(e,"alignContent","flex-start"),Le(e,a);const c=Mn(e);re(l,r);const d=c.map((async(t,e)=>{var s;await(s=e*n,new Promise((t=>setTimeout(t,s)))),await de.start(t,o,i/2,"ease")}));a!==h&&d.push(de.start(e,{height:h},i/2+c.length*n,"ease")),await Promise.all(d).then((()=>{Q(e,En),s===Dn(e)&&(re(e,{height:"",alignContent:""}),re(l,{opacity:""}),delete e.dataset.transition)}))}));return et(e,Tn)?_n(e).then(h):et(e,En)?_n(e).then(l).then(h):l().then(h)}function Dn(t,e){return e&&(t.dataset.transition=1+Dn(t)),D(t.dataset.transition)||0}function _n(t){return Promise.all(Dt(t).filter(de.inProgress).map((t=>new Promise((e=>Gt(t,"transitionend transitioncanceled",e))))))}function Mn(t){return xn(Dt(t)).flat().filter(xt)}var Pn={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(t,e=this.$el){const i=this.animation;return("fade"===i?An:"delayed-fade"===i?(...t)=>An(...t,40):i?Sn:()=>(t(),Promise.resolve()))(t,e,this.duration).catch(V)}}};const On=9,Bn=27,Nn=32,zn=35,Hn=36,Fn=37,jn=38,Ln=39,Wn=40;var qn={mixins:[Pn],args:"target",props:{target:String,selActive:Boolean},data:{target:"",selActive:!1,attrItem:"bdt-filter-control",cls:"bdt-active",duration:250},computed:{children:({target:t},e)=>Oe(`${t} > *`,e),toggles:({attrItem:t},e)=>Oe(`[${t}],[data-${t}]`,e)},watch:{toggles(t){this.updateState();const e=Oe(this.selActive,this.$el);for(const n of t){!1!==this.selActive&&it(n,this.cls,c(e,n));const t=Pe("a,button",i=n)||i;ve(t,"a")&&st(t,"role","button")}var i},children(t,e){e&&this.updateState()}},events:{name:"click keydown",delegate:({attrItem:t})=>`[${t}],[data-${t}]`,handler(t){"keydown"===t.type&&t.keyCode!==Nn||t.target.closest("a,button")&&(t.preventDefault(),this.apply(t.current))}},methods:{apply(t){const e=this.getState(),i=Rn(t,this.attrItem,this.getState());var n,s;n=e,s=i,["filter","sort"].every((t=>B(n[t],s[t])))||this.setState(i)},getState(){return this.toggles.filter((t=>et(t,this.cls))).reduce(((t,e)=>Rn(e,this.attrItem,t)),{filter:{"":""},sort:[]})},async setState(t,e=!0){t={filter:{"":""},sort:[],...t},Zt(this.$el,"beforeFilter",[this,t]);for(const e of this.toggles)it(e,this.cls,Un(e,this.attrItem,t));await Promise.all(Oe(this.target,this.$el).map((i=>{const n=()=>function(t,e,i){const n=Object.values(t.filter).join("");for(const t of i)re(t,"display",n&&!Et(t,n)?"none":"");const[s,o]=t.sort;if(s){const t=function(t,e,i){return[...t].sort(((t,n)=>at(t,e).localeCompare(at(n,e),void 0,{numeric:!0})*("asc"===i||-1)))}(i,s,o);B(t,i)||xe(e,t)}}(t,i,Dt(i));return e?this.animate(n,i):n()}))),Zt(this.$el,"afterFilter",[this])},updateState(){Qe.write((()=>this.setState(this.getState(),!1)))}}};function Vn(t,e){return ln(at(t,e),["filter"])}function Rn(t,e,i){const{filter:n,group:s,sort:o,order:r="asc"}=Vn(t,e);return(n||E(o))&&(s?n?(delete i.filter[""],i.filter[s]=n):(delete i.filter[s],(T(i.filter)||""in i.filter)&&(i.filter={"":n||""})):i.filter={"":n||""}),E(o)||(i.sort=[o,r]),i}function Un(t,e,{filter:i={"":""},sort:[n,s]}){const{filter:o="",group:r="",sort:a,order:l="asc"}=Vn(t,e);return E(a)?r in i&&o===i[r]||!o&&r&&!(r in i)&&!i[""]:n===a&&s===l}let Yn;function Xn(t){const e=Xt(t,"touchstart",(e=>{if(1!==e.targetTouches.length||Et(e.target,'input[type="range"'))return;let i=se(e).y;const n=Xt(t,"touchmove",(e=>{const n=se(e).y;n!==i&&(i=n,Ei(e.target).some((e=>{if(!t.contains(e))return!1;let{scrollHeight:i,clientHeight:n}=e;return n<i}))||e.preventDefault())}),{passive:!1});Gt(t,"scroll touchend touchcanel",n,{capture:!0})}),{passive:!0});if(Yn)return e;Yn=!0;const{scrollingElement:i}=document;return re(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:We(window)-i.clientWidth||""}),()=>{Yn=!1,e(),re(i,{overflowY:"",touchAction:"",paddingRight:""})}}var Jn={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return!0===t&&this.$container||t&&Pe(t)}}},Gn={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"bdt-togglable-enter",clsLeave:"bdt-togglable-leave"},computed:{hasAnimation:({animation:t})=>!!t[0],hasTransition:({animation:t})=>["slide","reveal"].some((e=>l(t[0],e)))},methods:{async toggleElement(t,e,i){try{return await Promise.all(P(t).map((t=>{const n=S(e)?e:!this.isToggled(t);if(!Zt(t,"before"+(n?"show":"hide"),[this]))return Promise.reject();const s=(g(i)?i:!1!==i&&this.hasAnimation?this.hasTransition?Kn:Qn:Zn)(t,n,this),o=n?this.clsEnter:this.clsLeave;K(t,o),Zt(t,n?"show":"hide",[this]);const r=()=>{Q(t,o),Zt(t,n?"shown":"hidden",[this])};return s?s.then(r,(()=>(Q(t,o),Promise.reject()))):r()}))),!0}catch(t){return!1}},isToggled(t=this.$el){return!!et(t=M(t),this.clsEnter)||!et(t,this.clsLeave)&&(this.cls?et(t,this.cls.split(" ")[0]):xt(t))},_toggle(t,e){if(!t)return;let i;e=Boolean(e),this.cls?(i=c(this.cls," ")||e!==et(t,this.cls),i&&it(t,this.cls,c(this.cls," ")?void 0:e)):(i=e===t.hidden,i&&(t.hidden=!e)),Oe("[autofocus]",t).some((t=>xt(t)?t.focus()||!0:t.blur())),i&&Zt(t,"toggled",[e,this])}}};function Zn(t,e,{_toggle:i}){return me.cancel(t),de.cancel(t),i(t,e)}async function Kn(t,e,{animation:i,duration:n,velocity:s,transition:o,_toggle:r}){var a;const[l="reveal",h="top"]=(null==(a=i[0])?void 0:a.split("-"))||[],d=[["left","right"],["top","bottom"]],u=d[c(d[0],h)?0:1],f=u[1]===h,p=["width","height"][d.indexOf(u)],g=`margin-${u[0]}`,m=`margin-${h}`;let v=ze(t)[p];const b=de.inProgress(t);await de.cancel(t),e&&r(t,!0);const w=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",g,m].map((e=>[e,t.style[e]]))),$=ze(t),x=_(re(t,g)),y=_(re(t,m)),S=$[p]+y;b||e||(v+=y);const[I]=Te(t,"<div>");re(I,{boxSizing:"border-box",height:$.height,width:$.width,...re(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",m])}),re(t,{padding:0,border:0,minWidth:0,minHeight:0,[m]:0,width:$.width,height:$.height,overflow:"hidden",[p]:v});const k=v/S;n=(s*S+n)*(e?1-k:k);const C={[p]:e?S:0};f&&(re(t,g,S-v+x),C[g]=e?x:S+x),!f^"reveal"===l&&(re(I,g,-S+v),de.start(I,{[g]:e?0:-S},n,o));try{await de.start(t,C,n,o)}finally{re(t,w),Ee(I.firstChild),e||r(t,!1)}}function Qn(t,e,i){const{animation:n,duration:s,_toggle:o}=i;return e?(o(t,!0),me.in(t,n[0],s,i.origin)):me.out(t,n[1]||n[0],s,i.origin).then((()=>o(t,!1)))}const ts=[];var es={mixins:[Qi,Jn,Gn],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"bdt-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel:({selPanel:t},e)=>Pe(t,e),transitionElement(){return this.panel},bgClose({bgClose:t}){return t&&this.panel}},connected(){st(this.panel||this.$el,"role",this.role),this.overlay&&st(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){c(ts,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate:({selClose:t})=>`${t},a[href*="#"]`,handler(t){const{current:e,defaultPrevented:i}=t,{hash:n}=e;!i&&n&&Mt(e)&&!this.$el.contains(Pe(n))?this.hide():Et(e,this.selClose)&&(t.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(t){t.defaultPrevented||(t.preventDefault(),this.isToggled()===c(ts,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(c(ts,this))return!1;!this.stack&&ts.length?(Promise.all(ts.map((t=>t.hide()))).then(this.show),t.preventDefault()):ts.push(this)}},{name:"show",self:!0,handler(){this.stack&&re(this.$el,"zIndex",_(re(this.$el,"zIndex"))+ts.length);const t=[this.overlay&&ns(this),this.overlay&&Xn(this.$el),this.bgClose&&ss(this),this.escClose&&os(this)];Gt(this.$el,"hidden",(()=>t.forEach((t=>t&&t()))),{self:!0}),K(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){kt(this.$el)||st(this.$el,"tabindex","-1"),Et(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){c(ts,this)&&ts.splice(ts.indexOf(this),1),re(this.$el,"zIndex",""),ts.some((t=>t.clsPage===this.clsPage))||Q(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&Ct(this.$el)!==this.container?(xe(this.container,this.$el),new Promise((t=>requestAnimationFrame((()=>this.show().then(t)))))):this.toggleElement(this.$el,!0,is)},hide(){return this.toggleElement(this.$el,!1,is)}}};function is(t,e,{transitionElement:i,_toggle:n}){return new Promise(((s,o)=>Gt(t,"show hide",(()=>{var r;null==(r=t._reject)||r.call(t),t._reject=o,n(t,e);const a=Gt(i,"transitionstart",(()=>{Gt(i,"transitionend transitioncancel",s,{self:!0}),clearTimeout(l)}),{self:!0}),l=setTimeout((()=>{a(),s()}),(c=re(i,"transitionDuration"))?h(c,"ms")?_(c):1e3*_(c):0);var c})))).then((()=>delete t._reject))}function ns(t){return Xt(document,"focusin",(e=>{z(ts)!==t||t.$el.contains(e.target)||t.$el.focus()}))}function ss(t){return Xt(document,ut,(({target:e})=>{z(ts)!==t||t.overlay&&!t.$el.contains(e)||t.panel.contains(e)||Gt(document,`${pt} ${vt} scroll`,(({defaultPrevented:i,type:n,target:s})=>{i||n!==pt||e!==s||t.hide()}),!0)}))}function os(t){return Xt(document,"keydown",(e=>{27===e.keyCode&&z(ts)===t&&t.hide()}))}var rs={slide:{show:t=>[{transform:ls(-100*t)},{transform:ls()}],percent:t=>as(t),translate:(t,e)=>[{transform:ls(-100*e*t)},{transform:ls(100*e*(1-t))}]}};function as(t){return Math.abs(new DOMMatrix(re(t,"transform")).m41/t.offsetWidth)}function ls(t=0,e="%"){return`translate3d(${t+=t?e:""}, 0, 0)`}function hs(t){return`scale3d(${t}, ${t}, 1)`}function cs(t,e,i){Zt(t,Kt(e,!1,!1,i))}function ds(){let t;return{promise:new Promise((e=>t=e)),resolve:t}}var us={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,s;let o=0;return(null==(s=(null==(i=this.i18n)?void 0:i[t])||(null==(n=this.$options.i18n)?void 0:n[t]))?void 0:s.replace(/%s/g,(()=>e[o++]||"")))||""}}},fs={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){st(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){st(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval((()=>{this.stack.length||this.draggable&&Et(this.$el,":focus-within")&&!Et(this.$el,":focus")||this.pauseOnHover&&Et(this.$el,":hover")||this.show("next")}),this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const ps={passive:!1,capture:!0},gs={passive:!0,capture:!0},ms="touchmove mousemove",vs="touchend touchcancel mouseup click input scroll",bs=t=>t.preventDefault();var ws={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=t=>{const i=se(t).x*(ht?-1:1);this.prevPos=i===this.pos?this.prevPos:this.pos,this.pos=i,e(t)}}},events:[{name:"touchstart mousedown",passive:!0,delegate:({selList:t})=>`${t} > *`,handler(t){var e;!this.draggable||this.parallax||!ne(t)&&(e=t.target,"none"!==re(e,"userSelect")&&f(e.childNodes).some((t=>3===t.nodeType&&t.textContent.trim())))||t.target.closest(yt)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:ms,el:({list:t})=>t,handler:V,...ps}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,Xt(document,ms,this.move,ps),Xt(document,vs,this.end,gs),re(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(0===e||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||Xt(this.list,"click",bs,ps),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,s=Math.abs(e),o=this.getIndex(n+this.dir),r=$s.call(this,n,o);for(;o!==n&&s>r;)this.drag-=r*this.dir,n=o,s-=r,o=this.getIndex(n+this.dir),r=$s.call(this,n,o);this.percent=s/r;const a=i[n],l=i[o],h=this.index!==o,d=n===o;let u;for(const t of[this.index,this.prevIndex])c([o,n],t)||(Zt(i[t],"itemhidden",[this]),d&&(u=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||u)&&Zt(i[this.index],"itemshown",[this]),h&&(this.prevIndex=n,this.index=o,d||(Zt(a,"beforeitemhide",[this]),Zt(a,"itemhide",[this])),Zt(l,"beforeitemshow",[this]),Zt(l,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!d&&l)},end(){if(Jt(document,ms,this.move,ps),Jt(document,vs,this.end,gs),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(ht?this.dir*(ht?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout((()=>Jt(this.list,"click",bs,ps))),re(this.list,{userSelect:""}),this.drag=this.percent=null}}};function $s(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function xs(t,e,i){t._watches.push({name:i,...v(e)?e:{handler:e}})}const ys={subtree:!0,childList:!0};function Ss(t,e,n){t._hasComputed=!0,Object.defineProperty(t,e,{enumerable:!0,get(){const{_computed:s,$props:o,$el:r}=t;if(!i(s,e)&&(s[e]=(n.get||n).call(t,o,r),n.observe&&t._computedObserver)){const e=n.observe.call(t,o);t._computedObserver.observe(["~","+","-"].includes(e[0])?r.parentElement:r.getRootNode(),ys)}return s[e]},set(i){const{_computed:s}=t;s[e]=n.set?n.set.call(t,i):i,E(s[e])&&delete s[e]}})}function Is(t){t._hasComputed&&(!function(t,e){t._updates.unshift(e)}(t,{read:()=>function(t,e){for(const{name:n,handler:s,immediate:o=!0}of t._watches)(t._initial&&o||i(e,n)&&!B(e[n],t[n]))&&s.call(t,t[n],e[n]);t._initial=!1}(t,ks(t)),events:["resize","computed"]}),t._computedObserver=ui(t.$el,(()=>dn(t,"computed")),ys))}function ks(t){const e={...t._computed};return t._computed={},e}function Cs(t,e,i){let{name:n,el:s,handler:o,capture:r,passive:a,delegate:l,filter:h,self:c}=v(e)?e:{name:i,handler:e};s=g(s)?s.call(t,t):s||t.$el,!s||u(s)&&!s.length||h&&!h.call(t,t)||t._events.push(Xt(s,n,l?I(l)?l:l.call(t,t):null,I(o)?t[o]:o.bind(t),{passive:a,capture:r,self:c}))}function Ts(t,...e){t._observers.push(...e)}function Es(t,e){let{observe:n,target:s=t.$el,handler:o,options:r,filter:a,args:l}=e;if(a&&!a.call(t,t))return;const h=`_observe${t._observers.length}`;g(s)&&!i(t,h)&&Ss(t,h,(()=>{const e=s.call(t,t);return u(e)?P(e):e})),o=I(o)?t[o]:o.bind(t),g(r)&&(r=r.call(t,t));const c=n(i(t,h)?t[h]:s,o,r,l);g(s)&&u(t[h])&&xs(t,{handler:As(c,r),immediate:!1},h),Ts(t,c)}function As(t,e){return(i,n)=>{for(const e of n)c(i,e)||(t.unobserve?t.unobserve(e):t.observe&&t.disconnect());for(const s of i)c(n,s)&&t.unobserve||t.observe(s,e)}}function Ds(t){const e={},{args:i=[],props:n={},el:o,id:a}=t;if(!n)return e;for(const t in n){const i=s(t);let r=at(o,i);E(r)||(r=n[t]===Boolean&&""===r||hn(n[t],r),"target"===i&&l(r,"_")||(e[t]=r))}const h=ln(at(o,a),i);for(const t in h){const i=r(t);E(n[i])||(e[i]=hn(n[i],h[t]))}return e}const _s=Z(((t,e)=>{const i=Object.keys(e),n=i.concat(t).map((t=>[s(t),`data-${s(t)}`])).flat();return{attributes:i,filter:n}}));function Ms(t,e){var i;null==(i=t.$options[e])||i.forEach((e=>e.call(t)))}function Ps(t){t._connected||(!function(t){const{$options:e,$props:n}=t,s=Ds(e);p(n,s);const{computed:o,methods:r}=e;for(let e in n)!(e in s)||o&&i(o,e)||r&&i(r,e)||(t[e]=n[e])}(t),Ms(t,"beforeConnect"),t._connected=!0,function(t){t._events=[];for(const e of t.$options.events||[])if(i(e,"handler"))Cs(t,e);else for(const i in e)Cs(t,e[i],i)}(t),function(t){t._data={},t._updates=[...t.$options.update||[]]}(t),function(t){t._watches=[];for(const e of t.$options.watch||[])for(const[i,n]of Object.entries(e))xs(t,n,i);t._initial=!0}(t),function(t){t._observers=[];for(const e of t.$options.observe||[])Es(t,e)}(t),function(t){const{$options:e,$props:i}=t,{id:n,props:s,el:o}=e;if(!s)return;const{attributes:a,filter:l}=_s(n,s),h=new MutationObserver((s=>{const o=Ds(e);s.some((({attributeName:t})=>{const e=t.replace("data-","");return(e===n?a:[r(e),r(t)]).some((t=>!E(o[t])&&o[t]!==i[t]))}))&&t.$reset()}));h.observe(o,{attributes:!0,attributeFilter:l}),Ts(t,h)}(t),Is(t),Ms(t,"connected"),dn(t))}function Os(t){t._connected&&(Ms(t,"beforeDisconnect"),function(t){t._events.forEach((t=>t())),delete t._events}(t),function(t){t._data=null}(t),function(t){for(const e of t._observers)e.disconnect()}(t),function(t){var e;null==(e=t._computedObserver)||e.disconnect(),delete t._computedObserver,ks(t)}(t),Ms(t,"disconnected"),t._connected=!1)}let Bs=0;function Ns(t,e={}){e.data=function({data:t={}},{args:e=[],props:i={}}){u(t)&&(t=t.slice(0,e.length).reduce(((t,i,n)=>(v(i)?p(t,i):t[e[n]]=i,t)),{}));for(const e in t)E(t[e])?delete t[e]:i[e]&&(t[e]=hn(i[e],t[e]));return t}(e,t.constructor.options),t.$options=an(t.constructor.options,e,t),t.$props={},t._uid=Bs++,function(t){const{data:e={}}=t.$options;for(const i in e)t.$props[i]=t[i]=e[i]}(t),function(t){const{methods:e}=t.$options;if(e)for(const i in e)t[i]=e[i].bind(t)}(t),function(t){const{computed:e}=t.$options;if(t._computed={},e)for(const i in e)Ss(t,i,e[i])}(t),Ms(t,"created"),e.el&&t.$mount(e.el)}const zs=function(t){Ns(this,t)};zs.util=Ki,zs.options={},zs.version="3.21.7";const Hs="bdt-",Fs="__uikit__",js={};function Ls(t,e){var i,n;const o=Hs+s(t);if(!e)return js[o].options||(js[o]=zs.extend(js[o])),js[o];t=r(t),zs[t]=(e,i)=>Ws(t,e,i);const a=null!=(i=e.options)?i:{...e};return a.id=o,a.name=t,null==(n=a.install)||n.call(a,zs,a,t),zs._initialized&&!a.functional&&requestAnimationFrame((()=>Ws(t,`[${o}],[data-${o}]`))),js[o]=a}function Ws(t,e,i,...n){const s=Ls(t);return s.options.functional?new s({data:v(e)?e:[e,i,...n]}):e?Oe(e).map(o)[0]:o();function o(e){const n=Vs(e,t);if(n){if(!i)return n;n.$destroy()}return new s({el:e,data:i})}}function qs(t){return(null==t?void 0:t[Fs])||{}}function Vs(t,e){return qs(t)[e]}function Rs(t,e){t=t?M(t):document.body;for(const i of At(t).reverse())Us(i,e);Me(t,(t=>Us(t,e)))}function Us(t,e){const i=qs(t);for(const t in i)dn(i[t],e)}let Ys=1;function Xs(t,e=null){return(null==e?void 0:e.id)||`${t.$options.id}-${Ys++}`}var Js={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>Pe(t,e),navChildren(){return Dt(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return Oe(this.selNavItem,e)}},watch:{nav(t,e){st(t,"role","tablist"),this.padNavitems(),e&&this.$emit()},list(t){ve(t,"ul")&&st(t,"role","presentation")},navChildren(t){st(t,"role","presentation"),this.padNavitems(),this.updateNav()},navItems(t){for(const e of t){const t=at(e,this.attrItem),i=Pe("a,button",e)||e;let n,s=null;if(C(t)){const e=D(t),o=this.slides[e];o&&(o.id||(o.id=Xs(this,o)),s=o.id),n=this.t("slideX",_(t)+1),st(i,"role","tab")}else this.list&&(this.list.id||(this.list.id=Xs(this,this.list)),s=this.list.id),n=this.t(t);st(i,{"aria-controls":s,"aria-label":st(i,"aria-label")||n})}},slides(t){t.forEach(((t,e)=>st(t,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",e+1,this.length),"aria-roledescription":this.nav?null:"slide"}))),this.padNavitems()}},connected(){st(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach((t=>t&&(t.hidden=!this.maxIndex))),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){!t.target.closest("a,button")||"click"!==t.type&&t.keyCode!==Nn||(t.preventDefault(),this.show(at(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){const{current:e,keyCode:i}=t;if(!C(at(e,this.attrItem)))return;let n=i===Hn?0:i===zn?"last":i===Fn?"previous":i===Ln?"next":-1;~n&&(t.preventDefault(),this.show(n))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=at(e,this.attrItem),n=Pe("a,button",e)||e;if(C(i)){const s=D(i)===t;it(e,this.clsActive,s),it(n,"bdt-disabled",this.parallax),st(n,{"aria-selected":s,tabindex:s&&!this.parallax?null:-1}),s&&n&&Et(Ct(e),":focus-within")&&n.focus()}else it(e,"bdt-invisible",this.finite&&("previous"===i&&0===t||"next"===i&&t>=this.maxIndex))}},padNavitems(){if(!this.nav)return;const t=[];for(let e=0;e<this.length;e++){const i=`${this.attrItem}="${e}"`;t[e]=this.navChildren.findLast((t=>t.matches(`[${i}]`)))||Pe(`<li ${i}><a href></a></li>`)}B(t,this.navChildren)||we(this.nav,t)}}};var Gs={mixins:[fs,ws,Js,us],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"bdt-active",clsActivated:"",clsEnter:"bdt-slide-enter",clsLeave:"bdt-slide-leave",clsSlideActive:"bdt-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){Q(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>Zs(e.offsetWidth/t),list:({selList:t},e)=>Pe(t,e),maxIndex(){return this.length-1},slides(){return Dt(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){K(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){Q(t,this.clsEnter)},itemhide({target:t}){K(t,this.clsLeave)},itemhidden({target:t}){Q(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,s=e?0:n.length,o=()=>{n.splice(s,1),n.length&&this.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&n.length>1)return void(2===n.length&&(null==(i=this._transitioner)||i.forward(Math.min(this.duration,200))));const r=this.getIndex(this.index),a=et(this.slides,this.clsActive)&&this.slides[r],l=this.getIndex(t,this.index),h=this.slides[l];if(a===h)return void o();if(this.dir=function(t,e){return"next"===t?1:"previous"===t||t<e?-1:1}(t,r),this.prevIndex=r,this.index=l,a&&!Zt(a,"beforeitemhide",[this])||!Zt(h,"beforeitemshow",[this,a]))return this.index=this.prevIndex,void o();const c=this._show(a,h,e).then((()=>{a&&Zt(a,"itemhidden",[this]),Zt(h,"itemshown",[this]),n.shift(),this._transitioner=null,n.length&&requestAnimationFrame((()=>n.length&&this.show(n.shift(),!0)))}));return a&&Zt(a,"itemhide",[this]),Zt(h,"itemshow",[this]),c},getIndex(t=this.index,e=this.index){return q(G(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},async _show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return void this._translate(1);const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const n=this._getTransitioner(e!==i&&e,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(k(t)?this.slides[t]:t,k(e)?this.slides[e]:e,i*(ht?-1:1),n)}}};function Zs(t){return.5*t+300}var Ks={mixins:[Gs],props:{animation:String},data:{animation:"slide",clsActivated:"bdt-transition-active",Animations:rs,Transitioner:function(t,e,i,{animation:n,easing:s}){const{percent:o,translate:r,show:a=V}=n,l=a(i),{promise:h,resolve:c}=ds();return{dir:i,show(n,o=0,r){const a=r?"linear":s;return n-=Math.round(n*q(o,-1,1)),this.translate(o),cs(e,"itemin",{percent:o,duration:n,timing:a,dir:i}),cs(t,"itemout",{percent:1-o,duration:n,timing:a,dir:i}),Promise.all([de.start(e,l[1],n,a),de.start(t,l[0],n,a)]).then((()=>{this.reset(),c()}),V),h},cancel:()=>de.cancel([e,t]),reset(){for(const i in l[0])re([e,t],i,"")},async forward(t,e=this.percent()){return await this.cancel(),this.show(t,e,!0)},translate(n){this.reset();const s=r(n,i);re(e,s[1]),re(t,s[0]),cs(e,"itemtranslatein",{percent:n,dir:i}),cs(t,"itemtranslateout",{percent:1-n,dir:i})},percent:()=>o(t||e,e,i),getDistance:()=>null==t?void 0:t.offsetWidth}}},computed:{animation:({animation:t,Animations:e})=>({...e[t]||e.slide,name:t}),transitionOptions(){return{animation:this.animation}}},observe:un(),events:{beforeitemshow({target:t}){K(t,this.clsActive)},itemshown({target:t}){K(t,this.clsActivated)},itemhidden({target:t}){Q(t,this.clsActive,this.clsActivated)}}},Qs={...rs,fade:{show:()=>[{opacity:0},{opacity:1}],percent:t=>1-re(t,"opacity"),translate:t=>[{opacity:1-t},{opacity:t}]},scale:{show:()=>[{opacity:0,transform:hs(.8)},{opacity:1,transform:hs(1)}],percent:t=>1-re(t,"opacity"),translate:t=>[{opacity:1-t,transform:hs(1-.2*t)},{opacity:t,transform:hs(.8+.2*t)}]}},to={mixins:[es,Ks],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:()=>({preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"bdt-open",clsPage:"bdt-lightbox-page",selList:".bdt-lightbox-items",attrItem:"bdt-lightbox-item",selClose:".bdt-close-large",selCaption:".bdt-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:Qs,template:'<div class="bdt-lightbox bdt-overflow-hidden"> <div class="bdt-lightbox-items"></div> <div class="bdt-lightbox-toolbar bdt-position-top bdt-text-right bdt-transition-slide-top bdt-transition-opaque"> <button class="bdt-lightbox-toolbar-icon bdt-close-large" type="button" bdt-close></button> </div> <a class="bdt-lightbox-button bdt-position-center-left bdt-position-medium bdt-transition-fade" href bdt-slidenav-previous bdt-lightbox-item="previous"></a> <a class="bdt-lightbox-button bdt-position-center-right bdt-position-medium bdt-transition-fade" href bdt-slidenav-next bdt-lightbox-item="next"></a> <div class="bdt-lightbox-toolbar bdt-lightbox-caption bdt-position-bottom bdt-text-center bdt-transition-slide-bottom bdt-transition-opaque"></div> </div>'}),created(){const t=Pe(this.template),e=Pe(this.selList,t);this.items.forEach((()=>xe(e,"<div>")));const i=Pe("[bdt-close]",t),n=this.t("close");i&&n&&(i.dataset.i18n=JSON.stringify({label:n})),this.$mount(xe(this.container,t))},events:[{name:`${ft} ${ut} keydown`,handler:"showControls"},{name:"click",self:!0,delegate:({selList:t})=>`${t} > *`,handler(t){t.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler:"showControls"},{name:"hide",self:!0,handler(){this.hideControls(),Q(this.slides,this.clsActive),de.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el:()=>document,handler({keyCode:t}){if(!this.isToggled(this.$el)||!this.draggable)return;let e=-1;t===Fn?e="previous":t===Ln?e="next":t===Hn?e=0:t===zn&&(e="last"),~e&&this.show(e)}},{name:"beforeitemshow",handler(t){this.isToggled()||(this.draggable=!1,t.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=Qs.scale,Q(t.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){const t=Pe(this.selCaption,this.$el);if(t){const e=(this.getItem().caption||"").replace(/<script[^>]*>.*?<\/script>/gi,"").replace(/<img[^>]*>/gi,"").replace(/<iframe[^>]*>.*?<\/iframe>/gi,"").replace(/javascript:/gi,"").replace(/on\w+\s*=/gi,"").replace(/<a[^>]*href\s*=\s*["']?javascript:/gi,'<a href="#"').replace(/<a[^>]*href\s*=\s*["']?data:/gi,'<a href="#"');t.innerHTML=e}for(let t=-this.preload;t<=this.preload;t++)this.loadItem(this.index+t)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(t,e){const{source:i,type:n,alt:s="",poster:o,attrs:r={}}=e;if(this.setItem(e,"<span bdt-spinner></span>"),!i)return;let a;const l={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","bdt-responsive":"","bdt-video":`${this.videoAutoplay}`};if("image"===n||i.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)){const t=eo("img",{src:i,alt:s,...r});Xt(t,"load",(()=>this.setItem(e,t))),Xt(t,"error",(()=>this.setError(e)))}else if("video"===n||i.match(/\.(mp4|webm|ogv)($|\?)/i)){const t=eo("video",{src:i,poster:o,controls:"",playsinline:"","bdt-video":`${this.videoAutoplay}`,...r});Xt(t,"loadedmetadata",(()=>this.setItem(e,t))),Xt(t,"error",(()=>this.setError(e)))}else if("iframe"===n||i.match(/\.(html|php)($|\?)/i))this.setItem(e,eo("iframe",{src:i,allowfullscreen:"",class:"bdt-lightbox-iframe",...r}));else if(a=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(e,eo("iframe",{src:`https://www.youtube${a[1]||""}.com/embed/${a[2]}${a[3]?`?${a[3]}`:""}`,width:1920,height:1080,...l,...r}));else if(a=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:t,width:n}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(e,eo("iframe",{src:`https://player.vimeo.com/video/${a[1]}${a[2]?`?${a[2]}`:""}`,width:n,height:t,...l,...r}))}catch(t){this.setError(e)}}}],methods:{loadItem(t=this.index){const e=this.getItem(t);this.getSlide(e).childElementCount||Zt(this.$el,"itemload",[e])},getItem(t=this.index){return this.items[G(t,this.slides)]},setItem(t,e){Zt(this.$el,"itemloaded",[this,we(this.getSlide(t),e)])},getSlide(t){return this.slides[this.items.indexOf(t)]},setError(t){this.setItem(t,'<span bdt-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),K(this.$el,"bdt-active","bdt-transition-active")},hideControls(){Q(this.$el,"bdt-active","bdt-transition-active")}}};function eo(t,e){const i=De(`<${t}>`);return st(i,e),i}var io={install:function(t,e){t.lightboxPanel||t.component("lightboxPanel",to);p(e.props,t.component("lightboxPanel").options.props)},props:{toggle:String},data:{toggle:"a"},computed:{toggles:({toggle:t},e)=>Oe(t,e)},watch:{toggles(t){this.hide();for(const e of t)ve(e,"a")&&st(e,"role","button")}},disconnected(){this.hide()},events:{name:"click",delegate:({toggle:t})=>`${t}:not(.bdt-disabled)`,handler(t){t.defaultPrevented||(t.preventDefault(),this.show(t.current))}},methods:{show(t){const e=L(this.toggles.map(no),"source");if(x(t)){const{source:i}=no(t);t=d(e,(({source:t})=>i===t))}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:e}),Xt(this.panel.$el,"hidden",(()=>this.panel=null)),this.panel.show(t)},hide(){var t;return null==(t=this.panel)?void 0:t.hide()}}};function no(t){const e={};for(const i of["href","caption","type","poster","alt","attrs"])e["href"===i?"source":i]=at(t,i);return e.attrs=ln(e.attrs),e}var so={mixins:[Jn],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:"",pos:"top-center",clsContainer:"bdt-notification",clsClose:"bdt-notification-close",clsMsg:"bdt-notification-message"},install:function(t){t.notification.closeAll=function(e,i){Me(document.body,(n=>{const s=t.getComponent(n,"notification");!s||e&&e!==s.group||s.close(i)}))}},computed:{marginProp:({pos:t})=>`margin-${t.match(/[a-z]+(?=-)/)[0]}`,startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const t=`${this.clsContainer}-${this.pos}`,e=`data-${this.clsContainer}-container`,i=Pe(`.${t}[${e}]`,this.container)||xe(this.container,`<div class="${this.clsContainer} ${t}" ${e}></div>`);this.$mount(xe(i,`<div class="${this.clsMsg}${this.status?` ${this.clsMsg}-${this.status}`:""}" role="alert"> <a href class="${this.clsClose}" data-bdt-close></a> <div>${this.message}</div> </div>`))},async connected(){const t=_(re(this.$el,this.marginProp));await de.start(re(this.$el,this.startProps),{opacity:1,[this.marginProp]:t}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(t){t.target.closest('a[href="#"],a[href=""]')&&t.preventDefault(),this.close()},[gt](){this.timer&&clearTimeout(this.timer)},[mt](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(t){this.timer&&clearTimeout(this.timer),t||await de.start(this.$el,this.startProps),(t=>{const e=Ct(t);Zt(t,"close",[this]),ke(t),(null==e?void 0:e.hasChildNodes())||ke(e)})(this.$el)}}};var oo={props:{media:Boolean},data:{media:!1},connected(){const t=function(t,e){if(I(t))if(l(t,"@"))t=_(re(e,`--bdt-breakpoint-${t.slice(1)}`));else if(isNaN(t))return t;return t&&C(t)?`(min-width: ${t}px)`:""}(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,Zt(this.$el,Kt("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=Xt(this.mediaObj,"change",(()=>{e(),this.$emit("resize")})),e()}},disconnected(){var t;null==(t=this.offMediaObj)||t.call(this)}};function ro(t){return xt(t)?Math.ceil(Math.max(0,...Oe("[stroke]",t).map((t=>{var e;return(null==(e=t.getTotalLength)?void 0:e.call(t))||0})))):0}const ao={x:co,y:co,rotate:co,scale:co,color:uo,backgroundColor:uo,borderColor:uo,blur:fo,hue:fo,fopacity:fo,grayscale:fo,invert:fo,saturate:fo,sepia:fo,opacity:function(t,e,i){1===i.length&&i.unshift(ko(e,t,""));return i=$o(i),(e,n)=>{e[t]=yo(i,n)}},stroke:function(t,e,i){1===i.length&&i.unshift(0);const n=Io(i),s=ro(e);if(i=$o(i.reverse(),(t=>(t=_(t),"%"===n?t*s/100:t))),!i.some((([t])=>t)))return V;return re(e,"strokeDasharray",s),(t,e)=>{t.strokeDashoffset=yo(i,e)}},bgx:po,bgy:po},{keys:lo}=Object;var ho={mixins:[oo],props:Co(lo(ao),"list"),data:Co(lo(ao),void 0),computed:{props(t,e){const i={};for(const e in t)e in ao&&!E(t[e])&&(i[e]=t[e].slice());const n={};for(const t in i)n[t]=ao[t](t,e,i[t],i);return n}},events:{load(){this.$emit()}},methods:{reset(){for(const t in this.getCss(0))re(this.$el,t,"")},getCss(t){const e={};for(const i in this.props)this.props[i](e,q(t));return e.willChange=Object.keys(e).map(ae).join(","),e}}};function co(t,e,i){let n,s=Io(i)||{x:"px",y:"px",rotate:"deg"}[t]||"";return"x"===t||"y"===t?(t=`translate${a(t)}`,n=t=>_(_(t).toFixed("px"===s?0:6))):"scale"===t&&(s="",n=t=>{var i;return Io([t])?Ue(t,"width",e,!0)/e["offset"+((null==(i=t.endsWith)?void 0:i.call(t,"vh"))?"Height":"Width")]:_(t)}),1===i.length&&i.unshift("scale"===t?1:0),i=$o(i,n),(e,n)=>{e.transform=`${e.transform||""} ${t}(${yo(i,n)}${s})`}}function uo(t,e,i){return 1===i.length&&i.unshift(ko(e,t,"")),i=$o(i,(t=>function(t,e){return ko(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(_)}(e,t))),(e,n)=>{const[s,o,r]=xo(i,n),a=s.map(((t,e)=>(t+=r*(o[e]-t),3===e?_(t):parseInt(t,10)))).join(",");e[t]=`rgba(${a})`}}function fo(t,e,i){1===i.length&&i.unshift(0);const n=Io(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=$o(i),(e,s)=>{const o=yo(i,s);e.filter=`${e.filter||""} ${t}(${o+n})`}}function po(t,e,i,n){1===i.length&&i.unshift(0);const s="bgy"===t?"height":"width";n[t]=$o(i,(t=>Ue(t,s,e)));const o=["bgx","bgy"].filter((t=>t in n));if(2===o.length&&"bgx"===t)return V;if("cover"===ko(e,"backgroundSize",""))return function(t,e,i,n){const s=function(t){const e=re(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(bo[e])return bo[e];const i=new Image;if(e&&(i.src=e,!i.naturalWidth&&!vo[e]))return Gt(i,"error load",(()=>{bo[e]=wo(i),Zt(t,Kt("load",!1))})),vo[e]=!0,wo(i);return bo[e]=wo(i)}(e);if(!s.width)return V;const o={width:e.offsetWidth,height:e.offsetHeight},r=["bgx","bgy"].filter((t=>t in n)),a={};for(const t of r){const e=n[t].map((([t])=>t)),i=Math.min(...e),s=Math.max(...e),r=e.indexOf(i)<e.indexOf(s),l=s-i;a[t]=(r?-l:0)-(r?i:s)+"px",o["bgy"===t?"height":"width"]+=l}const l=J.cover(s,o);for(const t of r){const i="bgy"===t?"height":"width",n=l[i]-o[i];a[t]=`max(${go(e,t)},-${n}px) + ${a[t]}`}const h=mo(r,a,n);return(t,e)=>{h(t,e),t.backgroundSize=`${l.width}px ${l.height}px`,t.backgroundRepeat="no-repeat"}}(0,e,0,n);const r={};for(const t of o)r[t]=go(e,t);return mo(o,r,n)}function go(t,e){return ko(t,`background-position-${e.slice(-1)}`,"")}function mo(t,e,i){return function(n,s){for(const o of t){const t=yo(i[o],s);n[`background-position-${o.slice(-1)}`]=`calc(${e[o]} + ${t}px)`}}}const vo={},bo={};function wo(t){return{width:t.naturalWidth,height:t.naturalHeight}}function $o(t,e=_){const i=[],{length:n}=t;let s=0;for(let o=0;o<n;o++){let[r,a]=I(t[o])?t[o].trim().split(/ (?![^(]*\))/):[t[o]];if(r=e(r),a=a?_(a)/100:null,0===o?null===a?a=0:a&&i.push([r,0]):o===n-1&&(null===a?a=1:1!==a&&(i.push([r,a]),a=1)),i.push([r,a]),null===a)s++;else if(s){const t=i[o-s-1][1],e=(a-t)/(s+1);for(let n=s;n>0;n--)i[o-n][1]=t+e*(s-n+1);s=0}}return i}function xo(t,e){const i=d(t.slice(1),(([,t])=>e<=t))+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function yo(t,e){const[i,n,s]=xo(t,e);return i+Math.abs(i-n)*s*(i<n?1:-1)}const So=/^-?\d+(?:\.\d+)?(\S+)?/;function Io(t,e){var i;for(const e of t){const t=null==(i=e.match)?void 0:i.call(e,So);if(t)return t[1]}return e}function ko(t,e,i){const n=t.style[e],s=re(re(t,e,i),e);return t.style[e]=n,s}function Co(t,e){return t.reduce(((t,i)=>(t[i]=e,t)),{})}function To(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var Eo={mixins:[ho],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target:({target:t},e)=>Ao(t&&Ot(t,e)||e),start({start:t}){return Ue(t,"height",this.target,!0)},end({end:t,viewport:e}){return Ue(t||(e=100*(1-e))&&`${e}vh+${e}%`,"height",this.target,!0)}},observe:[mn(),vn({target:({target:t})=>t}),un({target:({$el:t,target:e})=>[t,e,Ai(e,!0)]})],update:{read({percent:t},e){if(e.has("scroll")||(t=!1),!xt(this.$el))return!1;if(!this.matchMedia)return;const i=t;return{percent:t=To(Ti(this.target,this.start,this.end),this.easing),style:i!==t&&this.getCss(t)}},write({style:t}){this.matchMedia?t&&re(this.$el,t):this.reset()},events:["scroll","resize"]}};function Ao(t){return t?"offsetTop"in t?t:Ao(Ct(t)):document.documentElement}var Do={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[un({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),vn({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&Ot(t,e)||this.list}},update:{read(){if(!this.parallax)return!1;const t=this.parallaxTarget;if(!t)return!1;const e=To(Ti(t,Ue(this.parallaxStart,"height",t,!0),Ue(this.parallaxEnd,"height",t,!0)),this.parallaxEasing);return{parallax:this.getIndexAt(e)}},write({parallax:t}){const[e,i]=t,n=this.getValidIndex(e+Math.ceil(i)),s=this.slides[e],o=this.slides[n],{triggerShow:r,triggerShown:a,triggerHide:l,triggerHidden:h}=function(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:s,triggerShown:o,triggerHide:r,triggerHidden:a};function s(i){et(i,n)&&(r(i),a(i)),et(i,e)||(Zt(i,"beforeitemshow",[t]),Zt(i,"itemshow",[t]))}function o(e){et(e,i)&&Zt(e,"itemshown",[t])}function r(r){et(r,e)||s(r),et(r,i)&&o(r),et(r,n)||(Zt(r,"beforeitemhide",[t]),Zt(r,"itemhide",[t]))}function a(e){et(e,n)&&Zt(e,"itemhidden",[t])}}(this);if(~this.prevIndex)for(const t of new Set([this.index,this.prevIndex]))c([n,e],t)||(l(this.slides[t]),h(this.slides[t]));const d=this.prevIndex!==e||this.index!==n;this.dir=1,this.prevIndex=e,this.index=n,s!==o&&l(s),r(o),d&&a(s),this._translate(s===o?1:i,s,o)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};var _o={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();~this.prevIndex&&this.index===t?this._translate(1):this.show(t)},events:["resize"]}},Mo={observe:gn({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map((t=>this.slides[this.getIndex(this.index+t)]))}}};function Po(t,e,i){const n=No(t,e);return i?n-function(t,e){return ze(e).width/2-ze(t).width/2}(t,e):Math.min(n,Oo(e))}function Oo(t){return Math.max(0,Bo(t)-ze(t).width)}function Bo(t,e){return j(Dt(t).slice(0,e),(t=>ze(t).width))}function No(t,e){return t&&(Fe(t).left+(ht?ze(t).width-ze(e).width:0))*(ht?-1:1)||0}function zo(t,e){e-=1;const i=ze(t).width,n=e+i+2;return Dt(t).filter((s=>{const o=No(s,t),r=o+Math.min(ze(s).width,i);return o>=e&&r<=n}))}var Ho={mixins:[Qi,Gs,_o,Do,Mo],props:{center:Boolean,sets:Boolean,active:String},data:{center:!1,sets:!1,attrItem:"bdt-slider-item",selList:".bdt-slider-items",selNav:".bdt-slider-nav",clsContainer:"bdt-slider-container",active:"all",Transitioner:function(t,e,i,{center:n,easing:s,list:o}){const r=t?Po(t,o,n):Po(e,o,n)+ze(e).width*i,a=e?Po(e,o,n):r+ze(t).width*i*(ht?-1:1),{promise:l,resolve:h}=ds();return{dir:i,show(e,n=0,r){const c=r?"linear":s;return e-=Math.round(e*q(n,-1,1)),re(o,"transitionProperty","none"),this.translate(n),re(o,"transitionProperty",""),n=t?n:q(n,0,1),cs(this.getItemIn(),"itemin",{percent:n,duration:e,timing:c,dir:i}),t&&cs(this.getItemIn(!0),"itemout",{percent:1-n,duration:e,timing:c,dir:i}),de.start(o,{transform:ls(-a*(ht?-1:1),"px")},e,c).then(h,V),l},cancel:()=>de.cancel(o),reset(){re(o,"transform","")},async forward(t,e=this.percent()){return await this.cancel(),this.show(t,e,!0)},translate(n){if(n===this.percent())return;const s=this.getDistance()*i*(ht?-1:1);re(o,"transform",ls(q(s-s*n-a,-Bo(o),ze(o).width)*(ht?-1:1),"px"));const r=this.getActives(),l=this.getItemIn(),h=this.getItemIn(!0);n=t?q(n,-1,1):0;for(const s of Dt(o)){const a=c(r,s),d=s===l,u=s===h;cs(s,"itemtranslate"+(d||!u&&(a||i*(ht?-1:1)==-1^No(s,o)>No(t||e))?"in":"out"),{dir:i,percent:u?1-n:d?n:a?1:0})}},percent:()=>Math.abs((new DOMMatrix(re(o,"transform")).m41*(ht?-1:1)+r)/(a-r)),getDistance:()=>Math.abs(a-r),getItemIn(i=!1){let s=this.getActives(),r=zo(o,Po(e||t,o,n));if(i){const t=s;s=r,r=t}return r[d(r,(t=>!c(s,t)))]},getActives:()=>zo(o,Po(t||e,o,n))}}},computed:{finite({finite:t}){return t||function(t,e){if(!t||t.length<2)return!0;const{width:i}=ze(t);if(!e)return Math.ceil(Bo(t))<Math.trunc(i+function(t){return Math.max(0,...Dt(t).map((t=>ze(t).width)))}(t));const n=Dt(t),s=Math.trunc(i/2);for(const t in n){const e=n[t],i=ze(e).width,o=new Set([e]);let r=0;for(const e of[-1,1]){let a=i/2,l=0;for(;a<s;){const i=n[G(+t+e+l++*e,n)];if(o.has(i))return!0;a+=ze(i).width,o.add(i)}r=Math.max(r,i/2+ze(n[G(+t+e,n)]).width/2-(a-s))}if(Math.trunc(r)>j(n.filter((t=>!o.has(t))),(t=>ze(t).width)))return!0}return!1}(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return z(this.sets);let t=0;const e=Oo(this.list),i=d(this.slides,(i=>{if(t>=e)return!0;t+=ze(i).width}));return~i?i:this.length-1},sets({sets:t}){if(!t||this.parallax)return;let e=0;const i=[],n=ze(this.list).width;for(let t=0;t<this.length;t++){const s=ze(this.slides[t]).width;e+s>n&&(e=0),this.center?e<n/2&&e+s+ze(this.slides[G(t+1,this.slides)]).width/2>n/2&&(i.push(t),e=n/2-s/2):0===e&&i.push(Math.min(t,this.maxIndex)),e+=s}return i.length?i:void 0},transitionOptions(){return{center:this.center,list:this.list}},slides(){return Dt(this.list).filter(xt)}},connected(){it(this.$el,this.clsContainer,!Pe(`.${this.clsContainer}`,this.$el))},observe:un({target:({slides:t,$el:e})=>[e,...t]}),update:{write(){for(const t of this.navItems){const e=D(at(t,this.attrItem));!1!==e&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!c(this.sets,e))}this.reorder(),this.parallax||this._translate(1),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!c(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let t=0;t<e;t++)this.stack.splice(1,0,this.dir>0?"next":"previous");return void t.preventDefault()}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex,n=Bo(this.list)/this.length;this.duration=Zs(n/this.velocity)*(ze(this.slides[i]).width/n),this.reorder()},itemshow(){~this.prevIndex&&K(this._getTransitioner().getItemIn(),this.clsActive),this.updateActiveClasses(this.prevIndex)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite)return void re(this.slides,"order","");const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach(((e,i)=>re(e,"order",this.dir>0&&i<t?1:this.dir<0&&i>=this.index?-1:""))),!this.center||!this.length)return;const e=this.slides[t];let i=ze(this.list).width/2-ze(e).width/2,n=0;for(;i>0;){const e=this.getIndex(--n+t,t),s=this.slides[e];re(s,"order",e>t?-2:-1),i-=ze(s).width}},updateActiveClasses(t=this.index){let e=this._getTransitioner(t).getActives();"all"!==this.active&&(e=[this.slides[this.getValidIndex(t)]]);const n=[this.clsActive,!this.sets||c(this.sets,_(this.index))?this.clsActivated:""];for(const t of this.slides){const s=c(e,t);it(t,n,s),st(t,"aria-hidden",!s);for(const e of Oe(It,t))i(e,"_tabindex")||(e._tabindex=st(e,"tabindex")),st(e,"tabindex",s?e._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(c(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=ze(this.list),e=-t,i=2*t,n=ze(this.slides[this.index]).width,s=this.center?t/2-n/2:0,o=new Set;for(const t of[-1,1]){let r=s+(t>0?n:0),a=0;do{const e=this.slides[this.getIndex(this.index+t+a++*t)];r+=ze(e).width*t,o.add(e)}while(this.length>a&&r>e&&r<i)}return Array.from(o)},getIndexAt(t){let e=-1;let i=t*(this.center?Bo(this.list)-(ze(this.slides[0]).width/2+ze(z(this.slides)).width/2):Bo(this.list,this.maxIndex)),n=0;do{const t=ze(this.slides[++e]).width,s=this.center?t/2+ze(this.slides[e+1]).width/2:t;n=i/s%1,i-=s}while(i>=0&&e<this.maxIndex);return[e,n]}}};var Fo={mixins:[ho],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el:({item:t})=>t,handler({type:t,detail:{percent:e,duration:i,timing:n,dir:s}}){Qe.read((()=>{if(!this.matchMedia)return;const o=this.getCss(Lo(t,s,e)),r=this.getCss(jo(t)?.5:s>0?1:0);Qe.write((()=>{re(this.$el,o),de.start(this.$el,r,i,n).catch(V)}))}))}},{name:"transitioncanceled transitionend",self:!0,el:({item:t})=>t,handler(){de.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el:({item:t})=>t,handler({type:t,detail:{percent:e,dir:i}}){Qe.read((()=>{if(!this.matchMedia)return void this.reset();const n=this.getCss(Lo(t,i,e));Qe.write((()=>re(this.$el,n)))}))}}]};function jo(t){return h(t,"in")}function Lo(t,e,i){return i/=2,jo(t)^e<0?i:1-i}var Wo={...rs,fade:{show:()=>[{opacity:0,zIndex:0},{zIndex:-1}],percent:t=>1-re(t,"opacity"),translate:t=>[{opacity:1-t,zIndex:0},{zIndex:-1}]},scale:{show:()=>[{opacity:0,transform:hs(1.5),zIndex:0},{zIndex:-1}],percent:t=>1-re(t,"opacity"),translate:t=>[{opacity:1-t,transform:hs(1+.5*t),zIndex:0},{zIndex:-1}]},pull:{show:t=>t<0?[{transform:ls(30),zIndex:-1},{transform:ls(),zIndex:0}]:[{transform:ls(-100),zIndex:0},{transform:ls(),zIndex:-1}],percent:(t,e,i)=>i<0?1-as(e):as(t),translate:(t,e)=>e<0?[{transform:ls(30*t),zIndex:-1},{transform:ls(-100*(1-t)),zIndex:0}]:[{transform:ls(100*-t),zIndex:0},{transform:ls(30*(1-t)),zIndex:-1}]},push:{show:t=>t<0?[{transform:ls(100),zIndex:0},{transform:ls(),zIndex:-1}]:[{transform:ls(-30),zIndex:-1},{transform:ls(),zIndex:0}],percent:(t,e,i)=>i>0?1-as(e):as(t),translate:(t,e)=>e<0?[{transform:ls(100*t),zIndex:0},{transform:ls(-30*(1-t)),zIndex:-1}]:[{transform:ls(-30*t),zIndex:-1},{transform:ls(100*(1-t)),zIndex:0}]}},qo={mixins:[Qi,Ks,_o,Do,Mo],props:{ratio:String,minHeight:String,maxHeight:String},data:{ratio:"16:9",minHeight:void 0,maxHeight:void 0,selList:".bdt-slideshow-items",attrItem:"bdt-slideshow-item",selNav:".bdt-slideshow-nav",Animations:Wo},watch:{list(t){re(t,{aspectRatio:this.ratio?this.ratio.replace(":","/"):void 0,minHeight:this.minHeight,maxHeight:this.maxHeight,minWidth:"100%",maxWidth:"100%"})}},methods:{getAdjacentSlides(){return[1,-1].map((t=>this.slides[this.getIndex(this.index+t)]))}}},Vo={mixins:[Qi,Pn],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"bdt-sortable-item",clsPlaceholder:"bdt-sortable-placeholder",clsDrag:"bdt-sortable-drag",clsDragState:"bdt-drag",clsBase:"bdt-sortable",clsNoDrag:"bdt-sortable-nodrag",clsEmpty:"bdt-sortable-empty",clsCustom:"",handle:!1,pos:{}},events:{name:ut,passive:!1,handler:"init"},computed:{target:(t,e)=>(e.tBodies||[e])[0],items(){return Dt(this.target)},isEmpty(){return!this.items.length},handles({handle:t},e){return t?Oe(t,e):this.items}},watch:{isEmpty(t){it(this.target,this.clsEmpty,t)},handles(t,e){re(e,{touchAction:"",userSelect:""}),re(t,{touchAction:"none",userSelect:"none"})}},update:{write(t){if(!this.drag||!Ct(this.placeholder))return;const{pos:{x:e,y:i},origin:{offsetTop:n,offsetLeft:s},placeholder:o}=this;re(this.drag,{top:i-n,left:e-s});const r=this.getSortable(document.elementFromPoint(e,i));if(!r)return;const{items:a}=r;if(a.some(de.inProgress))return;const l=function(t,e){return t[d(t,(t=>U(e,ze(t))))]}(a,{x:e,y:i});if(a.length&&(!l||l===o))return;const h=this.getSortable(o),c=function(t,e,i,n,s,o){if(!Dt(t).length)return;const r=ze(e);if(!o)return function(t,e){const i=1===Dt(t).length;i&&xe(t,e);const n=Dt(t),s=n.some(((t,e)=>{const i=ze(t);return n.slice(e+1).some((t=>{const e=ze(t);return!Uo([i.left,i.right],[e.left,e.right])}))}));i&&ke(e);return s}(t,i)||s<r.top+r.height/2?e:e.nextElementSibling;const a=ze(i),l=Uo([r.top,r.bottom],[a.top,a.bottom]),[h,c,d,u]=l?[n,"width","left","right"]:[s,"height","top","bottom"],f=a[c]<r[c]?r[c]-a[c]:0;if(a[d]<r[d])return!(f&&h<r[d]+f)&&e.nextElementSibling;if(f&&h>r[u]-f)return!1;return e}(r.target,l,o,e,i,r===h&&t.moved!==l);!1!==c&&(c&&o===c||(r!==h?(h.remove(o),t.moved=l):delete t.moved,r.insert(o,c),this.touched.add(r)))},events:["move"]},methods:{init(t){const{target:e,button:i,defaultPrevented:n}=t,[s]=this.items.filter((t=>t.contains(e)));!s||n||i>0||St(e)||e.closest(`.${this.clsNoDrag}`)||this.handle&&!e.closest(this.handle)||(t.preventDefault(),this.pos=se(t),this.touched=new Set([this]),this.placeholder=s,this.origin={target:e,index:_t(s),...this.pos},Xt(document,ft,this.move),Xt(document,pt,this.end),this.threshold||this.start(t))},start(t){this.drag=function(t,e){let i;if(ve(e,"li","tr")){i=Pe("<div>"),xe(i,e.cloneNode(!0).children);for(const t of e.getAttributeNames())st(i,t,e.getAttribute(t))}else i=e.cloneNode(!0);return xe(t,i),re(i,"margin","0","important"),re(i,{boxSizing:"border-box",width:e.offsetWidth,height:e.offsetHeight,padding:re(e,"padding")}),Le(i.firstElementChild,Le(e.firstElementChild)),i}(this.$container,this.placeholder);const{left:e,top:i}=ze(this.placeholder);p(this.origin,{offsetLeft:this.pos.x-e,offsetTop:this.pos.y-i}),K(this.drag,this.clsDrag,this.clsCustom),K(this.placeholder,this.clsPlaceholder),K(this.items,this.clsItem),K(document.documentElement,this.clsDragState),Zt(this.$el,"start",[this,this.placeholder]),function(t){let e=Date.now();Ro=setInterval((()=>{let{x:i,y:n}=t;n+=document.scrollingElement.scrollTop;const s=.3*(Date.now()-e);e=Date.now(),Ei(document.elementFromPoint(i,t.y)).reverse().some((t=>{let{scrollTop:e,scrollHeight:i}=t;const{top:o,bottom:r,height:a}=_i(t);if(o<n&&o+35>n)e-=s;else{if(!(r>n&&r-35<n))return;e+=s}if(e>0&&e<i-a)return t.scrollTop=e,!0}))}),15)}(this.pos),this.move(t)},move:function(t){let e;return function(...i){e||(e=!0,t.call(this,...i),requestAnimationFrame((()=>e=!1)))}}((function(t){p(this.pos,se(t)),!this.drag&&(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(t),this.$emit("move")})),end(){if(Jt(document,ft,this.move),Jt(document,pt,this.end),!this.drag)return;clearInterval(Ro);const t=this.getSortable(this.placeholder);this===t?this.origin.index!==_t(this.placeholder)&&Zt(this.$el,"moved",[this,this.placeholder]):(Zt(t.$el,"added",[t,this.placeholder]),Zt(this.$el,"removed",[this,this.placeholder])),Zt(this.$el,"stop",[this,this.placeholder]),ke(this.drag),this.drag=null;for(const{clsPlaceholder:t,clsItem:e}of this.touched)for(const i of this.touched)Q(i.items,t,e);this.touched=null,Q(document.documentElement,this.clsDragState)},insert(t,e){K(this.items,this.clsItem),e&&e.previousElementSibling!==t?this.animate((()=>ye(e,t))):e||this.target.lastElementChild===t||this.animate((()=>xe(this.target,t)))},remove(t){this.target.contains(t)&&this.animate((()=>ke(t)))},getSortable(t){do{const e=this.$getComponent(t,"sortable");if(e&&(e===this||!1!==this.group&&e.group===this.group))return e}while(t=Ct(t))}}};let Ro;function Uo(t,e){return t[1]>e[0]&&e[1]>t[0]}var Yo={props:{pos:String,offset:Boolean,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:"bottom-"+(ht?"right":"left"),offset:!1,flip:!0,shift:!0,inset:!1},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),[this.dir,this.align]=this.pos,this.axis=c(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(t,e,i){let n=[this.getPositionOffset(t),this.getShiftOffset(t)];const s=[this.flip&&"flip",this.shift&&"shift"],o={element:[this.inset?this.dir:Re(this.dir),this.align],target:[this.dir,this.align]};if("y"===this.axis){for(const t in o)o[t].reverse();n.reverse(),s.reverse()}const r=Xo(t),a=ze(t);re(t,{top:-a.height,left:-a.width}),zi(t,e,{attach:o,offset:n,boundary:i,placement:s,viewportOffset:this.getViewportOffset(t)}),r()},getPositionOffset(t=this.$el){return Ue(!1===this.offset?re(t,"--bdt-position-offset"):this.offset,"x"===this.axis?"width":"height",t)*(c(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(t=this.$el){return"center"===this.align?0:Ue(re(t,"--bdt-position-shift-offset"),"y"===this.axis?"width":"height",t)*(c(["left","top"],this.align)?1:-1)},getViewportOffset:t=>Ue(re(t,"--bdt-position-viewport-offset"))}};function Xo(t){const e=Ai(t),{scrollTop:i}=e;return()=>{i!==e.scrollTop&&(e.scrollTop=i)}}var Jo={mixins:[Jn,Gn,Yo],data:{pos:"top",animation:["bdt-animation-scale-up"],duration:100,cls:"bdt-active"},connected(){var t;kt(t=this.$el)||st(t,"tabindex","0")},disconnected(){this.hide()},methods:{show(){if(this.isToggled(this.tooltip||null))return;const{delay:t=0,title:e}=function(t){const{el:e,id:i,data:n}=t;return["delay","title"].reduce(((t,i)=>({[i]:at(e,i),...t})),{...ln(at(e,i),["title"]),...n})}(this.$options);if(!e)return;const i=st(this.$el,"title"),n=Xt(this.$el,["blur",mt],(t=>!ne(t)&&this.hide()));this.reset=()=>{st(this.$el,{title:i,"aria-describedby":null}),n()};const s=Xs(this);st(this.$el,{title:null,"aria-describedby":s}),clearTimeout(this.showTimer),this.showTimer=setTimeout((()=>this._show(e,s)),t)},async hide(){var t;Et(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&await this.toggleElement(this.tooltip,!1,!1),null==(t=this.reset)||t.call(this),ke(this.tooltip),this.tooltip=null)},async _show(t,e){this.tooltip=xe(this.container,`<div id="${e}" class="bdt-${this.$options.name}" role="tooltip"> <div class="bdt-${this.$options.name}-inner">${t}</div> </div>`),Xt(this.tooltip,"toggled",((t,e)=>{if(!e)return;const i=()=>this.positionAt(this.tooltip,this.$el);i();const[n,s]=function(t,e,[i,n]){const s=He(t),o=He(e),r=[["left","right"],["top","bottom"]];for(const t of r){if(s[t[0]]>=o[t[1]]){i=t[1];break}if(s[t[1]]<=o[t[0]]){i=t[0];break}}const a=c(r[0],i)?r[1]:r[0];return n=a.find((t=>s[t]===o[t]))||"center",[i,n]}(this.tooltip,this.$el,this.pos);this.origin="y"===this.axis?`${Re(n)}-${s}`:`${s}-${Re(n)}`;const o=[Gt(document,`keydown ${ut}`,this.hide,!1,(t=>t.type===ut&&!this.$el.contains(t.target)||"keydown"===t.type&&t.keyCode===Bn)),Xt([document,...Di(this.$el)],"scroll",i,{passive:!0})];Gt(this.tooltip,"hide",(()=>o.forEach((t=>t()))),{self:!0})})),await this.toggleElement(this.tooltip,!0)||this.hide()}},events:{[`focus ${gt} ${ut}`](t){ne(t)&&t.type!==ut||this.show()}}};var Go={mixins:[us],i18n:{invalidMime:"Invalid File Type: %s",invalidName:"Invalid File Name: %s",invalidSize:"Invalid File Size: %s Kilobytes Max"},props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"bdt-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,multiple:!1,name:"files[]",params:{},type:"",url:"",abort:V,beforeAll:V,beforeSend:V,complete:V,completeAll:V,error:V,fail:V,load:V,loadEnd:V,loadStart:V,progress:V},events:{change(t){Et(t.target,'input[type="file"]')&&(t.preventDefault(),t.target.files&&this.upload(t.target.files),t.target.value="")},drop(t){Ko(t);const e=t.dataTransfer;(null==e?void 0:e.files)&&(Q(this.$el,this.clsDragover),this.upload(e.files))},dragenter(t){Ko(t)},dragover(t){Ko(t),K(this.$el,this.clsDragover)},dragleave(t){Ko(t),Q(this.$el,this.clsDragover)}},methods:{async upload(t){if(!(t=f(t)).length)return;Zt(this.$el,"upload",[t]);for(const e of t){if(this.maxSize&&1e3*this.maxSize<e.size)return void this.fail(this.t("invalidSize",this.maxSize));if(this.allow&&!Zo(this.allow,e.name))return void this.fail(this.t("invalidName",this.allow));if(this.mime&&!Zo(this.mime,e.type))return void this.fail(this.t("invalidMime",this.mime))}this.multiple||(t=t.slice(0,1)),this.beforeAll(this,t);const e=function(t,e){const i=[];for(let n=0;n<t.length;n+=e)i.push(t.slice(n,n+e));return i}(t,this.concurrent),i=async t=>{const n=new FormData;t.forEach((t=>n.append(this.name,t)));for(const t in this.params)n.append(t,this.params[t]);try{const t=await async function(t,e){const i={data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:V,responseType:"",...e};return await i.beforeSend(i),function(t,e){return new Promise(((i,n)=>{const{xhr:s}=e;for(const t in e)if(t in s)try{s[t]=e[t]}catch(t){}s.open(e.method.toUpperCase(),t);for(const t in e.headers)s.setRequestHeader(t,e.headers[t]);Xt(s,"load",(()=>{0===s.status||s.status>=200&&s.status<300||304===s.status?i(s):n(p(Error(s.statusText),{xhr:s,status:s.status}))})),Xt(s,"error",(()=>n(p(Error("Network Error"),{xhr:s})))),Xt(s,"timeout",(()=>n(p(Error("Network Timeout"),{xhr:s})))),s.send(e.data)}))}(t,i)}(this.url,{data:n,method:this.method,responseType:this.type,beforeSend:t=>{const{xhr:e}=t;Xt(e.upload,"progress",this.progress);for(const t of["loadStart","load","loadEnd","abort"])Xt(e,t.toLowerCase(),this[t]);return this.beforeSend(t)}});this.complete(t),e.length?await i(e.shift()):this.completeAll(t)}catch(t){this.error(t)}};await i(e.shift())}}};function Zo(t,e){return e.match(new RegExp(`^${t.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")}$`,"i"))}function Ko(t){t.preventDefault(),t.stopPropagation()}var Qo=Object.freeze({__proto__:null,Countdown:en,Filter:qn,Lightbox:io,LightboxPanel:to,Notification:so,Parallax:Eo,Slider:Ho,SliderParallax:Fo,Slideshow:qo,SlideshowParallax:Fo,Sortable:Vo,Tooltip:Jo,Upload:Go});function tr(t){Zt(document,"uikit:init",t),document.body&&Me(document.body,nr),new MutationObserver((t=>t.forEach(er))).observe(document,{subtree:!0,childList:!0}),new MutationObserver((t=>t.forEach(ir))).observe(document,{subtree:!0,attributes:!0}),t._initialized=!0}function er({addedNodes:t,removedNodes:e}){for(const e of t)Me(e,nr);for(const t of e)Me(t,sr)}function ir({target:t,attributeName:e}){var i;const n=or(e);n&&(ot(t,e)?Ws(n,t):null==(i=Vs(t,n))||i.$destroy())}function nr(t){const e=qs(t);for(const t in e)Ps(e[t]);for(const e of t.getAttributeNames()){const i=or(e);i&&Ws(i,t)}}function sr(t){const e=qs(t);for(const t in e)Os(e[t])}function or(t){l(t,"data-")&&(t=t.slice(5));const e=js[t];return e&&(e.options||e).name}!function(t){let e;t.component=Ls,t.getComponents=qs,t.getComponent=Vs,t.update=Rs,t.use=function(t){if(!t.installed)return t.call(null,this),t.installed=!0,this},t.mixin=function(t,e){(e=(I(e)?this.component(e):e)||this).options=an(e.options,t)},t.extend=function(t){t||(t={});const e=this,i=function(t){Ns(this,t)};return(i.prototype=Object.create(e.prototype)).constructor=i,i.options=an(e.options,t),i.super=e,i.extend=e.extend,i},Object.defineProperty(t,"container",{get:()=>e||document.body,set(t){e=Pe(t)}})}(zs),function(t){t.prototype.$mount=function(t){const e=this;!function(t,e){t[Fs]||(t[Fs]={}),t[Fs][e.$options.name]=e}(t,e),e.$options.el=t,document.contains(t)&&Ps(e)},t.prototype.$destroy=function(t=!1){const e=this,{el:i}=e.$options;i&&Os(e),Ms(e,"destroy"),function(t,e){var i;null==(i=t[Fs])||delete i[e.$options.name],T(t[Fs])&&delete t[Fs]}(i,e),t&&ke(e.$el)},t.prototype.$create=Ws,t.prototype.$emit=function(t){dn(this,t)},t.prototype.$update=function(t=this.$el,e){Rs(t,e)},t.prototype.$reset=function(){Os(this),Ps(this)},t.prototype.$getComponent=Vs,Object.defineProperties(t.prototype,{$el:{get(){return this.$options.el}},$container:Object.getOwnPropertyDescriptor(t,"container")})}(zs);var rr={mixins:[Qi,Gn],props:{animation:Boolean,targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,offset:Number},data:{targets:"> *",active:!1,animation:!0,collapsible:!0,multiple:!1,clsOpen:"bdt-open",toggle:"> .bdt-accordion-title",content:"> .bdt-accordion-content",offset:0},computed:{items:({targets:t},e)=>Oe(t,e),toggles({toggle:t}){return this.items.map((e=>Pe(t,e)))},contents({content:t}){return this.items.map((e=>{var i;return(null==(i=e._wrapper)?void 0:i.firstElementChild)||Pe(t,e)}))}},watch:{items(t,e){if(e||et(t,this.clsOpen))return;const i=!1!==this.active&&t[Number(this.active)]||!this.collapsible&&t[0];i&&this.toggle(i,!1)},toggles(){this.$emit()},contents(t){for(const e of t){const t=et(this.items.find((t=>t.contains(e))),this.clsOpen);ar(e,!t)}this.$emit()}},observe:gn(),events:[{name:"click keydown",delegate:({targets:t,$props:e})=>`${t} ${e.toggle}`,async handler(t){var e;"keydown"===t.type&&t.keyCode!==Nn||(t.preventDefault(),null==(e=this._off)||e.call(this),this._off=function(t){const e=Ai(t,!0);let i;return function n(){i=requestAnimationFrame((()=>{const{top:i}=ze(t);i<0&&(e.scrollTop+=i),n()}))}(),()=>requestAnimationFrame((()=>cancelAnimationFrame(i)))}(t.target),await this.toggle(_t(this.toggles,t.current)),this._off())}},{name:"shown hidden",self:!0,delegate:({targets:t})=>t,handler(){this.$emit()}}],update(){const t=Tt(this.items,`.${this.clsOpen}`);for(const e in this.items){const i=this.toggles[e],n=this.contents[e];if(!i||!n)continue;i.id=Xs(this,i),n.id=Xs(this,n);const s=c(t,this.items[e]);st(i,{role:ve(i,"a")?"button":null,"aria-controls":n.id,"aria-expanded":s,"aria-disabled":!this.collapsible&&t.length<2&&s}),st(n,{role:"region","aria-labelledby":i.id}),ve(n,"ul")&&st(Dt(n),"role","presentation")}},methods:{toggle(t,e){let i=[t=this.items[G(t,this.items)]];const n=Tt(this.items,`.${this.clsOpen}`);if(this.multiple||c(n,i[0])||(i=i.concat(n)),!(!this.collapsible&&n.length<2&&c(n,t)))return Promise.all(i.map((t=>this.toggleElement(t,!c(n,t),((t,i)=>{if(it(t,this.clsOpen,i),!1!==e&&this.animation)return async function(t,e,{content:i,duration:n,velocity:s,transition:o}){var r;i=(null==(r=t._wrapper)?void 0:r.firstElementChild)||Pe(i,t),t._wrapper||(t._wrapper=Ce(i,"<div>"));const a=t._wrapper;re(a,"overflow","hidden");const l=_(re(a,"height"));await de.cancel(a),ar(i,!1);const h=j(["marginTop","marginBottom"],(t=>re(i,t)))+ze(i).height,c=l/h;n=(s*h+n)*(e?1-c:c),re(a,"height",l),await de.start(a,{height:e?h:0},n,o),Ee(i),delete t._wrapper,e||ar(i,!0)}(t,i,this);ar(Pe(this.content,t),!i)})))))}}};function ar(t,e){t&&(t.hidden=e)}var lr={mixins:[Qi,Gn],args:"animation",props:{animation:Boolean,close:String},data:{animation:!0,selClose:".bdt-alert-close",duration:150},events:{name:"click",delegate:({selClose:t})=>t,handler(t){t.preventDefault(),this.close()}},methods:{async close(){await this.toggleElement(this.$el,!1,hr),this.$destroy(!0)}}};function hr(t,e,{duration:i,transition:n,velocity:s}){const o=_(re(t,"height"));return re(t,"height",o),de.start(t,{height:0,marginTop:0,marginBottom:0,paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,opacity:0},s*o+i,n)}var cr={args:"autoplay",props:{automute:Boolean,autoplay:Boolean},data:{automute:!1,autoplay:!0},beforeConnect(){"inview"!==this.autoplay||ot(this.$el,"preload")||(this.$el.preload="none"),ve(this.$el,"iframe")&&!ot(this.$el,"allow")&&(this.$el.allow="autoplay"),"hover"===this.autoplay&&(ve(this.$el,"video")?this.$el.tabindex=0:this.autoplay=!0),this.automute&&mi(this.$el)},events:[{name:`${gt} focusin`,filter:({autoplay:t})=>c(t,"hover"),handler(t){var e;!ne(t)||((e=this.$el).paused||e.ended)?pi(this.$el):gi(this.$el)}},{name:`${mt} focusout`,filter:({autoplay:t})=>c(t,"hover"),handler(t){ne(t)||gi(this.$el)}}],observe:[fn({filter:({$el:t,autoplay:e})=>e&&"hover"!==e&&vi(t),handler([{isIntersecting:t}]){document.fullscreenElement||(t?pi(this.$el):gi(this.$el))},args:{intersecting:!1},options:({$el:t,autoplay:e})=>({root:"inview"===e?null:Ct(t)})})]};var dr={mixins:[cr],props:{width:Number,height:Number},data:{automute:!0},created(){this.useObjectFit=ve(this.$el,"img","video")},observe:un({target:({$el:t})=>ur(t)||Ct(t),filter:({useObjectFit:t})=>!t}),update:{read(){if(this.useObjectFit)return!1;const{ratio:t,cover:e}=J,{$el:i,width:n,height:s}=this;let o={width:n,height:s};if(!n||!s){const e={width:i.naturalWidth||i.videoWidth||i.clientWidth,height:i.naturalHeight||i.videoHeight||i.clientHeight};o=n?t(e,"width",n):s?t(e,"height",s):e}const{offsetHeight:r,offsetWidth:a}=ur(i)||Ct(i),l=e(o,{width:a,height:r});return!(!l.width||!l.height)&&l},write({height:t,width:e}){re(this.$el,{height:t,width:e})},events:["resize"]}};function ur(t){for(;t=Ct(t);)if("static"!==re(t,"position"))return t}let fr;var pr={mixins:[Jn,Yo,Gn],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryX:Boolean,boundaryY:Boolean,target:Boolean,targetX:Boolean,targetY:Boolean,stretch:Boolean,delayShow:Number,delayHide:Number,autoUpdate:Boolean,clsDrop:String,animateOut:Boolean,bgScroll:Boolean,closeOnScroll:Boolean},data:{mode:["click","hover"],toggle:"- *",boundary:!1,boundaryX:!1,boundaryY:!1,target:!1,targetX:!1,targetY:!1,stretch:!1,delayShow:0,delayHide:800,autoUpdate:!0,clsDrop:!1,animateOut:!1,bgScroll:!0,animation:["bdt-animation-fade"],cls:"bdt-open",container:!1,closeOnScroll:!1},computed:{boundary:({boundary:t,boundaryX:e,boundaryY:i},n)=>[Ot(e||t,n)||window,Ot(i||t,n)||window],target({target:t,targetX:e,targetY:i},n){return e||(e=t||this.targetEl),i||(i=t||this.targetEl),[!0===e?window:Ot(e,n),!0===i?window:Ot(i,n)]}},created(){this.tracker=new ai},beforeConnect(){this.clsDrop=this.$props.clsDrop||this.$options.id},connected(){K(this.$el,"bdt-drop",this.clsDrop),this.toggle&&!this.targetEl&&(this.targetEl=function(t){const{$el:e}=t.$create("toggle",Ot(t.toggle,t.$el),{target:t.$el,mode:t.mode});return st(e,"aria-haspopup",!0),e}(this)),this._style=W(this.$el.style,["width","height"])},disconnected(){this.isActive()&&(this.hide(!1),fr=null),re(this.$el,this._style)},events:[{name:"click",delegate:()=>".bdt-drop-close",handler(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate:()=>'a[href*="#"]',handler({defaultPrevented:t,current:e}){const{hash:i}=e;!t&&i&&Mt(e)&&!this.$el.contains(Pe(i))&&this.hide(!1)}},{name:"beforescroll",handler(){this.hide(!1)}},{name:"toggle",self:!0,handler(t,e){t.preventDefault(),this.isToggled()?this.hide(!1):this.show(null==e?void 0:e.$el,!1)}},{name:"toggleshow",self:!0,handler(t,e){t.preventDefault(),this.show(null==e?void 0:e.$el)}},{name:"togglehide",self:!0,handler(t){t.preventDefault(),Et(this.$el,":focus,:hover")||this.hide()}},{name:`${gt} focusin`,filter:({mode:t})=>c(t,"hover"),handler(t){ne(t)||this.clearTimers()}},{name:`${mt} focusout`,filter:({mode:t})=>c(t,"hover"),handler(t){!ne(t)&&t.relatedTarget&&this.hide()}},{name:"toggled",self:!0,handler(t,e){e&&(this.clearTimers(),this.position())}},{name:"show",self:!0,handler(){fr=this,this.tracker.init(),st(this.targetEl,"aria-expanded",!0);const t=[gr(this),vr(this),wr(this),this.autoUpdate&&mr(this),this.closeOnScroll&&br(this)];Gt(this.$el,"hide",(()=>t.forEach((t=>t&&t()))),{self:!0}),this.bgScroll||Gt(this.$el,"hidden",Xn(this.$el),{self:!0})}},{name:"beforehide",self:!0,handler:"clearTimers"},{name:"hide",handler({target:t}){this.$el===t?(fr=this.isActive()?null:fr,this.tracker.cancel(),st(this.targetEl,"aria-expanded",null)):fr=null===fr&&this.$el.contains(t)&&this.isToggled()?this:fr}}],update:{write(){this.isToggled()&&!et(this.$el,this.clsEnter)&&this.position()}},methods:{show(t=this.targetEl,e=!0){if(this.isToggled()&&t&&this.targetEl&&t!==this.targetEl&&this.hide(!1,!1),this.targetEl=t,this.clearTimers(),!this.isActive()){if(fr){if(e&&fr.isDelaying())return void(this.showTimer=setTimeout((()=>Et(t,":hover")&&this.show()),10));let i;for(;fr&&i!==fr&&!fr.$el.contains(this.$el);)i=fr,fr.hide(!1,!1)}this.container&&Ct(this.$el)!==this.container&&xe(this.container,this.$el),this.showTimer=setTimeout((()=>this.toggleElement(this.$el,!0)),e&&this.delayShow||0)}},hide(t=!0,e=!0){const i=()=>this.toggleElement(this.$el,!1,this.animateOut&&e);this.clearTimers(),this.isDelayedHide=t,t&&this.isDelaying()?this.hideTimer=setTimeout(this.hide,50):t&&this.delayHide?this.hideTimer=setTimeout(i,this.delayHide):i()},clearTimers(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null},isActive(){return fr===this},isDelaying(){return[this.$el,...Oe(".bdt-drop",this.$el)].some((t=>this.tracker.movesTo(t)))},position(){const t=Xo(this.$el);Q(this.$el,"bdt-drop-stack"),re(this.$el,this._style),this.$el.hidden=!0;const e=this.target.map((t=>function(t,e){return _i(Di(e).find((e=>e.contains(t))))}(this.$el,t))),i=this.getViewportOffset(this.$el),n=[[0,["x","width","left","right"]],[1,["y","height","top","bottom"]]];for(const[t,[s,o]]of n)this.axis!==s&&c([s,!0],this.stretch)&&re(this.$el,{[o]:Math.min(He(this.boundary[t])[o],e[t][o]-2*i),[`overflow-${s}`]:"auto"});const s=e[0].width-2*i;this.$el.hidden=!1,re(this.$el,"maxWidth",""),this.$el.offsetWidth>s&&K(this.$el,"bdt-drop-stack"),re(this.$el,"maxWidth",s),this.positionAt(this.$el,this.target,this.boundary);for(const[t,[s,o,r,a]]of n)if(this.axis===s&&c([s,!0],this.stretch)){const n=Math.abs(this.getPositionOffset()),l=He(this.target[t]),h=He(this.$el);re(this.$el,{[o]:(l[r]>h[r]?l[this.inset?a:r]-Math.max(He(this.boundary[t])[r],e[t][r]+i):Math.min(He(this.boundary[t])[a],e[t][a]-i)-l[this.inset?r:a])-n,[`overflow-${s}`]:"auto"}),this.positionAt(this.$el,this.target,this.boundary)}t()}}};function gr(t){const e=()=>t.$emit(),i=[di(e),ci(Di(t.$el).concat(t.target),e)];return()=>i.map((t=>t.disconnect()))}function mr(t,e=(()=>t.$emit())){return Xt([document,...Di(t.$el)],"scroll",e,{passive:!0})}function vr(t){return Xt(document,"keydown",(e=>{e.keyCode===Bn&&t.hide(!1)}))}function br(t){return mr(t,(()=>t.hide(!1)))}function wr(t){return Xt(document,ut,(({target:e})=>{t.$el.contains(e)||Gt(document,`${pt} ${vt} scroll`,(({defaultPrevented:i,type:n,target:s})=>{var o;i||n!==pt||e!==s||(null==(o=t.targetEl)?void 0:o.contains(e))||t.hide(!1)}),!0)}))}var $r={mixins:[Qi,Jn],props:{align:String,clsDrop:String,boundary:Boolean,dropbar:Boolean,dropbarAnchor:Boolean,duration:Number,mode:Boolean,offset:Boolean,stretch:Boolean,delayShow:Boolean,delayHide:Boolean,target:Boolean,targetX:Boolean,targetY:Boolean,animation:Boolean,animateOut:Boolean,closeOnScroll:Boolean},data:{align:ht?"right":"left",clsDrop:"bdt-dropdown",clsDropbar:"bdt-dropnav-dropbar",boundary:!0,dropbar:!1,dropbarAnchor:!1,duration:200,container:!1,selNavItem:"> li > a, > ul > li > a"},computed:{dropbarAnchor:({dropbarAnchor:t},e)=>Ot(t,e)||e,dropbar({dropbar:t}){return t?(t=this._dropbar||Ot(t,this.$el)||Pe(`+ .${this.clsDropbar}`,this.$el))||(this._dropbar=Pe("<div></div>")):null},dropContainer(t,e){return this.container||e},dropdowns({clsDrop:t},e){var i;const n=Oe(`.${t}`,e);if(this.dropContainer!==e)for(const e of Oe(`.${t}`,this.dropContainer)){const t=null==(i=this.getDropdown(e))?void 0:i.targetEl;!c(n,e)&&t&&this.$el.contains(t)&&n.push(e)}return n},items:({selNavItem:t},e)=>Oe(t,e)},watch:{dropbar(t){K(t,"bdt-dropbar","bdt-dropbar-top",this.clsDropbar,`bdt-${this.$options.name}-dropbar`)},dropdowns(){this.initializeDropdowns()}},connected(){this.initializeDropdowns()},disconnected(){ke(this._dropbar),delete this._dropbar},events:[{name:"mouseover focusin",delegate:({selNavItem:t})=>t,handler({current:t}){const e=this.getActive();e&&c(e.mode,"hover")&&e.targetEl&&!t.contains(e.targetEl)&&!e.isDelaying()&&e.hide(!1)}},{name:"keydown",self:!0,delegate:({selNavItem:t})=>t,handler(t){var e;const{current:i,keyCode:n}=t,s=this.getActive();n===Wn&&(null==s?void 0:s.targetEl)===i&&(t.preventDefault(),null==(e=Pe(It,s.$el))||e.focus()),xr(t,this.items,s)}},{name:"keydown",el:({dropContainer:t})=>t,delegate:({clsDrop:t})=>`.${t}`,handler(t){var e;const{current:i,keyCode:n,target:s}=t;if(St(s)||!c(this.dropdowns,i))return;const o=this.getActive();let r=-1;if(n===Hn?r=0:n===zn?r="last":n===jn?r="previous":n===Wn?r="next":n===Bn&&(null==(e=o.targetEl)||e.focus()),~r){t.preventDefault();const e=Oe(It,i);e[G(r,e,d(e,(t=>Et(t,":focus"))))].focus()}xr(t,this.items,o)}},{name:"mouseleave",el:({dropbar:t})=>t,filter:({dropbar:t})=>t,handler(){const t=this.getActive();t&&c(t.mode,"hover")&&!this.dropdowns.some((t=>Et(t,":hover")))&&t.hide()}},{name:"beforeshow",el:({dropContainer:t})=>t,filter:({dropbar:t})=>t,handler({target:t}){this.isDropbarDrop(t)&&(this.dropbar.previousElementSibling!==this.dropbarAnchor&&Se(this.dropbarAnchor,this.dropbar),K(t,`${this.clsDrop}-dropbar`))}},{name:"show",el:({dropContainer:t})=>t,filter:({dropbar:t})=>t,handler({target:t}){if(!this.isDropbarDrop(t))return;const e=this.getDropdown(t),i=()=>{const i=Math.max(...At(t,`.${this.clsDrop}`).concat(t).map((t=>He(t).bottom)));He(this.dropbar,{left:He(this.dropbar).left,top:this.getDropbarOffset(e.getPositionOffset())}),this.transitionTo(i-He(this.dropbar).top+_(re(t,"marginBottom")),t)};this._observer=ci([e.$el,...e.target],i),i()}},{name:"beforehide",el:({dropContainer:t})=>t,filter:({dropbar:t})=>t,handler(t){const e=this.getActive();Et(this.dropbar,":hover")&&e.$el===t.target&&this.isDropbarDrop(e.$el)&&c(e.mode,"hover")&&e.isDelayedHide&&!this.items.some((t=>e.targetEl!==t&&Et(t,":focus")))&&t.preventDefault()}},{name:"hide",el:({dropContainer:t})=>t,filter:({dropbar:t})=>t,handler({target:t}){var e;if(!this.isDropbarDrop(t))return;null==(e=this._observer)||e.disconnect();const i=this.getActive();i&&i.$el!==t||this.transitionTo(0)}}],methods:{getActive(){var t;return c(this.dropdowns,null==(t=fr)?void 0:t.$el)&&fr},async transitionTo(t,e){const{dropbar:i}=this,n=Le(i);if(e=n<t&&e,await de.cancel([e,i]),e){const s=He(e).top-He(i).top-n;s>0&&re(e,"transitionDelay",s/t*this.duration+"ms")}re(e,"clipPath",`polygon(0 0,100% 0,100% ${n}px,0 ${n}px)`),Le(i,n),await Promise.all([de.start(i,{height:t},this.duration),de.start(e,{clipPath:`polygon(0 0,100% 0,100% ${t}px,0 ${t}px)`},this.duration).finally((()=>re(e,{clipPath:"",transitionDelay:""})))]).catch(V)},getDropdown(t){return this.$getComponent(t,"drop")||this.$getComponent(t,"dropdown")},isDropbarDrop(t){return c(this.dropdowns,t)&&et(t,this.clsDrop)},getDropbarOffset(t){const{$el:e,target:i,targetY:n}=this,{top:s,height:o}=He(Ot(n||i||e,e));return s+o+t},initializeDropdowns(){this.$create("drop",this.dropdowns.filter((t=>!this.getDropdown(t))),{...this.$props,flip:!1,shift:!0,pos:`bottom-${this.align}`,boundary:!0===this.boundary?this.$el:this.boundary})}}};function xr(t,e,i){var n,s,o;const{current:r,keyCode:a}=t;let l=-1;a===Hn?l=0:a===zn?l="last":a===Fn?l="previous":a===Ln?l="next":a===On&&(null==(n=i.targetEl)||n.focus(),null==(s=i.hide)||s.call(i,!1)),~l&&(t.preventDefault(),null==(o=i.hide)||o.call(i,!1),e[G(l,e,e.indexOf(i.targetEl||r))].focus())}var yr={mixins:[Qi],args:"target",props:{target:Boolean},data:{target:!1},computed:{input:(t,e)=>Pe(yt,e),state(){return this.input.nextElementSibling},target({target:t},e){return t&&(!0===t&&Ct(this.input)===e&&this.input.nextElementSibling||Pe(t,e))}},update(){var t;const{target:e,input:i}=this;if(!e)return;let n;const s=St(e)?"value":"textContent",o=e[s],r=(null==(t=i.files)?void 0:t[0])?i.files[0].name:Et(i,"select")&&(n=Oe("option",i).filter((t=>t.selected))[0])?n.textContent:i.value;o!==r&&(e[s]=r)},events:[{name:"change",handler(){this.$emit()}},{name:"reset",el:({$el:t})=>t.closest("form"),handler(){this.$emit()}}]},Sr={extends:$n,mixins:[Qi],name:"grid",props:{masonry:Boolean,parallax:String,parallaxStart:String,parallaxEnd:String,parallaxJustify:Boolean},data:{margin:"bdt-grid-margin",clsStack:"bdt-grid-stack",masonry:!1,parallax:0,parallaxStart:0,parallaxEnd:0,parallaxJustify:!1},connected(){this.masonry&&K(this.$el,"bdt-flex-top","bdt-flex-wrap-top")},observe:vn({filter:({parallax:t,parallaxJustify:e})=>t||e}),update:[{write({rows:t}){it(this.$el,this.clsStack,!t.some((t=>t.length>1)))},events:["resize"]},{read(t){const{rows:e}=t;let{masonry:i,parallax:n,parallaxJustify:s,margin:o}=this;if(n=Math.max(0,Ue(n)),!(i||n||s)||Ir(e)||e[0].some(((t,i)=>e.some((e=>e[i]&&e[i].offsetWidth!==t.offsetWidth)))))return t.translates=t.scrollColumns=!1;let r,a,l=function(t,e){const i=t.flat().find((t=>et(t,e)));return _(i?re(i,"marginTop"):re(t[0][0],"paddingLeft"))}(e,o);i?[r,a]=function(t,e,i){const n=[],s=[],o=Array(t[0].length).fill(0);let r=0;for(let a of t){ht&&(a=a.reverse());let t=0;for(const l in a){const{offsetWidth:h,offsetHeight:c}=a[l],d=i?l:o.indexOf(Math.min(...o));kr(n,d,a[l]),kr(s,d,[(d-l)*h*(ht?-1:1),o[d]-r]),o[d]+=c+e,t=Math.max(t,c)}r+=t+e}return[n,s]}(e,l,"next"===i):r=function(t){const e=[];for(const i of t)for(const t in i)kr(e,t,i[t]);return e}(e);const h=r.map((t=>j(t,"offsetHeight")+l*(t.length-1))),c=Math.max(0,...h);let d,u,f;return(n||s)&&(d=h.map(((t,e)=>s?c-t+n:n/(e%2||8))),s||(n=Math.max(...h.map(((t,e)=>t+d[e]-c)))),u=Ue(this.parallaxStart,"height",this.$el,!0),f=Ue(this.parallaxEnd,"height",this.$el,!0)),{columns:r,translates:a,scrollColumns:d,parallaxStart:u,parallaxEnd:f,padding:n,height:a?c:""}},write({height:t,padding:e}){re(this.$el,"paddingBottom",e||""),!1!==t&&re(this.$el,"height",t)},events:["resize"]},{read({rows:t,scrollColumns:e,parallaxStart:i,parallaxEnd:n}){return{scrolled:!(!e||Ir(t))&&Ti(this.$el,i,n)}},write({columns:t,scrolled:e,scrollColumns:i,translates:n}){(e||n)&&t.forEach(((t,s)=>t.forEach(((t,o)=>{let[r,a]=n&&n[s][o]||[0,0];e&&(a+=e*i[s]),re(t,"transform",`translate(${r}px, ${a}px)`)}))))},events:["scroll","resize"]}]};function Ir(t){return t.flat().some((t=>"absolute"===re(t,"position")))}function kr(t,e,i){t[e]||(t[e]=[]),t[e].push(i)}var Cr={args:"target",props:{target:String,row:Boolean},data:{target:"> *",row:!0},computed:{elements:({target:t},e)=>Oe(t,e)},observe:un({target:({$el:t,elements:e})=>e.reduce(((t,e)=>t.concat(e,...e.children)),[t])}),events:{name:"loadingdone",el:()=>document.fonts,handler(){this.$emit("resize")}},update:{read(){return{rows:(this.row?xn(this.elements):[this.elements]).map(Tr)}},write({rows:t}){for(const{heights:e,elements:i}of t)i.forEach(((t,i)=>re(t,"minHeight",e[i])))},events:["resize"]}};function Tr(t){if(t.length<2)return{heights:[""],elements:t};let e=t.map(Er);const i=Math.max(...e);return{heights:t.map(((t,n)=>e[n].toFixed(2)===i.toFixed(2)?"":i)),elements:t}}function Er(t){const e=W(t.style,["display","minHeight"]);xt(t)||re(t,"display","block","important"),re(t,"minHeight","");const i=ze(t).height-Ve(t,"height","content-box");return re(t,e),i}var Ar={args:"target",props:{target:String},data:{target:""},computed:{target:{get:({target:t},e)=>Ot(t,e),observe:({target:t})=>t}},observe:un({target:({target:t})=>t}),update:{read(){return!!this.target&&{height:this.target.offsetHeight}},write({height:t}){re(this.$el,{minHeight:t})},events:["resize"]}},Dr={props:{expand:Boolean,offsetTop:Boolean,offsetBottom:Boolean,minHeight:Number},data:{expand:!1,offsetTop:!1,offsetBottom:!1,minHeight:0},observe:[mn({filter:({expand:t})=>t}),un({target:({$el:t})=>Ei(t)})],update:{read(){if(!xt(this.$el))return!1;let t="";const e=Ve(this.$el,"height","content-box"),{body:i,scrollingElement:n}=document,s=Ai(this.$el),{height:o}=_i(s===i?n:s),r=n===s||i===s;if(t="calc("+(r?"100vh":`${o}px`),this.expand){t+=` - ${ze(s).height-ze(this.$el).height}px`}else{if(this.offsetTop)if(r){const e=!0===this.offsetTop?this.$el:Ot(this.offsetTop,this.$el),{top:i}=He(e);t+=i>0&&i<o/2?` - ${i}px`:""}else t+=` - ${Ve(s,"height",re(s,"boxSizing"))}px`;!0===this.offsetBottom?t+=` - ${ze(this.$el.nextElementSibling).height}px`:C(this.offsetBottom)?t+=` - ${this.offsetBottom}vh`:this.offsetBottom&&h(this.offsetBottom,"px")?t+=` - ${_(this.offsetBottom)}px`:I(this.offsetBottom)&&(t+=` - ${ze(Ot(this.offsetBottom,this.$el)).height}px`)}return t+=(e?` - ${e}px`:"")+")",{minHeight:t}},write({minHeight:t}){re(this.$el,"minHeight",`max(${this.minHeight||0}px, ${t})`)},events:["resize"]}},_r='<svg width="20" height="20" viewBox="0 0 20 20"><circle fill="none" stroke="#000" stroke-width="1.1" cx="9" cy="9" r="7"/><path fill="none" stroke="#000" stroke-width="1.1" d="M14,14 L18,18 L14,14 Z"/></svg>',Mr={args:"src",props:{width:Number,height:Number,ratio:Number},data:{ratio:1},connected(){this.svg=this.getSvg().then((t=>{if(!this._connected)return;const e=function(t,e){if(wt(e)||ve(e,"canvas")){e.hidden=!0;const i=e.nextElementSibling;return Pr(t,i)?i:Se(e,t)}const i=e.lastElementChild;return Pr(t,i)?i:xe(e,t)}(t,this.$el);return this.svgEl&&e!==this.svgEl&&ke(this.svgEl),Or.call(this,e,t),this.svgEl=e}),V)},disconnected(){this.svg.then((t=>{this._connected||(wt(this.$el)&&(this.$el.hidden=!1),ke(t),this.svgEl=null)})),this.svg=null},methods:{async getSvg(){}}};function Pr(t,e){return ve(t,"svg")&&ve(e,"svg")&&t.innerHTML===e.innerHTML}function Or(t,e){const i=["width","height"];let n=i.map((t=>this[t]));n.some((t=>t))||(n=i.map((t=>st(e,t))));const s=st(e,"viewBox");s&&!n.some((t=>t))&&(n=s.split(" ").slice(2)),n.forEach(((e,n)=>st(t,i[n],_(e)*this.ratio||null)))}var Br={mixins:[Mr],args:"src",props:{src:String,icon:String,attributes:"list",strokeAnimation:Boolean},data:{strokeAnimation:!1},observe:[pn({async handler(){const t=await this.svg;t&&Nr.call(this,t)},options:{attributes:!0,attributeFilter:["id","class","style"]}})],async connected(){c(this.src,"#")&&([this.src,this.icon]=this.src.split("#"));const t=await this.svg;t&&(Nr.call(this,t),this.strokeAnimation&&function(t){const e=ro(t);e&&re(t,"--bdt-animation-stroke",e)}(t))},methods:{async getSvg(){return ve(this.$el,"img")&&!this.$el.complete&&"lazy"===this.$el.loading&&await new Promise((t=>Gt(this.$el,"load",t))),function(t,e){e&&c(t,"<symbol")&&(t=Fr(t)[e]||t);return jr(t)}(await zr(this.src),this.icon)||Promise.reject("SVG not found.")}}};function Nr(t){const{$el:e}=this;K(t,st(e,"class"),"bdt-svg");for(let i=0;i<e.style.length;i++){const n=e.style[i];re(t,n,re(e,n))}for(const e in this.attributes){const[i,n]=this.attributes[e].split(":",2);st(t,i,n)}this.$el.id||rt(t,"id")}const zr=Z((async t=>t?l(t,"data:")?decodeURIComponent(t.split(",")[1]):(await fetch(t)).text():Promise.reject()));const Hr=/<symbol([^]*?id=(['"])(.+?)\2[^]*?<\/)symbol>/g,Fr=Z((function(t){const e={};let i;for(Hr.lastIndex=0;i=Hr.exec(t);)e[i[3]]=`<svg ${i[1]}svg>`;return e}));function jr(t){const e=document.createElement("template");return e.innerHTML=t,e.content.firstElementChild}const Lr={spinner:'<svg width="30" height="30" viewBox="0 0 30 30"><circle fill="none" stroke="#000" cx="15" cy="15" r="14"/></svg>',totop:'<svg width="18" height="10" viewBox="0 0 18 10"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 9 9 1 17 9"/></svg>',marker:'<svg width="20" height="20" viewBox="0 0 20 20"><rect width="1" height="11" x="9" y="4"/><rect width="11" height="1" x="4" y="9"/></svg>',"close-icon":'<svg width="14" height="14" viewBox="0 0 14 14"><line fill="none" stroke="#000" stroke-width="1.1" x1="1" y1="1" x2="13" y2="13"/><line fill="none" stroke="#000" stroke-width="1.1" x1="13" y1="1" x2="1" y2="13"/></svg>',"close-large":'<svg width="20" height="20" viewBox="0 0 20 20"><line fill="none" stroke="#000" stroke-width="1.4" x1="1" y1="1" x2="19" y2="19"/><line fill="none" stroke="#000" stroke-width="1.4" x1="19" y1="1" x2="1" y2="19"/></svg>',"drop-parent-icon":'<svg width="12" height="12" viewBox="0 0 12 12"><polyline fill="none" stroke="#000" stroke-width="1.1" points="1 3.5 6 8.5 11 3.5"/></svg>',"nav-parent-icon":'<svg width="12" height="12" viewBox="0 0 12 12"><polyline fill="none" stroke="#000" stroke-width="1.1" points="1 3.5 6 8.5 11 3.5"/></svg>',"nav-parent-icon-large":'<svg width="14" height="14" viewBox="0 0 14 14"><polyline fill="none" stroke="#000" stroke-width="1.1" points="1 4 7 10 13 4"/></svg>',"navbar-parent-icon":'<svg width="12" height="12" viewBox="0 0 12 12"><polyline fill="none" stroke="#000" stroke-width="1.1" points="1 3.5 6 8.5 11 3.5"/></svg>',"navbar-toggle-icon":'<svg width="20" height="20" viewBox="0 0 20 20"><style>.bdt-navbar-toggle-icon svg&gt;[class*=&quot;line-&quot;]{transition:0.2s ease-in-out;transition-property:transform, opacity;transform-origin:center;opacity:1}.bdt-navbar-toggle-icon svg&gt;.line-3{opacity:0}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-3{opacity:1}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-2{transform:rotate(45deg)}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-3{transform:rotate(-45deg)}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-1,.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-4{opacity:0}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-1{transform:translateY(6px) scaleX(0)}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-4{transform:translateY(-6px) scaleX(0)}</style><rect width="20" height="2" y="3" class="line-1"/><rect width="20" height="2" y="9" class="line-2"/><rect width="20" height="2" y="9" class="line-3"/><rect width="20" height="2" y="15" class="line-4"/></svg>',"overlay-icon":'<svg width="40" height="40" viewBox="0 0 40 40"><rect width="1" height="40" x="19" y="0"/><rect width="40" height="1" x="0" y="19"/></svg>',"pagination-next":'<svg width="7" height="12" viewBox="0 0 7 12"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 1 6 6 1 11"/></svg>',"pagination-previous":'<svg width="7" height="12" viewBox="0 0 7 12"><polyline fill="none" stroke="#000" stroke-width="1.2" points="6 1 1 6 6 11"/></svg>',"search-icon":_r,"search-medium":'<svg width="24" height="24" viewBox="0 0 24 24"><circle fill="none" stroke="#000" stroke-width="1.1" cx="10.5" cy="10.5" r="9.5"/><line fill="none" stroke="#000" stroke-width="1.1" x1="23" y1="23" x2="17" y2="17"/></svg>',"search-large":'<svg width="40" height="40" viewBox="0 0 40 40"><circle fill="none" stroke="#000" stroke-width="1.8" cx="17.5" cy="17.5" r="16.5"/><line fill="none" stroke="#000" stroke-width="1.8" x1="38" y1="39" x2="29" y2="30"/></svg>',"search-toggle-icon":_r,"slidenav-next":'<svg width="14" height="24" viewBox="0 0 14 24"><polyline fill="none" stroke="#000" stroke-width="1.4" points="1.225,23 12.775,12 1.225,1"/></svg>',"slidenav-next-large":'<svg width="25" height="40" viewBox="0 0 25 40"><polyline fill="none" stroke="#000" stroke-width="2" points="4.002,38.547 22.527,20.024 4,1.5"/></svg>',"slidenav-previous":'<svg width="14" height="24" viewBox="0 0 14 24"><polyline fill="none" stroke="#000" stroke-width="1.4" points="12.775,1 1.225,12 12.775,23"/></svg>',"slidenav-previous-large":'<svg width="25" height="40" viewBox="0 0 25 40"><polyline fill="none" stroke="#000" stroke-width="2" points="20.527,1.5 2,20.024 20.525,38.547"/></svg>'},Wr={install:function(t){t.icon.add=(e,i)=>{const n=I(e)?{[e]:i}:e;H(n,((t,e)=>{Lr[e]=t,delete ea[e]})),t._initialized&&Me(document.body,(e=>H(t.getComponents(e),(t=>{t.$options.isIcon&&t.icon in n&&t.$reset()}))))}},mixins:[Mr],args:"icon",props:{icon:String},isIcon:!0,beforeConnect(){K(this.$el,"bdt-icon")},methods:{async getSvg(){const t=function(t){if(t=ia[t]||t,!Lr[t])return null;ea[t]||(ea[t]=jr(Lr[function(t){return ht?N(N(t,"left","right"),"previous","next"):t}(t)]||Lr[t]));return ea[t].cloneNode(!0)}(this.icon);if(!t)throw"Icon not found.";return t}}},qr={args:!1,extends:Wr,data:t=>({icon:s(t.constructor.options.name)}),beforeConnect(){K(this.$el,this.$options.id)}},Vr={extends:qr,beforeConnect(){const t=this.$props.icon;this.icon=this.$el.closest(".bdt-nav-primary")?`${t}-large`:t}},Rr={extends:qr,mixins:[us],i18n:{toggle:"Open Search",submit:"Submit Search"},beforeConnect(){const t=et(this.$el,"bdt-search-toggle")||et(this.$el,"bdt-navbar-toggle");if(this.icon=t?"search-toggle-icon":et(this.$el,"bdt-search-icon")&&this.$el.closest(".bdt-search-large")?"search-large":this.$el.closest(".bdt-search-medium")?"search-medium":this.$props.icon,!ot(this.$el,"aria-label"))if(t){const t=this.t("toggle");st(this.$el,"aria-label",t)}else{const t=this.$el.closest("a,button");if(t){st(t,"aria-label",this.t("submit"))}}}},Ur={extends:qr,beforeConnect(){st(this.$el,"role","status")},methods:{async getSvg(){const t=await Wr.methods.getSvg.call(this);return 1!==this.ratio&&re(Pe("circle",t),"strokeWidth",1/this.ratio),t}}},Yr={extends:qr,mixins:[us],beforeConnect(){const t=this.$el.closest("a,button");st(t,"role",null!==this.role&&ve(t,"a")?"button":this.role);const e=this.t("label");e&&!ot(t,"aria-label")&&st(t,"aria-label",e)}},Xr={extends:Yr,beforeConnect(){K(this.$el,"bdt-slidenav");const t=this.$props.icon;this.icon=et(this.$el,"bdt-slidenav-large")?`${t}-large`:t}},Jr={extends:Yr,i18n:{label:"Open menu"}},Gr={extends:Yr,i18n:{label:"Close"},beforeConnect(){this.icon="close-"+(et(this.$el,"bdt-close-large")?"large":"icon")}},Zr={extends:Yr,i18n:{label:"Open"}},Kr={extends:Yr,i18n:{label:"Back to top"}},Qr={extends:Yr,i18n:{label:"Next page"},data:{role:null}},ta={extends:Yr,i18n:{label:"Previous page"},data:{role:null}},ea={};const ia={twitter:"x"};var na={args:"dataSrc",props:{dataSrc:String,sources:String,margin:String,target:String,loading:String},data:{dataSrc:"",sources:!1,margin:"50%",target:!1,loading:"lazy"},connected(){"lazy"!==this.loading?this.load():aa(this.$el)&&(this.$el.loading="lazy",sa(this.$el))},disconnected(){this.img&&(this.img.onload=""),delete this.img},observe:fn({handler(t,e){this.load(),e.disconnect()},options:({margin:t})=>({rootMargin:t}),filter:({loading:t})=>"lazy"===t,target:({$el:t,$props:e})=>e.target?[t,...Bt(e.target,t)]:t}),methods:{load(){if(this.img)return this.img;const t=aa(this.$el)?this.$el:function(t,e,i){const n=new Image;return function(t,e){if((e=function(t){if(!t)return[];if(l(t,"["))try{t=JSON.parse(t)}catch(e){t=[]}else t=ln(t);u(t)||(t=[t]);return t.filter((t=>!T(t)))}(e)).length){const i=De("<picture>");for(const t of e){const e=De("<source>");st(e,t),xe(i,e)}xe(i,t)}}(n,i),ra(t,n),n.onload=()=>{sa(t,n.currentSrc)},st(n,"src",e),n}(this.$el,this.dataSrc,this.sources);return rt(t,"loading"),sa(this.$el,t.currentSrc),this.img=t}}};function sa(t,e){if(aa(t)){const e=Ct(t);(ve(e,"picture")?Dt(e):[t]).forEach((t=>ra(t,t)))}else if(e){!c(t.style.backgroundImage,e)&&(re(t,"backgroundImage",`url(${Yt(e)})`),Zt(t,Kt("load",!1)))}}const oa=["data-src","data-srcset","sizes"];function ra(t,e){for(const i of oa){const n=at(t,i);n&&st(e,i.replace(/^(data-)+/,""),n)}}function aa(t){return ve(t,"img")}var la={props:{target:String,selActive:String},data:{target:!1,selActive:!1},computed:{target:({target:t},e)=>t?Oe(t,e):e},observe:[fn({handler(t){this.isIntersecting=t.some((({isIntersecting:t})=>t)),this.$emit()},target:({target:t})=>t,args:{intersecting:!1}}),pn({target:({target:t})=>t,options:{attributes:!0,attributeFilter:["class"],attributeOldValue:!0}}),{target:({target:t})=>t,observe:(t,e)=>{const i=ci([...P(t),document.documentElement],e),n=[Xt(document,"scroll itemshown itemhidden",e,{passive:!0,capture:!0}),Xt(document,"show hide transitionstart",(t=>(e(),i.observe(t.target)))),Xt(document,"shown hidden transitionend transitioncancel",(t=>(e(),i.unobserve(t.target))))];return{observe:i.observe.bind(i),unobserve:i.unobserve.bind(i),disconnect(){i.disconnect(),n.map((t=>t()))}}},handler(){this.$emit()}}],update:{read(){if(!this.isIntersecting)return!1;for(const t of P(this.target)){let e=!this.selActive||Et(t,this.selActive)?ha(t):"";!1!==e&&tt(t,"bdt-light bdt-dark",e)}}}};function ha(t){const e=ze(t),i=ze(window);if(!R(e,i))return!1;const{left:n,top:s,height:o,width:r}=e;let a;for(const e of[.25,.5,.75]){const l=t.ownerDocument.elementsFromPoint(Math.max(0,Math.min(n+r*e,i.width-1)),Math.max(0,Math.min(s+o/2,i.height-1)));for(const e of l){if(t.contains(e)||!ca(e)||e.closest('[class*="-leave"]')&&l.some((t=>e!==t&&Et(t,'[class*="-enter"]'))))continue;const i=re(e,"--bdt-inverse");if(i){if(i===a)return`bdt-${i}`;a=i;break}}}return a?`bdt-${a}`:""}function ca(t){if("visible"!==re(t,"visibility"))return!1;for(;t;){if("0"===re(t,"opacity"))return!1;t=Ct(t)}return!0}var da={mixins:[Qi,oo],props:{fill:String},data:{fill:"",clsWrapper:"bdt-leader-fill",clsHide:"bdt-leader-hide",attrFill:"data-fill"},computed:{fill:({fill:t},e)=>t||re(e,"--bdt-leader-fill-content")},connected(){[this.wrapper]=Te(this.$el,`<span class="${this.clsWrapper}">`)},disconnected(){Ee(this.wrapper.childNodes)},observe:un(),update:{read(){return{width:Math.trunc(this.$el.offsetWidth/2),fill:this.fill,hide:!this.matchMedia}},write({width:t,fill:e,hide:i}){it(this.wrapper,this.clsHide,i),st(this.wrapper,this.attrFill,new Array(t).join(e))},events:["resize"]}},ua={install:function({modal:t}){function e(e,i,n=V,s=V){i={bgClose:!1,escClose:!0,...i,i18n:{...t.i18n,...null==i?void 0:i.i18n}};const o=t.dialog(e(i),i);return p(new Promise((t=>{const e=Xt(o.$el,"hide",(()=>t(n())));Xt(o.$el,"submit","form",(i=>{i.preventDefault(),t(s(o)),e(),o.hide()}))})),{dialog:o})}t.dialog=function(e,i){const n=t(Pe(`<div><div class="bdt-modal-dialog">${e}</div></div>`),{stack:!0,role:"alertdialog",...i});return n.show(),Xt(n.$el,"hidden",(async()=>{await Promise.resolve(),n.$destroy(!0)}),{self:!0}),n},t.alert=function(t,i){return e((({i18n:e})=>`<div class="bdt-modal-body">${I(t)?t:we(t)}</div> <div class="bdt-modal-footer bdt-text-right"> <button class="bdt-button bdt-button-primary bdt-modal-close" autofocus>${e.ok}</button> </div>`),i)},t.confirm=function(t,i){return e((({i18n:e})=>`<form> <div class="bdt-modal-body">${I(t)?t:we(t)}</div> <div class="bdt-modal-footer bdt-text-right"> <button class="bdt-button bdt-button-default bdt-modal-close" type="button">${e.cancel}</button> <button class="bdt-button bdt-button-primary" autofocus>${e.ok}</button> </div> </form>`),i,(()=>Promise.reject()))},t.prompt=function(t,i,n){const s=e((({i18n:e})=>`<form class="bdt-form-stacked"> <div class="bdt-modal-body"> <label>${I(t)?t:we(t)}</label> <input class="bdt-input" autofocus> </div> <div class="bdt-modal-footer bdt-text-right"> <button class="bdt-button bdt-button-default bdt-modal-close" type="button">${e.cancel}</button> <button class="bdt-button bdt-button-primary">${e.ok}</button> </div> </form>`),n,(()=>null),(()=>r.value)),{$el:o}=s.dialog,r=Pe("input",o);return r.value=i||"",Xt(o,"show",(()=>r.select())),s},t.i18n={ok:"Ok",cancel:"Cancel"}},mixins:[es],data:{clsPage:"bdt-modal-page",selPanel:".bdt-modal-dialog",selClose:'[class*="bdt-modal-close"]'},events:[{name:"fullscreenchange webkitendfullscreen",capture:!0,handler(t){ve(t.target,"video")&&this.isToggled()&&!document.fullscreenElement&&this.hide()}},{name:"show",self:!0,handler(){et(this.panel,"bdt-margin-auto-vertical")?K(this.$el,"bdt-flex"):re(this.$el,"display","block"),Le(this.$el)}},{name:"hidden",self:!0,handler(){re(this.$el,"display",""),Q(this.$el,"bdt-flex")}}]};var fa={extends:rr,data:{targets:"> .bdt-parent",toggle:"> a",content:"> ul"}};const pa="bdt-navbar-transparent";var ga={extends:$r,props:{dropbarTransparentMode:Boolean},data:{clsDrop:"bdt-navbar-dropdown",selNavItem:".bdt-navbar-nav > li > a,a.bdt-navbar-item,button.bdt-navbar-item,.bdt-navbar-item a,.bdt-navbar-item button,.bdt-navbar-toggle",dropbarTransparentMode:!1},computed:{navbarContainer:(t,e)=>e.closest(".bdt-navbar-container")},watch:{items(){const t=et(this.$el,"bdt-navbar-justify"),e=Oe(".bdt-navbar-nav, .bdt-navbar-left, .bdt-navbar-right",this.$el);for(const i of e){re(i,"flexGrow",t?Oe(".bdt-navbar-nav > li > a, .bdt-navbar-item, .bdt-navbar-toggle",i).length:"")}}},events:[{name:"show",el:({dropContainer:t})=>t,handler({target:t}){"remove"===this.getTransparentMode(t)&&et(this.navbarContainer,pa)&&(Q(this.navbarContainer,pa),this._transparent=!0)}},{name:"hide",el:({dropContainer:t})=>t,async handler(){await new Promise((t=>setTimeout(t))),!this.getActive()&&this._transparent&&(K(this.navbarContainer,pa),this._transparent=null)}}],methods:{getTransparentMode(t){if(!this.navbarContainer)return;if(this.dropbar&&this.isDropbarDrop(t))return this.dropbarTransparentMode;const e=this.getDropdown(t);return e&&et(t,"bdt-dropbar")?e.inset?"behind":"remove":void 0},getDropbarOffset(t){const{top:e,height:i}=He(this.navbarContainer);return e+("behind"===this.dropbarTransparentMode?0:i+t)}}};var ma={mixins:[es],args:"mode",props:{mode:String,flip:Boolean,overlay:Boolean,swiping:Boolean},data:{mode:"slide",flip:!1,overlay:!1,clsPage:"bdt-offcanvas-page",clsContainer:"bdt-offcanvas-container",selPanel:".bdt-offcanvas-bar",clsFlip:"bdt-offcanvas-flip",clsContainerAnimation:"bdt-offcanvas-container-animation",clsSidebarAnimation:"bdt-offcanvas-bar-animation",clsMode:"bdt-offcanvas",clsOverlay:"bdt-offcanvas-overlay",selClose:".bdt-offcanvas-close",container:!1,swiping:!0},computed:{clsFlip:({flip:t,clsFlip:e})=>t?e:"",clsOverlay:({overlay:t,clsOverlay:e})=>t?e:"",clsMode:({mode:t,clsMode:e})=>`${e}-${t}`,clsSidebarAnimation:({mode:t,clsSidebarAnimation:e})=>"none"===t||"reveal"===t?"":e,clsContainerAnimation:({mode:t,clsContainerAnimation:e})=>"push"!==t&&"reveal"!==t?"":e,transitionElement({mode:t}){return"reveal"===t?Ct(this.panel):this.panel}},observe:bn({filter:({swiping:t})=>t}),update:{read(){this.isToggled()&&!xt(this.$el)&&this.hide()},events:["resize"]},events:[{name:"touchmove",self:!0,passive:!1,filter:({overlay:t})=>t,handler(t){t.cancelable&&t.preventDefault()}},{name:"show",self:!0,handler(){"reveal"!==this.mode||et(Ct(this.panel),this.clsMode)||(Ce(this.panel,"<div>"),K(Ct(this.panel),this.clsMode));const{body:t,scrollingElement:e}=document;K(t,this.clsContainer,this.clsFlip),re(t,"touch-action","pan-y pinch-zoom"),re(this.$el,"display","block"),re(this.panel,"maxWidth",e.clientWidth),K(this.$el,this.clsOverlay),K(this.panel,this.clsSidebarAnimation,"reveal"===this.mode?"":this.clsMode),Le(t),K(t,this.clsContainerAnimation),this.clsContainerAnimation&&(va().content+=",user-scalable=0")}},{name:"hide",self:!0,handler(){Q(document.body,this.clsContainerAnimation),re(document.body,"touch-action","")}},{name:"hidden",self:!0,handler(){this.clsContainerAnimation&&function(){const t=va();t.content=t.content.replace(/,user-scalable=0$/,"")}(),"reveal"===this.mode&&Ee(this.panel),Q(this.panel,this.clsSidebarAnimation,this.clsMode),Q(this.$el,this.clsOverlay),re(this.$el,"display",""),re(this.panel,"maxWidth",""),Q(document.body,this.clsContainer,this.clsFlip)}},{name:"swipeLeft swipeRight",handler(t){this.isToggled()&&h(t.type,"Left")^this.flip&&this.hide()}}]};function va(){return Pe('meta[name="viewport"]',document.head)||xe(document.head,'<meta name="viewport">')}var ba={mixins:[Qi],props:{selContainer:String,selContent:String,minHeight:Number},data:{selContainer:".bdt-modal",selContent:".bdt-modal-dialog",minHeight:150},computed:{container:({selContainer:t},e)=>e.closest(t),content:({selContent:t},e)=>e.closest(t)},observe:un({target:({container:t,content:e})=>[t,e]}),update:{read(){return!!(this.content&&this.container&&xt(this.$el))&&{max:Math.max(this.minHeight,Le(this.container)-(ze(this.content).height-Le(this.$el)))}},write({max:t}){re(this.$el,{minHeight:this.minHeight,maxHeight:t})},events:["resize"]}},wa={props:["width","height"],connected(){K(this.$el,"bdt-responsive-width"),re(this.$el,"aspectRatio",`${this.width}/${this.height}`)}},$a={props:{offset:Number},data:{offset:0},connected(){!function(t){xa.size||Xt(document,"click",ya);xa.add(t)}(this)},disconnected(){var t;t=this,xa.delete(t),xa.size||Jt(document,"click",ya)},methods:{async scrollTo(t){t=t&&Pe(t)||document.body,Zt(this.$el,"beforescroll",[this,t])&&(await Ci(t,{offset:this.offset}),Zt(this.$el,"scrolled",[this,t]))}}};const xa=new Set;function ya(t){if(!t.defaultPrevented)for(const e of xa)e.$el.contains(t.target)&&Mt(e.$el)&&(t.preventDefault(),window.location.href!==e.$el.href&&window.history.pushState({},"",e.$el.href),e.scrollTo(Pt(e.$el)))}const Sa="bdt-scrollspy-inview";var Ia={args:"cls",props:{cls:String,target:String,hidden:Boolean,margin:String,repeat:Boolean,delay:Number},data:()=>({cls:"",target:!1,hidden:!0,margin:"-1px",repeat:!1,delay:0}),computed:{elements:({target:t},e)=>t?Oe(t,e):[e]},watch:{elements(t){this.hidden&&re(Tt(t,`:not(.${Sa})`),"opacity",0)}},connected(){this.elementData=new Map},disconnected(){for(const[t,e]of this.elementData.entries())Q(t,Sa,(null==e?void 0:e.cls)||"");delete this.elementData},observe:fn({target:({elements:t})=>t,handler(t){const e=this.elementData;for(const{target:i,isIntersecting:n}of t){e.has(i)||e.set(i,{cls:at(i,"bdt-scrollspy-class")||this.cls});const t=e.get(i);!this.repeat&&t.show||(t.show=n)}this.$emit()},options:({margin:t})=>({rootMargin:t}),args:{intersecting:!1}}),update:[{write(t){for(const[e,i]of this.elementData.entries())!i.show||i.inview||i.queued?!i.show&&i.inview&&!i.queued&&this.repeat&&this.toggle(e,!1):(i.queued=!0,t.promise=(t.promise||Promise.resolve()).then((()=>new Promise((t=>setTimeout(t,this.delay))))).then((()=>{this.toggle(e,!0),setTimeout((()=>{i.queued=!1,this.$emit()}),300)})))}}],methods:{toggle(t,e){var i,n;const s=null==(i=this.elementData)?void 0:i.get(t);if(!s)return;let o;if(null==(n=s.off)||n.call(s),re(t,"opacity",!e&&this.hidden?0:""),it(t,Sa,e),it(t,s.cls),o=s.cls.match(/\bbdt-animation-[\w-]+/g)){const i=()=>Q(t,o);e?s.off=Gt(t,"animationcancel animationend",i,{self:!0}):i()}Zt(t,e?"inview":"outview"),s.inview=e}}},ka={props:{cls:String,closest:Boolean,scroll:Boolean,target:String,offset:Number},data:{cls:"bdt-active",closest:!1,scroll:!1,target:'a[href]:not([role="button"])',offset:0},computed:{links:({target:t},e)=>Oe(t,e).filter((t=>Mt(t))),elements({closest:t}){return this.links.map((e=>e.closest(t||"*")))}},watch:{links(t){this.scroll&&this.$create("scroll",t,{offset:this.offset})}},observe:[fn(),vn()],update:[{read(){const t=this.links.map((t=>Pt(t)||t.ownerDocument)),{length:e}=t;if(!e||!xt(this.$el))return!1;const i=Ai(t,!0),{scrollTop:n,scrollHeight:s}=i,o=_i(i);let r=!1;if(n>=s-o.height)r=e-1;else{const e=this.offset+ze(Mi()).height+.1*o.height;for(let i=0;i<t.length&&!(He(t[i]).top-o.top-e>0);i++)r=+i}return{active:r}},write({active:t}){const e=!1!==t&&!et(this.elements[t],this.cls);this.links.forEach((t=>t.blur()));for(let e=0;e<this.elements.length;e++)it(this.elements[e],this.cls,+e===t);e&&Zt(this.$el,"active",[t,this.elements[t]])},events:["scroll","resize"]}]},Ca={mixins:[Qi,oo],props:{position:String,top:null,bottom:null,start:null,end:null,offset:String,overflowFlip:Boolean,animation:String,clsActive:String,clsInactive:String,clsFixed:String,clsBelow:String,selTarget:String,showOnUp:Boolean,targetOffset:Number},data:{position:"top",top:!1,bottom:!1,start:!1,end:!1,offset:0,overflowFlip:!1,animation:"",clsActive:"bdt-active",clsInactive:"",clsFixed:"bdt-sticky-fixed",clsBelow:"bdt-sticky-below",selTarget:"",showOnUp:!1,targetOffset:!1},computed:{target:({selTarget:t},e)=>t&&Pe(t,e)||e},connected(){this.start=Ea(this.start||this.top),this.end=Ea(this.end||this.bottom),this.placeholder=Pe("+ .bdt-sticky-placeholder",this.$el)||Pe('<div class="bdt-sticky-placeholder"></div>'),this.isFixed=!1,this.setActive(!1)},beforeDisconnect(){this.isFixed&&(this.hide(),Q(this.target,this.clsInactive)),Aa(this.$el),ke(this.placeholder),this.placeholder=null},observe:[mn(),vn({target:()=>document.scrollingElement}),un({target:({$el:t})=>[t,Ma(t),document.scrollingElement],handler(t){this.$emit(this._data.resized&&t.some((({target:t})=>t===Ma(this.$el)))?"update":"resize"),this._data.resized=!0}})],events:[{name:"load hashchange popstate",el:()=>window,filter:({targetOffset:t})=>!1!==t,handler(){const{scrollingElement:t}=document;location.hash&&0!==t.scrollTop&&setTimeout((()=>{const e=He(Pe(location.hash)),i=He(this.$el);this.isFixed&&R(e,i)&&(t.scrollTop=Math.ceil(e.top-i.height-Ue(this.targetOffset,"height",this.placeholder)-Ue(this.offset,"height",this.placeholder)))}))}}],update:[{read({height:t,width:e,margin:i,sticky:n},s){if(this.inactive=!this.matchMedia||!xt(this.$el)||!this.$el.offsetHeight,this.inactive)return;const o=this.isFixed&&s.has("update");o&&(_a(this.target),this.hide()),this.active||(({height:t,width:e}=ze(this.$el)),i=re(this.$el,"margin")),o&&this.show();const r=Ue("100vh","height"),a=Le(window),l=Math.max(0,document.scrollingElement.scrollHeight-r);let h=this.position;this.overflowFlip&&t>r&&(h="top"===h?"bottom":"top");const c=this.isFixed?this.placeholder:this.$el;let d=Ue(this.offset,"height",n?this.$el:c);"bottom"===h&&(t<a||this.overflowFlip)&&(d+=a-t);const u=this.overflowFlip?0:Math.max(0,t+d-r),f=He(c).top,p=ze(this.$el).height,g=(!1===this.start?f:Ta(this.start,this.$el,f))-d,m=!1===this.end?l:Math.min(l,Ta(this.end,this.$el,f+t,!0)-p-d+u);return n=l&&!this.showOnUp&&g+d===f&&m===Math.min(l,Ta(!0,this.$el,0,!0)-p-d+u)&&"visible"===re(Ma(this.$el),"overflowY"),{start:g,end:m,offset:d,overflow:u,height:t,elHeight:p,width:e,margin:i,top:je(c)[0],sticky:n,viewport:r,maxScrollHeight:l}},write({height:t,width:e,margin:i,offset:n,sticky:s}){if((this.inactive||s||!this.isFixed)&&Aa(this.$el),this.inactive)return;s&&(t=e=i=0,re(this.$el,{position:"sticky",top:n}));const{placeholder:o}=this;re(o,{height:t,width:e,margin:i}),(Ct(o)!==Ct(this.$el)||s^_t(o)<_t(this.$el))&&((s?ye:Se)(this.$el,o),o.hidden=!0)},events:["resize"]},{read({scroll:t=0,dir:e="down",overflow:i,overflowScroll:n=0,start:s,end:o,elHeight:r,height:a,sticky:l,maxScrollHeight:h}){const c=Math.min(document.scrollingElement.scrollTop,h),d=t<=c?"down":"up",u=this.isFixed?this.placeholder:this.$el;return{dir:d,prevDir:e,scroll:c,prevScroll:t,below:c>He(u).top+(l?Math.min(a,r):a),offsetParentTop:He(u.offsetParent).top,overflowScroll:q(n+q(c,s,o)-q(t,s,o),0,i)}},write(t,e){const i=e.has("scroll"),{initTimestamp:n=0,dir:s,prevDir:o,scroll:r,prevScroll:a=0,top:l,start:h,below:c}=t;if(r<0||r===a&&i||this.showOnUp&&!i&&!this.isFixed)return;const d=Date.now();if((d-n>300||s!==o)&&(t.initScroll=r,t.initTimestamp=d),!(this.showOnUp&&!this.isFixed&&Math.abs(t.initScroll-r)<=30&&Math.abs(a-r)<=10))if(this.inactive||r<h||this.showOnUp&&(r<=h||"down"===s&&i||"up"===s&&!this.isFixed&&!c)){if(!this.isFixed)return void(me.inProgress(this.$el)&&l>r&&(me.cancel(this.$el),this.hide()));if(this.animation&&c){if(et(this.$el,"bdt-animation-leave"))return;me.out(this.$el,this.animation).then((()=>this.hide()),V)}else this.hide()}else this.isFixed?this.update():this.animation&&c?(this.show(),me.in(this.$el,this.animation).catch(V)):(_a(this.target),this.show())},events:["resize","resizeViewport","scroll"]}],methods:{show(){this.isFixed=!0,this.update(),this.placeholder.hidden=!1},hide(){const{offset:t,sticky:e}=this._data;this.setActive(!1),Q(this.$el,this.clsFixed,this.clsBelow),e?re(this.$el,"top",t):re(this.$el,{position:"",top:"",width:"",marginTop:""}),this.placeholder.hidden=!0,this.isFixed=!1},update(){let{width:t,scroll:e=0,overflow:i,overflowScroll:n=0,start:s,end:o,offset:r,offsetParentTop:a,sticky:l,below:h}=this._data;const c=0!==s||e>s;if(!l){let s="fixed";e>o&&(r+=o-a+n-i,s="absolute"),re(this.$el,{position:s,width:t,marginTop:0},"important")}re(this.$el,"top",r-n),this.setActive(c),it(this.$el,this.clsBelow,h),K(this.$el,this.clsFixed)},setActive(t){const e=this.active;this.active=t,t?(tt(this.target,this.clsInactive,this.clsActive),e!==t&&Zt(this.$el,"active")):(tt(this.target,this.clsActive,this.clsInactive),e!==t&&(_a(this.target),Zt(this.$el,"inactive")))}}};function Ta(t,e,i,n){if(!t)return 0;if(C(t)||I(t)&&t.match(/^-?\d/))return i+Ue(t,"height",e,!0);{const i=!0===t?Ma(e):Ot(t,e);return He(i).bottom-(n&&(null==i?void 0:i.contains(e))?_(re(i,"paddingBottom")):0)}}function Ea(t){return"true"===t||"false"!==t&&t}function Aa(t){re(t,{position:"",top:"",marginTop:"",width:""})}const Da="bdt-transition-disable";function _a(t){et(t,Da)||(K(t,Da),requestAnimationFrame((()=>Q(t,Da))))}function Ma(t){for(;t=Ct(t);)if(xt(t))return t}const Pa=".bdt-disabled *, .bdt-disabled, [disabled]";var Oa={mixins:[Gn],args:"connect",props:{connect:String,toggle:String,itemNav:String,active:Number,followFocus:Boolean,swiping:Boolean},data:{connect:"~.bdt-switcher",toggle:"> * > :first-child",itemNav:!1,active:0,cls:"bdt-active",attrItem:"bdt-switcher-item",selVertical:".bdt-nav",followFocus:!1,swiping:!0},computed:{connects:{get:({connect:t},e)=>Bt(t,e),observe:({connect:t})=>t},connectChildren(){return this.connects.map((t=>Dt(t))).flat()},toggles:({toggle:t},e)=>Oe(t,e),children(t,e){return Dt(e).filter((t=>this.toggles.some((e=>t.contains(e)))))}},watch:{connects(t){this.swiping&&re(t,"touchAction","pan-y pinch-zoom"),this.$emit()},connectChildren(){let t=Math.max(0,this.index());for(const e of this.connects)Dt(e).forEach(((e,i)=>it(e,this.cls,i===t)));this.$emit()},toggles(t){this.$emit();const e=this.index();this.show(~e?e:t[this.active]||t[0])}},connected(){st(this.$el,"role","tablist")},observe:[gn({targets:({connectChildren:t})=>t}),bn({target:({connects:t})=>t,filter:({swiping:t})=>t})],events:[{name:"click keydown",delegate:({toggle:t})=>t,handler(t){Et(t.current,Pa)||"click"!==t.type&&t.keyCode!==Nn||(t.preventDefault(),this.show(t.current))}},{name:"keydown",delegate:({toggle:t})=>t,handler(t){const{current:e,keyCode:i}=t,n=Et(this.$el,this.selVertical);let s=i===Hn?0:i===zn?"last":i===Fn&&!n||i===jn&&n?"previous":i===Ln&&!n||i===Wn&&n?"next":-1;if(~s){t.preventDefault();const i=this.toggles.filter((t=>!Et(t,Pa))),n=i[G(s,i,i.indexOf(e))];n.focus(),this.followFocus&&this.show(n)}}},{name:"click",el:({$el:t,connects:e,itemNav:i})=>e.concat(i?Bt(i,t):[]),delegate:({attrItem:t})=>`[${t}],[data-${t}]`,handler(t){t.target.closest("a,button")&&(t.preventDefault(),this.show(at(t.current,this.attrItem)))}},{name:"swipeRight swipeLeft",filter:({swiping:t})=>t,el:({connects:t})=>t,handler({type:t}){this.show(h(t,"Left")?"next":"previous")}}],update(){var t;for(const t of this.connects)ve(t,"ul")&&st(t,"role","presentation");st(Dt(this.$el),"role","presentation");for(const e in this.toggles){const i=this.toggles[e],n=null==(t=this.connects[0])?void 0:t.children[e];st(i,"role","tab"),n&&(i.id=Xs(this,i),n.id=Xs(this,n),st(i,"aria-controls",n.id),st(n,{role:"tabpanel","aria-labelledby":i.id}))}st(this.$el,"aria-orientation",Et(this.$el,this.selVertical)?"vertical":null)},methods:{index(){return d(this.children,(t=>et(t,this.cls)))},show(t){const e=this.toggles.filter((t=>!Et(t,Pa))),i=this.index(),n=G(!$(t)||c(e,t)?t:0,e,G(this.toggles[i],e)),s=G(e[n],this.toggles);this.children.forEach(((t,e)=>{it(t,this.cls,s===e),st(this.toggles[e],{"aria-selected":s===e,tabindex:s===e?null:-1})}));const o=i>=0&&i!==n;this.connects.forEach((async({children:t})=>{const e=f(t).filter(((t,e)=>e!==s&&et(t,this.cls)));await this.toggleElement(e,!1,o)&&await this.toggleElement(t[s],!0,o)}))}}},Ba={mixins:[Qi],extends:Oa,props:{media:Boolean},data:{media:960,attrItem:"bdt-tab-item",selVertical:".bdt-tab-left,.bdt-tab-right"},connected(){const t=et(this.$el,"bdt-tab-left")?"bdt-tab-left":!!et(this.$el,"bdt-tab-right")&&"bdt-tab-right";t&&this.$create("toggle",this.$el,{cls:t,mode:"media",media:this.media})}};var Na={mixins:[oo,Gn],args:"target",props:{href:String,target:null,mode:"list",queued:Boolean},data:{href:!1,target:!1,mode:"click",queued:!0},computed:{target:{get:({target:t},e)=>(t=Bt(t||e.hash,e)).length?t:[e],observe:({target:t})=>t}},connected(){c(this.mode,"media")||(kt(this.$el)||st(this.$el,"tabindex","0"),!this.cls&&ve(this.$el,"a")&&st(this.$el,"role","button"))},observe:gn({targets:({target:t})=>t}),events:[{name:ut,filter:({mode:t})=>c(t,"hover"),handler(t){this._preventClick=null,!ne(t)||S(this._showState)||this.$el.disabled||(Zt(this.$el,"focus"),Gt(document,ut,(()=>Zt(this.$el,"blur")),!0,(t=>!this.$el.contains(t.target))),c(this.mode,"click")&&(this._preventClick=!0))}},{name:`mouseenter mouseleave ${gt} ${mt} focus blur`,filter:({mode:t})=>c(t,"hover"),handler(t){if(ne(t)||this.$el.disabled)return;const e=c(["mouseenter",gt,"focus"],t.type),i=this.isToggled(this.target);e||!(!S(this._showState)||"blur"!==t.type&&Et(this.$el,":focus")||"blur"===t.type&&Et(this.$el,":hover"))?e&&S(this._showState)&&i!==this._showState||(this._showState=e?i:null,this.toggle("toggle"+(e?"show":"hide"))):i===this._showState&&(this._showState=null)}},{name:"keydown",filter:({$el:t,mode:e})=>c(e,"click")&&!ve(t,"input"),handler(t){32===t.keyCode&&(t.preventDefault(),this.$el.click())}},{name:"click",filter:({mode:t})=>["click","hover"].some((e=>c(t,e))),handler(t){let e;(this._preventClick||t.target.closest('a[href="#"], a[href=""]')||(e=t.target.closest("a[href]"))&&(!this.isToggled(this.target)||e.hash&&Et(this.target,e.hash)))&&t.preventDefault(),!this._preventClick&&c(this.mode,"click")&&this.toggle()}},{name:"mediachange",filter:({mode:t})=>c(t,"media"),el:({target:t})=>t,handler(t,e){e.matches^this.isToggled(this.target)&&this.toggle()}}],methods:{async toggle(t){if(!Zt(this.target,t||"toggle",[this]))return;if(ot(this.$el,"aria-expanded")&&st(this.$el,"aria-expanded",!this.isToggled(this.target)),!this.queued)return this.toggleElement(this.target);const e=this.target.filter((t=>et(t,this.clsLeave)));if(e.length){for(const t of this.target){const i=c(e,t);this.toggleElement(t,i,i)}return}const i=this.target.filter(this.isToggled);await this.toggleElement(i,!1)&&await this.toggleElement(this.target.filter((t=>!c(i,t))),!0)}}};return H(Object.freeze({__proto__:null,Accordion:rr,Alert:lr,Close:Gr,Cover:dr,Drop:pr,DropParentIcon:qr,Dropdown:pr,Dropnav:$r,FormCustom:yr,Grid:Sr,HeightMatch:Cr,HeightPlaceholder:Ar,HeightViewport:Dr,Icon:Wr,Img:na,Inverse:la,Leader:da,Margin:$n,Marker:Zr,Modal:ua,Nav:fa,NavParentIcon:Vr,Navbar:ga,NavbarParentIcon:qr,NavbarToggleIcon:Jr,Offcanvas:ma,OverflowAuto:ba,OverlayIcon:qr,PaginationNext:Qr,PaginationPrevious:ta,Responsive:wa,Scroll:$a,Scrollspy:Ia,ScrollspyNav:ka,SearchIcon:Rr,SlidenavNext:Xr,SlidenavPrevious:Xr,Spinner:Ur,Sticky:Ca,Svg:Br,Switcher:Oa,Tab:Ba,Toggle:Na,Totop:Kr,Video:cr}),((t,e)=>zs.component(e,t))),function(t){lt&&window.MutationObserver&&(document.body?requestAnimationFrame((()=>tr(t))):new MutationObserver(((e,i)=>{document.body&&(tr(t),i.disconnect())})).observe(document.documentElement,{childList:!0}))}(zs),H(Qo,((t,e)=>zs.component(e,t))),zs}));
!function(t,i){"use strict";var o=function(t,i){var o=t.find(".bdt-show-hide-container"),e=o.find(".bdt-show-hide");if(o.length){var s=e.data("settings"),n=s.id,l=s.scrollspy_time,d=s.scrollspy_top_offset,a=s.by_widget_selector_status,h=s.toggle_initially_open,f=s.source_selector,g=s.widget_visibility,c=s.widget_visibility_tablet,b=s.widget_visibility_mobile,w=s.viewport_lg,r=s.viewport_md,u=g;"undefined"!=s.widget_visibility&&null!=s.widget_visibility||(u=g=0),"undefined"!=s.widget_visibility_tablet&&null!=s.widget_visibility_tablet||(c=g),"undefined"!=s.widget_visibility_mobile&&null!=s.widget_visibility_mobile||(b=g),i(window).resize((function(){u=window.outerWidth>w?g:window.outerWidth>r?c:b})),i(e).find(".bdt-show-hide-title").off("click").on("click",(function(t){var o=i(this);!function(t,o,e,n,l){if("yes"===s.status_scrollspy&&"yes"!==a){if(i(t).find(".bdt-show-hide-item")){"yes"===s.hash_location&&(window.location.hash=i.trim(o));var d=i("#bdt-show-hide-"+o).find(".bdt-show-hide-item");i("html, body").animate({easing:"slow",scrollTop:i(d).offset().top-l},n,(function(){})).promise().then((function(){i(e).siblings(".bdt-show-hide-content").slideToggle("slow",(function(){i(e).parent().toggleClass("bdt-open")}))}))}}else"yes"===a?(i(e).parent().toggleClass("bdt-open"),i(e).siblings(".bdt-show-hide-content").slideToggle("slow",(function(){}))):i(e).siblings(".bdt-show-hide-content").slideToggle("slow",(function(){i(e).parent().toggleClass("bdt-open")}))}(e,n,o,l,d)})),i(window).on("load",(function(){0!=i(o).find("#bdt-show-hide-"+window.location.hash.substring(1)).length&&"yes"===s.hash_location&&function(){n=window.location.hash.substring(1);var t=i("#bdt-show-hide-"+n).find(".bdt-show-hide-title"),o=i("#bdt-show-hide-"+n).find(".bdt-show-hide-item");i("html, body").animate({easing:"slow",scrollTop:i(o).offset().top-d},l,(function(){})).promise().then((function(){i(t).siblings(".bdt-show-hide-content").slideToggle("slow",(function(){i(t).parent().toggleClass("bdt-open")}))}))}()})),"yes"===a&&(i(e).find(".bdt-show-hide-title").on("click",(function(){"yes"===s.status_scrollspy?i("html, body").animate({easing:"slow",scrollTop:i(f).offset().top-d},l,(function(){})).promise().then((function(){i(f).hasClass("bdt-fold-close")?(i(f).removeClass("bdt-fold-close toggle_initially_open").addClass("bdt-fold-open"),_(i(f),500)):i(f).css({height:u+"px"}).addClass("bdt-fold-close").removeClass("bdt-fold-open")})):i(f).hasClass("bdt-fold-close")?(i(f).removeClass("bdt-fold-close toggle_initially_open").addClass("bdt-fold-open"),_(i(f),500)):i(f).css({height:u+"px",transition:"all 1s ease-in-out 0s"}).addClass("bdt-fold-close").removeClass("bdt-fold-open")})),"yes"===h?i(f).addClass("bdt-fold-toggle bdt-fold-open toggle_initially_open"):i(f).addClass("bdt-fold-toggle bdt-fold-close toggle_initially_open"),i(window).resize((function(){p()})),p())}function _(t,i){var o=t.height(),e=t.css("height","auto").height();t.height(o),t.stop().animate({height:e},i)}function p(){i(f).hasClass("bdt-fold-close")?i(f).css({height:u+"px"}):_(i(f),500)}};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/bdt-toggle.default",o)}))}(jQuery,window.elementorFrontend);
!function(e){"use strict";e.fn.accordionjs=function(n){if(this.length>1)return this.each(function(){e(this).accordionjs(n)}),this;var c=this,t={isInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isObject:function(e){return"[object Object]"===Object.prototype.toString.call(e)},sectionIsOpen:function(e){return e.hasClass("acc_active")},getHash:function(){return window.location.hash?window.location.hash.substring(1):!1}},o=e.extend({closeAble:!1,closeOther:!0,slideSpeed:150,activeIndex:1,openSection:!1,beforeOpenSection:!1},n);e.each(o,function(e){var n=e.replace(/([A-Z])/g,"-$1").toLowerCase().toString(),t=c.data(n);(t||!1===t)&&(o[e]=t)}),(o.activeIndex===!1||o.closeOther===!1)&&(o.closeAble=!0);var i=function(){c.create(),c.openOnClick(),e(window).on("load",function(){c.openOnHash()}),e(window).on("hashchange",function(){c.openOnHash()})};return this.openSection=function(n,c){e(document).trigger("accjs_before_open_section",[n]),"function"==typeof o.beforeOpenSection&&o.beforeOpenSection.call(this,n),c=c>=0?c:o.slideSpeed;var t=n.children().eq(1);t.slideDown(c,function(){e(document).trigger("accjs_open_section",[n]),"function"==typeof o.openSection&&o.openSection.call(this,n)}),n.addClass("acc_active")},this.closeSection=function(n,c){e(document).trigger("accjs_before_close_section",[n]),"function"==typeof o.beforeCloseSection&&o.beforeCloseSection.call(this,n),c=c>=0?c:o.slideSpeed;var t=n.children().eq(1);t.slideUp(c,function(){e(document).trigger("accjs_close_section",[n]),"function"==typeof o.closeSection&&o.closeSection.call(this,n)}),n.removeClass("acc_active")},this.closeOtherSections=function(n,t){var o=n.closest(".accordionjs").children();e(o).each(function(){c.closeSection(e(this).not(n),t)})},this.create=function(){c.addClass("accordionjs");var n=c.children();if(e.each(n,function(n,t){c.createSingleSection(e(t))}),t.isArray(o.activeIndex))for(var i=o.activeIndex,s=0;s<i.length;s++)c.openSection(n.eq(i[s]-1),0);else o.activeIndex>1?c.openSection(n.eq(o.activeIndex-1),0):!1!==o.activeIndex&&c.openSection(n.eq(0),0)},this.createSingleSection=function(n){var c=n.children();n.addClass("acc_section"),e(c[0]).addClass("acc_head"),e(c[1]).addClass("acc_content"),n.hasClass("acc_active")||n.children(".acc_content").hide()},this.openOnClick=function(){c.on("click",".acc_head",function(n){n.stopImmediatePropagation();var i=e(this).closest(".acc_section");t.sectionIsOpen(i)?o.closeAble?c.closeSection(i):1===c.children().length&&c.closeSection(i):o.closeOther?(c.closeOtherSections(i),c.openSection(i)):c.openSection(i)})},this.openOnHash=function(){if(t.getHash()){var n=e("#"+t.getHash());n.hasClass("acc_section")&&(c.openSection(n),o.closeOther&&c.closeOtherSections(n),e("html, body").animate({scrollTop:parseInt(n.offset().top)-50},150))}},i(),this}}(jQuery);
!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));
!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s="data-"+r,a=document.querySelectorAll("["+s+"]"),h=document.querySelectorAll(".js-"+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+"-options",l=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(a){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+a))}var h=new e(t,i);l&&l.data(t,n,h)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r=document.documentElement.style,s="string"==typeof r.transition?"transition":"WebkitTransition",a="string"==typeof r.transform?"transform":"WebkitTransform",h={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:a,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=parseFloat(n),s=parseFloat(o),a=this.layout.size;-1!=n.indexOf("%")&&(r=r/100*a.width),-1!=o.indexOf("%")&&(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[h];e[u]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),o&&!this.isTransitioning)return void this.layoutPosition();var r=t-i,s=e-n,a={};a.transform=this.getTranslate(r,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(h,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(h,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(f)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var h=t.console,u=t.jQuery,d=function(){},l=0,c={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){s++,s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(r,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var m={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&1>s?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i});
!function(a){"use strict";var b=a.Masonry;b.prototype._remapV2Options=function(){this._remapOption("gutterWidth","gutter"),this._remapOption("isResizable","isResizeBound"),this._remapOption("isRTL","isOriginLeft",function(a){return!a});var a=this.options.isAnimated;if(void 0!==a&&(this.options.transitionDuration=a?this.options.transitionDuration:0),void 0===a||a){var b=this.options.animationOptions,c=b&&b.duration;c&&(this.options.transitionDuration="string"==typeof c?c:c+"ms")}},b.prototype._remapOption=function(a,b,c){var d=this.options[a];void 0!==d&&(this.options[b]=c?c(d):d)};var c=b.prototype._create;b.prototype._create=function(){var a=this;this._remapV2Options(),c.apply(this,arguments),setTimeout(function(){jQuery(a.element).addClass("masonry")},0)};var d=b.prototype.layout;b.prototype.layout=function(){this._remapV2Options(),d.apply(this,arguments)};var e=b.prototype.option;b.prototype.option=function(){e.apply(this,arguments),this._remapV2Options()};var f=b.prototype._itemize;b.prototype._itemize=function(a){var b=f.apply(this,arguments);return jQuery(a).addClass("masonry-brick"),b};var g=b.prototype.measureColumns;b.prototype.measureColumns=function(){var a=this.options.columnWidth;a&&"function"==typeof a&&(this.getContainerWidth(),this.columnWidth=a(this.containerWidth)),g.apply(this,arguments)},b.prototype.reload=function(){this.reloadItems.apply(this,arguments),this.layout.apply(this)};var h=b.prototype.destroy;b.prototype.destroy=function(){var a=this.getItemElements();jQuery(this.element).removeClass("masonry"),jQuery(a).removeClass("masonry-brick"),h.apply(this,arguments)}}(window);
(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a,b){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),null!=a.scrollContainer&&(this.config.scrollContainer=document.querySelector(a.scrollContainer)),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(b){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf("animationend")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue("-"+i+"-"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this);
(function(){
var originalRequire=typeof window.require==='function' ? window.require:null;
window.require=function(module){
if(module==='jquery'){
return window.jQuery||window.$;
}
if(originalRequire){
return originalRequire(module);
}
return undefined;
};})();
var DataTables=(()=>{var Ds=Object.create;var Kn=Object.defineProperty;var Rs=Object.getOwnPropertyDescriptor;var Ps=Object.getOwnPropertyNames;var As=Object.getPrototypeOf,ks=Object.prototype.hasOwnProperty;var ae=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,n)=>(typeof require!="undefined"?require:t)[n]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Ls=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Ps(t))!ks.call(e,s)&&s!==n&&Kn(e,s,{get:()=>t[s],enumerable:!(r=Rs(t,s))||r.enumerable});return e};var oe=(e,t,n)=>(n=e!=null?Ds(As(e)):{},Ls(t||!e||!e.__esModule?Kn(n,"default",{value:e,enumerable:!0}):n,e));var xi=oe(ae("jquery"),1);var gr=oe(ae("jquery"),1);var S=gr.default,V=function(e,t){if(V.factory(e,t))return V;if(this instanceof V)return S(e).DataTable(t);t=e;var n=this,r=t===void 0,s=this.length;return r&&(t={}),this.api=function(){return new se(this)},this.each(function(){var i={},a=s>1?lr(i,t,!0):t,l=0,u,h=this.getAttribute("id"),f=V.defaults,b=S(this);if(this.nodeName.toLowerCase()!="table"){Ie(null,0,"Non-table node initialisation ("+this.nodeName+")",2);return}a.on&&a.on.options&&dr(b,"options",a.on.options),b.trigger("options.dt",a),er(f),Cr(f.column),ze(f,f,!0),ze(f.column,f.column,!0),ze(f,S.extend(a,Hr(b.data())),!0);var v=V.settings;for(l=0,u=v.length;l<u;l++){var m=v[l];if(m.nTable==this||m.nTHead&&m.nTHead.parentNode==this||m.nTFoot&&m.nTFoot.parentNode==this){var C=a.bRetrieve!==void 0?a.bRetrieve:f.bRetrieve,w=a.bDestroy!==void 0?a.bDestroy:f.bDestroy;if(r||C)return m.oInstance;if(w){new V.Api(m).destroy();break}else{Ie(m,0,"Cannot reinitialise DataTable",3);return}}if(m.sTableId==this.id){v.splice(l,1);break}}(h===null||h==="")&&(h="DataTables_Table_"+V.ext._unique++,this.id=h),b.children("colgroup").remove();var c=S.extend(!0,{},V.models.oSettings,{sDestroyWidth:b[0].style.width,sInstance:h,sTableId:h,colgroup:S("<colgroup>"),fastData:function(T,D,A){return Ne(c,T,D,A)}});c.nTable=this,c.oInit=a,v.push(c),c.api=new se(c),c.oInstance=n.length===1?n:b.dataTable(),er(a),a.aLengthMenu&&!a.iDisplayLength&&(a.iDisplayLength=Array.isArray(a.aLengthMenu[0])?a.aLengthMenu[0][0]:S.isPlainObject(a.aLengthMenu[0])?a.aLengthMenu[0].value:a.aLengthMenu[0]),a=lr(S.extend(!0,{},f),a),Je(c.oFeatures,a,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),Je(c,a,["ajax","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","iStateDuration","bSortCellsTop","iTabIndex","sDom","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId","caption","layout","orderDescReverse","orderIndicators","orderHandler","titleRow","typeDetect","columnTitleTag",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),Je(c.oScroll,a,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Je(c.oLanguage,a,"fnInfoCallback"),Le(c,"aoDrawCallback",a.fnDrawCallback),Le(c,"aoStateSaveParams",a.fnStateSaveParams),Le(c,"aoStateLoadParams",a.fnStateLoadParams),Le(c,"aoStateLoaded",a.fnStateLoaded),Le(c,"aoRowCallback",a.fnRowCallback),Le(c,"aoRowCreatedCallback",a.fnCreatedRow),Le(c,"aoHeaderCallback",a.fnHeaderCallback),Le(c,"aoFooterCallback",a.fnFooterCallback),Le(c,"aoInitComplete",a.fnInitComplete),Le(c,"aoPreDrawCallback",a.fnPreDrawCallback),c.rowIdFn=mt(a.rowId),a.on&&Object.keys(a.on).forEach(function(T){dr(b,T,a.on[T])}),Es(c);var o=c.oClasses;S.extend(o,V.ext.classes,a.oClasses),b.addClass(o.table),c.oFeatures.bPaginate||(a.iDisplayStart=0),c.iInitDisplayStart===void 0&&(c.iInitDisplayStart=a.iDisplayStart,c._iDisplayStart=a.iDisplayStart);var d=a.iDeferLoading;if(d!==null){c.deferLoading=!0;var p=Array.isArray(d);c._iRecordsDisplay=p?d[0]:d,c._iRecordsTotal=p?d[1]:d}var _=[],x=this.getElementsByTagName("thead"),P=Ar(c,x[0]);if(a.aoColumns)_=a.aoColumns;else if(P.length)for(l=0,u=P[0].length;l<u;l++)_.push(null);for(l=0,u=_.length;l<u;l++)Tr(c);Ms(c,a.aoColumnDefs,_,P,function(T,D){bn(c,T,D)});var I=b.children("tbody").find("tr:first-child").eq(0);if(I.length){var B=function(T,D){return T.getAttribute("data-"+D)!==null?D:null};S(I[0]).children("th, td").each(function(T,D){var A=c.aoColumns[T];if(A||Ie(c,0,"Incorrect column count",18),A.mData===T){var L=B(D,"sort")||B(D,"order"),N=B(D,"filter")||B(D,"search");(L!==null||N!==null)&&(A.mData={_:T+".display",sort:L!==null?T+".@data-"+L:void 0,type:L!==null?T+".@data-"+L:void 0,filter:N!==null?T+".@data-"+N:void 0},A._isArrayHost=!0,bn(c,T))}})}Le(c,"aoDrawCallback",nn);var E=c.oFeatures;if(a.bStateSave&&(E.bStateSave=!0),a.aaSorting===void 0){var F=c.aaSorting;for(l=0,u=F.length;l<u;l++)F[l][1]=c.aoColumns[l].asSorting[0]}_n(c),Le(c,"aoDrawCallback",function(){(c.bSorted||Se(c)==="ssp"||E.bDeferRender)&&_n(c)});var U=b.children("caption");c.caption&&(U.length===0&&(U=S("<caption/>").prependTo(b)),U.html(c.caption)),U.length&&(U[0]._captionSide=U.css("caption-side"),c.captionNode=U[0]),U.length?c.colgroup.insertAfter(U):c.colgroup.prependTo(c.nTable),x.length===0&&(x=S("<thead/>").appendTo(b)),c.nTHead=x[0];var R=b.children("tbody");R.length===0&&(R=S("<tbody/>").insertAfter(x)),c.nTBody=R[0];var g=b.children("tfoot");g.length===0&&(g=S("<tfoot/>").insertAfter(x)),c.nTFoot=g[0],c.aiDisplay=c.aiDisplayMaster.slice(),c.bInitialised=!0;var y=c.oLanguage;S.extend(!0,y,a.oLanguage),y.sUrl?S.ajax({dataType:"json",url:y.sUrl,success:function(T){ze(f.oLanguage,T),S.extend(!0,y,T,c.oInit.oLanguage),ie(c,null,"i18n",[c],!0),jt(c)},error:function(){Ie(c,0,"i18n file loading error",21),jt(c)}}):(ie(c,null,"i18n",[c],!0),jt(c))}),n=null,this};V.ext=pe={builder:"-source-",buttons:{},ccContent:{},classes:{},errMode:"alert",escape:{attributes:!1},feature:[],features:{},search:[],selector:{cell:[],column:[],row:[]},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{className:{},detect:[],render:{},search:{},order:{}},_unique:0,fnVersionCheck:V.fnVersionCheck,iApiIndex:0,sVersion:V.version};S.extend(pe,{afnFiltering:pe.search,aTypes:pe.type.detect,ofnSearch:pe.type.search,oSort:pe.type.order,afnSortData:pe.order,aoFeatures:pe.feature,oStdClasses:pe.classes,oPagination:pe.pager});S.extend(V.ext.classes,{container:"dt-container",empty:{row:"dt-empty"},info:{container:"dt-info"},layout:{row:"dt-layout-row",cell:"dt-layout-cell",tableRow:"dt-layout-table",tableCell:"",start:"dt-layout-start",end:"dt-layout-end",full:"dt-layout-full"},length:{container:"dt-length",select:"dt-input"},order:{canAsc:"dt-orderable-asc",canDesc:"dt-orderable-desc",isAsc:"dt-ordering-asc",isDesc:"dt-ordering-desc",none:"dt-orderable-none",position:"sorting_"},processing:{container:"dt-processing"},scrolling:{body:"dt-scroll-body",container:"dt-scroll",footer:{self:"dt-scroll-foot",inner:"dt-scroll-footInner"},header:{self:"dt-scroll-head",inner:"dt-scroll-headInner"}},search:{container:"dt-search",input:"dt-input"},table:"dataTable",tbody:{cell:"",row:""},thead:{cell:"",row:""},tfoot:{cell:"",row:""},paging:{active:"current",button:"dt-paging-button",container:"dt-paging",disabled:"disabled",nav:""}});var pe,se,q,le,fn={},Is=/[\r\n\u2028]/g,xn=/<([^>]*>)/g,Ns=Math.pow(2,28),Zn=/^\d{2,4}[./-]\d{1,2}[./-]\d{1,2}([T ]{1}\d{1,2}[:.]\d{2}([.:]\d{2})?)?$/,Bs=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),Sn=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Te=function(e){return!e||e===!0||e==="-"},br=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},yr=function(e,t){return fn[t]||(fn[t]=new RegExp(wn(t),"g")),typeof e=="string"&&t!=="."?e.replace(/\./g,"").replace(fn[t],"."):e},At=function(e,t,n,r){var s=typeof e,i=s==="string";return s==="number"||s==="bigint"||r&&Te(e)?!0:(t&&i&&(e=yr(e,t)),n&&i&&(e=e.replace(Sn,"")),!isNaN(parseFloat(e))&&isFinite(e))},Fs=function(e){return Te(e)||typeof e=="string"},Gt=function(e,t,n,r){if(r&&Te(e))return!0;if(typeof e=="string"&&e.match(/<(input|select)/i))return null;var s=Fs(e);return s&&At(Ge(e),t,n,r)?!0:null},ge=function(e,t,n){var r=[],s=0,i=e.length;if(n!==void 0)for(;s<i;s++)e[s]&&e[s][t]&&r.push(e[s][t][n]);else for(;s<i;s++)e[s]&&r.push(e[s][t]);return r},It=function(e,t,n,r){var s=[],i=0,a=t.length;if(r!==void 0)for(;i<a;i++)e[t[i]]&&e[t[i]][n]&&s.push(e[t[i]][n][r]);else for(;i<a;i++)e[t[i]]&&s.push(e[t[i]][n]);return s},Xe=function(e,t){var n=[],r;t===void 0?(t=0,r=e):(r=t,t=e);for(var s=t;s<r;s++)n.push(s);return n},wr=function(e){for(var t=[],n=0,r=e.length;n<r;n++)e[n]&&t.push(e[n]);return t},Ge=function(e,t){if(!e||typeof e!="string")return e;if(e.length>Ns)throw new Error("Exceeded max str len");var n;e=e.replace(xn,t||"");do n=e,e=e.replace(/<script/i,"");while(e!==n);return n},it=function(e){return Array.isArray(e)&&(e=e.join(",")),typeof e=="string"?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):e},Ut=function(e,t){if(typeof e!="string")return e;var n=e.normalize?e.normalize("NFD"):e;return n.length!==e.length?(t===!0?e+" ":"")+n.replace(/[\u0300-\u036f]/g,""):n},Os=function(e){if(e.length<2)return!0;for(var t=e.slice().sort(),n=t[0],r=1,s=t.length;r<s;r++){if(t[r]===n)return!1;n=t[r]}return!0},bt=function(e){if(Array.from&&Set)return Array.from(new Set(e));if(Os(e))return e.slice();var t=[],n,r,s=e.length,i,a=0;e:for(r=0;r<s;r++){for(n=e[r],i=0;i<a;i++)if(t[i]===n)continue e;t.push(n),a++}return t},_r=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)_r(e,t[n]);else e.push(t);return e};function vt(e,t){t&&t.split(" ").forEach(function(n){n&&e.classList.add(n)})}V.util={diacritics:function(e,t){var n=typeof e;if(n!=="function")return Ut(e,t);Ut=e},debounce:function(e,t){var n;return function(){var r=this,s=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(r,s)},t||250)}},throttle:function(e,t){var n=t!==void 0?t:200,r,s;return function(){var i=this,a=+new Date,l=arguments;r&&a<r+n?(clearTimeout(s),s=setTimeout(function(){r=void 0,e.apply(i,l)},n)):(r=a,e.apply(i,l))}},escapeRegex:function(e){return e.replace(Bs,"\\$1")},set:function(e){if(S.isPlainObject(e))return V.util.set(e._);if(e===null)return function(){};if(typeof e=="function")return function(n,r,s){e(n,"set",r,s)};if(typeof e=="string"&&(e.indexOf(".")!==-1||e.indexOf("[")!==-1||e.indexOf("(")!==-1)){var t=function(n,r,s){for(var i=nr(s),a,l=i[i.length-1],u,h,f,b,v=0,m=i.length-1;v<m;v++){if(i[v]==="__proto__"||i[v]==="constructor")throw new Error("Cannot set prototype values");if(u=i[v].match(Pt),h=i[v].match(ht),u){if(i[v]=i[v].replace(Pt,""),n[i[v]]=[],a=i.slice(),a.splice(0,v+1),b=a.join("."),Array.isArray(r))for(var C=0,w=r.length;C<w;C++)f={},t(f,r[C],b),n[i[v]].push(f);else n[i[v]]=r;return}else h&&(i[v]=i[v].replace(ht,""),n=n[i[v]](r));(n[i[v]]===null||n[i[v]]===void 0)&&(n[i[v]]={}),n=n[i[v]]}l.match(ht)?n=n[l.replace(ht,"")](r):n[l.replace(Pt,"")]=r};return function(n,r){return t(n,r,e)}}else return function(n,r){n[e]=r}},get:function(e){if(S.isPlainObject(e)){var t={};return S.each(e,function(r,s){s&&(t[r]=V.util.get(s))}),function(r,s,i,a){var l=t[s]||t._;return l!==void 0?l(r,s,i,a):r}}else{if(e===null)return function(r){return r};if(typeof e=="function")return function(r,s,i,a){return e(r,s,i,a)};if(typeof e=="string"&&(e.indexOf(".")!==-1||e.indexOf("[")!==-1||e.indexOf("(")!==-1)){var n=function(r,s,i){var a,l,u,h;if(i!=="")for(var f=nr(i),b=0,v=f.length;b<v;b++){if(a=f[b].match(Pt),l=f[b].match(ht),a){if(f[b]=f[b].replace(Pt,""),f[b]!==""&&(r=r[f[b]]),u=[],f.splice(0,b+1),h=f.join("."),Array.isArray(r))for(var m=0,C=r.length;m<C;m++)u.push(n(r[m],s,h));var w=a[0].substring(1,a[0].length-1);r=w===""?u:u.join(w);break}else if(l){f[b]=f[b].replace(ht,""),r=r[f[b]]();continue}if(r===null||r[f[b]]===null)return null;if(r===void 0||r[f[b]]===void 0)return;r=r[f[b]]}return r};return function(r,s){return n(r,s,e)}}else return function(r){return r[e]}}},stripHtml:function(e,t){var n=typeof e;if(n==="function"){Ge=e;return}else if(n==="string")return Ge(e,t);return e},escapeHtml:function(e){var t=typeof e;if(t==="function"){it=e;return}else if(t==="string"||Array.isArray(e))return it(e);return e},unique:bt};function Qt(e){var t="a aa ai ao as b fn i m o s ",n,r,s={};S.each(e,function(i){n=i.match(/^([^A-Z]+?)([A-Z])/),n&&t.indexOf(n[1]+" ")!==-1&&(r=i.replace(n[0],n[2].toLowerCase()),s[r]=i,n[1]==="o"&&Qt(e[i]))}),e._hungarianMap=s}function ze(e,t,n){e._hungarianMap||Qt(e);var r;S.each(t,function(s){r=e._hungarianMap[s],r!==void 0&&(n||t[r]===void 0)&&(r.charAt(0)==="o"?(t[r]||(t[r]={}),S.extend(!0,t[r],t[s]),ze(e[r],t[r],n)):t[r]=t[s])})}var _e=function(e,t,n){e[t]!==void 0&&(e[n]=e[t])};function er(e){_e(e,"ordering","bSort"),_e(e,"orderMulti","bSortMulti"),_e(e,"orderClasses","bSortClasses"),_e(e,"orderCellsTop","bSortCellsTop"),_e(e,"order","aaSorting"),_e(e,"orderFixed","aaSortingFixed"),_e(e,"paging","bPaginate"),_e(e,"pagingType","sPaginationType"),_e(e,"pageLength","iDisplayLength"),_e(e,"searching","bFilter"),typeof e.sScrollX=="boolean"&&(e.sScrollX=e.sScrollX?"100%":""),typeof e.scrollX=="boolean"&&(e.scrollX=e.scrollX?"100%":""),typeof e.bSort=="object"?(e.orderIndicators=e.bSort.indicators!==void 0?e.bSort.indicators:!0,e.orderHandler=e.bSort.handler!==void 0?e.bSort.handler:!0,e.bSort=!0):e.bSort===!1?(e.orderIndicators=!1,e.orderHandler=!1):e.bSort===!0&&(e.orderIndicators=!0,e.orderHandler=!0),typeof e.bSortCellsTop=="boolean"&&(e.titleRow=e.bSortCellsTop);var t=e.aoSearchCols;if(t)for(var n=0,r=t.length;n<r;n++)t[n]&&ze(V.models.oSearch,t[n]);e.serverSide&&!e.searchDelay&&(e.searchDelay=400)}function Cr(e){_e(e,"orderable","bSortable"),_e(e,"orderData","aDataSort"),_e(e,"orderSequence","asSorting"),_e(e,"orderDataType","sortDataType");var t=e.aDataSort;typeof t=="number"&&!Array.isArray(t)&&(e.aDataSort=[t])}function Es(e){if(!V.__browser){var t={};V.__browser=t;var n=S("<div/>").css({position:"fixed",top:0,left:-1*window.pageXOffset,height:1,width:1,overflow:"hidden"}).append(S("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(S("<div/>").css({width:"100%",height:10}))).appendTo("body"),r=n.children(),s=r.children();t.barWidth=r[0].offsetWidth-r[0].clientWidth,t.bScrollbarLeft=Math.round(s.offset().left)!==1,n.remove()}S.extend(e.oBrowser,V.__browser),e.oScroll.iBarWidth=V.__browser.barWidth}function Tr(e){var t=V.defaults.column,n=e.aoColumns.length,r=S.extend({},V.models.oColumn,t,{aDataSort:t.aDataSort?t.aDataSort:[n],mData:t.mData?t.mData:n,idx:n,searchFixed:{},colEl:S("<col>").attr("data-dt-column",n)});e.aoColumns.push(r);var s=e.aoPreSearchCols;s[n]=S.extend({},V.models.oSearch,s[n])}function bn(e,t,n){var r=e.aoColumns[t];if(n!=null){Cr(n),ze(V.defaults.column,n,!0),n.mDataProp!==void 0&&!n.mData&&(n.mData=n.mDataProp),n.sType&&(r._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className);var s=r.sClass;S.extend(r,n),Je(r,n,"sWidth","sWidthOrig"),s!==r.sClass&&(r.sClass=s+" "+r.sClass),n.iDataSort!==void 0&&(r.aDataSort=[n.iDataSort]),Je(r,n,"aDataSort")}var i=r.mData,a=mt(i);if(r.mRender&&Array.isArray(r.mRender)){var l=r.mRender.slice(),u=l.shift();r.mRender=V.render[u].apply(window,l)}r._render=r.mRender?mt(r.mRender):null;var h=function(f){return typeof f=="string"&&f.indexOf("@")!==-1};r._bAttrSrc=S.isPlainObject(i)&&(h(i.sort)||h(i.type)||h(i.filter)),r._setter=null,r.fnGetData=function(f,b,v){var m=a(f,b,void 0,v);return r._render&&b?r._render(m,b,f,v):m},r.fnSetData=function(f,b,v){return rt(i)(f,b,v)},typeof i!="number"&&!r._isArrayHost&&(e._rowReadObject=!0),e.oFeatures.bSort||(r.bSortable=!1)}function Jt(e){ti(e),Vs(e);var t=e.oScroll;(t.sY!==""||t.sX!=="")&&Nr(e),ie(e,null,"column-sizing",[e])}function Vs(e){for(var t=e.aoColumns,n=0;n<t.length;n++){var r=xr(e,[n],!1,!1);t[n].colEl.css("width",r),e.oScroll.sX&&t[n].colEl.css("min-width",r)}}function Dn(e,t){var n=Rn(e,"bVisible");return typeof n[t]=="number"?n[t]:null}function Nt(e,t){var n=Rn(e,"bVisible"),r=n.indexOf(t);return r!==-1?r:null}function Kt(e){var t=e.aoHeader,n=e.aoColumns,r=0;if(t.length)for(var s=0,i=t[0].length;s<i;s++)n[s].bVisible&&S(t[0][s].cell).css("display")!=="none"&&r++;return r}function Rn(e,t){var n=[];return e.aoColumns.map(function(r,s){r[t]&&n.push(s)}),n}function hn(e,t){return t===!0?e._name:t}function Zt(e){var t=e.aoColumns,n=e.aoData,r=V.ext.type.detect,s,i,a,l,u,h,f,b,v;for(s=0,i=t.length;s<i;s++){if(f=t[s],v=[],!f.sType&&f._sManualType)f.sType=f._sManualType;else if(!f.sType){if(!e.typeDetect)return;for(a=0,l=r.length;a<l;a++){var m=r[a],C=m.oneOf,w=m.allOf||m,c=m.init,o=!1;if(b=null,c&&(b=hn(m,c(e,f,s)),b)){f.sType=b;break}for(u=0,h=n.length;u<h&&!(n[u]&&(v[u]===void 0&&(v[u]=Ne(e,u,s,"type")),C&&!o&&(o=hn(m,C(v[u],e))),b=hn(m,w(v[u],e)),!b&&a!==r.length-3||b==="html"&&!Te(v[u])));u++);if(C&&o&&b||!C&&b){f.sType=b;break}}f.sType||(f.sType="string")}var d=pe.type.className[f.sType];d&&(tr(e.aoHeader,s,d),tr(e.aoFooter,s,d));var p=pe.type.render[f.sType];p&&!f._render&&(f._render=V.util.get(p),Hs(e,s))}}function Hs(e,t){for(var n=e.aoData,r=0;r<n.length;r++)if(n[r].nTr){var s=Ne(e,r,t,"display");n[r].displayData[t]=s,$t(n[r].anCells[t],s)}}function tr(e,t,n){e.forEach(function(r){r[t]&&r[t].unique&&vt(r[t].cell,n)})}function Ms(e,t,n,r,s){var i,a,l,u,h,f,b,v=e.aoColumns;if(n)for(i=0,a=n.length;i<a;i++)n[i]&&n[i].name&&(v[i].sName=n[i].name);if(t)for(i=t.length-1;i>=0;i--){b=t[i];var m=b.target!==void 0?b.target:b.targets!==void 0?b.targets:b.aTargets;for(Array.isArray(m)||(m=[m]),l=0,u=m.length;l<u;l++){var C=m[l];if(typeof C=="number"&&C>=0){for(;v.length<=C;)Tr(e);s(C,b)}else if(typeof C=="number"&&C<0)s(v.length+C,b);else if(typeof C=="string")for(h=0,f=v.length;h<f;h++)C==="_all"?s(h,b):C.indexOf(":name")!==-1?v[h].sName===C.replace(":name","")&&s(h,b):r.forEach(function(w){if(w[h]){var c=S(w[h].cell);C.match(/^[a-z][\w-]*$/i)&&(C="."+C),c.is(C)&&s(h,b)}})}}if(n)for(i=0,a=n.length;i<a;i++)s(i,n[i])}function xr(e,t,n,r){Array.isArray(t)||(t=Pn(t));for(var s=0,i,a=e.aoColumns,l=0,u=t.length;l<u;l++){var h=a[t[l]],f=n?h.sWidthOrig:h.sWidth;if(!(!r&&h.bVisible===!1)){if(f==null)return null;if(typeof f=="number")i="px",s+=f;else{var b=f.match(/([\d\.]+)([^\d]*)/);b&&(s+=b[1]*1,i=b.length===3?b[2]:"px")}}}return s+i}function Pn(e){var t=S(e).closest("[data-dt-column]").attr("data-dt-column");return t?t.split(",").map(function(n){return n*1}):[]}function at(e,t,n,r){var s=e.aoData.length,i=S.extend(!0,{},V.models.oRow,{src:n?"dom":"data",idx:s});i._aData=t,e.aoData.push(i);for(var a=e.aoColumns,l=0,u=a.length;l<u;l++)a[l].sType=null;e.aiDisplayMaster.push(s);var h=e.rowIdFn(t);return h!==void 0&&(e.aIds[h]=i),(n||!e.oFeatures.bDeferRender)&&Dr(e,s,n,r),s}function An(e,t){var n;return t instanceof S||(t=S(t)),t.map(function(r,s){return n=Sr(e,s),at(e,n.data,s,n.cells)})}function Ne(e,t,n,r){r==="search"?r="filter":r==="order"&&(r="sort");var s=e.aoData[t];if(s){var i=e.iDraw,a=e.aoColumns[n],l=s._aData,u=a.sDefaultContent,h=a.fnGetData(l,r,{settings:e,row:t,col:n});if(r!=="display"&&h&&typeof h=="object"&&h.nodeName&&(h=h.innerHTML),h===void 0)return e.iDrawError!=i&&u===null&&(Ie(e,0,"Requested unknown parameter "+(typeof a.mData=="function"?"{function}":"'"+a.mData+"'")+" for row "+t+", column "+n,4),e.iDrawError=i),u;if((h===l||h===null)&&u!==null&&r!==void 0)h=u;else if(typeof h=="function")return h.call(l);if(h===null&&r==="display")return"";if(r==="filter"){var f=V.ext.type.search;f[a.sType]&&(h=f[a.sType](h))}return h}}function Ws(e,t,n,r){var s=e.aoColumns[n],i=e.aoData[t]._aData;s.fnSetData(i,r,{settings:e,row:t,col:n})}function $t(e,t){t&&typeof t=="object"&&t.nodeName?S(e).empty().append(t):e.innerHTML=t}var Pt=/\[.*?\]$/,ht=/\(\)$/;function nr(e){var t=e.match(/(\\.|[^.])+/g)||[""];return t.map(function(n){return n.replace(/\\\./g,".")})}var mt=V.util.get,rt=V.util.set;function rr(e){return ge(e.aoData,"_aData")}function kn(e){e.aoData.length=0,e.aiDisplayMaster.length=0,e.aiDisplay.length=0,e.aIds={}}function en(e,t,n,r){var s=e.aoData[t],i,a;if(s._aSortData=null,s._aFilterData=null,s.displayData=null,n==="dom"||(!n||n==="auto")&&s.src==="dom")s._aData=Sr(e,s,r,r===void 0?void 0:s._aData).data;else{var l=s.anCells,u=Ln(e,t);if(l)if(r!==void 0)$t(l[r],u[r]);else for(i=0,a=l.length;i<a;i++)$t(l[i],u[i])}var h=e.aoColumns;if(r!==void 0)h[r].sType=null,h[r].wideStrings=null;else{for(i=0,a=h.length;i<a;i++)h[i].sType=null,h[i].wideStrings=null;Rr(e,s)}}function Sr(e,t,n,r){var s=[],i=t.firstChild,a,l,u=0,h,f=e.aoColumns,b=e._rowReadObject;r=r!==void 0?r:b?{}:[];var v=function(d,p){if(typeof d=="string"){var _=d.indexOf("@");if(_!==-1){var x=d.substring(_+1),P=rt(d);P(r,p.getAttribute(x))}}},m=function(d){if(n===void 0||n===u)if(l=f[u],h=d.innerHTML.trim(),l&&l._bAttrSrc){var p=rt(l.mData._);p(r,h),v(l.mData.sort,d),v(l.mData.type,d),v(l.mData.filter,d)}else b?(l._setter||(l._setter=rt(l.mData)),l._setter(r,h)):r[u]=h;u++};if(i)for(;i;)a=i.nodeName.toUpperCase(),(a=="TD"||a=="TH")&&(m(i),s.push(i)),i=i.nextSibling;else{s=t.anCells;for(var C=0,w=s.length;C<w;C++)m(s[C])}var c=t.firstChild?t:t.nTr;if(c){var o=c.getAttribute("id");o&&rt(e.rowId)(r,o)}return{data:r,cells:s}}function Ln(e,t){var n=e.aoData[t],r=e.aoColumns;if(!n.displayData){n.displayData=[];for(var s=0,i=r.length;s<i;s++)n.displayData.push(Ne(e,t,s,"display"))}return n.displayData}function Dr(e,t,n,r){var s=e.aoData[t],i=s._aData,a=[],l,u,h,f,b,v,m=e.oClasses.tbody.row;if(s.nTr===null){for(l=n||document.createElement("tr"),s.nTr=l,s.anCells=a,vt(l,m),l._DT_RowIndex=t,Rr(e,s),f=0,b=e.aoColumns.length;f<b;f++){h=e.aoColumns[f],v=!(n&&r[f]),u=v?document.createElement(h.sCellType):r[f],u||Ie(e,0,"Incorrect column count",18),u._DT_CellIndex={row:t,column:f},a.push(u);var C=Ln(e,t);(v||(h.mRender||h.mData!==f)&&(!S.isPlainObject(h.mData)||h.mData._!==f+".display"))&&$t(u,C[f]),vt(u,h.sClass),h.bVisible&&v?l.appendChild(u):!h.bVisible&&!v&&u.parentNode.removeChild(u),h.fnCreatedCell&&h.fnCreatedCell.call(e.oInstance,u,Ne(e,t,f),i,t,f)}ie(e,"aoRowCreatedCallback","row-created",[l,i,t,a])}else vt(s.nTr,m)}function Rr(e,t){var n=t.nTr,r=t._aData;if(n){var s=e.rowIdFn(r);if(s&&(n.id=s),r.DT_RowClass){var i=r.DT_RowClass.split(" ");t.__rowc=t.__rowc?bt(t.__rowc.concat(i)):i,S(n).removeClass(t.__rowc.join(" ")).addClass(r.DT_RowClass)}r.DT_RowAttr&&S(n).attr(r.DT_RowAttr),r.DT_RowData&&S(n).data(r.DT_RowData)}}function sr(e,t){var n=e.oClasses,r=e.aoColumns,s,i,a,l=t==="header"?e.nTHead:e.nTFoot,u=t==="header"?"sTitle":t;if(l){if((t==="header"||ge(e.aoColumns,u).join(""))&&(a=S("tr",l),a.length||(a=S("<tr/>").appendTo(l)),a.length===1)){var h=0;for(S("td, th",a).each(function(){h+=this.colSpan}),s=h,i=r.length;s<i;s++)S("<th/>").html(r[s][u]||"").appendTo(a)}var f=Ar(e,l,!0);t==="header"?(e.aoHeader=f,S("tr",l).addClass(n.thead.row)):(e.aoFooter=f,S("tr",l).addClass(n.tfoot.row)),S(l).children("tr").children("th, td").each(function(){Xt(e,t)(e,S(this),n)})}}function Pr(e,t,n){var r,s,i,a=[],l=[],u=e.aoColumns,h=u.length,f,b;if(t){for(n||(n=Xe(h).filter(function(C){return u[C].bVisible})),r=0;r<t.length;r++)a[r]=t[r].slice().filter(function(C,w){return n.includes(w)}),l.push([]);for(r=0;r<a.length;r++)for(s=0;s<a[r].length;s++)if(f=1,b=1,l[r][s]===void 0){for(i=a[r][s].cell;a[r+f]!==void 0&&a[r][s].cell==a[r+f][s].cell;)l[r+f][s]=null,f++;for(;a[r][s+b]!==void 0&&a[r][s].cell==a[r][s+b].cell;){for(var v=0;v<f;v++)l[r+v][s+b]=null;b++}var m=S(".dt-column-title",i);l[r][s]={cell:i,colspan:b,rowspan:f,title:m.length?m.html():S(i).html()}}return l}}function qt(e,t){for(var n=Pr(e,t),r,s,i=0;i<t.length;i++){if(r=t[i].row,r)for(;s=r.firstChild;)r.removeChild(s);for(var a=0;a<n[i].length;a++){var l=n[i][a];l&&S(l.cell).appendTo(r).attr("rowspan",l.rowspan).attr("colspan",l.colspan)}}}function yt(e,t){qs(e);var n=ie(e,"aoPreDrawCallback","preDraw",[e]);if(n.indexOf(!1)!==-1){xe(e,!1);return}var r=[],s=0,i=Se(e)=="ssp",a=e.aiDisplay,l=e._iDisplayStart,u=e.fnDisplayEnd(),h=e.aoColumns,f=S(e.nTBody);if(e.bDrawing=!0,e.deferLoading)e.deferLoading=!1,e.iDraw++,xe(e,!1);else if(!i)e.iDraw++;else if(!e.bDestroying&&!t){e.iDraw===0&&f.empty().append(ir(e)),Ys(e);return}if(a.length!==0)for(var b=i?0:l,v=i?e.aoData.length:u,m=b;m<v;m++){var C=a[m],w=e.aoData[C];if(w!==null){w.nTr===null&&Dr(e,C);for(var c=w.nTr,o=0;o<h.length;o++){var d=h[o],p=w.anCells[o];vt(p,pe.type.className[d.sType]),vt(p,e.oClasses.tbody.cell)}ie(e,"aoRowCallback",null,[c,w._aData,s,m,C]),r.push(c),s++}}else r[0]=ir(e);ie(e,"aoHeaderCallback","header",[S(e.nTHead).children("tr")[0],rr(e),l,u,a]),ie(e,"aoFooterCallback","footer",[S(e.nTFoot).children("tr")[0],rr(e),l,u,a]),f[0].replaceChildren?f[0].replaceChildren.apply(f[0],r):(f.children().detach(),f.append(S(r))),S(e.nTableWrapper).toggleClass("dt-empty-footer",S("tr",e.nTFoot).length===0),ie(e,"aoDrawCallback","draw",[e],!0),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}function gt(e,t,n){var r=e.oFeatures,s=r.bSort,i=r.bFilter;(n===void 0||n===!0)&&(Zt(e),s&&Bn(e),i?Lt(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice()),t!==!0&&(e._iDisplayStart=0),e._drawHold=t,yt(e),e.api.one("draw",function(){e._drawHold=!1})}function ir(e){var t=e.oLanguage,n=t.sZeroRecords,r=Se(e);return(r==="ssp"||r==="ajax")&&!e.json?n=t.sLoadingRecords:t.sEmptyTable&&e.fnRecordsTotal()===0&&(n=t.sEmptyTable),S("<tr/>").append(S("<td />",{colSpan:Kt(e),class:e.oClasses.empty.row}).html(n))[0]}function yn(e,t,n){if(Array.isArray(n)){for(var r=0;r<n.length;r++)yn(e,t,n[r]);return}var s=e[t];S.isPlainObject(n)?n.features?(n.rowId&&(e.id=n.rowId),n.rowClass&&(e.className=n.rowClass),s.id=n.id,s.className=n.className,yn(e,t,n.features)):Object.keys(n).map(function(i){s.contents.push({feature:i,opts:n[i]})}):s.contents.push(n)}function js(e,t,n){for(var r,s=0;s<e.length;s++)if(r=e[s],r.rowNum===t&&(n==="full"&&r.full||(n==="start"||n==="end")&&(r.start||r.end)))return r[n]||(r[n]={contents:[]}),r;return r={rowNum:t},r[n]={contents:[]},e.push(r),r}function ar(e,t,n){var r=[];S.each(t,function(i,a){if(a!==null){var l=i.match(/^([a-z]+)([0-9]*)([A-Za-z]*)$/),u=l[2]?l[2]*1:0,h=l[3]?l[3].toLowerCase():"full";if(l[1]===n){var f=js(r,u,h);yn(f,h,a)}}}),r.sort(function(i,a){var l=i.rowNum,u=a.rowNum;if(l===u){var h=i.full&&!a.full?-1:1;return n==="bottom"?h*-1:h}return u-l}),n==="bottom"&&r.reverse();for(var s=0;s<r.length;s++)delete r[s].rowNum,Gs(e,r[s]);return r}function Gs(e,t){var n=function(s,i){return pe.features[s]||Ie(e,0,"Unknown feature: "+s),pe.features[s].apply(this,[e,i])},r=function(s){if(t[s])for(var i=t[s].contents,a=0,l=i.length;a<l;a++)if(i[a]){if(typeof i[a]=="string")i[a]=n(i[a],null);else if(S.isPlainObject(i[a]))i[a]=n(i[a].feature,i[a].opts);else if(typeof i[a].node=="function")i[a]=i[a].node(e);else if(typeof i[a]=="function"){var u=i[a](e);i[a]=typeof u.node=="function"?u.node():u}}else continue};r("start"),r("end"),r("full")}function Us(e){var t=e.oClasses,n=S(e.nTable),r=S("<div/>").attr({id:e.sTableId+"_wrapper",class:t.container}).insertBefore(n);if(e.nTableWrapper=r[0],e.sDom)$s(e,e.sDom,r);else{var s=ar(e,e.layout,"top"),i=ar(e,e.layout,"bottom"),a=Xt(e,"layout");s.forEach(function(l){a(e,r,l)}),a(e,r,{full:{table:!0,contents:[Ir(e)]}}),i.forEach(function(l){a(e,r,l)})}ei(e)}function $s(e,t,n){for(var r=t.match(/(".*?")|('.*?')|./g),s,i,a,l,u,h=0;h<r.length;h++){if(s=null,i=r[h],i=="<"){if(a=S("<div/>"),l=r[h+1],l[0]=="'"||l[0]=='"'){u=l.replace(/['"]/g,"");var f="",b;if(u.indexOf(".")!=-1){var v=u.split(".");f=v[0],b=v[1]}else u[0]=="#"?f=u:b=u;a.attr("id",f.substring(1)).addClass(b),h++}n.append(a),n=a}else i==">"?n=n.parent():i=="t"?s=Ir(e):V.ext.feature.forEach(function(m){i==m.cFeature&&(s=m.fnInit(e))});s&&n.append(s)}}function Ar(e,t,n){var r=e.aoColumns,s=S(t).children("tr"),i,a,l,u,h,f,b,v,m,C,w=e.titleRow,c=t&&t.nodeName.toLowerCase()==="thead",o=[],d,p=function(F,U,R){for(var g=F[U];g[R];)R++;return R};for(l=0,f=s.length;l<f;l++)o.push([]);for(l=0,f=s.length;l<f;l++)for(i=s[l],v=0,a=i.firstChild;a;){if(a.nodeName.toUpperCase()=="TD"||a.nodeName.toUpperCase()=="TH"){var _=[],x=S(a);if(m=a.getAttribute("colspan")*1,C=a.getAttribute("rowspan")*1,m=!m||m===0||m===1?1:m,C=!C||C===0||C===1?1:C,b=p(o,l,v),d=m===1,n){if(d){bn(e,b,Hr(x.data()));var P=r[b],I=a.getAttribute("width")||null,B=a.style.width.match(/width:\s*(\d+[pxem%]+)/);B&&(I=B[1]),P.sWidthOrig=P.sWidth||I,c?(P.sTitle!==null&&!P.autoTitle&&(w===!0&&l===0||w===!1&&l===s.length-1||w===l||w===null)&&(a.innerHTML=P.sTitle),!P.sTitle&&d&&(P.sTitle=Ge(a.innerHTML),P.autoTitle=!0)):P.footer&&(a.innerHTML=P.footer),P.ariaTitle||(P.ariaTitle=x.attr("aria-label")||P.sTitle),P.className&&x.addClass(P.className)}S(".dt-column-title",a).length===0&&S(document.createElement(e.columnTitleTag)).addClass("dt-column-title").append(a.childNodes).appendTo(a),e.orderIndicators&&c&&x.filter(":not([data-dt-order=disable])").length!==0&&x.parent(":not([data-dt-order=disable])").length!==0&&S(".dt-column-order",a).length===0&&S(document.createElement(e.columnTitleTag)).addClass("dt-column-order").appendTo(a);var E=c?"header":"footer";S("div.dt-column-"+E,a).length===0&&S("<div>").addClass("dt-column-"+E).append(a.childNodes).appendTo(a)}for(h=0;h<m;h++){for(u=0;u<C;u++)o[l+u][b+h]={cell:a,unique:d},o[l+u].row=i;_.push(b+h)}a.setAttribute("data-dt-column",bt(_).join(","))}a=a.nextSibling}return o}function qs(e){var t=Se(e)=="ssp",n=e.iInitDisplayStart;n!==void 0&&n!==-1&&(e._iDisplayStart=t?n:n>=e.fnRecordsDisplay()?0:n,e.iInitDisplayStart=-1)}function In(e,t,n){var r,s=e.ajax,i=e.oInstance,a=function(f){var b=e.jqXHR?e.jqXHR.status:null;(f===null||typeof b=="number"&&b==204)&&(f={},kt(e,f,[]));var v=f.error||f.sError;if(v&&Ie(e,0,v),f.d&&typeof f.d=="string")try{f=JSON.parse(f.d)}catch(m){}e.json=f,ie(e,null,"xhr",[e,f,e.jqXHR],!0),n(f)};if(S.isPlainObject(s)&&s.data){r=s.data;var l=typeof r=="function"?r(t,e):r;t=typeof r=="function"&&l?l:S.extend(!0,t,l),delete s.data}var u={url:typeof s=="string"?s:"",data:t,success:a,dataType:"json",cache:!1,type:e.sServerMethod,error:function(f,b){var v=ie(e,null,"xhr",[e,null,e.jqXHR],!0);v.indexOf(!0)===-1&&(b=="parsererror"?Ie(e,0,"Invalid JSON response",1):f.readyState===4&&Ie(e,0,"Ajax error",7)),xe(e,!1)}};if(S.isPlainObject(s)&&S.extend(u,s),e.oAjaxData=t,ie(e,null,"preXhr",[e,t,u],!0),u.submitAs==="json"&&typeof t=="object"&&(u.data=JSON.stringify(t),u.contentType||(u.contentType="application/json; charset=utf-8")),typeof s=="function")e.jqXHR=s.call(i,t,a,e);else if(s.url===""){var h={};kt(e,h,[]),a(h)}else e.jqXHR=S.ajax(u);r&&(s.data=r)}function Ys(e){e.iDraw++,xe(e,!0),In(e,Xs(e),function(t){zs(e,t)})}function Xs(e){var t=e.aoColumns,n=e.oFeatures,r=e.oPreviousSearch,s=e.aoPreSearchCols,i=function(a,l){return typeof t[a][l]=="function"?"function":t[a][l]};return{draw:e.iDraw,columns:t.map(function(a,l){return{data:i(l,"mData"),name:a.sName,searchable:a.bSearchable,orderable:a.bSortable,search:{value:s[l].search,regex:s[l].regex,fixed:Object.keys(a.searchFixed).map(function(u){return{name:u,term:typeof a.searchFixed[u]!="function"?a.searchFixed[u].toString():"function"}})}}}),order:tn(e).map(function(a){return{column:a.col,dir:a.dir,name:i(a.col,"sName")}}),start:e._iDisplayStart,length:n.bPaginate?e._iDisplayLength:-1,search:{value:r.search,regex:r.regex,fixed:Object.keys(e.searchFixed).map(function(a){return{name:a,term:typeof e.searchFixed[a]!="function"?e.searchFixed[a].toString():"function"}})}}}function zs(e,t){var n=kt(e,t),r=pn(e,"draw",t),s=pn(e,"recordsTotal",t),i=pn(e,"recordsFiltered",t);if(r!==void 0){if(r*1<e.iDraw)return;e.iDraw=r*1}n||(n=[]),kn(e),e._iRecordsTotal=parseInt(s,10),e._iRecordsDisplay=parseInt(i,10);for(var a=0,l=n.length;a<l;a++)at(e,n[a]);e.aiDisplay=e.aiDisplayMaster.slice(),Zt(e),yt(e,!0),Yt(e),xe(e,!1)}function kt(e,t,n){var r="data";if(S.isPlainObject(e.ajax)&&e.ajax.dataSrc!==void 0){var s=e.ajax.dataSrc;typeof s=="string"||typeof s=="function"?r=s:s.data!==void 0&&(r=s.data)}if(!n)return r==="data"?t.aaData||t[r]:r!==""?mt(r)(t):t;rt(r)(t,n)}function pn(e,t,n){var r=S.isPlainObject(e.ajax)?e.ajax.dataSrc:null;if(r&&r[t])return mt(r[t])(n);var s="";return t==="draw"?s="sEcho":t==="recordsTotal"?s="iTotalRecords":t==="recordsFiltered"&&(s="iTotalDisplayRecords"),n[s]!==void 0?n[s]:n[t]}function Lt(e,t){var n=e.aoPreSearchCols;if(Se(e)!="ssp"){Zs(e),e.aiDisplay=e.aiDisplayMaster.slice(),Ht(e.aiDisplay,e,t.search,t),S.each(e.searchFixed,function(i,a){Ht(e.aiDisplay,e,a,{})});for(var r=0;r<n.length;r++){var s=n[r];Ht(e.aiDisplay,e,s.search,s,r),S.each(e.aoColumns[r].searchFixed,function(i,a){Ht(e.aiDisplay,e,a,{},r)})}Qs(e)}e.bFiltered=!0,ie(e,null,"search",[e])}function Qs(e){for(var t=V.ext.search,n=e.aiDisplay,r,s,i=0,a=t.length;i<a;i++){for(var l=[],u=0,h=n.length;u<h;u++)s=n[u],r=e.aoData[s],t[i](e,r._aFilterData,s,r._aData,u)&&l.push(s);n.length=0,rn(n,l)}}function Ht(e,t,n,r,s){if(n!==""){var i=0,a=[],l=typeof n=="function"?n:null,u=n instanceof RegExp?n:l?null:Js(n,r);for(i=0;i<e.length;i++){var h=t.aoData[e[i]],f=s===void 0?h._sFilterRow:h._aFilterData[s];(l&&l(f,h._aData,e[i],s)||u&&u.test(f))&&a.push(e[i])}for(e.length=a.length,i=0;i<a.length;i++)e[i]=a[i]}}function Js(e,t){var n=[],r=S.extend({},{boundary:!1,caseInsensitive:!0,exact:!1,regex:!1,smart:!0},t);if(typeof e!="string"&&(e=e.toString()),e=Ut(e),r.exact)return new RegExp("^"+wn(e)+"$",r.caseInsensitive?"i":"");if(e=r.regex?e:wn(e),r.smart){var s=e.match(/!?["\u201C][^"\u201D]+["\u201D]|[^ ]+/g)||[""],i=s.map(function(u){var h=!1,f;return u.charAt(0)==="!"&&(h=!0,u=u.substring(1)),u.charAt(0)==='"'?(f=u.match(/^"(.*)"$/),u=f?f[1]:u):u.charAt(0)==="\u201C"&&(f=u.match(/^\u201C(.*)\u201D$/),u=f?f[1]:u),h&&(u.length>1&&n.push("(?!"+u+")"),u=""),u.replace(/"/g,"")}),a=n.length?n.join(""):"",l=r.boundary?"\\b":"";e="^(?=.*?"+l+i.join(")(?=.*?"+l)+")("+a+".)*$"}return new RegExp(e,r.caseInsensitive?"i":"")}var wn=V.util.escapeRegex,Wt=S("<div>")[0],Ks=Wt.textContent!==void 0;function Zs(e){for(var t=e.aoColumns,n=e.aoData,r,s,i,a,l,u,h=!1,f=0;f<n.length;f++)if(n[f]&&(u=n[f],!u._aFilterData)){for(a=[],s=0,i=t.length;s<i;s++)r=t[s],r.bSearchable?(l=Ne(e,f,s,"filter"),l===null&&(l=""),typeof l!="string"&&l.toString&&(l=l.toString())):l="",l.indexOf&&l.indexOf("&")!==-1&&(Wt.innerHTML=l,l=Ks?Wt.textContent:Wt.innerText),l.replace&&(l=l.replace(/[\r\n\u2028]/g,"")),a.push(l);u._aFilterData=a,u._sFilterRow=a.join("  "),h=!0}return h}function jt(e){var t,n=e.oInit,r=e.deferLoading,s=Se(e);if(!e.bInitialised){setTimeout(function(){jt(e)},200);return}sr(e,"header"),sr(e,"footer"),ai(e,n,function(){qt(e,e.aoHeader),qt(e,e.aoFooter);var i=e.iInitDisplayStart;if(n.aaData)for(t=0;t<n.aaData.length;t++)at(e,n.aaData[t]);else(r||s=="dom")&&An(e,S(e.nTBody).children("tr"));e.aiDisplay=e.aiDisplayMaster.slice(),Us(e),ri(e),Br(e),xe(e,!0),ie(e,null,"preInit",[e],!0),gt(e),(s!="ssp"||r)&&(s=="ajax"?In(e,{},function(a){var l=kt(e,a);for(t=0;t<l.length;t++)at(e,l[t]);e.iInitDisplayStart=i,gt(e),xe(e,!1),Yt(e)},e):(Yt(e),xe(e,!1)))})}function Yt(e){if(!e._bInitComplete){var t=[e,e.json];e._bInitComplete=!0,Jt(e),ie(e,null,"plugin-init",t,!0),ie(e,"aoInitComplete","init",t,!0)}}function kr(e,t){var n=parseInt(t,10);e._iDisplayLength=n,Vr(e),ie(e,null,"length",[e,n])}function Nn(e,t,n){var r=e._iDisplayStart,s=e._iDisplayLength,i=e.fnRecordsDisplay();if(i===0||s===-1)r=0;else if(typeof t=="number")r=t*s,r>i&&(r=0);else if(t=="first")r=0;else if(t=="previous")r=s>=0?r-s:0,r<0&&(r=0);else if(t=="next")r+s<i&&(r+=s);else if(t=="last")r=Math.floor((i-1)/s)*s;else{if(t==="ellipsis")return;Ie(e,0,"Unknown paging action: "+t,5)}var a=e._iDisplayStart!==r;return e._iDisplayStart=r,ie(e,null,a?"page":"page-nc",[e]),a&&n&&yt(e),a}function ei(e){var t=e.nTable,n=e.oScroll.sX!==""||e.oScroll.sY!=="";if(e.oFeatures.bProcessing){var r=S("<div/>",{id:e.sTableId+"_processing",class:e.oClasses.processing.container,role:"status"}).html(e.oLanguage.sProcessing).append("<div><div></div><div></div><div></div><div></div></div>");n?r.prependTo(S("div.dt-scroll",e.nTableWrapper)):r.insertBefore(t),S(t).on("processing.dt.DT",function(s,i,a){r.css("display",a?"block":"none")})}}function xe(e,t){e.bDrawing&&t===!1||ie(e,null,"processing",[e,t])}function Lr(e,t,n){t?(xe(e,!0),setTimeout(function(){n(),xe(e,!1)},0)):n()}function Ir(e){var t=S(e.nTable),n=e.oScroll;if(n.sX===""&&n.sY==="")return e.nTable;var r=n.sX,s=n.sY,i=e.oClasses.scrolling,a=e.captionNode,l=a?a._captionSide:null,u=S(t[0].cloneNode(!1)),h=S(t[0].cloneNode(!1)),f=t.children("tfoot"),b="<div/>",v=function(d){return d?Qe(d):null};f.length||(f=null);var m=S(b,{class:i.container}).append(S(b,{class:i.header.self}).css({overflow:"hidden",position:"relative",border:0,width:r?v(r):"100%"}).append(S(b,{class:i.header.inner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(u.removeAttr("id").css("margin-left",0).append(l==="top"?a:null).append(t.children("thead"))))).append(S(b,{class:i.body}).css({position:"relative",overflow:"auto",width:v(r)}).append(t));f&&m.append(S(b,{class:i.footer.self}).css({overflow:"hidden",border:0,width:r?v(r):"100%"}).append(S(b,{class:i.footer.inner}).append(h.removeAttr("id").css("margin-left",0).append(l==="bottom"?a:null).append(t.children("tfoot")))));var C=m.children(),w=C[0],c=C[1],o=f?C[2]:null;return S(c).on("scroll.DT",function(){var d=this.scrollLeft;w.scrollLeft=d,f&&(o.scrollLeft=d)}),S("th, td",w).on("focus",function(){var d=w.scrollLeft;c.scrollLeft=d,f&&(c.scrollLeft=d)}),S(c).css("max-height",s),n.bCollapse||S(c).css("height",s),e.nScrollHead=w,e.nScrollBody=c,e.nScrollFoot=o,e.aoDrawCallback.push(Nr),m[0]}function Nr(e){var t=e.oScroll,n=t.iBarWidth,r=S(e.nScrollHead),s=r.children("div"),i=s.children("table"),a=e.nScrollBody,l=S(a),u=S(e.nScrollFoot),h=u.children("div"),f=h.children("table"),b=S(e.nTHead),v=S(e.nTable),m=e.nTFoot&&S("th, td",e.nTFoot).length?S(e.nTFoot):null,C=e.oBrowser,w,c,o=a.scrollHeight>a.clientHeight;if(e.scrollBarVis!==o&&e.scrollBarVis!==void 0){e.scrollBarVis=o,Jt(e);return}else e.scrollBarVis=o;if(v.children("thead, tfoot").remove(),w=b.clone().prependTo(v),w.find("th, td").removeAttr("tabindex"),w.find("[id]").removeAttr("id"),m&&(c=m.clone().prependTo(v),c.find("[id]").removeAttr("id")),e.aiDisplay.length){var d=null,p=Se(e)!=="ssp"?e._iDisplayStart:0;for(I=p;I<p+e.aiDisplay.length;I++){var _=e.aiDisplay[I],x=e.aoData[_].nTr;if(x){d=x;break}}if(d)for(var P=S(d).children("th, td").map(function(g){return{idx:Dn(e,g),width:S(this).outerWidth()}}),I=0;I<P.length;I++){var B=e.aoColumns[P[I].idx].colEl[0],E=B.style.width.replace("px","");E!==P[I].width&&(B.style.width=P[I].width+"px",t.sX&&(B.style.minWidth=P[I].width+"px"))}}i.find("colgroup").remove(),i.append(e.colgroup.clone()),m&&(f.find("colgroup").remove(),f.append(e.colgroup.clone())),S("th, td",w).each(function(){S(this.childNodes).wrapAll('<div class="dt-scroll-sizing">')}),m&&S("th, td",c).each(function(){S(this.childNodes).wrapAll('<div class="dt-scroll-sizing">')});var F=Math.floor(v.height())>a.clientHeight||l.css("overflow-y")=="scroll",U="padding"+(C.bScrollbarLeft?"Left":"Right"),R=v.outerWidth();i.css("width",Qe(R)),s.css("width",Qe(R)).css(U,F?n+"px":"0px"),m&&(f.css("width",Qe(R)),h.css("width",Qe(R)).css(U,F?n+"px":"0px")),v.children("colgroup").prependTo(v),l.trigger("scroll"),(e.bSorted||e.bFiltered)&&!e._drawHold&&(a.scrollTop=0)}function ti(e){if(e.oFeatures.bAutoWidth){var t=e.nTable,n=e.aoColumns,r=e.oScroll,s=r.sY,i=r.sX,a=r.sXInner,l=Rn(e,"bVisible"),u=t.getAttribute("width"),h=t.parentNode,f,b,v,m,C=t.style.width,w=or(e);if(w===e.containerWidth)return!1;e.containerWidth=w,!C&&!u&&(t.style.width="100%",C="100%"),C&&C.indexOf("%")!==-1&&(u=C),ie(e,null,"column-calc",{visible:l},!1);var c=S(t.cloneNode()).css("visibility","hidden").css("margin",0).removeAttr("id");c.append("<tbody/>"),c.append(S(e.nTHead).clone()).append(S(e.nTFoot).clone()),c.find("tfoot th, tfoot td").css("width",""),c.find("thead th, thead td").each(function(){var T=xr(e,this,!0,!1);T?(this.style.width=T,i&&(this.style.minWidth=T,S(this).append(S("<div/>").css({width:T,margin:0,padding:0,border:0,height:1})))):this.style.width=""});var o=[];for(f=0;f<l.length;f++)o.push(ni(e,l[f]));if(o.length)for(f=0;f<o[0].length;f++){var d=S("<tr/>").appendTo(c.find("tbody"));for(b=0;b<l.length;b++){m=l[b],v=n[m];var p=o[b][f]||"",_=pe.type.className[v.sType],x=v.sContentPadding||(i?"-":""),P=p+x,I=p.indexOf("<")===-1&&p.indexOf("&")===-1?document.createTextNode(P):P;S("<td/>").addClass(_).addClass(v.sClass).append(I).appendTo(d)}}S("[name]",c).removeAttr("name");var B=S("<div/>").css(i||s?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(c).appendTo(h);i&&a?c.width(a):i?(c.css("width","auto"),c.removeAttr("width"),c.outerWidth()<h.clientWidth&&u&&c.outerWidth(h.clientWidth)):s?c.outerWidth(h.clientWidth):u&&c.outerWidth(u);var E=0,F=c.find("tbody tr").eq(0).children();for(f=0;f<l.length;f++){var U=F[f].getBoundingClientRect().width;E+=U,n[l[f]].sWidth=Qe(U)}if(t.style.width=Qe(E),B.remove(),u&&(t.style.width=Qe(u)),(u||i)&&!e._reszEvt){var R=V.util.throttle(function(){var T=or(e);!e.bDestroying&&T!==0&&Jt(e)});if(window.ResizeObserver){var g=S(e.nTableWrapper).is(":visible"),y=S("<div>").css({width:"100%",height:0}).addClass("dt-autosize").appendTo(e.nTableWrapper);e.resizeObserver=new ResizeObserver(function(T){g?g=!1:R()}),e.resizeObserver.observe(y[0])}else S(window).on("resize.DT-"+e.sInstance,R);e._reszEvt=!0}}}function or(e){return S(e.nTableWrapper).is(":visible")?S(e.nTableWrapper).width():0}function ni(e,t){var n=e.aoColumns[t];if(!n.wideStrings){for(var r=[],s=[],i=0,a=e.aiDisplayMaster.length;i<a;i++){var l=e.aiDisplayMaster[i],u=Ln(e,l)[t],h=u&&typeof u=="object"&&u.nodeType?u.innerHTML:u+"";h=h.replace(/id=".*?"/g,"").replace(/name=".*?"/g,""),h=h.replace(/<script.*?<\/script>/gi," ");var f=Ge(h," ").replace(/&nbsp;/g," ");s.push({str:h,len:f.length}),r.push(f)}s.sort(function(v,m){return m.len-v.len}).splice(3),n.wideStrings=s.map(function(v){return v.str});let b=r.join(" ").split(" ");b.sort(function(v,m){return m.length-v.length}),b.length&&n.wideStrings.push(b[0]),b.length>1&&n.wideStrings.push(b[1]),b.length>2&&n.wideStrings.push(b[3])}return n.wideStrings}function Qe(e){return e===null?"0px":typeof e=="number"?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function Br(e){var t=e.aoColumns;for(e.colgroup.empty(),ue=0;ue<t.length;ue++)t[ue].bVisible&&e.colgroup.append(t[ue].colEl)}function ri(e){var t=e.nTHead,n=t.querySelectorAll("tr"),r=e.titleRow,s=':not([data-dt-order="disable"]):not([data-dt-order="icon-only"])';r===!0?t=n[0]:r===!1?t=n[n.length-1]:r!==null&&(t=n[r]),e.orderHandler&&Fr(e,t,t===e.nTHead?"tr"+s+" th"+s+", tr"+s+" td"+s:"th"+s+", td"+s);var i=[];st(e,i,e.aaSorting),e.aaSorting=i}function Fr(e,t,n,r,s){Er(t,n,function(i){var a=!1,l=r===void 0?Pn(i.target):typeof r=="function"?r():Array.isArray(r)?r:[r];if(l.length){for(var u=0,h=l.length;u<h;u++){var f=si(e,l[u],u,i.shiftKey);if(f!==!1&&(a=!0),e.aaSorting.length===1&&e.aaSorting[0][1]==="")break}a&&Lr(e,!0,function(){Bn(e),Or(e,e.aiDisplay),gt(e,!1,!1),s&&s()})}})}function Or(e,t){if(!(t.length<2)){var n=e.aiDisplayMaster,r={},s={},i;for(i=0;i<n.length;i++)r[n[i]]=i;for(i=0;i<t.length;i++)s[t[i]]=r[t[i]];t.sort(function(a,l){return s[a]-s[l]})}}function st(e,t,n){var r=function(i){if(S.isPlainObject(i)){if(i.idx!==void 0)t.push([i.idx,i.dir]);else if(i.name){var a=ge(e.aoColumns,"sName"),l=a.indexOf(i.name);l!==-1&&t.push([l,i.dir])}}else t.push(i)};if(S.isPlainObject(n))r(n);else if(n.length&&typeof n[0]=="number")r(n);else if(n.length)for(var s=0;s<n.length;s++)r(n[s])}function tn(e){var t,n,r,s=[],i=V.ext.type.order,a=e.aoColumns,l,u,h,f,b=e.aaSortingFixed,v=S.isPlainObject(b),m=[];if(!e.oFeatures.bSort)return s;for(Array.isArray(b)&&st(e,m,b),v&&b.pre&&st(e,m,b.pre),st(e,m,e.aaSorting),v&&b.post&&st(e,m,b.post),t=0;t<m.length;t++)if(f=m[t][0],a[f])for(l=a[f].aDataSort,n=0,r=l.length;n<r;n++)u=l[n],h=a[u].sType||"string",m[t]._idx===void 0&&(m[t]._idx=a[u].asSorting.indexOf(m[t][1])),m[t][1]&&s.push({src:f,col:u,dir:m[t][1],index:m[t]._idx,type:h,formatter:i[h+"-pre"],sorter:i[h+"-"+m[t][1]]});return s}function Bn(e,t,n){var r,s,i=[],a=V.ext.type.order,l=e.aoData,u,h=e.aiDisplayMaster,f;if(Zt(e),t!==void 0){var b=e.aoColumns[t];f=[{src:t,col:t,dir:n,index:0,type:b.sType,formatter:a[b.sType+"-pre"],sorter:a[b.sType+"-"+n]}],h=h.slice()}else f=tn(e);for(r=0,s=f.length;r<s;r++)u=f[r],ii(e,u.col);if(Se(e)!="ssp"&&f.length!==0){for(r=0,s=h.length;r<s;r++)i[r]=r;f.length&&f[0].dir==="desc"&&e.orderDescReverse&&i.reverse(),h.sort(function(v,m){var C,w,c,o,d,p=f.length,_=l[v]._aSortData,x=l[m]._aSortData;for(c=0;c<p;c++)if(d=f[c],C=_[d.col],w=x[d.col],d.sorter){if(o=d.sorter(C,w),o!==0)return o}else if(o=C<w?-1:C>w?1:0,o!==0)return d.dir==="asc"?o:-o;return C=i[v],w=i[m],C<w?-1:C>w?1:0})}else f.length===0&&h.sort(function(v,m){return v<m?-1:v>m?1:0});return t===void 0&&(e.bSorted=!0,e.sortDetails=f,ie(e,null,"order",[e,f])),h}function si(e,t,n,r){var s=e.aoColumns[t],i=e.aaSorting,a=s.asSorting,l,u=function(f,b){var v=f._idx;return v===void 0&&(v=a.indexOf(f[1])),v+1<a.length?v+1:b?null:0};if(!s.bSortable)return!1;if(typeof i[0]=="number"&&(i=e.aaSorting=[i]),(r||n)&&e.oFeatures.bSortMulti){var h=ge(i,"0").indexOf(t);h!==-1?(l=u(i[h],!0),l===null&&i.length===1&&(l=0),l===null||a[l]===""?i.splice(h,1):(i[h][1]=a[l],i[h]._idx=l)):r?(i.push([t,a[0],0]),i[i.length-1]._idx=0):(i.push([t,i[0][1],0]),i[i.length-1]._idx=0)}else i.length&&i[0][0]==t?(l=u(i[0]),i.length=1,i[0][1]=a[l],i[0]._idx=l):(i.length=0,i.push([t,a[0]]),i[0]._idx=0)}function _n(e){var t=e.aLastSort,n=e.oClasses.order.position,r=tn(e),s=e.oFeatures,i,a,l;if(s.bSort&&s.bSortClasses){for(i=0,a=t.length;i<a;i++)l=t[i].src,S(ge(e.aoData,"anCells",l)).removeClass(n+(i<2?i+1:3));for(i=0,a=r.length;i<a;i++)l=r[i].src,S(ge(e.aoData,"anCells",l)).addClass(n+(i<2?i+1:3))}e.aLastSort=r}function ii(e,t){var n=e.aoColumns[t],r=V.ext.order[n.sSortDataType],s;r&&(s=r.call(e.oInstance,e,t,Nt(e,t)));for(var i,a,l=V.ext.type.order[n.sType+"-pre"],u=e.aoData,h=0;h<u.length;h++)u[h]&&(i=u[h],i._aSortData||(i._aSortData=[]),(!i._aSortData[t]||r)&&(a=r?s[h]:Ne(e,h,t,"sort"),i._aSortData[t]=l?l(a,e):a))}function nn(e){if(!e._bLoadingState){var t=[];st(e,t,e.aaSorting);var n=e.aoColumns,r={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:t.map(function(s){return n[s[0]]&&n[s[0]].sName?[n[s[0]].sName,s[1]]:s.slice()}),search:S.extend({},e.oPreviousSearch),columns:e.aoColumns.map(function(s,i){return{name:s.sName,visible:s.bVisible,search:S.extend({},e.aoPreSearchCols[i])}})};e.oSavedState=r,ie(e,"aoStateSaveParams","stateSaveParams",[e,r]),e.oFeatures.bStateSave&&!e.bDestroying&&e.fnStateSaveCallback.call(e.oInstance,e,r)}}function ai(e,t,n){if(!e.oFeatures.bStateSave){n();return}var r=function(i){Cn(e,i,n)},s=e.fnStateLoadCallback.call(e.oInstance,e,r);return s!==void 0&&Cn(e,s,n),!0}function Cn(e,t,n){var r,s,i=e.aoColumns,a=ge(e.aoColumns,"sName");e._bLoadingState=!0;var l=e._bInitComplete?new V.Api(e):null;if(!t||!t.time){e._bLoadingState=!1,n();return}var u=e.iStateDuration;if(u>0&&t.time<+new Date-u*1e3){e._bLoadingState=!1,n();return}var h=ie(e,"aoStateLoadParams","stateLoadParams",[e,t]);if(h.indexOf(!1)!==-1){e._bLoadingState=!1,n();return}if(e.oLoadedState=S.extend(!0,{},t),ie(e,null,"stateLoadInit",[e,t],!0),t.length!==void 0&&(l?l.page.len(t.length):e._iDisplayLength=t.length),t.start!==void 0&&(l===null?(e._iDisplayStart=t.start,e.iInitDisplayStart=t.start):Nn(e,t.start/e._iDisplayLength)),t.order!==void 0&&(e.aaSorting=[],S.each(t.order,function(C,w){var c=[w[0],w[1]];if(typeof w[0]=="string"){var o=a.indexOf(w[0]);if(o<0)return;c[0]=o}else if(c[0]>=i.length)return;e.aaSorting.push(c)})),t.search!==void 0&&S.extend(e.oPreviousSearch,t.search),t.columns){var f=t.columns,b=ge(t.columns,"name");if(b.join("").length&&b.join("")!==a.join(""))for(f=[],r=0;r<a.length;r++)if(a[r]!=""){var v=b.indexOf(a[r]);v>=0?f.push(t.columns[v]):f.push({})}else f.push({});if(f.length===i.length){for(r=0,s=f.length;r<s;r++){var m=f[r];m.visible!==void 0&&(l?l.column(r).visible(m.visible,!1):i[r].bVisible=m.visible),m.search!==void 0&&S.extend(e.aoPreSearchCols[r],m.search)}l&&l.one("draw",function(){l.columns.adjust()})}}e._bLoadingState=!1,ie(e,"aoStateLoaded","stateLoaded",[e,t]),n()}function Ie(e,t,n,r){if(n="DataTables warning: "+(e?"table id="+e.sTableId+" - ":"")+n,r&&(n+=". For more information about this error, please see https://datatables.net/tn/"+r),t)window.console&&console.log&&console.log(n);else{var s=V.ext,i=s.sErrMode||s.errMode;if(e&&ie(e,null,"dt-error",[e,r,n],!0),i=="alert")alert(n);else{if(i=="throw")throw new Error(n);typeof i=="function"&&i(e,r,n)}}}function Je(e,t,n,r){if(Array.isArray(n)){S.each(n,function(s,i){Array.isArray(i)?Je(e,t,i[0],i[1]):Je(e,t,i)});return}r===void 0&&(r=n),t[n]!==void 0&&(e[r]=t[n])}function lr(e,t,n){var r;for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r=t[s],S.isPlainObject(r)?(S.isPlainObject(e[s])||(e[s]={}),S.extend(!0,e[s],r)):n&&s!=="data"&&s!=="aaData"&&Array.isArray(r)?e[s]=r.slice():e[s]=r);return e}function Er(e,t,n){S(e).on("click.DT",t,function(r){n(r)}).on("keypress.DT",t,function(r){r.which===13&&(r.preventDefault(),n(r))}).on("selectstart.DT",t,function(){return!1})}function Le(e,t,n){n&&e[t].push(n)}function ie(e,t,n,r,s){var i=[];if(t&&(i=e[t].slice().reverse().map(function(u){return u.apply(e.oInstance,r)})),n!==null){var a=S.Event(n+".dt"),l=S(e.nTable);a.dt=e.api,l[s?"trigger":"triggerHandler"](a,r),s&&l.parents("body").length===0&&S("body").trigger(a,r),i.push(a.result)}return i}function Vr(e){var t=e._iDisplayStart,n=e.fnDisplayEnd(),r=e._iDisplayLength;t>=n&&(t=n-r),t-=t%r,(r===-1||t<0)&&(t=0),e._iDisplayStart=t}function Xt(e,t){var n=e.renderer,r=V.ext.renderer[t];return S.isPlainObject(n)&&n[t]?r[n[t]]||r._:typeof n=="string"&&r[n]||r._}function Se(e){return e.oFeatures.bServerSide?"ssp":e.ajax?"ajax":"dom"}function Fn(e,t,n){var r=e.fnFormatNumber,s=e._iDisplayStart+1,i=e._iDisplayLength,a=e.fnRecordsDisplay(),l=e.fnRecordsTotal(),u=i===-1;return t.replace(/_START_/g,r.call(e,s)).replace(/_END_/g,r.call(e,e.fnDisplayEnd())).replace(/_MAX_/g,r.call(e,l)).replace(/_TOTAL_/g,r.call(e,a)).replace(/_PAGE_/g,r.call(e,u?1:Math.ceil(s/i))).replace(/_PAGES_/g,r.call(e,u?1:Math.ceil(a/i))).replace(/_ENTRIES_/g,e.api.i18n("entries","",n)).replace(/_ENTRIES-MAX_/g,e.api.i18n("entries","",l)).replace(/_ENTRIES-TOTAL_/g,e.api.i18n("entries","",a))}function rn(e,t){if(t)if(t.length<1e4)e.push.apply(e,t);else for(ue=0;ue<t.length;ue++)e.push(t[ue])}function dr(e,t,n){for(Array.isArray(n)||(n=[n]),ue=0;ue<n.length;ue++)e.on(t+".dt",n[ue])}function Hr(e){return V.ext.escape.attributes&&S.each(e,function(t,n){e[t]=it(n)}),e}var On=[],be=Array.prototype,oi=function(e){var t,n,r=V.settings,s=ge(r,"nTable");if(e){if(e.nTable&&e.oFeatures)return[e];if(e.nodeName&&e.nodeName.toLowerCase()==="table")return t=s.indexOf(e),t!==-1?[r[t]]:null;if(e&&typeof e.settings=="function")return e.settings().toArray();typeof e=="string"?n=S(e).get():e instanceof S&&(n=e.get())}else return[];if(n)return r.filter(function(i,a){return n.includes(s[a])})};se=function(e,t){if(!(this instanceof se))return new se(e,t);var n,r=[],s=function(i){var a=oi(i);a&&r.push.apply(r,a)};if(Array.isArray(e))for(n=0;n<e.length;n++)s(e[n]);else s(e);this.context=r.length>1?bt(r):r,rn(this,t),this.selector={rows:null,cols:null,opts:null},se.extend(this,this,On)};V.Api=se;S.extend(se.prototype,{any:function(){return this.count()!==0},context:[],count:function(){return this.flatten().length},each:function(e){for(var t=0,n=this.length;t<n;t++)e.call(this,this[t],t,this);return this},eq:function(e){var t=this.context;return t.length>e?new se(t[e],this[e]):null},filter:function(e){var t=be.filter.call(this,e,this);return new se(this.context,t)},flatten:function(){var e=[];return new se(this.context,e.concat.apply(e,this.toArray()))},get:function(e){return this[e]},join:be.join,includes:function(e){return this.indexOf(e)!==-1},indexOf:be.indexOf,iterator:function(e,t,n,r){var s=[],i,a,l,u,h,f=this.context,b,v,m,C=this.selector;for(typeof e=="string"&&(r=n,n=t,t=e,e=!1),a=0,l=f.length;a<l;a++){var w=new se(f[a]);if(t==="table")i=n.call(w,f[a],a),i!==void 0&&s.push(i);else if(t==="columns"||t==="rows")i=n.call(w,f[a],this[a],a),i!==void 0&&s.push(i);else if(t==="every"||t==="column"||t==="column-rows"||t==="row"||t==="cell")for(v=this[a],t==="column-rows"&&(b=sn(f[a],C.opts)),u=0,h=v.length;u<h;u++)m=v[u],t==="cell"?i=n.call(w,f[a],m.row,m.column,a,u):i=n.call(w,f[a],m,a,u,b),i!==void 0&&s.push(i)}if(s.length||r){var c=new se(f,e?s.concat.apply([],s):s),o=c.selector;return o.rows=C.rows,o.cols=C.cols,o.opts=C.opts,c}return this},lastIndexOf:be.lastIndexOf,length:0,map:function(e){var t=be.map.call(this,e,this);return new se(this.context,t)},pluck:function(e){var t=V.util.get(e);return this.map(function(n){return t(n)})},pop:be.pop,push:be.push,reduce:be.reduce,reduceRight:be.reduceRight,reverse:be.reverse,selector:null,shift:be.shift,slice:function(){return new se(this.context,this)},sort:be.sort,splice:be.splice,toArray:function(){return be.slice.call(this)},to$:function(){return S(this)},toJQuery:function(){return S(this)},unique:function(){return new se(this.context,bt(this.toArray()))},unshift:be.unshift});function li(e,t,n){return function(){var r=t.apply(e||this,arguments);return se.extend(r,r,n.methodExt),r}}function di(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n].name===t)return e[n];return null}window.__apiStruct=On;se.extend=function(e,t,n){if(!(!n.length||!t||!(t instanceof se)&&!t.__dt_wrapper)){var r,s,i;for(r=0,s=n.length;r<s;r++)i=n[r],i.name!=="__proto__"&&(t[i.name]=i.type==="function"?li(e,i.val,i):i.type==="object"?{}:i.val,t[i.name].__dt_wrapper=!0,se.extend(e,t[i.name],i.propExt))}};se.register=q=function(e,t){if(Array.isArray(e)){for(var n=0,r=e.length;n<r;n++)se.register(e[n],t);return}var s,i,a=e.split("."),l=On,u,h;for(s=0,i=a.length;s<i;s++){h=a[s].indexOf("()")!==-1,u=h?a[s].replace("()",""):a[s];var f=di(l,u);f||(f={name:u,val:{},methodExt:[],propExt:[],type:"object"},l.push(f)),s===i-1?(f.val=t,f.type=typeof t=="function"?"function":S.isPlainObject(t)?"object":"other"):l=h?f.methodExt:f.propExt}};se.registerPlural=le=function(e,t,n){se.register(e,n),se.register(t,function(){var r=n.apply(this,arguments);return r===this?this:r instanceof se?r.length?Array.isArray(r[0])?new se(r.context,r[0]):r[0]:void 0:r})};var Mr=function(e,t){if(Array.isArray(e)){var n=[];return e.forEach(function(s){var i=Mr(s,t);rn(n,i)}),n.filter(function(s){return s})}if(typeof e=="number")return[t[e]];var r=t.map(function(s){return s.nTable});return S(r).filter(e).map(function(){var s=r.indexOf(this);return t[s]}).toArray()};q("tables()",function(e){return e!=null?new se(Mr(e,this.context)):this});q("table()",function(e){var t=this.tables(e),n=t.context;return n.length?new se(n[0]):t});[["nodes","node","nTable"],["body","body","nTBody"],["header","header","nTHead"],["footer","footer","nTFoot"]].forEach(function(e){le("tables()."+e[0]+"()","table()."+e[1]+"()",function(){return this.iterator("table",function(t){return t[e[2]]},1)})});[["header","aoHeader"],["footer","aoFooter"]].forEach(function(e){q("table()."+e[0]+".structure()",function(t){var n=this.columns(t).indexes().flatten().toArray(),r=this.context[0],s=Pr(r,r[e[1]],n),i=n.slice().sort(function(a,l){return a-l});return s.map(function(a){return n.map(function(l){return a[i.indexOf(l)]})})})});le("tables().containers()","table().container()",function(){return this.iterator("table",function(e){return e.nTableWrapper},1)});q("tables().every()",function(e){var t=this;return this.iterator("table",function(n,r){e.call(t.table(r),r)})});q("caption()",function(e,t){var n=this.context;if(e===void 0){var r=n[0].captionNode;return r&&n.length?r.innerHTML:null}return this.iterator("table",function(s){var i=S(s.nTable),a=S(s.captionNode),l=S(s.nTableWrapper);if(a.length||(a=S("<caption/>").html(e),s.captionNode=a[0],t||(i.prepend(a),t=a.css("caption-side"))),a.html(e),t&&(a.css("caption-side",t),a[0]._captionSide=t),l.find("div.dataTables_scroll").length){var u=t==="top"?"Head":"Foot";l.find("div.dataTables_scroll"+u+" table").prepend(a)}else i.prepend(a)},1)});q("caption.node()",function(){var e=this.context;return e.length?e[0].captionNode:null});q("draw()",function(e){return this.iterator("table",function(t){e==="page"?yt(t):(typeof e=="string"&&(e=e!=="full-hold"),gt(t,e===!1))})});q("page()",function(e){return e===void 0?this.page.info().page:this.iterator("table",function(t){Nn(t,e)})});q("page.info()",function(){if(this.context.length!==0){var e=this.context[0],t=e._iDisplayStart,n=e.oFeatures.bPaginate?e._iDisplayLength:-1,r=e.fnRecordsDisplay(),s=n===-1;return{page:s?0:Math.floor(t/n),pages:s?1:Math.ceil(r/n),start:t,end:e.fnDisplayEnd(),length:n,recordsTotal:e.fnRecordsTotal(),recordsDisplay:r,serverSide:Se(e)==="ssp"}}});q("page.len()",function(e){return e===void 0?this.context.length!==0?this.context[0]._iDisplayLength:void 0:this.iterator("table",function(t){kr(t,e)})});var Wr=function(e,t,n){if(n){var r=new se(e);r.one("draw",function(){n(r.ajax.json())})}if(Se(e)=="ssp")gt(e,t);else{xe(e,!0);var s=e.jqXHR;s&&s.readyState!==4&&s.abort(),In(e,{},function(i){kn(e);for(var a=kt(e,i),l=0,u=a.length;l<u;l++)at(e,a[l]);gt(e,t),Yt(e),xe(e,!1)})}};q("ajax.json()",function(){var e=this.context;if(e.length>0)return e[0].json});q("ajax.params()",function(){var e=this.context;if(e.length>0)return e[0].oAjaxData});q("ajax.reload()",function(e,t){return this.iterator("table",function(n){Wr(n,t===!1,e)})});q("ajax.url()",function(e){var t=this.context;return e===void 0?t.length===0?void 0:(t=t[0],S.isPlainObject(t.ajax)?t.ajax.url:t.ajax):this.iterator("table",function(n){S.isPlainObject(n.ajax)?n.ajax.url=e:n.ajax=e})});q("ajax.url().load()",function(e,t){return this.iterator("table",function(n){Wr(n,t===!1,e)})});var En=function(e,t,n,r,s){var i=[],a,l,u,h=typeof t;for((!t||h==="string"||h==="function"||t.length===void 0)&&(t=[t]),l=0,u=t.length;l<u;l++)a=n(typeof t[l]=="string"?t[l].trim():t[l]),a=a.filter(function(b){return b!=null}),a&&a.length&&(i=i.concat(a));var f=pe.selector[e];if(f.length)for(l=0,u=f.length;l<u;l++)i=f[l](r,s,i);return bt(i)},Vn=function(e){return e||(e={}),e.filter&&e.search===void 0&&(e.search=e.filter),S.extend({columnOrder:"implied",search:"none",order:"current",page:"all"},e)},Hn=function(e){var t=new se(e.context[0]);return e.length&&t.push(e[0]),t.selector=e.selector,t.length&&t[0].length>1&&t[0].splice(1),t},sn=function(e,t){var n,r,s,i=[],a=e.aiDisplay,l=e.aiDisplayMaster,u=t.search,h=t.order,f=t.page;if(Se(e)=="ssp")return u==="removed"?[]:Xe(0,l.length);if(f=="current")for(n=e._iDisplayStart,r=e.fnDisplayEnd();n<r;n++)i.push(a[n]);else if(h=="current"||h=="applied"){if(u=="none")i=l.slice();else if(u=="applied")i=a.slice();else if(u=="removed"){var b={};for(n=0,r=a.length;n<r;n++)b[a[n]]=null;l.forEach(function(m){Object.prototype.hasOwnProperty.call(b,m)||i.push(m)})}}else if(h=="index"||h=="original")for(n=0,r=e.aoData.length;n<r;n++)e.aoData[n]&&(u=="none"?i.push(n):(s=a.indexOf(n),(s===-1&&u=="removed"||s>=0&&u=="applied")&&i.push(n)));else if(typeof h=="number"){var v=Bn(e,h,"asc");if(u==="none")i=v;else for(n=0;n<v.length;n++)s=a.indexOf(v[n]),(s===-1&&u=="removed"||s>=0&&u=="applied")&&i.push(v[n])}return i},ci=function(e,t,n){var r,s=function(a){var l=br(a),u=e.aoData;if(l!==null&&!n)return[l];if(r||(r=sn(e,n)),l!==null&&r.indexOf(l)!==-1)return[l];if(a==null||a==="")return r;if(typeof a=="function")return r.map(function(C){var w=u[C];return a(C,w._aData,w.nTr)?C:null});if(a.nodeName){var h=a._DT_RowIndex,f=a._DT_CellIndex;if(h!==void 0)return u[h]&&u[h].nTr===a?[h]:[];if(f)return u[f.row]&&u[f.row].nTr===a.parentNode?[f.row]:[];var b=S(a).closest("*[data-dt-row]");return b.length?[b.data("dt-row")]:[]}if(typeof a=="string"&&a.charAt(0)==="#"){var v=e.aIds[a.replace(/^#/,"")];if(v!==void 0)return[v.idx]}var m=wr(It(e.aoData,r,"nTr"));return S(m).filter(a).map(function(){return this._DT_RowIndex}).toArray()},i=En("row",t,s,e,n);return(n.order==="current"||n.order==="applied")&&Or(e,i),i};q("rows()",function(e,t){e===void 0?e="":S.isPlainObject(e)&&(t=e,e=""),t=Vn(t);var n=this.iterator("table",function(r){return ci(r,e,t)},1);return n.selector.rows=e,n.selector.opts=t,n});q("rows().nodes()",function(){return this.iterator("row",function(e,t){return e.aoData[t].nTr||void 0},1)});q("rows().data()",function(){return this.iterator(!0,"rows",function(e,t){return It(e.aoData,t,"_aData")},1)});le("rows().cache()","row().cache()",function(e){return this.iterator("row",function(t,n){var r=t.aoData[n];return e==="search"?r._aFilterData:r._aSortData},1)});le("rows().invalidate()","row().invalidate()",function(e){return this.iterator("row",function(t,n){en(t,n,e)})});le("rows().indexes()","row().index()",function(){return this.iterator("row",function(e,t){return t},1)});le("rows().ids()","row().id()",function(e){for(var t=[],n=this.context,r=0,s=n.length;r<s;r++)for(var i=0,a=this[r].length;i<a;i++){var l=n[r].rowIdFn(n[r].aoData[this[r][i]]._aData);t.push((e===!0?"#":"")+l)}return new se(n,t)});le("rows().remove()","row().remove()",function(){return this.iterator("row",function(e,t){var n=e.aoData,r=n[t],s=e.aiDisplayMaster.indexOf(t);s!==-1&&e.aiDisplayMaster.splice(s,1),e._iRecordsDisplay>0&&e._iRecordsDisplay--,Vr(e);var i=e.rowIdFn(r._aData);i!==void 0&&delete e.aIds[i],n[t]=null}),this});q("rows.add()",function(e){var t=this.iterator("table",function(r){var s,i,a,l=[];for(i=0,a=e.length;i<a;i++)s=e[i],s.nodeName&&s.nodeName.toUpperCase()==="TR"?l.push(An(r,s)[0]):l.push(at(r,s));return l},1),n=this.rows(-1);return n.pop(),rn(n,t),n});q("row()",function(e,t){return Hn(this.rows(e,t))});q("row().data()",function(e){var t=this.context;if(e===void 0)return t.length&&this.length&&this[0].length?t[0].aoData[this[0]]._aData:void 0;var n=t[0].aoData[this[0]];return n._aData=e,Array.isArray(e)&&n.nTr&&n.nTr.id&&rt(t[0].rowId)(e,n.nTr.id),en(t[0],this[0],"data"),this});q("row().node()",function(){var e=this.context;if(e.length&&this.length&&this[0].length){var t=e[0].aoData[this[0]];if(t&&t.nTr)return t.nTr}return null});q("row.add()",function(e){e instanceof S&&e.length&&(e=e[0]);var t=this.iterator("table",function(n){return e.nodeName&&e.nodeName.toUpperCase()==="TR"?An(n,e)[0]:at(n,e)});return this.row(t[0])});S(document).on("plugin-init.dt",function(e,t){var n=new se(t);n.on("stateSaveParams.DT",function(r,s,i){for(var a=s.rowIdFn,l=s.aiDisplayMaster,u=[],h=0;h<l.length;h++){var f=l[h],b=s.aoData[f];b._detailsShow&&u.push("#"+a(b._aData))}i.childRows=u}),n.on("stateLoaded.DT",function(r,s,i){cr(n,i)}),cr(n,n.state.loaded())});var cr=function(e,t){t&&t.childRows&&e.rows(t.childRows.map(function(n){return n.replace(/([^:\\]*(?:\\.[^:\\]*)*):/g,"$1\\:")})).every(function(){ie(e.settings()[0],null,"requestChild",[this])})},ui=function(e,t,n,r){var s=[],i=function(a,l){if(Array.isArray(a)||a instanceof S){for(var u=0,h=a.length;u<h;u++)i(a[u],l);return}if(a.nodeName&&a.nodeName.toLowerCase()==="tr")a.setAttribute("data-dt-row",t.idx),s.push(a);else{var f=S("<tr><td></td></tr>").attr("data-dt-row",t.idx).addClass(l);S("td",f).addClass(l).html(a)[0].colSpan=Kt(e),s.push(f[0])}};i(n,r),t._details&&t._details.detach(),t._details=S(s),t._detailsShow&&t._details.insertAfter(t.nTr)},jr=V.util.throttle(function(e){nn(e[0])},500),Mn=function(e,t){var n=e.context;if(n.length){var r=n[0].aoData[t!==void 0?t:e[0]];r&&r._details&&(r._details.detach(),r._detailsShow=void 0,r._details=void 0,S(r.nTr).removeClass("dt-hasChild"),jr(n))}},Gr=function(e,t){var n=e.context;if(n.length&&e.length){var r=n[0].aoData[e[0]];r._details&&(r._detailsShow=t,t?(r._details.insertAfter(r.nTr),S(r.nTr).addClass("dt-hasChild")):(r._details.detach(),S(r.nTr).removeClass("dt-hasChild")),ie(n[0],null,"childRow",[t,e.row(e[0])]),fi(n[0]),jr(n))}},fi=function(e){var t=new se(e),n=".dt.DT_details",r="draw"+n,s="column-sizing"+n,i="destroy"+n,a=e.aoData;t.off(r+" "+s+" "+i),ge(a,"_details").length>0&&(t.on(r,function(l,u){e===u&&t.rows({page:"current"}).eq(0).each(function(h){var f=a[h];f._detailsShow&&f._details.insertAfter(f.nTr)})}),t.on(s,function(l,u){if(e===u)for(var h,f=Kt(u),b=0,v=a.length;b<v;b++)h=a[b],h&&h._details&&h._details.each(function(){var m=S(this).children("td");m.length==1&&m.attr("colspan",f)})}),t.on(i,function(l,u){if(e===u)for(var h=0,f=a.length;h<f;h++)a[h]&&a[h]._details&&Mn(t,h)}))},hi="",Bt=hi+"row().child",an=Bt+"()";q(an,function(e,t){var n=this.context;return e===void 0?n.length&&this.length&&n[0].aoData[this[0]]?n[0].aoData[this[0]]._details:void 0:(e===!0?this.child.show():e===!1?Mn(this):n.length&&this.length&&ui(n[0],n[0].aoData[this[0]],e,t),this)});q([Bt+".show()",an+".show()"],function(){return Gr(this,!0),this});q([Bt+".hide()",an+".hide()"],function(){return Gr(this,!1),this});q([Bt+".remove()",an+".remove()"],function(){return Mn(this),this});q(Bt+".isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]&&e[0].aoData[this[0]]._detailsShow||!1});var pi=/^([^:]+)?:(name|title|visIdx|visible)$/,Wn=function(e,t,n,r,s,i){for(var a=[],l=0,u=s.length;l<u;l++)a.push(Ne(e,s[l],t,i));return a},Ur=function(e,t,n){var r=e.aoHeader,s=e.titleRow,i=null;if(n!==void 0)i=n;else if(s===!0)i=0;else if(s===!1)i=r.length-1;else if(s!==null)i=s;else{for(var a=0;a<r.length;a++)r[a][t].unique&&S(".dt-column-title",r[a][t].cell).text()&&(i=a);i===null&&(i=0)}return r[i][t].cell},vi=function(e){for(var t=[],n=0;n<e.length;n++)for(var r=0;r<e[n].length;r++){var s=e[n][r].cell;t.includes(s)||t.push(s)}return t},mi=function(e,t,n){var r=e.aoColumns,s,i,a=vi(e.aoHeader),l=function(h){var f=br(h);if(h==="")return Xe(r.length);if(f!==null)return[f>=0?f:r.length+f];if(typeof h=="function"){var b=sn(e,n);return r.map(function(o,d){return h(d,Wn(e,d,0,0,b),Ur(e,d))?d:null})}var v=typeof h=="string"?h.match(pi):"";if(v)switch(v[2]){case"visIdx":case"visible":if(v[1]&&v[1].match(/^\d+$/)){var m=parseInt(v[1],10);if(m<0){var C=r.map(function(o,d){return o.bVisible?d:null});return[C[C.length+m]]}return[Dn(e,m)]}return r.map(function(o,d){return o.bVisible?v[1]?S(a[d]).filter(v[1]).length>0?d:null:d:null});case"name":return s||(s=ge(r,"sName")),s.map(function(o,d){return o===v[1]?d:null});case"title":return i||(i=ge(r,"sTitle")),i.map(function(o,d){return o===v[1]?d:null});default:return[]}if(h.nodeName&&h._DT_CellIndex)return[h._DT_CellIndex.column];var w=S(a).filter(h).map(function(){return Pn(this)}).toArray().sort(function(o,d){return o-d});if(w.length||!h.nodeName)return w;var c=S(h).closest("*[data-dt-column]");return c.length?[c.data("dt-column")]:[]},u=En("column",t,l,e,n);return n.columnOrder&&n.columnOrder==="index"?u.sort(function(h,f){return h-f}):u},gi=function(e,t,n){var r=e.aoColumns,s=r[t],i=e.aoData,a,l,u,h;if(n===void 0)return s.bVisible;if(s.bVisible===n)return!1;if(n){var f=ge(r,"bVisible").indexOf(!0,t+1);for(l=0,u=i.length;l<u;l++)i[l]&&(h=i[l].nTr,a=i[l].anCells,h&&h.insertBefore(a[t],a[f]||null))}else S(ge(e.aoData,"anCells",t)).detach();return s.bVisible=n,Br(e),!0};q("columns()",function(e,t){e===void 0?e="":S.isPlainObject(e)&&(t=e,e=""),t=Vn(t);var n=this.iterator("table",function(r){return mi(r,e,t)},1);return n.selector.cols=e,n.selector.opts=t,n});le("columns().header()","column().header()",function(e){return this.iterator("column",function(t,n){return Ur(t,n,e)},1)});le("columns().footer()","column().footer()",function(e){return this.iterator("column",function(t,n){var r=t.aoFooter;return r.length?t.aoFooter[e!==void 0?e:0][n].cell:null},1)});le("columns().data()","column().data()",function(){return this.iterator("column-rows",Wn,1)});le("columns().render()","column().render()",function(e){return this.iterator("column-rows",function(t,n,r,s,i){return Wn(t,n,r,s,i,e)},1)});le("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].mData},1)});le("columns().cache()","column().cache()",function(e){return this.iterator("column-rows",function(t,n,r,s,i){return It(t.aoData,i,e==="search"?"_aFilterData":"_aSortData",n)},1)});le("columns().init()","column().init()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t]},1)});le("columns().names()","column().name()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].sName},1)});le("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,t,n,r,s){return It(e.aoData,s,"anCells",t)},1)});le("columns().titles()","column().title()",function(e,t){return this.iterator("column",function(n,r){typeof e=="number"&&(t=e,e=void 0);var s=S(".dt-column-title",this.column(r).header(t));return e!==void 0?(s.html(e),this):s.html()},1)});le("columns().types()","column().type()",function(){return this.iterator("column",function(e,t){var n=e.aoColumns[t],r=n.sType;return r||(Zt(e),r=n.sType),r},1)});le("columns().visible()","column().visible()",function(e,t){var n=this,r=[],s=this.iterator("column",function(i,a){if(e===void 0)return i.aoColumns[a].bVisible;gi(i,a,e)&&r.push(a)});return e!==void 0&&this.iterator("table",function(i){qt(i,i.aoHeader),qt(i,i.aoFooter),i.aiDisplay.length||S(i.nTBody).find("td[colspan]").attr("colspan",Kt(i)),nn(i),n.iterator("column",function(a,l){r.includes(l)&&ie(a,null,"column-visibility",[a,l,e,t])}),r.length&&(t===void 0||t)&&n.columns.adjust()}),s});le("columns().widths()","column().width()",function(){var e=this.columns(":visible").count(),t=S("<tr>").html("<td>"+Array(e).join("</td><td>")+"</td>");S(this.table().body()).append(t);var n=t.children().map(function(){return S(this).outerWidth()});return t.remove(),this.iterator("column",function(r,s){var i=Nt(r,s);return i!==null?n[i]:0},1)});le("columns().indexes()","column().index()",function(e){return this.iterator("column",function(t,n){return e==="visible"?Nt(t,n):n},1)});q("columns.adjust()",function(){return this.iterator("table",function(e){e.containerWidth=-1,Jt(e)},1)});q("column.index()",function(e,t){if(this.context.length!==0){var n=this.context[0];if(e==="fromVisible"||e==="toData")return Dn(n,t);if(e==="fromData"||e==="toVisible")return Nt(n,t)}});q("column()",function(e,t){return Hn(this.columns(e,t))});var bi=function(e,t,n){var r=e.aoData,s=sn(e,n),i=wr(It(r,s,"anCells")),a=S(_r([],i)),l,u=e.aoColumns.length,h,f,b,v,m,C,w=function(c){var o=typeof c=="function";if(c==null||o){for(h=[],f=0,b=s.length;f<b;f++)for(l=s[f],v=0;v<u;v++)m={row:l,column:v},o?(C=r[l],c(m,Ne(e,l,v),C.anCells?C.anCells[v]:null)&&h.push(m)):h.push(m);return h}if(S.isPlainObject(c))return c.column!==void 0&&c.row!==void 0&&s.indexOf(c.row)!==-1?[c]:[];var d=a.filter(c).map(function(p,_){return{row:_._DT_CellIndex.row,column:_._DT_CellIndex.column}}).toArray();return d.length||!c.nodeName?d:(C=S(c).closest("*[data-dt-row]"),C.length?[{row:C.data("dt-row"),column:C.data("dt-column")}]:[])};return En("cell",t,w,e,n)};q("cells()",function(e,t,n){if(S.isPlainObject(e)&&(e.row===void 0?(n=e,e=null):(n=t,t=null)),S.isPlainObject(t)&&(n=t,t=null),t==null)return this.iterator("table",function(v){return bi(v,e,Vn(n))});var r=n?{page:n.page,order:n.order,search:n.search}:{},s=this.columns(t,r),i=this.rows(e,r),a,l,u,h,f=this.iterator("table",function(v,m){var C=[];for(a=0,l=i[m].length;a<l;a++)for(u=0,h=s[m].length;u<h;u++)C.push({row:i[m][a],column:s[m][u]});return C},1),b=n&&n.selected?this.cells(f,n):f;return S.extend(b.selector,{cols:t,rows:e,opts:n}),b});le("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(e,t,n){var r=e.aoData[t];return r&&r.anCells?r.anCells[n]:void 0},1)});q("cells().data()",function(){return this.iterator("cell",function(e,t,n){return Ne(e,t,n)},1)});le("cells().cache()","cell().cache()",function(e){return e=e==="search"?"_aFilterData":"_aSortData",this.iterator("cell",function(t,n,r){return t.aoData[n][e][r]},1)});le("cells().render()","cell().render()",function(e){return this.iterator("cell",function(t,n,r){return Ne(t,n,r,e)},1)});le("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(e,t,n){return{row:t,column:n,columnVisible:Nt(e,n)}},1)});le("cells().invalidate()","cell().invalidate()",function(e){return this.iterator("cell",function(t,n,r){en(t,n,e,r)})});q("cell()",function(e,t,n){return Hn(this.cells(e,t,n))});q("cell().data()",function(e){var t=this.context,n=this[0];return e===void 0?t.length&&n.length?Ne(t[0],n[0].row,n[0].column):void 0:(Ws(t[0],n[0].row,n[0].column,e),en(t[0],n[0].row,"data",n[0].column),this)});q("order()",function(e,t){var n=this.context,r=Array.prototype.slice.call(arguments);return e===void 0?n.length!==0?n[0].aaSorting:void 0:(typeof e=="number"?e=[[e,t]]:r.length>1&&(e=r),this.iterator("table",function(s){var i=[];st(s,i,e),s.aaSorting=i}))});q("order.listener()",function(e,t,n){return this.iterator("table",function(r){Fr(r,e,{},t,n)})});q("order.fixed()",function(e){if(!e){var t=this.context,n=t.length?t[0].aaSortingFixed:void 0;return Array.isArray(n)?{pre:n}:n}return this.iterator("table",function(r){r.aaSortingFixed=S.extend(!0,{},e)})});q(["columns().order()","column().order()"],function(e){var t=this;return e?this.iterator("table",function(n,r){n.aaSorting=t[r].map(function(s){return[s,e]})}):this.iterator("column",function(n,r){for(var s=tn(n),i=0,a=s.length;i<a;i++)if(s[i].col===r)return s[i].dir;return null},1)});le("columns().orderable()","column().orderable()",function(e){return this.iterator("column",function(t,n){var r=t.aoColumns[n];return e?r.asSorting:r.bSortable},1)});q("processing()",function(e){return this.iterator("table",function(t){xe(t,e)})});q("search()",function(e,t,n,r){var s=this.context;return e===void 0?s.length!==0?s[0].oPreviousSearch.search:void 0:this.iterator("table",function(i){i.oFeatures.bFilter&&(typeof t=="object"?Lt(i,S.extend(i.oPreviousSearch,t,{search:e})):Lt(i,S.extend(i.oPreviousSearch,{search:e,regex:t===null?!1:t,smart:n===null?!0:n,caseInsensitive:r===null?!0:r})))})});q("search.fixed()",function(e,t){var n=this.iterator(!0,"table",function(r){var s=r.searchFixed;if(e){if(t===void 0)return s[e];t===null?delete s[e]:s[e]=t}else return Object.keys(s);return this});return e!==void 0&&t===void 0?n[0]:n});le("columns().search()","column().search()",function(e,t,n,r){return this.iterator("column",function(s,i){var a=s.aoPreSearchCols;if(e===void 0)return a[i].search;s.oFeatures.bFilter&&(typeof t=="object"?S.extend(a[i],t,{search:e}):S.extend(a[i],{search:e,regex:t===null?!1:t,smart:n===null?!0:n,caseInsensitive:r===null?!0:r}),Lt(s,s.oPreviousSearch))})});q(["columns().search.fixed()","column().search.fixed()"],function(e,t){var n=this.iterator(!0,"column",function(r,s){var i=r.aoColumns[s].searchFixed;if(e){if(t===void 0)return i[e]||null;t===null?delete i[e]:i[e]=t}else return Object.keys(i);return this});return e!==void 0&&t===void 0?n[0]:n});q("state()",function(e,t){if(!e)return this.context.length?this.context[0].oSavedState:null;var n=S.extend(!0,{},e);return this.iterator("table",function(r){t!==!1&&(n.time=+new Date+100),Cn(r,n,function(){})})});q("state.clear()",function(){return this.iterator("table",function(e){e.fnStateSaveCallback.call(e.oInstance,e,{})})});q("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});q("state.save()",function(){return this.iterator("table",function(e){nn(e)})});var ur,fr;V.use=function(e,t){var n=typeof e=="string"?t:e,r=typeof t=="string"?t:e;if(n===void 0&&typeof r=="string")switch(r){case"lib":case"jq":return S;case"win":return window;case"datetime":return V.DateTime;case"luxon":return Ke;case"moment":return ot;case"bootstrap":return ur||window.bootstrap;case"foundation":return fr||window.Foundation;default:return null}r==="lib"||r==="jq"||n&&n.fn&&n.fn.jquery?S=n:r==="win"||n&&n.document?(window=n,document=n.document):r==="datetime"||n&&n.type==="DateTime"?V.DateTime=n:r==="luxon"||n&&n.FixedOffsetZone?Ke=n:r==="moment"||n&&n.isMoment?ot=n:r==="bootstrap"||n&&n.Modal&&n.Modal.NAME==="modal"?ur=n:(r==="foundation"||n&&n.Reveal)&&(fr=n)};V.factory=function(e,t){var n=!1;return e&&e.document&&(window=e,document=e.document),t&&t.fn&&t.fn.jquery&&(S=t,n=!0),n};V.versionCheck=function(e,t){for(var n=t?t.split("."):V.version.split("."),r=e.split("."),s,i,a=0,l=r.length;a<l;a++)if(s=parseInt(n[a],10)||0,i=parseInt(r[a],10)||0,s!==i)return s>i;return!0};V.isDataTable=function(e){var t=S(e).get(0),n=!1;return e instanceof V.Api?!0:(S.each(V.settings,function(r,s){var i=s.nScrollHead?S("table",s.nScrollHead)[0]:null,a=s.nScrollFoot?S("table",s.nScrollFoot)[0]:null;(s.nTable===t||i===t||a===t)&&(n=!0)}),n)};V.tables=function(e){var t=!1;S.isPlainObject(e)&&(t=e.api,e=e.visible);var n=V.settings.filter(function(r){return!!(!e||e&&S(r.nTable).is(":visible"))}).map(function(r){return r.nTable});return t?new se(n):n};V.camelToHungarian=ze;q("$()",function(e,t){var n=this.rows(t).nodes(),r=S(n);return S([].concat(r.filter(e).toArray(),r.find(e).toArray()))});S.each(["on","one","off"],function(e,t){q(t+"()",function(){var n=Array.prototype.slice.call(arguments);n[0]=n[0].split(/\s/).map(function(s){return s.match(/\.dt\b/)?s:s+".dt"}).join(" ");var r=S(this.tables().nodes());return r[t].apply(r,n),this})});q("clear()",function(){return this.iterator("table",function(e){kn(e)})});q("error()",function(e){return this.iterator("table",function(t){Ie(t,0,e)})});q("settings()",function(){return new se(this.context,this.context)});q("init()",function(){var e=this.context;return e.length?e[0].oInit:null});q("data()",function(){return this.iterator("table",function(e){return ge(e.aoData,"_aData")}).flatten()});q("trigger()",function(e,t,n){return this.iterator("table",function(r){return ie(r,null,e,t,n)}).flatten()});q("ready()",function(e){var t=this.context;return e?this.tables().every(function(){var n=this;this.context[0]._bInitComplete?e.call(n):this.on("init.dt.DT",function(){e.call(n)})}):t.length?t[0]._bInitComplete||!1:null});q("destroy()",function(e){return e=e||!1,this.iterator("table",function(t){var n=t.oClasses,r=t.nTable,s=t.nTBody,i=t.nTHead,a=t.nTFoot,l=S(r),u=S(s),h=S(t.nTableWrapper),f=t.aoData.map(function(c){return c?c.nTr:null}),b=n.order;t.bDestroying=!0,ie(t,"aoDestroyCallback","destroy",[t],!0),e||new se(t).columns().visible(!0),t.resizeObserver&&t.resizeObserver.disconnect(),h.off(".DT").find(":not(tbody *)").off(".DT"),S(window).off(".DT-"+t.sInstance),r!=i.parentNode&&(l.children("thead").detach(),l.append(i)),a&&r!=a.parentNode&&(l.children("tfoot").detach(),l.append(a)),hr(i,"header"),hr(a,"footer"),t.colgroup.remove(),t.aaSorting=[],t.aaSortingFixed=[],_n(t),S(l).find("th, td").removeClass(S.map(V.ext.type.className,function(c){return c}).join(" ")),S("th, td",i).removeClass(b.none+" "+b.canAsc+" "+b.canDesc+" "+b.isAsc+" "+b.isDesc).css("width","").removeAttr("aria-sort"),u.children().detach(),u.append(f);var v=t.nTableWrapper.parentNode,m=t.nTableWrapper.nextSibling,C=e?"remove":"detach";l[C](),h[C](),!e&&v&&(v.insertBefore(r,m),l.css("width",t.sDestroyWidth).removeClass(n.table));var w=V.settings.indexOf(t);w!==-1&&V.settings.splice(w,1)})});S.each(["column","row","cell"],function(e,t){q(t+"s().every()",function(n){var r=this.selector.opts,s=this,i,a=0;return this.iterator("every",function(l,u,h){i=s[t](u,r),t==="cell"?n.call(i,i[0][0].row,i[0][0].column,h,a):n.call(i,u,h,a),a++})})});q("i18n()",function(e,t,n){var r=this.context[0],s=mt(e)(r.oLanguage);return s===void 0&&(s=t),S.isPlainObject(s)&&(s=n!==void 0&&s[n]!==void 0?s[n]:n===!1?s:s._),typeof s=="string"?s.replace("%d",n):s});function hr(e,t){S(e).find(".dt-column-order").remove(),S(e).find(".dt-column-title").each(function(){var n=S(this).html();S(this).parent().parent().append(n),S(this).remove()}),S(e).find("div.dt-column-"+t).remove(),S("th, td",e).removeAttr("data-dt-column")}V.version="2.3.6";V.settings=[];V.models={};V.models.oSearch={caseInsensitive:!0,search:"",regex:!1,smart:!0,return:!1};V.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,src:null,idx:-1,displayData:null};V.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null,wideStrings:null,searchFixed:null};V.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],bAutoWidth:!0,bDeferRender:!0,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:null,titleRow:null,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnStateLoadCallback:function(e){try{return JSON.parse((e.iStateDuration===-1?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(t){return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(e.iStateDuration===-1?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(n){}},fnStateSaveParams:null,iStateDuration:7200,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{orderable:": Activate to sort",orderableReverse:": Activate to invert sorting",orderableRemove:": Activate to remove sorting",paginate:{first:"First",last:"Last",next:"Next",previous:"Previous",number:""}},oPaginate:{sFirst:"\xAB",sLast:"\xBB",sNext:"\u203A",sPrevious:"\u2039"},entries:{_:"entries",1:"entry"},lengthLabels:{"-1":"All"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ _ENTRIES-TOTAL_",sInfoEmpty:"Showing 0 to 0 of 0 _ENTRIES-TOTAL_",sInfoFiltered:"(filtered from _MAX_ total _ENTRIES-MAX_)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"_MENU_ _ENTRIES_ per page",sLoadingRecords:"Loading...",sProcessing:"",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},orderDescReverse:!0,oSearch:S.extend({},V.models.oSearch),layout:{topStart:"pageLength",topEnd:"search",bottomStart:"info",bottomEnd:"paging"},sDom:null,searchDelay:null,sPaginationType:"",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId",caption:null,iDeferLoading:null,on:null,columnTitleTag:"span"};Qt(V.defaults);V.defaults.column={aDataSort:null,iDataSort:-1,ariaTitle:"",asSorting:["asc","desc",""],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};Qt(V.defaults.column);V.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:!0,bLengthChange:!0,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollbarLeft:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},searchFixed:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",pagingControls:0,iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,bAjaxDataGet:!0,jqXHR:null,json:void 0,oAjaxData:void 0,sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return Se(this)=="ssp"?this._iRecordsTotal*1:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return Se(this)=="ssp"?this._iRecordsDisplay*1:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,r=this.aiDisplay.length,s=this.oFeatures,i=s.bPaginate;return s.bServerSide?i===!1||e===-1?t+r:Math.min(t+e,this._iRecordsDisplay):!i||n>r||e===-1?r:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null,caption:"",captionNode:null,colgroup:null,deferLoading:null,typeDetect:!0,resizeObserver:null,containerWidth:-1,orderDescReverse:null,orderIndicators:!0,orderHandler:!0,titleRow:null,columnTitleTag:"span"};var yi=V.ext.pager;S.extend(yi,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(){return["numbers"]},simple_numbers:function(){return["previous","numbers","next"]},full_numbers:function(){return["first","previous","numbers","next","last"]},first_last:function(){return["first","last"]},first_last_numbers:function(){return["first","numbers","last"]},_numbers:Xr,numbers_length:7});S.extend(!0,V.ext.renderer,{pagingButton:{_:function(e,t,n,r,s){var i=e.oClasses.paging,a=[i.button],l;return r&&a.push(i.active),s&&a.push(i.disabled),t==="ellipsis"?l=S('<span class="ellipsis"></span>').html(n)[0]:l=S("<button>",{class:a.join(" "),role:"link",type:"button"}).html(n),{display:l,clicker:l}}},pagingContainer:{_:function(e,t){return t}}});var wt=function(e,t){return function(n){return Te(n)||typeof n!="string"||(n=n.replace(Is," "),e&&(n=Ge(n)),t&&(n=Ut(n,!1))),n}};function pr(e,t,n,r,s){return ot?e[t](s):Ke?e[n](s):r?e[r](s):e}var vr=!1,Ke,ot;function wi(){window.luxon&&!Ke&&(Ke=window.luxon),window.moment&&!ot&&(ot=window.moment)}function zt(e,t,n){var r;if(wi(),ot){if(r=ot.utc(e,t,n,!0),!r.isValid())return null}else if(Ke){if(r=t&&typeof e=="string"?Ke.DateTime.fromFormat(e,t):Ke.DateTime.fromISO(e),!r.isValid)return null;r=r.setLocale(n)}else t?(vr||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),vr=!0):r=new Date(e);return r}function vn(e){return function(t,n,r,s){arguments.length===0?(r="en",n=null,t=null):arguments.length===1?(r="en",n=t,t=null):arguments.length===2&&(r=n,n=t,t=null);var i="datetime"+(n?"-"+n:"");return V.ext.type.order[i+"-pre"]||V.type(i,{detect:function(a){return a===i?i:!1},order:{pre:function(a){return a.valueOf()}},className:"dt-right"}),function(a,l){if(a==null)if(s==="--now"){var u=new Date;a=new Date(Date.UTC(u.getFullYear(),u.getMonth(),u.getDate(),u.getHours(),u.getMinutes(),u.getSeconds()))}else a="";if(l==="type")return i;if(a==="")return l!=="sort"?"":zt("0000-01-01 00:00:00",null,r);if(n!==null&&t===n&&l!=="sort"&&l!=="type"&&!(a instanceof Date))return a;var h=zt(a,t,r);if(h===null)return a;if(l==="sort")return h;var f=n===null?pr(h,"toDate","toJSDate","")[e](navigator.language,{timeZone:"UTC"}):pr(h,"format","toFormat","toISOString",n);return l==="display"?it(f):f}}}var $r=",",qr=".";if(window.Intl!==void 0)try{for(pt=new Intl.NumberFormat().formatToParts(100000.1),ue=0;ue<pt.length;ue++)pt[ue].type==="group"?$r=pt[ue].value:pt[ue].type==="decimal"&&(qr=pt[ue].value)}catch(e){}var pt,ue;V.datetime=function(e,t){var n="datetime-"+e;t||(t="en"),V.ext.type.order[n]||V.type(n,{detect:function(r){var s=zt(r,e,t);return r===""||s?n:!1},order:{pre:function(r){return zt(r,e,t)||0}},className:"dt-right"})};V.render={date:vn("toLocaleDateString"),datetime:vn("toLocaleString"),time:vn("toLocaleTimeString"),number:function(e,t,n,r,s){return e==null&&(e=$r),t==null&&(t=qr),{display:function(i){if(typeof i!="number"&&typeof i!="string"||i===""||i===null)return i;var a=i<0?"-":"",l=parseFloat(i),u=Math.abs(l);if(u>=1e11||u<1e-4&&u!==0){var h=l.toExponential(n).split(/e\+?/);return h[0]+" x 10<sup>"+h[1]+"</sup>"}if(isNaN(l))return it(i);l=l.toFixed(n),i=Math.abs(l);var f=parseInt(i,10),b=n?t+(i-f).toFixed(n).substring(2):"";return f===0&&parseFloat(b)===0&&(a=""),a+(r||"")+f.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+b+(s||"")}}},text:function(){return{display:it,filter:it}}};var ye=V.ext.type;V.type=function(e,t,n){if(!t)return{className:ye.className[e],detect:ye.detect.find(function(a){return a._name===e}),order:{pre:ye.order[e+"-pre"],asc:ye.order[e+"-asc"],desc:ye.order[e+"-desc"]},render:ye.render[e],search:ye.search[e]};var r=function(a,l){ye[a][e]=l},s=function(a){Object.defineProperty(a,"_name",{value:e});var l=ye.detect.findIndex(function(u){return u._name===e});l===-1?ye.detect.unshift(a):ye.detect.splice(l,1,a)},i=function(a){ye.order[e+"-pre"]=a.pre,ye.order[e+"-asc"]=a.asc,ye.order[e+"-desc"]=a.desc};n===void 0&&(n=t,t=null),t==="className"?r("className",n):t==="detect"?s(n):t==="order"?i(n):t==="render"?r("render",n):t==="search"?r("search",n):t||(n.className&&r("className",n.className),n.detect!==void 0&&s(n.detect),n.order&&i(n.order),n.render!==void 0&&r("render",n.render),n.search!==void 0&&r("search",n.search))};V.types=function(){return ye.detect.map(function(e){return e._name})};var Tn=function(e,t){return e=e!=null?e.toString().toLowerCase():"",t=t!=null?t.toString().toLowerCase():"",e.localeCompare(t,navigator.languages[0]||navigator.language,{numeric:!0,ignorePunctuation:!0})},mr=function(e,t){return e=Ge(e),t=Ge(t),Tn(e,t)};V.type("string",{detect:function(){return"string"},order:{pre:function(e){return Te(e)&&typeof e!="boolean"?"":typeof e=="string"?e.toLowerCase():e.toString?e.toString():""}},search:wt(!1,!0)});V.type("string-utf8",{detect:{allOf:function(e){return!0},oneOf:function(e){return!Te(e)&&navigator.languages&&typeof e=="string"&&e.match(/[^\x00-\x7F]/)}},order:{asc:Tn,desc:function(e,t){return Tn(e,t)*-1}},search:wt(!1,!0)});V.type("html",{detect:{allOf:function(e){return Te(e)||typeof e=="string"&&e.indexOf("<")!==-1},oneOf:function(e){return!Te(e)&&typeof e=="string"&&e.indexOf("<")!==-1}},order:{pre:function(e){return Te(e)?"":e.replace?Ge(e).trim().toLowerCase():e+""}},search:wt(!0,!0)});V.type("html-utf8",{detect:{allOf:function(e){return Te(e)||typeof e=="string"&&e.indexOf("<")!==-1},oneOf:function(e){return navigator.languages&&!Te(e)&&typeof e=="string"&&e.indexOf("<")!==-1&&typeof e=="string"&&e.match(/[^\x00-\x7F]/)}},order:{asc:mr,desc:function(e,t){return mr(e,t)*-1}},search:wt(!0,!0)});V.type("date",{className:"dt-type-date",detect:{allOf:function(e){if(e&&!(e instanceof Date)&&!Zn.test(e))return null;var t=Date.parse(e);return t!==null&&!isNaN(t)||Te(e)},oneOf:function(e){return e instanceof Date||typeof e=="string"&&Zn.test(e)}},order:{pre:function(e){var t=Date.parse(e);return isNaN(t)?-1/0:t}}});V.type("html-num-fmt",{className:"dt-type-numeric",detect:{allOf:function(e,t){var n=t.oLanguage.sDecimal;return Gt(e,n,!0,!1)},oneOf:function(e,t){var n=t.oLanguage.sDecimal;return Gt(e,n,!0,!1)}},order:{pre:function(e,t){var n=t.oLanguage.sDecimal;return on(e,n,xn,Sn)}},search:wt(!0,!0)});V.type("html-num",{className:"dt-type-numeric",detect:{allOf:function(e,t){var n=t.oLanguage.sDecimal;return Gt(e,n,!1,!0)},oneOf:function(e,t){var n=t.oLanguage.sDecimal;return Gt(e,n,!1,!1)}},order:{pre:function(e,t){var n=t.oLanguage.sDecimal;return on(e,n,xn)}},search:wt(!0,!0)});V.type("num-fmt",{className:"dt-type-numeric",detect:{allOf:function(e,t){var n=t.oLanguage.sDecimal;return At(e,n,!0,!0)},oneOf:function(e,t){var n=t.oLanguage.sDecimal;return At(e,n,!0,!1)}},order:{pre:function(e,t){var n=t.oLanguage.sDecimal;return on(e,n,Sn)}}});V.type("num",{className:"dt-type-numeric",detect:{allOf:function(e,t){var n=t.oLanguage.sDecimal;return At(e,n,!1,!0)},oneOf:function(e,t){var n=t.oLanguage.sDecimal;return At(e,n,!1,!1)}},order:{pre:function(e,t){var n=t.oLanguage.sDecimal;return on(e,n)}}});var on=function(e,t,n,r){if(e!==0&&(!e||e==="-"))return-1/0;var s=typeof e;return s==="number"||s==="bigint"?e:(t&&(e=yr(e,t)),e.replace&&(n&&(e=e.replace(n,"")),r&&(e=e.replace(r,""))),e*1)};S.extend(!0,V.ext.renderer,{footer:{_:function(e,t,n){t.addClass(n.tfoot.cell)}},header:{_:function(e,t,n){t.addClass(n.thead.cell),e.oFeatures.bSort||t.addClass(n.order.none);var r=e.titleRow,s=t.closest("thead").find("tr"),i=t.parent().index();t.attr("data-dt-order")==="disable"||t.parent().attr("data-dt-order")==="disable"||r===!0&&i!==0||r===!1&&i!==s.length-1||typeof r=="number"&&i!==r||S(e.nTable).on("order.dt.DT column-visibility.dt.DT",function(a,l,u){if(e===l){var h=l.sortDetails;if(h){var f=ge(h,"col");if(!(a.type==="column-visibility"&&!f.includes(u))){var b,v=n.order,m=l.api.columns(t),C=e.aoColumns[m.flatten()[0]],w=m.orderable().includes(!0),c="",o=m.indexes(),d=m.orderable(!0).flatten(),p=e.iTabIndex,_=l.orderHandler&&w;t.removeClass(v.isAsc+" "+v.isDesc).toggleClass(v.none,!w).toggleClass(v.canAsc,_&&d.includes("asc")).toggleClass(v.canDesc,_&&d.includes("desc"));var x=!0;for(b=0;b<o.length;b++)f.includes(o[b])||(x=!1);if(x){var P=m.order();t.addClass(P.includes("asc")?v.isAsc:""+P.includes("desc")?v.isDesc:"")}var I=-1;for(b=0;b<f.length;b++)if(e.aoColumns[f[b]].bVisible){I=f[b];break}if(o[0]==I){var B=h[0],E=C.asSorting;t.attr("aria-sort",B.dir==="asc"?"ascending":"descending"),c=E[B.index+1]?"Reverse":"Remove"}else t.removeAttr("aria-sort");if(w){var F=t.find(".dt-column-order");F.attr("role","button").attr("aria-label",w?C.ariaTitle+l.api.i18n("oAria.orderable"+c):C.ariaTitle),p!==-1&&F.attr("tabindex",p)}}}}})}},layout:{_:function(e,t,n){var r=e.oClasses.layout,s=S("<div/>").attr("id",n.id||null).addClass(n.className||r.row).appendTo(t);V.ext.renderer.layout._forLayoutRow(n,function(i,a){if(!(i==="id"||i==="className")){var l="";a.table&&(s.addClass(r.tableRow),l+=r.tableCell+" "),i==="start"?l+=r.start:i==="end"?l+=r.end:l+=r.full,S("<div/>").attr({id:a.id||null,class:a.className?a.className:r.cell+" "+l}).append(a.contents).appendTo(s)}})},_forLayoutRow:function(e,t){var n=function(r){switch(r){case"":return 0;case"start":return 1;case"end":return 2;default:return 3}};Object.keys(e).sort(function(r,s){return n(r)-n(s)}).forEach(function(r){t(r,e[r])})}}});V.feature={};V.feature.register=function(e,t,n){V.ext.features[e]=t,n&&pe.feature.push({cFeature:n,fnInit:t})};function Mt(e,t,n){n&&(e[t]=n)}V.feature.register("div",function(e,t){var n=S("<div>")[0];return t&&(Mt(n,"className",t.className),Mt(n,"id",t.id),Mt(n,"innerHTML",t.html),Mt(n,"textContent",t.text)),n});V.feature.register("info",function(e,t){if(!e.oFeatures.bInfo)return null;var n=e.oLanguage,r=e.sTableId,s=S("<div/>",{class:e.oClasses.info.container});return t=S.extend({callback:n.fnInfoCallback,empty:n.sInfoEmpty,postfix:n.sInfoPostFix,search:n.sInfoFiltered,text:n.sInfo},t),e.aoDrawCallback.push(function(i){_i(i,t,s)}),e._infoEl||(s.attr({"aria-live":"polite",id:r+"_info",role:"status"}),S(e.nTable).attr("aria-describedby",r+"_info"),e._infoEl=s),s},"i");function _i(e,t,n){var r=e._iDisplayStart+1,s=e.fnDisplayEnd(),i=e.fnRecordsTotal(),a=e.fnRecordsDisplay(),l=a?t.text:t.empty;a!==i&&(l+=" "+t.search),l+=t.postfix,l=Fn(e,l),t.callback&&(l=t.callback.call(e.oInstance,e,r,s,i,a,l)),n.html(l),ie(e,null,"info",[e,n[0],l])}var mn=0;V.feature.register("search",function(e,t){if(!e.oFeatures.bFilter)return null;var n=e.oClasses.search,r=e.sTableId,s=e.oLanguage,i=e.oPreviousSearch,a='<input type="search" class="'+n.input+'"/>';t=S.extend({placeholder:s.sSearchPlaceholder,processing:!1,text:s.sSearch},t),t.text.indexOf("_INPUT_")===-1&&(t.text+="_INPUT_"),t.text=Fn(e,t.text);var l=t.text.match(/_INPUT_$/),u=t.text.match(/^_INPUT_/),h=t.text.replace(/_INPUT_/,""),f="<label>"+t.text+"</label>";u?f="_INPUT_<label>"+h+"</label>":l&&(f="<label>"+h+"</label>_INPUT_");var b=S("<div>").addClass(n.container).append(f.replace(/_INPUT_/,a));b.find("label").attr("for","dt-search-"+mn),b.find("input").attr("id","dt-search-"+mn),mn++;var v=function(w){var c=this.value;i.return&&w.key!=="Enter"||c!=i.search&&Lr(e,t.processing,function(){i.search=c,Lt(e,i),e._iDisplayStart=0,yt(e)})},m=e.searchDelay!==null?e.searchDelay:0,C=S("input",b).val(i.search).attr("placeholder",t.placeholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",m?V.util.debounce(v,m):v).on("mouseup.DT",function(w){setTimeout(function(){v.call(C[0],w)},10)}).on("keypress.DT",function(w){if(w.keyCode==13)return!1}).attr("aria-controls",r);return S(e.nTable).on("search.dt.DT",function(w,c){e===c&&C[0]!==document.activeElement&&C.val(typeof i.search!="function"?i.search:"")}),b},"f");V.feature.register("paging",function(e,t){if(!e.oFeatures.bPaginate)return null;t=S.extend({buttons:V.ext.pager.numbers_length,type:e.sPaginationType,boundaryNumbers:!0,firstLast:!0,previousNext:!0,numbers:!0},t);var n=S("<div/>").addClass(e.oClasses.paging.container+(t.type?" paging_"+t.type:"")).append(S("<nav>").attr("aria-label","pagination").addClass(e.oClasses.paging.nav)),r=function(){Yr(e,n.children(),t)};return e.aoDrawCallback.push(r),S(e.nTable).on("column-sizing.dt.DT",r),n},"p");function Ci(e){var t=[];return e.numbers&&t.push("numbers"),e.previousNext&&(t.unshift("previous"),t.push("next")),e.firstLast&&(t.unshift("first"),t.push("last")),t}function Yr(e,t,n){if(e._bInitComplete){var r=n.type?V.ext.pager[n.type]:Ci,s=e.oLanguage.oAria.paginate||{},i=e._iDisplayStart,a=e._iDisplayLength,l=e.fnRecordsDisplay(),u=a===-1,h=u?0:Math.ceil(i/a),f=u?1:Math.ceil(l/a),b=[],v=[],m=r(n).map(function(P){return P==="numbers"?Xr(h,f,n.buttons,n.boundaryNumbers):P});b=b.concat.apply(b,m);for(var C=0;C<b.length;C++){var w=b[C],c=Ti(e,w,h,f),o=Xt(e,"pagingButton")(e,w,c.display,c.active,c.disabled),d=typeof w=="string"?s[w]:s.number?s.number+(w+1):null;S(o.clicker).attr({"aria-controls":e.sTableId,"aria-disabled":c.disabled?"true":null,"aria-current":c.active?"page":null,"aria-label":d,"data-dt-idx":w,tabIndex:c.disabled?-1:e.iTabIndex&&o.clicker[0].nodeName.toLowerCase()!=="span"?e.iTabIndex:null}),typeof w!="number"&&S(o.clicker).addClass(w),Er(o.clicker,{action:w},function(P){P.preventDefault(),Nn(e,P.data.action,!0)}),v.push(o.display)}var p=Xt(e,"pagingContainer")(e,v),_=t.find(document.activeElement).data("dt-idx");if(t.empty().append(p),_!==void 0&&t.find("[data-dt-idx="+_+"]").trigger("focus"),v.length){var x=S(v[0]).outerHeight();n.buttons>1&&x>0&&S(t).height()>=x*2-10&&Yr(e,t,S.extend({},n,{buttons:n.buttons-2}))}}}function Ti(e,t,n,r){var s=e.oLanguage.oPaginate,i={display:"",active:!1,disabled:!1};switch(t){case"ellipsis":i.display="&#x2026;";break;case"first":i.display=s.sFirst,n===0&&(i.disabled=!0);break;case"previous":i.display=s.sPrevious,n===0&&(i.disabled=!0);break;case"next":i.display=s.sNext,(r===0||n===r-1)&&(i.disabled=!0);break;case"last":i.display=s.sLast,(r===0||n===r-1)&&(i.disabled=!0);break;default:typeof t=="number"&&(i.display=e.fnFormatNumber(t+1),n===t&&(i.active=!0));break}return i}function Xr(e,t,n,r){var s=[],i=Math.floor(n/2),a=r?2:1,l=r?1:0;return t<=n?s=Xe(0,t):n===1?s=[e]:n===3?e<=1?s=[0,1,"ellipsis"]:e>=t-2?(s=Xe(t-2,t),s.unshift("ellipsis")):s=["ellipsis",e,"ellipsis"]:e<=i?(s=Xe(0,n-a),s.push("ellipsis"),r&&s.push(t-1)):e>=t-1-i?(s=Xe(t-(n-a),t),s.unshift("ellipsis"),r&&s.unshift(0)):(s=Xe(e-i+a,e+i-l),s.push("ellipsis"),s.unshift("ellipsis"),r&&(s.push(t-1),s.unshift(0))),s}var gn=0;V.feature.register("pageLength",function(e,t){var n=e.oFeatures;if(!n.bPaginate||!n.bLengthChange)return null;t=S.extend({menu:e.aLengthMenu,text:e.oLanguage.sLengthMenu},t);var r=e.oClasses.length,s=e.sTableId,i=t.menu,a=[],l=[],u;if(Array.isArray(i[0]))a=i[0],l=i[1];else for(u=0;u<i.length;u++)S.isPlainObject(i[u])?(a.push(i[u].value),l.push(i[u].label)):(a.push(i[u]),l.push(i[u]));var h=t.text.match(/_MENU_$/),f=t.text.match(/^_MENU_/),b=t.text.replace(/_MENU_/,""),v="<label>"+t.text+"</label>";f?v="_MENU_<label>"+b+"</label>":h&&(v="<label>"+b+"</label>_MENU_");var m="tmp-"+ +new Date,C=S("<div/>").addClass(r.container).append(v.replace("_MENU_",'<span id="'+m+'"></span>')),w=[];Array.prototype.slice.call(C.find("label")[0].childNodes).forEach(function(p){p.nodeType===Node.TEXT_NODE&&w.push({el:p,text:p.textContent})});var c=function(p){w.forEach(function(_){_.el.textContent=Fn(e,_.text,p)})},o=S("<select/>",{"aria-controls":s,class:r.select});for(u=0;u<a.length;u++){var d=e.api.i18n("lengthLabels."+a[u],null);d===null&&(d=typeof l[u]=="number"?e.fnFormatNumber(l[u]):l[u]),o[0][u]=new Option(d,a[u])}return C.find("label").attr("for","dt-length-"+gn),o.attr("id","dt-length-"+gn),gn++,C.find("#"+m).replaceWith(o),S("select",C).val(e._iDisplayLength).on("change.DT",function(){kr(e,S(this).val()),yt(e)}),S(e.nTable).on("length.dt.DT",function(p,_,x){e===_&&(S("select",C).val(x),c(x))}),c(e._iDisplayLength),C},"l");S.fn.dataTable=V;V.$=S;S.fn.dataTableSettings=V.settings;S.fn.dataTableExt=V.ext;S.fn.DataTable=function(e){return S(this).dataTable(e).api()};S.each(V,function(e,t){S.fn.DataTable[e]=t});var k=V;var Di=oe(ae("jquery"),1);var zr=oe(ae("jquery"),1);var J=zr.default,Si=0,Fe=function(e,t){if(!k.versionCheck||!k.versionCheck("1.11"))throw"Warning: AutoFill requires DataTables 1.11 or greater";this.c=J.extend(!0,{},k.defaults.autoFill,Fe.defaults,t),this.s={dt:new k.Api(e),namespace:".autoFill"+Si++,scroll:{},scrollInterval:null,handle:{height:0,width:0},enabled:!1},this.dom={closeButton:J('<div class="dtaf-popover-close">&times;</div>'),handle:J('<div class="dt-autofill-handle"/>'),select:{top:J('<div class="dt-autofill-select top"/>'),right:J('<div class="dt-autofill-select right"/>'),bottom:J('<div class="dt-autofill-select bottom"/>'),left:J('<div class="dt-autofill-select left"/>')},background:J('<div class="dt-autofill-background"/>'),list:J('<div class="dt-autofill-list">'+this.s.dt.i18n("autoFill.info","")+"</div>").attr("aria-modal",!0).attr("role","dialog").append('<div class="dt-autofill-list-items"></div>'),dtScroll:null,offsetParent:null},this._constructor()};J.extend(Fe.prototype,{enabled:function(){return this.s.enabled},enable:function(e){var t=this;if(e===!1)return this.disable();this.s.enabled=!0,this._focusListener(),this.dom.handle.on("mousedown touchstart",function(r){return t._mousedown(r),!1}),J(window).on("resize",function(){var r=J("div.dt-autofill-handle");r.length>0&&t.dom.attachedTo!==void 0&&t._attach(t.dom.attachedTo)});let n=function(){t.s.handle={height:!1,width:!1},J(t.dom.handle).css({height:"",width:""}),t.dom.attachedTo!==void 0&&t._attach(t.dom.attachedTo)};return J(window).on("orientationchange",function(){setTimeout(function(){n(),setTimeout(n,150)},50)}),this},disable:function(){return this.s.enabled=!1,this._focusListenerRemove(),this},_constructor:function(){var e=this,t=this.s.dt,n=J("div.dataTables_scrollBody, div.dt-scroll-body",this.s.dt.table().container());t.settings()[0].autoFill=this,n.length&&(this.dom.dtScroll=n,n.css("position")==="static"&&n.css("position","relative")),this.c.enable!==!1&&this.enable(),t.on("destroy.autoFill",function(){e._focusListenerRemove()})},_attach:function(e){var t=this.s.dt,n=t.cell(e).index(),r=this.dom.handle,s=this.s.handle;if(!n||t.columns(this.c.columns).indexes().indexOf(n.column)===-1){this._detach();return}this.dom.offsetParent||(this.dom.offsetParent=J(t.table().node()).offsetParent()),(!s.height||!s.width)&&(r.appendTo("body"),s.height=r.outerHeight(),s.width=r.outerWidth());var i=this._getPosition(e,this.dom.offsetParent);this.dom.attachedTo=e,r.css({top:i.top+e.offsetHeight-s.height,left:i.left+e.offsetWidth-s.width}).appendTo(this.dom.offsetParent)},_actionSelector:function(e){var t=this,n=this.s.dt,r=Fe.actions,s=[];if(J.each(r,function(l,u){u.available(n,e)&&s.push(l)}),s.length===1&&this.c.alwaysAsk===!1){var i=r[s[0]].execute(n,e);this._update(i,e)}else if(s.length>1||this.c.alwaysAsk){var a=this.dom.list.children("div.dt-autofill-list-items").empty();s.push("cancel"),J.each(s,function(l,u){a.append(J("<button/>").html(r[u].option(n,e)).append(J('<span class="dt-autofill-button"/>').html(n.i18n("autoFill.button","&gt;"))).on("click",function(h){if(h.target.nodeName.toLowerCase()==="button"){var f=r[u].execute(n,e,J(this).closest("button"));t._update(f,e),t.dom.background.remove(),t.dom.list.remove()}}))}),this.dom.background.appendTo("body"),this.dom.background.one("click",function(){t.dom.background.remove(),t.dom.list.remove()}),this.dom.list.appendTo("body"),this.c.closeButton&&(this.dom.list.prepend(this.dom.closeButton).addClass(Fe.classes.closeable),this.dom.closeButton.on("click",function(){return t.dom.background.click()})),this.dom.list.css("margin-top",this.dom.list.outerHeight()/2*-1)}},_detach:function(){this.dom.attachedTo=null,this.dom.handle.detach()},_drawSelection:function(e,t){var n=this.s.dt,r=this.s.start,s=J(this.dom.start),i={row:this.c.vertical?n.rows({page:"current"}).nodes().indexOf(e.parentNode):r.row,column:this.c.horizontal?J(e).index():r.column},a=n.column.index("toData",i.column),l=n.row(":eq("+i.row+")",{page:"current"}),u=J(n.cell(l.index(),a).node());if(n.cell(u).any()&&!(n.columns(this.c.columns).indexes().indexOf(a)===-1||i.row===-1)){this.s.end=i;var h,f,b,v,m,C;h=r.row<i.row?s:u,f=r.row<i.row?u:s,b=r.column<i.column?s:u,v=r.column<i.column?u:s,h=this._getPosition(h.get(0)).top,b=this._getPosition(b.get(0)).left,m=this._getPosition(f.get(0)).top+f.outerHeight()-h,C=this._getPosition(v.get(0)).left+v.outerWidth()-b;var w=this.dom.select;w.top.css({top:h,left:b,width:C}),w.left.css({top:h,left:b,height:m}),w.bottom.css({top:h+m,left:b,width:C}),w.right.css({top:h,left:b+C,height:m})}},_editor:function(e){var t=this.s.dt,n=this.c.editor;if(n){for(var r={},s=[],i=n.fields(),a=0,l=e.length;a<l;a++)for(var u=0,h=e[a].length;u<h;u++){var f=e[a][u],b=t.settings()[0].aoColumns[f.index.column],v=b.editField;if(v===void 0)for(var m=b.mData,C=0,w=i.length;C<w;C++){var c=n.field(i[C]);if(c.dataSrc()===m){v=c.name();break}}if(!v)throw"Could not automatically determine field data. Please see https://datatables.net/tn/11";r[v]||(r[v]={});var o=t.row(f.index.row).id();r[v][o]=f.set,s.push(f.index)}n.bubble(s,!1).multiSet(r).submit(null,function(){n.close()})}},_emitEvent:function(e,t){this.s.dt.iterator("table",function(n,r){J(n.nTable).triggerHandler(e+".dt",t)})},_focusListener:function(){var e=this,t=this.s.dt,n=this.s.namespace,r=this.c.focus!==null?this.c.focus:t.init().keys||t.settings()[0].keytable?"focus":"hover";r==="focus"?t.on("key-focus.autoFill",function(s,i,a){e._attach(a.node())}).on("key-blur.autoFill",function(s,i,a){e._detach()}):r==="click"?(J(t.table().body()).on("click"+n,"td, th",function(s){e._attach(this)}),J(document.body).on("click"+n,function(s){J(s.target).parents().filter(t.table().body()).length||e._detach()})):J(t.table().body()).on("mouseenter"+n+" touchstart"+n,"td, th",function(s){e._attach(this)}).on("mouseleave"+n+"touchend"+n,function(s){J(s.relatedTarget).hasClass("dt-autofill-handle")||e._detach()})},_focusListenerRemove:function(){var e=this.s.dt;e.off(".autoFill"),J(e.table().body()).off(this.s.namespace),J(document.body).off(this.s.namespace)},_getPosition:function(e,t){var n=e,r,s=0,i=0;t||(t=J(J(this.s.dt.table().node())[0].offsetParent));do{var a=n.offsetTop,l=n.offsetLeft;if(r=J(n.offsetParent),s+=a+parseInt(r.css("border-top-width")||0)*1,i+=l+parseInt(r.css("border-left-width")||0)*1,n.nodeName.toLowerCase()==="body")break;n=r.get(0)}while(r.get(0)!==t.get(0));return{top:s,left:i}},_mousedown:function(e){var t=this,n=this.s.dt;this.dom.start=this.dom.attachedTo,this.s.start={row:n.rows({page:"current"}).nodes().indexOf(J(this.dom.start).parent()[0]),column:J(this.dom.start).index()},J(document.body).on("mousemove.autoFill touchmove.autoFill",function(a){t._mousemove(a),a.type==="touchmove"&&J(document.body).one("touchend.autoFill",function(){t._detach()})}).on("mouseup.autoFill touchend.autoFill",function(a){t._mouseup(a)});var r=this.dom.select,s=J(n.table().node()).offsetParent();r.top.appendTo(s),r.left.appendTo(s),r.right.appendTo(s),r.bottom.appendTo(s),this._drawSelection(this.dom.start,e),this.dom.handle.css("display","none");var i=this.dom.dtScroll;this.s.scroll={windowHeight:J(window).height(),windowWidth:J(window).width(),dtTop:i?i.offset().top:null,dtLeft:i?i.offset().left:null,dtHeight:i?i.outerHeight():null,dtWidth:i?i.outerWidth():null}},_mousemove:function(e){var t=e.touches&&e.touches.length?document.elementFromPoint(e.touches[0].clientX,e.touches[0].clientY):e.target,n=t.nodeName.toLowerCase();n!=="td"&&n!=="th"||(this._drawSelection(t,e),this._shiftScroll(e))},_mouseup:function(e){J(document.body).off(".autoFill");var t=this,n=this.s.dt,r=this.dom.select;r.top.remove(),r.left.remove(),r.right.remove(),r.bottom.remove(),this.dom.handle.css("display","block");var s=this.s.start,i=this.s.end;if(!(s.row===i.row&&s.column===i.column)){var a=n.cell(":eq("+s.row+")",s.column+":visible",{page:"current"});if(J("div.DTE",a.node()).length){var l=n.editor();l.on("submitSuccess.dtaf close.dtaf",function(){l.off(".dtaf"),setTimeout(function(){t._mouseup(e)},100)}).on("submitComplete.dtaf preSubmitCancelled.dtaf close.dtaf",function(){l.off(".dtaf")}),l.submit();return}for(var u=this._range(s.row,i.row),h=this._range(s.column,i.column),f=[],b=n.settings()[0],v=b.aoColumns,m=n.columns(this.c.columns).indexes(),C=0;C<u.length;C++)f.push(J.map(h,function(w){var c=n.row(":eq("+u[C]+")",{page:"current"}),o=n.cell(c.index(),w+":visible"),d=o.data(),p=o.index(),_=v[p.column].editField;if(_!==void 0&&(d=k.util.get(_)(n.row(p.row).data())),m.indexOf(p.column)!==-1)return{cell:o,data:d,label:o.data(),index:p}}));this._actionSelector(f),clearInterval(this.s.scrollInterval),this.s.scrollInterval=null}},_range:function(e,t){var n=[],r;if(e<=t)for(r=e;r<=t;r++)n.push(r);else for(r=e;r>=t;r--)n.push(r);return n},_shiftScroll:function(e){var t=this,n=this.s.scroll,r=!1,s=5,i=65,a=e.type.includes("touch")?e.touches[0].clientX:e.pageX-window.scrollX,l=e.type.includes("touch")?e.touches[0].clientY:e.pageY-window.scrollY,u=l,h=a,f,b,v,m;u<i?f=s*-1:u>n.windowHeight-i&&(f=s),h<i?b=s*-1:h>n.windowWidth-i&&(b=s),n.dtTop!==null&&l<n.dtTop+i?v=s*-1:n.dtTop!==null&&l>n.dtTop+n.dtHeight-i&&(v=s),n.dtLeft!==null&&a<n.dtLeft+i?m=s*-1:n.dtLeft!==null&&a>n.dtLeft+n.dtWidth-i&&(m=s),f||b||v||m?(n.windowVert=f,n.windowHoriz=b,n.dtVert=v,n.dtHoriz=m,r=!0):this.s.scrollInterval&&(clearInterval(this.s.scrollInterval),this.s.scrollInterval=null),!this.s.scrollInterval&&r&&(this.s.scrollInterval=setInterval(function(){if(window.scrollTo(window.scrollX+(n.windowHoriz?n.windowHoriz:0),window.scrollY+(n.windowVert?n.windowVert:0)),n.dtVert||n.dtHoriz){var C=t.dom.dtScroll[0];n.dtVert&&(C.scrollTop+=n.dtVert),n.dtHoriz&&(C.scrollLeft+=n.dtHoriz)}},20))},_update:function(e,t){if(e!==!1){var n=this.s.dt,r,s=n.columns(this.c.columns).indexes();this._emitEvent("preAutoFill",[n,t]),this._editor(t);var i=this.c.update!==null?this.c.update:!this.c.editor;if(i){for(var a=0,l=t.length;a<l;a++)for(var u=0,h=t[a].length;u<h;u++)r=t[a][u],s.indexOf(r.index.column)!==-1&&r.cell.data(r.set);n.draw(!1)}this._emitEvent("autoFill",[n,t])}}});Fe.actions={increment:{available:function(e,t){var n=t[0][0].label;return!isNaN(n-parseFloat(n))},option:function(e,t){return e.i18n("autoFill.increment",'Increment / decrement each cell by: <input type="number" value="1">')},execute:function(e,t,n){for(var r=t[0][0].data*1,s=J("input",n).val()*1,i=0,a=t.length;i<a;i++)for(var l=0,u=t[i].length;l<u;l++)t[i][l].set=r,r+=s}},fill:{available:function(e,t){return!0},option:function(e,t){return e.i18n("autoFill.fill","Fill all cells with <i>%d</i>",t[0][0].label)},execute:function(e,t,n){for(var r=t[0][0].data,s=0,i=t.length;s<i;s++)for(var a=0,l=t[s].length;a<l;a++)t[s][a].set=r}},fillHorizontal:{available:function(e,t){return t.length>1&&t[0].length>1},option:function(e,t){return e.i18n("autoFill.fillHorizontal","Fill cells horizontally")},execute:function(e,t,n){for(var r=0,s=t.length;r<s;r++)for(var i=0,a=t[r].length;i<a;i++)t[r][i].set=t[r][0].data}},fillVertical:{available:function(e,t){return t.length>1&&t[0].length>1},option:function(e,t){return e.i18n("autoFill.fillVertical","Fill cells vertically")},execute:function(e,t,n){for(var r=0,s=t.length;r<s;r++)for(var i=0,a=t[r].length;i<a;i++)t[r][i].set=t[0][i].data}},cancel:{available:function(){return!1},option:function(e){return e.i18n("autoFill.cancel","Cancel")},execute:function(){return!1}}};Fe.version="2.7.1";Fe.defaults={alwaysAsk:!1,closeButton:!0,focus:null,columns:"",enable:!0,update:null,editor:null,vertical:!0,horizontal:!0};Fe.classes={btn:"btn",closeable:"dtaf-popover-closeable"};var ln=J.fn.dataTable.Api;ln.register("autoFill()",function(){return this});ln.register("autoFill().enabled()",function(){var e=this.context[0];return e.autoFill?e.autoFill.enabled():!1});ln.register("autoFill().enable()",function(e){return this.iterator("table",function(t){t.autoFill&&t.autoFill.enable(e)})});ln.register("autoFill().disable()",function(){return this.iterator("table",function(e){e.autoFill&&e.autoFill.disable()})});J(document).on("preInit.dt.autofill",function(e,t,n){if(e.namespace==="dt"){var r=t.oInit.autoFill,s=k.defaults.autoFill;if(r||s){var i=J.extend({},r,s);r!==!1&&new Fe(t,i)}}});k.AutoFill=Fe;J.fn.DataTable.AutoFill=Fe;var Ii=oe(ae("jquery"),1);var Zr=oe(ae("jquery"),1);var O=Zr.default,Ri=0,Pi=0,Re=k.ext.buttons,jn=null;function Gn(e,t,n){O.fn.animate?e.stop().fadeIn(t,n):(e.css("display","block"),n&&n.call(e))}function Un(e,t,n){O.fn.animate?e.stop().fadeOut(t,n):(e.css("display","none"),n&&n.call(e))}var de=function(e,t){if(!k.versionCheck("2"))throw"Warning: Buttons requires DataTables 2 or newer";if(!(this instanceof de))return function(n){return new de(n,e).container()};typeof t=="undefined"&&(t={}),t===!0&&(t={}),Array.isArray(t)&&(t={buttons:t}),this.c=O.extend(!0,{},de.defaults,t),t.buttons&&(this.c.buttons=t.buttons),this.s={dt:new k.Api(e),buttons:[],listenKeys:"",namespace:"dtb"+Ri++},this.dom={container:O("<"+this.c.dom.container.tag+"/>").addClass(this.c.dom.container.className)},this._constructor()};O.extend(de.prototype,{action:function(e,t){var n=this._nodeToButton(e);return t===void 0?n.conf.action:(n.conf.action=t,this)},active:function(e,t){var n=this._nodeToButton(e),r=this.c.dom.button.active,s=O(n.node);return n.inCollection&&this.c.dom.collection.button&&this.c.dom.collection.button.active!==void 0&&(r=this.c.dom.collection.button.active),t===void 0?s.hasClass(r):(s.toggleClass(r,t===void 0?!0:t),this)},add:function(e,t,n){var r=this.s.buttons;if(typeof t=="string"){for(var s=t.split("-"),i=this.s,a=0,l=s.length-1;a<l;a++)i=i.buttons[s[a]*1];r=i.buttons,t=s[s.length-1]*1}let u=this._expandButton(r,e,e!==void 0?e.split:void 0,(e===void 0||e.split===void 0||e.split.length===0)&&i!==void 0,!1,t);return(n===void 0||n===!0)&&this._draw(),u},collectionRebuild:function(e,t){var n=this._nodeToButton(e);if(t!==void 0){var r;for(r=n.buttons.length-1;r>=0;r--)this.remove(n.buttons[r].node);for(n.conf.prefixButtons&&t.unshift.apply(t,n.conf.prefixButtons),n.conf.postfixButtons&&t.push.apply(t,n.conf.postfixButtons),r=0;r<t.length;r++){var s=t[r];this._expandButton(n.buttons,s,s!==void 0&&s.config!==void 0&&s.config.split!==void 0,!0,s.parentConf!==void 0&&s.parentConf.split!==void 0,null,s.parentConf)}}this._draw(n.collection,n.buttons)},container:function(){return this.dom.container},disable:function(e){var t=this._nodeToButton(e);return t.isSplit?O(t.node.childNodes[0]).addClass(this.c.dom.button.disabled).prop("disabled",!0):O(t.node).addClass(this.c.dom.button.disabled).prop("disabled",!0),t.disabled=!0,this._checkSplitEnable(),this},destroy:function(){O("body").off("keyup."+this.s.namespace);var e=this.s.buttons.slice(),t,n;for(t=0,n=e.length;t<n;t++)this.remove(e[t].node);this.dom.container.remove();var r=this.s.dt.settings()[0];for(t=0,n=r.length;t<n;t++)if(r.inst===this){r.splice(t,1);break}return this},enable:function(e,t){if(t===!1)return this.disable(e);var n=this._nodeToButton(e);return n.isSplit?O(n.node.childNodes[0]).removeClass(this.c.dom.button.disabled).prop("disabled",!1):O(n.node).removeClass(this.c.dom.button.disabled).prop("disabled",!1),n.disabled=!1,this._checkSplitEnable(),this},index:function(e,t,n){t||(t="",n=this.s.buttons);for(var r=0,s=n.length;r<s;r++){var i=n[r].buttons;if(n[r].node===e)return t+r;if(i&&i.length){var a=this.index(e,r+"-",i);if(a!==null)return a}}return null},name:function(){return this.c.name},node:function(e){if(!e)return this.dom.container;var t=this._nodeToButton(e);return O(t.node)},processing:function(e,t){var n=this.s.dt,r=this._nodeToButton(e);return t===void 0?O(r.node).hasClass("processing"):(O(r.node).toggleClass("processing",t),O(n.table().node()).triggerHandler("buttons-processing.dt",[t,n.button(e),n,O(e),r.conf]),this)},remove:function(e){var t=this._nodeToButton(e),n=this._nodeToHost(e),r=this.s.dt;if(t.buttons.length)for(var s=t.buttons.length-1;s>=0;s--)this.remove(t.buttons[s].node);t.conf.destroying=!0,t.conf.destroy&&t.conf.destroy.call(r.button(e),r,O(e),t.conf),this._removeKey(t.conf),O(t.node).remove(),t.inserter&&O(t.inserter).remove();var i=O.inArray(t,n);return n.splice(i,1),this},text:function(e,t){var n=this._nodeToButton(e),r=n.textNode,s=this.s.dt,i=O(n.node),a=function(l){return typeof l=="function"?l(s,i,n.conf):l};return t===void 0?a(n.conf.text):(n.conf.text=t,r.html(a(t)),this)},_constructor:function(){var e=this,t=this.s.dt,n=t.settings()[0],r=this.c.buttons;n._buttons||(n._buttons=[]),n._buttons.push({inst:this,name:this.c.name});for(var s=0,i=r.length;s<i;s++)this.add(r[s]);t.on("destroy",function(a,l){l===n&&e.destroy()}),O("body").on("keyup."+this.s.namespace,function(a){if(!document.activeElement||document.activeElement===document.body){var l=String.fromCharCode(a.keyCode).toLowerCase();e.s.listenKeys.toLowerCase().indexOf(l)!==-1&&e._keypress(l,a)}})},_addKey:function(e){e.key&&(this.s.listenKeys+=O.isPlainObject(e.key)?e.key.key:e.key)},_draw:function(e,t){e||(e=this.dom.container,t=this.s.buttons),e.children().detach();for(var n=0,r=t.length;n<r;n++)e.append(t[n].inserter),e.append(" "),t[n].buttons&&t[n].buttons.length&&this._draw(t[n].collection,t[n].buttons)},_expandButton:function(e,t,n,r,s,i,a){var l=this.s.dt,u=!1,h=this.c.dom.collection,f=Array.isArray(t)?t:[t],b;t===void 0&&(f=Array.isArray(n)?n:[n]);for(var v=0,m=f.length;v<m;v++){var C=this._resolveExtends(f[v]);if(C){if(u=!!(C.config&&C.config.split),Array.isArray(C)){this._expandButton(e,C,w!==void 0&&w.conf!==void 0?w.conf.split:void 0,r,a!==void 0&&a.split!==void 0,i,a);continue}var w=this._buildButton(C,r,C.split!==void 0||C.config!==void 0&&C.config.split!==void 0,s);if(w){if(i!=null?(e.splice(i,0,w),i++):e.push(w),w.conf.dropIcon&&!w.conf.split&&O(w.node).addClass(this.c.dom.button.dropClass).append(this.c.dom.button.dropHtml),w.conf.buttons&&(w.collection=O("<"+h.container.content.tag+"/>"),w.conf._collection=w.collection,this._expandButton(w.buttons,w.conf.buttons,w.conf.split,!u,u,i,w.conf)),w.conf.split){w.collection=O("<"+h.container.tag+"/>"),w.conf._collection=w.collection;for(var c=0;c<w.conf.split.length;c++){var o=w.conf.split[c];typeof o=="object"&&(o.parent=a,o.collectionLayout===void 0&&(o.collectionLayout=w.conf.collectionLayout),o.dropup===void 0&&(o.dropup=w.conf.dropup),o.fade===void 0&&(o.fade=w.conf.fade))}this._expandButton(w.buttons,w.conf.buttons,w.conf.split,!u,u,i,w.conf)}w.conf.parent=a,C.init&&C.init.call(l.button(w.node),l,O(w.node),C),b=w.node}}}return b},_buildButton:function(e,t,n,r){var s=this,i=this.c.dom,a,l=this.s.dt,u=!1,h=function(R){return typeof R=="function"?R(l,v,e):R},f=O.extend(!0,{},i.button);if(t&&n&&i.collection.split?O.extend(!0,f,i.collection.split.action):r||t?O.extend(!0,f,i.collection.button):n&&O.extend(!0,f,i.split.button),e.spacer){var b=O("<"+f.spacer.tag+"/>").addClass("dt-button-spacer "+e.style+" "+f.spacer.className).html(h(e.text));return{conf:e,node:b,nodeChild:null,inserter:b,buttons:[],inCollection:t,isSplit:n,collection:null,textNode:b}}if(e.available&&!e.available(l,e)&&!e.html)return!1;var v;if(e.html)v=O(e.html);else{var m=function(R,g,y,T,D){T.action.call(g.button(y),R,g,y,T,D),O(g.table().node()).triggerHandler("buttons-action.dt",[g.button(y),g,y,T])},C=function(R,g,y,T){T.async?(s.processing(y[0],!0),setTimeout(function(){m(R,g,y,T,function(){s.processing(y[0],!1)})},T.async)):m(R,g,y,T,function(){})},w=e.tag||f.tag,c=e.clickBlurs===void 0?!0:e.clickBlurs;if(v=O("<"+w+"/>").addClass(f.className).attr("aria-controls",this.s.dt.table().node().id).on("click.dtb",function(R){R.preventDefault(),!v.hasClass(f.disabled)&&e.action&&C(R,l,v,e),c&&v.trigger("blur")}).on("keypress.dtb",function(R){R.keyCode===13&&(R.preventDefault(),!v.hasClass(f.disabled)&&e.action&&C(R,l,v,e))}),w.toLowerCase()==="a"&&v.attr("href","#"),w.toLowerCase()==="button"&&v.attr("type","button"),f.liner.tag){var o=f.liner.tag.toLowerCase(),d=O("<"+o+"/>").html(h(e.text)).addClass(f.liner.className);o==="a"&&d.attr("href","#"),(o==="a"||o==="button")&&(d.attr("tabindex",this.s.dt.settings()[0].iTabIndex),u=!0),v.append(d),a=d}else v.html(h(e.text)),a=v;u||v.attr("tabindex",this.s.dt.settings()[0].iTabIndex),e.enabled===!1&&v.addClass(f.disabled),e.className&&v.addClass(e.className),e.titleAttr&&v.attr("title",h(e.titleAttr)),e.attr&&v.attr(e.attr),e.namespace||(e.namespace=".dt-button-"+Pi++),e.config!==void 0&&e.config.split&&(e.split=e.config.split)}var p=this.c.dom.buttonContainer,_;p&&p.tag?_=O("<"+p.tag+"/>").addClass(p.className).append(v):_=v,this._addKey(e),this.c.buttonCreated&&(_=this.c.buttonCreated(e,_));var x;if(n){var P=t?O.extend(!0,this.c.dom.split,this.c.dom.collection.split):this.c.dom.split,I=P.wrapper;x=O("<"+I.tag+"/>").addClass(I.className).append(v);var B=O.extend(e,{autoClose:!0,align:P.dropdown.align,attr:{"aria-haspopup":"dialog","aria-expanded":!1},className:P.dropdown.className,closeButton:!1,splitAlignClass:P.dropdown.splitAlignClass,text:P.dropdown.text});this._addKey(B);var E=function(R,g,y,T){Re.split.action.call(g.button(x),R,g,y,T),O(g.table().node()).triggerHandler("buttons-action.dt",[g.button(y),g,y,T]),y.attr("aria-expanded",!0)},F=O('<button class="'+P.dropdown.className+' dt-button"></button>').html(this.c.dom.button.dropHtml).addClass(this.c.dom.button.dropClass).on("click.dtb",function(R){R.preventDefault(),R.stopPropagation(),F.hasClass(f.disabled)||E(R,l,F,B),c&&F.trigger("blur")}).on("keypress.dtb",function(R){R.keyCode===13&&(R.preventDefault(),F.hasClass(f.disabled)||E(R,l,F,B))});e.split.length===0&&F.addClass("dtb-hide-drop"),x.append(F).attr(B.attr)}var U=n?x.get(0):v.get(0);return{conf:e,node:U,nodeChild:U&&U.children&&U.children.length?U.children[0]:null,inserter:n?x:_,buttons:[],inCollection:t,isSplit:n,inSplit:r,collection:null,textNode:a}},_checkSplitEnable:function(e){e||(e=this.s.buttons);for(var t=0;t<e.length;t++){var n=e[t];if(n.isSplit){var r=n.node.childNodes[1];this._checkAnyEnabled(n.buttons)?O(r).removeClass(this.c.dom.button.disabled).prop("disabled",!1):O(r).addClass(this.c.dom.button.disabled).prop("disabled",!1)}else n.isCollection&&this._checkSplitEnable(n.buttons)}},_checkAnyEnabled:function(e){for(var t=0;t<e.length;t++)if(!e[t].disabled)return!0;return!1},_nodeToButton:function(e,t){t||(t=this.s.buttons);for(var n=0,r=t.length;n<r;n++){if(t[n].node===e||t[n].nodeChild===e)return t[n];if(t[n].buttons.length){var s=this._nodeToButton(e,t[n].buttons);if(s)return s}}},_nodeToHost:function(e,t){t||(t=this.s.buttons);for(var n=0,r=t.length;n<r;n++){if(t[n].node===e)return t;if(t[n].buttons.length){var s=this._nodeToHost(e,t[n].buttons);if(s)return s}}},_keypress:function(e,t){if(!t._buttonsHandled){var n=function(s,i){if(s.key){if(s.key===e)t._buttonsHandled=!0,O(i).click();else if(O.isPlainObject(s.key)){if(s.key.key!==e||s.key.shiftKey&&!t.shiftKey||s.key.altKey&&!t.altKey||s.key.ctrlKey&&!t.ctrlKey||s.key.metaKey&&!t.metaKey)return;t._buttonsHandled=!0,O(i).click()}}},r=function(s){for(var i=0,a=s.length;i<a;i++)n(s[i].conf,s[i].node),s[i].buttons.length&&r(s[i].buttons)};r(this.s.buttons)}},_removeKey:function(e){if(e.key){var t=O.isPlainObject(e.key)?e.key.key:e.key,n=this.s.listenKeys.split(""),r=O.inArray(t,n);n.splice(r,1),this.s.listenKeys=n.join("")}},_resolveExtends:function(e){var t=this,n=this.s.dt,r,s,i=function(f){for(var b=0;!O.isPlainObject(f)&&!Array.isArray(f);){if(f===void 0)return;if(typeof f=="function"){if(f=f.call(t,n,e),!f)return!1}else if(typeof f=="string"){if(!Re[f])return{html:f};f=Re[f]}if(b++,b>30)throw"Buttons: Too many iterations"}return Array.isArray(f)?f:O.extend({},f)};for(e=i(e);e&&e.extend;){if(!Re[e.extend])throw"Cannot extend unknown button type: "+e.extend;var a=i(Re[e.extend]);if(Array.isArray(a))return a;if(!a)return!1;var l=a.className;e.config!==void 0&&a.config!==void 0&&(e.config=O.extend({},a.config,e.config)),e=O.extend({},a,e),l&&e.className!==l&&(e.className=l+" "+e.className),e.extend=a.extend}var u=e.postfixButtons;if(u)for(e.buttons||(e.buttons=[]),r=0,s=u.length;r<s;r++)e.buttons.push(u[r]);var h=e.prefixButtons;if(h)for(e.buttons||(e.buttons=[]),r=0,s=h.length;r<s;r++)e.buttons.splice(r,0,h[r]);return e},_popover:function(e,t,n){var r=t,s=this.c,i=!1,a=O.extend({align:"button-left",autoClose:!1,background:!0,backgroundClassName:"dt-button-background",closeButton:!0,containerClassName:s.dom.collection.container.className,contentClassName:s.dom.collection.container.content.className,collectionLayout:"",collectionTitle:"",dropup:!1,fade:400,popoverTitle:"",rightAlignClassName:"dt-button-right",tag:s.dom.collection.container.tag},n),l=a.tag+"."+a.containerClassName.replace(/ /g,"."),u=t.node(),h=a.collectionLayout.includes("fixed")?O("body"):t.node(),f=function(){i=!0,Un(O(l),a.fade,function(){O(this).detach()}),O(r.buttons('[aria-haspopup="dialog"][aria-expanded="true"]').nodes()).attr("aria-expanded","false"),O("div.dt-button-background").off("click.dtb-collection"),de.background(!1,a.backgroundClassName,a.fade,h),O(window).off("resize.resize.dtb-collection"),O("body").off(".dtb-collection"),r.off("buttons-action.b-internal"),r.off("destroy.dtb-popover"),O("body").trigger("buttons-popover-hide.dt")};if(e===!1){f();return}var b=O(r.buttons('[aria-haspopup="dialog"][aria-expanded="true"]').nodes());if(b.length&&(h.closest(l).length&&(h=b.eq(0)),f()),a.sort){var v=O("button",e).map(function(R,g){return{text:O(g).text(),el:g}}).toArray();v.sort(function(R,g){return R.text.localeCompare(g.text)}),O(e).append(v.map(function(R){return R.el}))}var m=O(".dt-button",e).length,C="";m===3?C="dtb-b3":m===2?C="dtb-b2":m===1&&(C="dtb-b1");var w=O("<"+a.tag+"/>").addClass(a.containerClassName).addClass(a.collectionLayout).addClass(a.splitAlignClass).addClass(C).css("display","none").attr({"aria-modal":!0,role:"dialog"});e=O(e).addClass(a.contentClassName).attr("role","menu").appendTo(w),u.attr("aria-expanded","true"),h.parents("body")[0]!==document.body&&(h=O(document.body).children("div, section, p").last()),a.popoverTitle?w.prepend('<div class="dt-button-collection-title">'+a.popoverTitle+"</div>"):a.collectionTitle&&w.prepend('<div class="dt-button-collection-title">'+a.collectionTitle+"</div>"),a.closeButton&&w.prepend('<div class="dtb-popover-close">&times;</div>').addClass("dtb-collection-closeable"),Gn(w.insertAfter(h),a.fade);var c=O(t.table().container()),o=w.css("position");if((a.span==="container"||a.align==="dt-container")&&(h=h.parent(),w.css("width",c.width())),o==="absolute"){var d=O(h[0].offsetParent),p=h.position(),_=h.offset(),x=d.offset(),P=d.position(),I=window.getComputedStyle(d[0]);x.height=d.outerHeight(),x.width=d.width()+parseFloat(I.paddingLeft),x.right=x.left+x.width,x.bottom=x.top+x.height;var B=p.top+h.outerHeight(),E=p.left;w.css({top:B,left:E}),I=window.getComputedStyle(w[0]);var F=w.offset();F.height=w.outerHeight(),F.width=w.outerWidth(),F.right=F.left+F.width,F.bottom=F.top+F.height,F.marginTop=parseFloat(I.marginTop),F.marginBottom=parseFloat(I.marginBottom),a.dropup&&(B=p.top-F.height-F.marginTop-F.marginBottom),(a.align==="button-right"||w.hasClass(a.rightAlignClassName))&&(E=p.left-F.width+h.outerWidth()),(a.align==="dt-container"||a.align==="container")&&E<p.left&&(E=-p.left),P.left+E+F.width>O(window).width()&&(E=O(window).width()-F.width-P.left),_.left+E<0&&(E=-_.left),P.top+B+F.height>O(window).height()+O(window).scrollTop()&&(B=p.top-F.height-F.marginTop-F.marginBottom),d.offset().top+B<O(window).scrollTop()&&(B=p.top+h.outerHeight()),w.css({top:B,left:E})}else{var U=function(){var R=O(window).height()/2,g=w.height()/2;g>R&&(g=R),w.css("marginTop",g*-1)};U(),O(window).on("resize.dtb-collection",function(){U()})}a.background&&de.background(!0,a.backgroundClassName,a.fade,a.backgroundHost||h),O("div.dt-button-background").on("click.dtb-collection",function(){}),a.autoClose&&setTimeout(function(){r.on("buttons-action.b-internal",function(R,g,y,T){T[0]!==h[0]&&f()})},0),O(w).trigger("buttons-popover.dt"),r.on("destroy.dtb-popover",f),setTimeout(function(){i=!1,O("body").on("click.dtb-collection",function(R){if(!i){var g=O.fn.addBack?"addBack":"andSelf",y=O(R.target).parent()[0];(!O(R.target).parents()[g]().filter(e).length&&!O(y).hasClass("dt-buttons")||O(R.target).hasClass("dt-button-background"))&&f()}}).on("keyup.dtb-collection",function(R){R.keyCode===27&&f()}).on("keydown.dtb-collection",function(R){var g=O("a, button",e),y=document.activeElement;R.keyCode===9&&(g.index(y)===-1?(g.first().focus(),R.preventDefault()):R.shiftKey?y===g[0]&&(g.last().focus(),R.preventDefault()):y===g.last()[0]&&(g.first().focus(),R.preventDefault()))})},0)}});de.background=function(e,t,n,r){n===void 0&&(n=400),r||(r=document.body),e?Gn(O("<div/>").addClass(t).css("display","none").insertAfter(r),n):Un(O("div."+t),n,function(){O(this).removeClass(t).remove()})};de.instanceSelector=function(e,t){if(e==null)return O.map(t,function(i){return i.inst});var n=[],r=O.map(t,function(i){return i.name}),s=function(i){if(Array.isArray(i)){for(var a=0,l=i.length;a<l;a++)s(i[a]);return}if(typeof i=="string")if(i.indexOf(",")!==-1)s(i.split(","));else{var u=O.inArray(i.trim(),r);u!==-1&&n.push(t[u].inst)}else if(typeof i=="number")n.push(t[i].inst);else if(typeof i=="object"&&i.nodeName)for(var h=0;h<t.length;h++)t[h].inst.dom.container[0]===i&&n.push(t[h].inst);else typeof i=="object"&&n.push(i)};return s(e),n};de.buttonSelector=function(e,t){for(var n=[],r=function(u,h,f){for(var b,v,m=0,C=h.length;m<C;m++)b=h[m],b&&(v=f!==void 0?f+m:m+"",u.push({node:b.node,name:b.conf.name,idx:v}),b.buttons&&r(u,b.buttons,v+"-"))},s=function(u,h){var f,b,v=[];r(v,h.s.buttons);var m=O.map(v,function(d){return d.node});if(Array.isArray(u)||u instanceof O){for(f=0,b=u.length;f<b;f++)s(u[f],h);return}if(u==null||u==="*")for(f=0,b=v.length;f<b;f++)n.push({inst:h,node:v[f].node});else if(typeof u=="number")h.s.buttons[u]&&n.push({inst:h,node:h.s.buttons[u].node});else if(typeof u=="string")if(u.indexOf(",")!==-1){var C=u.split(",");for(f=0,b=C.length;f<b;f++)s(C[f].trim(),h)}else if(u.match(/^\d+(\-\d+)*$/)){var w=O.map(v,function(d){return d.idx});n.push({inst:h,node:v[O.inArray(u,w)].node})}else if(u.indexOf(":name")!==-1){var c=u.replace(":name","");for(f=0,b=v.length;f<b;f++)v[f].name===c&&n.push({inst:h,node:v[f].node})}else O(m).filter(u).each(function(){n.push({inst:h,node:this})});else if(typeof u=="object"&&u.nodeName){var o=O.inArray(u,m);o!==-1&&n.push({inst:h,node:m[o]})}},i=0,a=e.length;i<a;i++){var l=e[i];s(t,l)}return n};de.stripData=function(e,t){return e!==null&&typeof e=="object"&&e.nodeName&&e.nodeType&&(e=e.innerHTML),typeof e!="string"||(e=de.stripHtmlScript(e),e=de.stripHtmlComments(e),(!t||t.stripHtml)&&(e=k.util.stripHtml(e)),(!t||t.trim)&&(e=e.trim()),(!t||t.stripNewlines)&&(e=e.replace(/\n/g," ")),(!t||t.decodeEntities)&&(jn?e=jn(e):(Jr.innerHTML=e,e=Jr.value)),(!t||t.escapeExcelFormula)&&e.match(/^[=@\t\r]/)&&(e="'"+e)),e};de.entityDecoder=function(e){jn=e};de.stripHtmlComments=function(e){var t;do t=e,e=e.replace(/(<!--.*?--!?>)|(<!--[\S\s]+?--!?>)|(<!--[\S\s]*?$)/g,"");while(e!==t);return e};de.stripHtmlScript=function(e){var t;do t=e,e=e.replace(/<script\b[^<]*(?:(?!<\/script[^>]*>)<[^<]*)*<\/script[^>]*>/gi,"");while(e!==t);return e};de.defaults={buttons:["copy","excel","csv","pdf","print"],name:"main",tabIndex:0,dom:{container:{tag:"div",className:"dt-buttons"},collection:{container:{className:"dt-button-collection",content:{className:"",tag:"div"},tag:"div"}},button:{tag:"button",className:"dt-button",active:"dt-button-active",disabled:"disabled",spacer:{className:"dt-button-spacer",tag:"span"},liner:{tag:"span",className:""},dropClass:"",dropHtml:'<span class="dt-button-down-arrow">&#x25BC;</span>'},split:{action:{className:"dt-button-split-drop-button dt-button",tag:"button"},dropdown:{align:"split-right",className:"dt-button-split-drop",splitAlignClass:"dt-button-split-left",tag:"button"},wrapper:{className:"dt-button-split",tag:"div"}}}};de.version="3.2.6";O.extend(Re,{collection:{text:function(e){return e.i18n("buttons.collection","Collection")},className:"buttons-collection",closeButton:!1,dropIcon:!0,init:function(e,t){t.attr("aria-expanded",!1)},action:function(e,t,n,r){r._collection.parents("body").length?this.popover(!1,r):this.popover(r._collection,r),e.type==="keypress"&&O("a, button",r._collection).eq(0).focus()},attr:{"aria-haspopup":"dialog"}},split:{text:function(e){return e.i18n("buttons.split","Split")},className:"buttons-split",closeButton:!1,init:function(e,t){return t.attr("aria-expanded",!1)},action:function(e,t,n,r){this.popover(r._collection,r)},attr:{"aria-haspopup":"dialog"}},copy:function(){if(Re.copyHtml5)return"copyHtml5"},csv:function(e,t){if(Re.csvHtml5&&Re.csvHtml5.available(e,t))return"csvHtml5"},excel:function(e,t){if(Re.excelHtml5&&Re.excelHtml5.available(e,t))return"excelHtml5"},pdf:function(e,t){if(Re.pdfHtml5&&Re.pdfHtml5.available(e,t))return"pdfHtml5"},pageLength:function(e){var t=e.settings()[0].aLengthMenu,n=[],r=[],s=function(l){return l.i18n("buttons.pageLength",{"-1":"Show all rows",_:"Show %d rows"},l.page.len())};if(Array.isArray(t[0]))n=t[0],r=t[1];else for(var i=0;i<t.length;i++){var a=t[i];O.isPlainObject(a)?(n.push(a.value),r.push(a.label)):(n.push(a),r.push(a))}return{extend:"collection",text:s,className:"buttons-page-length",autoClose:!0,buttons:O.map(n,function(l,u){return{text:r[u],className:"button-page-length",action:function(h,f){f.page.len(l).draw()},init:function(h,f,b){var v=this,m=function(){v.active(h.page.len()===l)};h.on("length.dt"+b.namespace,m),m()},destroy:function(h,f,b){h.off("length.dt"+b.namespace)}}}),init:function(l,u,h){var f=this;l.on("length.dt"+h.namespace,function(){f.text(h.text)})},destroy:function(l,u,h){l.off("length.dt"+h.namespace)}}},spacer:{style:"empty",spacer:!0,text:function(e){return e.i18n("buttons.spacer","")}}});k.Api.register("buttons()",function(e,t){t===void 0&&(t=e,e=void 0),this.selector.buttonGroup=e;var n=this.iterator(!0,"table",function(r){if(r._buttons)return de.buttonSelector(de.instanceSelector(e,r._buttons),t)},!0);return n._groupSelector=e,n});k.Api.register("button()",function(e,t){var n=this.buttons(e,t);return n.length>1&&n.splice(1,n.length),n});k.Api.registerPlural("buttons().active()","button().active()",function(e){return e===void 0?this.map(function(t){return t.inst.active(t.node)}):this.each(function(t){t.inst.active(t.node,e)})});k.Api.registerPlural("buttons().action()","button().action()",function(e){return e===void 0?this.map(function(t){return t.inst.action(t.node)}):this.each(function(t){t.inst.action(t.node,e)})});k.Api.registerPlural("buttons().collectionRebuild()","button().collectionRebuild()",function(e){return this.each(function(t){for(var n=0;n<e.length;n++)typeof e[n]=="object"&&(e[n].parentConf=t);t.inst.collectionRebuild(t.node,e)})});k.Api.register(["buttons().enable()","button().enable()"],function(e){return this.each(function(t){t.inst.enable(t.node,e)})});k.Api.register(["buttons().disable()","button().disable()"],function(){return this.each(function(e){e.inst.disable(e.node)})});k.Api.register("button().index()",function(){var e=null;return this.each(function(t){var n=t.inst.index(t.node);n!==null&&(e=n)}),e});k.Api.registerPlural("buttons().nodes()","button().node()",function(){var e=O();return O(this.each(function(t){e=e.add(t.inst.node(t.node))})),e});k.Api.registerPlural("buttons().processing()","button().processing()",function(e){return e===void 0?this.map(function(t){return t.inst.processing(t.node)}):this.each(function(t){t.inst.processing(t.node,e)})});k.Api.registerPlural("buttons().text()","button().text()",function(e){return e===void 0?this.map(function(t){return t.inst.text(t.node)}):this.each(function(t){t.inst.text(t.node,e)})});k.Api.registerPlural("buttons().trigger()","button().trigger()",function(){return this.each(function(e){e.inst.node(e.node).trigger("click")})});k.Api.register("button().popover()",function(e,t){return this.map(function(n){return n.inst._popover(e,this.button(this[0].node),t)})});k.Api.register("buttons().containers()",function(){var e=O(),t=this._groupSelector;return this.iterator(!0,"table",function(n){if(n._buttons)for(var r=de.instanceSelector(t,n._buttons),s=0,i=r.length;s<i;s++)e=e.add(r[s].container())}),e});k.Api.register("buttons().container()",function(){return this.containers().eq(0)});k.Api.register("button().add()",function(e,t,n){var r=this.context,s;if(r.length){var i=de.instanceSelector(this._groupSelector,r[0]._buttons);i.length&&(s=i[0].add(t,e,n))}return s?this.button(this._groupSelector,s):this});k.Api.register("buttons().destroy()",function(){return this.pluck("inst").unique().each(function(e){e.destroy()}),this});k.Api.registerPlural("buttons().remove()","buttons().remove()",function(){return this.each(function(e){e.inst.remove(e.node)}),this});var Ft;k.Api.register("buttons.info()",function(e,t,n){var r=this;return e===!1?(this.off("destroy.btn-info"),Un(O("#datatables_buttons_info"),400,function(){O(this).remove()}),clearTimeout(Ft),Ft=null,this):(Ft&&clearTimeout(Ft),O("#datatables_buttons_info").length&&O("#datatables_buttons_info").remove(),e=e?"<h2>"+e+"</h2>":"",Gn(O('<div id="datatables_buttons_info" class="dt-button-info"/>').html(e).append(O("<div/>")[typeof t=="string"?"html":"append"](t)).css("display","none").appendTo("body")),n!==void 0&&n!==0&&(Ft=setTimeout(function(){r.buttons.info(!1)},n)),this.on("destroy.btn-info",function(){r.buttons.info(!1)}),this)});k.Api.register("buttons.exportData()",function(e){if(this.context.length)return Li(new k.Api(this.context[0]),e)});k.Api.register("buttons.exportInfo()",function(e){return e||(e={}),{filename:Ai(e,this),title:ki(e,this),messageTop:Qr(this,e,e.message||e.messageTop,"top"),messageBottom:Qr(this,e,e.messageBottom,"bottom")}});var Ai=function(e,t){var n=e.filename==="*"&&e.title!=="*"&&e.title!==void 0&&e.title!==null&&e.title!==""?e.title:e.filename;if(typeof n=="function"&&(n=n(e,t)),n==null)return null;n.indexOf("*")!==-1&&(n=n.replace(/\*/g,O("head > title").text()).trim()),n=n.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,"");var r=$n(e.extension,e,t);return r||(r=""),n+r},$n=function(e,t,n){return e==null?null:typeof e=="function"?e(t,n):e},ki=function(e,t){var n=$n(e.title,e,t);return n===null?null:n.indexOf("*")!==-1?n.replace(/\*/g,O("head > title").text()||"Exported data"):n},Qr=function(e,t,n,r){var s=$n(n,t,e);if(s===null)return null;var i=O("caption",e.table().container()).eq(0);if(s==="*"){var a=i.css("caption-side");return a!==r?null:i.length?i.text():""}return s},Jr=O("<textarea/>")[0],Li=function(e,t){var n=O.extend(!0,{},{rows:null,columns:"",modifier:{search:"applied",order:"applied"},orthogonal:"display",stripHtml:!0,stripNewlines:!0,decodeEntities:!0,escapeExcelFormula:!1,trim:!0,format:{header:function(_){return de.stripData(_,n)},footer:function(_){return de.stripData(_,n)},body:function(_){return de.stripData(_,n)}},customizeData:null,customizeZip:null},t),r=e.columns(n.columns).indexes().map(function(_){var x=e.column(_);return n.format.header(x.title(),_,x.header())}).toArray(),s=e.table().footer()?e.columns(n.columns).indexes().map(function(_){var x=e.column(_).footer(),P="";if(x){var I=O(".dt-column-title",x);P=I.length?I.html():O(x).html()}return n.format.footer(P,_,x)}).toArray():null,i=O.extend({},n.modifier);e.select&&typeof e.select.info=="function"&&i.selected===void 0&&e.rows(n.rows,O.extend({selected:!0},i)).any()&&O.extend(i,{selected:!0});for(var a=e.rows(n.rows,i).indexes().toArray(),l=e.cells(a,n.columns,{order:i.order}),u=l.render(n.orthogonal).toArray(),h=l.nodes().toArray(),f=l.indexes().toArray(),b=e.columns(n.columns).count(),v=b>0?u.length/b:0,m=[],C=0,w=0,c=v;w<c;w++){for(var o=[b],d=0;d<b;d++)o[d]=n.format.body(u[C],f[C].row,f[C].column,h[C]),C++;m[w]=o}var p={header:r,headerStructure:Kr(n.format.header,e.table().header.structure(n.columns)),footer:s,footerStructure:Kr(n.format.footer,e.table().footer.structure(n.columns)),body:m};return n.customizeData&&n.customizeData(p),p};function Kr(e,t){for(var n=0;n<t.length;n++)for(var r=0;r<t[n].length;r++){var s=t[n][r];s&&(s.title=e(s.title,r,s.cell))}return t}O.fn.dataTable.Buttons=de;O.fn.DataTable.Buttons=de;O(document).on("init.dt plugin-init.dt",function(e,t){if(e.namespace==="dt"){var n=t.oInit.buttons||k.defaults.buttons;n&&!t._buttons&&new de(t,n).container()}});function es(e,t){var n=new k.Api(e),r=t||n.init().buttons||k.defaults.buttons;return new de(n,r).container()}k.ext.feature.push({fnInit:es,cFeature:"B"});k.feature&&k.feature.register("buttons",es);var Bi=oe(ae("jquery"),1);var rs=oe(ae("jquery"),1);var ce=rs.default;function lt(e,t,n,r){var s=e.splice(t,n);s.unshift(0),s.unshift(r<t?r:r-n+1),e.splice.apply(e,s)}function ss(e){e.rows().invalidate("data"),e.column(0).visible(e.column(0).visible()),e.columns.adjust();var t=e.colReorder.order();e.trigger("columns-reordered",[{order:t,mapping:qn(t)}])}function is(e){return e.settings()[0].aoColumns.map(function(t){return t._crOriginalIdx})}function ts(e,t,n,r){for(var s=[],i=0;i<e.length;i++){var a=e[i];lt(a,n[0],n.length,r);for(var l=0;l<a.length;l++){var u=a[l].cell;if(!s.includes(u)){var h=u.getAttribute("data-dt-column").split(","),f=h.map(function(b){return t[b]}).join(",");u.setAttribute("data-dt-column",f),s.push(u)}}}}function Et(e){e.columns().iterator("column",function(t,n){var r=t.aoColumns;r[n]._crOriginalIdx===void 0&&(r[n]._crOriginalIdx=n)})}function qn(e){for(var t=[],n=0;n<e.length;n++)t[e[n]]=n;return t}function as(e,t,n){var r,s,i=e.settings()[0],a=i.aoColumns,l=a.map(function(v,m){return m});if(!t.includes(n)){lt(l,t[0],t.length,n);var u=qn(l);for(lt(a,t[0],t.length,n),r=0;r<i.aoData.length;r++){var h=i.aoData[r];if(h){var f=h.anCells;if(f)for(lt(f,t[0],t.length,n),s=0;s<f.length;s++)h.nTr&&f[s]&&a[s].bVisible&&h.nTr.appendChild(f[s]),f[s]&&f[s]._DT_CellIndex&&(f[s]._DT_CellIndex.column=s)}}for(r=0;r<a.length;r++){var b=a[r];for(s=0;s<b.aDataSort.length;s++)b.aDataSort[s]=u[b.aDataSort[s]];b.idx=u[b.idx],b.bVisible&&i.colgroup.append(b.colEl)}ts(i.aoHeader,u,t,n),ts(i.aoFooter,u,t,n),lt(i.aoPreSearchCols,t[0],t.length,n),Ot(u,i.aaSorting),Array.isArray(i.aaSortingFixed)?Ot(u,i.aaSortingFixed):(i.aaSortingFixed.pre||i.aaSortingFixed.post)&&Ot(u,i.aaSortingFixed.pre),i.aLastSort.forEach(function(v){v.src=u[v.src]}),e.trigger("column-reorder",[e.settings()[0],{from:t,to:n,mapping:u}])}}function Ot(e,t){if(t)for(var n=0;n<t.length;n++){var r=t[n];typeof r=="number"?t[n]=e[r]:ce.isPlainObject(r)&&r.idx!==void 0?r.idx=e[r.idx]:Array.isArray(r)&&typeof r[0]=="number"&&(r[0]=e[r[0]])}}function dn(e,t,n){var r=!1,s;if(t.length!==e.columns().count()){e.error("ColReorder - column count mismatch");return}n&&(t=os(e,t,"toCurrent"));var i=qn(t);for(s=0;s<i.length;s++){var a=i.indexOf(s);s!==a&&(lt(i,a,1,s),as(e,[a],s),r=!0)}r&&ss(e)}function Ni(e){for(var t=[],n=0;n<e.length;n++){t.push([]);for(var r=0;r<e[n].length;r++){var s=e[n][r];if(s)for(var i=0;i<s.rowspan;i++){t[n+i]||(t[n+i]=[]);for(var a=0;a<s.colspan;a++)t[n+i][r+a]=s.cell}}}return t}function os(e,t,n){var r=e.colReorder.order(),s=e.settings()[0].aoColumns;return n==="toCurrent"||n==="fromOriginal"?Array.isArray(t)?t.map(function(i){return r.indexOf(i)}):r.indexOf(t):Array.isArray(t)?t.map(function(i){return s[i]._crOriginalIdx}):s[t]._crOriginalIdx}function ls(e,t,n){var r=e.columns().count();return t[0]<n&&n<t[t.length]||t[0]<0&&t[t.length-1]>r||n<0&&n>r?!1:t.includes(n)?!0:!(!ns(e.table().header.structure(),t,n)||!ns(e.table().footer.structure(),t,n))}function ns(e,t,n){var r=Ni(e),s;for(s=0;s<r.length;s++)lt(r[s],t[0],t.length,n);for(s=0;s<r.length;s++)for(var i=[],a=0;a<r[s].length;a++){var l=r[s][a];if(!i.includes(l))i.push(l);else if(i[i.length-1]!==l)return!1}return!0}var ds=function(){function e(t,n){this.dom={drag:null},this.c={columns:null,enable:null,headerRows:null,order:null},this.s={dropZones:[],mouse:{absLeft:-1,offset:{x:-1,y:-1},start:{x:-1,y:-1},target:null,targets:[]},scrollInterval:null};var r=this,s=t.settings()[0];if(!s._colReorder){t.settings()[0]._colReorder=this,this.dt=t,ce.extend(this.c,e.defaults,n),Et(t),t.on("stateSaveParams",function(l,u,h){h.colReorder=is(t)}),t.on("destroy",function(){t.off(".colReorder"),t.colReorder.reset()});var i=t.state.loaded(),a=this.c.order;i&&i.colReorder&&t.columns().count()===i.colReorder.length&&(a=i.colReorder),a&&t.ready(function(){dn(t,a,!0)}),t.table().header.structure().forEach(function(l,u){for(var h=n.headerRows,f=0;f<l.length;f++)(!h||h.includes(u))&&l[f]&&l[f].cell&&r._addListener(l[f].cell)})}}return e.prototype.disable=function(){return this.c.enable=!1,this},e.prototype.enable=function(t){return t===void 0&&(t=!0),t===!1?this.disable():(this.c.enable=!0,this)},e.prototype._addListener=function(t){var n=this;ce(t).on("selectstart.colReorder",function(){return!1}).on("mousedown.colReorder touchstart.colReorder",function(r){if(!(r.type==="mousedown"&&r.which!==1)&&n.c.enable){var s=ce("button.dtcc-button_reorder",this);s.length&&r.target!==s[0]&&s.find(r.target).length===0||n._mouseDown(r,this)}})},e.prototype._createDragNode=function(){var t=this.s.mouse.target,n=t.parent(),r=n.parent(),s=r.parent(),i=t.clone();this.dom.drag=ce(s[0].cloneNode(!1)).addClass("dtcr-cloned").append(ce(r[0].cloneNode(!1)).append(ce(n[0].cloneNode(!1)).append(i[0]))).css({position:"absolute",top:0,left:0,width:ce(t).outerWidth(),height:ce(t).outerHeight()}).appendTo("body")},e.prototype._cursorPosition=function(t,n){return t.type.indexOf("touch")!==-1?t.originalEvent.touches[0][n]:t[n]},e.prototype._mouseDown=function(t,n){for(var r=this,s=ce(t.target).closest("th, td"),i=s.offset(),a=this.dt.columns(this.c.columns).indexes().toArray(),l=ce(n).attr("data-dt-column").split(",").map(function(v){return parseInt(v,10)}),u=0;u<l.length;u++)if(!a.includes(l[u]))return!1;this.s.mouse.start.x=this._cursorPosition(t,"pageX"),this.s.mouse.start.y=this._cursorPosition(t,"pageY"),this.s.mouse.offset.x=this._cursorPosition(t,"pageX")-i.left,this.s.mouse.offset.y=this._cursorPosition(t,"pageY")-i.top,this.s.mouse.target=s,this.s.mouse.targets=l;for(var h=0;h<l.length;h++){var f=this.dt.cells(null,l[h],{page:"current"}).nodes().to$(),b="dtcr-moving";h===0&&(b+=" dtcr-moving-first"),h===l.length-1&&(b+=" dtcr-moving-last"),f.addClass(b)}this._regions(l),this._scrollRegions(),ce(document).on("mousemove.colReorder touchmove.colReorder",function(v){r._mouseMove(v)}).on("mouseup.colReorder touchend.colReorder",function(v){r._mouseUp(v)})},e.prototype._mouseMove=function(t){if(this.dom.drag===null){if(Math.pow(Math.pow(this._cursorPosition(t,"pageX")-this.s.mouse.start.x,2)+Math.pow(this._cursorPosition(t,"pageY")-this.s.mouse.start.y,2),.5)<5)return;ce(document.body).addClass("dtcr-dragging"),this._createDragNode()}this.dom.drag.css({left:this._cursorPosition(t,"pageX")-this.s.mouse.offset.x,top:this._cursorPosition(t,"pageY")-this.s.mouse.offset.y});var n=this.dt.table().node(),r=ce(n).offset().left,s=this._cursorPosition(t,"pageX")-r,i;if(this._isRtl()){var a=n.clientWidth;i=a-s}else i=s;var l=this.s.dropZones.find(function(u){return u.inlineStart<=i&&i<=u.inlineStart+u.width});this.s.mouse.absLeft=this._cursorPosition(t,"pageX"),l&&(l.self||this._move(l,i))},e.prototype._mouseUp=function(t){var n=this;ce(document).off(".colReorder"),ce(document.body).removeClass("dtcr-dragging"),this.dom.drag&&(this.dom.drag.remove(),this.dom.drag=null,this.s.mouse.target.on("click.dtcr",function(r){return!1}),setTimeout(function(){n.s.mouse.target.off(".dtcr")},10)),this.s.scrollInterval&&clearInterval(this.s.scrollInterval),this.dt.cells(".dtcr-moving").nodes().to$().removeClass("dtcr-moving dtcr-moving-first dtcr-moving-last")},e.prototype._move=function(t,n){var r=this;this.dt.colReorder.move(this.s.mouse.targets,t.colIdx),this.s.mouse.targets=ce(this.s.mouse.target).attr("data-dt-column").split(",").map(function(b){return parseInt(b,10)}),this._regions(this.s.mouse.targets);var s=this.s.mouse.targets.filter(function(b){return r.dt.column(b).visible()}),i=this.s.dropZones.find(function(b){return b.colIdx===s[0]}),a=this.s.dropZones.indexOf(i);if(i.inlineStart>n){var l=i.inlineStart-n,u=this.s.dropZones[a-1];i.inlineStart-=l,i.width+=l,u&&(u.width-=l)}if(i=this.s.dropZones.find(function(b){return b.colIdx===s[s.length-1]}),i.inlineStart+i.width<n){var h=n-(i.inlineStart+i.width),f=this.s.dropZones[a+1];i.width+=h,f&&(f.inlineStart+=h,f.width-=h)}},e.prototype._regions=function(t){var n=this,r=[],s=0,i=0,a=this.dt.columns(this.c.columns).indexes().toArray(),l=this.dt.columns().widths();this.dt.columns().every(function(u,h,f){if(this.visible()){var b=l[u];if(!a.includes(u)){s+=b;return}var v=ls(n.dt,t,u);v?r.push({colIdx:u,inlineStart:s-i,self:t[0]<=u&&u<=t[t.length-1],width:b+i}):u<t[0]?r.length&&(r[r.length-1].width+=b):u>t[t.length-1]&&(i+=b),s+=b}}),this.s.dropZones=r},e.prototype._isScrolling=function(){return this.dt.table().body().parentNode!==this.dt.table().header().parentNode},e.prototype._scrollRegions=function(){if(this._isScrolling()){var t=this,n=ce(this.dt.table().container()).offset().left,r=ce(this.dt.table().container()).outerWidth(),s=75,i=this.dt.table().body().parentElement.parentElement;this.s.scrollInterval=setInterval(function(){var a=t.s.mouse.absLeft;a!==-1&&(a<n+s&&i.scrollLeft?i.scrollLeft-=5:a>n+r-s&&i.scrollLeft<i.scrollWidth&&(i.scrollLeft+=5))},25)}},e.prototype._isRtl=function(){return ce(this.dt.table().node()).css("direction")==="rtl"},e.defaults={columns:"",enable:!0,headerRows:null,order:null},e.version="2.1.2",e}();k.Api.register("colReorder.enable()",function(e){return this.iterator("table",function(t){t._colReorder&&t._colReorder.enable(e)})});k.Api.register("colReorder.disable()",function(){return this.iterator("table",function(e){e._colReorder&&e._colReorder.disable()})});k.Api.register("colReorder.move()",function(e,t){return Et(this),Array.isArray(e)||(e=[e]),ls(this,e,t)?this.tables().every(function(){as(this,e,t),ss(this)}):(this.error("ColReorder - invalid move"),this)});k.Api.register("colReorder.order()",function(e,t){return Et(this),e?this.tables().every(function(){dn(this,e,t)}):this.context.length?is(this):null});k.Api.register("colReorder.reset()",function(){return Et(this),this.tables().every(function(){var e=this.columns().every(function(t){return t}).flatten().toArray();dn(this,e,!0)})});k.Api.register("colReorder.transpose()",function(e,t){return Et(this),t||(t="toCurrent"),os(this,e,t)});k.ColReorder=ds;ce(document).on("stateLoadInit.dt",function(e,t,n){if(e.namespace==="dt"){var r=new k.Api(t);if(n.colReorder&&r.columns().count()===n.colReorder.length){if(r.ready())dn(r,n.colReorder,!0);else if(Ot(n.colReorder,n.order),n.columns){for(var s=0;s<n.columns.length;s++)n.columns[s]._cr_sort=n.colReorder[s];n.columns.sort(function(i,a){return i._cr_sort-a._cr_sort})}}}});ce(document).on("preInit.dt",function(e,t){if(e.namespace==="dt"){var n=t.oInit.colReorder,r=k.defaults.colReorder;if(n||r){var s=ce.extend({},r,n);if(n!==!1){var i=new k.Api(t);new ds(i,s)}}}});var cs=oe(ae("jquery"),1);var te=cs.default,me,ve=function(e,t){if(ve.factory(e,t))return ve;typeof me=="undefined"&&(me=window.moment?window.moment:window.dayjs?window.dayjs:window.luxon?window.luxon:null),this.c=te.extend(!0,{},ve.defaults,t);var n=this.c.classPrefix;if(!me&&this.c.format!=="YYYY-MM-DD")throw"DateTime: Without momentjs, dayjs or luxon only the format 'YYYY-MM-DD' can be used";this._isLuxon()&&this.c.format=="YYYY-MM-DD"&&(this.c.format="yyyy-MM-dd"),typeof this.c.minDate=="string"&&(this.c.minDate=new Date(this.c.minDate)),typeof this.c.maxDate=="string"&&(this.c.maxDate=new Date(this.c.maxDate));var r=te('<div class="'+n+'"><div class="'+n+'-date"><div class="'+n+'-title"><div class="'+n+'-iconLeft"><button type="button"></button></div><div class="'+n+'-iconRight"><button type="button"></button></div><div class="'+n+'-label"><span></span><select class="'+n+'-month"></select></div><div class="'+n+'-label"><span></span><select class="'+n+'-year"></select></div></div><div class="'+n+'-buttons"><a class="'+n+'-clear"></a><a class="'+n+'-today"></a><a class="'+n+'-selected"></a></div><div class="'+n+'-calendar"></div></div><div class="'+n+'-time"><div class="'+n+'-hours"></div><div class="'+n+'-minutes"></div><div class="'+n+'-seconds"></div></div><div class="'+n+'-error"></div></div>');this.dom={container:r,date:r.find("."+n+"-date"),title:r.find("."+n+"-title"),calendar:r.find("."+n+"-calendar"),time:r.find("."+n+"-time"),error:r.find("."+n+"-error"),buttons:r.find("."+n+"-buttons"),clear:r.find("."+n+"-clear"),today:r.find("."+n+"-today"),selected:r.find("."+n+"-selected"),previous:r.find("."+n+"-iconLeft"),next:r.find("."+n+"-iconRight"),input:te(e)},this.s={d:null,display:null,minutesRange:null,secondsRange:null,namespace:"datetime-"+ve._instance++,parts:{date:this.c.format.match(/[yYMDd]|L(?!T)|l/)!==null,time:this.c.format.match(/[Hhm]|LT|LTS/)!==null,seconds:this.c.format.indexOf("s")!==-1,hours12:this.c.format.match(/[haA]/)!==null},showTo:null},this.dom.container.append(this.dom.date).append(this.dom.time).append(this.dom.error),this.dom.date.append(this.dom.title).append(this.dom.buttons).append(this.dom.calendar),this.dom.input.addClass("dt-datetime"),this._constructor()};te.extend(ve.prototype,{destroy:function(){clearTimeout(this.s.showTo),this._hide(!0),this.dom.container.off().empty(),this.dom.input.removeClass("dt-datetime").removeAttr("autocomplete").off(".datetime")},display:function(e,t){return e!==void 0&&this.s.display.setUTCFullYear(e),t!==void 0&&this.s.display.setUTCMonth(t-1),e!==void 0||t!==void 0?(this._setTitle(),this._setCalander(),this):this.s.display?{month:this.s.display.getUTCMonth()+1,year:this.s.display.getUTCFullYear()}:{month:null,year:null}},errorMsg:function(e){var t=this.dom.error;return e?t.html(e):t.empty(),this},hide:function(){return this._hide(),this},max:function(e){return this.c.maxDate=typeof e=="string"?new Date(e):e,this._optionsTitle(),this._setCalander(),this},min:function(e){return this.c.minDate=typeof e=="string"?new Date(e):e,this._optionsTitle(),this._setCalander(),this},owns:function(e){return te(e).parents().filter(this.dom.container).length>0},val:function(e,t){if(e===void 0)return this.s.d;var n=this.s.d;return e instanceof Date?this.s.d=this._dateToUtc(e):e===null||e===""?this.s.d=null:e==="--now"?this.s.d=this._dateToUtc(new Date):typeof e=="string"&&(this.s.d=this._dateToUtc(this._convert(e,this.c.format,null))),(t||t===void 0)&&(this.s.d?this._writeOutput(!1,n===null&&this.s.d!==null||n!==null&&this.s.d===null||n.toString()!==this.s.d.toString()):this.dom.input.val(e)),this.s.d?this.s.display=new Date(this.s.d.toString()):this.c.display?(this.s.display=new Date,this.s.display.setUTCDate(1),this.display(this.c.display.year,this.c.display.month)):this.s.display=new Date,this.s.display.setUTCDate(1),this._setTitle(),this._setCalander(),this._setTime(),this},valFormat:function(e,t){return t?(this.val(this._convert(t,e,null)),this):this._convert(this.val(),null,e)},_constructor:function(){var e=this,t=this.c.classPrefix,n=this.dom.input.val(),r=function(){var s=e.dom.input.val();s!==n&&(e.c.onChange.call(e,s,e.s.d,e.dom.input),n=s)};this.s.parts.date||this.dom.date.css("display","none"),this.s.parts.time||this.dom.time.css("display","none"),this.s.parts.seconds||(this.dom.time.children("div."+t+"-seconds").remove(),this.dom.time.children("span").eq(1).remove()),this.c.buttons.clear||this.dom.clear.css("display","none"),this.c.buttons.today||this.dom.today.css("display","none"),this.c.buttons.selected||this.dom.selected.css("display","none"),this._optionsTitle(),te(document).on("i18n.dt",function(s,i){i.oLanguage.datetime&&(te.extend(!0,e.c.i18n,i.oLanguage.datetime),e._optionsTitle())}),(this.dom.input.attr("type")==="hidden"||this.c.alwaysVisible)&&(this.dom.container.addClass("inline"),this.c.attachTo="input",this.val(this.dom.input.val(),!1),this._show()),n&&this.val(n,!1),this.dom.input.attr("autocomplete","off").on("focus.datetime click.datetime",function(){e.dom.container.is(":visible")||e.dom.input.is(":disabled")||(n=e.dom.input.val(),e.val(n,!1),e._show())}).on("keyup.datetime",function(){e.val(e.dom.input.val(),!1)}),this.dom.container[0].addEventListener("focusin",function(s){s.stopPropagation()}),this.dom.container.on("change","select",function(){var s=te(this),i=s.val();if(s.hasClass(t+"-month"))e._correctMonth(e.s.display,i),e._setTitle(),e._setCalander();else if(s.hasClass(t+"-year"))e.s.display.setUTCFullYear(i),e._setTitle(),e._setCalander();else if(s.hasClass(t+"-hours")||s.hasClass(t+"-ampm")){if(e.s.parts.hours12){var a=te(e.dom.container).find("."+t+"-hours").val()*1,l=te(e.dom.container).find("."+t+"-ampm").val()==="pm";e.s.d.setUTCHours(a===12&&!l?0:l&&a!==12?a+12:a)}else e.s.d.setUTCHours(i);e._setTime(),e._writeOutput(!0),r()}else s.hasClass(t+"-minutes")?(e.s.d.setUTCMinutes(i),e._setTime(),e._writeOutput(!0),r()):s.hasClass(t+"-seconds")&&(e.s.d.setSeconds(i),e._setTime(),e._writeOutput(!0),r());e.dom.input.focus(),e._position()}).on("click",function(s){var i=e.s.d,a=s.target.nodeName.toLowerCase(),l=a==="span"?s.target.parentNode:s.target;if(a=l.nodeName.toLowerCase(),a!=="select")if(s.stopPropagation(),a==="a"&&(s.preventDefault(),te(l).hasClass(t+"-clear")?(e.s.d=null,e.dom.input.val(""),e._writeOutput(),e._setCalander(),e._setTime(),r()):te(l).hasClass(t+"-today")?(e.s.display=new Date,e._setTitle(),e._setCalander()):te(l).hasClass(t+"-selected")&&(e.s.display=new Date(e.s.d.getTime()),e._setTitle(),e._setCalander())),a==="button"){var u=te(l),h=u.parent();if(h.hasClass("disabled")&&!h.hasClass("range")){u.blur();return}if(h.hasClass(t+"-iconLeft"))e.s.display.setUTCMonth(e.s.display.getUTCMonth()-1),e._setTitle(),e._setCalander(),e.dom.input.focus();else if(h.hasClass(t+"-iconRight"))e._correctMonth(e.s.display,e.s.display.getUTCMonth()+1),e._setTitle(),e._setCalander(),e.dom.input.focus();else if(u.parents("."+t+"-time").length){var f=u.data("value"),b=u.data("unit");if(i=e._needValue(),b==="minutes")if(h.hasClass("disabled")&&h.hasClass("range")){e.s.minutesRange=f,e._setTime();return}else e.s.minutesRange=null;if(b==="seconds")if(h.hasClass("disabled")&&h.hasClass("range")){e.s.secondsRange=f,e._setTime();return}else e.s.secondsRange=null;if(f==="am")if(i.getUTCHours()>=12)f=i.getUTCHours()-12;else return;else if(f==="pm")if(i.getUTCHours()<12)f=i.getUTCHours()+12;else return;var v=b==="hours"?"setUTCHours":b==="minutes"?"setUTCMinutes":"setSeconds";i[v](f),e._setCalander(),e._setTime(),e._writeOutput(!0),r()}else i=e._needValue(),i.setUTCDate(1),i.setUTCFullYear(u.data("year")),i.setUTCMonth(u.data("month")),i.setUTCDate(u.data("day")),e._writeOutput(!0),e.s.parts.time?(e._setCalander(),e._setTime()):setTimeout(function(){e._hide()},10),r()}else e.dom.input.focus()})},_compareDates:function(e,t){return this._isLuxon()?me.DateTime.fromJSDate(e).toUTC().toISODate()===me.DateTime.fromJSDate(t).toUTC().toISODate():this._dateToUtcString(e)===this._dateToUtcString(t)},_convert:function(e,t,n){if(!e)return e;if(me)if(this._isLuxon()){var s=e instanceof Date?me.DateTime.fromJSDate(e).toUTC():me.DateTime.fromFormat(e,t);return s.isValid?n?s.toFormat(n):s.toJSDate():null}else{var i=e instanceof Date?me.utc(e,void 0,this.c.locale,this.c.strict):me(e,t,this.c.locale,this.c.strict);return i.isValid()?n?i.format(n):i.toDate():null}else{if(!t&&!n||t&&n)return e;if(t){var r=e.match(/(\d{4})\-(\d{2})\-(\d{2})/);return r?new Date(r[1],r[2]-1,r[3]):null}else return e.getUTCFullYear()+"-"+this._pad(e.getUTCMonth()+1)+"-"+this._pad(e.getUTCDate())}},_correctMonth:function(e,t){var n=this._daysInMonth(e.getUTCFullYear(),t),r=e.getUTCDate()>n;e.setUTCMonth(t),r&&(e.setUTCDate(n),e.setUTCMonth(t))},_daysInMonth:function(e,t){var n=e%4===0&&(e%100!==0||e%400===0),r=[31,n?29:28,31,30,31,30,31,31,30,31,30,31];return r[t]},_dateToUtc:function(e){return e&&new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))},_dateToUtcString:function(e){return this._isLuxon()?me.DateTime.fromJSDate(e).toUTC().toISODate():e.getUTCFullYear()+"-"+this._pad(e.getUTCMonth()+1)+"-"+this._pad(e.getUTCDate())},_hide:function(e){if(!e&&(this.dom.input.attr("type")==="hidden"||this.c.alwaysVisible)){this._setCalander(),this._setTime();return}var t=this.s.namespace;this.dom.container.detach(),te(window).off("."+t),te(document).off("keydown."+t).off("keyup."+t).off("click."+t),te("div.dataTables_scrollBody").off("scroll."+t),te("div.DTE_Body_Content").off("scroll."+t),te(this.dom.input[0].offsetParent).off("."+t)},_hours24To12:function(e){return e===0?12:e>12?e-12:e},_htmlDay:function(e){var t=this.c.classPrefix;if(e.empty)return'<td class="'+t+'-empty"></td>';var n=["selectable"];return e.disabled&&n.push("disabled"),e.today&&n.push("now"),e.selected&&n.push("selected"),'<td data-day="'+e.day+'" class="'+n.join(" ")+'"><button class="'+t+"-button "+t+'-day" type="button" data-year="'+e.year+'" data-month="'+e.month+'" data-day="'+e.day+'"><span>'+e.day+"</span></button></td>"},_htmlMonth:function(e,t){var n=this._dateToUtc(new Date),r=this._daysInMonth(e,t),s=new Date(Date.UTC(e,t,1)).getUTCDay(),i=[],a=[];this.c.firstDay>0&&(s-=this.c.firstDay,s<0&&(s+=7));for(var l=r+s,u=l;u>7;)u-=7;l+=7-u;var h=this.c.minDate,f=this.c.maxDate;h&&(h.setUTCHours(0),h.setUTCMinutes(0),h.setSeconds(0)),f&&(f.setUTCHours(23),f.setUTCMinutes(59),f.setSeconds(59));for(var b=0,v=0;b<l;b++){var m=new Date(Date.UTC(e,t,1+(b-s))),C=this.s.d?this._compareDates(m,this.s.d):!1,w=this._compareDates(m,n),c=b<s||b>=r+s,o=h&&m<h||f&&m>f,d=this.c.disableDays;(Array.isArray(d)&&te.inArray(m.getUTCDay(),d)!==-1||typeof d=="function"&&d(m)===!0)&&(o=!0);var p={day:1+(b-s),month:t,year:e,selected:C,today:w,disabled:o,empty:c};a.push(this._htmlDay(p)),++v===7&&(this.c.showWeekNumber&&a.unshift(this._htmlWeekOfYear(b-s,t,e)),i.push("<tr>"+a.join("")+"</tr>"),a=[],v=0)}var _=this.c.classPrefix,x=_+"-table";if(this.c.showWeekNumber&&(x+=" weekNumber"),h){var P=h>=new Date(Date.UTC(e,t,1,0,0,0));this.dom.title.find("div."+_+"-iconLeft").css("display",P?"none":"block")}if(f){var I=f<new Date(Date.UTC(e,t+1,1,0,0,0));this.dom.title.find("div."+_+"-iconRight").css("display",I?"none":"block")}return'<table class="'+x+'"><thead>'+this._htmlMonthHead()+"</thead><tbody>"+i.join("")+"</tbody></table>"},_htmlMonthHead:function(){var e=[],t=this.c.firstDay,n=this.c.i18n,r=function(i){for(i+=t;i>=7;)i-=7;return n.weekdays[i]};this.c.showWeekNumber&&e.push("<th></th>");for(var s=0;s<7;s++)e.push("<th>"+r(s)+"</th>");return e.join("")},_htmlWeekOfYear:function(e,t,n){var r=new Date(n,t,e,0,0,0,0);r.setDate(r.getDate()+4-(r.getDay()||7));var s=new Date(n,0,1),i=Math.ceil(((r-s)/864e5+1)/7);return'<td class="'+this.c.classPrefix+'-week">'+i+"</td>"},_isLuxon:function(){return!!(me&&me.DateTime&&me.Duration&&me.Settings)},_needValue:function(){return this.s.d||(this.s.d=this._dateToUtc(new Date),this.s.parts.time||(this.s.d.setUTCHours(0),this.s.d.setUTCMinutes(0),this.s.d.setSeconds(0),this.s.d.setMilliseconds(0))),this.s.d},_options:function(e,t,n){n||(n=t);var r=this.dom.container.find("select."+this.c.classPrefix+"-"+e);r.empty();for(var s=0,i=t.length;s<i;s++)r.append('<option value="'+t[s]+'">'+n[s]+"</option>")},_optionSet:function(e,t){var n=this.dom.container.find("select."+this.c.classPrefix+"-"+e),r=n.parent().children("span");n.val(t);var s=n.find("option:selected");r.html(s.length!==0?s.text():this.c.i18n.unknown)},_optionsTime:function(e,t,n,r,s){var i=this.c.classPrefix,a=this.dom.container.find("div."+i+"-"+e),l,u,h=t===12?function(o){return o}:this._pad,f=i+"-table",b=this.c.i18n;if(a.length){var v="",m=10,C=function(o,d,p){t===12&&typeof o=="number"&&(n>=12&&(o+=12),o==12?o=0:o==24&&(o=12));var _=n===o||o==="am"&&n<12||o==="pm"&&n>=12?"selected":"";return typeof o=="number"&&r&&te.inArray(o,r)===-1&&(_+=" disabled"),p&&(_+=" "+p),'<td class="selectable '+_+'"><button class="'+i+"-button "+i+'-day" type="button" data-unit="'+e+'" data-value="'+o+'"><span>'+d+"</span></button></td>"};if(t===12){for(v+="<tr>",l=1;l<=6;l++)v+=C(l,h(l));for(v+=C("am",b.amPm[0]),v+="</tr>",v+="<tr>",l=7;l<=12;l++)v+=C(l,h(l));v+=C("pm",b.amPm[1]),v+="</tr>",m=7}else if(t===24){var w=0;for(u=0;u<4;u++){for(v+="<tr>",l=0;l<6;l++)v+=C(w,h(w)),w++;v+="</tr>"}m=6}else{for(v+="<tr>",u=0;u<60;u+=10)v+=C(u,h(u),"range");v+="</tr>",v+='</tbody></thead><table class="'+f+" "+f+'-nospace"><tbody>';var c=s!==null?s:n===-1?0:Math.floor(n/10)*10;for(v+="<tr>",u=c+1;u<c+10;u++)v+=C(u,h(u));v+="</tr>",m=6}a.empty().append('<table class="'+f+'"><thead><tr><th colspan="'+m+'">'+b[e]+"</th></tr></thead><tbody>"+v+"</tbody></table>")}},_optionsTitle:function(){var e=this.c.i18n,t=this.c.minDate,n=this.c.maxDate,r=t?t.getFullYear():null,s=n?n.getFullYear():null,i=r!==null?r:new Date().getFullYear()-this.c.yearRange,a=s!==null?s:new Date().getFullYear()+this.c.yearRange;this._options("month",this._range(0,11),e.months),this._options("year",this._range(i,a)),this.dom.today.text(e.today).text(e.today),this.dom.selected.text(e.selected).text(e.selected),this.dom.clear.text(e.clear).text(e.clear),this.dom.previous.attr("title",e.previous).children("button").text(e.previous),this.dom.next.attr("title",e.next).children("button").text(e.next)},_pad:function(e){return e<10?"0"+e:e},_position:function(){var e=this.c.attachTo==="input"?this.dom.input.position():this.dom.input.offset(),t=this.dom.container,n=this.dom.input.outerHeight();if(t.hasClass("inline")){t.insertAfter(this.dom.input);return}this.s.parts.date&&this.s.parts.time&&te(window).width()>550?t.addClass("horizontal"):t.removeClass("horizontal"),this.c.attachTo==="input"?t.css({top:e.top+n,left:e.left}).insertAfter(this.dom.input):t.css({top:e.top+n,left:e.left}).appendTo("body");var r=t.outerHeight(),s=t.outerWidth(),i=te(window).scrollTop();if(e.top+n+r-i>te(window).height()){var a=e.top-r;t.css("top",a<0?0:a)}if(s+e.left>te(window).width()){var l=te(window).width()-s-5;this.c.attachTo==="input"&&(l-=te(t).offsetParent().offset().left),t.css("left",l<0?0:l)}},_range:function(e,t,n){var r=[];n||(n=1);for(var s=e;s<=t;s+=n)r.push(s);return r},_setCalander:function(){this.s.display&&this.dom.calendar.empty().append(this._htmlMonth(this.s.display.getUTCFullYear(),this.s.display.getUTCMonth()))},_setTitle:function(){this._optionSet("month",this.s.display.getUTCMonth()),this._optionSet("year",this.s.display.getUTCFullYear())},_setTime:function(){var e=this,t=this.s.d,n=null;this._isLuxon()&&(n=me.DateTime.fromJSDate(t).toUTC());var r=n!=null?n.hour:t?t.getUTCHours():-1,s=function(i){return e.c[i+"Available"]?e.c[i+"Available"]:e._range(0,59,e.c[i+"Increment"])};this._optionsTime("hours",this.s.parts.hours12?12:24,r,this.c.hoursAvailable),this._optionsTime("minutes",60,n!=null?n.minute:t?t.getUTCMinutes():-1,s("minutes"),this.s.minutesRange),this._optionsTime("seconds",60,n!=null?n.second:t?t.getSeconds():-1,s("seconds"),this.s.secondsRange)},_show:function(){var e=this,t=this.s.namespace;this._position(),te(window).on("scroll."+t+" resize."+t,function(){e._position()}),te("div.DTE_Body_Content").on("scroll."+t,function(){e._position()}),te("div.dataTables_scrollBody").on("scroll."+t,function(){e._position()});var n=this.dom.input[0].offsetParent;n!==document.body&&te(n).on("scroll."+t,function(){e._position()}),te(document).on("keydown."+t,function(r){e.dom.container.is(":visible")&&(r.keyCode===9||r.keyCode===13)&&e._hide()}),te(document).on("keyup."+t,function(r){e.dom.container.is(":visible")&&r.keyCode===27&&(r.preventDefault(),e._hide())}),clearTimeout(this.s.showTo),this.dom.input.on("blur",function(r){e.s.showTo=setTimeout(function(){let s=document.activeElement.tagName.toLowerCase();document.activeElement!==e.dom.input[0]&&(e.dom.container.find(document.activeElement).length||["input","select","button"].includes(s)&&e.hide())},10)}),setTimeout(function(){te(document).on("click."+t,function(r){var s=te(r.target).parents();!s.filter(e.dom.container).length&&r.target!==e.dom.input[0]&&e._hide()})},10)},_writeOutput:function(e,t){var n=this.s.d,r="",s=this.dom.input;if(n&&(r=this._convert(n,null,this.c.format)),s.val(r),t===void 0||t){var i=new Event("change",{bubbles:!0});s[0].dispatchEvent(i)}s.attr("type")==="hidden"&&this.val(r,!1),e&&s.focus()}});ve.use=function(e){me=e};ve._instance=0;ve.type="DateTime";ve.defaults={alwaysVisible:!1,attachTo:"body",buttons:{clear:!1,selected:!1,today:!1},classPrefix:"dt-datetime",disableDays:null,firstDay:1,format:"YYYY-MM-DD",hoursAvailable:null,i18n:{clear:"Clear",previous:"Previous",next:"Next",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],amPm:["am","pm"],hours:"Hour",minutes:"Minute",seconds:"Second",unknown:"-",today:"Today",selected:"Selected"},maxDate:null,minDate:null,minutesAvailable:null,minutesIncrement:1,strict:!0,locale:"en",onChange:function(){},secondsAvailable:null,secondsIncrement:1,showWeekNumber:!1,yearRange:25};ve.version="1.6.3";ve.factory=function(e,t){var n=!1;return e&&e.document&&(window=e,document=e.document),t&&t.fn&&t.fn.jquery&&(te=t,n=!0),n};window.DateTime||(window.DateTime=ve);window.DataTable&&(window.DataTable.DateTime=ve,DataTable.use("datetime",ve));te.fn.dtDateTime=function(e){return this.each(function(){new ve(this,e)})};te.fn.dataTable&&(te.fn.dataTable.DateTime=ve,te.fn.DataTable.DateTime=ve,te.fn.dataTable.Editor&&(te.fn.dataTable.Editor.DateTime=ve));var Fi=oe(ae("jquery"),1);var us=oe(ae("jquery"),1);var Ze=us.default;(function(){"use strict";var e,t;function n(a){e=a,t=e.fn.dataTable}var r=function(){function a(l,u){var h=this;if(!t||!t.versionCheck||!t.versionCheck("2"))throw new Error("FixedColumns requires DataTables 2 or newer");var f=new t.Api(l);this.classes=e.extend(!0,{},a.classes),this.c=e.extend(!0,{},a.defaults,u),this.s={dt:f,rtl:e(f.table().node()).css("direction")==="rtl"},u&&u.leftColumns!==void 0&&(u.left=u.leftColumns),u&&u.left!==void 0&&(this.c[this.s.rtl?"end":"start"]=u.left),u&&u.rightColumns!==void 0&&(u.right=u.rightColumns),u&&u.right!==void 0&&(this.c[this.s.rtl?"start":"end"]=u.right),this.dom={bottomBlocker:e("<div>").addClass(this.classes.bottomBlocker),topBlocker:e("<div>").addClass(this.classes.topBlocker),scroller:e("div.dt-scroll-body",this.s.dt.table().container())},this.s.dt.settings()[0]._bInitComplete?(this._addStyles(),this._setKeyTableListener()):f.one("init.dt.dtfc",function(){h._addStyles(),h._setKeyTableListener()}),f.on("column-sizing.dt.dtfc column-reorder.dt.dtfc draw.dt.dtfc",function(){return h._addStyles()});var b=t.util.debounce(function(){h._addStyles()},50);return f.on("column-visibility.dt.dtfc",function(){b()}),this.dom.scroller.on("scroll.dtfc",function(){return h._scroll()}),this._scroll(),f.settings()[0]._fixedColumns=this,f.on("destroy",function(){return h._destroy()}),this}return a.prototype.end=function(l){return l!==void 0?(l>=0&&l<=this.s.dt.columns().count()&&(this.c.end=l,this._addStyles()),this):this.c.end},a.prototype.left=function(l){return this.s.rtl?this.end(l):this.start(l)},a.prototype.right=function(l){return this.s.rtl?this.start(l):this.end(l)},a.prototype.start=function(l){return l!==void 0?(l>=0&&l<=this.s.dt.columns().count()&&(this.c.start=l,this._addStyles()),this):this.c.start},a.prototype._addStyles=function(){var l=this.s.dt,u=this,h=this.s.dt.columns(":visible").count(),f=l.table().header.structure(":visible"),b=l.table().footer.structure(":visible"),v=l.columns(":visible").widths().toArray(),m=e(l.table().node()).closest("div.dt-scroll"),C=e(l.table().node()).closest("div.dt-scroll-body")[0],w=this.s.rtl,c=this.c.start,o=this.c.end,d=w?o:c,p=w?c:o,_=l.settings()[0].oBrowser.barWidth;if(m.length===0)return this;C.offsetWidth===C.clientWidth&&(_=0),l.columns().every(function(E){var F=l.column.index("toVisible",E),U;F!==null&&(F<c?(U=u._sum(v,F),u._fixColumn(F,U,"start",f,b,_)):F>=h-o?(U=u._sum(v,h-F-1,!0),u._fixColumn(F,U,"end",f,b,_)):u._fixColumn(F,0,"none",f,b,_))}),e(l.table().node()).toggleClass(u.classes.tableFixedStart,c>0).toggleClass(u.classes.tableFixedEnd,o>0).toggleClass(u.classes.tableFixedLeft,d>0).toggleClass(u.classes.tableFixedRight,p>0);var x=l.table().header(),P=l.table().footer(),I=e(x).outerHeight(),B=e(P).outerHeight();this.dom.topBlocker.appendTo(m).css("top",0).css(this.s.rtl?"left":"right",0).css("height",I).css("width",_+1).css("display",_?"block":"none"),P&&this.dom.bottomBlocker.appendTo(m).css("bottom",0).css(this.s.rtl?"left":"right",0).css("height",B).css("width",_+1).css("display",_?"block":"none")},a.prototype._destroy=function(){this.s.dt.off(".dtfc"),this.dom.scroller.off(".dtfc"),e(this.s.dt.table().node()).removeClass(this.classes.tableScrollingEnd+" "+this.classes.tableScrollingLeft+" "+this.classes.tableScrollingStart+" "+this.classes.tableScrollingRight),this.dom.bottomBlocker.remove(),this.dom.topBlocker.remove()},a.prototype._fixColumn=function(l,u,h,f,b,v){var m=this,C=this.s.dt,w=function(c,o){if(h==="none")c.css("position","").css("left","").css("right","").removeClass(m.classes.fixedEnd+" "+m.classes.fixedLeft+" "+m.classes.fixedRight+" "+m.classes.fixedStart);else{var d=h==="start"?"left":"right";m.s.rtl&&(d=h==="start"?"right":"left");var p=u;h==="end"&&(o==="header"||o==="footer")&&(p+=v),c.css("position","sticky").css(d,p).addClass(h==="start"?m.classes.fixedStart:m.classes.fixedEnd).addClass(d==="left"?m.classes.fixedLeft:m.classes.fixedRight)}};f.forEach(function(c){c[l]&&w(e(c[l].cell),"header")}),w(C.column(l+":visible",{page:"current"}).nodes().to$(),"body"),b&&b.forEach(function(c){c[l]&&w(e(c[l].cell),"footer")})},a.prototype._scroll=function(){var l=this.dom.scroller[0];if(l){var u=e(this.s.dt.table().node()).add(this.s.dt.table().header().parentNode).add(this.s.dt.table().footer().parentNode).add("div.dt-scroll-headInner table",this.s.dt.table().container()).add("div.dt-scroll-footInner table",this.s.dt.table().container()),h=l.scrollLeft,f=!this.s.rtl,b=h!==0,v=l.scrollWidth>l.clientWidth+Math.abs(h)+1;u.toggleClass(this.classes.tableScrollingStart,b),u.toggleClass(this.classes.tableScrollingEnd,v),u.toggleClass(this.classes.tableScrollingLeft,b&&f||v&&!f),u.toggleClass(this.classes.tableScrollingRight,v&&f||b&&!f)}},a.prototype._setKeyTableListener=function(){var l=this;this.s.dt.on("key-focus.dt.dtfc",function(u,h,f){var b,v=e(f.node()).offset(),m=l.dom.scroller[0],C=e(e(l.s.dt.table().node()).closest("div.dt-scroll-body"));if(l.c.start>0){var w=e(l.s.dt.column(l.c.start-1).header()),c=w.offset(),o=w.outerWidth();e(f.node()).hasClass(l.classes.fixedLeft)?C.scrollLeft(0):v.left<c.left+o&&(b=C.scrollLeft(),C.scrollLeft(b-(c.left+o-v.left)))}if(l.c.end>0){var d=l.s.dt.columns().data().toArray().length,p=e(f.node()).outerWidth(),_=e(l.s.dt.column(d-l.c.end).header()),x=_.offset();e(f.node()).hasClass(l.classes.fixedRight)?C.scrollLeft(m.scrollWidth-m.clientWidth):v.left+p>x.left&&(b=C.scrollLeft(),C.scrollLeft(b-(x.left-(v.left+p))))}})},a.prototype._sum=function(l,u,h){return h===void 0&&(h=!1),h&&(l=l.slice().reverse()),l.slice(0,u).reduce(function(f,b){return f+b},0)},a.version="5.0.5",a.classes={bottomBlocker:"dtfc-bottom-blocker",fixedEnd:"dtfc-fixed-end",fixedLeft:"dtfc-fixed-left",fixedRight:"dtfc-fixed-right",fixedStart:"dtfc-fixed-start",tableFixedEnd:"dtfc-has-end",tableFixedLeft:"dtfc-has-left",tableFixedRight:"dtfc-has-right",tableFixedStart:"dtfc-has-start",tableScrollingEnd:"dtfc-scrolling-end",tableScrollingLeft:"dtfc-scrolling-left",tableScrollingRight:"dtfc-scrolling-right",tableScrollingStart:"dtfc-scrolling-start",topBlocker:"dtfc-top-blocker"},a.defaults={i18n:{button:"FixedColumns"},start:1,end:0},a}();n(Ze),Ze.fn.dataTable.FixedColumns=r,Ze.fn.DataTable.FixedColumns=r;var s=k.Api.register;s("fixedColumns()",function(){return this}),s("fixedColumns().start()",function(a){var l=this.context[0];return a!==void 0?(l._fixedColumns.start(a),this):l._fixedColumns.start()}),s("fixedColumns().end()",function(a){var l=this.context[0];return a!==void 0?(l._fixedColumns.end(a),this):l._fixedColumns.end()}),s("fixedColumns().left()",function(a){var l=this.context[0];return a!==void 0?(l._fixedColumns.left(a),this):l._fixedColumns.left()}),s("fixedColumns().right()",function(a){var l=this.context[0];return a!==void 0?(l._fixedColumns.right(a),this):l._fixedColumns.right()}),k.ext.buttons.fixedColumns={action:function(a,l,u,h){Ze(u).attr("active")?(Ze(u).removeAttr("active").removeClass("active"),l.fixedColumns().start(0),l.fixedColumns().end(0)):(Ze(u).attr("active","true").addClass("active"),l.fixedColumns().start(h.config.start),l.fixedColumns().end(h.config.end))},config:{start:1,end:0},init:function(a,l,u){a.settings()[0]._fixedColumns===void 0&&i(a.settings(),u.config),Ze(l).attr("active","true").addClass("active"),a.button(l).text(u.text||a.i18n("buttons.fixedColumns",a.settings()[0]._fixedColumns.c.i18n.button))},text:null};function i(a,l){l===void 0&&(l=null);var u=new k.Api(a),h=l||u.init().fixedColumns||k.defaults.fixedColumns,f=new r(u,h);return f}Ze(document).on("plugin-init.dt",function(a,l){a.namespace==="dt"&&(l.oInit.fixedColumns||k.defaults.fixedColumns)&&(l._fixedColumns||i(l,null))})})();var Ei=oe(ae("jquery"),1);var fs=oe(ae("jquery"),1);var Q=fs.default,Oi=0,et=function(e,t){if(!k.versionCheck("2"))throw"Warning: FixedHeader requires DataTables 2 or newer";if(!(this instanceof et))throw"FixedHeader must be initialised with the 'new' keyword.";t===!0&&(t={}),e=new k.Api(e),this.c=Q.extend(!0,{},et.defaults,t),this.s={dt:e,position:{theadTop:0,tbodyTop:0,tfootTop:0,tfootBottom:0,width:0,left:0,tfootHeight:0,theadHeight:0,windowHeight:Q(window).height(),visible:!0},headerMode:null,footerMode:null,autoWidth:e.settings()[0].oFeatures.bAutoWidth,namespace:".dtfc"+Oi++,scrollLeft:{header:-1,footer:-1},enable:!0,autoDisable:!1},this.dom={floatingHeader:null,thead:Q(e.table().header()),tbody:Q(e.table().body()),tfoot:Q(e.table().footer()),header:{host:null,scrollAdjust:null,floating:null,floatingParent:Q('<div class="dtfh-floatingparent"><div class="dtfh-floating-limiter"><div></div></div></div>'),limiter:null,placeholder:null},footer:{host:null,scrollAdjust:null,floating:null,floatingParent:Q('<div class="dtfh-floatingparent"><div class="dtfh-floating-limiter"><div></div></div></div>'),limiter:null,placeholder:null}};var n=this.dom;n.header.host=n.thead.parent(),n.header.limiter=n.header.floatingParent.children(),n.header.scrollAdjust=n.header.limiter.children(),n.footer.host=n.tfoot.parent(),n.footer.limiter=n.footer.floatingParent.children(),n.footer.scrollAdjust=n.footer.limiter.children();var r=e.settings()[0];if(r._fixedHeader)throw"FixedHeader already initialised on table "+r.nTable.id;r._fixedHeader=this,this._constructor()};Q.extend(et.prototype,{destroy:function(){var e=this.dom;this.s.dt.off(".dtfc"),Q(window).off(this.s.namespace),e.header.rightBlocker&&e.header.rightBlocker.remove(),e.header.leftBlocker&&e.header.leftBlocker.remove(),e.footer.rightBlocker&&e.footer.rightBlocker.remove(),e.footer.leftBlocker&&e.footer.leftBlocker.remove(),this.c.header&&this._modeChange("in-place","header",!0),this.c.footer&&e.tfoot.length&&this._modeChange("in-place","footer",!0)},enable:function(e,t,n){this.s.enable=e,this.s.enableType=n,(t||t===void 0)&&(this._positions(),this._scroll(!0))},enabled:function(){return this.s.enable},headerOffset:function(e){return e!==void 0&&(this.c.headerOffset=e,this.update()),this.c.headerOffset},footerOffset:function(e){return e!==void 0&&(this.c.footerOffset=e,this.update()),this.c.footerOffset},update:function(e){var t=this.s.dt.table().node();!this.s.enable&&!this.s.autoDisable||(Q(t).is(":visible")?(this.s.autoDisable=!1,this.enable(!0,!1)):(this.s.autoDisable=!0,this.enable(!1,!1)),Q(t).children("thead").length!==0&&(this._positions(),this._scroll(e!==void 0?e:!0),this._widths(this.dom.header),this._widths(this.dom.footer)))},_constructor:function(){var e=this,t=this.s.dt;Q(window).on("scroll"+this.s.namespace,function(){e._scroll()}).on("resize"+this.s.namespace,k.util.throttle(function(){e.s.position.windowHeight=Q(window).height(),e.update()},50));var n=Q(".fh-fixedHeader");!this.c.headerOffset&&n.length&&(this.c.headerOffset=n.outerHeight());var r=Q(".fh-fixedFooter");!this.c.footerOffset&&r.length&&(this.c.footerOffset=r.outerHeight()),t.on("column-reorder.dt.dtfc column-visibility.dt.dtfc column-sizing.dt.dtfc responsive-display.dt.dtfc",function(s,i){e.update()}).on("draw.dt.dtfc",function(s,i){e.update(i!==t.settings()[0])}),t.on("destroy.dtfc",function(){e.destroy()}),this._positions(),this._scroll()},_clone:function(e,t){var n=this,r=this.s.dt,s=this.dom[e],i=e==="header"?this.dom.thead:this.dom.tfoot;if(!(e==="footer"&&this._scrollEnabled()))if(!t&&s.floating)s.floating.removeClass("fixedHeader-floating fixedHeader-locked");else{s.floating&&(s.placeholder!==null&&s.placeholder.detach(),s.floating.detach());var a=Q(r.table().node()),l=Q(a.parent()),u=this._scrollEnabled();s.floating=Q(r.table().node().cloneNode(!1)).attr("aria-hidden","true").css({top:0,left:0}).removeAttr("id"),s.floatingParent.css({width:l[0].offsetWidth,position:"fixed",left:u?a.offset().left+l.scrollLeft():0}).css(e==="header"?{top:this.c.headerOffset,bottom:""}:{top:"",bottom:this.c.footerOffset}).addClass(e==="footer"?"dtfh-floatingparent-foot":"dtfh-floatingparent-head").appendTo("body").children().eq(0),s.limiter.css({width:"100%",overflow:"hidden",height:"fit-content"}),s.scrollAdjust.append(s.floating),this._stickyPosition(s.floating,"-");var h=function(){var b=l.scrollLeft();n.s.scrollLeft={footer:b,header:b},s.limiter.scrollLeft(n.s.scrollLeft.header)};h(),l.off("scroll.dtfh").on("scroll.dtfh",h),s.scrollAdjust.css({width:"fit-content",paddingRight:n.s.dt.settings()[0].oBrowser.barWidth});let f=Q(e==="footer"?"div.dtfc-bottom-blocker":"div.dtfc-top-blocker",r.table().container());return f.length&&f.clone().appendTo(s.floatingParent).css({position:"fixed",right:f.width()}),s.placeholder=i.clone(!1),s.placeholder.find("*[id]").removeAttr("id"),s.host.prepend(s.placeholder),s.floating.append(i),this._widths(s),h}},_stickyPosition:function(e,t){if(this._scrollEnabled()){var n=this,r=Q(n.s.dt.table().node()).css("direction")==="rtl";e.find("th").each(function(){if(Q(this).css("position")==="sticky"){var s=Q(this).css("right"),i=Q(this).css("left"),a;s!=="auto"&&!r?(a=+s.replace(/px/g,""),Q(this).css("right",a>0?a:0)):i!=="auto"&&r&&(a=+i.replace(/px/g,""),Q(this).css("left",a>0?a:0))}})}},_horizontal:function(e,t){var n=this.dom[e],r=this.s.scrollLeft;if(n.floating&&r[e]!==t){if(this._scrollEnabled()){var s=Q(Q(this.s.dt.table().node()).parent()).scrollLeft();n.floating.scrollLeft(s),n.floatingParent.scrollLeft(s)}r[e]=t}},_modeChange:function(e,t,n){var r=this.s.dt,s=this.dom[t],i=this.s.position,a=this._scrollEnabled();if(!(t==="footer"&&a)){var l=function(_){s.floating[0].style.setProperty("width",_+"px","important"),a||s.floatingParent[0].style.setProperty("width",_+"px","important")},u=this.dom[t==="footer"?"tfoot":"thead"],h=Q.contains(u[0],document.activeElement)?document.activeElement:null,f=Q(Q(this.s.dt.table().node()).parent());if(e==="in-place")s.placeholder&&(s.placeholder.remove(),s.placeholder=null),Q.contains(s.host[0],u[0])||(t==="header"?s.host.prepend(u):s.host.append(u)),s.floating&&(s.floating.remove(),s.floating=null,this._stickyPosition(s.host,"+")),s.floatingParent&&(s.floatingParent.find("div.dtfc-top-blocker").remove(),s.floatingParent.remove()),Q(Q(s.host.parent()).parent()).scrollLeft(f.scrollLeft());else if(e==="in"){let _=this._clone(t,n);var b=f.offset(),v=Q(document).scrollTop(),m=Q(window).height(),C=v+m,w=a?b.top:i.tbodyTop,c=a?b.top+f.outerHeight():i.tfootTop,o;t==="footer"?o=w>C?i.tfootHeight:w+i.tfootHeight-C:o=v+this.c.headerOffset+i.theadHeight-c;var d=t==="header"?"top":"bottom",p=this.c[t+"Offset"]-(o>0?o:0);s.floating.addClass("fixedHeader-floating"),s.floatingParent.css(d,p).css({left:i.left,"z-index":3}),l(i.width),_&&_(),t==="footer"&&s.floating.css("top","")}else e==="below"?(this._clone(t,n),s.floating.addClass("fixedHeader-locked"),s.floatingParent.css({position:"absolute",top:i.tfootTop-i.theadHeight,left:i.left+"px"}),l(i.width)):e==="above"&&(this._clone(t,n),s.floating.addClass("fixedHeader-locked"),s.floatingParent.css({position:"absolute",top:i.tbodyTop,left:i.left+"px"}),l(i.width));h&&h!==document.activeElement&&setTimeout(function(){h.focus()},10),this.s.scrollLeft.header=-1,this.s.scrollLeft.footer=-1,this.s[t+"Mode"]=e,r.trigger("fixedheader-mode",[e,t])}},_positions:function(){var e=this.s.dt,t=e.table(),n=this.s.position,r=this.dom,s=Q(t.node()),i=this._scrollEnabled(),a=Q(e.table().header()),l=Q(e.table().footer()),u=r.tbody,h=s.parent();n.visible=s.is(":visible"),n.width=s.outerWidth(),n.left=s.offset().left,n.theadTop=a.offset().top,n.tbodyTop=i?h.offset().top:u.offset().top,n.tbodyHeight=i?h.outerHeight():u.outerHeight(),n.theadHeight=a.outerHeight(),n.theadBottom=n.theadTop+n.theadHeight,n.tfootTop=n.tbodyTop+n.tbodyHeight,l.length?(n.tfootBottom=n.tfootTop+l.outerHeight(),n.tfootHeight=l.outerHeight()):(n.tfootBottom=n.tfootTop,n.tfootHeight=0)},_scroll:function(e){if(!this.s.dt.settings()[0].bDestroying){var t=this._scrollEnabled(),n=Q(this.s.dt.table().node()).parent(),r=n.offset(),s=n.outerHeight(),i=Q(document).scrollLeft(),a=Q(document).scrollTop(),l=Q(window).height(),u=l+a,h=this.s.position,f,b,v=t?r.top:h.tbodyTop,m=t?r.left:h.left,C=t?r.top+s:h.tfootTop,w=t?n.outerWidth():h.tbodyWidth;if(this.c.header){if(!this.s.enable)f="in-place";else if(!h.visible||a+this.c.headerOffset+h.theadHeight<=v)f="in-place";else if(a+this.c.headerOffset+h.theadHeight>v&&a+this.c.headerOffset+h.theadHeight<C)if(f="in",a+this.c.headerOffset+h.theadHeight>C||this.dom.header.floatingParent===void 0)e=!0;else{var c=this.dom.header.floatingParent.css({top:this.c.headerOffset,position:"fixed"}).children().eq(0);c.find(this.dom.header.floating).length===0&&c.append(this.dom.header.floating)}else f="below";(e||f!==this.s.headerMode)&&this._modeChange(f,"header",e),this._horizontal("header",i)}var o={offset:{top:0,left:0},height:0},d={offset:{top:0,left:0},height:0};if(this.c.footer&&this.dom.tfoot.length&&this.dom.tfoot.find("th, td").length){this.s.enable?!h.visible||h.tfootBottom+this.c.footerOffset<=u?b="in-place":C+h.tfootHeight+this.c.footerOffset>u&&v+this.c.footerOffset<u?(b="in",e=!0):b="above":b="in-place",(e||b!==this.s.footerMode)&&this._modeChange(b,"footer",e),this._horizontal("footer",i);var p=function(I){return{offset:I.offset(),height:I.outerHeight()}};if(o=this.dom.header.floating?p(this.dom.header.floating):p(this.dom.thead),d=this.dom.footer.floating?p(this.dom.footer.floating):p(this.dom.tfoot),t&&d.offset.top>a){var _=a-r.top,x=u+(_>-o.height?_:0)-(o.offset.top+(_<-o.height?o.height:0)+d.height);x<0&&(x=0),n.outerHeight(x),Math.round(n.outerHeight())>=Math.round(x)?Q(this.dom.tfoot.parent()).addClass("fixedHeader-floating"):Q(this.dom.tfoot.parent()).removeClass("fixedHeader-floating")}}if(this.dom.header.floating&&this.dom.header.floatingParent.css("left",m-i),this.dom.footer.floating&&this.dom.footer.floatingParent.css("left",m-i),this.s.dt.settings()[0]._fixedColumns!==void 0){var P=function(I,B,E){if(E===void 0){var F=Q("div.dtfc-"+I+"-"+B+"-blocker");E=F.length===0?null:F.clone().css("z-index",1)}return E!==null&&(f==="in"||f==="below"?E.appendTo("body").css({top:B==="top"?o.offset.top:d.offset.top,left:I==="right"?m+w-E.width():m}):E.detach()),E};this.dom.header.rightBlocker=P("right","top",this.dom.header.rightBlocker),this.dom.header.leftBlocker=P("left","top",this.dom.header.leftBlocker),this.dom.footer.rightBlocker=P("right","bottom",this.dom.footer.rightBlocker),this.dom.footer.leftBlocker=P("left","bottom",this.dom.footer.leftBlocker)}}},_scrollEnabled:function(){var e=this.s.dt.settings()[0].oScroll;return e.sY!==""||e.sX!==""},_widths:function(e){if(!(!e||!e.placeholder)){var t=Q(this.s.dt.table().node()),n=Q(t.parent());e.floatingParent.css("width",n[0].offsetWidth),e.floating.css("width",t[0].offsetWidth),Q("colgroup",e.floating).remove();for(var r=e.placeholder.parent().find("colgroup").clone().appendTo(e.floating).find("col"),s=this.s.dt.columns(":visible").widths(),i=0;i<s.length;i++)r.eq(i).css("width",s[i])}}});et.version="4.0.5";et.defaults={header:!0,footer:!1,headerOffset:0,footerOffset:0};Q.fn.dataTable.FixedHeader=et;Q.fn.DataTable.FixedHeader=et;Q(document).on("init.dt.dtfh",function(e,t,n){if(e.namespace==="dt"){var r=t.oInit.fixedHeader,s=k.defaults.fixedHeader;if((r||s)&&!t._fixedHeader){var i=Q.extend({},s,r);r!==!1&&new et(t,i)}}});k.Api.register("fixedHeader()",function(){});k.Api.register("fixedHeader.adjust()",function(){return this.iterator("table",function(e){var t=e._fixedHeader;t&&t.update()})});k.Api.register("fixedHeader.enable()",function(e){return this.iterator("table",function(t){var n=t._fixedHeader;e=e!==void 0?e:!0,n&&e!==n.enabled()&&n.enable(e)})});k.Api.register("fixedHeader.enabled()",function(){if(this.context.length){var e=this.context[0]._fixedHeader;if(e)return e.enabled()}return!1});k.Api.register("fixedHeader.disable()",function(){return this.iterator("table",function(e){var t=e._fixedHeader;t&&t.enabled()&&t.enable(!1)})});Q.each(["header","footer"],function(e,t){k.Api.register("fixedHeader."+t+"Offset()",function(n){var r=this.context;return n===void 0?r.length&&r[0]._fixedHeader?r[0]._fixedHeader[t+"Offset"]():void 0:this.iterator("table",function(s){var i=s._fixedHeader;i&&i[t+"Offset"](n)})})});var Mi=oe(ae("jquery"),1);var hs=oe(ae("jquery"),1);var ne=hs.default,Vi=0,Hi=0,dt=function(e,t){if(!k.versionCheck||!k.versionCheck("1.10.8"))throw"KeyTable requires DataTables 1.10.8 or newer";this.c=ne.extend(!0,{},k.defaults.keyTable,dt.defaults,t),this.s={dt:new k.Api(e),dtDrawing:!1,enable:!0,focusDraw:!1,waitingForDraw:!1,lastFocus:null,namespace:".keyTable-"+Vi++,tabInput:null},this.dom={};var n=this.s.dt.settings()[0],r=n.keytable;if(r)return r;n.keytable=this,this._constructor()};ne.extend(dt.prototype,{blur:function(){this._blur()},enable:function(e){this.s.enable=e},enabled:function(){return this.s.enable},focus:function(e,t){this._focus(this.s.dt.cell(e,t))},focused:function(e){var t=this.s.lastFocus;if(!t)return!1;var n=this.s.lastFocus.cell.index();return e.row===n.row&&e.column===n.column},_constructor:function(){this._tabInput();var e=this,t=this.s.dt,n=ne(t.table().node()),r=this.s.namespace,s=!1;if(n.css("position")==="static"&&n.css("position","relative"),ne(t.table().body()).on("click"+r,"th, td",function(l){if(e.s.enable!==!1){var u=t.cell(this);u.any()&&e._focus(u,null,!1,l)}}),ne(document).on("keydown"+r,function(l){!s&&!e.s.dtDrawing?e._key(l):l.preventDefault()}),this.c.blurable&&ne(document).on("mousedown"+r,function(l){ne(l.target).parents(".dataTables_filter, .dt-search").length&&e._blur(),!ne(l.target).parents().filter(t.table().container()).length&&(ne(l.target).parents("div.DTE").length||ne(l.target).parents("div.editor-datetime").length||ne(l.target).parents("div.dt-datetime").length||ne(l.target).parents().filter(".DTFC_Cloned").length||e._blur())}),this.c.editor){var i=this.c.editor;i.on("open.keyTableMain",function(l,u,h){u!=="inline"&&e.s.enable&&(e.enable(!1),i.one("close"+r,function(){e.enable(!0)}))}),this.c.editOnFocus&&t.on("key-focus"+r+" key-refocus"+r,function(l,u,h,f){e._editor(null,f,!0)}),t.on("key"+r,function(l,u,h,f,b){e._editor(h,b,!1)}),ne(t.table().body()).on("dblclick"+r,"th, td",function(l){if(e.s.enable!==!1){var u=t.cell(this);u.any()&&(e.s.lastFocus&&this!==e.s.lastFocus.cell.node()||e._editor(null,l,!0))}}),i.on("preSubmit",function(){s=!0}).on("preSubmitCancelled",function(){s=!1}).on("submitComplete",function(){s=!1})}t.on("stateSaveParams"+r,function(l,u,h){h.keyTable=e.s.lastFocus?e.s.lastFocus.cell.index():null}),t.on("column-visibility"+r,function(l){e._tabInput()}),t.on("column-reorder"+r,function(l,u,h){var f=e.s.lastFocus;if(f&&f.cell){var b=f.relative.column;f.cell[0][0].column=h.mapping.indexOf(b),f.relative.column=h.mapping.indexOf(b)}}),t.on("preDraw"+r+" scroller-will-draw"+r,function(l){e.s.dtDrawing=!0}),t.on("draw"+r,function(l){if(e.s.dtDrawing=!1,e._tabInput(),!e.s.focusDraw){var u=e.s.lastFocus;if(u){var h=e.s.lastFocus.relative,f=t.page.info(),b=h.row;if(f.recordsDisplay===0||b<f.start||b>f.start+f.length)return;b>=f.recordsDisplay&&(b=f.recordsDisplay-1),e._focus(b,h.column,!0,l)}}}),this.c.clipboard&&this._clipboard(),t.on("destroy"+r,function(){e._blur(!0),t.off(r),ne(t.table().body()).off("click"+r,"th, td").off("dblclick"+r,"th, td"),ne(document).off("mousedown"+r).off("keydown"+r).off("copy"+r).off("paste"+r)});var a=t.state.loaded();a&&a.keyTable?t.one("init",function(){var l=t.cell(a.keyTable);l.any()&&l.focus()}):this.c.focus&&t.cell(this.c.focus).focus()},_blur:function(e){if(!(!this.s.enable||!this.s.lastFocus)){var t=this.s.lastFocus.cell;ne(t.node()).removeClass(this.c.className),this.s.lastFocus=null,e||(this._updateFixedColumns(t.index().column),this._emitEvent("key-blur",[this.s.dt,t]))}},_clipboard:function(){var e=this.s.dt,t=this,n=this.s.namespace,r=this.c.clipboard;window.getSelection&&((r===!0||r.copy)&&ne(document).on("copy"+n,function(s){var i=s.originalEvent,a=window.getSelection().toString(),l=t.s.lastFocus;!a&&l&&(i.clipboardData.setData("text/plain",l.cell.render(t.c.clipboardOrthogonal)),i.preventDefault())}),(r===!0||r.paste)&&ne(document).on("paste"+n,function(s){var i=s.originalEvent,a=t.s.lastFocus,l=document.activeElement,u=t.c.editor,h;if(a&&(!l||l.nodeName.toLowerCase()==="body"))if(i.preventDefault(),window.clipboardData&&window.clipboardData.getData?h=window.clipboardData.getData("Text"):i.clipboardData&&i.clipboardData.getData&&(h=i.clipboardData.getData("text/plain")),u){var f=t._inlineOptions(a.cell.index());u.inline(f.cell,f.field,f.options).set(u.displayed()[0],h).submit()}else a.cell.data(h),e.draw(!1)}))},_columns:function(){var e=this.s.dt,t=e.columns(this.c.columns).indexes(),n=[];return e.columns(":visible").every(function(r){t.indexOf(r)!==-1&&n.push(r)}),n},_editor:function(e,t,n){if(this.s.lastFocus&&!(t&&t.type==="draw")){var r=this,s=this.s.dt,i=this.c.editor,a=this.s.lastFocus.cell,l=this.s.namespace+"e"+Hi++;if(!ne("div.DTE",a.node()).length&&!(e!==null&&(e>=0&&e<=9||e===11||e===12||e>=14&&e<=31||e>=112&&e<=123||e>=127&&e<=159))){t&&(t.stopPropagation(),e===13&&t.preventDefault());var u=function(){var h=r._inlineOptions(a.index());i.one("open"+l,function(){i.off("cancelOpen"+l),n||ne("div.DTE_Field_InputControl input, div.DTE_Field_InputControl textarea").select(),s.keys.enable(n?"tab-only":"navigation-only"),s.on("key-blur.editor",function(f,b,v){i.s.editOpts.onBlur!=="submit"&&i.displayed()&&v.node()===a.node()&&i.submit()}),n&&ne(s.table().container()).addClass("dtk-focus-alt"),i.on("preSubmitCancelled"+l,function(){setTimeout(function(){r._focus(a,null,!1)},50)}),i.on("submitUnsuccessful"+l,function(){r._focus(a,null,!1)}),i.one("close"+l,function(){s.keys.enable(!0),s.off("key-blur.editor"),i.off(l),ne(s.table().container()).removeClass("dtk-focus-alt"),r.s.returnSubmit&&(r.s.returnSubmit=!1,r._emitEvent("key-return-submit",[s,a]))})}).one("cancelOpen"+l,function(){i.off(l)}).inline(h.cell,h.field,h.options)};e===13?(n=!0,ne(document).one("keyup",function(){u()})):u()}}},_inlineOptions:function(e){return this.c.editorOptions?this.c.editorOptions(e):{cell:e,field:void 0,options:void 0}},_emitEvent:function(e,t){return this.s.dt.iterator("table",function(n,r){return ne(n.nTable).triggerHandler(e,t)})},_focus:function(e,t,n,r){var s=this,i=this.s.dt,a=i.page.info(),l=this.s.lastFocus;if(r||(r=null),!!this.s.enable){if(typeof e!="number"){if(!e.any())return;var u=e.index();if(t=u.column,e=i.rows({filter:"applied",order:"applied"}).indexes().indexOf(u.row),e<0)return;a.serverSide&&(e+=a.start)}if(a.length!==-1&&(e<a.start||e>=a.start+a.length)){this.s.focusDraw=!0,this.s.waitingForDraw=!0,i.one("draw",function(){s.s.focusDraw=!1,s.s.waitingForDraw=!1,s._focus(e,t,void 0,r)}).page(Math.floor(e/a.length)).draw(!1);return}if(ne.inArray(t,this._columns())!==-1){a.serverSide&&(e-=a.start);var h=i.cells(null,t,{search:"applied",order:"applied"}).flatten(),f=i.cell(h[e]),b=this._emitEvent("key-prefocus",[this.s.dt,f,r||null]);if(b.indexOf(!1)===-1){if(l){if(l.node===f.node()){this._emitEvent("key-refocus",[this.s.dt,f,r||null]);return}this._blur()}this._removeOtherFocus();var v=ne(f.node());if(v.addClass(this.c.className),this._updateFixedColumns(t),n===void 0||n===!0){this._scroll(ne(window),ne(document.body),v,"offset");var m=i.table().body().parentNode;if(m!==i.table().header().parentNode){var C=ne(m.parentNode);this._scroll(C,C,v,"position")}}var w=i.page.info();this.s.lastFocus={cell:f,node:f.node(),relative:{row:w.start+i.rows({page:"current"}).indexes().indexOf(f.index().row),column:f.index().column}},this._emitEvent("key-focus",[this.s.dt,f,r||null]),i.state.save()}}}},_key:function(e){if(this.s.waitingForDraw){e.preventDefault();return}if(!ne(e.target).closest(".dte-inlineAdd").length){var t=this.s.enable;this.s.returnSubmit=(t==="navigation-only"||t==="tab-only")&&e.keyCode===13;var n=t===!0||t==="navigation-only";if(t&&!((e.keyCode===0||e.ctrlKey||e.metaKey||e.altKey)&&!(e.ctrlKey&&e.altKey))){var r=this.s.lastFocus;if(r){if(!this.s.dt.cell(r.node).any()){this.s.lastFocus=null;return}var s=this,i=this.s.dt,a=!!this.s.dt.settings()[0].oScroll.sY;if(!(this.c.keys&&ne.inArray(e.keyCode,this.c.keys)===-1))switch(e.keyCode){case 9:e.preventDefault(),this._keyAction(function(){s._shift(e,e.shiftKey?"left":"right",!0)});break;case 27:if(ne(r.node).find("div.DTE").length)return;this.c.blurable&&t===!0&&this._blur();break;case 33:case 34:n&&!a&&(e.preventDefault(),this._keyAction(function(){i.page(e.keyCode===33?"previous":"next").draw(!1)}));break;case 35:case 36:n&&(e.preventDefault(),this._keyAction(function(){var l=i.cells({page:"current"}).indexes(),u=s._columns();s._focus(i.cell(l[e.keyCode===35?l.length-1:u[0]]),null,!0,e)}));break;case 37:n&&this._keyAction(function(){s._shift(e,"left")});break;case 38:n&&this._keyAction(function(){s._shift(e,"up")});break;case 39:n&&this._keyAction(function(){s._shift(e,"right")});break;case 40:n&&this._keyAction(function(){s._shift(e,"down")});break;case 113:if(this.c.editor){this._editor(null,e,!0);break}default:t===!0&&this._emitEvent("key",[i,e.keyCode,this.s.lastFocus.cell,e]);break}}}}},_keyAction:function(e){var t=this.c.editor;t&&t.mode()&&t.display()?t.submit(e):e()},_removeOtherFocus:function(){var e=this.s.dt.table().node();ne.fn.dataTable.tables({api:!0}).iterator("table",function(t){this.table().node()!==e&&this.cell.blur()})},_scroll:function(e,t,n,r){var s=n[r](),i=n.outerHeight(),a=n.outerWidth(),l=t.scrollTop(),u=t.scrollLeft(),h=e.height(),f=e.width();r==="position"&&(s.top+=parseInt(n.closest("table").css("top"),10)),s.top<l&&s.top+i>l-5&&t.scrollTop(s.top),s.left<u&&t.scrollLeft(s.left),s.top+i>l+h&&s.top<l+h+5&&i<h&&t.scrollTop(s.top+i-h),s.left+a>u+f&&a<f&&t.scrollLeft(s.left+a-f)},_shift:function(e,t,n){var r=this.s.dt,s=r.page.info(),i=s.recordsDisplay,a=this._columns(),l=this.s.lastFocus;if(l){var u=l.cell;if(u){var h=r.rows({filter:"applied",order:"applied"}).indexes().indexOf(u.index().row);s.serverSide&&(h+=s.start);var f=r.columns(a).indexes().indexOf(u.index().column),b=h,v=a[f];ne(r.table().node()).css("direction")==="rtl"&&(t==="right"?t="left":t==="left"&&(t="right")),t==="right"?f>=a.length-1?(b++,v=a[0]):v=a[f+1]:t==="left"?f===0?(b--,v=a[a.length-1]):v=a[f-1]:t==="up"?b--:t==="down"&&b++,b>=0&&b<i&&ne.inArray(v,a)!==-1?(e&&e.preventDefault(),this._focus(b,v,!0,e)):!n||!this.c.blurable?e&&e.preventDefault():this._blur()}}},_tabInput:function(){var e=this,t=this.s.dt,n=this.c.tabIndex!==null?this.c.tabIndex:t.settings()[0].iTabIndex;if(n!=-1){if(!this.s.tabInput){var r="keytable-focus-capture-"+this.s.namespace.split("-")[1],s='<input id="'+r+'" type="text" tabindex="'+n+'"/>',i=ne('<div><label for="'+r+'">'+s+"</label></div>").css({position:"absolute",height:1,width:0,overflow:"hidden"});i.find("input").on("focus",function(l){var u=t.cell(":eq(0)",e._columns(),{page:"current"});u.any()&&e._focus(u,null,!0,l)}),this.s.tabInput=i}var a=this.s.dt.cell(":eq(0)","0:visible",{page:"current",order:"current"}).node();a&&ne(a).prepend(this.s.tabInput)}},_updateFixedColumns:function(e){var t=this.s.dt,n=t.settings()[0];if(n._oFixedColumns){var r=n._oFixedColumns.s.iLeftColumns,s=n.aoColumns.length-n._oFixedColumns.s.iRightColumns;(e<r||e>=s)&&t.fixedColumns().update()}}});dt.defaults={blurable:!0,className:"focus",clipboard:!0,clipboardOrthogonal:"display",columns:"",editor:null,editOnFocus:!1,editorOptions:null,focus:null,keys:null,tabIndex:null};dt.version="2.12.2";ne.fn.dataTable.KeyTable=dt;ne.fn.DataTable.KeyTable=dt;k.Api.register("cell.blur()",function(){return this.iterator("table",function(e){e.keytable&&e.keytable.blur()})});k.Api.register("cell().focus()",function(){return this.iterator("cell",function(e,t,n){e.keytable&&e.keytable.focus(t,n)})});k.Api.register("keys.disable()",function(){return this.iterator("table",function(e){e.keytable&&e.keytable.enable(!1)})});k.Api.register("keys.enable()",function(e){return this.iterator("table",function(t){t.keytable&&t.keytable.enable(e===void 0?!0:e)})});k.Api.register("keys.enabled()",function(e){var t=this.context;return t.length&&t[0].keytable?t[0].keytable.enabled():!1});k.Api.register("keys.move()",function(e){return this.iterator("table",function(t){t.keytable&&t.keytable._shift(null,e,!1)})});k.ext.selector.cell.push(function(e,t,n){var r=t.focused,s=e.keytable,i=[];if(!s||r===void 0)return n;for(var a=0,l=n.length;a<l;a++)(r===!0&&s.focused(n[a])||r===!1&&!s.focused(n[a]))&&i.push(n[a]);return i});ne(document).on("preInit.dt.dtk",function(e,t,n){if(e.namespace==="dt"){var r=t.oInit.keys,s=k.defaults.keys;if(r||s){var i=ne.extend({},s,r);r!==!1&&new dt(t,i)}}});var Wi=oe(ae("jquery"),1);var ps=oe(ae("jquery"),1);var G=ps.default,Ce=function(e,t){if(!k.versionCheck||!k.versionCheck("2"))throw"DataTables Responsive requires DataTables 2 or newer";this.s={childNodeStore:{},columns:[],current:[],dt:new k.Api(e)},!this.s.dt.settings()[0].responsive&&(t&&typeof t.details=="string"?t.details={type:t.details}:t&&t.details===!1?t.details={type:!1}:t&&t.details===!0&&(t.details={type:"inline"}),this.c=G.extend(!0,{},Ce.defaults,k.defaults.responsive,t),e.responsive=this,this._constructor())};G.extend(Ce.prototype,{_constructor:function(){var e=this,t=this.s.dt,n=G(window).innerWidth();t.settings()[0]._responsive=this,G(window).on("orientationchange.dtr",k.util.throttle(function(){var s=G(window).innerWidth();s!==n&&(e._resize(),n=s)})),t.on("row-created.dtr",function(s,i,a,l){G.inArray(!1,e.s.current)!==-1&&G(">td, >th",i).each(function(u){var h=t.column.index("toData",u);e.s.current[h]===!1&&G(this).css("display","none").addClass("dtr-hidden")})}),t.on("destroy.dtr",function(){t.off(".dtr"),G(t.table().body()).off(".dtr"),G(window).off("resize.dtr orientationchange.dtr"),t.cells(".dtr-control").nodes().to$().removeClass("dtr-control"),G(t.table().node()).removeClass("dtr-inline collapsed"),G.each(e.s.current,function(s,i){i===!1&&e._setColumnVis(s,!0)})}),this.c.breakpoints.sort(function(s,i){return s.width<i.width?1:s.width>i.width?-1:0}),this._classLogic();var r=this.c.details;r.type!==!1&&(e._detailsInit(),t.on("column-visibility.dtr",function(){e._timer&&clearTimeout(e._timer),e._timer=setTimeout(function(){e._timer=null,e._classLogic(),e._resizeAuto(),e._resize(!0),e._redrawChildren()},100)}),t.on("draw.dtr",function(){e._redrawChildren()}),G(t.table().node()).addClass("dtr-"+r.type)),t.on("column-calc.dt",function(s,i){for(var a=e.s.current,l=0;l<a.length;l++){var u=i.visible.indexOf(l);a[l]===!1&&u>=0&&i.visible.splice(u,1)}}),t.on("preXhr.dtr",function(){var s=[];t.rows().every(function(){this.child.isShown()&&s.push(this.id(!0))}),t.one("draw.dtr",function(){e._resizeAuto(),e._resize(),t.rows(s).every(function(){e._detailsDisplay(this,!1)})})}),t.on("draw.dtr",function(){t.page.info().serverSide&&(e.s.childNodeStore={}),e._controlClass()}).ready(function(){e._resizeAuto(),e._resize(),t.on("column-sizing.dtr",function(){e._resizeAuto(),e._resize()})}),t.on("column-reorder.dtr",function(s,i,a){e._classLogic(),e._resizeAuto(),e._resize(!0)})},_colGroupAttach:function(e,t,n){var r=null;if(t[n].get(0).parentNode!==e[0]){for(var s=n+1;s<t.length;s++)if(e[0]===t[s].get(0).parentNode){r=s;break}r!==null?t[n].insertBefore(t[r][0]):e.append(t[n])}},_childNodes:function(e,t,n){var r=t+"-"+n;if(this.s.childNodeStore[r])return this.s.childNodeStore[r];for(var s=[],i=e.cell(t,n).node().childNodes,a=0,l=i.length;a<l;a++)s.push(i[a]);return this.s.childNodeStore[r]=s,s},_childNodesRestore:function(e,t,n){var r=t+"-"+n;if(this.s.childNodeStore[r]){var s=e.cell(t,n).node(),i=this.s.childNodeStore[r];if(i.length>0){for(var a=i[0].parentNode,l=a.childNodes,u=[],h=0,f=l.length;h<f;h++)u.push(l[h]);for(var b=0,v=u.length;b<v;b++)s.appendChild(u[b])}this.s.childNodeStore[r]=void 0}},_columnsVisibility:function(e){var t=this.s.dt,n=this.s.columns,r,s,i=n.map(function(w,c){return{columnIdx:c,priority:w.priority}}).sort(function(w,c){return w.priority!==c.priority?w.priority-c.priority:w.columnIdx-c.columnIdx}),a=G.map(n,function(w,c){return t.column(c).visible()===!1?"not-visible":w.auto&&w.minWidth===null?!1:w.auto===!0?"-":G.inArray(e,w.includeIn)!==-1}),l=0;for(r=0,s=a.length;r<s;r++)a[r]===!0&&(l+=n[r].minWidth);var u=t.settings()[0].oScroll,h=u.sY||u.sX?u.iBarWidth:0,f=t.table().container().offsetWidth-h,b=f-l;for(r=0,s=a.length;r<s;r++)n[r].control&&(b-=n[r].minWidth);var v=!1;for(r=0,s=i.length;r<s;r++){var m=i[r].columnIdx;a[m]==="-"&&!n[m].control&&n[m].minWidth&&(v||b-n[m].minWidth<0?(v=!0,a[m]=!1):a[m]=!0,b-=n[m].minWidth)}var C=!1;for(r=0,s=n.length;r<s;r++)if(!n[r].control&&!n[r].never&&a[r]===!1){C=!0;break}for(r=0,s=n.length;r<s;r++)n[r].control&&(a[r]=C),a[r]==="not-visible"&&(a[r]=!1);return G.inArray(!0,a)===-1&&(a[0]=!0),a},_classLogic:function(){var e=this,t=this.c.breakpoints,n=this.s.dt,r=n.columns().eq(0).map(function(a){var l=this.column(a),u=l.header().className,h=l.init().responsivePriority,f=l.header().getAttribute("data-priority");return h===void 0&&(h=f==null?1e4:f*1),{className:u,includeIn:[],auto:!1,control:!1,never:!!u.match(/\b(dtr\-)?never\b/),priority:h}}),s=function(a,l){var u=r[a].includeIn;G.inArray(l,u)===-1&&u.push(l)},i=function(a,l,u,h){var f,b,v;if(!u)r[a].includeIn.push(l);else if(u==="max-")for(f=e._find(l).width,b=0,v=t.length;b<v;b++)t[b].width<=f&&s(a,t[b].name);else if(u==="min-")for(f=e._find(l).width,b=0,v=t.length;b<v;b++)t[b].width>=f&&s(a,t[b].name);else if(u==="not-")for(b=0,v=t.length;b<v;b++)t[b].name.indexOf(h)===-1&&s(a,t[b].name)};r.each(function(a,l){for(var u=a.className.split(" "),h=!1,f=0,b=u.length;f<b;f++){var v=u[f].trim();if(v==="all"||v==="dtr-all"){h=!0,a.includeIn=G.map(t,function(m){return m.name});return}else if(v==="none"||v==="dtr-none"||a.never){h=!0;return}else if(v==="control"||v==="dtr-control"){h=!0,a.control=!0;return}G.each(t,function(m,C){var w=C.name.split("-"),c=new RegExp("(min\\-|max\\-|not\\-)?("+w[0]+")(\\-[_a-zA-Z0-9])?"),o=v.match(c);o&&(h=!0,o[2]===w[0]&&o[3]==="-"+w[1]?i(l,C.name,o[1],o[2]+o[3]):o[2]===w[0]&&!o[3]&&i(l,C.name,o[1],o[2]))})}h||(a.auto=!0)}),this.s.columns=r},_controlClass:function(){if(this.c.details.type==="inline"){var e=this.s.dt,t=this.s.current,n=G.inArray(!0,t);e.cells(null,function(r){return r!==n},{page:"current"}).nodes().to$().filter(".dtr-control").removeClass("dtr-control"),n>=0&&e.cells(null,n,{page:"current"}).nodes().to$().addClass("dtr-control")}this._tabIndexes()},_detailsDisplay:function(e,t){var n=this,r=this.s.dt,s=this.c.details,i=function(u){G(e.node()).toggleClass("dtr-expanded",u!==!1),G(r.table().node()).triggerHandler("responsive-display.dt",[r,e,u,t])};if(s&&s.type!==!1){var a=typeof s.renderer=="string"?Ce.renderer[s.renderer]():s.renderer,l=s.display(e,t,function(){return a.call(n,r,e[0][0],n._detailsObj(e[0]))},function(){i(!1)});typeof l=="boolean"&&i(l)}},_detailsInit:function(){var e=this,t=this.s.dt,n=this.c.details;n.type==="inline"&&(n.target="td.dtr-control, th.dtr-control"),G(t.table().body()).on("keyup.dtr","td, th",function(i){let a=document.activeElement.nodeName.toLowerCase();i.keyCode===13&&G(this).data("dtr-keyboard")&&(a==="td"||a==="th")&&G(this).click()});var r=n.target,s=typeof r=="string"?r:"td, th";(r!==void 0||r!==null)&&G(t.table().body()).on("click.dtr mousedown.dtr mouseup.dtr",s,function(i){if(G(t.table().node()).hasClass("collapsed")&&G.inArray(G(this).closest("tr").get(0),t.rows().nodes().toArray())!==-1){if(typeof r=="number"){var a=r<0?t.columns().eq(0).length+r:r;if(t.cell(this).index().column!==a)return}var l=t.row(G(this).closest("tr"));i.type==="click"?e._detailsDisplay(l,!1):i.type==="mousedown"?G(this).css("outline","none"):i.type==="mouseup"&&G(this).trigger("blur").css("outline","")}})},_detailsObj:function(e){var t=this,n=this.s.dt,r=[];let s=n.settings()[0];return G.map(this.s.columns,function(i,a){if(!(i.never||i.control)){var l=s.aoColumns[a];return r[a]||(r[a]=n.column(a)),{className:l.sClass,columnIndex:a,data:s.fastData(e,a,t.c.orthogonal),hidden:r[a].visible()&&!t.s.current[a],rowIndex:e,title:r[a].title()}}})},_find:function(e){for(var t=this.c.breakpoints,n=0,r=t.length;n<r;n++)if(t[n].name===e)return t[n]},_redrawChildren:function(){var e=this,t=this.s.dt;t.rows({page:"current"}).iterator("row",function(n,r){e._detailsDisplay(t.row(r),!0)})},_resize:function(e){var t=this,n=this.s.dt,r=G(window).innerWidth(),s=this.c.breakpoints,i=s[0].name,a=this.s.columns,l,u,h=this.s.current.slice();for(l=s.length-1;l>=0;l--)if(r<=s[l].width){i=s[l].name;break}var f=this._columnsVisibility(i);this.s.current=f;var b=!1;for(l=0,u=a.length;l<u;l++)if(f[l]===!1&&!a[l].never&&!a[l].control&&n.column(l).visible()){b=!0;break}G(n.table().node()).toggleClass("collapsed",b);var v=!1,m=0,C=n.settings()[0],w=G(n.table().node()).children("colgroup"),c=C.aoColumns.map(function(o){return o.colEl});n.columns().eq(0).each(function(o,d){n.column(o).visible()&&(f[d]===!0&&m++,(e||f[d]!==h[d])&&(v=!0,t._setColumnVis(o,f[d])),f[d]?t._colGroupAttach(w,c,d):c[d].detach())}),v&&(n.columns.adjust(),this._redrawChildren(),G(n.table().node()).trigger("responsive-resize.dt",[n,this._responsiveOnlyHidden()]),n.page.info().recordsDisplay===0&&G("td",n.table().body()).eq(0).attr("colspan",m)),t._controlClass()},_resizeAuto:function(){var e=this.s.dt,t=this.s.columns,n=this,r=e.columns().indexes().filter(function(b){return e.column(b).visible()});if(this.c.auto&&G.inArray(!0,G.map(t,function(b){return b.auto}))!==-1){var s=e.table().node().cloneNode(!1),i=G(e.table().header().cloneNode(!1)).appendTo(s),a=G(e.table().footer().cloneNode(!1)).appendTo(s),l=G(e.table().body()).clone(!1,!1).empty().appendTo(s);s.style.width="auto",e.table().header.structure(r).forEach(b=>{var v=b.filter(function(m){return!!m}).map(function(m){return G(m.cell).clone(!1).css("display","table-cell").css("width","auto").css("min-width",0)});G("<tr/>").append(v).appendTo(i)});for(var u=G("<tr/>").appendTo(l),h=0;h<r.count();h++)u.append("<td/>");this.c.details.renderer._responsiveMovesNodes?e.rows({page:"current"}).every(function(b){var v=this.node();if(v){var m=v.cloneNode(!1);e.cells(b,r).every(function(C,w){var c=n.s.childNodeStore[b+"-"+w];c?G(this.node().cloneNode(!1)).append(G(c).clone()).appendTo(m):G(this.node()).clone(!1).appendTo(m)}),l.append(m)}}):G(l).append(G(e.rows({page:"current"}).nodes()).clone(!1)).find("th, td").css("display",""),l.find("th, td").css("display",""),e.table().footer.structure(r).forEach(b=>{var v=b.filter(function(m){return!!m}).map(function(m){return G(m.cell).clone(!1).css("display","table-cell").css("width","auto").css("min-width",0)});G("<tr/>").append(v).appendTo(a)}),this.c.details.type==="inline"&&G(s).addClass("dtr-inline collapsed"),G(s).find("[name]").removeAttr("name"),G(s).css("position","relative");var f=G("<div/>").css({width:1,height:1,overflow:"hidden",clear:"both"}).append(s);f.insertBefore(e.table().node()),u.children().each(function(b){var v=e.column.index("fromVisible",b);t[v].minWidth=this.offsetWidth||0}),f.remove()}},_responsiveOnlyHidden:function(){var e=this.s.dt;return G.map(this.s.current,function(t,n){return e.column(n).visible()===!1?!0:t})},_setColumnVis:function(e,t){var n=this,r=this.s.dt,s=t?"":"none";this._setHeaderVis(e,t,r.table().header.structure()),this._setHeaderVis(e,t,r.table().footer.structure()),r.column(e).nodes().to$().css("display",s).toggleClass("dtr-hidden",!t),G.isEmptyObject(this.s.childNodeStore)||r.cells(null,e).indexes().each(function(i){n._childNodesRestore(r,i.row,i.column)})},_setHeaderVis:function(e,t,n){var r=this,s=t?"":"none";n.forEach(function(i,a){for(var l=0;l<i.length;l++)if(i[l]&&i[l].rowspan>1)for(var u=i[l].rowspan,h=1;h<u;h++)n[a+h][l]={}}),n.forEach(function(i){if(i[e]&&i[e].cell)G(i[e].cell).css("display",s).toggleClass("dtr-hidden",!t);else for(var a=e;a>=0;){if(i[a]&&i[a].cell){i[a].cell.colSpan=r._colspan(i,a);break}a--}})},_colspan:function(e,t){for(var n=1,r=t+1;r<e.length;r++)if(e[r]===null&&this.s.current[r])n++;else if(e[r])break;return n},_tabIndexes:function(){var e=this.s.dt,t=e.cells({page:"current"}).nodes().to$(),n=e.settings()[0],r=this.c.details.target;if(t.filter("[data-dtr-keyboard]").removeData("[data-dtr-keyboard]"),typeof r=="number")e.cells(null,r,{page:"current"}).nodes().to$().attr("tabIndex",n.iTabIndex).data("dtr-keyboard",1);else{r==="td:first-child, th:first-child"&&(r=">td:first-child, >th:first-child");var s=e.rows({page:"current"}).nodes(),i=r==="tr"?G(s):G(r,s);i.attr("tabIndex",n.iTabIndex).data("dtr-keyboard",1)}}});Ce.breakpoints=[{name:"desktop",width:1/0},{name:"tablet-l",width:1024},{name:"tablet-p",width:768},{name:"mobile-l",width:480},{name:"mobile-p",width:320}];Ce.display={childRow:function(e,t,n){var r=G(e.node());if(t){if(r.hasClass("dtr-expanded"))return e.child(n(),"child").show(),!0}else{if(r.hasClass("dtr-expanded"))return e.child(!1),!1;var s=n();return s===!1?!1:(e.child(s,"child").show(),!0)}},childRowImmediate:function(e,t,n){var r=G(e.node());if(!t&&r.hasClass("dtr-expanded")||!e.responsive.hasHidden())return e.child(!1),!1;var s=n();return s===!1?!1:(e.child(s,"child").show(),!0)},modal:function(e){return function(t,n,r,s){var i,a=r();if(a===!1)return!1;if(n)if(i=G("div.dtr-modal-content"),i.length&&t.index()===i.data("dtr-row-idx"))i.empty().append(a);else return null;else{var l=function(){i.remove(),G(document).off("keypress.dtr"),G(t.node()).removeClass("dtr-expanded"),s()};i=G('<div class="dtr-modal"/>').append(G('<div class="dtr-modal-display"/>').append(G('<div class="dtr-modal-content"/>').data("dtr-row-idx",t.index()).append(a)).append(G('<div class="dtr-modal-close">&times;</div>').click(function(){l()}))).append(G('<div class="dtr-modal-background"/>').click(function(){l()})).appendTo("body"),G(t.node()).addClass("dtr-expanded"),G(document).on("keyup.dtr",function(u){u.keyCode===27&&(u.stopPropagation(),l())})}return e&&e.header&&G("div.dtr-modal-content").prepend("<h2>"+e.header(t)+"</h2>"),!0}}};Ce.renderer={listHiddenNodes:function(){var e=function(t,n,r){var s=this,i=G('<ul data-dtr-index="'+n+'" class="dtr-details"/>'),a=!1;return G.each(r,function(l,u){if(u.hidden){var h=u.className?'class="'+u.className+'"':"";G("<li "+h+' data-dtr-index="'+u.columnIndex+'" data-dt-row="'+u.rowIndex+'" data-dt-column="'+u.columnIndex+'"><span class="dtr-title">'+u.title+"</span> </li>").append(G('<span class="dtr-data"/>').append(s._childNodes(t,u.rowIndex,u.columnIndex))).appendTo(i),a=!0}}),a?i:!1};return e._responsiveMovesNodes=!0,e},listHidden:function(){return function(e,t,n){var r=G.map(n,function(s){var i=s.className?'class="'+s.className+'"':"";return s.hidden?"<li "+i+' data-dtr-index="'+s.columnIndex+'" data-dt-row="'+s.rowIndex+'" data-dt-column="'+s.columnIndex+'"><span class="dtr-title">'+s.title+'</span> <span class="dtr-data">'+s.data+"</span></li>":""}).join("");return r?G('<ul data-dtr-index="'+t+'" class="dtr-details"/>').append(r):!1}},tableAll:function(e){return e=G.extend({tableClass:""},e),function(t,n,r){var s=G.map(r,function(i){var a=i.className?'class="'+i.className+'"':"";return"<tr "+a+' data-dt-row="'+i.rowIndex+'" data-dt-column="'+i.columnIndex+'"><td>'+(i.title!==""?i.title+":":"")+"</td> <td>"+i.data+"</td></tr>"}).join("");return G('<table class="'+e.tableClass+' dtr-details" width="100%"/>').append(s)}}};Ce.defaults={breakpoints:Ce.breakpoints,auto:!0,details:{display:Ce.display.childRow,renderer:Ce.renderer.listHidden(),target:0,type:"inline"},orthogonal:"display"};var _t=G.fn.dataTable.Api;_t.register("responsive()",function(){return this});_t.register("responsive.index()",function(e){return e=G(e),{column:e.data("dtr-index"),row:e.parent().data("dtr-index")}});_t.register("responsive.rebuild()",function(){return this.iterator("table",function(e){e._responsive&&e._responsive._classLogic()})});_t.register("responsive.recalc()",function(){return this.iterator("table",function(e){e._responsive&&(e._responsive._resizeAuto(),e._responsive._resize())})});_t.register("responsive.hasHidden()",function(){var e=this.context[0];return e._responsive?G.inArray(!1,e._responsive._responsiveOnlyHidden())!==-1:!1});_t.registerPlural("columns().responsiveHidden()","column().responsiveHidden()",function(){return this.iterator("column",function(e,t){return e._responsive?e._responsive._responsiveOnlyHidden()[t]:!1},1)});Ce.version="3.0.7";G.fn.dataTable.Responsive=Ce;G.fn.DataTable.Responsive=Ce;G(document).on("preInit.dt.dtr",function(e,t,n){if(e.namespace==="dt"&&(G(t.nTable).hasClass("responsive")||G(t.nTable).hasClass("dt-responsive")||t.oInit.responsive||k.defaults.responsive)){var r=t.oInit.responsive;r!==!1&&new Ce(t,G.isPlainObject(r)?r:{})}});var ji=oe(ae("jquery"),1);var vs=oe(ae("jquery"),1);var Pe=vs.default,tt=function(e,t){if(!k.versionCheck||!k.versionCheck("2"))throw new Error("RowGroup requires DataTables 2 or newer");this.c=Pe.extend(!0,{},k.defaults.rowGroup,tt.defaults,t),this.s={dt:new k.Api(e)},this.dom={};var n=this.s.dt.settings()[0],r=n.rowGroup;if(r)return r;n.rowGroup=this,this._constructor()};Pe.extend(tt.prototype,{dataSrc:function(e){if(e===void 0)return this.c.dataSrc;var t=this.s.dt;return this.c.dataSrc=e,Pe(t.table().node()).triggerHandler("rowgroup-datasrc.dt",[t,e]),this},disable:function(){return this.c.enable=!1,this},enable:function(e){return e===!1?this.disable():(this.c.enable=!0,this)},enabled:function(){return this.c.enable},_constructor:function(){var e=this,t=this.s.dt,n=t.settings()[0],r=Pe("div.dt-scroll-body",t.table().container());t.on("draw.dtrg",function(i,a){e.c.enable&&n===a&&(e._draw(),s&&r.scrollTop()&&(r.scrollTop(s),s=null))}),t.on("column-visibility.dt.dtrg responsive-resize.dt.dtrg",function(){e._adjustColspan()}),t.on("destroy",function(){t.off(".dtrg")});var s=null;r.length&&t.on("preDraw",function(){s=r.scrollTop()})},_adjustColspan:function(){let e=Pe("tr."+this.c.className,this.s.dt.table().body()).find("th:visible, td:visible");e.length===1&&e.attr("colspan",this._colspan())},_colspan:function(){return this.s.dt.columns().visible().reduce(function(e,t){return e+t},0)},_draw:function(){var e=this.s.dt;if(!(this.c.dataSrc===null||Array.isArray(this.c.dataSrc)&&this.c.dataSrc.length===0)){var t=this._group(0,e.rows({page:"current"}).indexes());this._groupDisplay(0,t)}},_group:function(e,t){var n=Array.isArray(this.c.dataSrc)?this.c.dataSrc:[this.c.dataSrc],r=k.util.get(n[e]),s=this.s.dt,i,a,l,u,h=[],f=this;for(l=0,u=t.length;l<u;l++){var b=t[l],v=s.row(b).data();i=r(v,e),i==null&&(i=f.c.emptyDataGroup),(a===void 0||i!==a)&&(h.push({dataPoint:i,rows:[]}),a=i),h[h.length-1].rows.push(b)}if(n[e+1]!==void 0)for(l=0,u=h.length;l<u;l++)h[l].children=this._group(e+1,h[l].rows);return h},_groupDisplay:function(e,t){for(var n=this.s.dt,r,s=0,i=t.length;s<i;s++){var a=t[s],l=a.dataPoint,u,h=a.rows;this.c.startRender&&(r=this.c.startRender.call(this,n.rows(h),l,e),u=this._rowWrap(r,this.c.startClassName,e),u&&u.insertBefore(n.row(h[0]).node())),this.c.endRender&&(r=this.c.endRender.call(this,n.rows(h),l,e),u=this._rowWrap(r,this.c.endClassName,e),u&&u.insertAfter(n.row(h[h.length-1]).node())),a.children&&this._groupDisplay(e+1,a.children)}},_rowWrap:function(e,t,n){var r;return(e===null||e==="")&&(e=this.c.emptyDataGroup),e==null?null:(typeof e=="object"&&e.nodeName&&e.nodeName.toLowerCase()==="tr"?r=Pe(e):e instanceof Pe&&e.length&&e[0].nodeName.toLowerCase()==="tr"?r=e:r=Pe("<tr/>").append(Pe("<th/>").attr("colspan",this._colspan()).attr("scope","row").append(e)),r.addClass(this.c.className).addClass(t).addClass("dtrg-level-"+n))}});tt.defaults={className:"dtrg-group",dataSrc:0,emptyDataGroup:"No group",enable:!0,endClassName:"dtrg-end",endRender:null,startClassName:"dtrg-start",startRender:function(e,t){return t}};tt.version="1.6.0";Pe.fn.dataTable.RowGroup=tt;Pe.fn.DataTable.RowGroup=tt;k.Api.register("rowGroup()",function(){return this});k.Api.register("rowGroup().disable()",function(){return this.iterator("table",function(e){e.rowGroup&&e.rowGroup.enable(!1)})});k.Api.register("rowGroup().enable()",function(e){return this.iterator("table",function(t){t.rowGroup&&t.rowGroup.enable(e===void 0?!0:e)})});k.Api.register("rowGroup().enabled()",function(){var e=this.context;return e.length&&e[0].rowGroup?e[0].rowGroup.enabled():!1});k.Api.register("rowGroup().dataSrc()",function(e){if(e===void 0){let t=this.context[0].rowGroup;return t?t.dataSrc():[]}return this.iterator("table",function(t){t.rowGroup||new tt(this.context[0]),t.rowGroup.dataSrc(e)})});Pe(document).on("preInit.dt.dtrg",function(e,t,n){if(e.namespace==="dt"){var r=t.oInit.rowGroup,s=k.defaults.rowGroup;if(r||s){var i=Pe.extend({},s,r);r!==!1&&new tt(t,i)}}});var Gi=oe(ae("jquery"),1);var ms=oe(ae("jquery"),1);var Y=ms.default,ct=function(e,t){if(!k.versionCheck||!k.versionCheck("1.11"))throw"DataTables RowReorder requires DataTables 1.11 or newer";this.c=Y.extend(!0,{},k.defaults.rowReorder,ct.defaults,t),this.s={bodyTop:null,dt:new k.Api(e),getDataFn:k.util.get(this.c.dataSrc),middles:null,scroll:{},scrollInterval:null,setDataFn:k.util.set(this.c.dataSrc),start:{top:0,left:0,offsetTop:0,offsetLeft:0,nodes:[],rowIndex:0},windowHeight:0,documentOuterHeight:0,domCloneOuterHeight:0,dropAllowed:!0},this.dom={clone:null,cloneParent:null,dtScroll:Y("div.dataTables_scrollBody, div.dt-scroll-body",this.s.dt.table().container())};var n=this.s.dt.settings()[0],r=n.rowreorder;if(r)return r;this.dom.dtScroll.length||(this.dom.dtScroll=Y(this.s.dt.table().container(),"tbody")),n.rowreorder=this,this._constructor()};Y.extend(ct.prototype,{_constructor:function(){var e=this,t=this.s.dt,n=Y(t.table().node());n.css("position")==="static"&&n.css("position","relative"),Y(t.table().container()).on("mousedown.rowReorder touchstart.rowReorder",this.c.selector,function(r){if(e.c.enable){if(Y(r.target).is(e.c.excludedChildren))return!0;var s=Y(this).closest("tr"),i=t.row(s);if(i.any())return e._emitEvent("pre-row-reorder",{node:i.node(),index:i.index()}),e._mouseDown(r,s),!1}}),t.on("destroy.rowReorder",function(){Y(t.table().container()).off(".rowReorder"),t.off(".rowReorder")}),this._keyup=this._keyup.bind(this)},_cachePositions:function(){var e=this.s.dt,t=Y(e.table().node()).find("thead").outerHeight(),n=Y.unique(e.rows({page:"current"}).nodes().toArray()),r=Y.map(n,function(s,i){var a=Y(s).position().top-t;return(a+a+Y(s).outerHeight())/2});this.s.middles=r,this.s.bodyTop=Y(e.table().body()).offset().top,this.s.windowHeight=Y(window).height(),this.s.documentOuterHeight=Y(document).outerHeight(),this.s.bodyArea=this._calcBodyArea()},_clone:function(e){var t=this.s.dt,n=Y(t.table().node().cloneNode(!1)).addClass("dt-rowReorder-float").append("<tbody/>").append(e.clone(!1)),r=e.outerWidth(),s=e.outerHeight(),i=Y(Y(this.s.dt.table().node()).parent()),a=i.width(),l=i.scrollLeft(),u=e.children().map(function(){return Y(this).width()});n.width(r).height(s).find("tr").children().each(function(f){this.style.width=u[f]+"px"});var h=Y("<div>").addClass("dt-rowReorder-float-parent").width(a).append(n).appendTo("body").scrollLeft(l);this.dom.clone=n,this.dom.cloneParent=h,this.s.domCloneOuterHeight=n.outerHeight()},_clonePosition:function(e){var t=this.s.start,n=this._eventToPage(e,"Y")-t.top,r=this._eventToPage(e,"X")-t.left,s=this.c.snapX,i,a=n+t.offsetTop;s===!0?i=t.offsetLeft:typeof s=="number"?i=t.offsetLeft+s:i=r+t.offsetLeft+this.dom.cloneParent.scrollLeft(),a<0?a=0:a+this.s.domCloneOuterHeight>this.s.documentOuterHeight&&(a=this.s.documentOuterHeight-this.s.domCloneOuterHeight),this.dom.cloneParent.css({top:a,left:i})},_emitEvent:function(e,t){var n;return this.s.dt.iterator("table",function(r,s){var i=Y(r.nTable).triggerHandler(e+".dt",t);i!==void 0&&(n=i)}),n},_eventToPage:function(e,t){return e.type.indexOf("touch")!==-1?e.originalEvent.touches[0]["page"+t]:e["page"+t]},_mouseDown:function(e,t){var n=this,r=this.s.dt,s=this.s.start,i=this.c.cancelable,a=t.offset();s.top=this._eventToPage(e,"Y"),s.left=this._eventToPage(e,"X"),s.offsetTop=a.top,s.offsetLeft=a.left,s.nodes=Y.unique(r.rows({page:"current"}).nodes().toArray()),this._cachePositions(),this._clone(t),this._clonePosition(e);var l=this._eventToPage(e,"Y")-this.s.bodyTop;s.rowIndex=this._calcRowIndexByPos(l),this.dom.target=t,t.addClass("dt-rowReorder-moving"),Y(document).on("mouseup.rowReorder touchend.rowReorder",function(h){n._mouseUp(h)}).on("mousemove.rowReorder touchmove.rowReorder",function(h){n._mouseMove(h)}),Y(window).width()===Y(document).width()&&Y(document.body).addClass("dt-rowReorder-noOverflow");var u=this.dom.dtScroll;this.s.scroll={windowHeight:Y(window).height(),windowWidth:Y(window).width(),dtTop:u.length?u.offset().top:null,dtLeft:u.length?u.offset().left:null,dtHeight:u.length?u.outerHeight():null,dtWidth:u.length?u.outerWidth():null},i&&Y(document).on("keyup",this._keyup)},_mouseMove:function(e){this._clonePosition(e);var t=this.s.start,n=this.c.cancelable;if(n){var r=this.s.bodyArea,s=this._calcCloneParentArea();this.s.dropAllowed=this._rectanglesIntersect(r,s),this.s.dropAllowed?Y(this.dom.cloneParent).removeClass("drop-not-allowed"):Y(this.dom.cloneParent).addClass("drop-not-allowed")}for(var i=this._eventToPage(e,"Y")-this.s.bodyTop,a=this.s.middles,l=null,u=0,h=a.length;u<h;u++)if(i<a[u]){l=u;break}l===null&&(l=a.length),n&&(this.s.dropAllowed||(l=t.rowIndex>this.s.lastInsert?t.rowIndex+1:t.rowIndex),this.dom.target.toggleClass("dt-rowReorder-moving",this.s.dropAllowed)),this._moveTargetIntoPosition(l),this._shiftScroll(e)},_mouseUp:function(e){var t=this,n=this.s.dt,r,s,i=this.c.dataSrc,a=this.s.dropAllowed;if(!a){t._cancel();return}var l=this.s.start.nodes,u=Y.unique(n.rows({page:"current"}).nodes().toArray()),h={},f=[],b=[],v=this.s.getDataFn,m=this.s.setDataFn;for(r=0,s=l.length;r<s;r++)if(l[r]!==u[r]){var C=n.row(u[r]).id(),w=n.row(u[r]).data(),c=n.row(l[r]).data();C&&(h[C]=v(c)),f.push({node:u[r],oldData:v(w),newData:v(c),newPosition:r,oldPosition:Y.inArray(u[r],l)}),b.push(u[r])}var o=[f,{dataSrc:i,nodes:b,values:h,triggerRow:n.row(this.dom.target),originalEvent:e}],d=this._emitEvent("row-reorder",o);if(d===!1){t._cancel();return}this._cleanupDragging();var p=function(){if(t.c.update){for(r=0,s=f.length;r<s;r++){var _=n.row(f[r].node),x=_.data();m(x,f[r].newData),n.columns().every(function(){this.dataSrc()===i&&n.cell(f[r].node,this.index()).invalidate("data")})}t._emitEvent("row-reordered",o),n.draw(!1)}};this.c.editor?(this.c.enable=!1,this.c.editor.edit(b,!1,Y.extend({submit:"changed"},this.c.formOptions)).multiSet(i,h).one("preSubmitCancelled.rowReorder",function(){t.c.enable=!0,t.c.editor.off(".rowReorder"),n.draw(!1)}).one("submitUnsuccessful.rowReorder",function(){n.draw(!1)}).one("submitSuccess.rowReorder",function(){p()}).one("submitComplete",function(){t.c.enable=!0,t.c.editor.off(".rowReorder")}).submit()):p()},_moveTargetIntoPosition:function(e){var t=this.s.dt;if(this.s.lastInsert===null||this.s.lastInsert!==e){var n=Y.unique(t.rows({page:"current"}).nodes().toArray()),r="";e>this.s.lastInsert?(this.dom.target.insertAfter(n[e-1]),r="after"):(this.dom.target.insertBefore(n[e]),r="before"),this._cachePositions(),this.s.lastInsert=e,this._emitEvent("row-reorder-changed",{insertPlacement:r,insertPoint:e,row:t.row(this.dom.target)})}},_cleanupDragging:function(){var e=this.c.cancelable;this.dom.clone.remove(),this.dom.cloneParent.remove(),this.dom.clone=null,this.dom.cloneParent=null,this.dom.target.removeClass("dt-rowReorder-moving"),Y(document).off(".rowReorder"),Y(document.body).removeClass("dt-rowReorder-noOverflow"),clearInterval(this.s.scrollInterval),this.s.scrollInterval=null,e&&Y(document).off("keyup",this._keyup)},_shiftScroll:function(e){var t=this,n=this.s.scroll,r=!1,s=5,i=65,a=e.pageY-document.body.scrollTop,l,u;a<Y(window).scrollTop()+i?l=s*-1:a>n.windowHeight+Y(window).scrollTop()-i&&(l=s),n.dtTop!==null&&e.pageY<n.dtTop+i?u=s*-1:n.dtTop!==null&&e.pageY>n.dtTop+n.dtHeight-i&&(u=s),l||u?(n.windowVert=l,n.dtVert=u,r=!0):this.s.scrollInterval&&(clearInterval(this.s.scrollInterval),this.s.scrollInterval=null),!this.s.scrollInterval&&r&&(this.s.scrollInterval=setInterval(function(){if(n.windowVert){var h=Y(document).scrollTop();if(Y(document).scrollTop(h+n.windowVert),h!==Y(document).scrollTop()){var f=parseFloat(t.dom.cloneParent.css("top"));t.dom.cloneParent.css("top",f+n.windowVert)}}if(n.dtVert){var b=t.dom.dtScroll[0];n.dtVert&&(b.scrollTop+=n.dtVert)}},20))},_calcBodyArea:function(e){var t=this.s.dt,n=Y(t.table().body()).offset(),r={left:n.left,top:n.top,right:n.left+Y(t.table().body()).width(),bottom:n.top+Y(t.table().body()).height()};return r},_calcCloneParentArea:function(e){var t=Y(this.dom.cloneParent).offset(),n={left:t.left,top:t.top,right:t.left+Y(this.dom.cloneParent).width(),bottom:t.top+Y(this.dom.cloneParent).height()};return n},_rectanglesIntersect:function(e,t){var n=e.left>=t.right||t.left>=e.right||e.top>=t.bottom||t.top>=e.bottom;return!n},_calcRowIndexByPos:function(e){var t=this.s.dt,n=Y.unique(t.rows({page:"current"}).nodes().toArray()),r=-1,s=Y(t.table().node()).find("thead").outerHeight();return Y.each(n,function(i,a){var l=Y(a).position().top-s,u=l+Y(a).outerHeight();e>=l&&e<=u&&(r=i)}),r},_keyup:function(e){var t=this.c.cancelable;t&&e.which===27&&(e.preventDefault(),this._cancel())},_cancel:function(){var e=this.s.start,t=e.rowIndex>this.s.lastInsert?e.rowIndex+1:e.rowIndex;this._moveTargetIntoPosition(t),this._cleanupDragging(),this._emitEvent("row-reorder-canceled",[this.s.start.rowIndex])}});ct.defaults={dataSrc:0,editor:null,enable:!0,formOptions:{},selector:"td:first-child",snapX:!1,update:!0,excludedChildren:"a",cancelable:!1};var Yn=Y.fn.dataTable.Api;Yn.register("rowReorder()",function(){return this});Yn.register("rowReorder.enable()",function(e){return e===void 0&&(e=!0),this.iterator("table",function(t){t.rowreorder&&(t.rowreorder.c.enable=e)})});Yn.register("rowReorder.disable()",function(){return this.iterator("table",function(e){e.rowreorder&&(e.rowreorder.c.enable=!1)})});ct.version="1.5.0";Y.fn.dataTable.RowReorder=ct;Y.fn.DataTable.RowReorder=ct;Y(document).on("init.dt.dtr",function(e,t,n){if(e.namespace==="dt"){var r=t.oInit.rowReorder,s=k.defaults.rowReorder;if(r||s){var i=Y.extend({},r,s);r!==!1&&new ct(t,i)}}});var Ui=oe(ae("jquery"),1);var gs=oe(ae("jquery"),1);var ee=gs.default,Ve=function(e,t){if(!(this instanceof Ve)){alert("Scroller warning: Scroller must be initialised with the 'new' keyword.");return}t===void 0&&(t={});var n=ee.fn.dataTable.Api(e);this.s={dt:n.settings()[0],dtApi:n,tableTop:0,tableBottom:0,redrawTop:0,redrawBottom:0,autoHeight:!0,viewportRows:0,stateTO:null,stateSaveThrottle:function(){},drawTO:null,heights:{jump:null,page:null,virtual:null,scroll:null,row:null,viewport:null,labelHeight:0,xbar:0},topRowFloat:0,scrollDrawDiff:null,loaderVisible:!1,forceReposition:!1,baseRowTop:0,baseScrollTop:0,mousedown:!1,lastScrollTop:0},this.s=ee.extend(this.s,Ve.oDefaults,t),this.s.heights.row=this.s.rowHeight,this.dom={force:document.createElement("div"),label:ee('<div class="dts_label">0</div>'),scroller:null,table:null,loader:null},!this.s.dt.oScroller&&(this.s.dt.oScroller=this,this.construct())};ee.extend(Ve.prototype,{measure:function(e){this.s.autoHeight&&this._calcRowHeight();var t=this.s.heights;t.row&&(t.viewport=this._parseHeight(ee(this.dom.scroller).css("max-height")),this.s.viewportRows=parseInt(t.viewport/t.row,10)+1,this.s.dt._iDisplayLength=this.s.viewportRows*this.s.displayBuffer);var n=this.dom.label.outerHeight();t.xbar=this.dom.scroller.offsetHeight-this.dom.scroller.clientHeight,t.labelHeight=n,(e===void 0||e)&&this.s.dtApi.draw(!1)},pageInfo:function(){var e=this.s.dt,t=this.dom.scroller.scrollTop,n=e.fnRecordsDisplay(),r=Math.ceil(this.pixelsToRow(t+this.s.heights.viewport,!1,this.s.ani));return{start:Math.floor(this.pixelsToRow(t,!1,this.s.ani)),end:n<r?n-1:r-1}},pixelsToRow:function(e,t,n){var r=e-this.s.baseScrollTop,s=n?(this._domain("physicalToVirtual",this.s.baseScrollTop)+r)/this.s.heights.row:r/this.s.heights.row+this.s.baseRowTop;return t||t===void 0?parseInt(s,10):s},rowToPixels:function(e,t,n){var r,s=e-this.s.baseRowTop;return n?(r=this._domain("virtualToPhysical",this.s.baseScrollTop),r+=s*this.s.heights.row):(r=this.s.baseScrollTop,r+=s*this.s.heights.row),t||t===void 0?parseInt(r,10):r},scrollToRow:function(e,t){var n=this,r=!1,s=this.rowToPixels(e),i=(this.s.displayBuffer-1)/2*this.s.viewportRows,a=e-i;a<0&&(a=0),(s>this.s.redrawBottom||s<this.s.redrawTop)&&this.s.dt._iDisplayStart!==a&&(r=!0,s=this._domain("virtualToPhysical",e*this.s.heights.row),this.s.redrawTop<s&&s<this.s.redrawBottom&&(this.s.forceReposition=!0,t=!1)),t===void 0||t?(this.s.ani=r,ee(this.dom.scroller).animate({scrollTop:s},function(){setTimeout(function(){n.s.ani=!1},250)})):ee(this.dom.scroller).scrollTop(s)},construct:function(){var e=this,t=this.s.dtApi;if(!this.s.dt.oFeatures.bPaginate)throw new Error("Pagination must be enabled for Scroller to operate");this.dom.force.style.position="relative",this.dom.force.style.top="0px",this.dom.force.style.left="0px",this.dom.force.style.width="1px",this.dom.scroller=t.table().node().parentNode,this.dom.scroller.appendChild(this.dom.force),this.dom.scroller.style.position="relative",this.dom.table=ee(">table",this.dom.scroller)[0],this.dom.table.style.position="absolute",this.dom.table.style.top="0px",this.dom.table.style.left="0px",ee(t.table().container()).addClass("dts DTS"),this.dom.label.appendTo(this.dom.scroller),this.s.heights.row&&this.s.heights.row!="auto"&&(this.s.autoHeight=!1),this.s.ingnoreScroll=!0,ee(this.dom.scroller).on("scroll.dt-scroller",function(s){e._scroll.call(e)}),ee(this.dom.scroller).on("touchstart.dt-scroller",function(){e._scroll.call(e)}),ee(this.dom.scroller).on("mousedown.dt-scroller",function(){e.s.mousedown=!0}).on("mouseup.dt-scroller",function(){e.s.labelVisible=!1,e.s.mousedown=!1,e.dom.label.css("display","none")}),ee(window).on("resize.dt-scroller",function(){e.measure(!1),e._info()});var n=!0,r=t.state.loaded();t.on("stateSaveParams.scroller",function(s,i,a){n&&r?(a.scroller=r.scroller,n=!1,a.scroller&&(e.s.lastScrollTop=a.scroller.scrollTop)):a.scroller={topRow:e.s.topRowFloat,baseRowTop:e.s.baseRowTop}}),t.on("stateLoadParams.scroller",function(s,i,a){a.scroller!==void 0&&e.scrollToRow(a.scroller.topRow)}),this.measure(!1),r&&r.scroller&&(this.s.topRowFloat=r.scroller.topRow,this.s.baseRowTop=r.scroller.baseRowTop,this.s.baseScrollTop=this.s.baseRowTop*this.s.heights.row,r.scroller.scrollTop=this._domain("physicalToVirtual",this.s.topRowFloat*this.s.heights.row)),e.s.stateSaveThrottle=k.util.throttle(function(){e.s.dtApi.state.save()},500),t.on("init.scroller",function(){e.measure(!1),e.s.scrollType="jump",e._draw(),t.on("draw.scroller",function(){e._draw()})}),t.on("preDraw.dt.scroller",function(){e._scrollForce()}),t.on("destroy.scroller",function(){ee(window).off("resize.dt-scroller"),ee(e.dom.scroller).off(".dt-scroller"),ee(e.s.dt.nTable).off(".scroller"),ee(e.s.dt.nTableWrapper).removeClass("DTS"),ee("div.DTS_Loading",e.dom.scroller.parentNode).remove(),e.dom.table.style.position="",e.dom.table.style.top="",e.dom.table.style.left=""})},_calcRowHeight:function(){var e=this.s.dt,t=e.nTable,n=t.cloneNode(!1),r=ee("<tbody/>").appendTo(n),s=e.oClasses,i=k.versionCheck("2")?{container:s.container,scroller:s.scrolling.container,body:s.scrolling.body}:{container:s.sWrapper,scroller:s.sScrollWrapper,body:s.sScrollBody},a=ee('<div class="'+i.container+' DTS"><div class="'+i.scroller+'"><div class="'+i.body+'"></div></div></div>');ee("tbody tr:lt(4)",t).clone().appendTo(r);var l=ee("tr",r).length;if(l===1)r.prepend("<tr><td>&#160;</td></tr>"),r.append("<tr><td>&#160;</td></tr>");else for(;l<3;l++)r.append("<tr><td>&#160;</td></tr>");ee("div."+i.body,a).append(n);var u=this.s.dt.nHolding||t.parentNode;ee(u).is(":visible")||(u="body"),a.find("input").removeAttr("name"),a.appendTo(u),this.s.heights.row=ee("tr",r).eq(1).outerHeight(),a.remove()},_draw:function(){var e=this,t=this.s.heights,n=this.dom.scroller.scrollTop,r=ee(this.s.dt.nTable).height(),s=this.s.dt._iDisplayStart,i=this.s.dt._iDisplayLength,a=this.s.dt.fnRecordsDisplay(),l=n+t.viewport;this.s.skip=!0,(this.s.dt.bSorted||this.s.dt.bFiltered)&&s===0&&!this.s.dt._drawHold&&(this.s.topRowFloat=0),n=this.s.scrollType==="jump"?this._domain("virtualToPhysical",this.s.topRowFloat*t.row):n,this.s.baseScrollTop=n,this.s.baseRowTop=this.s.topRowFloat;var u=n-(this.s.topRowFloat-s)*t.row;if(s===0)u=0;else if(s+i>=a)u=t.scroll-r;else{var h=u+r;if(h<l){var f=l-r,b=f-u;this.s.baseScrollTop+=b+1,u=f}}this.dom.table.style.top=u+"px",this.s.tableTop=u,this.s.tableBottom=r+this.s.tableTop;var v=(n-this.s.tableTop)*this.s.boundaryScale;if(this.s.redrawTop=n-v,this.s.redrawBottom=n+v>t.scroll-t.viewport-t.row?t.scroll-t.viewport-t.row:n+v,this.s.skip=!1,e.s.ingnoreScroll)if(this.s.dt.oFeatures.bStateSave&&this.s.dt.oLoadedState!==null&&typeof this.s.dt.oLoadedState.scroller!="undefined"){var m=!!((this.s.dt.sAjaxSource||e.s.dt.ajax)&&!this.s.dt.oFeatures.bServerSide);(m&&this.s.dt.iDraw>=2||!m&&this.s.dt.iDraw>=1)&&setTimeout(function(){ee(e.dom.scroller).scrollTop(e.s.dt.oLoadedState.scroller.scrollTop),setTimeout(function(){e.s.ingnoreScroll=!1},0)},0)}else e.s.ingnoreScroll=!1;this.s.dt.oFeatures.bInfo&&setTimeout(function(){e._info.call(e)},0),ee(this.s.dt.nTable).triggerHandler("position.dts.dt",u)},_domain:function(e,t){var n=this.s.heights,r,s=1e4;if(n.virtual===n.scroll||t<s)return t;if(e==="virtualToPhysical"&&t>=n.virtual-s)return r=n.virtual-t,n.scroll-r;if(e==="physicalToVirtual"&&t>=n.scroll-s)return r=n.scroll-t,n.virtual-r;var i=(n.virtual-s-s)/(n.scroll-s-s),a=s-i*s;return e==="virtualToPhysical"?(t-a)/i:i*t+a},_info:function(){if(this.s.dt.oFeatures.bInfo){var e=this.s.dt,t=this.s.dtApi,n=e.oLanguage,r=t.page.info(),s=r.recordsDisplay,i=r.recordsTotal,a=(this.s.lastScrollTop-this.s.baseScrollTop)/this.s.heights.row,l=Math.floor(this.s.baseRowTop+a)+1;this.s.scrollType==="jump"&&(l=Math.floor(this.s.topRowFloat)+1);var u=l+Math.floor(this.s.heights.viewport/this.s.heights.row),h=u>s?s:u,f;s===0&&s==i?f=n.sInfoEmpty+n.sInfoPostFix:s===0?f=n.sInfoEmpty+" "+n.sInfoFiltered+n.sInfoPostFix:s==i?f=n.sInfo+n.sInfoPostFix:f=n.sInfo+" "+n.sInfoFiltered+n.sInfoPostFix,f=this._macros(f,l,h,i,s);var b=n.fnInfoCallback;b&&(f=b.call(e.oInstance,e,l,h,i,s,f));var v=e.aanFeatures.i;if(typeof v!="undefined"){for(var m=0,C=v.length;m<C;m++)ee(v[m]).html(f);ee(e.nTable).triggerHandler("info.dt")}ee("div.dt-info",t.table().container()).each(function(){ee(this).html(f),t.trigger("info",[t.settings()[0],this,f])})}},_macros:function(e,t,n,r,s){var i=this.s.dtApi,a=this.s.dt,l=a.fnFormatNumber;return e.replace(/_START_/g,l.call(a,t)).replace(/_END_/g,l.call(a,n)).replace(/_MAX_/g,l.call(a,r)).replace(/_TOTAL_/g,l.call(a,s)).replace(/_ENTRIES_/g,i.i18n("entries","")).replace(/_ENTRIES-MAX_/g,i.i18n("entries","",r)).replace(/_ENTRIES-TOTAL_/g,i.i18n("entries","",s))},_parseHeight:function(e){var t,n=/^([+-]?(?:\d+(?:\.\d+)?|\.\d+))(px|em|rem|vh)$/.exec(e);if(n===null)return 0;var r=parseFloat(n[1]),s=n[2];return s==="px"?t=r:s==="vh"?t=r/100*ee(window).height():s==="rem"?t=r*parseFloat(ee(":root").css("font-size")):s==="em"&&(t=r*parseFloat(ee("body").css("font-size"))),t||0},_scroll:function(){var e=this,t=this.s.heights,n=this.dom.scroller.scrollTop,r;if(!this.s.skip&&!this.s.ingnoreScroll&&n!==this.s.lastScrollTop){if(this.s.dt.bFiltered||this.s.dt.bSorted){this.s.lastScrollTop=0;return}if(clearTimeout(this.s.stateTO),this.s.stateTO=setTimeout(function(){e.s.dtApi.state.save(),e._info()},250),this.s.scrollType=Math.abs(n-this.s.lastScrollTop)>t.viewport?"jump":"cont",this.s.topRowFloat=this.s.scrollType==="cont"?this.pixelsToRow(n,!1,!1):this._domain("physicalToVirtual",n)/t.row,this.s.topRowFloat<0&&(this.s.topRowFloat=0),this.s.forceReposition||n<this.s.redrawTop||n>this.s.redrawBottom){var s=Math.ceil((this.s.displayBuffer-1)/2*this.s.viewportRows);if(r=parseInt(this.s.topRowFloat,10)-s,this.s.forceReposition=!1,r<=0?r=0:r+this.s.dt._iDisplayLength>this.s.dt.fnRecordsDisplay()?(r=this.s.dt.fnRecordsDisplay()-this.s.dt._iDisplayLength,r<0&&(r=0)):r%2!==0&&r++,this.s.targetTop=r,r!=this.s.dt._iDisplayStart){this.s.tableTop=ee(this.s.dt.nTable).offset().top,this.s.tableBottom=ee(this.s.dt.nTable).height()+this.s.tableTop;var i=function(){e.s.dt._iDisplayStart=e.s.targetTop,e.s.dtApi.draw("page")};this.s.dt.oFeatures.bServerSide?(this.s.forceReposition=!0,ee(this.s.dt.nTable).triggerHandler("scroller-will-draw.dt"),k.versionCheck("2")?e.s.dtApi.processing(!0):this.s.dt.oApi._fnProcessingDisplay(this.s.dt,!0),clearTimeout(this.s.drawTO),this.s.drawTO=setTimeout(i,this.s.serverWait)):i()}}else this.s.topRowFloat=this.pixelsToRow(n,!1,!0);if(this._info(),this.s.lastScrollTop=n,this.s.stateSaveThrottle(),this.s.scrollType==="jump"&&this.s.mousedown&&(this.s.labelVisible=!0),this.s.labelVisible){var a=(t.viewport-t.labelHeight-t.xbar)/t.scroll;this.dom.label.html(this.s.dt.fnFormatNumber(parseInt(this.s.topRowFloat,10)+1)).css("top",n+n*a).css("display","block")}}},_scrollForce:function(){var e=this.s.heights,t=1e6;e.virtual=e.row*this.s.dt.fnRecordsDisplay(),e.scroll=e.virtual,e.scroll>t&&(e.scroll=t),this.dom.force.style.height=e.scroll>this.s.heights.row?e.scroll+"px":this.s.heights.row+"px"}});Ve.defaults={boundaryScale:.5,displayBuffer:9,rowHeight:"auto",serverWait:200};Ve.oDefaults=Ve.defaults;Ve.version="2.4.3";ee(document).on("preInit.dt.dtscroller",function(e,t){if(e.namespace==="dt"){var n=t.oInit.scroller,r=k.defaults.scroller;if(n||r){var s=ee.extend({},n,r);n!==!1&&new Ve(t,s)}}});ee.fn.dataTable.Scroller=Ve;ee.fn.DataTable.Scroller=Ve;var ut=ee.fn.dataTable.Api;ut.register("scroller()",function(){return this});ut.register("scroller().rowToPixels()",function(e,t,n){var r=this.context;if(r.length&&r[0].oScroller)return r[0].oScroller.rowToPixels(e,t,n)});ut.register("scroller().pixelsToRow()",function(e,t,n){var r=this.context;if(r.length&&r[0].oScroller)return r[0].oScroller.pixelsToRow(e,t,n)});ut.register(["scroller().scrollToRow()","scroller.toPosition()"],function(e,t){return this.iterator("table",function(n){n.oScroller&&n.oScroller.scrollToRow(e,t)}),this});ut.register("row().scrollTo()",function(e){var t=this;return this.iterator("row",function(n,r){if(n.oScroller){var s=t.rows({order:"applied",search:"applied"}).indexes().indexOf(r);n.oScroller.scrollToRow(s,e)}}),this});ut.register("scroller.measure()",function(e){return this.iterator("table",function(t){t.oScroller&&t.oScroller.measure(e)}),this});ut.register("scroller.page()",function(){var e=this.context;if(e.length&&e[0].oScroller)return e[0].oScroller.pageInfo()});var $i=oe(ae("jquery"),1);var bs=oe(ae("jquery"),1);var ft=bs.default;(function(){"use strict";var e,t;function n(){var c=k.use("moment");return c||window.moment}function r(){var c=k.use("luxon");return c||window.luxon}function s(c){e=c,t=c.fn.dataTable}var i=function(){function c(o,d,p,_,x,P,I){_===void 0&&(_=0),x===void 0&&(x=1),P===void 0&&(P=void 0),I===void 0&&(I=!1);var B=this;this.classes=e.extend(!0,{},c.classes),this.c=e.extend(!0,{},c.defaults,e.fn.dataTable.ext.searchBuilder,d);var E=this.c.i18n;if(this.s={condition:void 0,conditions:{},data:void 0,dataIdx:-1,dataPoints:[],dateFormat:!1,depth:x,dt:o,filled:!1,index:_,liveSearch:I,origData:void 0,preventRedraw:!1,serverData:P,topGroup:p,type:"",value:[]},this.dom={buttons:e("<div/>").addClass(this.classes.buttonContainer),condition:e("<select disabled/>").addClass(this.classes.condition).addClass(this.classes.dropDown).addClass(this.classes.italic).attr("autocomplete","hacking"),conditionTitle:e('<option value="" disabled selected hidden/>').html(this.s.dt.i18n("searchBuilder.condition",E.condition)),container:e("<div/>").addClass(this.classes.container),data:e("<select/>").addClass(this.classes.data).addClass(this.classes.dropDown).addClass(this.classes.italic),dataTitle:e('<option value="" disabled selected hidden/>').html(this.s.dt.i18n("searchBuilder.data",E.data)),defaultValue:e("<select disabled/>").addClass(this.classes.value).addClass(this.classes.dropDown).addClass(this.classes.select).addClass(this.classes.italic),delete:e("<button/>").html(this.s.dt.i18n("searchBuilder.delete",E.delete)).addClass(this.classes.delete).addClass(this.classes.button).attr("title",this.s.dt.i18n("searchBuilder.deleteTitle",E.deleteTitle)).attr("type","button"),inputCont:e("<div/>").addClass(this.classes.inputCont),left:e("<button/>").html(this.s.dt.i18n("searchBuilder.left",E.left)).addClass(this.classes.left).addClass(this.classes.button).attr("title",this.s.dt.i18n("searchBuilder.leftTitle",E.leftTitle)).attr("type","button"),right:e("<button/>").html(this.s.dt.i18n("searchBuilder.right",E.right)).addClass(this.classes.right).addClass(this.classes.button).attr("title",this.s.dt.i18n("searchBuilder.rightTitle",E.rightTitle)).attr("type","button"),value:[e("<select disabled/>").addClass(this.classes.value).addClass(this.classes.dropDown).addClass(this.classes.italic).addClass(this.classes.select)],valueTitle:e('<option value="--valueTitle--" disabled selected hidden/>').html(this.s.dt.i18n("searchBuilder.value",E.value))},this.c.greyscale){this.dom.data.addClass(this.classes.greyscale),this.dom.condition.addClass(this.classes.greyscale),this.dom.defaultValue.addClass(this.classes.greyscale);for(var F=0,U=this.dom.value;F<U.length;F++){var R=U[F];R.addClass(this.classes.greyscale)}}return e(window).on("resize.dtsb",t.util.throttle(function(){B.s.topGroup.trigger("dtsb-redrawLogic")})),this._buildCriteria(),this}return c._escapeHTML=function(o){return o.toString().replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&amp;/g,"&")},c.prototype.doSearch=function(){this.c.liveSearch&&this.s.dt.draw()},c.parseNumFmt=function(o){return+o.replace(/(?!^-)[^0-9.]/g,"")},c.prototype.updateArrows=function(o){o===void 0&&(o=!1),this.dom.container.children().detach(),this.dom.container.append(this.dom.data).append(this.dom.condition).append(this.dom.inputCont),this.setListeners(),this.dom.value[0]!==void 0&&e(this.dom.value[0]).trigger("dtsb-inserted");for(var d=1;d<this.dom.value.length;d++)this.dom.inputCont.append(this.dom.value[d]),e(this.dom.value[d]).trigger("dtsb-inserted");this.s.depth>1&&this.dom.buttons.append(this.dom.left),(this.c.depthLimit===!1||this.s.depth<this.c.depthLimit)&&o?this.dom.buttons.append(this.dom.right):this.dom.right.remove(),this.dom.buttons.append(this.dom.delete),this.dom.container.append(this.dom.buttons)},c.prototype.destroy=function(){this.dom.data.off(".dtsb"),this.dom.condition.off(".dtsb"),this.dom.delete.off(".dtsb");for(var o=0,d=this.dom.value;o<d.length;o++){var p=d[o];p.off(".dtsb")}this.dom.container.remove()},c.prototype.search=function(o,d){var p=this.s.dt.settings()[0],_=this.s.conditions[this.s.condition];if(this.s.condition!==void 0&&_!==void 0){var x=o[this.s.dataIdx];if(this.s.type&&this.s.type.includes("num")&&(p.oLanguage.sDecimal!==""||p.oLanguage.sThousands!=="")){var P=[o[this.s.dataIdx]];if(p.oLanguage.sDecimal!==""&&(P=o[this.s.dataIdx].split(p.oLanguage.sDecimal)),p.oLanguage.sThousands!=="")for(var I=0;I<P.length;I++)P[I]=P[I].replace(p.oLanguage.sThousands,",");x=P.join(".")}if(this.c.orthogonal.search!=="filter"&&(x=p.fastData(d,this.s.dataIdx,typeof this.c.orthogonal=="string"?this.c.orthogonal:this.c.orthogonal.search)),this.s.type==="array"){Array.isArray(x)||(x=[x]),x.sort();for(var B=0,E=x;B<E.length;B++){var F=E[B];F&&typeof F=="string"&&(F=F.replace(/[\r\n\u2028]/g," "))}}else x!==null&&typeof x=="string"&&(x=x.replace(/[\r\n\u2028]/g," "));return this.s.type.includes("html")&&typeof x=="string"&&(x=x.replace(/(<([^>]+)>)/ig,"")),x===null&&(x=""),_.search(x,this.s.value,this)}},c.prototype.getDetails=function(o){o===void 0&&(o=!1);var d,p=this.s.dt.settings()[0];if(this.s.type!==null&&["num","num-fmt","html-num","html-num-fmt"].includes(this.s.type)&&(p.oLanguage.sDecimal!==""||p.oLanguage.sThousands!==""))for(d=0;d<this.s.value.length;d++){var _=[this.s.value[d].toString()];if(p.oLanguage.sDecimal!==""&&(_=this.s.value[d].split(p.oLanguage.sDecimal)),p.oLanguage.sThousands!=="")for(var x=0;x<_.length;x++)_[x]=_[x].replace(p.oLanguage.sThousands,",");this.s.value[d]=_.join(".")}else if(this.s.type!==null&&o){var P=n(),I=r();if((this.s.type.includes("date")||this.s.type.includes("time"))&&!n&&!r)for(d=0;d<this.s.value.length;d++)this.s.value[d].match(/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])$/g)===null&&(this.s.value[d]="");else if(this.s.type.includes("moment")||this.s.type.includes("datetime")&&n)for(d=0;d<this.s.value.length;d++)this.s.value[d]&&this.s.value[d].length>0&&P(this.s.value[d],this.s.dateFormat,!0).isValid()&&(this.s.value[d]=P(this.s.value[d],this.s.dateFormat).format("YYYY-MM-DD HH:mm:ss"));else if(this.s.type.includes("luxon")||this.s.type.includes("datetime")&&r)for(d=0;d<this.s.value.length;d++)this.s.value[d]&&this.s.value[d].length>0&&I.DateTime.fromFormat(this.s.value[d],this.s.dateFormat).invalid===null&&(this.s.value[d]=I.DateTime.fromFormat(this.s.value[d],this.s.dateFormat).toFormat("yyyy-MM-dd HH:mm:ss"))}if(this.s.type&&this.s.type.includes("num")&&this.s.dt.page.info().serverSide)for(d=0;d<this.s.value.length;d++)this.s.value[d]=this.s.value[d].replace(/[^0-9.\-]/g,"");return{condition:this.s.condition,data:this.s.data,origData:this.s.origData,type:this.s.type,value:this.s.value.map(function(B){return B!=null?B.toString():B})}},c.prototype.getNode=function(){return this.dom.container},c.prototype.parseNumber=function(o){var d=this.s.dt.i18n("decimal");return d&&d!=="."&&(o=o.replace(/\./g,"").replace(d,".")),+o.replace(/(?!^-)[^0-9.]/g,"")},c.prototype.populate=function(){this._populateData(),this.s.dataIdx!==-1&&(this._populateCondition(),this.s.condition!==void 0&&this._populateValue())},c.prototype.rebuild=function(o){var d=!1,p,_;if(this._populateData(),o.data!==void 0){var x=this.classes.italic,P=this.dom.data;this.dom.data.children("option").each(function(){!d&&(e(this).text()===o.data||o.origData&&e(this).prop("origData")===o.origData)?(e(this).prop("selected",!0),P.removeClass(x),d=!0,p=parseInt(e(this).val(),10)):e(this).removeProp("selected")})}if(d){this.s.data=o.data,this.s.origData=o.origData,this.s.dataIdx=p,this.c.orthogonal=this._getOptions().orthogonal,this.dom.dataTitle.remove(),this._populateCondition(),this.dom.conditionTitle.remove();var I=void 0,B=this.dom.condition.children("option");for(_=0;_<B.length;_++){var E=e(B[_]);o.condition!==void 0&&E.val()===o.condition&&typeof o.condition=="string"?(E.prop("selected",!0),I=E.val()):E.removeProp("selected")}if(this.s.condition=I,this.s.condition!==void 0){for(this.dom.conditionTitle.removeProp("selected"),this.dom.conditionTitle.remove(),this.dom.condition.removeClass(this.classes.italic),_=0;_<B.length;_++){var F=e(B[_]);F.val()!==this.s.condition&&F.removeProp("selected")}this._populateValue(o)}else this.dom.conditionTitle.prependTo(this.dom.condition).prop("selected",!0)}},c.prototype.setListeners=function(){var o=this;this.dom.data.unbind("change").on("change.dtsb",function(){o.dom.dataTitle.removeProp("selected");for(var d=o.dom.data.children("option."+o.classes.option),p=0;p<d.length;p++){var _=e(d[p]);_.val()===o.dom.data.val()?(o.dom.data.removeClass(o.classes.italic),_.prop("selected",!0),o.s.dataIdx=+_.val(),o.s.data=_.text(),o.s.origData=_.prop("origData"),o.c.orthogonal=o._getOptions().orthogonal,o._clearCondition(),o._clearValue(),o._populateCondition(),o.s.filled&&(o.s.filled=!1,o.doSearch(),o.setListeners()),o.s.dt.state.save()):_.removeProp("selected")}}),this.dom.condition.unbind("change").on("change.dtsb",function(){o.dom.conditionTitle.removeProp("selected");for(var d=o.dom.condition.children("option."+o.classes.option),p=0;p<d.length;p++){var _=e(d[p]);if(_.val()===o.dom.condition.val()){o.dom.condition.removeClass(o.classes.italic),_.prop("selected",!0);for(var x=_.val(),P=0,I=Object.keys(o.s.conditions);P<I.length;P++){var B=I[P];if(B===x){o.s.condition=x;break}}o._clearValue(),o._populateValue();for(var E=0,F=o.dom.value;E<F.length;E++){var U=F[E];o.s.filled&&U!==void 0&&o.dom.inputCont.has(U[0]).length!==0&&(o.s.filled=!1,o.doSearch(),o.setListeners())}(o.dom.value.length===0||o.dom.value.length===1&&o.dom.value[0]===void 0)&&o.doSearch()}else _.removeProp("selected")}})},c.prototype.setupButtons=function(){if(window.innerWidth>550){this.dom.container.removeClass(this.classes.vertical),this.dom.buttons.css("left",null),this.dom.buttons.css("top",null);return}this.dom.container.addClass(this.classes.vertical),this.dom.buttons.css("left",this.dom.data.innerWidth()),this.dom.buttons.css("top",this.dom.data.position().top)},c.prototype._buildCriteria=function(){this.dom.data.append(this.dom.dataTitle),this.dom.condition.append(this.dom.conditionTitle),this.dom.container.append(this.dom.data).append(this.dom.condition),this.dom.inputCont.empty();for(var o=0,d=this.dom.value;o<d.length;o++){var p=d[o];p.append(this.dom.valueTitle),this.dom.inputCont.append(p)}this.dom.buttons.append(this.dom.delete).append(this.dom.right),this.dom.container.append(this.dom.inputCont).append(this.dom.buttons),this.setListeners()},c.prototype._clearCondition=function(){this.dom.condition.empty(),this.dom.conditionTitle.prop("selected",!0).attr("disabled","true"),this.dom.condition.prepend(this.dom.conditionTitle).prop("selectedIndex",0),this.s.conditions={},this.s.condition=void 0},c.prototype._clearValue=function(){var o;if(this.s.condition!==void 0){if(this.dom.value.length>0&&this.dom.value[0]!==void 0)for(var d=0,p=this.dom.value;d<p.length;d++)o=p[d],o!==void 0&&setTimeout(function(){o.remove()},50);if(this.dom.value=[].concat(this.s.conditions[this.s.condition].init(this,c.updateListener)),this.dom.value.length>0&&this.dom.value[0]!==void 0){this.dom.inputCont.empty().append(this.dom.value[0]).insertAfter(this.dom.condition),e(this.dom.value[0]).trigger("dtsb-inserted");for(var _=1;_<this.dom.value.length;_++)this.dom.inputCont.append(this.dom.value[_]),e(this.dom.value[_]).trigger("dtsb-inserted")}}else{for(var x=0,P=this.dom.value;x<P.length;x++)o=P[x],o!==void 0&&setTimeout(function(){o.remove()},50);this.dom.valueTitle.prop("selected",!0),this.dom.defaultValue.append(this.dom.valueTitle).insertAfter(this.dom.condition)}this.s.value=[],this.dom.value=[e("<select disabled/>").addClass(this.classes.value).addClass(this.classes.dropDown).addClass(this.classes.italic).addClass(this.classes.select).append(this.dom.valueTitle.clone())]},c.prototype._getOptions=function(){var o=this.s.dt;return e.extend(!0,{},c.defaults,o.settings()[0].aoColumns[this.s.dataIdx].searchBuilder)},c.prototype._populateCondition=function(){var o=[],d=Object.keys(this.s.conditions).length,p=this.s.dt,_=p.settings()[0].aoColumns,x=+this.dom.data.children("option:selected").val(),P,I;if(d===0){if(this.s.type=p.column(x).type(),_!==void 0){var B=_[x];B.searchBuilderType!==void 0&&B.searchBuilderType!==null?this.s.type=B.searchBuilderType:(this.s.type===void 0||this.s.type===null)&&(this.s.type=B.sType)}(this.s.type===null||this.s.type===void 0)&&(e.fn.dataTable.ext.oApi&&e.fn.dataTable.ext.oApi._fnColumnTypes(p.settings()[0]),this.s.type=p.column(x).type()),this.dom.condition.removeAttr("disabled").empty().append(this.dom.conditionTitle).addClass(this.classes.italic),this.dom.conditionTitle.prop("selected",!0);var E=p.settings()[0].oLanguage.sDecimal;E!==""&&this.s.type&&this.s.type.indexOf(E)===this.s.type.length-E.length&&(this.s.type.includes("num-fmt")?this.s.type=this.s.type.replace(E,""):this.s.type.includes("num")&&(this.s.type=this.s.type.replace(E,"")));var F=void 0;if(this.c.conditions[this.s.type]!==void 0)F=this.c.conditions[this.s.type];else if(this.s.type&&this.s.type==="datetime"){var U=k.use("moment"),R=k.use("luxon");U&&(F=this.c.conditions.moment,this.s.dateFormat=U().creationData().locale._longDateFormat.L),R&&(F=this.c.conditions.luxon,this.s.dateFormat=R.DateTime.DATE_SHORT)}else this.s.type&&this.s.type.includes("datetime-")?(F=k.use("moment")?this.c.conditions.moment:this.c.conditions.luxon,this.s.dateFormat=this.s.type.replace(/datetime-/g,"")):this.s.type&&this.s.type.includes("moment")?(F=this.c.conditions.moment,this.s.dateFormat=this.s.type.replace(/moment-/g,"")):this.s.type&&this.s.type.includes("luxon")?(F=this.c.conditions.luxon,this.s.dateFormat=this.s.type.replace(/luxon-/g,"")):F=this.c.conditions.string;for(var g=0,y=Object.keys(F);g<y.length;g++)if(P=y[g],F[P]!==null){if(p.page.info().serverSide&&F[P].init===c.initSelect){var T=_[x];this.s.serverData&&this.s.serverData[T.data]?(F[P].init=c.initSelectSSP,F[P].inputValue=c.inputValueSelect,F[P].isInputValid=c.isInputValidSelect):(F[P].init=c.initInput,F[P].inputValue=c.inputValueInput,F[P].isInputValid=c.isInputValidInput)}this.s.conditions[P]=F[P],I=F[P].conditionName,typeof I=="function"&&(I=I(p,this.c.i18n)),o.push(e("<option>",{text:I,value:P}).addClass(this.classes.option).addClass(this.classes.notItalic))}}else if(d>0){this.dom.condition.empty().removeAttr("disabled").addClass(this.classes.italic);for(var D=0,A=Object.keys(this.s.conditions);D<A.length;D++){P=A[D];var L=this.s.conditions[P].conditionName;typeof L=="function"&&(L=L(p,this.c.i18n));var N=e("<option>",{text:L,value:P}).addClass(this.classes.option).addClass(this.classes.notItalic);this.s.condition!==void 0&&this.s.condition===L&&(N.prop("selected",!0),this.dom.condition.removeClass(this.classes.italic)),o.push(N)}}else{this.dom.condition.attr("disabled","true").addClass(this.classes.italic);return}for(var W=0,H=o;W<H.length;W++){var M=H[W];this.dom.condition.append(M)}if(_[x].searchBuilder&&_[x].searchBuilder.defaultCondition){var j=_[x].searchBuilder.defaultCondition;if(typeof j=="number")this.dom.condition.prop("selectedIndex",j),this.dom.condition.trigger("change");else if(typeof j=="string")for(var $=0;$<o.length;$++)for(var z=0,X=Object.keys(this.s.conditions);z<X.length;z++){var K=X[z];if(I=this.s.conditions[K].conditionName,(typeof I=="string"?I:I(p,this.c.i18n))===o[$].text()&&K===j){this.dom.condition.prop("selectedIndex",this.dom.condition.children().toArray().indexOf(o[$][0])).removeClass(this.classes.italic),this.dom.condition.trigger("change"),$=o.length;break}}}else this.dom.condition.prop("selectedIndex",0)},c.prototype._populateData=function(){var o=this.s.dt.settings()[0].aoColumns,d=this.s.dt.columns(this.c.columns).indexes().toArray();this.dom.data.empty().append(this.dom.dataTitle);for(var p=0;p<o.length;p++)if(this.c.columns===!0||d.includes(p)){var _=o[p],x={index:p,origData:_.data,text:(_.searchBuilderTitle||_.sTitle).replace(/(<([^>]+)>)/ig,"")};this.dom.data.append(e("<option>",{text:x.text,value:x.index}).addClass(this.classes.option).addClass(this.classes.notItalic).prop("origData",_.data).prop("selected",this.s.dataIdx===x.index)),this.s.dataIdx===x.index&&this.dom.dataTitle.removeProp("selected")}},c.prototype._populateValue=function(o){var d=this,p=this.s.filled,_;this.s.filled=!1,setTimeout(function(){d.dom.defaultValue.remove()},50);for(var x=function(F){setTimeout(function(){F!==void 0&&F.remove()},50)},P=0,I=this.dom.value;P<I.length;P++){var B=I[P];x(B)}var E=this.dom.inputCont.children();if(E.length>1)for(_=0;_<E.length;_++)e(E[_]).remove();for(o!==void 0&&this.s.dt.columns().every(function(F){d.s.dt.settings()[0].aoColumns[F].sTitle===o.data&&(d.s.dataIdx=F)}),this.dom.value=[].concat(this.s.conditions[this.s.condition].init(this,c.updateListener,o!==void 0?o.value:void 0)),o!==void 0&&o.value!==void 0&&(this.s.value=o.value),this.dom.inputCont.empty(),this.dom.value[0]!==void 0&&e(this.dom.value[0]).appendTo(this.dom.inputCont).trigger("dtsb-inserted"),_=1;_<this.dom.value.length;_++)e(this.dom.value[_]).insertAfter(this.dom.value[_-1]).trigger("dtsb-inserted");this.s.filled=this.s.conditions[this.s.condition].isInputValid(this.dom.value,this),this.setListeners(),!this.s.preventRedraw&&p!==this.s.filled&&(this.s.dt.page.info().serverSide||this.doSearch(),this.setListeners())},c.prototype._throttle=function(o,d){d===void 0&&(d=200);var p=null,_=null,x=this;return d===null&&(d=200),function(){for(var P=[],I=0;I<arguments.length;I++)P[I]=arguments[I];var B=+new Date;p!==null&&B<p+d?clearTimeout(_):p=B,_=setTimeout(function(){p=null,o.apply(x,P)},d)}},c.version="1.1.0",c.classes={button:"dtsb-button",buttonContainer:"dtsb-buttonContainer",condition:"dtsb-condition",container:"dtsb-criteria",data:"dtsb-data",delete:"dtsb-delete",dropDown:"dtsb-dropDown",greyscale:"dtsb-greyscale",input:"dtsb-input",inputCont:"dtsb-inputCont",italic:"dtsb-italic",joiner:"dtsb-joiner",left:"dtsb-left",notItalic:"dtsb-notItalic",option:"dtsb-option",right:"dtsb-right",select:"dtsb-select",value:"dtsb-value",vertical:"dtsb-vertical"},c.initSelect=function(o,d,p,_){p===void 0&&(p=null),_===void 0&&(_=!1);var x=o.dom.data.children("option:selected").val(),P=o.s.dt.rows().indexes().toArray(),I=o.s.dt.settings()[0].fastData;o.dom.valueTitle.prop("selected",!0);var B=e("<select/>").addClass(c.classes.value).addClass(c.classes.dropDown).addClass(c.classes.italic).addClass(c.classes.select).append(o.dom.valueTitle).on("change.dtsb",function(){e(this).removeClass(c.classes.italic),d(o,this)});o.c.greyscale&&B.addClass(c.classes.greyscale);for(var E=[],F=[],U=0,R=P;U<R.length;U++){var g=R[U],y=I(g,x,typeof o.c.orthogonal=="string"?o.c.orthogonal:o.c.orthogonal.search),T={filter:typeof y=="string"?y.replace(/[\r\n\u2028]/g," "):y,index:g,text:I(g,x,typeof o.c.orthogonal=="string"?o.c.orthogonal:o.c.orthogonal.display)};o.s.type==="array"&&(T.filter=Array.isArray(T.filter)?T.filter:[T.filter],T.text=Array.isArray(T.text)?T.text:[T.text]);var D=function(H,M){o.s.type.includes("html")&&H!==null&&typeof H=="string"&&H.replace(/(<([^>]+)>)/ig,"");var j=e("<option>",{type:Array.isArray(H)?"Array":"String",value:H}).data("sbv",H).addClass(o.classes.option).addClass(o.classes.notItalic).html(typeof M=="string"?M.replace(/(<([^>]+)>)/ig,""):M),$=j.val();E.indexOf($)===-1&&(E.push($),F.push(j),p!==null&&Array.isArray(p[0])&&(p[0]=p[0].sort().join(",")),p!==null&&j.val()===p[0]&&(j.prop("selected",!0),B.removeClass(c.classes.italic),o.dom.valueTitle.removeProp("selected")))};if(_)for(var A=0;A<T.filter.length;A++)D(T.filter[A],T.text[A]);else D(T.filter,Array.isArray(T.text)?T.text.join(", "):T.text)}F.sort(function(H,M){if(o.s.type==="array"||o.s.type==="string"||o.s.type==="html")return H.val()<M.val()?-1:H.val()>M.val()?1:0;if(o.s.type==="num"||o.s.type==="html-num")return+H.val().replace(/(<([^>]+)>)/ig,"")<+M.val().replace(/(<([^>]+)>)/ig,"")?-1:+H.val().replace(/(<([^>]+)>)/ig,"")>+M.val().replace(/(<([^>]+)>)/ig,"")?1:0;if(o.s.type==="num-fmt"||o.s.type==="html-num-fmt")return+H.val().replace(/[^0-9.]/g,"")<+M.val().replace(/[^0-9.]/g,"")?-1:+H.val().replace(/[^0-9.]/g,"")>+M.val().replace(/[^0-9.]/g,"")?1:0});for(var L=0,N=F;L<N.length;L++){var W=N[L];B.append(W)}return B},c.initSelectSSP=function(o,d,p){p===void 0&&(p=null),o.dom.valueTitle.prop("selected",!0);var _=e("<select/>").addClass(c.classes.value).addClass(c.classes.dropDown).addClass(c.classes.italic).addClass(c.classes.select).append(o.dom.valueTitle).on("change.dtsb",function(){e(this).removeClass(c.classes.italic),d(o,this)});o.c.greyscale&&_.addClass(c.classes.greyscale);for(var x=[],P=0,I=o.s.serverData[o.s.origData];P<I.length;P++){var B=I[P],E=B.value,F=B.label,U=function(T,D){o.s.type.includes("html")&&T!==null&&typeof T=="string"&&T.replace(/(<([^>]+)>)/ig,"");var A=e("<option>",{type:Array.isArray(T)?"Array":"String",value:T}).data("sbv",T).addClass(o.classes.option).addClass(o.classes.notItalic).html(typeof D=="string"?D.replace(/(<([^>]+)>)/ig,""):D);x.push(A),p!==null&&A.val()===p[0]&&(A.prop("selected",!0),_.removeClass(c.classes.italic),o.dom.valueTitle.removeProp("selected"))};U(E,F)}for(var R=0,g=x;R<g.length;R++){var y=g[R];_.append(y)}return _},c.initSelectArray=function(o,d,p){return p===void 0&&(p=null),c.initSelect(o,d,p,!0)},c.initInput=function(o,d,p){p===void 0&&(p=null);var _=o.s.dt.settings()[0].searchDelay,x=e("<input/>").addClass(c.classes.value).addClass(c.classes.input).on("input.dtsb keypress.dtsb",o._throttle(function(P){var I=P.keyCode||P.which;return d(o,this,I)},_===null?100:_));return o.c.greyscale&&x.addClass(c.classes.greyscale),p!==null&&x.val(p[0]),o.s.dt.one("draw.dtsb",function(){o.s.topGroup.trigger("dtsb-redrawLogic")}),x},c.init2Input=function(o,d,p){p===void 0&&(p=null);var _=o.s.dt.settings()[0].searchDelay,x=[e("<input/>").addClass(c.classes.value).addClass(c.classes.input).on("input.dtsb keypress.dtsb",o._throttle(function(P){var I=P.keyCode||P.which;return d(o,this,I)},_===null?100:_)),e("<span>").addClass(o.classes.joiner).html(o.s.dt.i18n("searchBuilder.valueJoiner",o.c.i18n.valueJoiner)),e("<input/>").addClass(c.classes.value).addClass(c.classes.input).on("input.dtsb keypress.dtsb",o._throttle(function(P){var I=P.keyCode||P.which;return d(o,this,I)},_===null?100:_))];return o.c.greyscale&&(x[0].addClass(c.classes.greyscale),x[2].addClass(c.classes.greyscale)),p!==null&&(x[0].val(p[0]),x[2].val(p[1])),o.s.dt.one("draw.dtsb",function(){o.s.topGroup.trigger("dtsb-redrawLogic")}),x},c.initDate=function(o,d,p){p===void 0&&(p=null);var _=o.s.dt.settings()[0].searchDelay,x=o.s.dt.i18n("datetime",{},!1),P=e("<input/>").addClass(c.classes.value).addClass(c.classes.input).dtDateTime({format:o.s.dateFormat?o.s.dateFormat:void 0,i18n:x}).on("change.dtsb",o._throttle(function(){return d(o,this)},_===null?100:_)).on("input.dtsb keypress.dtsb",function(I){o._throttle(function(){var B=I.keyCode||I.which;return d(o,this,B)},_===null?100:_)});return o.c.greyscale&&P.addClass(c.classes.greyscale),p!==null&&P.val(p[0]),o.s.dt.one("draw.dtsb",function(){o.s.topGroup.trigger("dtsb-redrawLogic")}),P},c.initNoValue=function(o){return o.s.dt.one("draw.dtsb",function(){o.s.topGroup.trigger("dtsb-redrawLogic")}),[]},c.init2Date=function(o,d,p){var _=this;p===void 0&&(p=null);var x=o.s.dt.settings()[0].searchDelay,P=o.s.dt.i18n("datetime",{},!1),I=[e("<input/>").addClass(c.classes.value).addClass(c.classes.input).dtDateTime({format:o.s.dateFormat?o.s.dateFormat:void 0,i18n:P}).on("change.dtsb",x!==null?k.util.throttle(function(){return d(o,this)},x):function(){d(o,_)}).on("input.dtsb keypress.dtsb",function(B){k.util.throttle(function(){var E=B.keyCode||B.which;return d(o,this,E)},x===null?0:x)}),e("<span>").addClass(o.classes.joiner).html(o.s.dt.i18n("searchBuilder.valueJoiner",o.c.i18n.valueJoiner)),e("<input/>").addClass(c.classes.value).addClass(c.classes.input).dtDateTime({format:o.s.dateFormat?o.s.dateFormat:void 0,i18n:P}).on("change.dtsb",x!==null?k.util.throttle(function(){return d(o,this)},x):function(){d(o,_)}).on("input.dtsb keypress.dtsb",!o.c.enterSearch&&!(o.s.dt.settings()[0].oInit.search!==void 0&&o.s.dt.settings()[0].oInit.search.return)&&x!==null?k.util.throttle(function(){return d(o,this)},x):function(B){var E=B.keyCode||B.which;d(o,_,E)})];return o.c.greyscale&&(I[0].addClass(c.classes.greyscale),I[2].addClass(c.classes.greyscale)),p!==null&&p.length>0&&(I[0].val(p[0]),I[2].val(p[1])),o.s.dt.one("draw.dtsb",function(){o.s.topGroup.trigger("dtsb-redrawLogic")}),I},c.isInputValidSelect=function(o){for(var d=!0,p=0,_=o;p<_.length;p++){var x=_[p];x.children("option:selected").length===x.children("option").length-x.children("option."+c.classes.notItalic).length&&x.children("option:selected").length===1&&x.children("option:selected")[0]===x.children("option")[0]&&(d=!1)}return d},c.isInputValidInput=function(o){for(var d=!0,p=0,_=o;p<_.length;p++){var x=_[p];x.is("input")&&x.val().length===0&&(d=!1)}return d},c.inputValueSelect=function(o){for(var d=[],p=0,_=o;p<_.length;p++){var x=_[p];if(x.is("select")){var P=[].concat(x.children("option:selected").data("sbv")).map(function(I){return c._escapeHTML(I)});d.push.apply(d,P)}}return d},c.inputValueInput=function(o){for(var d=[],p=0,_=o;p<_.length;p++){var x=_[p];x.is("input")&&d.push(c._escapeHTML(x.val()))}return d.map(t.util.diacritics)},c.updateListener=function(o,d,p){var _=o.s.conditions[o.s.condition],x;if(o.s.filled=_.isInputValid(o.dom.value,o),o.s.value=_.inputValue(o.dom.value,o),!o.s.filled){(!o.c.enterSearch&&!(o.s.dt.settings()[0].oInit.search!==void 0&&o.s.dt.settings()[0].oInit.search.return)||p===13)&&o.doSearch();return}for(Array.isArray(o.s.value)||(o.s.value=[o.s.value]),x=0;x<o.s.value.length;x++)Array.isArray(o.s.value[x])&&o.s.value[x].sort();var P=null,I=null;for(x=0;x<o.dom.value.length;x++)d===o.dom.value[x][0]&&(P=x,d.selectionStart!==void 0&&(I=d.selectionStart));(!o.c.enterSearch&&!(o.s.dt.settings()[0].oInit.search!==void 0&&o.s.dt.settings()[0].oInit.search.return)||p===13||d.nodeName.toLowerCase()==="select")&&o.doSearch(),P!==null&&(o.dom.value[P].removeClass(o.classes.italic),o.dom.value[P].focus(),I!==null&&o.dom.value[P][0].setSelectionRange(I,I))},c.dateConditions={"=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.equals",d.conditions.date.equals)},init:c.initDate,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return o=o.replace(/(\/|-|,)/g,"-"),o===d[0]}},"!=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.not",d.conditions.date.not)},init:c.initDate,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return o=o.replace(/(\/|-|,)/g,"-"),o!==d[0]}},"<":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.before",d.conditions.date.before)},init:c.initDate,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return o=o.replace(/(\/|-|,)/g,"-"),o<d[0]}},">":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.after",d.conditions.date.after)},init:c.initDate,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return o=o.replace(/(\/|-|,)/g,"-"),o>d[0]}},between:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.between",d.conditions.date.between)},init:c.init2Date,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return o=o.replace(/(\/|-|,)/g,"-"),d[0]<d[1]?d[0]<=o&&o<=d[1]:d[1]<=o&&o<=d[0]}},"!between":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.notBetween",d.conditions.date.notBetween)},init:c.init2Date,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return o=o.replace(/(\/|-|,)/g,"-"),d[0]<d[1]?!(d[0]<=o&&o<=d[1]):!(d[1]<=o&&o<=d[0])}},null:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.empty",d.conditions.date.empty)},init:c.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(o){return o==null||o.length===0}},"!null":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.notEmpty",d.conditions.date.notEmpty)},init:c.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(o){return!(o==null||o.length===0)}}},c.momentDateConditions={"=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.equals",d.conditions.date.equals)},init:c.initDate,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){return n()(o,p.s.dateFormat).valueOf()===n()(d[0],p.s.dateFormat).valueOf()}},"!=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.not",d.conditions.date.not)},init:c.initDate,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){return n()(o,p.s.dateFormat).valueOf()!==n()(d[0],p.s.dateFormat).valueOf()}},"<":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.before",d.conditions.date.before)},init:c.initDate,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){return n()(o,p.s.dateFormat).valueOf()<n()(d[0],p.s.dateFormat).valueOf()}},">":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.after",d.conditions.date.after)},init:c.initDate,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){return n()(o,p.s.dateFormat).valueOf()>n()(d[0],p.s.dateFormat).valueOf()}},between:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.between",d.conditions.date.between)},init:c.init2Date,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){var _=n()(o,p.s.dateFormat).valueOf(),x=n()(d[0],p.s.dateFormat).valueOf(),P=n()(d[1],p.s.dateFormat).valueOf();return x<P?x<=_&&_<=P:P<=_&&_<=x}},"!between":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.notBetween",d.conditions.date.notBetween)},init:c.init2Date,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){var _=n()(o,p.s.dateFormat).valueOf(),x=n()(d[0],p.s.dateFormat).valueOf(),P=n()(d[1],p.s.dateFormat).valueOf();return x<P?!(+x<=+_&&+_<=+P):!(+P<=+_&&+_<=+x)}},null:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.empty",d.conditions.date.empty)},init:c.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(o){return o==null||o.length===0}},"!null":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.notEmpty",d.conditions.date.notEmpty)},init:c.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(o){return!(o==null||o.length===0)}}},c.luxonDateConditions={"=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.equals",d.conditions.date.equals)},init:c.initDate,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){return r().DateTime.fromFormat(o,p.s.dateFormat).ts===r().DateTime.fromFormat(d[0],p.s.dateFormat).ts}},"!=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.not",d.conditions.date.not)},init:c.initDate,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){return r().DateTime.fromFormat(o,p.s.dateFormat).ts!==r().DateTime.fromFormat(d[0],p.s.dateFormat).ts}},"<":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.before",d.conditions.date.before)},init:c.initDate,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){return r().DateTime.fromFormat(o,p.s.dateFormat).ts<r().DateTime.fromFormat(d[0],p.s.dateFormat).ts}},">":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.after",d.conditions.date.after)},init:c.initDate,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){return r().DateTime.fromFormat(o,p.s.dateFormat).ts>r().DateTime.fromFormat(d[0],p.s.dateFormat).ts}},between:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.between",d.conditions.date.between)},init:c.init2Date,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){var _=r().DateTime.fromFormat(o,p.s.dateFormat).ts,x=r().DateTime.fromFormat(d[0],p.s.dateFormat).ts,P=r().DateTime.fromFormat(d[1],p.s.dateFormat).ts;return x<P?x<=_&&_<=P:P<=_&&_<=x}},"!between":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.notBetween",d.conditions.date.notBetween)},init:c.init2Date,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){var _=r().DateTime.fromFormat(o,p.s.dateFormat).ts,x=r().DateTime.fromFormat(d[0],p.s.dateFormat).ts,P=r().DateTime.fromFormat(d[1],p.s.dateFormat).ts;return x<P?!(+x<=+_&&+_<=+P):!(+P<=+_&&+_<=+x)}},null:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.empty",d.conditions.date.empty)},init:c.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(o){return o==null||o.length===0}},"!null":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.date.notEmpty",d.conditions.date.notEmpty)},init:c.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(o){return!(o==null||o.length===0)}}},c.numConditions={"=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.equals",d.conditions.number.equals)},init:c.initSelect,inputValue:c.inputValueSelect,isInputValid:c.isInputValidSelect,search:function(o,d){return+o==+d[0]}},"!=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.not",d.conditions.number.not)},init:c.initSelect,inputValue:c.inputValueSelect,isInputValid:c.isInputValidSelect,search:function(o,d){return+o!=+d[0]}},"<":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.lt",d.conditions.number.lt)},init:c.initInput,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return+o<+d[0]}},"<=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.lte",d.conditions.number.lte)},init:c.initInput,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return+o<=+d[0]}},">=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.gte",d.conditions.number.gte)},init:c.initInput,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return+o>=+d[0]}},">":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.gt",d.conditions.number.gt)},init:c.initInput,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return+o>+d[0]}},between:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.between",d.conditions.number.between)},init:c.init2Input,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return+d[0]<+d[1]?+d[0]<=+o&&+o<=+d[1]:+d[1]<=+o&&+o<=+d[0]}},"!between":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.notBetween",d.conditions.number.notBetween)},init:c.init2Input,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return+d[0]<+d[1]?!(+d[0]<=+o&&+o<=+d[1]):!(+d[1]<=+o&&+o<=+d[0])}},null:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.empty",d.conditions.number.empty)},init:c.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(o){return o==null||o.length===0}},"!null":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.notEmpty",d.conditions.number.notEmpty)},init:c.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(o){return!(o==null||o.length===0)}}},c.numFmtConditions={"=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.equals",d.conditions.number.equals)},init:c.initSelect,inputValue:c.inputValueSelect,isInputValid:c.isInputValidSelect,search:function(o,d,p){return p.parseNumber(o)===p.parseNumber(d[0])}},"!=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.not",d.conditions.number.not)},init:c.initSelect,inputValue:c.inputValueSelect,isInputValid:c.isInputValidSelect,search:function(o,d,p){return p.parseNumber(o)!==p.parseNumber(d[0])}},"<":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.lt",d.conditions.number.lt)},init:c.initInput,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){return p.parseNumber(o)<p.parseNumber(d[0])}},"<=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.lte",d.conditions.number.lte)},init:c.initInput,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){return p.parseNumber(o)<=p.parseNumber(d[0])}},">=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.gte",d.conditions.number.gte)},init:c.initInput,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){return p.parseNumber(o)>=p.parseNumber(d[0])}},">":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.gt",d.conditions.number.gt)},init:c.initInput,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){return p.parseNumber(o)>p.parseNumber(d[0])}},between:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.between",d.conditions.number.between)},init:c.init2Input,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){var _=p.parseNumber(o),x=p.parseNumber(d[0]),P=p.parseNumber(d[1]);return+x<+P?+x<=+_&&+_<=+P:+P<=+_&&+_<=+x}},"!between":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.notBetween",d.conditions.number.notBetween)},init:c.init2Input,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d,p){var _=p.parseNumber(o),x=p.parseNumber(d[0]),P=p.parseNumber(d[1]);return+x<+P?!(+x<=+_&&+_<=+P):!(+P<=+_&&+_<=+x)}},null:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.empty",d.conditions.number.empty)},init:c.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(o){return o==null||o.length===0}},"!null":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.number.notEmpty",d.conditions.number.notEmpty)},init:c.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(o){return!(o==null||o.length===0)}}},c.stringConditions={"=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.string.equals",d.conditions.string.equals)},init:c.initSelect,inputValue:c.inputValueSelect,isInputValid:c.isInputValidSelect,search:function(o,d){return o===d[0]}},"!=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.string.not",d.conditions.string.not)},init:c.initSelect,inputValue:c.inputValueSelect,isInputValid:c.isInputValidInput,search:function(o,d){return o!==d[0]}},starts:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.string.startsWith",d.conditions.string.startsWith)},init:c.initInput,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return o.toLowerCase().indexOf(d[0].toLowerCase())===0}},"!starts":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.string.notStartsWith",d.conditions.string.notStartsWith)},init:c.initInput,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return o.toLowerCase().indexOf(d[0].toLowerCase())!==0}},contains:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.string.contains",d.conditions.string.contains)},init:c.initInput,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return o.toLowerCase().includes(d[0].toLowerCase())}},"!contains":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.string.notContains",d.conditions.string.notContains)},init:c.initInput,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return!o.toLowerCase().includes(d[0].toLowerCase())}},ends:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.string.endsWith",d.conditions.string.endsWith)},init:c.initInput,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return o.toLowerCase().endsWith(d[0].toLowerCase())}},"!ends":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.string.notEndsWith",d.conditions.string.notEndsWith)},init:c.initInput,inputValue:c.inputValueInput,isInputValid:c.isInputValidInput,search:function(o,d){return!o.toLowerCase().endsWith(d[0].toLowerCase())}},null:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.string.empty",d.conditions.string.empty)},init:c.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(o){return o==null||o.length===0}},"!null":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.string.notEmpty",d.conditions.string.notEmpty)},init:c.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(o){return!(o==null||o.length===0)}}},c.arrayConditions={contains:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.array.contains",d.conditions.array.contains)},init:c.initSelectArray,inputValue:c.inputValueSelect,isInputValid:c.isInputValidSelect,search:function(o,d){return o.includes(d[0])}},without:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.array.without",d.conditions.array.without)},init:c.initSelectArray,inputValue:c.inputValueSelect,isInputValid:c.isInputValidSelect,search:function(o,d){return o.indexOf(d[0])===-1}},"=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.array.equals",d.conditions.array.equals)},init:c.initSelect,inputValue:c.inputValueSelect,isInputValid:c.isInputValidSelect,search:function(o,d){if(o.length===d.length){d.sort();for(var p=0;p<o.length;p++)if(o[p]!==d[p])return!1;return!0}return!1}},"!=":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.array.not",d.conditions.array.not)},init:c.initSelect,inputValue:c.inputValueSelect,isInputValid:c.isInputValidSelect,search:function(o,d){if(o.length===d.length){d.sort();for(var p=0;p<o.length;p++)if(o[p]!==d[p])return!0;return!1}return!0}},null:{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.array.empty",d.conditions.array.empty)},init:c.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(o){return o==null||o.length===0}},"!null":{conditionName:function(o,d){return o.i18n("searchBuilder.conditions.array.notEmpty",d.conditions.array.notEmpty)},init:c.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(o){return o!=null&&o.length!==0}}},c.defaults={columns:!0,conditions:{array:c.arrayConditions,date:c.dateConditions,html:c.stringConditions,"html-num":c.numConditions,"html-num-fmt":c.numFmtConditions,luxon:c.luxonDateConditions,moment:c.momentDateConditions,num:c.numConditions,"num-fmt":c.numFmtConditions,string:c.stringConditions},depthLimit:!1,enterSearch:!1,filterChanged:void 0,greyscale:!1,i18n:{add:"Add Condition",button:{0:"Search Builder",_:"Search Builder (%d)"},clearAll:"Clear All",condition:"Condition",data:"Data",delete:"&times",deleteTitle:"Delete filtering rule",left:"<",leftTitle:"Outdent criteria",logicAnd:"And",logicOr:"Or",right:">",rightTitle:"Indent criteria",search:"Search",title:{0:"Custom Search Builder",_:"Custom Search Builder (%d)"},value:"Value",valueJoiner:"and"},liveSearch:!0,logic:"AND",orthogonal:{display:"display",search:"filter"},preDefined:!1},c}(),a;function l(c){a=c,c.fn.dataTable}var u=function(){function c(o,d,p,_,x,P,I){return _===void 0&&(_=0),x===void 0&&(x=!1),P===void 0&&(P=1),I===void 0&&(I=void 0),this.classes=a.extend(!0,{},c.classes),this.c=a.extend(!0,{},c.defaults,d),this.s={criteria:[],depth:P,dt:o,index:_,isChild:x,logic:void 0,opts:d,preventRedraw:!1,serverData:I,toDrop:void 0,topGroup:p},this.dom={add:a("<button/>").addClass(this.classes.add).addClass(this.classes.button).attr("type","button"),clear:a("<button>&times</button>").addClass(this.classes.button).addClass(this.classes.clearGroup).attr("type","button"),container:a("<div/>").addClass(this.classes.group),logic:a("<button><div/></button>").addClass(this.classes.logic).addClass(this.classes.button).attr("type","button"),logicContainer:a("<div/>").addClass(this.classes.logicContainer),search:a("<button/>").addClass(this.classes.search).addClass(this.classes.button).attr("type","button").css("display","none")},this.s.topGroup===void 0&&(this.s.topGroup=this.dom.container),this._setup(),this}return c.prototype.destroy=function(){this.dom.add.off(".dtsb"),this.dom.logic.off(".dtsb"),this.dom.search.off(".dtsb"),this.dom.container.trigger("dtsb-destroy").remove(),this.s.criteria=[]},c.prototype.getDetails=function(o){if(o===void 0&&(o=!1),this.s.criteria.length===0)return{};for(var d={criteria:[],logic:this.s.logic},p=0,_=this.s.criteria;p<_.length;p++){var x=_[p];d.criteria.push(x.criteria.getDetails(o))}return d},c.prototype.getNode=function(){return this.dom.container},c.prototype.rebuild=function(o){var d;if(!(o.criteria===void 0||o.criteria===null||Array.isArray(o.criteria)&&o.criteria.length===0)){if(this.s.logic=o.logic,this.dom.logic.children().first().html(this.s.logic==="OR"?this.s.dt.i18n("searchBuilder.logicOr",this.c.i18n.logicOr):this.s.dt.i18n("searchBuilder.logicAnd",this.c.i18n.logicAnd)),Array.isArray(o.criteria))for(var p=0,_=o.criteria;p<_.length;p++)d=_[p],d.logic!==void 0?this._addPrevGroup(d):d.logic===void 0&&this._addPrevCriteria(d);for(var x=0,P=this.s.criteria;x<P.length;x++)d=P[x],d.criteria instanceof i&&(d.criteria.updateArrows(this.s.criteria.length>1),this._setCriteriaListeners(d.criteria))}},c.prototype.redrawContents=function(){if(!this.s.preventRedraw){this.dom.container.children().detach(),this.dom.container.append(this.dom.logicContainer).append(this.dom.add),this.c.liveSearch||this.dom.container.append(this.dom.search),this.s.criteria.sort(function(p,_){return p.criteria.s.index<_.criteria.s.index?-1:p.criteria.s.index>_.criteria.s.index?1:0}),this.setListeners();for(var o=0;o<this.s.criteria.length;o++){var d=this.s.criteria[o].criteria;d instanceof i?(this.s.criteria[o].index=o,this.s.criteria[o].criteria.s.index=o,this.s.criteria[o].criteria.dom.container.insertBefore(this.dom.add),this._setCriteriaListeners(d),this.s.criteria[o].criteria.s.preventRedraw=this.s.preventRedraw,this.s.criteria[o].criteria.rebuild(this.s.criteria[o].criteria.getDetails()),this.s.criteria[o].criteria.s.preventRedraw=!1):d instanceof c&&d.s.criteria.length>0?(this.s.criteria[o].index=o,this.s.criteria[o].criteria.s.index=o,this.s.criteria[o].criteria.dom.container.insertBefore(this.dom.add),d.s.preventRedraw=this.s.preventRedraw,d.redrawContents(),d.s.preventRedraw=!1,this._setGroupListeners(d)):(this.s.criteria.splice(o,1),o--)}this.setupLogic()}},c.prototype.redrawLogic=function(){for(var o=0,d=this.s.criteria;o<d.length;o++){var p=d[o];p.criteria instanceof c&&p.criteria.redrawLogic()}this.setupLogic()},c.prototype.search=function(o,d){return this.s.logic==="AND"?this._andSearch(o,d):this.s.logic==="OR"?this._orSearch(o,d):!0},c.prototype.setupLogic=function(){if(this.dom.logicContainer.remove(),this.dom.clear.remove(),this.s.criteria.length<1){this.s.isChild||(this.dom.container.trigger("dtsb-destroy"),this.dom.container.css("margin-left",0)),this.dom.search.css("display","none");return}this.dom.clear.height("0px"),this.dom.logicContainer.append(this.dom.clear),this.s.isChild||this.dom.search.css("display","inline-block"),this.dom.container.prepend(this.dom.logicContainer);for(var o=0,d=this.s.criteria;o<d.length;o++){var p=d[o];p.criteria instanceof i&&p.criteria.setupButtons()}var _=this.dom.container.outerHeight()-1;this.dom.logicContainer.width(_),this._setLogicListener(),this.dom.container.css("margin-left",this.dom.logicContainer.outerHeight(!0));var x=this.dom.logicContainer.offset(),P=x.left,I=this.dom.container.offset().left,B=P-I,E=P-B-this.dom.logicContainer.outerHeight(!0);this.dom.logicContainer.offset({left:E});var F=this.dom.logicContainer.next(),U=x.top,R=a(F).offset().top,g=U-R,y=U-g;this.dom.logicContainer.offset({top:y}),this.dom.clear.outerHeight(this.dom.logicContainer.height()),this._setClearListener()},c.prototype.setListeners=function(){var o=this;this.dom.add.unbind("click"),this.dom.add.on("click.dtsb",function(){return o.s.isChild||o.dom.container.prepend(o.dom.logicContainer),o.addCriteria(),o.dom.container.trigger("dtsb-add"),o.s.dt.state.save(),!1}),this.dom.search.off("click.dtsb").on("click.dtsb",function(){o.s.dt.draw()});for(var d=0,p=this.s.criteria;d<p.length;d++){var _=p[d];_.criteria.setListeners()}this._setClearListener(),this._setLogicListener()},c.prototype.addCriteria=function(o){o===void 0&&(o=null);var d=o===null?this.s.criteria.length:o.s.index,p=new i(this.s.dt,this.s.opts,this.s.topGroup,d,this.s.depth,this.s.serverData,this.c.liveSearch);o!==null&&(p.c=o.c,p.s=o.s,p.s.depth=this.s.depth,p.classes=o.classes),p.populate();for(var _=!1,x=0;x<this.s.criteria.length;x++)x===0&&this.s.criteria[x].criteria.s.index>p.s.index?(p.getNode().insertBefore(this.s.criteria[x].criteria.dom.container),_=!0):x<this.s.criteria.length-1&&this.s.criteria[x].criteria.s.index<p.s.index&&this.s.criteria[x+1].criteria.s.index>p.s.index&&(p.getNode().insertAfter(this.s.criteria[x].criteria.dom.container),_=!0);_||p.getNode().insertBefore(this.dom.add),this.s.criteria.push({criteria:p,index:d}),this.s.criteria=this.s.criteria.sort(function(E,F){return E.criteria.s.index-F.criteria.s.index});for(var P=0,I=this.s.criteria;P<I.length;P++){var B=I[P];B.criteria instanceof i&&B.criteria.updateArrows(this.s.criteria.length>1)}this._setCriteriaListeners(p),p.setListeners(),this.setupLogic()},c.prototype.checkFilled=function(){for(var o=0,d=this.s.criteria;o<d.length;o++){var p=d[o];if(p.criteria instanceof i&&p.criteria.s.filled||p.criteria instanceof c&&p.criteria.checkFilled())return!0}return!1},c.prototype.count=function(){for(var o=0,d=0,p=this.s.criteria;d<p.length;d++){var _=p[d];_.criteria instanceof c?o+=_.criteria.count():o++}return o},c.prototype._addPrevGroup=function(o){var d=this.s.criteria.length,p=new c(this.s.dt,this.c,this.s.topGroup,d,!0,this.s.depth+1,this.s.serverData);this.s.criteria.push({criteria:p,index:d,logic:p.s.logic}),p.rebuild(o),this.s.criteria[d].criteria=p,this.s.topGroup.trigger("dtsb-redrawContents"),this._setGroupListeners(p)},c.prototype._addPrevCriteria=function(o){var d=this.s.criteria.length,p=new i(this.s.dt,this.s.opts,this.s.topGroup,d,this.s.depth,this.s.serverData);p.populate(),this.s.criteria.push({criteria:p,index:d}),p.s.preventRedraw=this.s.preventRedraw,p.rebuild(o),p.s.preventRedraw=!1,this.s.criteria[d].criteria=p,this.s.preventRedraw||this.s.topGroup.trigger("dtsb-redrawContents")},c.prototype._andSearch=function(o,d){if(this.s.criteria.length===0)return!0;for(var p=0,_=this.s.criteria;p<_.length;p++){var x=_[p];if(!(x.criteria instanceof i&&!x.criteria.s.filled)&&!x.criteria.search(o,d))return!1}return!0},c.prototype._orSearch=function(o,d){if(this.s.criteria.length===0)return!0;for(var p=!1,_=0,x=this.s.criteria;_<x.length;_++){var P=x[_];if(P.criteria instanceof i&&P.criteria.s.filled){if(p=!0,P.criteria.search(o,d))return!0}else if(P.criteria instanceof c&&P.criteria.checkFilled()&&(p=!0,P.criteria.search(o,d)))return!0}return!p},c.prototype._removeCriteria=function(o,d){d===void 0&&(d=!1);var p;if(this.s.criteria.length<=1&&this.s.isChild)this.destroy();else{var _=void 0;for(p=0;p<this.s.criteria.length;p++)this.s.criteria[p].index===o.s.index&&(!d||this.s.criteria[p].criteria instanceof c)&&(_=p);for(_!==void 0&&this.s.criteria.splice(_,1),p=0;p<this.s.criteria.length;p++)this.s.criteria[p].index=p,this.s.criteria[p].criteria.s.index=p}},c.prototype._setCriteriaListeners=function(o){var d=this;o.dom.delete.unbind("click").on("click.dtsb",function(){d._removeCriteria(o),o.dom.container.remove();for(var p=0,_=d.s.criteria;p<_.length;p++){var x=_[p];x.criteria instanceof i&&x.criteria.updateArrows(d.s.criteria.length>1)}return o.destroy(),d.s.dt.draw(),d.s.topGroup.trigger("dtsb-redrawContents"),!1}),o.dom.right.unbind("click").on("click.dtsb",function(){var p=o.s.index,_=new c(d.s.dt,d.s.opts,d.s.topGroup,o.s.index,!0,d.s.depth+1,d.s.serverData);return _.addCriteria(o),d.s.criteria[p].criteria=_,d.s.criteria[p].logic="AND",d.s.topGroup.trigger("dtsb-redrawContents"),d._setGroupListeners(_),!1}),o.dom.left.unbind("click").on("click.dtsb",function(){d.s.toDrop=new i(d.s.dt,d.s.opts,d.s.topGroup,o.s.index,void 0,d.s.serverData),d.s.toDrop.s=o.s,d.s.toDrop.c=o.c,d.s.toDrop.classes=o.classes,d.s.toDrop.populate();var p=d.s.toDrop.s.index;return d.dom.container.trigger("dtsb-dropCriteria"),o.s.index=p,d._removeCriteria(o),d.s.topGroup.trigger("dtsb-redrawContents"),d.s.dt.draw(),!1})},c.prototype._setClearListener=function(){var o=this;this.dom.clear.unbind("click").on("click.dtsb",function(){return o.s.isChild?(o.destroy(),o.s.topGroup.trigger("dtsb-redrawContents"),!1):(o.dom.container.trigger("dtsb-clearContents"),!1)})},c.prototype._setGroupListeners=function(o){var d=this;o.dom.add.unbind("click").on("click.dtsb",function(){return d.setupLogic(),d.dom.container.trigger("dtsb-add"),!1}),o.dom.container.unbind("dtsb-add").on("dtsb-add.dtsb",function(){return d.setupLogic(),d.dom.container.trigger("dtsb-add"),!1}),o.dom.container.unbind("dtsb-destroy").on("dtsb-destroy.dtsb",function(){return d._removeCriteria(o,!0),o.dom.container.remove(),d.setupLogic(),!1}),o.dom.container.unbind("dtsb-dropCriteria").on("dtsb-dropCriteria.dtsb",function(){var p=o.s.toDrop;return p.s.index=o.s.index,p.updateArrows(d.s.criteria.length>1),d.addCriteria(p),!1}),o.setListeners()},c.prototype._setup=function(){this.setListeners(),this.dom.add.html(this.s.dt.i18n("searchBuilder.add",this.c.i18n.add)),this.dom.search.html(this.s.dt.i18n("searchBuilder.search",this.c.i18n.search)),this.dom.logic.children().first().html(this.c.logic==="OR"?this.s.dt.i18n("searchBuilder.logicOr",this.c.i18n.logicOr):this.s.dt.i18n("searchBuilder.logicAnd",this.c.i18n.logicAnd)),this.s.logic=this.c.logic==="OR"?"OR":"AND",this.c.greyscale&&this.dom.logic.addClass(this.classes.greyscale),this.dom.logicContainer.append(this.dom.logic).append(this.dom.clear),this.s.isChild&&this.dom.container.append(this.dom.logicContainer),this.dom.container.append(this.dom.add),this.c.liveSearch||this.dom.container.append(this.dom.search)},c.prototype._setLogicListener=function(){var o=this;this.dom.logic.unbind("click").on("click.dtsb",function(){o._toggleLogic(),o.s.dt.draw();for(var d=0,p=o.s.criteria;d<p.length;d++){var _=p[d];_.criteria.setListeners()}})},c.prototype._toggleLogic=function(){this.s.logic==="OR"?(this.s.logic="AND",this.dom.logic.children().first().html(this.s.dt.i18n("searchBuilder.logicAnd",this.c.i18n.logicAnd))):this.s.logic==="AND"&&(this.s.logic="OR",this.dom.logic.children().first().html(this.s.dt.i18n("searchBuilder.logicOr",this.c.i18n.logicOr)))},c.version="1.1.0",c.classes={add:"dtsb-add",button:"dtsb-button",clearGroup:"dtsb-clearGroup",greyscale:"dtsb-greyscale",group:"dtsb-group",inputButton:"dtsb-iptbtn",logic:"dtsb-logic",logicContainer:"dtsb-logicContainer",search:"dtsb-search"},c.defaults={columns:!0,conditions:{date:i.dateConditions,html:i.stringConditions,"html-num":i.numConditions,"html-num-fmt":i.numFmtConditions,luxon:i.luxonDateConditions,moment:i.momentDateConditions,num:i.numConditions,"num-fmt":i.numFmtConditions,string:i.stringConditions},depthLimit:!1,enterSearch:!1,filterChanged:void 0,greyscale:!1,liveSearch:!0,i18n:{add:"Add Condition",button:{0:"Search Builder",_:"Search Builder (%d)"},clearAll:"Clear All",condition:"Condition",data:"Data",delete:"&times",deleteTitle:"Delete filtering rule",left:"<",leftTitle:"Outdent criteria",logicAnd:"And",logicOr:"Or",right:">",rightTitle:"Indent criteria",search:"Search",title:{0:"Custom Search Builder",_:"Custom Search Builder (%d)"},value:"Value",valueJoiner:"and"},logic:"AND",orthogonal:{display:"display",search:"filter"},preDefined:!1},c}(),h,f;function b(c){h=c,f=c.fn.DataTable}var v=function(){function c(o,d){var p=this;if(!f||!f.versionCheck||!f.versionCheck("2"))throw new Error("SearchBuilder requires DataTables 2 or newer");var _=new f.Api(o);if(this.classes=h.extend(!0,{},c.classes),this.c=h.extend(!0,{},c.defaults,d),this.dom={clearAll:h('<button type="button">'+_.i18n("searchBuilder.clearAll",this.c.i18n.clearAll)+"</button>").addClass(this.classes.clearAll).addClass(this.classes.button).attr("type","button"),container:h("<div/>").addClass(this.classes.container),title:h("<div/>").addClass(this.classes.title),titleRow:h("<div/>").addClass(this.classes.titleRow),topGroup:void 0},this.s={dt:_,opts:d,search:void 0,serverData:void 0,topGroup:void 0},_.settings()[0]._searchBuilder===void 0)return _.settings()[0]._searchBuilder=this,this.s.dt.page.info().serverSide&&(this.s.dt.on("preXhr.dtsb",function(x,P,I){var B=p.s.dt.state.loaded();B&&B.searchBuilder&&(I.searchBuilder=p._collapseArray(B.searchBuilder))}),this.s.dt.on("xhr.dtsb",function(x,P,I){I&&I.searchBuilder&&I.searchBuilder.options&&(p.s.serverData=I.searchBuilder.options)})),this.s.dt.settings()[0]._bInitComplete?this._setUp():_.one("init.dt",function(){p._setUp()}),this}return c.prototype.getDetails=function(o){return o===void 0&&(o=!1),this.s.topGroup?this.s.topGroup.getDetails(o):{}},c.prototype.getNode=function(){return this.dom.container},c.prototype.rebuild=function(o,d){return d===void 0&&(d=!0),this.dom.clearAll.trigger("click",!1),o==null?this:(this.s.topGroup.s.preventRedraw=!0,this.s.topGroup.rebuild(o),this.s.topGroup.s.preventRedraw=!1,this._checkClear(),this._updateTitle(this.s.topGroup.count()),this.s.topGroup.redrawContents(),d&&this.s.dt.draw(!1),this.s.topGroup.setListeners(),this)},c.prototype._applyPreDefDefaults=function(o){var d=this;o.criteria!==void 0&&o.logic===void 0&&(o.logic="AND");for(var p=function(B){B.criteria!==void 0?B=_._applyPreDefDefaults(B):_.s.dt.columns().every(function(E){d.s.dt.settings()[0].aoColumns[E].sTitle===B.data&&(B.dataIdx=E)})},_=this,x=0,P=o.criteria;x<P.length;x++){var I=P[x];p(I)}return o},c.prototype._setUp=function(o){var d=this;if(o===void 0&&(o=!0),typeof this.s.dt.column().type!="function"&&k.Api.registerPlural("columns().types()","column().type()",function(){return this.iterator("column",function(R,g){return R.aoColumns[g].sType},1)}),!f.DateTime){var p=this.s.dt.columns().types().toArray();if(p===void 0||p.includes(void 0)||p.includes(null)){p=[];for(var _=0,x=this.s.dt.settings()[0].aoColumns;_<x.length;_++){var P=x[_];p.push(P.searchBuilderType!==void 0?P.searchBuilderType:P.sType)}}var I=this.s.dt.columns().toArray();(p===void 0||p.includes(void 0)||p.includes(null))&&(h.fn.dataTable.ext.oApi&&h.fn.dataTable.ext.oApi._fnColumnTypes(this.s.dt.settings()[0]),p=this.s.dt.columns().types().toArray());for(var B=0;B<I[0].length;B++){var E=I[0][B],F=p[E];if((this.c.columns===!0||Array.isArray(this.c.columns)&&this.c.columns.includes(B))&&(F.includes("date")||F.includes("moment")||F.includes("luxon")))throw alert("SearchBuilder Requires DateTime when used with dates."),new Error("SearchBuilder requires DateTime")}}if(this.s.topGroup=new u(this.s.dt,this.c,void 0,void 0,void 0,void 0,this.s.serverData),this._setClearListener(),this.s.dt.on("stateSaveParams.dtsb",function(R,g,y){y.searchBuilder=d.getDetails(),y.scroller?y.start=d.s.dt.state().start:y.page=d.s.dt.page()}),this.s.dt.on("stateLoadParams.dtsb",function(R,g,y){d.rebuild(y.searchBuilder)}),this._build(),this.s.dt.on("preXhr.dtsb",function(R,g,y){d.s.dt.page.info().serverSide&&(y.searchBuilder=d._collapseArray(d.getDetails(!0)))}),this.s.dt.on("columns-reordered",function(){d.rebuild(d.getDetails())}),o){var U=this.s.dt.state.loaded();U!==null&&U.searchBuilder!==void 0?(this.s.topGroup.rebuild(U.searchBuilder),this.s.topGroup.dom.container.trigger("dtsb-redrawContents"),this.s.dt.page.info().serverSide||(U.page?this.s.dt.page(U.page).draw("page"):this.s.dt.scroller&&U.scroller&&this.s.dt.scroller().scrollToRow(U.scroller.topRow)),this.s.topGroup.setListeners()):this.c.preDefined!==!1&&(this.c.preDefined=this._applyPreDefDefaults(this.c.preDefined),this.rebuild(this.c.preDefined))}this._setEmptyListener(),this.s.dt.state.save()},c.prototype._collapseArray=function(o){if(o.logic===void 0)o.value!==void 0&&(o.value.sort(function(p,_){return isNaN(+p)||(p=+p,_=+_),p<_?-1:_<p?1:0}),o.value1=o.value[0],o.value2=o.value[1]);else for(var d=0;d<o.criteria.length;d++)o.criteria[d]=this._collapseArray(o.criteria[d]);return o},c.prototype._updateTitle=function(o){this.dom.title.html(this.s.dt.i18n("searchBuilder.title",this.c.i18n.title,o))},c.prototype._build=function(){var o=this;this.dom.clearAll.remove(),this.dom.container.empty();var d=this.s.topGroup.count();this._updateTitle(d),this.dom.titleRow.append(this.dom.title),this.dom.container.append(this.dom.titleRow),this.dom.topGroup=this.s.topGroup.getNode(),this.dom.container.append(this.dom.topGroup),this._setRedrawListener();var p=this.s.dt.table(0).node();h.fn.dataTable.ext.search.includes(this.s.search)||(this.s.search=function(_,x,P){return _.nTable!==p?!0:o.s.topGroup.search(x,P)},h.fn.dataTable.ext.search.push(this.s.search)),this.s.dt.on("destroy.dtsb",function(){o.dom.container.remove(),o.dom.clearAll.remove();for(var _=h.fn.dataTable.ext.search.indexOf(o.s.search);_!==-1;)h.fn.dataTable.ext.search.splice(_,1),_=h.fn.dataTable.ext.search.indexOf(o.s.search);o.s.dt.off(".dtsb"),h(o.s.dt.table().node()).off(".dtsb")})},c.prototype._checkClear=function(){this.s.topGroup.s.criteria.length>0?(this.dom.clearAll.insertAfter(this.dom.title),this._setClearListener()):this.dom.clearAll.remove()},c.prototype._filterChanged=function(o){var d=this.c.filterChanged;typeof d=="function"&&d(o,this.s.dt.i18n("searchBuilder.button",this.c.i18n.button,o))},c.prototype._setClearListener=function(){var o=this;this.dom.clearAll.unbind("click"),this.dom.clearAll.on("click.dtsb",function(d,p){return o.s.topGroup=new u(o.s.dt,o.c,void 0,void 0,void 0,void 0,o.s.serverData),o._build(),p!==!1&&o.s.dt.draw(),o.s.topGroup.setListeners(),o.dom.clearAll.remove(),o._setEmptyListener(),o._filterChanged(0),!1})},c.prototype._setRedrawListener=function(){var o=this;this.s.topGroup.dom.container.unbind("dtsb-redrawContents"),this.s.topGroup.dom.container.on("dtsb-redrawContents.dtsb",function(){o._checkClear(),o.s.topGroup.redrawContents(),o.s.topGroup.setupLogic(),o._setEmptyListener();var d=o.s.topGroup.count();o._updateTitle(d),o._filterChanged(d),o.s.dt.page.info().serverSide||o.s.dt.draw(),o.s.dt.state.save()}),this.s.topGroup.dom.container.unbind("dtsb-redrawContents-noDraw"),this.s.topGroup.dom.container.on("dtsb-redrawContents-noDraw.dtsb",function(){o._checkClear(),o.s.topGroup.s.preventRedraw=!0,o.s.topGroup.redrawContents(),o.s.topGroup.s.preventRedraw=!1,o.s.topGroup.setupLogic(),o._setEmptyListener();var d=o.s.topGroup.count();o._updateTitle(d),o._filterChanged(d)}),this.s.topGroup.dom.container.unbind("dtsb-redrawLogic"),this.s.topGroup.dom.container.on("dtsb-redrawLogic.dtsb",function(){o.s.topGroup.redrawLogic();var d=o.s.topGroup.count();o._updateTitle(d),o._filterChanged(d)}),this.s.topGroup.dom.container.unbind("dtsb-add"),this.s.topGroup.dom.container.on("dtsb-add.dtsb",function(){var d=o.s.topGroup.count();o._updateTitle(d),o._filterChanged(d),o._checkClear()}),this.s.dt.on("postEdit.dtsb postCreate.dtsb postRemove.dtsb",function(){o.s.topGroup.redrawContents()}),this.s.topGroup.dom.container.unbind("dtsb-clearContents"),this.s.topGroup.dom.container.on("dtsb-clearContents.dtsb",function(){o._setUp(!1),o._filterChanged(0),o.s.dt.draw()})},c.prototype._setEmptyListener=function(){var o=this;this.s.topGroup.dom.add.on("click.dtsb",function(){o._checkClear()}),this.s.topGroup.dom.container.on("dtsb-destroy.dtsb",function(){o.dom.clearAll.remove()})},c.version="1.8.4",c.classes={button:"dtsb-button",clearAll:"dtsb-clearAll",container:"dtsb-searchBuilder",inputButton:"dtsb-iptbtn",title:"dtsb-title",titleRow:"dtsb-titleRow"},c.defaults={columns:!0,conditions:{date:i.dateConditions,html:i.stringConditions,"html-num":i.numConditions,"html-num-fmt":i.numFmtConditions,luxon:i.luxonDateConditions,moment:i.momentDateConditions,num:i.numConditions,"num-fmt":i.numFmtConditions,string:i.stringConditions},depthLimit:!1,enterSearch:!1,filterChanged:void 0,greyscale:!1,liveSearch:!0,i18n:{add:"Add Condition",button:{0:"Search Builder",_:"Search Builder (%d)"},clearAll:"Clear All",condition:"Condition",conditions:{array:{contains:"Contains",empty:"Empty",equals:"Equals",not:"Not",notEmpty:"Not Empty",without:"Without"},date:{after:"After",before:"Before",between:"Between",empty:"Empty",equals:"Equals",not:"Not",notBetween:"Not Between",notEmpty:"Not Empty"},number:{between:"Between",empty:"Empty",equals:"Equals",gt:"Greater Than",gte:"Greater Than Equal To",lt:"Less Than",lte:"Less Than Equal To",not:"Not",notBetween:"Not Between",notEmpty:"Not Empty"},string:{contains:"Contains",empty:"Empty",endsWith:"Ends With",equals:"Equals",not:"Not",notContains:"Does Not Contain",notEmpty:"Not Empty",notEndsWith:"Does Not End With",notStartsWith:"Does Not Start With",startsWith:"Starts With"}},data:"Data",delete:"&times",deleteTitle:"Delete filtering rule",left:"<",leftTitle:"Outdent criteria",logicAnd:"And",logicOr:"Or",right:">",rightTitle:"Indent criteria",search:"Search",title:{0:"Custom Search Builder",_:"Custom Search Builder (%d)"},value:"Value",valueJoiner:"and"},logic:"AND",orthogonal:{display:"display",search:"filter"},preDefined:!1},c}();b(ft),l(ft),s(ft);var m=ft.fn.dataTable;k.SearchBuilder=v,m.SearchBuilder=v,k.Group=u,m.Group=u,k.Criteria=i,m.Criteria=i;var C=k.Api.register;k.ext.searchBuilder={conditions:{}},k.ext.buttons.searchBuilder={action:function(c,o,d,p){this.popover(p._searchBuilder.getNode(),{align:"container",span:"container"});var _=p._searchBuilder.s.topGroup;_!==void 0&&_.dom.container.trigger("dtsb-redrawContents-noDraw"),_.s.criteria.length===0&&ft("."+ft.fn.dataTable.Group.classes.add.replace(/ /g,".")).click()},config:{},init:function(c,o,d){var p=this,_=new k.SearchBuilder(c,d.config);c.on("draw",function(){var x=_.s.topGroup?_.s.topGroup.count():0;p.text(c.i18n("searchBuilder.button",_.c.i18n.button,x))}),p.text(d.text||c.i18n("searchBuilder.button",_.c.i18n.button,0)),d._searchBuilder=_},text:null},C("searchBuilder.getDetails()",function(c){c===void 0&&(c=!1);var o=this.context[0];return o._searchBuilder?o._searchBuilder.getDetails(c):null}),C("searchBuilder.rebuild()",function(c,o){o===void 0&&(o=!0);var d=this.context[0];return d._searchBuilder===void 0?null:(d._searchBuilder.rebuild(c,o),this)}),C("searchBuilder.container()",function(){var c=this.context[0];return c._searchBuilder?c._searchBuilder.getNode():null});function w(c,o){var d=new k.Api(c),p=o||d.init().searchBuilder||k.defaults.searchBuilder,_=new v(d,p),x=_.getNode();return x}ft(document).on("preInit.dt.dtsp",function(c,o){c.namespace==="dt"&&(o.oInit.searchBuilder||k.defaults.searchBuilder)&&(o._searchBuilder||w(o))}),k.ext.feature.push({cFeature:"Q",fnInit:w}),k.feature&&k.feature.register("searchBuilder",w)})();var qi=oe(ae("jquery"),1);var ys=oe(ae("jquery"),1);var He=ys.default;(function(){"use strict";var e,t;function n(R){e=R,t=R.fn.dataTable}var r=function(){function R(g,y,T,D,A){var L=this;if(A===void 0&&(A=null),!t||!t.versionCheck||!t.versionCheck("1.10.0"))throw new Error("SearchPane requires DataTables 1.10 or newer");if(!t.select)throw new Error("SearchPane requires Select");var N=new t.Api(g);this.classes=e.extend(!0,{},R.classes),this.c=e.extend(!0,{},R.defaults,y,A),y&&y.hideCount&&y.viewCount===void 0&&(this.c.viewCount=!this.c.hideCount);var W=N.columns().eq(0).toArray().length;this.s={colExists:T<W,colOpts:void 0,customPaneSettings:A,displayed:!1,dt:N,dtPane:void 0,firstSet:!0,index:T,indexes:[],listSet:!1,name:void 0,rowData:{arrayFilter:[],arrayOriginal:[],bins:{},binsOriginal:{},filterMap:new Map,totalOptions:0},scrollTop:0,searchFunction:void 0,selections:[],serverSelect:[],serverSelecting:!1,tableLength:null,updating:!1},this.s.colOpts=this.s.colExists?this._getOptions():this._getBonusOptions(),this.dom={buttonGroup:e("<div/>").addClass(this.classes.buttonGroup),clear:e('<button type="button">&#215;</button>').attr("disabled","true").addClass(this.classes.disabledButton).addClass(this.classes.paneButton).addClass(this.classes.clearButton).attr("aria-label",N.i18n("searchPanes.buttons.clearPane",this.c.i18n.aria.clearPane)).html(this.s.dt.i18n("searchPanes.clearPane",this.c.i18n.clearPane)),collapseButton:e('<button type="button"><span class="'+this.classes.caret+'">&#x5e;</span></button>').addClass(this.classes.paneButton).addClass(this.classes.collapseButton).attr("aria-label",N.i18n("searchPanes.buttons.collapse",this.c.i18n.aria.collapse)),container:e("<div/>").addClass(this.classes.container).addClass(this.s.colOpts.className).addClass(this.classes.layout+(parseInt(this.c.layout.split("-")[1],10)<10?this.c.layout:this.c.layout.split("-")[0]+"-9")).addClass(this.s.customPaneSettings&&this.s.customPaneSettings.className?this.s.customPaneSettings.className:""),countButton:e('<button type="button"><span></span></button>').addClass(this.classes.paneButton).addClass(this.classes.countButton).attr("aria-label",N.i18n("searchPanes.buttons.orderByCount",this.c.i18n.aria.orderByCount)),dtP:e('<table width="100%"><thead><tr><th></th><th></th></tr></thead></table>'),lower:e("<div/>").addClass(this.classes.subRow2).addClass(this.classes.narrowButton),nameButton:e('<button type="button"><span></span></button>').addClass(this.classes.paneButton).addClass(this.classes.nameButton).attr("aria-label",N.i18n("searchPanes.buttons.orderByLabel",this.c.i18n.aria.orderByLabel)),panesContainer:e(D),searchBox:e("<input/>").addClass(this.classes.paneInputButton).addClass(this.classes.search),searchButton:e('<button type="button"><span></span></button>').addClass(this.classes.searchIcon).addClass(this.classes.paneButton).attr("aria-label",N.i18n("searchPanes.buttons.clearSearch",this.c.i18n.aria.clearSearch)),searchCont:e("<div/>").addClass(this.classes.searchCont),searchLabelCont:e("<div/>").addClass(this.classes.searchLabelCont),topRow:e("<div/>").addClass(this.classes.topRow),upper:e("<div/>").addClass(this.classes.subRow1).addClass(this.classes.narrowSearch)};var H="";this.s.colExists?(H=e(this.s.dt.column(this.s.index).header()).text(),this.dom.dtP.find("th").eq(0).text(H)):(H=this.s.customPaneSettings.header||"Custom Pane",this.dom.dtP.find("th").eq(0).html(H)),this.s.colOpts.name?this.s.name=this.s.colOpts.name:this.s.customPaneSettings&&this.s.customPaneSettings.name?this.s.name=this.s.customPaneSettings.name:this.s.name=H;var M=this.s.dt.table(0).node();return this.s.searchFunction=function(j,$,z){if(L.s.selections.length===0||j.nTable!==M)return!0;var X=null;return L.s.colExists&&(X=$[L.s.index],L.s.colOpts.orthogonal.filter!=="filter"&&(X=L.s.rowData.filterMap.get(z),X instanceof e.fn.dataTable.Api&&(X=X.toArray()))),L._search(X,z)},e.fn.dataTable.ext.search.push(this.s.searchFunction),this.c.clear&&this.dom.clear.on("click.dtsp",function(){var j=L.dom.container.find("."+L.classes.search.replace(/\s+/g,"."));j.each(function(){e(this).val("").trigger("input")}),L.clearPane()}),this.s.dt.on("draw.dtsp",function(){return L.adjustTopRow()}),this.s.dt.on("buttons-action.dtsp",function(){return L.adjustTopRow()}),this.s.dt.on("column-reorder.dtsp",function(j,$,z){L.s.index=z.mapping[L.s.index]}),this}return R.prototype.addRow=function(g,y,T,D,A,L,N){L||(L=this.s.rowData.bins[y]?this.s.rowData.bins[y]:0),N||(N=this._getShown(y));for(var W,H=0,M=this.s.indexes;H<M.length;H++){var j=M[H];j.filter===y&&(W=j.index)}return W===void 0&&(W=this.s.indexes.length,this.s.indexes.push({filter:y,index:W})),this.s.dtPane.row.add({className:A,display:g!==""?g:this.emptyMessage(),filter:y,index:W,shown:N,sort:T,total:L,type:D})},R.prototype.adjustTopRow=function(){var g=this.dom.container.find("."+this.classes.subRowsContainer.replace(/\s+/g,".")),y=this.dom.container.find("."+this.classes.subRow1.replace(/\s+/g,".")),T=this.dom.container.find("."+this.classes.subRow2.replace(/\s+/g,".")),D=this.dom.container.find("."+this.classes.topRow.replace(/\s+/g,"."));(e(g[0]).width()<252||e(D[0]).width()<252)&&e(g[0]).width()!==0?(e(g[0]).addClass(this.classes.narrow),e(y[0]).addClass(this.classes.narrowSub).removeClass(this.classes.narrowSearch),e(T[0]).addClass(this.classes.narrowSub).removeClass(this.classes.narrowButton)):(e(g[0]).removeClass(this.classes.narrow),e(y[0]).removeClass(this.classes.narrowSub).addClass(this.classes.narrowSearch),e(T[0]).removeClass(this.classes.narrowSub).addClass(this.classes.narrowButton))},R.prototype.clearData=function(){this.s.rowData={arrayFilter:[],arrayOriginal:[],bins:{},binsOriginal:{},filterMap:new Map,totalOptions:0}},R.prototype.clearPane=function(){return this.s.dtPane.rows({selected:!0}).deselect(),this.updateTable(),this},R.prototype.collapse=function(){var g=this;!this.s.displayed||!this.c.collapse&&this.s.colOpts.collapse!==!0||this.s.colOpts.collapse===!1||(e(this.s.dtPane.table().container()).addClass(this.classes.hidden),this.dom.topRow.addClass(this.classes.bordered),this.dom.nameButton.addClass(this.classes.disabledButton),this.dom.countButton.addClass(this.classes.disabledButton),this.dom.searchButton.addClass(this.classes.disabledButton),this.dom.collapseButton.addClass(this.classes.rotated),this.dom.topRow.one("click.dtsp",function(){return g.show()}),this.dom.topRow.trigger("collapse.dtsps"))},R.prototype.destroy=function(){this.s.dtPane&&this.s.dtPane.off(".dtsp"),this.s.dt.off(".dtsp"),this.dom.clear.off(".dtsp"),this.dom.nameButton.off(".dtsp"),this.dom.countButton.off(".dtsp"),this.dom.searchButton.off(".dtsp"),this.dom.collapseButton.off(".dtsp"),e(this.s.dt.table().node()).off(".dtsp"),this.dom.container.detach();for(var g=e.fn.dataTable.ext.search.indexOf(this.s.searchFunction);g!==-1;)e.fn.dataTable.ext.search.splice(g,1),g=e.fn.dataTable.ext.search.indexOf(this.s.searchFunction);this.s.dtPane&&this.s.dtPane.destroy(),this.s.listSet=!1},R.prototype.emptyMessage=function(){var g=this.c.i18n.emptyMessage;return this.c.emptyMessage&&(g=this.c.emptyMessage),this.s.colOpts.emptyMessage!==!1&&this.s.colOpts.emptyMessage!==null&&(g=this.s.colOpts.emptyMessage),this.s.dt.i18n("searchPanes.emptyMessage",g)},R.prototype.getPaneCount=function(){return this.s.dtPane?this.s.dtPane.rows({selected:!0}).data().toArray().length:0},R.prototype.rebuildPane=function(g,y){g===void 0&&(g=null),y===void 0&&(y=!1),this.clearData();var T=[];this.s.serverSelect=[];var D=null;return this.s.dtPane&&(y&&(this.s.dt.page.info().serverSide?this.s.serverSelect=this.s.dtPane.rows({selected:!0}).data().toArray():T=this.s.dtPane.rows({selected:!0}).data().toArray()),this.s.dtPane.clear().destroy(),D=this.dom.container.prev(),this.destroy(),this.s.dtPane=void 0,e.fn.dataTable.ext.search.push(this.s.searchFunction)),this.dom.container.removeClass(this.classes.hidden),this.s.displayed=!1,this._buildPane(this.s.dt.page.info().serverSide?this.s.serverSelect:T,g,D),this},R.prototype.resize=function(g){this.c.layout=g,this.dom.container.removeClass().addClass(this.classes.show).addClass(this.classes.container).addClass(this.s.colOpts.className).addClass(this.classes.layout+(parseInt(g.split("-")[1],10)<10?g:g.split("-")[0]+"-9")).addClass(this.s.customPaneSettings!==null&&this.s.customPaneSettings.className?this.s.customPaneSettings.className:""),this.adjustTopRow(),this.dom.dtP.css("table-layout","fixed"),this.dom.dtP.css("width","100%"),this.dom.dtP.find("colgroup col").css("width","100%")},R.prototype.setListeners=function(){var g=this;this.s.dtPane&&(this.s.dtPane.off("select.dtsp").on("select.dtsp",function(){clearTimeout(g.s.deselectTimeout),g._updateSelection(!g.s.updating),g.dom.clear.removeClass(g.classes.disabledButton).removeAttr("disabled")}),this.s.dtPane.off("deselect.dtsp").on("deselect.dtsp",function(){g.s.deselectTimeout=setTimeout(function(){g._updateSelection(!0),g.s.dtPane.rows({selected:!0}).data().toArray().length===0&&g.dom.clear.addClass(g.classes.disabledButton).attr("disabled","true")},50)}),this.s.firstSet&&(this.s.firstSet=!1,this.s.dt.on("stateSaveParams.dtsp",function(y,T,D){if(e.isEmptyObject(D)){g.s.dtPane.state.clear();return}var A,L,N=[],W,H,M;g.s.dtPane&&(N=g.s.dtPane.rows({selected:!0}).data().map(function($){return $.filter!==null?$.filter.toString():null}).toArray(),H=g.dom.searchBox.val(),L=g.s.dtPane.order(),A=g.s.rowData.binsOriginal,M=g.s.rowData.arrayOriginal,W=g.dom.collapseButton.hasClass(g.classes.rotated)),D.searchPanes===void 0&&(D.searchPanes={}),D.searchPanes.panes===void 0&&(D.searchPanes.panes=[]);for(var j=0;j<D.searchPanes.panes.length;j++)D.searchPanes.panes[j].id===g.s.index&&(D.searchPanes.panes.splice(j,1),j--);D.searchPanes.panes.push({arrayFilter:M,bins:A,collapsed:W,id:g.s.index,order:L,searchTerm:H,selected:N})})),this.s.dtPane.off("user-select.dtsp").on("user-select.dtsp",function(y,T,D,A,L){L.stopPropagation()}),this.s.dtPane.off("draw.dtsp").on("draw.dtsp",function(){return g.adjustTopRow()}),this.dom.nameButton.off("click.dtsp").on("click.dtsp",function(){var y=g.s.dtPane.order()[0][1];g.s.dtPane.order([[0,y==="asc"?"desc":"asc"]]).draw(),g.s.dt.state.save()}),this.dom.countButton.off("click.dtsp").on("click.dtsp",function(){var y=g.s.dtPane.order()[0][1],T=y==="asc"?"desc":"asc";g.s.dtPane.order([[2,T],[1,T]]).draw(),g.s.dt.state.save()}),this.dom.collapseButton.off("click.dtsp").on("click.dtsp",function(y){y.stopPropagation();var T=e(g.s.dtPane.table().container());T.toggleClass(g.classes.hidden),g.dom.topRow.toggleClass(g.classes.bordered),g.dom.nameButton.toggleClass(g.classes.disabledButton),g.dom.countButton.toggleClass(g.classes.disabledButton),g.dom.searchButton.toggleClass(g.classes.disabledButton),g.dom.collapseButton.toggleClass(g.classes.rotated),T.hasClass(g.classes.hidden)?g.dom.topRow.on("click.dtsp",function(){return g.dom.collapseButton.click()}):g.dom.topRow.off("click.dtsp"),g.s.dt.state.save(),g.dom.topRow.trigger("collapse.dtsps")}),this.dom.clear.off("click.dtsp").on("click.dtsp",function(){var y=g.dom.container.find("."+g.classes.search.replace(/ /g,"."));y.each(function(){e(this).val("").trigger("input")}),g.clearPane()}),this.dom.searchButton.off("click.dtsp").on("click.dtsp",function(){return g.dom.searchBox.focus()}),this.dom.searchBox.off("click.dtsp").on("input.dtsp",function(){var y=g.dom.searchBox.val();g.s.dtPane.search(y).draw(),typeof y=="string"&&(y.length>0||y.length===0&&g.s.dtPane.rows({selected:!0}).data().toArray().length>0)?g.dom.clear.removeClass(g.classes.disabledButton).removeAttr("disabled"):g.dom.clear.addClass(g.classes.disabledButton).attr("disabled","true"),g.s.dt.state.save()}),this.s.dtPane.select.style(this.s.colOpts.dtOpts&&this.s.colOpts.dtOpts.select&&this.s.colOpts.dtOpts.select.style?this.s.colOpts.dtOpts.select.style:this.c.dtOpts&&this.c.dtOpts.select&&this.c.dtOpts.select.style?this.c.dtOpts.select.style:"os"))},R.prototype._serverPopulate=function(g){g.tableLength?(this.s.tableLength=g.tableLength,this.s.rowData.totalOptions=this.s.tableLength):(this.s.tableLength===null||this.s.dt.rows()[0].length>this.s.tableLength)&&(this.s.tableLength=this.s.dt.rows()[0].length,this.s.rowData.totalOptions=this.s.tableLength);var y=this.s.dt.column(this.s.index).dataSrc();if(g.searchPanes.options[y])for(var T=0,D=g.searchPanes.options[y];T<D.length;T++){var A=D[T];this.s.rowData.arrayFilter.push({display:A.label,filter:A.value,sort:A.label,type:A.label}),this.s.rowData.bins[A.value]=A.total}var L=Object.keys(this.s.rowData.bins).length,N=this._uniqueRatio(L,this.s.tableLength);if(this.s.displayed===!1&&((this.s.colOpts.show===void 0&&this.s.colOpts.threshold===null?N>this.c.threshold:N>this.s.colOpts.threshold)||this.s.colOpts.show!==!0&&L<=1)){this.dom.container.addClass(this.classes.hidden),this.s.displayed=!1;return}this.s.rowData.arrayOriginal=this.s.rowData.arrayFilter,this.s.rowData.binsOriginal=this.s.rowData.bins,this.s.displayed=!0},R.prototype.show=function(){this.s.displayed&&(this.dom.topRow.removeClass(this.classes.bordered),this.dom.nameButton.removeClass(this.classes.disabledButton),this.dom.countButton.removeClass(this.classes.disabledButton),this.dom.searchButton.removeClass(this.classes.disabledButton),this.dom.collapseButton.removeClass(this.classes.rotated),e(this.s.dtPane.table().container()).removeClass(this.classes.hidden),this.dom.topRow.trigger("collapse.dtsps"))},R.prototype._uniqueRatio=function(g,y){return y>0&&(this.s.rowData.totalOptions>0&&!this.s.dt.page.info().serverSide||this.s.dt.page.info().serverSide&&this.s.tableLength>0)?g/this.s.rowData.totalOptions:1},R.prototype.updateTable=function(){var g=this.s.dtPane.rows({selected:!0}).data().toArray().map(function(y){return y.filter});this.s.selections=g,this._searchExtras()},R.prototype._getComparisonRows=function(){var g=this.s.colOpts.options?this.s.colOpts.options:this.s.customPaneSettings&&this.s.customPaneSettings.options?this.s.customPaneSettings.options:void 0;if(g!==void 0){var y=this.s.dt.rows(),T=y.data().toArray(),D=[];this.s.dtPane.clear(),this.s.indexes=[];for(var A=0,L=g;A<L.length;A++){var N=L[A],W=N.label!==""?N.label:this.emptyMessage(),H={className:N.className,display:W,filter:typeof N.value=="function"?N.value:[],sort:N.order!==void 0?N.order:W,total:0,type:W};if(typeof N.value=="function"){for(var M=0;M<T.length;M++)N.value.call(this.s.dt,T[M],y[0][M])&&H.total++;typeof H.filter!="function"&&H.filter.push(N.filter)}D.push(this.addRow(H.display,H.filter,H.sort,H.type,H.className,H.total))}return D}},R.prototype._getMessage=function(g){return this.s.dt.i18n("searchPanes.count",this.c.i18n.count).replace(/{total}/g,g.total)},R.prototype._getShown=function(g){},R.prototype._getPaneConfig=function(){var g=this,y=t.Scroller,T=this.s.dt.settings()[0].oLanguage;return T.url=null,T.sUrl=null,{columnDefs:[{className:"dtsp-nameColumn",data:"display",render:function(D,A,L){if(A==="sort")return L.sort;if(A==="type")return L.type;var N=g._getMessage(L),W='<span class="'+g.classes.pill+'">'+N+"</span>";return(!g.c.viewCount||!g.s.colOpts.viewCount)&&(W=""),A==="filter"?typeof D=="string"&&D.match(/<[^>]*>/)!==null?D.replace(/<[^>]*>/g,""):D:'<div class="'+g.classes.nameCont+'"><span title="'+(typeof D=="string"&&D.match(/<[^>]*>/)!==null?D.replace(/<[^>]*>/g,""):D)+'" class="'+g.classes.name+'">'+D+"</span>"+W+"</div>"},targets:0,type:this.s.dt.settings()[0].aoColumns[this.s.index]?this.s.dt.settings()[0].aoColumns[this.s.index]._sManualType:null},{className:"dtsp-countColumn "+this.classes.badgePill,data:"total",searchable:!1,targets:1,visible:!1},{data:"shown",searchable:!1,targets:2,visible:!1,defaultContent:0}],deferRender:!0,info:!1,language:T,paging:!!y,scrollX:!1,scrollY:"200px",scroller:!!y,select:!0,stateSave:!!this.s.dt.settings()[0].oFeatures.bStateSave}},R.prototype._makeSelection=function(){this.updateTable(),this.s.updating=!0,this.s.dt.draw(),this.s.updating=!1},R.prototype._populatePaneArray=function(g,y,T,D){D===void 0&&(D=this.s.rowData.bins);var A=T.fastData?T.fastData:function(W,H,M){return T.oApi._fnGetCellData(T,W,H,M)};if(typeof this.s.colOpts.orthogonal=="string"){var L=A(g,this.s.index,this.s.colOpts.orthogonal);this.s.rowData.filterMap.set(g,L),this._addOption(L,L,L,L,y,D),this.s.rowData.totalOptions++}else{var N=A(g,this.s.index,this.s.colOpts.orthogonal.search);N===null&&(N=""),typeof N=="string"&&(N=N.replace(/<[^>]*>/g,"")),this.s.rowData.filterMap.set(g,N),D[N]?(D[N]++,this.s.rowData.totalOptions++):(this._addOption(N,A(g,this.s.index,this.s.colOpts.orthogonal.display),A(g,this.s.index,this.s.colOpts.orthogonal.sort),A(g,this.s.index,this.s.colOpts.orthogonal.type),y,D),this.s.rowData.totalOptions++)}},R.prototype._reloadSelect=function(g){if(g!==void 0){for(var y,T=0;T<g.searchPanes.panes.length;T++)if(g.searchPanes.panes[T].id===this.s.index){y=T;break}if(y)for(var D=this.s.dtPane,A=D.rows({order:"index"}).data().map(function(M){return M.filter!==null?M.filter.toString():null}).toArray(),L=0,N=g.searchPanes.panes[y].selected;L<N.length;L++){var W=N[L],H=-1;W!==null&&(H=A.indexOf(W.toString())),H>-1&&(this.s.serverSelecting=!0,D.row(H).select(),this.s.serverSelecting=!1)}}},R.prototype._updateSelection=function(g){var y=this,T=function(A){if(k.versionCheck("2"))y.s.dt.processing(A);else{var L=y.s.dt.settings()[0],N=L.oApi;N._fnProcessingDisplay(L,!1)}},D=function(){y.s.scrollTop=e(y.s.dtPane.table().node()).parent()[0].scrollTop,y.s.dt.page.info().serverSide&&!y.s.updating?y.s.serverSelecting||(y.s.serverSelect=y.s.dtPane.rows({selected:!0}).data().toArray(),y.s.dt.draw(!1)):g&&y._makeSelection(),T(!1)};T(!0),setTimeout(D,1)},R.prototype._addOption=function(g,y,T,D,A,L){if(Array.isArray(g)||g instanceof t.Api){if(g instanceof t.Api&&(g=g.toArray(),y=y.toArray()),g.length===y.length){for(var N=0;N<g.length;N++)L[g[N]]?L[g[N]]++:(L[g[N]]=1,A.push({display:y[N],filter:g[N],sort:T[N],type:D[N]})),this.s.rowData.totalOptions++;return}throw new Error("display and filter not the same length")}else typeof this.s.colOpts.orthogonal=="string"?L[g]?(L[g]++,this.s.rowData.totalOptions++):(L[g]=1,A.push({display:y,filter:g,sort:T,type:D}),this.s.rowData.totalOptions++):(L[g]=1,A.push({display:y,filter:g,sort:T,type:D}))},R.prototype._buildPane=function(g,y,T){var D=this;g===void 0&&(g=[]),y===void 0&&(y=null),T===void 0&&(T=null),this.s.selections=[];var A=this.s.dt.state.loaded(),L;if(this.s.listSet&&(A=this.s.dt.state()),this.s.colExists){var N=-1;if(A&&A.searchPanes&&A.searchPanes.panes){for(var W=0;W<A.searchPanes.panes.length;W++)if(A.searchPanes.panes[W].id===this.s.index){N=W;break}}if((this.s.colOpts.show===!1||this.s.colOpts.show!==void 0&&this.s.colOpts.show!==!0)&&N===-1)return this.dom.container.addClass(this.classes.hidden),this.s.displayed=!1,!1;if((this.s.colOpts.show===!0||N!==-1)&&(this.s.displayed=!0),!this.s.dt.page.info().serverSide&&(!y||!y.searchPanes||!y.searchPanes.options)){this.s.rowData.arrayFilter.length===0&&(this.s.rowData.totalOptions=0,this._populatePane(),this.s.rowData.arrayOriginal=this.s.rowData.arrayFilter,this.s.rowData.binsOriginal=this.s.rowData.bins);var H=Object.keys(this.s.rowData.binsOriginal).length,M=this._uniqueRatio(H,this.s.dt.rows()[0].length);if(this.s.displayed===!1&&((this.s.colOpts.show===void 0&&this.s.colOpts.threshold===null?M>this.c.threshold:M>this.s.colOpts.threshold)||this.s.colOpts.show!==!0&&H<=1)){this.dom.container.addClass(this.classes.hidden),this.s.displayed=!1;return}this.dom.container.addClass(this.classes.show),this.s.displayed=!0}else y&&y.searchPanes&&y.searchPanes.options&&this._serverPopulate(y)}else this.s.displayed=!0;this._displayPane(),this.s.listSet||this.dom.dtP.on("stateLoadParams.dtsp",function($e,qe,Ye){e.isEmptyObject(D.s.dt.state.loaded())&&e.each(Ye,function(un){delete Ye[un]})}),T!==null&&this.dom.panesContainer.has(T).length>0?this.dom.container.insertAfter(T):this.dom.panesContainer.prepend(this.dom.container);var j=e.fn.dataTable.ext.errMode;e.fn.dataTable.ext.errMode="none",this.dom.dtP.on("init.dt",function($e,qe){var Ye=D.dom.dtP.DataTable(),un=Ye.select.style();Ye.select.style(un)});var $;if(e.fn.dataTable.versionCheck("2")){var z=e.extend(!0,{},e.fn.dataTable.defaults.layout);e.each(z,function($e,qe){z[$e]=null}),$={layout:z}}else $={dom:"t"};this.s.dtPane=this.dom.dtP.DataTable(e.extend(!0,this._getPaneConfig(),this.c.dtOpts,this.s.colOpts?this.s.colOpts.dtOpts:{},this.s.colOpts.options||!this.s.colExists?{createdRow:function($e,qe){e($e).addClass(qe.className)}}:void 0,this.s.customPaneSettings!==null&&this.s.customPaneSettings.dtOpts?this.s.customPaneSettings.dtOpts:{},$)),this.dom.dtP.addClass(this.classes.table);var X="Custom Pane";this.s.customPaneSettings&&this.s.customPaneSettings.header?X=this.s.customPaneSettings.header:this.s.colOpts.header?X=this.s.colOpts.header:this.s.colExists&&(X=e.fn.dataTable.versionCheck("2")?this.s.dt.column(this.s.index).title():this.s.dt.settings()[0].aoColumns[this.s.index].sTitle),X=this._escapeHTML(X);var K=this.s.dt.i18n("searchBuilder.searchTitle",this.c.i18n.searchTitle).replace("{name}",X);if(this.dom.searchBox.attr("placeholder",X).attr("title",K),e.fn.dataTable.ext.errMode=j,this.s.colExists)for(var re=0,fe=this.s.rowData.arrayFilter.length;re<fe;re++)if(this.s.dt.page.info().serverSide){L=this.addRow(this.s.rowData.arrayFilter[re].display,this.s.rowData.arrayFilter[re].filter,this.s.rowData.arrayFilter[re].sort,this.s.rowData.arrayFilter[re].type);for(var he=0,ke=this.s.serverSelect;he<ke.length;he++){var Ee=ke[he];Ee.filter===this.s.rowData.arrayFilter[re].filter&&(this.s.serverSelecting=!0,L.select(),this.s.serverSelecting=!1)}}else!this.s.dt.page.info().serverSide&&this.s.rowData.arrayFilter[re]?this.addRow(this.s.rowData.arrayFilter[re].display,this.s.rowData.arrayFilter[re].filter,this.s.rowData.arrayFilter[re].sort,this.s.rowData.arrayFilter[re].type):this.s.dt.page.info().serverSide||this.addRow("","","","");(this.s.colOpts.options||this.s.customPaneSettings&&this.s.customPaneSettings.options)&&this._getComparisonRows(),this.s.dtPane.draw(),this.s.dtPane.table().node().parentNode.scrollTop=this.s.scrollTop,this.adjustTopRow(),this.setListeners(),this.s.listSet=!0;for(var We=0,je=g;We<je.length;We++){var we=je[We];if(we)for(var Ue=0,Dt=this.s.dtPane.rows().indexes().toArray();Ue<Dt.length;Ue++)L=Dt[Ue],this.s.dtPane.row(L).data()&&we.filter===this.s.dtPane.row(L).data().filter&&(this.s.dt.page.info().serverSide?(this.s.serverSelecting=!0,this.s.dtPane.row(L).select(),this.s.serverSelecting=!1):this.s.dtPane.row(L).select())}if(this.s.dt.page.info().serverSide&&this.s.dtPane.search(this.dom.searchBox.val()).draw(),(this.c.initCollapsed&&this.s.colOpts.initCollapsed!==!1||this.s.colOpts.initCollapsed)&&(this.c.collapse&&this.s.colOpts.collapse!==!1||this.s.colOpts.collapse)&&(this.s.dtPane.settings()[0]._bInitComplete?this.collapse():this.s.dtPane.one("init",function(){return D.collapse()})),A&&A.searchPanes&&A.searchPanes.panes&&(!y||y.draw===1)){this._reloadSelect(A);for(var nt=0,Rt=A.searchPanes.panes;nt<Rt.length;nt++){var Be=Rt[nt];Be.id===this.s.index&&(Be.searchTerm&&Be.searchTerm.length>0&&this.dom.searchBox.val(Be.searchTerm).trigger("input"),Be.order&&this.s.dtPane.order(Be.order).draw(),Be.collapsed?this.collapse():this.show())}}return!0},R.prototype._displayPane=function(){this.dom.dtP.empty(),this.dom.topRow.empty().addClass(this.classes.topRow),parseInt(this.c.layout.split("-")[1],10)>3&&this.dom.container.addClass(this.classes.smallGap),this.dom.topRow.addClass(this.classes.subRowsContainer).append(this.dom.upper.append(this.dom.searchCont)).append(this.dom.lower.append(this.dom.buttonGroup)),(this.c.dtOpts.searching===!1||this.s.colOpts.dtOpts&&this.s.colOpts.dtOpts.searching===!1||!this.c.controls||!this.s.colOpts.controls||this.s.customPaneSettings&&this.s.customPaneSettings.dtOpts&&this.s.customPaneSettings.dtOpts.searching!==void 0&&!this.s.customPaneSettings.dtOpts.searching)&&this.dom.searchBox.removeClass(this.classes.paneInputButton).addClass(this.classes.disabledButton).attr("disabled","true"),this.dom.searchBox.appendTo(this.dom.searchCont),this._searchContSetup(),this.c.clear&&this.c.controls&&this.s.colOpts.controls&&this.dom.clear.appendTo(this.dom.buttonGroup),this.c.orderable&&this.s.colOpts.orderable&&this.c.controls&&this.s.colOpts.controls&&this.dom.nameButton.appendTo(this.dom.buttonGroup),this.c.viewCount&&this.s.colOpts.viewCount&&this.c.orderable&&this.s.colOpts.orderable&&this.c.controls&&this.s.colOpts.controls&&this.dom.countButton.appendTo(this.dom.buttonGroup),(this.c.collapse&&this.s.colOpts.collapse!==!1||this.s.colOpts.collapse)&&this.c.controls&&this.s.colOpts.controls&&this.dom.collapseButton.appendTo(this.dom.buttonGroup),this.dom.container.prepend(this.dom.topRow).append(this.dom.dtP).show()},R.prototype._escapeHTML=function(g){return g.toString().replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&amp;/g,"&")},R.prototype._getBonusOptions=function(){var g={threshold:null};return e.extend(!0,{},R.defaults,g,this.c?this.c:{})},R.prototype._getOptions=function(){var g=this.s.dt,y={collapse:null,emptyMessage:!1,initCollapsed:null,threshold:null},T=g.settings()[0].aoColumns[this.s.index].searchPanes,D=e.extend(!0,{},R.defaults,y,T);return T&&T.hideCount&&T.viewCount===void 0&&(D.viewCount=!T.hideCount),D},R.prototype._populatePane=function(){this.s.rowData.arrayFilter=[],this.s.rowData.bins={};var g=this.s.dt.context[0];if(!this.s.dt.page.info().serverSide)for(var y=0,T=this.s.dt.rows().indexes().toArray();y<T.length;y++){var D=T[y];this._populatePaneArray(D,this.s.rowData.arrayFilter,g)}},R.prototype._search=function(g,y){for(var T=this.s.colOpts,D=this.s.dt,A=0,L=this.s.selections;A<L.length;A++){var N=L[A];if(typeof N=="string"&&typeof g=="string"&&(N=this._escapeHTML(N)),Array.isArray(g)){if(T.combiner==="and"){if(!g.includes(N))return!1}else if(g.includes(N))return!0}else if(typeof N=="function"){if(N.call(D,D.row(y).data(),y)){if(T.combiner==="or")return!0}else if(T.combiner==="and")return!1}else if(g===N||!(typeof g=="string"&&g.length===0)&&g==N||N===null&&typeof g=="string"&&g==="")return!0}return T.combiner==="and"},R.prototype._searchContSetup=function(){this.c.controls&&this.s.colOpts.controls&&this.dom.searchButton.appendTo(this.dom.searchLabelCont),this.c.dtOpts.searching===!1||this.s.colOpts.dtOpts.searching===!1||this.s.customPaneSettings&&this.s.customPaneSettings.dtOpts&&this.s.customPaneSettings.dtOpts.searching!==void 0&&!this.s.customPaneSettings.dtOpts.searching||this.dom.searchLabelCont.appendTo(this.dom.searchCont)},R.prototype._searchExtras=function(){var g=this.s.updating;this.s.updating=!0;var y=this.s.dtPane.rows({selected:!0}).data().pluck("filter").toArray(),T=y.indexOf(this.emptyMessage()),D=e(this.s.dtPane.table().container());T>-1&&(y[T]=""),y.length>0?D.addClass(this.classes.selected):y.length===0&&D.removeClass(this.classes.selected),this.s.updating=g},R.version="2.1.2",R.classes={bordered:"dtsp-bordered",buttonGroup:"dtsp-buttonGroup",buttonSub:"dtsp-buttonSub",caret:"dtsp-caret",clear:"dtsp-clear",clearAll:"dtsp-clearAll",clearButton:"clearButton",collapseAll:"dtsp-collapseAll",collapseButton:"dtsp-collapseButton",container:"dtsp-searchPane",countButton:"dtsp-countButton",disabledButton:"dtsp-disabledButton",hidden:"dtsp-hidden",hide:"dtsp-hide",layout:"dtsp-",name:"dtsp-name",nameButton:"dtsp-nameButton",nameCont:"dtsp-nameCont",narrow:"dtsp-narrow",paneButton:"dtsp-paneButton",paneInputButton:"dtsp-paneInputButton",pill:"dtsp-pill",rotated:"dtsp-rotated",search:"dtsp-search",searchCont:"dtsp-searchCont",searchIcon:"dtsp-searchIcon",searchLabelCont:"dtsp-searchButtonCont",selected:"dtsp-selected",smallGap:"dtsp-smallGap",subRow1:"dtsp-subRow1",subRow2:"dtsp-subRow2",subRowsContainer:"dtsp-subRowsContainer",title:"dtsp-title",topRow:"dtsp-topRow"},R.defaults={clear:!0,collapse:!0,combiner:"or",container:function(g){return g.table().container()},controls:!0,dtOpts:{},emptyMessage:null,hideCount:!1,i18n:{aria:{clearPane:"Clear selection",clearSearch:"Clear search",collapse:"Collapse / show pane",orderByCount:"Order by count",orderByLabel:"Order by label"},clearPane:"&times;",count:"{total}",emptyMessage:"<em>Empty</em>",searchTitle:"Search: {name}"},initCollapsed:!1,layout:"auto",name:void 0,orderable:!0,orthogonal:{display:"display",filter:"filter",hideCount:!1,search:"filter",show:void 0,sort:"sort",threshold:.6,type:"type",viewCount:!0},preSelect:[],threshold:.6,viewCount:!0},R}(),s=window&&window.__extends||function(){var R=function(g,y){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,D){T.__proto__=D}||function(T,D){for(var A in D)D.hasOwnProperty(A)&&(T[A]=D[A])},R(g,y)};return function(g,y){R(g,y);function T(){this.constructor=g}g.prototype=y===null?Object.create(y):(T.prototype=y.prototype,new T)}}(),i=function(R){s(g,R);function g(y,T,D,A,L){return R.call(this,y,T,D,A,L)||this}return g.prototype._emptyPane=function(){var y=this.s.dtPane;if(k.versionCheck("2")){var T=y.select.last(),D;return T&&y.row(T.row).any()&&(D=y.row(T.row).data().index),y.rows().remove(),function(){if(D!==void 0){var A=y.row(function(L,N){return N.index===D}).index();y.select.last({row:A,column:0})}}}return y.rows().remove(),function(){}},g.prototype._serverPopulate=function(y){var T,D,A;this.s.rowData.binsShown={},this.s.rowData.arrayFilter=[],y.tableLength!==void 0?(this.s.tableLength=y.tableLength,this.s.rowData.totalOptions=this.s.tableLength):(this.s.tableLength===null||this.s.dt.rows()[0].length>this.s.tableLength)&&(this.s.tableLength=this.s.dt.rows()[0].length,this.s.rowData.totalOptions=this.s.tableLength);var L=this.s.dt.column(this.s.index).dataSrc();if(y.searchPanes.options[L]!==void 0)for(var N=0,W=y.searchPanes.options[L];N<W.length;N++){var H=W[N];this.s.rowData.arrayFilter.push({display:H.label,filter:H.value,shown:+H.count,sort:H.label,total:+H.total,type:H.label}),this.s.rowData.binsShown[H.value]=+H.count,this.s.rowData.bins[H.value]=+H.total}var M=Object.keys(this.s.rowData.bins).length,j=this._uniqueRatio(M,this.s.tableLength);if(!this.s.colOpts.show&&this.s.displayed===!1&&((this.s.colOpts.show===void 0&&this.s.colOpts.threshold===null?j>this.c.threshold:j>this.s.colOpts.threshold)||this.s.colOpts.show!==!0&&M<=1)){this.dom.container.addClass(this.classes.hidden),this.s.displayed=!1;return}if(this.s.rowData.arrayOriginal=this.s.rowData.arrayFilter,this.s.rowData.binsOriginal=this.s.rowData.bins,this.s.displayed=!0,this.s.dtPane){for(var $=this.s.serverSelect,z=this._emptyPane(),X=0,K=this.s.rowData.arrayFilter;X<K.length;X++)if(A=K[X],this._shouldAddRow(A)){D=this.addRow(A.display,A.filter,A.sort,A.type);for(var re=0;re<$.length;re++)if(T=$[re],T.filter===A.filter){this.s.serverSelecting=!0,D.select(),this.s.serverSelecting=!1,$.splice(re,1),this.s.selections.push(A.filter);break}}for(var fe=0,he=$;fe<he.length;fe++){T=he[fe];for(var ke=0,Ee=this.s.rowData.arrayOriginal;ke<Ee.length;ke++)A=Ee[ke],A.filter===T.filter&&(D=this.addRow(A.display,A.filter,A.sort,A.type),this.s.serverSelecting=!0,D.select(),this.s.serverSelecting=!1,this.s.selections.push(A.filter))}this.s.serverSelect=this.s.dtPane.rows({selected:!0}).data().toArray(),this.s.dtPane.draw(),z()}},g.prototype.updateRows=function(){if(!this.s.dt.page.info().serverSide){this.s.rowData.binsShown={};for(var y=0,T=this.s.dt.rows({search:"applied"}).indexes().toArray();y<T.length;y++){var D=T[y];this._updateShown(D,this.s.dt.settings()[0],this.s.rowData.binsShown)}}for(var A=function(M){M.shown=typeof L.s.rowData.binsShown[M.filter]=="number"?L.s.rowData.binsShown[M.filter]:0,L.s.dtPane.row(function(j,$){return $&&$.index===M.index}).data(M)},L=this,N=0,W=this.s.dtPane.rows().data().toArray();N<W.length;N++){var H=W[N];A(H)}this.s.dtPane.draw(),this.s.dtPane.table().node().parentNode.scrollTop=this.s.scrollTop},g.prototype._makeSelection=function(){},g.prototype._reloadSelect=function(){},g.prototype._shouldAddRow=function(y){return!0},g.prototype._updateSelection=function(){this.s.dt.page.info().serverSide&&!this.s.updating&&!this.s.serverSelecting&&(this.s.serverSelect=this.s.dtPane.rows({selected:!0}).data().toArray())},g.prototype._updateShown=function(y,T,D){D===void 0&&(D=this.s.rowData.binsShown);var A=typeof this.s.colOpts.orthogonal=="string"?this.s.colOpts.orthogonal:this.s.colOpts.orthogonal.search,L=T.fastData?T.fastData:function($,z,X){return T.oApi._fnGetCellData(T,$,z,X)},N=L(y,this.s.index,A),W=function($){D[$]?D[$]++:D[$]=1};if(Array.isArray(N))for(var H=0,M=N;H<M.length;H++){var j=M[H];W(j)}else W(N)},g}(r),a=window&&window.__extends||function(){var R=function(g,y){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,D){T.__proto__=D}||function(T,D){for(var A in D)D.hasOwnProperty(A)&&(T[A]=D[A])},R(g,y)};return function(g,y){R(g,y);function T(){this.constructor=g}g.prototype=y===null?Object.create(y):(T.prototype=y.prototype,new T)}}(),l;function u(R){l=R}var h=function(R){a(g,R);function g(y,T,D,A,L){var N=this,W={i18n:{countFiltered:"{shown} ({total})"}};return N=R.call(this,y,l.extend(W,T),D,A,L)||this,N}return g.prototype._getMessage=function(y){var T=this.s.dt.i18n("searchPanes.count",this.c.i18n.count),D=this.s.dt.i18n("searchPanes.countFiltered",this.c.i18n.countFiltered);return(this.s.filteringActive?D:T).replace(/{total}/g,y.total).replace(/{shown}/g,y.shown)},g.prototype._getShown=function(y){return this.s.rowData.binsShown&&this.s.rowData.binsShown[y]?this.s.rowData.binsShown[y]:0},g}(i),f=window&&window.__extends||function(){var R=function(g,y){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,D){T.__proto__=D}||function(T,D){for(var A in D)D.hasOwnProperty(A)&&(T[A]=D[A])},R(g,y)};return function(g,y){R(g,y);function T(){this.constructor=g}g.prototype=y===null?Object.create(y):(T.prototype=y.prototype,new T)}}(),b;function v(R){b=R}var m=function(R){f(g,R);function g(y,T,D,A,L){var N=this,W={i18n:{count:"{shown}"}};return N=R.call(this,y,b.extend(W,T),D,A,L)||this,N}return g.prototype.updateRows=function(){var y=this.s.dtPane.rows({selected:!0}).data().toArray(),T;if(this.s.colOpts.options||this.s.customPaneSettings&&this.s.customPaneSettings.options){this._getComparisonRows();for(var D=this.s.dtPane.rows().toArray()[0],A=0;A<D.length;A++){var L=this.s.dtPane.row(D[A]),N=L.data();if(N!==void 0){if(N.shown===0){L.remove(),D=this.s.dtPane.rows().toArray()[0],A--;continue}for(var W=0,H=y;W<H.length;W++)if(T=H[W],N.filter===T.filter){L.select(),y.splice(A,1),this.s.selections.push(N.filter);break}}}}else{if(!this.s.dt.page.info().serverSide){this._activePopulatePane(),this.s.rowData.binsShown={};for(var M=0,j=this.s.dt.rows({search:"applied"}).indexes().toArray();M<j.length;M++){var $=j[M];this._updateShown($,this.s.dt.settings()[0],this.s.rowData.binsShown)}}this.s.dtPane.rows().remove();for(var z=0,X=this.s.rowData.arrayFilter;z<X.length;z++){var K=X[z];if(K.shown!==0)for(var re=this.addRow(K.display,K.filter,K.sort,K.type,void 0),fe=0;fe<y.length;fe++){var he=y[fe];if(he.filter===K.filter){re.select(),y.splice(fe,1),this.s.selections.push(K.filter);break}}}for(var ke=0,Ee=y;ke<Ee.length;ke++){T=Ee[ke];for(var We=0,je=this.s.rowData.arrayOriginal;We<je.length;We++){var we=je[We];if(we.filter===T.filter){var Ue=this.addRow(we.display,we.filter,we.sort,we.type,void 0);Ue.select(),this.s.selections.push(we.filter)}}}}this.s.dtPane.draw(),this.s.dtPane.table().node().parentNode.scrollTop=this.s.scrollTop,this.s.dt.page.info().serverSide||this.s.dt.draw(!1)},g.prototype._activePopulatePane=function(){this.s.rowData.arrayFilter=[],this.s.rowData.bins={};var y=this.s.dt.settings()[0];if(!this.s.dt.page.info().serverSide)for(var T=0,D=this.s.dt.rows({search:"applied"}).indexes().toArray();T<D.length;T++){var A=D[T];this._populatePaneArray(A,this.s.rowData.arrayFilter,y)}},g.prototype._getComparisonRows=function(){var y=this.s.colOpts.options?this.s.colOpts.options:this.s.customPaneSettings&&this.s.customPaneSettings.options?this.s.customPaneSettings.options:void 0;if(y!==void 0){var T=this.s.dt.rows(),D=this.s.dt.rows({search:"applied"}),A=T.data().toArray(),L=D.data().toArray(),N=[];this.s.dtPane.clear(),this.s.indexes=[];for(var W=0,H=y;W<H.length;W++){var M=H[W],j=M.label!==""?M.label:this.emptyMessage(),$={className:M.className,display:j,filter:typeof M.value=="function"?M.value:[],shown:0,sort:j,total:0,type:j};if(typeof M.value=="function"){for(var z=0;z<A.length;z++)M.value.call(this.s.dt,A[z],T[0][z])&&$.total++;for(var X=0;X<L.length;X++)M.value.call(this.s.dt,L[X],D[0][X])&&$.shown++;typeof $.filter!="function"&&$.filter.push(M.filter)}N.push(this.addRow($.display,$.filter,$.sort,$.type,$.className,$.total,$.shown))}return N}},g.prototype._getMessage=function(y){return this.s.dt.i18n("searchPanes.count",this.c.i18n.count).replace(/{total}/g,y.total).replace(/{shown}/g,y.shown)},g.prototype._getShown=function(y){return this.s.rowData.binsShown&&this.s.rowData.binsShown[y]?this.s.rowData.binsShown[y]:0},g.prototype._shouldAddRow=function(y){return y.shown>0},g}(i),C=window&&window.__extends||function(){var R=function(g,y){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,D){T.__proto__=D}||function(T,D){for(var A in D)D.hasOwnProperty(A)&&(T[A]=D[A])},R(g,y)};return function(g,y){R(g,y);function T(){this.constructor=g}g.prototype=y===null?Object.create(y):(T.prototype=y.prototype,new T)}}(),w;function c(R){w=R}var o=function(R){C(g,R);function g(y,T,D,A,L){var N=this,W={i18n:{count:"{total}",countFiltered:"{shown} ({total})"}};return N=R.call(this,y,w.extend(W,T),D,A,L)||this,N}return g.prototype._activePopulatePane=function(){this.s.rowData.arrayFilter=[],this.s.rowData.binsShown={};var y=this.s.dt.settings()[0];if(!this.s.dt.page.info().serverSide)for(var T=0,D=this.s.dt.rows({search:"applied"}).indexes().toArray();T<D.length;T++){var A=D[T];this._populatePaneArray(A,this.s.rowData.arrayFilter,y,this.s.rowData.binsShown)}},g.prototype._getMessage=function(y){var T=this.s.dt.i18n("searchPanes.count",this.c.i18n.count),D=this.s.dt.i18n("searchPanes.countFiltered",this.c.i18n.countFiltered);return(this.s.filteringActive?D:T).replace(/{total}/g,y.total).replace(/{shown}/g,y.shown)},g}(m),d,p;function _(R){d=R,p=R.fn.dataTable}var x=function(){function R(g,y,T,D){var A=this;if(T===void 0&&(T=!1),D===void 0&&(D=r),!p||!p.versionCheck||!p.versionCheck("1.10.0"))throw new Error("SearchPane requires DataTables 1.10 or newer");if(!p.select)throw new Error("SearchPane requires Select");var L=new p.Api(g);if(this.classes=d.extend(!0,{},R.classes),this.c=d.extend(!0,{},R.defaults,y),this.dom={clearAll:d('<button type="button"/>').addClass(this.classes.clearAll).html(L.i18n("searchPanes.clearMessage",this.c.i18n.clearMessage)),collapseAll:d('<button type="button"/>').addClass(this.classes.collapseAll).html(L.i18n("searchPanes.collapseMessage",this.c.i18n.collapseMessage)),container:d("<div/>").addClass(this.classes.panes).html(L.i18n("searchPanes.loadMessage",this.c.i18n.loadMessage)),emptyMessage:d("<div/>").addClass(this.classes.emptyMessage),panes:d("<div/>").addClass(this.classes.container),showAll:d('<button type="button"/>').addClass(this.classes.showAll).addClass(this.classes.disabledButton).attr("disabled","true").html(L.i18n("searchPanes.showMessage",this.c.i18n.showMessage)),title:d("<div/>").addClass(this.classes.title),titleRow:d("<div/>").addClass(this.classes.titleRow)},this.s={colOpts:[],dt:L,filterCount:0,minPaneWidth:260,page:0,paging:!1,pagingST:!1,paneClass:D,panes:[],selectionList:[],serverData:{},stateRead:!1,updating:!1},!L.settings()[0]._searchPanes){if(d(document).on("draw.dt",function(W){A.dom.container.find(W.target).length&&A._updateFilterCount()}),this._getState(),this.s.dt.page.info().serverSide){var N=this.s.dt.settings()[0];this.s.dt.on("preXhr.dtsps",function(W,H,M){if(N===H){M.searchPanes===void 0&&(M.searchPanes={}),M.searchPanes_null===void 0&&(M.searchPanes_null={});for(var j,$=0,z=A.s.selectionList;$<z.length;$++){var X=z[$];j=A.s.dt.column(X.column).dataSrc(),M.searchPanes[j]===void 0&&(M.searchPanes[j]={}),M.searchPanes_null[j]===void 0&&(M.searchPanes_null[j]={});for(var K=0;K<X.rows.length;K++)M.searchPanes[j][K]=X.rows[K],M.searchPanes[j][K]===null?M.searchPanes_null[j][K]=!0:M.searchPanes_null[j][K]=!1}A.s.selectionList.length>0&&(M.searchPanesLast=j),M.searchPanes_options={cascade:A.c.cascadePanes,viewCount:A.c.viewCount,viewTotal:A.c.viewTotal}}})}return this._setXHR(),L.settings()[0]._searchPanes=this,this.s.dt.settings()[0]._bInitComplete||T?this._paneDeclare(L,g,y):L.one("preInit.dtsps",function(){A._paneDeclare(L,g,y)}),this}}return R.prototype.clearSelections=function(){for(var g,y=0,T=this.s.panes;y<T.length;y++)g=T[y],g.s.dtPane&&(g.s.scrollTop=g.s.dtPane.table().node().parentNode.scrollTop);var D=this.dom.container.find("."+this.classes.search.replace(/\s+/g,"."));D.each(function(){d(this).val("").trigger("input")}),this.s.selectionList=[];for(var A=[],L=0,N=this.s.panes;L<N.length;L++)g=N[L],g.s.dtPane&&A.push(g.clearPane());return A},R.prototype.getNode=function(){return this.dom.container},R.prototype.rebuild=function(g,y){g===void 0&&(g=!1),y===void 0&&(y=!1),this.dom.emptyMessage.detach(),g===!1&&this.dom.panes.empty();for(var T=[],D=0,A=this.s.panes;D<A.length;D++){var L=A[D];(g===!1||L.s.index===g)&&(L.clearData(),L.rebuildPane(this.s.dt.page.info().serverSide?this.s.serverData:void 0,y),this.dom.panes.append(L.dom.container),T.push(L))}return this._updateSelection(),this._updateFilterCount(),this._attachPaneContainer(),this._initSelectionListeners(!1),this.s.dt.draw(!y),this.resizePanes(),T.length===1?T[0]:T},R.prototype.resizePanes=function(){var g;if(this.c.layout==="auto"){for(var y=d(this.s.dt.searchPanes.container()).width(),T=Math.floor(y/this.s.minPaneWidth),D=1,A=0,L=[],N=0,W=this.s.panes;N<W.length;N++)g=W[N],g.s.displayed&&L.push(g.s.index);var H=L.length;if(T===H)D=T;else for(var M=T;M>1;M--){var j=H%M;if(j===0){D=M,A=0;break}else j>A&&(D=M,A=j)}var $=A!==0?L.slice(L.length-A,L.length):[];this.s.panes.forEach(function(K){K.s.displayed&&K.resize("columns-"+($.includes(K.s.index)?A:D))})}else for(var z=0,X=this.s.panes;z<X.length;z++)g=X[z],g.adjustTopRow();return this},R.prototype._initSelectionListeners=function(g){},R.prototype._serverTotals=function(){},R.prototype._setXHR=function(){var g=this,y=this.s.dt.settings()[0],T=function(D){D&&D.searchPanes&&D.searchPanes.options&&(g.s.serverData=D,g.s.serverData.tableLength=D.recordsTotal,g._serverTotals())};this.s.dt.on("xhr.dtsps",function(D,A,L){y===A&&T(L)}),T(this.s.dt.ajax.json())},R.prototype._stateLoadListener=function(){var g=this,y=this.s.dt.settings()[0];this.s.dt.on("stateLoadParams.dtsps",function(T,D,A){if(!(A.searchPanes===void 0||D!==y)){if(g.clearSelections(),g.s.selectionList=A.searchPanes.selectionList?A.searchPanes.selectionList:[],A.searchPanes.panes)for(var L=0,N=A.searchPanes.panes;L<N.length;L++)for(var W=N[L],H=0,M=g.s.panes;H<M.length;H++){var j=M[H];W.id===j.s.index&&j.s.dtPane&&(j.dom.searchBox.val(W.searchTerm),j.s.dtPane.order(W.order))}g._makeSelections(g.s.selectionList)}})},R.prototype._updateSelection=function(){this.s.selectionList=[];for(var g=0,y=this.s.panes;g<y.length;g++){var T=y[g];if(T.s.dtPane){var D=T.s.dtPane.rows({selected:!0}).data().toArray().map(function(A){return A.filter});D.length&&this.s.selectionList.push({column:T.s.index,rows:D})}}},R.prototype._attach=function(){var g=this;this.dom.titleRow.removeClass(this.classes.hide).detach().append(this.dom.title),this.c.clear&&this.dom.clearAll.appendTo(this.dom.titleRow).off("click.dtsps").on("click.dtsps",function(){return g.clearSelections()}),this.c.collapse&&(this.dom.showAll.appendTo(this.dom.titleRow),this.dom.collapseAll.appendTo(this.dom.titleRow),this._setCollapseListener());for(var y=0,T=this.s.panes;y<T.length;y++){var D=T[y];this.dom.panes.append(D.dom.container)}this.dom.container[0].childNodes.forEach(function(A){return A.remove()}),this.dom.container.removeClass(this.classes.hide).append(this.dom.titleRow).append(this.dom.panes),this.s.panes.forEach(function(A){return A.setListeners()}),d("div."+this.classes.container).length===0&&this.dom.container.prependTo(this.s.dt)},R.prototype._attachMessage=function(){var g;try{g=this.s.dt.i18n("searchPanes.emptyPanes",this.c.i18n.emptyPanes)}catch(y){g=null}if(g===null){this.dom.container.addClass(this.classes.hide),this.dom.titleRow.removeClass(this.classes.hide);return}this.dom.container.removeClass(this.classes.hide),this.dom.titleRow.addClass(this.classes.hide),this.dom.emptyMessage.html(g).appendTo(this.dom.container)},R.prototype._attachPaneContainer=function(){for(var g=0,y=this.s.panes;g<y.length;g++){var T=y[g];if(T.s.displayed===!0){this._attach();return}}this._attachMessage()},R.prototype._checkCollapse=function(){for(var g=!0,y=!0,T=0,D=this.s.panes;T<D.length;T++){var A=D[T];A.s.displayed&&(A.dom.collapseButton.hasClass(A.classes.rotated)?(this.dom.showAll.removeClass(this.classes.disabledButton).removeAttr("disabled"),y=!1):(this.dom.collapseAll.removeClass(this.classes.disabledButton).removeAttr("disabled"),g=!1))}g&&this.dom.collapseAll.addClass(this.classes.disabledButton).attr("disabled","true"),y&&this.dom.showAll.addClass(this.classes.disabledButton).attr("disabled","true")},R.prototype._checkMessage=function(){for(var g=0,y=this.s.panes;g<y.length;g++){var T=y[g];if(T.s.displayed===!0){this.dom.emptyMessage.detach(),this.dom.titleRow.removeClass(this.classes.hide);return}}this._attachMessage()},R.prototype._collapseAll=function(){for(var g=0,y=this.s.panes;g<y.length;g++){var T=y[g];T.collapse()}},R.prototype._findPane=function(g){for(var y=0,T=this.s.panes;y<T.length;y++){var D=T[y];if(g===D.s.name)return D}},R.prototype._getState=function(){var g=this.s.dt.state.loaded();g&&g.searchPanes&&g.searchPanes.selectionList&&(this.s.selectionList=g.searchPanes.selectionList)},R.prototype._makeSelections=function(g){for(var y=0,T=g;y<T.length;y++){for(var D=T[y],A=void 0,L=0,N=this.s.panes;L<N.length;L++){var W=N[L];if(W.s.index===D.column){A=W;break}}if(A&&A.s.dtPane){for(var H=0;H<A.s.dtPane.rows().data().toArray().length;H++)D.rows.includes(typeof A.s.dtPane.row(H).data().filter=="function"?A.s.dtPane.cell(H,0).data():A.s.dtPane.row(H).data().filter)&&A.s.dtPane.row(H).select();A.updateTable()}}},R.prototype._paneDeclare=function(g,y,T){var D=this;g.columns(this.c.columns.length>0?this.c.columns:void 0).eq(0).each(function(W){D.s.panes.push(new D.s.paneClass(y,T,W,D.dom.panes))});for(var A=g.columns().eq(0).toArray().length,L=0;L<this.c.panes.length;L++){var N=A+L;this.s.panes.push(new this.s.paneClass(y,T,N,this.dom.panes,this.c.panes[L]))}this.c.order.length>0&&(this.s.panes=this.c.order.map(function(W){return D._findPane(W)})),this.s.dt.settings()[0]._bInitComplete?this._startup(g):p.versionCheck("2")?this.s.dt.settings()[0].aoInitComplete.push(function(){return D._startup(g)}):this.s.dt.settings()[0].aoInitComplete.push({fn:function(){return D._startup(g)}})},R.prototype._setCollapseListener=function(){var g=this;this.dom.collapseAll.off("click.dtsps").on("click.dtsps",function(){g._collapseAll(),g.dom.collapseAll.addClass(g.classes.disabledButton).attr("disabled","true"),g.dom.showAll.removeClass(g.classes.disabledButton).removeAttr("disabled"),g.s.dt.state.save()}),this.dom.showAll.off("click.dtsps").on("click.dtsps",function(){g._showAll(),g.dom.showAll.addClass(g.classes.disabledButton).attr("disabled","true"),g.dom.collapseAll.removeClass(g.classes.disabledButton).removeAttr("disabled"),g.s.dt.state.save()});for(var y=0,T=this.s.panes;y<T.length;y++){var D=T[y];D.dom.topRow.off("collapse.dtsps").on("collapse.dtsps",function(){return g._checkCollapse()})}this._checkCollapse()},R.prototype._showAll=function(){for(var g=0,y=this.s.panes;g<y.length;g++){var T=y[g];T.show()}},R.prototype._startup=function(g){var y=this;this._attach(),this.dom.panes.empty();for(var T=this.s.dt.settings()[0],D=0,A=this.s.panes;D<A.length;D++){var L=A[D];L.rebuildPane(Object.keys(this.s.serverData).length>0?this.s.serverData:void 0),this.dom.panes.append(L.dom.container)}this.c.layout==="auto"&&this.resizePanes();var N=this.s.dt.state.loaded();!this.s.stateRead&&N&&this.s.dt.page(N.start/this.s.dt.page.len()).draw("page"),this.s.stateRead=!0,this._checkMessage(),g.on("preDraw.dtsps",function(){!y.s.updating&&!y.s.paging&&(y._updateFilterCount(),y._updateSelection()),y.s.paging=!1}),d(window).on("resize.dtsps",p.util.throttle(function(){return y.resizePanes()})),this.s.dt.on("stateSaveParams.dtsps",function(H,M,j){M===T&&(j.searchPanes===void 0&&(j.searchPanes={}),j.searchPanes.selectionList=y.s.selectionList)}),this._stateLoadListener(),g.off("page.dtsps page-nc.dtsps").on("page.dtsps page-nc.dtsps",function(H,M){y.s.paging=!0,y.s.pagingST=!0,y.s.page=y.s.dt.page()}),this.s.dt.page.info().serverSide?g.off("preXhr.dtsps").on("preXhr.dtsps",function(H,M,j){if(M===T){j.searchPanes||(j.searchPanes={}),j.searchPanes_null||(j.searchPanes_null={});for(var $=0,z=0,X=y.s.panes;z<X.length;z++){var K=X[z],re=y.s.dt.column(K.s.index).dataSrc();if(j.searchPanes[re]||(j.searchPanes[re]={}),j.searchPanes_null[re]||(j.searchPanes_null[re]={}),K.s.dtPane)for(var fe=K.s.dtPane.rows({selected:!0}).data().toArray(),he=0;he<fe.length;he++)j.searchPanes[re][he]=fe[he].filter,j.searchPanes[re][he]?j.searchPanes_null[re][he]=!1:j.searchPanes_null[re][he]=!0,$++}$>0&&($!==y.s.filterCount&&(j.start=0,y.s.page=0,y.s.dt.page(y.s.page)),y.s.filterCount=$),y.s.selectionList.length>0&&(j.searchPanesLast=y.s.dt.column(y.s.selectionList[y.s.selectionList.length-1].column).dataSrc()),j.searchPanes_options={cascade:y.c.cascadePanes,viewCount:y.c.viewCount,viewTotal:y.c.viewTotal}}}):g.on("preXhr.dtsps",function(){return y.s.panes.forEach(function(H){return H.clearData()})}),this.s.dt.on("xhr.dtsps",function(H,M){if(M.nTable===y.s.dt.table().node()&&!y.s.dt.page.info().serverSide){var j=!1;y.s.dt.one("preDraw.dtsps",function(){if(!j){var $=y.s.dt.page();j=!0,y.s.updating=!0,y.dom.panes.empty();for(var z=0,X=y.s.panes;z<X.length;z++){var K=X[z];K.clearData(),K.rebuildPane(void 0,!0),y.dom.panes.append(K.dom.container)}y.s.dt.page.info().serverSide||y.s.dt.draw(),y.s.updating=!1,y._updateSelection(),y._checkMessage(),y.s.dt.one("draw.dtsps",function(){y.s.updating=!0,y.s.dt.page($).draw(!1),y.s.updating=!1})}})}});var W=this.c.preSelect;N&&N.searchPanes&&N.searchPanes.selectionList&&(W=N.searchPanes.selectionList),this._makeSelections(W),this._updateFilterCount(),g.on("destroy.dtsps",function(H,M){if(M===T){for(var j=0,$=y.s.panes;j<$.length;j++){var z=$[j];z.destroy()}g.off(".dtsps"),y.dom.showAll.off(".dtsps"),y.dom.clearAll.off(".dtsps"),y.dom.collapseAll.off(".dtsps"),d(g.table().node()).off(".dtsps"),y.dom.container.detach(),y.clearSelections()}}),this.c.collapse&&this._setCollapseListener(),this.c.clear&&this.dom.clearAll.off("click.dtsps").on("click.dtsps",function(){return y.clearSelections()}),T._searchPanes=this,this.s.dt.state.save()},R.prototype._updateFilterCount=function(){for(var g=0,y=0,T=0,D=this.s.panes;T<D.length;T++){var A=D[T];A.s.dtPane&&(g+=A.getPaneCount(),A.s.dtPane.search()&&y++)}this.dom.title.html(this.s.dt.i18n("searchPanes.title",this.c.i18n.title,g)),this.c.filterChanged&&typeof this.c.filterChanged=="function"&&this.c.filterChanged.call(this.s.dt,g),g===0&&y===0?this.dom.clearAll.addClass(this.classes.disabledButton).attr("disabled","true"):this.dom.clearAll.removeClass(this.classes.disabledButton).removeAttr("disabled")},R.version="2.3.5",R.classes={clear:"dtsp-clear",clearAll:"dtsp-clearAll",collapseAll:"dtsp-collapseAll",container:"dtsp-searchPanes",disabledButton:"dtsp-disabledButton",emptyMessage:"dtsp-emptyMessage",hide:"dtsp-hidden",panes:"dtsp-panesContainer",search:"dtsp-search",showAll:"dtsp-showAll",title:"dtsp-title",titleRow:"dtsp-titleRow"},R.defaults={cascadePanes:!1,clear:!0,collapse:!0,columns:[],container:function(g){return g.table().container()},filterChanged:void 0,i18n:{clearMessage:"Clear All",clearPane:"&times;",collapse:{0:"SearchPanes",_:"SearchPanes (%d)"},collapseMessage:"Collapse All",count:"{total}",emptyMessage:"<em>Empty</em>",emptyPanes:"No SearchPanes",loadMessage:"Loading Search Panes...",showMessage:"Show All",title:"Filters Active - %d"},layout:"auto",order:[],panes:[],preSelect:[],viewCount:!0,viewTotal:!1},R}(),P=window&&window.__extends||function(){var R=function(g,y){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,D){T.__proto__=D}||function(T,D){for(var A in D)D.hasOwnProperty(A)&&(T[A]=D[A])},R(g,y)};return function(g,y){R(g,y);function T(){this.constructor=g}g.prototype=y===null?Object.create(y):(T.prototype=y.prototype,new T)}}(),I=function(R){P(g,R);function g(y,T,D){D===void 0&&(D=!1);var A=this,L;T.cascadePanes&&T.viewTotal?L=o:T.cascadePanes?L=m:T.viewTotal&&(L=h),A=R.call(this,y,T,D,L)||this;var N=A.s.dt,W=N.state.loaded(),H=function(){return A._initSelectionListeners(!0,W&&W.searchPanes&&W.searchPanes.selectionList?W.searchPanes.selectionList:A.c.preSelect)};return N.settings()[0]._bInitComplete?H():N.off("init.dtsps").on("init.dtsps",H),A}return g.prototype._initSelectionListeners=function(y,T){y===void 0&&(y=!0),T===void 0&&(T=[]),y&&(this.s.selectionList=T);for(var D=0,A=this.s.panes;D<A.length;D++){var L=A[D];L.s.displayed&&L.s.dtPane.off("select.dtsp").on("select.dtsp",this._update(L)).off("deselect.dtsp").on("deselect.dtsp",this._updateTimeout(L))}this.s.dt.off("draw.dtsps").on("draw.dtsps",this._update()),this._updateSelectionList()},g.prototype._serverTotals=function(){for(var y=0,T=this.s.panes;y<T.length;y++){var D=T[y];if(D.s.colOpts.show){var A=this.s.dt.column(D.s.index).dataSrc(),L=!0;if(this.s.serverData.searchPanes.options[A])for(var N=0,W=this.s.serverData.searchPanes.options[A];N<W.length;N++){var H=W[N];if(H.total!==H.count){L=!1;break}}D.s.filteringActive=!L,D._serverPopulate(this.s.serverData)}}},g.prototype._stateLoadListener=function(){var y=this,T=function(D,A,L){if(L.searchPanes!==void 0){if(y.s.selectionList=L.searchPanes.selectionList?L.searchPanes.selectionList:[],L.searchPanes.panes)for(var N=0,W=L.searchPanes.panes;N<W.length;N++)for(var H=W[N],M=0,j=y.s.panes;M<j.length;M++){var $=j[M];H.id===$.s.index&&$.s.dtPane&&($.dom.searchBox.val(H.searchTerm),$.s.dtPane.order(H.order))}y._updateSelectionList()}};this.s.dt.off("stateLoadParams.dtsps",T).on("stateLoadParams.dtsps",T)},g.prototype._updateSelection=function(){},g.prototype._update=function(y){var T=this;return y===void 0&&(y=void 0),function(){y&&clearTimeout(y.s.deselectTimeout),T._updateSelectionList(y)}},g.prototype._updateTimeout=function(y){var T=this;return y===void 0&&(y=void 0),function(){return y?y.s.deselectTimeout=setTimeout(function(){return T._updateSelectionList(y)},50):T._updateSelectionList()}},g.prototype._updateSelectionList=function(y){if(y===void 0&&(y=void 0),this.s.pagingST){this.s.pagingST=!1;return}else if(this.s.updating||y&&y.s.serverSelecting)return;if(y!==void 0){this.s.dt.page.info().serverSide&&y._updateSelection();var T=y.s.dtPane.rows({selected:!0}).data().toArray().map(function(D){return D.filter});this.s.selectionList=this.s.selectionList.filter(function(D){return D.column!==y.s.index}),T.length>0?(this.s.selectionList.push({column:y.s.index,rows:T}),y.dom.clear.removeClass(this.classes.disabledButton).removeAttr("disabled")):y.dom.clear.addClass(this.classes.disabledButton).attr("disabled","true"),this.s.dt.page.info().serverSide&&this.s.dt.draw(!1)}this._remakeSelections(),this._updateFilterCount()},g.prototype._remakeSelections=function(){var y,T;if(this.s.updating=!0,this.s.dt.page.info().serverSide){this.s.selectionList.length>0&&(T=this.s.panes[this.s.selectionList[this.s.selectionList.length-1].column]);for(var qe=0,Ye=this.s.panes;qe<Ye.length;qe++)y=Ye[qe],y.s.displayed&&(!T||y.s.index!==T.s.index)&&y.updateRows()}else{var D=this.s.selectionList,A=!1;this.clearSelections(),this.s.dt.draw(!1),this.s.dt.rows().toArray()[0].length>this.s.dt.rows({search:"applied"}).toArray()[0].length&&(A=!0),this.s.selectionList=D;for(var L=0,N=this.s.panes;L<N.length;L++)T=N[L],T.s.displayed&&(T.s.filteringActive=A,T.updateRows());for(var W=0,H=this.s.selectionList;W<H.length;W++){var M=H[W];T=null;for(var j=0,$=this.s.panes;j<$.length;j++){var z=$[j];if(z.s.index===M.column){T=z;break}}if(T.s.dtPane){for(var X=T.s.dtPane.rows().indexes().toArray(),K=0;K<M.rows.length;K++){for(var re=!1,fe=0,he=X;fe<he.length;fe++){var ke=he[fe],Ee=T.s.dtPane.row(ke),We=Ee.data();M.rows[K]===We.filter&&(Ee.select(),re=!0)}re||(M.rows.splice(K,1),K--)}if(T.s.selections=M.rows,M.rows.length!==0){this.s.dt.draw();for(var je=!1,we=0,Ue=0,Dt=0,nt=0,Rt=this.s.panes;nt<Rt.length;nt++)y=Rt[nt],y.s.dtPane&&(we+=y.getPaneCount(),we>Ue&&(Dt++,Ue=we));je=we>0;for(var Be=0,$e=this.s.panes;Be<$e.length;Be++)y=$e[Be],y.s.displayed&&(A||T.s.index!==y.s.index||!je?y.s.filteringActive=je||A:Dt===1&&(y.s.filteringActive=!1),y.s.index!==T.s.index&&y.updateRows())}}}this.s.dt.draw(!1)}this.s.updating=!1},g}(x);n(He),_(He),u(He),v(He),c(He);var B=He.fn.dataTable;B.SearchPanes=x,k.SearchPanes=x,B.SearchPanesST=I,k.SearchPanesST=I,B.SearchPane=r,k.SearchPane=r,B.SearchPaneViewTotal=h,k.SearchPaneViewTotal=h,B.SearchPaneCascade=m,k.SearchPaneCascade=m,B.SearchPaneCascadeViewTotal=o,k.SearchPaneCascadeViewTotal=o;var E=He.fn.dataTable.Api.register;E("searchPanes()",function(){return this}),E("searchPanes.clearSelections()",function(){return this.iterator("table",function(R){R._searchPanes&&R._searchPanes.clearSelections()})}),E("searchPanes.rebuildPane()",function(R,g){return this.iterator("table",function(y){y._searchPanes&&y._searchPanes.rebuild(R,g)})}),E("searchPanes.resizePanes()",function(){var R=this.context[0];return R._searchPanes?R._searchPanes.resizePanes():null}),E("searchPanes.container()",function(){var R=this.context[0];return R._searchPanes?R._searchPanes.getNode():null}),k.ext.buttons.searchPanesClear={action:function(R,g){g.searchPanes.clearSelections()},text:"Clear Panes"},k.ext.buttons.searchPanes={action:function(R,g,y,T){var D=this,A=this;T._panes?(this.popover(T._panes.getNode(),{align:"container",span:"container"}),T._panes.rebuild(void 0,!0)):(this.processing(!0),setTimeout(function(){F(g,y,T),D.popover(T._panes.getNode(),{align:"container",span:"container"}),T._panes.rebuild(void 0,!0),He("table.dataTable",T._panes.getNode()).DataTable().columns.adjust(),A.processing(!1)},10))},init:function(R,g,y){R.button(g).text(y.text||R.i18n("searchPanes.collapse","SearchPanes",0)),(R.init().stateSave||y.delayInit===!1)&&F(R,g,y)},config:{},text:"",delayInit:!0};function F(R,g,y){var T=He.extend({filterChanged:function(A){R.button(g).text(R.i18n("searchPanes.collapse",R.context[0].oLanguage.searchPanes!==void 0?R.context[0].oLanguage.searchPanes.collapse:R.context[0]._searchPanes.c.i18n.collapse,A))}},y.config),D=T&&(T.cascadePanes||T.viewTotal)?new k.SearchPanesST(R,T):new k.SearchPanes(R,T);R.button(g).text(y.text||R.i18n("searchPanes.collapse",D.c.i18n.collapse,0)),y._panes=D}function U(R,g,y){g===void 0&&(g=null),y===void 0&&(y=!1);var T=new B.Api(R),D=g||T.init().searchPanes||B.defaults.searchPanes,A=D&&(D.cascadePanes||D.viewTotal)?new I(T,D,y):new x(T,D,y),L=A.getNode();return L}He(document).on("preInit.dt.dtsp",function(R,g){R.namespace==="dt"&&(g.oInit.searchPanes||k.defaults.searchPanes)&&(g._searchPanes||U(g,null,!0))}),k.ext.feature.push({cFeature:"P",fnInit:U}),k.feature&&k.feature.register("searchPanes",U)})();var ea=oe(ae("jquery"),1);var Ts=oe(ae("jquery"),1);var Z=Ts.default;k.select={};k.select.classes={checkbox:"dt-select-checkbox"};k.select.version="2.1.0";k.select.init=function(e){var t=e.settings()[0];if(!k.versionCheck("2"))throw"Warning: Select requires DataTables 2 or newer";if(!t._select){var n=e.state.loaded(),r=function(o,d,p){if(!(p===null||p.select===void 0)){if(e.rows({selected:!0}).any()&&e.rows().deselect(),p.select.rows!==void 0&&e.rows(p.select.rows).select(),e.columns({selected:!0}).any()&&e.columns().deselect(),p.select.columns!==void 0&&e.columns(p.select.columns).select(),e.cells({selected:!0}).any()&&e.cells().deselect(),p.select.cells!==void 0)for(var _=0;_<p.select.cells.length;_++)e.cell(p.select.cells[_].row,p.select.cells[_].column).select();e.state.save()}};e.on("stateSaveParams",function(o,d,p){p.select={},p.select.rows=e.rows({selected:!0}).ids(!0).toArray(),p.select.columns=e.columns({selected:!0})[0],p.select.cells=e.cells({selected:!0})[0].map(function(_){return{row:e.row(_.row).id(!0),column:_.column}})}).on("stateLoadParams",r).one("init",function(){r(void 0,void 0,n)});var s=t.oInit.select,i=k.defaults.select,a=s===void 0?i:s,l="row",u="api",h=!1,f=!0,b=null,v=!0,m="td, th",C="selected",w=!0,c=!1;t._select={infoEls:[]},a===!0?(u="os",c=!0):typeof a=="string"?(u=a,c=!0):Z.isPlainObject(a)&&(a.blurable!==void 0&&(h=a.blurable),a.toggleable!==void 0&&(f=a.toggleable),a.info!==void 0&&(v=a.info),a.items!==void 0&&(l=a.items),a.style!==void 0?(u=a.style,c=!0):(u="os",c=!0),a.selector!==void 0&&(m=a.selector),a.className!==void 0&&(C=a.className),a.headerCheckbox!==void 0&&(w=a.headerCheckbox),a.selectable!==void 0&&(b=a.selectable)),e.select.selector(m),e.select.items(l),e.select.style(u),e.select.blurable(h),e.select.toggleable(f),e.select.info(v),e.select.selectable(b),t._select.className=C,!c&&Z(e.table().node()).hasClass("selectable")&&e.select.style("os"),(w||w==="select-page"||w==="select-all")&&e.ready(function(){Yi(e,w)})}};function ws(e,t,n){var r,s,i,a=function(u,h){if(u>h){var f=h;h=u,u=f}var b=!1;return e.columns(":visible").indexes().filter(function(v){return v===u&&(b=!0),v===h?(b=!1,!0):b})},l=function(u,h){var f=e.rows({search:"applied"}).indexes();if(f.indexOf(u)>f.indexOf(h)){var b=h;h=u,u=b}var v=!1;return f.filter(function(m){return m===u&&(v=!0),m===h?(v=!1,!0):v})};!e.cells({selected:!0}).any()&&!n?(s=a(0,t.column),i=l(0,t.row)):(s=a(n.column,t.column),i=l(n.row,t.row)),r=e.cells(i,s).flatten(),e.cells(t,{selected:!0}).any()?e.cells(r).deselect():e.cells(r).select()}function xt(e){var t=k.select.classes.checkbox;return e?t.replace(/ /g,"."):t}function Tt(e){var t=e.settings()[0],n=t._select.selector;Z(e.table().container()).off("mousedown.dtSelect",n).off("mouseup.dtSelect",n).off("click.dtSelect",n),Z("body").off("click.dtSelect"+Jn(e.table().node()))}function xs(e){var t=Z(e.table().container()),n=e.settings()[0],r=n._select.selector,s;t.on("mousedown.dtSelect",r,function(i){(i.shiftKey||i.metaKey||i.ctrlKey)&&t.css("-moz-user-select","none").one("selectstart.dtSelect",r,function(){return!1}),window.getSelection&&(s=window.getSelection())}).on("mouseup.dtSelect",r,function(){t.css("-moz-user-select","")}).on("click.dtSelect",r,function(i){var a=e.select.items(),l;if(s){var u=window.getSelection();if((!u.anchorNode||Z(u.anchorNode).closest("table")[0]===e.table().node())&&u!==s)return}var h=e.settings()[0],f=e.table().container();if(Z(i.target).closest("div.dt-container")[0]==f){var b=e.cell(Z(i.target).closest("td, th"));if(b.any()){var v=Z.Event("user-select.dt");if(Me(e,v,[a,b,i]),!v.isDefaultPrevented()){var m=b.index();a==="row"?(l=m.row,Xn(i,e,h,"row",l)):a==="column"?(l=b.index().column,Xn(i,e,h,"column",l)):a==="cell"&&(l=b.index(),Xn(i,e,h,"cell",l)),h._select_lastCell=m}}}}),Z("body").on("click.dtSelect"+Jn(e.table().node()),function(i){if(n._select.blurable){if(Z(i.target).parents().filter(e.table().container()).length||Z(i.target).parents("html").length===0||Z(i.target).parents("div.DTE").length)return;var a=Z.Event("select-blur.dt");if(Me(e,a,[i.target,i]),a.isDefaultPrevented())return;Vt(n,!0)}})}function Me(e,t,n,r){r&&!e.flatten().length||(typeof t=="string"&&(t=t+".dt"),n.unshift(e),Z(e.table().node()).trigger(t,n))}function cn(e){return e.mRender&&e.mRender._name==="selectCheckbox"}function _s(e,t){if(!(e.select.style()==="api"||e.select.info()===!1)){var n=e.settings()[0]._select_set.length,r=n||e.rows({selected:!0}).count(),s=e.columns({selected:!0}).count(),i=e.cells({selected:!0}).count(),a=function(f,b,v){f.append(Z('<span class="select-item"/>').append(e.i18n("select."+b+"s",{_:"%d "+b+"s selected",0:"",1:"1 "+b+" selected"},v)))},l=Z(t),u=Z('<span class="select-info"/>');a(u,"row",r),a(u,"column",s),a(u,"cell",i);var h=l.children("span.select-info");h.length&&h.remove(),u.text()!==""&&l.append(u)}}function Yi(e,t){var n=e.settings()[0],r=n.aoColumns;e.columns().iterator("column",function(s,i){var a=r[i];if(cn(a)){var l=e.column(i).header();if(!Z("input",l).length){var u=Z("<input>").attr({class:xt(!0),type:"checkbox","aria-label":e.i18n("select.aria.headerCheckbox")||"Select all rows"}).appendTo(l).on("change",function(){this.checked?t=="select-page"?e.rows({page:"current"}).select():e.rows({search:"applied"}).select():t=="select-page"?e.rows({page:"current",selected:!0}).deselect():e.rows({selected:!0}).deselect()}).on("click",function(h){h.stopPropagation()});e.on("draw select deselect",function(h,f,b){if(b==="row"||!b){var v=Xi(e,t);v.search&&v.search<=v.count&&v.search===v.available?u.prop("checked",!0).prop("indeterminate",!1):v.search===0&&v.count===0?u.prop("checked",!1).prop("indeterminate",!1):u.prop("checked",!1).prop("indeterminate",!0)}})}}})}function Xi(e,t){var n=e.settings()[0],r=n._select.selectable,s=0,i=t=="select-page"?e.rows({page:"current",selected:!0}).count():e.rows({selected:!0}).count(),a=t=="select-page"?e.rows({page:"current",selected:!0}).count():e.rows({search:"applied",selected:!0}).count();if(!r)s=t=="select-page"?e.rows({page:"current"}).count():e.rows({search:"applied"}).count();else for(var l=t=="select-page"?e.rows({page:"current"}).indexes():e.rows({search:"applied"}).indexes(),u=0;u<l.length;u++){var h=n.aoData[l[u]],f=r(h._aData,h.nTr,l[u]);f&&s++}return{available:s,count:i,search:a}}function zi(e){var t=new k.Api(e);e._select_init=!0,e._select_set=[],e.aoRowCreatedCallback.push(function(n,r,s){var i,a,l=e.aoData[s],u=t.row(s).id();for((l._select_selected||u!=="undefined"&&e._select_set.includes(u))&&(l._select_selected=!0,Z(n).addClass(e._select.className).find("input."+xt(!0)).prop("checked",!0)),i=0,a=e.aoColumns.length;i<a;i++)(e.aoColumns[i]._select_selected||l._selected_cells&&l._selected_cells[i])&&Z(l.anCells[i]).addClass(e._select.className)}),Qi(t),t.on("info.dt",function(n,r,s){r._select.infoEls.includes(s)||r._select.infoEls.push(s),_s(t,s)}),t.on("select.dtSelect.dt deselect.dtSelect.dt",function(){e._select.infoEls.forEach(function(n){_s(t,n)}),t.state.save()}),t.on("destroy.dtSelect",function(){Z(t.rows({selected:!0}).nodes()).removeClass(t.settings()[0]._select.className),Z("input."+xt(!0),t.table().header()).remove(),Tt(t),t.off(".dtSelect"),Z("body").off(".dtSelect"+Jn(t.table().node()))})}function Cs(e,t,n,r){var s=e[t+"s"]({search:"applied"}).indexes(),i=s.indexOf(r),a=s.indexOf(n);if(!e[t+"s"]({selected:!0}).any()&&i===-1)s.splice(s.indexOf(n)+1,s.length);else{if(i>a){var l=a;a=i,i=l}s.splice(a+1,s.length),s.splice(0,i)}e[t](n,{selected:!0}).any()?(s.splice(s.indexOf(n),1),e[t+"s"](s).deselect()):e[t+"s"](s).select()}function Vt(e,t){if(t||e._select.style==="single"){var n=new k.Api(e);n.rows({selected:!0}).deselect(),n.columns({selected:!0}).deselect(),n.cells({selected:!0}).deselect()}}function Xn(e,t,n,r,s){var i=t.select.style(),a=t.select.toggleable(),l=t[r](s,{selected:!0}).any();if(!(l&&!a))if(i==="os")if(e.ctrlKey||e.metaKey)t[r](s).select(!l);else if(e.shiftKey)r==="cell"?ws(t,s,n._select_lastCell||null):Cs(t,r,s,n._select_lastCell?n._select_lastCell[r]:null);else{var u=t[r+"s"]({selected:!0});l&&u.flatten().length===1?t[r](s).deselect():(u.deselect(),t[r](s).select())}else i=="multi+shift"&&e.shiftKey?r==="cell"?ws(t,s,n._select_lastCell||null):Cs(t,r,s,n._select_lastCell?n._select_lastCell[r]:null):t[r](s).select(!l)}function Jn(e){return e.id.replace(/[^a-zA-Z0-9\-\_]/g,"-")}function Qi(e){e.on("select",function(t,n,r,s){if(r==="row"){var i=e.settings()[0];Ji(e,i._select_set,s)}}),e.on("deselect",function(t,n,r,s){if(r==="row"){var i=e.settings()[0];Ki(e,i._select_set,s)}})}function Ji(e,t,n){for(var r=0;r<n.length;r++){var s=e.row(n[r]).id();s&&s!=="undefined"&&!t.includes(s)&&t.push(s)}}function Ki(e,t,n){for(var r=0;r<n.length;r++){var s=e.row(n[r]).id(),i=t.indexOf(s);i!==-1&&t.splice(i,1)}}Z.each([{type:"row",prop:"aoData"},{type:"column",prop:"aoColumns"}],function(e,t){k.ext.selector[t.type].push(function(n,r,s){var i=r.selected,a,l=[];if(i!==!0&&i!==!1)return s;for(var u=0,h=s.length;u<h;u++)a=n[t.prop][s[u]],a&&(i===!0&&a._select_selected===!0||i===!1&&!a._select_selected)&&l.push(s[u]);return l})});k.ext.selector.cell.push(function(e,t,n){var r=t.selected,s,i=[];if(r===void 0)return n;for(var a=0,l=n.length;a<l;a++)s=e.aoData[n[a].row],s&&(r===!0&&s._selected_cells&&s._selected_cells[n[a].column]===!0||r===!1&&(!s._selected_cells||!s._selected_cells[n[a].column]))&&i.push(n[a]);return i});var Ae=k.Api.register,St=k.Api.registerPlural;Ae("select()",function(){return this.iterator("table",function(e){k.select.init(new k.Api(e))})});Ae("select.blurable()",function(e){return e===void 0?this.context[0]._select.blurable:this.iterator("table",function(t){t._select.blurable=e})});Ae("select.toggleable()",function(e){return e===void 0?this.context[0]._select.toggleable:this.iterator("table",function(t){t._select.toggleable=e})});Ae("select.info()",function(e){return e===void 0?this.context[0]._select.info:this.iterator("table",function(t){t._select.info=e})});Ae("select.items()",function(e){return e===void 0?this.context[0]._select.items:this.iterator("table",function(t){t._select.items=e,Me(new k.Api(t),"selectItems",[e])})});Ae("select.style()",function(e){return e===void 0?this.context[0]._select.style:this.iterator("table",function(t){t._select||k.select.init(new k.Api(t)),t._select_init||zi(t),t._select.style=e;var n=new k.Api(t);e!=="api"?n.ready(function(){Tt(n),xs(n)}):Tt(n),Me(new k.Api(t),"selectStyle",[e])})});Ae("select.selector()",function(e){return e===void 0?this.context[0]._select.selector:this.iterator("table",function(t){var n=new k.Api(t),r=t._select.style;Tt(n),t._select.selector=e,r&&r!=="api"?n.ready(function(){Tt(n),xs(n)}):Tt(n)})});Ae("select.selectable()",function(e){let t=this.context[0];return e?(t._select.selectable=e,this):t._select.selectable});Ae("select.last()",function(e){let t=this.context[0];return e?(t._select_lastCell=e,this):t._select_lastCell});Ae("select.cumulative()",function(){let e=this.context[0];return e&&e._select_set?e._select_set:[]});St("rows().select()","row().select()",function(e){var t=this,n=[];return e===!1?this.deselect():(this.iterator("row",function(r,s){Vt(r);var i=r.aoData[s],a=r.aoColumns;if(r._select.selectable){var l=r._select.selectable(i._aData,i.nTr,s);if(l===!1)return}Z(i.nTr).addClass(r._select.className),i._select_selected=!0,n.push(s);for(var u=0;u<a.length;u++){var h=a[u];if(h.sType===null&&t.columns().types(),cn(h)){var f=i.anCells;f&&f[u]&&Z("input."+xt(!0),f[u]).prop("checked",!0),i._aSortData!==null&&(i._aSortData[u]=null)}}}),this.iterator("table",function(r){Me(t,"select",["row",n],!0)}),this)});Ae("row().selected()",function(){var e=this.context[0];return!!(e&&this.length&&e.aoData[this[0]]&&e.aoData[this[0]]._select_selected)});St("columns().select()","column().select()",function(e){var t=this;return e===!1?this.deselect():(this.iterator("column",function(n,r){Vt(n),n.aoColumns[r]._select_selected=!0;var s=new k.Api(n).column(r);Z(s.header()).addClass(n._select.className),Z(s.footer()).addClass(n._select.className),s.nodes().to$().addClass(n._select.className)}),this.iterator("table",function(n,r){Me(t,"select",["column",t[r]],!0)}),this)});Ae("column().selected()",function(){var e=this.context[0];return!!(e&&this.length&&e.aoColumns[this[0]]&&e.aoColumns[this[0]]._select_selected)});St("cells().select()","cell().select()",function(e){var t=this;return e===!1?this.deselect():(this.iterator("cell",function(n,r,s){Vt(n);var i=n.aoData[r];i._selected_cells===void 0&&(i._selected_cells=[]),i._selected_cells[s]=!0,i.anCells&&Z(i.anCells[s]).addClass(n._select.className)}),this.iterator("table",function(n,r){Me(t,"select",["cell",t.cells(t[r]).indexes().toArray()],!0)}),this)});Ae("cell().selected()",function(){var e=this.context[0];if(e&&this.length){var t=e.aoData[this[0][0].row];if(t&&t._selected_cells&&t._selected_cells[this[0][0].column])return!0}return!1});St("rows().deselect()","row().deselect()",function(){var e=this;return this.iterator("row",function(t,n){var r=t.aoData[n],s=t.aoColumns;Z(r.nTr).removeClass(t._select.className),r._select_selected=!1,t._select_lastCell=null;for(var i=0;i<s.length;i++){var a=s[i];if(a.sType===null&&e.columns().types(),cn(a)){var l=r.anCells;l&&l[i]&&Z("input."+xt(!0),r.anCells[i]).prop("checked",!1),r._aSortData!==null&&(r._aSortData[i]=null)}}}),this.iterator("table",function(t,n){Me(e,"deselect",["row",e[n]],!0)}),this});St("columns().deselect()","column().deselect()",function(){var e=this;return this.iterator("column",function(t,n){t.aoColumns[n]._select_selected=!1;var r=new k.Api(t),s=r.column(n);Z(s.header()).removeClass(t._select.className),Z(s.footer()).removeClass(t._select.className),r.cells(null,n).indexes().each(function(i){var a=t.aoData[i.row],l=a._selected_cells;a.anCells&&(!l||!l[i.column])&&Z(a.anCells[i.column]).removeClass(t._select.className)})}),this.iterator("table",function(t,n){Me(e,"deselect",["column",e[n]],!0)}),this});St("cells().deselect()","cell().deselect()",function(){var e=this;return this.iterator("cell",function(t,n,r){var s=t.aoData[n];s._selected_cells!==void 0&&(s._selected_cells[r]=!1),s.anCells&&!t.aoColumns[r]._select_selected&&Z(s.anCells[r]).removeClass(t._select.className)}),this.iterator("table",function(t,n){Me(e,"deselect",["cell",e[n]],!0)}),this});function Ct(e,t){return function(n){return n.i18n("buttons."+e,t)}}function zn(e){var t=e._eventNamespace;return"draw.dt.DT"+t+" select.dt.DT"+t+" deselect.dt.DT"+t}function Zi(e,t){return!!(t.limitTo.indexOf("rows")!==-1&&e.rows({selected:!0}).any()||t.limitTo.indexOf("columns")!==-1&&e.columns({selected:!0}).any()||t.limitTo.indexOf("cells")!==-1&&e.cells({selected:!0}).any())}var Qn=0;Z.extend(k.ext.buttons,{selected:{text:Ct("selected","Selected"),className:"buttons-selected",limitTo:["rows","columns","cells"],init:function(e,t,n){var r=this;n._eventNamespace=".select"+Qn++,e.on(zn(n),function(){r.enable(Zi(e,n))}),this.disable()},destroy:function(e,t,n){e.off(n._eventNamespace)}},selectedSingle:{text:Ct("selectedSingle","Selected single"),className:"buttons-selected-single",init:function(e,t,n){var r=this;n._eventNamespace=".select"+Qn++,e.on(zn(n),function(){var s=e.rows({selected:!0}).flatten().length+e.columns({selected:!0}).flatten().length+e.cells({selected:!0}).flatten().length;r.enable(s===1)}),this.disable()},destroy:function(e,t,n){e.off(n._eventNamespace)}},selectAll:{text:Ct("selectAll","Select all"),className:"buttons-select-all",action:function(e,t,n,r){var s=this.select.items(),i=r.selectorModifier;i?(typeof i=="function"&&(i=i.call(t,e,t,n,r)),this[s+"s"](i).select()):this[s+"s"]().select()}},selectNone:{text:Ct("selectNone","Deselect all"),className:"buttons-select-none",action:function(){Vt(this.settings()[0],!0)},init:function(e,t,n){var r=this;n._eventNamespace=".select"+Qn++,e.on(zn(n),function(){var s=e.rows({selected:!0}).flatten().length+e.columns({selected:!0}).flatten().length+e.cells({selected:!0}).flatten().length;r.enable(s>0)}),this.disable()},destroy:function(e,t,n){e.off(n._eventNamespace)}},showSelected:{text:Ct("showSelected","Show only selected"),className:"buttons-show-selected",action:function(e,t){if(t.search.fixed("dt-select"))t.search.fixed("dt-select",null),this.active(!1);else{var n=t.settings()[0].aoData;t.search.fixed("dt-select",function(r,s,i){return n[i]._select_selected}),this.active(!0)}t.draw()}}});Z.each(["Row","Column","Cell"],function(e,t){var n=t.toLowerCase();k.ext.buttons["select"+t+"s"]={text:Ct("select"+t+"s","Select "+n+"s"),className:"buttons-select-"+n+"s",action:function(){this.select.items(n)},init:function(r){var s=this;this.active(r.select.items()===n),r.on("selectItems.dt.DT",function(i,a,l){s.active(l===n)})}}});k.type("select-checkbox",{className:"dt-select",detect:k.versionCheck("2.1")?{oneOf:function(){return!1},allOf:function(){return!1},init:function(e,t,n){return cn(t)}}:function(e){return e==="select-checkbox"?e:!1},order:{pre:function(e){return e==="X"?-1:0}}});Z.extend(!0,k.defaults.oLanguage,{select:{aria:{rowCheckbox:"Select row"}}});k.render.select=function(e,t){var n=e?k.util.get(e):null,r=t?k.util.get(t):null,s=function(i,a,l,u){var h=u.settings.aoData[u.row],f=h._select_selected,b=u.settings.oLanguage.select.aria.rowCheckbox,v=u.settings._select.selectable;if(a==="display"){if(v){var m=v(l,h.nTr,u.row);if(m===!1)return""}return Z("<input>").attr({"aria-label":b,class:xt(),name:r?r(l):null,type:"checkbox",value:n?n(l):null,checked:f}).on("input",function(C){C.preventDefault(),this.checked=Z(this).closest("tr").hasClass("selected")})[0]}else{if(a==="type")return"select-checkbox";if(a==="filter")return""}return f?"X":""};return s._name="selectCheckbox",s};k.ext.order["select-checkbox"]=function(e,t){return this.api().column(t,{order:"index"}).nodes().map(function(n){return e._select.items==="row"?Z(n).parent().hasClass(e._select.className).toString():e._select.items==="cell"?Z(n).hasClass(e._select.className).toString():!1})};Z.fn.DataTable.select=k.select;Z(document).on("i18n.dt.dtSelect preInit.dt.dtSelect",function(e,t){e.namespace==="dt"&&k.select.init(new k.Api(t))});var ta=oe(ae("jquery"),1);var Ss=oe(ae("jquery"),1);var Oe=Ss.default;(function(){"use strict";var e,t;function n(v){e=v,t=v.fn.dataTable}var r=function(){function v(m,C,w,c,o,d){if(c===void 0&&(c=void 0),o===void 0&&(o=!1),d===void 0&&(d=function(){return null}),!t||!t.versionCheck||!t.versionCheck("1.10.0"))throw new Error("StateRestore requires DataTables 1.10 or newer");if(!t.Buttons)throw new Error("StateRestore requires Buttons");var p=new t.Api(m);this.classes=e.extend(!0,{},v.classes),this.c=e.extend(!0,{},v.defaults,C),this.s={dt:p,identifier:w,isPreDefined:o,savedState:c,tableId:c&&c.stateRestore?c.stateRestore.tableId:void 0},this.dom={background:e('<div class="'+this.classes.background+'"/>'),closeButton:e('<div class="'+this.classes.closeButton+'">&times;</div>'),confirmation:e('<div class="'+this.classes.confirmation+'"/>'),confirmationButton:e('<button class="'+this.classes.confirmationButton+" "+this.classes.dtButton+'">'),confirmationTitleRow:e('<div class="'+this.classes.confirmationTitleRow+'"></div>'),dtContainer:e(this.s.dt.table().container()),duplicateError:e('<span class="'+this.classes.modalError+'">'+this.s.dt.i18n("stateRestore.duplicateError",this.c.i18n.duplicateError)+"</span>"),emptyError:e('<span class="'+this.classes.modalError+'">'+this.s.dt.i18n("stateRestore.emptyError",this.c.i18n.emptyError)+"</span>"),removeContents:e('<div class="'+this.classes.confirmationText+'"><span>'+this.s.dt.i18n("stateRestore.removeConfirm",this.c.i18n.removeConfirm).replace(/%s/g,v.entityEncode(this.s.identifier))+"</span></div>"),removeError:e('<span class="'+this.classes.modalError+'">'+this.s.dt.i18n("stateRestore.removeError",this.c.i18n.removeError)+"</span>"),removeTitle:e('<h2 class="'+this.classes.confirmationTitle+'">'+this.s.dt.i18n("stateRestore.removeTitle",this.c.i18n.removeTitle)+"</h2>"),renameContents:e('<div class="'+this.classes.confirmationText+" "+this.classes.renameModal+'"><label class="'+this.classes.confirmationMessage+'">'+this.s.dt.i18n("stateRestore.renameLabel",this.c.i18n.renameLabel).replace(/%s/g,v.entityEncode(this.s.identifier))+"</label></div>"),renameInput:e('<input class="'+this.classes.input+'" type="text"></input>'),renameTitle:e('<h2 class="'+this.classes.confirmationTitle+'">'+this.s.dt.i18n("stateRestore.renameTitle",this.c.i18n.renameTitle)+"</h2>")},this.save(c,d,!o)}return v.prototype.remove=function(m){var C,w=this;if(m===void 0&&(m=!1),!this.c.remove)return!1;var c,o={action:"remove",stateRestore:(C={},C[this.s.identifier]=this.s.savedState,C)},d=function(){w.dom.confirmation.trigger("dtsr-remove"),e(w.s.dt.table().node()).trigger("stateRestore-change"),w.dom.background.click(),w.dom.confirmation.remove(),e(document).unbind("keyup",function(p){return w._keyupFunction(p)}),w.dom.confirmationButton.off("click")};return this.c.ajax?typeof this.c.ajax=="string"&&this.s.dt.settings()[0]._bInitComplete?c=function(){return e.ajax({data:o,success:d,type:"POST",url:w.c.ajax}),!0}:typeof this.c.ajax=="function"&&(c=function(){return typeof w.c.ajax=="function"&&w.c.ajax.call(w.s.dt,o,d),!0}):c=function(){try{localStorage.removeItem("DataTables_stateRestore_"+w.s.identifier+"_"+location.pathname+(w.s.tableId?"_"+w.s.tableId:"")),d()}catch(p){return w.dom.confirmation.children("."+w.classes.modalError).remove(),w.dom.confirmation.append(w.dom.removeError),"remove"}return!0},m?(this.dom.confirmation.appendTo(this.dom.dtContainer),e(this.s.dt.table().node()).trigger("dtsr-modal-inserted"),c(),this.dom.confirmation.remove()):this._newModal(this.dom.removeTitle,this.s.dt.i18n("stateRestore.removeSubmit",this.c.i18n.removeSubmit),c,this.dom.removeContents),!0},v.prototype.compare=function(m){if(this.c.saveState.order||(m.order=void 0),this.c.saveState.search||(m.search=void 0),this.c.saveState.columns&&m.columns)for(var C=0,w=m.columns.length;C<w;C++)typeof this.c.saveState.columns!="boolean"&&!this.c.saveState.columns.visible&&(m.columns[C].visible=void 0),typeof this.c.saveState.columns!="boolean"&&!this.c.saveState.columns.search&&(m.columns[C].search=void 0);else this.c.saveState.columns||(m.columns=void 0);this.c.saveState.paging||(m.page=void 0),this.c.saveState.searchBuilder||(m.searchBuilder=void 0),this.c.saveState.searchPanes||(m.searchPanes=void 0),this.c.saveState.select||(m.select=void 0),this.c.saveState.colReorder||(m.ColReorder=void 0),this.c.saveState.scroller||(m.scroller=void 0,t.Scroller!==void 0&&(m.start=0)),this.c.saveState.paging||(m.start=0),this.c.saveState.length||(m.length=void 0),delete m.time;var c=this.s.savedState;return delete c.time,delete c.c,delete c.stateRestore,this._deepCompare(m,c)},v.prototype.destroy=function(){e.each(this.dom,function(m,C){C.off().remove()})},v.prototype.load=function(){var m=this,C=this.s.savedState,w=this.s.dt.settings()[0];C.time=+new Date,w.oLoadedState=e.extend(!0,{},C),e("div.dt-button-background").click();var c=function(){var o=function(d,p){setTimeout(function(){var _=p._iDisplayStart/p._iDisplayLength,x=C.start/C.length;_>=0&&x>=0&&_!==x&&m.s.dt.page(x).draw(!1)},50)};m.s.dt.one("preDraw",o),m.s.dt.draw(!1)};return k.versionCheck("2")?(this.s.dt.state(C),c()):k.ext.oApi._fnImplementState(w,C,c),C},v.prototype.rename=function(m,C){var w=this;if(m===void 0&&(m=null),!!this.c.rename){var c=function(){var o;if(m===null){var d=e("input."+w.classes.input.replace(/ /g,".")).val();if(d.length===0)return w.dom.confirmation.children("."+w.classes.modalError).remove(),w.dom.confirmation.append(w.dom.emptyError),"empty";if(C.includes(d))return w.dom.confirmation.children("."+w.classes.modalError).remove(),w.dom.confirmation.append(w.dom.duplicateError),"duplicate";m=d}var p={action:"rename",stateRestore:(o={},o[w.s.identifier]=m,o)},_=function(){w.s.identifier=m,w.save(w.s.savedState,function(){return null},!1),w.dom.removeContents=e('<div class="'+w.classes.confirmationText+'"><span>'+w.s.dt.i18n("stateRestore.removeConfirm",w.c.i18n.removeConfirm).replace(/%s/g,w.s.identifier)+"</span></div>"),w.dom.confirmation.trigger("dtsr-rename"),w.dom.background.click(),w.dom.confirmation.remove(),e(document).unbind("keyup",function(x){return w._keyupFunction(x)}),w.dom.confirmationButton.off("click")};if(w.c.ajax)typeof w.c.ajax=="string"&&w.s.dt.settings()[0]._bInitComplete?e.ajax({data:p,success:_,type:"POST",url:w.c.ajax}):typeof w.c.ajax=="function"&&w.c.ajax.call(w.s.dt,p,_);else try{localStorage.removeItem("DataTables_stateRestore_"+w.s.identifier+"_"+location.pathname+(w.s.tableId?"_"+w.s.tableId:"")),_()}catch(x){return w.dom.confirmation.children("."+w.classes.modalError).remove(),w.dom.confirmation.append(w.dom.removeError),!1}return!0};if(m!==null){if(C.includes(m))throw new Error(this.s.dt.i18n("stateRestore.duplicateError",this.c.i18n.duplicateError));if(m.length===0)throw new Error(this.s.dt.i18n("stateRestore.emptyError",this.c.i18n.emptyError));this.dom.confirmation.appendTo(this.dom.dtContainer),e(this.s.dt.table().node()).trigger("dtsr-modal-inserted"),c(),this.dom.confirmation.remove()}else this.dom.renameInput.val(this.s.identifier),this.dom.renameContents.append(this.dom.renameInput),this._newModal(this.dom.renameTitle,this.s.dt.i18n("stateRestore.renameButton",this.c.i18n.renameButton),c,this.dom.renameContents)}},v.prototype.save=function(m,C,w){var c,o=this;if(w===void 0&&(w=!0),!this.c.save){C&&C.call(this);return}var d;if(this.s.dt.state.save(),m===void 0)d=this.s.dt.state();else{if(typeof m!="object")return;d=m}if(d.stateRestore?(d.stateRestore.isPreDefined=this.s.isPreDefined,d.stateRestore.state=this.s.identifier,d.stateRestore.tableId=this.s.tableId):d.stateRestore={isPreDefined:this.s.isPreDefined,state:this.s.identifier,tableId:this.s.tableId},this.s.savedState=d,this.c.saveState.order||(this.s.savedState.order=void 0),this.c.saveState.search||(this.s.savedState.search=void 0),this.c.saveState.columns&&this.s.savedState.columns)for(var p=0,_=this.s.savedState.columns.length;p<_;p++)typeof this.c.saveState.columns!="boolean"&&!this.c.saveState.columns.visible&&(this.s.savedState.columns[p].visible=void 0),typeof this.c.saveState.columns!="boolean"&&!this.c.saveState.columns.search&&(this.s.savedState.columns[p].search=void 0);else this.c.saveState.columns||(this.s.savedState.columns=void 0);if(this.c.saveState.searchBuilder||(this.s.savedState.searchBuilder=void 0),this.c.saveState.searchPanes||(this.s.savedState.searchPanes=void 0),this.c.saveState.select||(this.s.savedState.select=void 0),this.c.saveState.colReorder||(this.s.savedState.ColReorder=void 0),this.c.saveState.scroller||(this.s.savedState.scroller=void 0,t.Scroller!==void 0&&(this.s.savedState.start=0)),this.c.saveState.paging||(this.s.savedState.start=0),this.c.saveState.length||(this.s.savedState.length=void 0),this.s.savedState.c=this.c,this.s.savedState.c.splitSecondaries.length)for(var x=0,P=this.s.savedState.c.splitSecondaries;x<P.length;x++){var I=P[x];I.parent&&(I.parent=void 0)}var B={action:"save",stateRestore:(c={},c[this.s.identifier]=this.s.savedState,c)},E=function(){C&&C.call(o),o.dom.confirmation.trigger("dtsr-save"),e(o.s.dt.table().node()).trigger("stateRestore-change")};this.c.ajax?typeof this.c.ajax=="string"&&w?this.s.dt.settings()[0]._bInitComplete?e.ajax({data:B,success:E,type:"POST",url:this.c.ajax}):this.s.dt.one("init",function(){e.ajax({data:B,success:E,type:"POST",url:o.c.ajax})}):typeof this.c.ajax=="function"&&w?this.c.ajax.call(this.s.dt,B,E):w||E():(localStorage.setItem("DataTables_stateRestore_"+this.s.identifier+"_"+location.pathname+(this.s.tableId?"_"+this.s.tableId:""),JSON.stringify(this.s.savedState)),E())},v.entityEncode=function(m){return typeof m=="string"?m.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):m},v.prototype._deepCompare=function(m,C){if(m===null&&C===null)return!0;if(m===null||C===null)return!1;var w=[m,C],c=[Object.keys(m).sort(),Object.keys(C).sort()],o,d;for(c[0].includes("scroller")&&(o=c[0].indexOf("start"),o&&c[0].splice(o,1)),c[1].includes("scroller")&&(o=c[1].indexOf("start"),o&&c[1].splice(o,1)),d=0;d<c[0].length;d++){if(c[0][d].indexOf("_")===0){c[0].splice(d,1),d--;continue}if(c[0][d]==="baseRowTop"||c[0][d]==="baseScrollTop"||c[0][d]==="scrollTop"||!this.c.saveState.paging&&c[0][d]==="page"){c[0].splice(d,1),d--;continue}}for(d=0;d<c[1].length;d++){if(c[1][d].indexOf("_")===0){c[1].splice(d,1),d--;continue}if(c[1][d]==="baseRowTop"||c[1][d]==="baseScrollTop"||c[1][d]==="scrollTop"||!this.c.saveState.paging&&c[0][d]==="page"){c[1].splice(d,1),d--;continue}}if(c[0].length===0&&c[1].length>0||c[1].length===0&&c[0].length>0)return!1;for(d=0;d<c[0].length;d++)c[1].includes(c[0][d])||(c[0].splice(d,1),d--);for(d=0;d<c[1].length;d++)c[0].includes(c[1][d])||(c[1].splice(d,1),d--);for(d=0;d<c[0].length;d++){if(c[0][d]!==c[1][d]||typeof w[0][c[0][d]]!=typeof w[1][c[1][d]])return!1;if(typeof w[0][c[0][d]]=="object"){if(Array.isArray(w[0][c[0][d]])&&Array.isArray(w[1][c[1][d]])&&w[0][c[0][d]].length!==w[1][c[0][d]].length||!this._deepCompare(w[0][c[0][d]],w[1][c[1][d]]))return!1}else if(typeof w[0][c[0][d]]=="number"&&typeof w[1][c[1][d]]=="number"){if(Math.round(w[0][c[0][d]])!==Math.round(w[1][c[1][d]]))return!1}else if(w[0][c[0][d]]!==w[1][c[1][d]])return!1}return!0},v.prototype._keyupFunction=function(m){m.key==="Enter"?this.dom.confirmationButton.click():m.key==="Escape"&&e("div."+this.classes.background.replace(/ /g,".")).click()},v.prototype._newModal=function(m,C,w,c){var o=this;this.dom.background.appendTo(this.dom.dtContainer),this.dom.confirmationTitleRow.empty().append(m),this.dom.confirmationButton.html(C),this.dom.confirmation.empty().append(this.dom.confirmationTitleRow).append(c).append(e('<div class="'+this.classes.confirmationButtons+'"></div>').append(this.dom.confirmationButton)).appendTo(this.dom.dtContainer),e(this.s.dt.table().node()).trigger("dtsr-modal-inserted");var d=c.children("input");d.length>0?e(d[0]).focus():this.dom.confirmationButton.focus();var p=e("div."+this.classes.background.replace(/ /g,"."));this.c.modalCloseButton&&(this.dom.confirmation.append(this.dom.closeButton),this.dom.closeButton.on("click",function(){return p.click()})),this.dom.confirmationButton.on("click",function(){return w()}),this.dom.confirmation.on("click",function(_){_.stopPropagation()}),p.one("click",function(){o.dom.background.remove(),o.dom.confirmation.remove(),e(document).unbind("keyup",function(_){return o._keyupFunction(_)})}),e(document).on("keyup",function(_){return o._keyupFunction(_)})},v.version="1.4.3",v.classes={background:"dtsr-background",closeButton:"dtsr-popover-close",confirmation:"dtsr-confirmation",confirmationButton:"dtsr-confirmation-button",confirmationButtons:"dtsr-confirmation-buttons",confirmationMessage:"dtsr-confirmation-message dtsr-name-label",confirmationText:"dtsr-confirmation-text",confirmationTitle:"dtsr-confirmation-title",confirmationTitleRow:"dtsr-confirmation-title-row",dtButton:"dt-button",input:"dtsr-input",modalError:"dtsr-modal-error",renameModal:"dtsr-rename-modal"},v.defaults={_createInSaved:!1,ajax:!1,create:!0,creationModal:!1,i18n:{creationModal:{button:"Create",colReorder:"Column Order:",columns:{search:"Column Search:",visible:"Column Visibility:"},length:"Page Length:",name:"Name:",order:"Sorting:",paging:"Paging:",scroller:"Scroll Position:",search:"Search:",searchBuilder:"SearchBuilder:",searchPanes:"SearchPanes:",select:"Select:",title:"Create New State",toggleLabel:"Includes:"},duplicateError:"A state with this name already exists.",emptyError:"Name cannot be empty.",emptyStates:"No saved states",removeConfirm:'Are you sure you want to remove "%s"?',removeError:"Failed to remove state.",removeJoiner:" and ",removeSubmit:"Remove",removeTitle:"Remove State",renameButton:"Rename",renameLabel:'New Name for "%s":',renameTitle:"Rename State"},modalCloseButton:!0,remove:!0,rename:!0,save:!0,saveState:{colReorder:!0,columns:{search:!0,visible:!0},length:!0,order:!0,paging:!0,scroller:!0,search:!0,searchBuilder:!0,searchPanes:!0,select:!0},splitSecondaries:["updateState","renameState","removeState"],toggle:{colReorder:!1,columns:{search:!1,visible:!1},length:!1,order:!1,paging:!1,scroller:!1,search:!1,searchBuilder:!1,searchPanes:!1,select:!1},createButton:null,createState:null},v}(),s,i;function a(v){s=v,i=v.fn.dataTable}var l=function(){function v(m,C){var w=this;if(!i||!i.versionCheck||!i.versionCheck("1.10.0"))throw new Error("StateRestore requires DataTables 1.10 or newer");if(!i.Buttons)throw new Error("StateRestore requires Buttons");var c=new i.Api(m);if(this.classes=s.extend(!0,{},v.classes),c.settings()[0]._stateRestore===void 0){this.c=s.extend(!0,{},v.defaults,C),this.s={dt:c,hasColReorder:i.ColReorder!==void 0,hasScroller:i.Scroller!==void 0,hasSearchBuilder:i.SearchBuilder!==void 0,hasSearchPanes:i.SearchPanes!==void 0,hasSelect:i.select!==void 0,states:[]},this.s.dt.on("xhr",function(p,_,x){x&&x.stateRestore&&w._addPreDefined(x.stateRestore)}),this.dom={background:s('<div class="'+this.classes.background+'"/>'),checkboxInputRow:s('<div class="'+this.classes.formRow+'"><label class="'+this.classes.nameLabel+'">'+this.s.dt.i18n("stateRestore.creationModal.toggleLabel",this.c.i18n.creationModal.toggleLabel)+'</label><div class="dtsr-input"></div></div>'),closeButton:s('<div class="'+this.classes.closeButton+'">x</div>'),colReorderToggle:s('<div class="'+this.classes.checkLabel+'"><input type="checkbox" class="'+this.classes.colReorderToggle+" "+this.classes.checkBox+'" checked>'+this.s.dt.i18n("stateRestore.creationModal.colReorder",this.c.i18n.creationModal.colReorder)+"</div>"),columnsSearchToggle:s('<div class="'+this.classes.checkLabel+'"><input type="checkbox" class="'+this.classes.columnsSearchToggle+" "+this.classes.checkBox+'" checked>'+this.s.dt.i18n("stateRestore.creationModal.columns.search",this.c.i18n.creationModal.columns.search)+"</div>"),columnsVisibleToggle:s('<div class="'+this.classes.checkLabel+'"><input type="checkbox" class="'+this.classes.columnsVisibleToggle+" "+this.classes.checkBox+'" checked>'+this.s.dt.i18n("stateRestore.creationModal.columns.visible",this.c.i18n.creationModal.columns.visible)+"</div>"),confirmation:s('<div class="'+this.classes.confirmation+'"/>'),confirmationTitleRow:s('<div class="'+this.classes.confirmationTitleRow+'"></div>'),createButtonRow:s('<div class="'+this.classes.formRow+" "+this.classes.modalFoot+'"><button class="'+this.classes.creationButton+" "+this.classes.dtButton+'">'+this.s.dt.i18n("stateRestore.creationModal.button",this.c.i18n.creationModal.button)+"</button></div>"),creation:s('<div class="'+this.classes.creation+'"/>'),creationForm:s('<div class="'+this.classes.creationForm+'"/>'),creationTitle:s('<div class="'+this.classes.creationText+'"><h2 class="'+this.classes.creationTitle+'">'+this.s.dt.i18n("stateRestore.creationModal.title",this.c.i18n.creationModal.title)+"</h2></div>"),dtContainer:s(this.s.dt.table().container()),duplicateError:s('<span class="'+this.classes.modalError+'">'+this.s.dt.i18n("stateRestore.duplicateError",this.c.i18n.duplicateError)+"</span>"),emptyError:s('<span class="'+this.classes.modalError+'">'+this.s.dt.i18n("stateRestore.emptyError",this.c.i18n.emptyError)+"</span>"),lengthToggle:s('<div class="'+this.classes.checkLabel+'"><input type="checkbox" class="'+this.classes.lengthToggle+" "+this.classes.checkBox+'" checked>'+this.s.dt.i18n("stateRestore.creationModal.length",this.c.i18n.creationModal.length)+"</div>"),nameInputRow:s('<div class="'+this.classes.formRow+'"><label class="'+this.classes.nameLabel+'">'+this.s.dt.i18n("stateRestore.creationModal.name",this.c.i18n.creationModal.name)+'</label><div class="dtsr-input"><input class="'+this.classes.nameInput+'" type="text"></div></div>'),orderToggle:s('<div class="'+this.classes.checkLabel+'"><input type="checkbox" class="'+this.classes.orderToggle+" "+this.classes.checkBox+'" checked>'+this.s.dt.i18n("stateRestore.creationModal.order",this.c.i18n.creationModal.order)+"</div>"),pagingToggle:s('<div class="'+this.classes.checkLabel+'"><input type="checkbox" class="'+this.classes.pagingToggle+" "+this.classes.checkBox+'" checked>'+this.s.dt.i18n("stateRestore.creationModal.paging",this.c.i18n.creationModal.paging)+"</div>"),removeContents:s('<div class="'+this.classes.confirmationText+'"><span></span></div>'),removeTitle:s('<div class="'+this.classes.creationText+'"><h2 class="'+this.classes.creationTitle+'">'+this.s.dt.i18n("stateRestore.removeTitle",this.c.i18n.removeTitle)+"</h2></div>"),scrollerToggle:s('<div class="'+this.classes.checkLabel+'"><input type="checkbox" class="'+this.classes.scrollerToggle+" "+this.classes.checkBox+'" checked>'+this.s.dt.i18n("stateRestore.creationModal.scroller",this.c.i18n.creationModal.scroller)+"</div>"),searchBuilderToggle:s('<div class="'+this.classes.checkLabel+'"><input type="checkbox" class="'+this.classes.searchBuilderToggle+" "+this.classes.checkBox+'" checked>'+this.s.dt.i18n("stateRestore.creationModal.searchBuilder",this.c.i18n.creationModal.searchBuilder)+"</div>"),searchPanesToggle:s('<div class="'+this.classes.checkLabel+'"><input type="checkbox" class="'+this.classes.searchPanesToggle+" "+this.classes.checkBox+'" checked>'+this.s.dt.i18n("stateRestore.creationModal.searchPanes",this.c.i18n.creationModal.searchPanes)+"</div>"),searchToggle:s('<div class="'+this.classes.checkLabel+'"><input type="checkbox" class="'+this.classes.searchToggle+" "+this.classes.checkBox+'" checked>'+this.s.dt.i18n("stateRestore.creationModal.search",this.c.i18n.creationModal.search)+"</div>"),selectToggle:s('<div class="'+this.classes.checkLabel+'"><input type="checkbox" class="'+this.classes.selectToggle+" "+this.classes.checkBox+'" checked>'+this.s.dt.i18n("stateRestore.creationModal.select",this.c.i18n.creationModal.select)+"</div>")},c.settings()[0]._stateRestore=this,this._searchForStates(),this._addPreDefined(this.c.preDefined);var o,d={action:"load"};return typeof this.c.ajax=="function"?o=function(){typeof w.c.ajax=="function"&&w.c.ajax.call(w.s.dt,d,function(p){return w._addPreDefined(p)})}:typeof this.c.ajax=="string"&&(o=function(){s.ajax({data:d,dataType:"json",success:function(p){w._addPreDefined(p)},type:"POST",url:w.c.ajax})}),typeof o=="function"&&(this.s.dt.settings()[0]._bInitComplete?o():this.s.dt.one("preInit.dtsr",function(){o()})),this.s.dt.on("destroy.dtsr",function(){w.destroy()}),this.s.dt.on("draw.dtsr buttons-action.dtsr",function(){return w.findActive()}),this}}return v.prototype.addState=function(m,C,w){var c=this;if(!(!this.c.create||!this.c.save)){var o=this.getState(m),d=function(_,x){if(_.length===0)return"empty";if(C.includes(_))return"duplicate";c.s.dt.state.save();var P=c,I=function(){P.s.states.push(this),P._collectionRebuild()},B=c.s.dt.state();if(B.stateRestore={isPredefined:!1,state:_,tableId:c.s.dt.table().node().id},x.saveState){for(var E=c.c.saveState,F=0,U=Object.keys(x.saveState);F<U.length;F++){var R=U[F];if(typeof x.saveState[R]=="object")for(var g=0,y=Object.keys(x.saveState[R]);g<y.length;g++){var T=y[g];x.saveState[R][T]||(E[R][T]=!1)}else x.saveState[R]||(E[R]=!1)}c.c.saveState=E}var D=new r(c.s.dt.settings()[0],s.extend(!0,{},c.c,w),_,B,!1,I);return s(c.s.dt.table().node()).on("dtsr-modal-inserted",function(){D.dom.confirmation.one("dtsr-remove",function(){return c._removeCallback(D.s.identifier)}),D.dom.confirmation.one("dtsr-rename",function(){return c._collectionRebuild()}),D.dom.confirmation.one("dtsr-save",function(){return c._collectionRebuild()})}),!0};if(o===null)if(this.c.creationModal||w!==void 0&&w.creationModal)this._creationModal(d,m,w);else{var p=d(m,{});if(p==="empty")throw new Error(this.s.dt.i18n("stateRestore.emptyError",this.c.i18n.emptyError));if(p==="duplicate")throw new Error(this.s.dt.i18n("stateRestore.duplicateError",this.c.i18n.duplicateError))}else throw new Error(this.s.dt.i18n("stateRestore.duplicateError",this.c.i18n.duplicateError))}},v.prototype.removeAll=function(m){if(this.s.states.length!==0){var C=this.s.states.map(function(c){return c.s.identifier}),w=C[0];C.length>1&&(w=C.slice(0,-1).join(", ")+this.s.dt.i18n("stateRestore.removeJoiner",this.c.i18n.removeJoiner)+C.slice(-1)),s(this.dom.removeContents.children("span")).html(this.s.dt.i18n("stateRestore.removeConfirm",this.c.i18n.removeConfirm).replace(/%s/g,w)),this._newModal(this.dom.removeTitle,this.s.dt.i18n("stateRestore.removeSubmit",this.c.i18n.removeSubmit),m,this.dom.removeContents)}},v.prototype.destroy=function(){for(var m=0,C=this.s.states;m<C.length;m++){var w=C[m];w.destroy()}s.each(this.dom,function(c,o){o.off().remove()}),this.s.states=[],this.s.dt.off(".dtsr"),s(this.s.dt.table().node()).off(".dtsr")},v.prototype.findActive=function(){this.s.dt.state.save();for(var m=this.s.dt.state(),C,w=this.s.dt.buttons().nodes(),c=0,o=w;c<o.length;c++)C=o[c],(s(C).hasClass("dtsr-state")||s(C).children().hasClass("dtsr-state"))&&this.s.dt.button(C).active(!1);for(var d=[],p=0,_=this.s.states;p<_.length;p++){var x=_[p];if(x.compare(m)){d.push({data:x.s.savedState,name:x.s.identifier});for(var P=0,I=w;P<I.length;P++){C=I[P];var B=this.s.dt.button(C);if(B.text()===x.s.identifier){B.active(!0);break}}}}return d},v.prototype.getState=function(m){for(var C=0,w=this.s.states;C<w.length;C++){var c=w[C];if(c.s.identifier===m)return c}return null},v.prototype.getStates=function(m){if(m===void 0)return this.s.states;for(var C=[],w=0,c=m;w<c.length;w++){for(var o=c[w],d=!1,p=0,_=this.s.states;p<_.length;p++){var x=_[p];if(o===x.s.identifier){C.push(x),d=!0;break}}d||C.push(void 0)}return C},v.prototype._addPreDefined=function(m){for(var C=this,w=Object.keys(m).sort(function(x,P){return x>P?1:x<P?-1:0}),c=function(x){for(var P=0;P<o.s.states.length;P++)o.s.states[P].s.identifier===x&&o.s.states.splice(P,1);var I=o,B=function(){I.s.states.push(this),I._collectionRebuild()},E=o._fixTypes(m[x]),F=s.extend(!0,{},o.c,E.c!==void 0?{saveState:E.c.saveState,remove:E.c.remove,rename:E.c.rename,save:E.c.save}:void 0,!0);o.c.createState&&o.c.createState(F,E);var U=new r(o.s.dt,F,x,E,!0,B);s(o.s.dt.table().node()).on("dtsr-modal-inserted",function(){U.dom.confirmation.one("dtsr-remove",function(){return C._removeCallback(U.s.identifier)}),U.dom.confirmation.one("dtsr-rename",function(){return C._collectionRebuild()}),U.dom.confirmation.one("dtsr-save",function(){return C._collectionRebuild()})})},o=this,d=0,p=w;d<p.length;d++){var _=p[d];c(_)}},v.prototype._collectionRebuild=function(){var m=this.s.dt.button("SaveStateRestore:name"),C=[],w;if(m[0]){var c=m.index().split("-");for(C=m[0].inst.c.buttons,w=0;w<c.length;w++)if(C[c[w]].buttons)C=C[c[w]].buttons;else{C=[];break}}for(w=0;w<C.length;w++)C[w].extend==="stateRestore"&&(C.splice(w,1),w--);this.c._createInSaved&&C.push("createState");var o='<span class="'+this.classes.emptyStates+'">'+this.s.dt.i18n("stateRestore.emptyStates",this.c.i18n.emptyStates)+"</span>";if(this.s.states.length===0)C.includes(o)||C.push(o);else{for(;C.includes(o);)C.splice(C.indexOf(o),1);this.s.states=this.s.states.sort(function(U,R){var g=U.s.identifier,y=R.s.identifier;return g>y?1:g<y?-1:0});for(var d=0,p=this.s.states;d<p.length;d++){var _=p[d],x=this.c.splitSecondaries.slice();x.includes("updateState")&&(!this.c.save||!_.c.save)&&x.splice(x.indexOf("updateState"),1),x.includes("renameState")&&(!this.c.save||!_.c.save||!this.c.rename||!_.c.rename)&&x.splice(x.indexOf("renameState"),1),x.includes("removeState")&&(!this.c.remove||!_.c.remove)&&x.splice(x.indexOf("removeState"),1);var P={_stateRestore:_,attr:{title:_.s.identifier},config:{split:x},extend:"stateRestore",text:r.entityEncode(_.s.identifier),popoverTitle:r.entityEncode(_.s.identifier)};this.c.createButton&&this.c.createButton(P,_.s.savedState),C.push(P)}}m.collectionRebuild(C);for(var I=this.s.dt.buttons(),B=0,E=I;B<E.length;B++){var F=E[B];s(F.node).hasClass("dtsr-removeAllStates")&&(this.s.states.length===0?this.s.dt.button(F.node).disable():this.s.dt.button(F.node).enable())}},v.prototype._creationModal=function(m,C,w){var c=this;this.dom.creation.empty(),this.dom.creationForm.empty(),this.dom.nameInputRow.find("input").val(C),this.dom.creationForm.append(this.dom.nameInputRow);var o=this.s.dt.settings()[0].oInit,d,p=[],_=w!==void 0&&w.toggle!==void 0;((!_||w.toggle.order===void 0)&&this.c.toggle.order||_&&w.toggle.order)&&this.c.saveState.order&&(o.ordering===void 0||o.ordering)&&p.push(this.dom.orderToggle),((!_||w.toggle.search===void 0)&&this.c.toggle.search||_&&w.toggle.search)&&this.c.saveState.search&&(o.searching===void 0||o.searching)&&p.push(this.dom.searchToggle),((!_||w.toggle.paging===void 0)&&this.c.toggle.paging||_&&w.toggle.paging)&&this.c.saveState.paging&&(o.paging===void 0||o.paging)&&p.push(this.dom.pagingToggle),((!_||w.toggle.length===void 0)&&this.c.toggle.length||_&&w.toggle.length)&&this.c.saveState.length&&(o.length===void 0||o.length)&&p.push(this.dom.lengthToggle),this.s.hasColReorder&&((!_||w.toggle.colReorder===void 0)&&this.c.toggle.colReorder||_&&w.toggle.colReorder)&&this.c.saveState.colReorder&&p.push(this.dom.colReorderToggle),this.s.hasScroller&&((!_||w.toggle.scroller===void 0)&&this.c.toggle.scroller||_&&w.toggle.scroller)&&this.c.saveState.scroller&&p.push(this.dom.scrollerToggle),this.s.hasSearchBuilder&&((!_||w.toggle.searchBuilder===void 0)&&this.c.toggle.searchBuilder||_&&w.toggle.searchBuilder)&&this.c.saveState.searchBuilder&&p.push(this.dom.searchBuilderToggle),this.s.hasSearchPanes&&((!_||w.toggle.searchPanes===void 0)&&this.c.toggle.searchPanes||_&&w.toggle.searchPanes)&&this.c.saveState.searchPanes&&p.push(this.dom.searchPanesToggle),this.s.hasSelect&&((!_||w.toggle.select===void 0)&&this.c.toggle.select||_&&w.toggle.select)&&this.c.saveState.select&&p.push(this.dom.selectToggle),typeof this.c.toggle.columns=="boolean"&&((!_||w.toggle.order===void 0)&&this.c.toggle.columns||_&&w.toggle.order)&&this.c.saveState.columns?(p.push(this.dom.columnsSearchToggle),p.push(this.dom.columnsVisibleToggle)):((!_||w.toggle.columns===void 0)&&typeof this.c.toggle.columns!="boolean"||typeof w.toggle.order!="boolean")&&(typeof this.c.saveState.columns!="boolean"&&this.c.saveState.columns?((_&&w.toggle.columns!==void 0&&typeof w.toggle.columns!="boolean"&&w.toggle.columns.search||(!_||w.toggle.columns===void 0||typeof w.toggle.columns!="boolean"&&w.toggle.columns.search===void 0)&&typeof this.c.toggle.columns!="boolean"&&this.c.toggle.columns.search)&&this.c.saveState.columns.search&&p.push(this.dom.columnsSearchToggle),(_&&w.toggle.columns!==void 0&&typeof w.toggle.columns!="boolean"&&w.toggle.columns.visible||(!_||w.toggle.columns===void 0||typeof w.toggle.columns!="boolean"&&w.toggle.columns.visible===void 0)&&typeof this.c.toggle.columns!="boolean"&&this.c.toggle.columns.visible)&&this.c.saveState.columns.visible&&p.push(this.dom.columnsVisibleToggle)):this.c.saveState.columns&&(p.push(this.dom.columnsSearchToggle),p.push(this.dom.columnsVisibleToggle))),p.sort(function(y,T){var D=y.text(),A=T.text();return D<A?-1:D>A?1:0});for(var x=this.dom.checkboxInputRow.css("display",p.length?"block":"none").appendTo(this.dom.creationForm).find("div.dtsr-input").empty(),P=0,I=p;P<I.length;P++)d=I[P],x.append(d);this.dom.background.appendTo(this.dom.dtContainer),this.dom.creation.append(this.dom.creationTitle).append(this.dom.creationForm).append(this.dom.createButtonRow).appendTo(this.dom.dtContainer),s(this.s.dt.table().node()).trigger("dtsr-modal-inserted");for(var B=0,E=p;B<E.length;B++)d=E[B],s(d.children("label:last-child")).on("click",function(){d.children("input").prop("checked",!d.children("input").prop("checked"))});var F=s("button."+this.classes.creationButton.replace(/ /g,".")),U=this.dom.creationForm.find("input");U.length>0?s(U[0]).focus():F.focus();var R=s("div."+this.classes.background.replace(/ /g,".")),g=function(y){y.key==="Enter"?F.click():y.key==="Escape"&&R.click()};this.c.modalCloseButton&&(this.dom.creation.append(this.dom.closeButton),this.dom.closeButton.on("click",function(){return R.click()})),F.on("click",function(){var y={colReorder:c.dom.colReorderToggle.find("input").is(":checked"),columns:{search:c.dom.columnsSearchToggle.find("input").is(":checked"),visible:c.dom.columnsVisibleToggle.find("input").is(":checked")},length:c.dom.lengthToggle.find("input").is(":checked"),order:c.dom.orderToggle.find("input").is(":checked"),paging:c.dom.pagingToggle.find("input").is(":checked"),scroller:c.dom.scrollerToggle.find("input").is(":checked"),search:c.dom.searchToggle.find("input").is(":checked"),searchBuilder:c.dom.searchBuilderToggle.find("input").is(":checked"),searchPanes:c.dom.searchPanesToggle.find("input").is(":checked"),select:c.dom.selectToggle.find("input").is(":checked")},T=m(s("input."+c.classes.nameInput.replace(/ /g,".")).val(),{saveState:y});T===!0?(c.dom.background.remove(),c.dom.creation.remove(),s(document).unbind("keyup",g)):(c.dom.creation.children("."+c.classes.modalError).remove(),c.dom.creation.append(c.dom[T+"Error"]))}),R.one("click",function(){c.dom.background.remove(),c.dom.creation.remove(),s(document).unbind("keyup",g),c._collectionRebuild()}),s(document).on("keyup",g),this.s.dt.state.save()},v.prototype._fixTypes=function(m){var C,w=function(o,d){var p=o[d];p!==void 0&&(o[d]=typeof p=="number"?p:parseInt(p))},c=function(o,d){var p=o[d];p!==void 0&&(o[d]=typeof p!="string"?p:p==="true")};if(w(m,"start"),w(m,"length"),w(m,"time"),m.order)for(C=0;C<m.order.length;C++)w(m.order[C],0);if(m.search&&(c(m.search,"caseInsensitive"),c(m.search,"regex"),c(m.search,"smart"),c(m.search,"visible"),c(m.search,"return")),m.columns)for(C=0;C<m.columns.length;C++)c(m.columns[C],"caseInsensitive"),c(m.columns[C],"regex"),c(m.columns[C],"smart"),c(m.columns[C],"visible");if(m.colReorder)for(C=0;C<m.colReorder.length;C++)w(m.colReorder,C);return m},v.prototype._removeCallback=function(m){for(var C=0;C<this.s.states.length;C++)this.s.states[C].s.identifier===m&&(this.s.states.splice(C,1),C--);return this._collectionRebuild(),!0},v.prototype._newModal=function(m,C,w,c){var o=this;this.dom.background.appendTo(this.dom.dtContainer),this.dom.confirmationTitleRow.empty().append(m);var d=s('<button class="'+this.classes.confirmationButton+" "+this.classes.dtButton+'">'+C+"</button>");this.dom.confirmation.empty().append(this.dom.confirmationTitleRow).append(c).append(s('<div class="'+this.classes.confirmationButtons+'"></div>').append(d)).appendTo(this.dom.dtContainer),s(this.s.dt.table().node()).trigger("dtsr-modal-inserted");var p=c.children("input");p.length>0?s(p[0]).focus():d.focus();var _=s("div."+this.classes.background.replace(/ /g,".")),x=function(P){P.key==="Enter"?d.click():P.key==="Escape"&&_.click()};d.on("click",function(){var P=w(!0);P===!0?(o.dom.background.remove(),o.dom.confirmation.remove(),s(document).unbind("keyup",x),d.off("click")):(o.dom.confirmation.children("."+o.classes.modalError).remove(),o.dom.confirmation.append(o.dom[P+"Error"]))}),this.dom.confirmation.on("click",function(P){P.stopPropagation()}),_.one("click",function(){o.dom.background.remove(),o.dom.confirmation.remove(),s(document).unbind("keyup",x)}),s(document).on("keyup",x)},v.prototype._searchForStates=function(){for(var m=this,C=Object.keys(localStorage),w=function(_){if(_.startsWith("DataTables_stateRestore_")&&(_.endsWith(location.pathname)||_.endsWith(location.pathname+"_"+c.s.dt.table().node().id))){var x=JSON.parse(localStorage.getItem(_));if(x.stateRestore.isPreDefined||x.stateRestore.tableId&&x.stateRestore.tableId!==c.s.dt.table().node().id)return"continue";var P=c,I=function(){this.s.savedState=x,P.s.states.push(this),P._collectionRebuild()},B=new r(c.s.dt,s.extend(!0,{},c.c,{saveState:x.c.saveState}),x.stateRestore.state,x,!1,I);s(c.s.dt.table().node()).on("dtsr-modal-inserted",function(){B.dom.confirmation.one("dtsr-remove",function(){return m._removeCallback(B.s.identifier)}),B.dom.confirmation.one("dtsr-rename",function(){return m._collectionRebuild()}),B.dom.confirmation.one("dtsr-save",function(){return m._collectionRebuild()})})}},c=this,o=0,d=C;o<d.length;o++){var p=d[o];w(p)}},v.version="1.0.0",v.classes={background:"dtsr-background",checkBox:"dtsr-check-box",checkLabel:"dtsr-check-label",checkRow:"dtsr-check-row",closeButton:"dtsr-popover-close",colReorderToggle:"dtsr-colReorder-toggle",columnsSearchToggle:"dtsr-columns-search-toggle",columnsVisibleToggle:"dtsr-columns-visible-toggle",confirmation:"dtsr-confirmation",confirmationButton:"dtsr-confirmation-button",confirmationButtons:"dtsr-confirmation-buttons",confirmationMessage:"dtsr-confirmation-message dtsr-name-label",confirmationText:"dtsr-confirmation-text",confirmationTitle:"dtsr-confirmation-title",confirmationTitleRow:"dtsr-confirmation-title-row",creation:"dtsr-creation",creationButton:"dtsr-creation-button",creationForm:"dtsr-creation-form",creationText:"dtsr-creation-text",creationTitle:"dtsr-creation-title",dtButton:"dt-button",emptyStates:"dtsr-emptyStates",formRow:"dtsr-form-row",leftSide:"dtsr-left",lengthToggle:"dtsr-length-toggle",modalError:"dtsr-modal-error",modalFoot:"dtsr-modal-foot",nameInput:"dtsr-name-input",nameLabel:"dtsr-name-label",orderToggle:"dtsr-order-toggle",pagingToggle:"dtsr-paging-toggle",rightSide:"dtsr-right",scrollerToggle:"dtsr-scroller-toggle",searchBuilderToggle:"dtsr-searchBuilder-toggle",searchPanesToggle:"dtsr-searchPanes-toggle",searchToggle:"dtsr-search-toggle",selectToggle:"dtsr-select-toggle",toggleLabel:"dtsr-toggle-title"},v.defaults={_createInSaved:!1,ajax:!1,create:!0,creationModal:!1,i18n:{creationModal:{button:"Create",colReorder:"Column Order",columns:{search:"Column Search",visible:"Column Visibility"},length:"Page Length",name:"Name:",order:"Sorting",paging:"Paging",scroller:"Scroll Position",search:"Search",searchBuilder:"SearchBuilder",searchPanes:"SearchPanes",select:"Select",title:"Create New State",toggleLabel:"Include:"},duplicateError:"A state with this name already exists.",emptyError:"Name cannot be empty.",emptyStates:"No saved states",removeConfirm:"Are you sure you want to remove %s?",removeError:"Failed to remove state.",removeJoiner:" and ",removeSubmit:"Remove",removeTitle:"Remove State",renameButton:"Rename",renameLabel:"New Name for %s:",renameTitle:"Rename State"},modalCloseButton:!0,preDefined:{},remove:!0,rename:!0,save:!0,saveState:{colReorder:!0,columns:{search:!0,visible:!0},length:!0,order:!0,paging:!0,scroller:!0,search:!0,searchBuilder:!0,searchPanes:!0,select:!0},splitSecondaries:["updateState","renameState","removeState"],toggle:{colReorder:!1,columns:{search:!1,visible:!1},length:!1,order:!1,paging:!1,scroller:!1,search:!1,searchBuilder:!1,searchPanes:!1,select:!1},createButton:null,createState:null},v}();n(Oe),a(Oe),Oe.fn.dataTable.StateRestore=r,Oe.fn.DataTable.StateRestore=r,Oe.fn.dataTable.StateRestoreCollection=l,Oe.fn.DataTable.StateRestoreCollection=l;var u=k.Api.register;u("stateRestore()",function(){return this}),u("stateRestore.state()",function(v){var m=this.context[0];if(!m._stateRestore){var C=k.Api(m),w=new k.StateRestoreCollection(C,{});b(C,w)}return this[0]=m._stateRestore.getState(v),this}),u("stateRestore.state.add()",function(v,m){var C=this.context[0];if(!C._stateRestore){var w=k.Api(C),c=new k.StateRestoreCollection(w,{});b(w,c)}if(!C._stateRestore.c.create)return this;if(C._stateRestore.addState){for(var o=C._stateRestore.s.states,d=[],p=0,_=o;p<_.length;p++){var x=_[p];d.push(x.s.identifier)}return C._stateRestore.addState(v,d,m),this}}),u("stateRestore.states()",function(v){var m=this.context[0];if(!m._stateRestore){var C=k.Api(m),w=new k.StateRestoreCollection(C,{});b(C,w)}return this.length=0,this.push.apply(this,m._stateRestore.getStates(v)),this}),u("stateRestore.state().save()",function(){var v=this[0];return v.c.save&&v.save(),this}),u("stateRestore.state().rename()",function(v){var m=this.context[0],C=this[0];if(C.c.save){for(var w=m._stateRestore.s.states,c=[],o=0,d=w;o<d.length;o++){var p=d[o];c.push(p.s.identifier)}C.rename(v,c)}return this}),u("stateRestore.state().load()",function(){var v=this[0];return v.load(),this}),u("stateRestore.state().remove()",function(v){var m=this[0];return m.c.remove&&m.remove(v),this}),u("stateRestore.states().remove()",function(v){var m=this,C=function(w){for(var c=!0,o=m.toArray();o.length>0;){var d=o[0];if(d!==void 0&&d.c.remove){var p=d.remove(w);p!==!0?c=p:o.splice(0,1)}else break}return c};return this.context[0]._stateRestore&&this.context[0]._stateRestore.c.remove&&(v?C(v):this.context[0]._stateRestore.removeAll(C)),this}),u("stateRestore.activeStates()",function(){var v=this.context[0];if(this.length=0,!v._stateRestore){var m=k.Api(v),C=new k.StateRestoreCollection(m,{});b(m,C)}return v._stateRestore&&this.push.apply(this,v._stateRestore.findActive()),this}),k.ext.buttons.stateRestore={action:function(v,m,C,w){w._stateRestore.load(),C.blur()},className:"dtsr-state",config:{split:["updateState","renameState","removeState"]},text:function(v){return v.i18n("buttons.stateRestore","State %d",v.stateRestore.states()[0].length+1)}},k.ext.buttons.updateState={action:function(v,m,C,w){Oe("div.dt-button-background").click(),w.parent._stateRestore.save()},text:function(v){return v.i18n("buttons.updateState","Update")}},k.ext.buttons.savedStates={buttons:[],extend:"collection",init:function(v,m,C){v.on("stateRestore-change",function(){v.button(m).text(v.i18n("buttons.savedStates","Saved States",v.stateRestore.states().length))}),v.settings()[0]._stateRestore===void 0&&f(v,C)},name:"SaveStateRestore",text:function(v){return v.i18n("buttons.savedStates","Saved States",0)}},k.ext.buttons.savedStatesCreate={buttons:[],extend:"collection",init:function(v,m,C){v.on("stateRestore-change",function(){v.button(m).text(v.i18n("buttons.savedStates","Saved States",v.stateRestore.states().length))}),v.settings()[0]._stateRestore===void 0&&(C.config===void 0&&(C.config={}),C.config._createInSaved=!0,f(v,C))},name:"SaveStateRestore",text:function(v){return v.i18n("buttons.savedStates","Saved States",0)}},k.ext.buttons.createState={action:function(v,m,C,w){v.stopPropagation();var c=m.settings()[0]._stateRestore.c,o=m.settings()[0].oLanguage;if(!(!c.create||!c.save)){var d=m.stateRestore.states().toArray(),p=o.buttons!==void 0&&o.buttons.stateRestore!==void 0?o.buttons.stateRestore:"State ",_;if(p.indexOf("%d")===p.length-3)_=new RegExp(p.replace(/%d/g,""));else{var x=p.split("%d");_=[];for(var P=0,I=x;P<I.length;P++){var B=I[P];_.push(new RegExp(B))}}var E=function(z){var X;if(Array.isArray(_)){X=z;for(var K=0,re=_;K<re.length;K++){var fe=re[K];X=X.replace(fe,"")}}else X=z.replace(_,"");return isNaN(+X)||X.length===z?0:+X},F=d.map(function(z){return E(z.s.identifier)}).sort(function(z,X){return+z<+X?1:+z>+X?-1:0}),U=F[0];m.stateRestore.state.add(m.i18n("buttons.stateRestore","State %d",U!==void 0?U+1:1),w.config);for(var R=m.stateRestore.states().sort(function(z,X){var K=+E(z.s.identifier),re=+E(X.s.identifier);return K>re?1:K<re?-1:0}),g=m.button("SaveStateRestore:name"),y=parseInt(g.index()),T=g[0]!==void 0&&g[0].inst.c.buttons[y].buttons!==void 0?g[0].inst.c.buttons[y].buttons:[],D=0;D<T.length;D++)T[D].extend==="stateRestore"&&(T.splice(D,1),D--);c._createInSaved&&T.push("createState");for(var A=0,L=R;A<L.length;A++){var N=L[A],W=c.splitSecondaries.slice();W.includes("updateState")&&!c.save&&W.splice(W.indexOf("updateState"),1),W.includes("renameState")&&(!c.save||!c.rename)&&W.splice(W.indexOf("renameState"),1),W.includes("removeState")&&!c.remove&&W.splice(W.indexOf("removeState"),1),T.push({_stateRestore:N,attr:{title:N.s.identifier},config:{split:W},extend:"stateRestore",text:r.entityEncode(N.s.identifier),popoverTitle:r.entityEncode(N.s.identifier)})}m.button("SaveStateRestore:name").collectionRebuild(T),C.blur();for(var H=m.buttons(),M=0,j=H;M<j.length;M++){var $=j[M];Oe($.node).hasClass("dtsr-removeAllStates")&&(R.length===0?m.button($.node).disable():m.button($.node).enable())}}},init:function(v,m,C){v.settings()[0]._stateRestore===void 0&&v.button("SaveStateRestore:name").length>1&&f(v,C)},text:function(v){return v.i18n("buttons.createState","Create State")}},k.ext.buttons.removeState={action:function(v,m,C,w){w.parent._stateRestore.remove(),C.blur()},text:function(v){return v.i18n("buttons.removeState","Remove")}},k.ext.buttons.removeAllStates={action:function(v,m,C){m.stateRestore.states().remove(!0),C.blur()},className:"dt-button dtsr-removeAllStates",init:function(v,m){(!v.settings()[0]._stateRestore||v.stateRestore.states().length===0)&&Oe(m).addClass("disabled")},text:function(v){return v.i18n("buttons.removeAllStates","Remove All States")}},k.ext.buttons.renameState={action:function(v,m,C,w){for(var c=m.settings()[0]._stateRestore.s.states,o=[],d=0,p=c;d<p.length;d++){var _=p[d];o.push(_.s.identifier)}w.parent._stateRestore.rename(void 0,o),C.blur()},text:function(v){return v.i18n("buttons.renameState","Rename")}};function h(v,m){m===void 0&&(m=null);var C=new k.Api(v),w=m||C.init().stateRestore||k.defaults.stateRestore,c=new l(C,w);return b(C,c),c}function f(v,m){var C=new k.StateRestoreCollection(v,m.config);b(v,C)}function b(v,m){var C=v.stateRestore.states(),w=v.button("SaveStateRestore:name"),c=[],o;if(w[0]){var d=w.index().split("-");for(c=w[0].inst.c.buttons,o=0;o<d.length;o++)if(c[d[o]].buttons)c=c[d[o]].buttons;else{c=[];break}}var p=v.settings()[0]._stateRestore.c;for(o=0;o<c.length;o++)c[o].extend==="stateRestore"&&(c.splice(o,1),o--);if(p._createInSaved&&c.push("createState"),C===void 0||C.length===0)c.push('<span class="'+m.classes.emptyStates+'">'+v.i18n("stateRestore.emptyStates",m.c.i18n.emptyStates)+"</span>");else for(var _=0,x=C;_<x.length;_++){var P=x[_],I=p.splitSecondaries.slice();I.includes("updateState")&&!p.save&&I.splice(I.indexOf("updateState"),1),I.includes("renameState")&&(!p.save||!p.rename)&&I.splice(I.indexOf("renameState"),1),I.includes("removeState")&&!p.remove&&I.splice(I.indexOf("removeState"),1),c.push({_stateRestore:P,attr:{title:P.s.identifier},config:{split:I},extend:"stateRestore",text:r.entityEncode(P.s.identifier),popoverTitle:r.entityEncode(P.s.identifier)})}v.button("SaveStateRestore:name").collectionRebuild(c);for(var B=v.buttons(),E=0,F=B;E<F.length;E++){var U=F[E];Oe(U.node).hasClass("dtsr-removeAllStates")&&(C.length===0?v.button(U.node).disable():v.button(U.node).enable())}}Oe(document).on("preInit.dt.dtsr",function(v,m){v.namespace==="dt"&&(m.oInit.stateRestore||k.defaults.stateRestore)&&(m._stateRestore||h(m,null))})})();typeof window!="undefined"&&typeof window.jQuery!="undefined"&&(window.$=window.jQuery);window.getDataTablesLanguageUrl=function(e){var t=e?e.toLowerCase().substring(0,2):"en",n=["en","it","fr","de","es","pt","nl","ru","ja","zh"],r=n.includes(t)?t:"en",s=null;if(typeof dce_frontend_vars!="undefined"&&dce_frontend_vars.url)s=dce_frontend_vars.url;else if(typeof dceJs!="undefined"&&dceJs.url)s=dceJs.url;else{var i=document.querySelectorAll('script[src*="datatables"]');if(i.length>0){var a=i[0].src,l=a.match(/(.+?)\/assets\/node\/datatables/);l&&(s=l[1]+"/")}}return s?s+"assets/node/datatables/i18n/"+r+".json":null};})();
dce={applyDynamicStyles:function(o){var r=jQuery(o),e=["dce-text-color","dce-title-color","dce-background-color","dce-background-hover-color","dce-background-overlay-color","dce-background-overlay-hover-color","dce-advanced-background-color","dce-advanced-background-hover-color","dce-advanced-background-overlay-color","dce-advanced-background-overlay-hover-color"];e.forEach(function(a){var c=r.data(a);c&&(a==="dce-title-color"?dce.addCssForTitleColor(o,c):a==="dce-text-color"?dce.addCssForTextColor(o,c):dce.addCssForBackgroundColor(o,c))});var d=["dce-background-image-url","dce-background-hover-image-url","dce-background-overlay-image-url","dce-background-overlay-hover-image-url","dce-advanced-background-image-url","dce-advanced-background-hover-image-url","dce-advanced-background-overlay-image-url","dce-advanced-background-overlay-hover-image-url"];d.forEach(function(a){var c=r.data(a);c&&dce.addCssForBackgroundImage(o,c)})},getTargetElement:function(o,r){var e=jQuery(o);if(e.hasClass("elementor-section"))return e;if(e.hasClass("elementor-column")){var d=e.find(".elementor-column-wrap").first();return d.length?d:e.find(".elementor-widget-wrap").first()}if(e.hasClass("e-container")||e.hasClass("e-con"))return e;if(e.hasClass("elementor-widget")||e.hasClass("elementor-widget-container")){if(r){var a=e.find(".elementor-widget-container").first();return a.length?a:e}return e}return e},addCssForBackgroundImage:function(o,r){if(r){var e=this.getTargetElement(o,!0);e.css("background-image","url("+r+")")}},addCssForBackgroundColor:function(o,r){if(r){var e=this.getTargetElement(o,!0);e.css("background-color",r)}},addCssForTextColor:function(o,r){if(r){var e=this.getTargetElement(o,!0);e.css("color",r)}},addCssForTitleColor:function(o,r){r&&jQuery(o).find(".elementor-heading-title").css("color",r)}};
function dceGetElementSettings(e){var t=[],n=e.data("model-cid");if(elementorFrontend.isEditMode()&&n){var o=elementorFrontend.config.elements.data[n],d=o.attributes.widgetType||o.attributes.elType,r=elementorFrontend.config.elements.keys[d];r||(r=[],jQuery.each(o.controls,function(a,c){c.frontend_available&&r.push(a)})),jQuery.each(o.getActiveControls(),function(a){r.indexOf(a)!==-1&&(t[a]=o.attributes[a])})}else t=e.data("settings")||{};return t}function dceObserveElement(e,t){if(!elementorFrontend.isEditMode())return;const n={attributes:!0,childList:!1,characterData:!0},o=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;new o(t).observe(e,n)}window.dynamicooo={},dynamicooo.getActiveBreakpointsMinPointAndPostfix=()=>{let e=elementorFrontend.config.responsive.activeBreakpoints,t={};for(let n in e)t[n]={min_point:elementorFrontend.breakpoints.getDeviceMinBreakpoint(n),postfix:`_${n}`};return t.desktop={min_point:elementorFrontend.breakpoints.getDeviceMinBreakpoint("desktop"),postfix:""},t},dynamicooo.makeSwiperBreakpoints=(e,t,n="")=>{const o=dynamicooo.getActiveBreakpointsMinPointAndPostfix(),d={},r={};return Object.keys(o).reverse().forEach(a=>{let c=o[a].min_point;o[a].postfix==="_mobile"&&(c=0);let l={};for(let s in e){const f=e[s],u=f.default_value,p=n+f.elementor_key+o[a].postfix;let i=t[p];s==="spaceBetween"&&typeof i=="object"&&(i=i.size||u),i=i||dceGetParentValue(r[s])||u,i=i==="auto"?i:Number(i),r[s]||(r[s]=[]),r[s].push(i),s==="slidesPerGroup"&&l.slidesPerView===1&&(i=1),l[s]=i}d[c]=l}),d};function dceGetParentValue(e){const t=e?e.findLastIndex(n=>n!==0):-1;return t!==-1?e[t]:!1}window.initMap=()=>{const e=new Event("dce-google-maps-api-loaded");window.dispatchEvent(e)};
function initializeSwiper(_,p){const o=elementorFrontend.utils.swiper;new o(p,_).then(n=>{mySwiper=n}).catch(n=>console.log(n))}const manageAutoplayInsideTab=(_,p,o)=>{_.hidden||initializeSwiper(p,o);var n=new MutationObserver(function(e,x){_.hidden||initializeSwiper(p,o)}),w={attributes:!0,attributeFilter:["hidden"]};n.observe(_,w)};(function(_){var p=function(o,n){let w=function(){let d=o.find(".accordion"),i=e.dce_acf_repeater_accordion_start,a=e.dce_acf_repeater_accordion_close,c=e.accordion_speed?.size||300;const f=d.find(".accordion-button"),t=d.find(".acc_content");f.each(function(r){const l=n(this),s=n(l.attr("aria-controls")?"#"+l.attr("aria-controls"):""),g=l.closest(".acc_section");let m=!1;if(i==="first"&&r===0)m=!0;else if(i==="custom"){const b=e.accordion_start_custom||1;m=r+1===b}else i==="all"&&(m=!0);m?(l.attr("aria-expanded","true"),s.attr("aria-hidden","false").show(),g.addClass("acc_active")):(l.attr("aria-expanded","false"),s.attr("aria-hidden","true").hide(),g.removeClass("acc_active"))}),f.on("click",function(r){r.preventDefault();const l=n(this),s=n(l.attr("aria-controls")?"#"+l.attr("aria-controls"):""),g=l.closest(".acc_section"),m=l.attr("aria-expanded")==="true";a&&!m&&f.not(l).each(function(){const b=n(this),L=n(b.attr("aria-controls")?"#"+b.attr("aria-controls"):""),R=b.closest(".acc_section");b.attr("aria-expanded","false"),L.attr("aria-hidden","true").slideUp(c),R.removeClass("acc_active")}),m?(l.attr("aria-expanded","false"),s.attr("aria-hidden","true").slideUp(c),g.removeClass("acc_active")):(l.attr("aria-expanded","true"),s.attr("aria-hidden","false").slideDown(c),g.addClass("acc_active"))})},e=dceGetElementSettings(o);var x=".dce-acf-repeater";if(e.dce_acf_repeater_format=="accordion"){let d=o.find("ul.dce-acf-repeater-wrapper"),i=e.dce_acf_repeater_accordion_start,a;if(i==="none")a=!1;else if(i==="first")a=1;else if(i==="custom")a=e.accordion_start_custom||1;else{let f=o.find("ul.dce-acf-repeater-wrapper .dce-acf-repeater-item").length;a=[];for(let t=0;t<=f;t++)a[t]=t}(function(f,t,r,l){f.accordionjs({closeAble:!0,closeOther:!!t,slideSpeed:r,activeIndex:l,openSection:function(s){n(s).find(".acc_button").attr("aria-expanded","true"),n(s).find(".acc_content").attr("aria-hidden","false")},beforeOpenSection:function(s){t&&(f.find(".acc_button").attr("aria-expanded","false"),f.find(".acc_content").attr("aria-hidden","true"))},closeSection:function(s){n(s).find(".acc_button").attr("aria-expanded","false"),n(s).find(".acc_content").attr("aria-hidden","true")}})})(d,e.dce_acf_repeater_accordion_close,e.accordion_speed.size||300,a)}if(e.dce_acf_repeater_format=="masonry"){var k=o.find(x).masonry({itemSelector:".dce-acf-repeater-item"});k.imagesLoaded().progress(function(){k.masonry("layout")})}else if(e.dce_acf_repeater_format=="justified")o.find(".justified-grid").imagesLoaded().progress(function(){}),o.find(".justified-grid").justifiedGallery({rowHeight:Number(e.justified_rowHeight.size)||170,maxRowHeight:-1,selector:"figure, div:not(.spinner)",imgSelector:"> img, > a > img, > div > a > img, > div > img",margins:Number(e.justified_margin.size)||0,lastRow:e.justified_lastRow});else if(e.dce_acf_repeater_format=="slider_carousel"){var y=o.find(".dce-acf-repeater-slider_carousel"),h=o.attr("data-id"),M=o.closest(".elementor").attr("data-post-id"),B=o.find(".dce-acf-repeater-slider_carousel").attr("counter-id"),C=!!e.loop,S=0,E=Number(e.slidesPerView);let d=o.find(".swiper-button-next")[0],i=o.find(".swiper-button-prev")[0];d&&(d.addEventListener("mousedown",function(a){a.preventDefault()}),d.addEventListener("keydown",function(a){(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),d.click())})),i&&(i.addEventListener("mousedown",function(a){a.preventDefault()}),i.addEventListener("keydown",function(a){(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),i.click())}));var u={direction:"horizontal",initialSlide:S,speed:Number(e.speed_slider)||300,autoHeight:!!e.autoHeight,roundLengths:!!e.roundLengths,effect:e.effects||"slide",slidesPerView:E||"auto",slidesPerGroup:Number(e.slidesPerGroup)||1,spaceBetween:Number(e.spaceBetween)||0,slidesOffsetBefore:0,slidesOffsetAfter:0,slidesPerColumn:Number(e.slidesColumn)||1,slidesPerColumnFill:"row",centerInsufficientSlides:e.centerInsufficientSlides==="yes",watchOverflow:!0,centeredSlides:e.centeredSlides2==="yes",grabCursor:!!e.grabCursor,freeMode:!!e.freeMode,freeModeMomentum:!!e.freeModeMomentum,freeModeMomentumRatio:Number(e.freeModeMomentumRatio)||1,freeModeMomentumVelocityRatio:Number(e.freeModeMomentumVelocityRatio)||1,freeModeMomentumBounce:!!e.freeModeMomentumBounce,freeModeMomentumBounceRatio:Number(e.speed)||1,freeModeMinimumVelocity:Number(e.speed)||.02,freeModeSticky:!!e.freeModeSticky,loop:C,navigation:{nextEl:d,prevEl:i},pagination:{el:M?".dce-elementor-post-"+M+" .elementor-element-"+h+" .pagination-"+B:".pagination-"+B,clickable:!0,type:String(e.pagination_type)||"bullets",dynamicBullets:!0,renderFraction:function(a,c){return'<span class="'+a+'"></span><span class="separator">'+String(e.fraction_separator)+'</span><span class="'+c+'"></span>'}},mousewheel:e.mousewheelControl?{releaseOnEdges:!0}:!1,keyboard:{enabled:!!e.keyboardControl},on:{init:function(){n("body").attr("data-carousel-"+h,this.realIndex)},slideChange:function(a){n("body").attr("data-carousel-"+h,this.realIndex)}}};if(e.useAutoplay){u=n.extend(u,{autoplay:!0});var v=Number(e.autoplay);v?v=Number(e.autoplay):v=3e3,u=n.extend(u,{autoplay:{delay:v,disableOnInteraction:!!e.autoplayDisableOnInteraction,stopOnLastSlide:!!e.autoplayStopOnLast}})}if(u.breakpoints=dynamicooo.makeSwiperBreakpoints({slidesPerView:{elementor_key:"slidesPerView",default_value:"auto"},slidesPerGroup:{elementor_key:"slidesPerGroup",default_value:1},spaceBetween:{elementor_key:"spaceBetween",default_value:1},slidesPerColumn:{elementor_key:"slidesColumn",default_value:1}},e),!(e.dce_acf_repeater_format=="slider_carousel"))initializeSwiper(u,y);else{let c=y.closest(".elementor-tab-content");c.length&&e.useAutoplay?manageAutoplayInsideTab(c,u,y):initializeSwiper(u,y)}}if(e.dce_acf_repeater_format==="table"&&e.dce_acf_repeater_datatables&&function(){var i=o.find("table.dce-datatable");if(i.length!==0){var a=i.find("thead"),c=i.find("tbody"),f=c.find("tr");if(f.length!==0){var t={autofill:e.dce_acf_repeater_style_table_data_autofill||!1,buttons:e.dce_acf_repeater_style_table_data_buttons||!1,colreorder:e.dce_acf_repeater_style_table_data_colreorder||!1,fixedcolumns:e.dce_acf_repeater_style_table_data_fixedcolumns||!1,fixedheader:e.dce_acf_repeater_style_table_data_fixedheader||!1,keytable:e.dce_acf_repeater_style_table_data_keytable||!1,responsive:e.dce_acf_repeater_style_table_data_responsive||!1,rowgroup:e.dce_acf_repeater_style_table_data_rowgroup||!1,rowreorder:e.dce_acf_repeater_style_table_data_rowreorder||!1,scroller:e.dce_acf_repeater_style_table_data_scroller||!1,scroller_y:e.dce_acf_repeater_style_table_data_scroller_y||!1,select:e.dce_acf_repeater_style_table_data_select||!1,search:e.dce_acf_repeater_style_table_data_search||!1,pagination:e.dce_acf_repeater_style_table_data_pagination||!1,info:e.dce_acf_repeater_style_table_data_info||!1,lengthMenu:e.dce_acf_repeater_style_table_data_length_menu||!1,ordering:e.dce_acf_repeater_style_table_data_ordering||!1},r={order:[],autoWidth:!1,columnDefs:[{targets:"_all",defaultContent:""}],searching:t.search,paging:t.pagination,info:t.info,lengthChange:t.lengthMenu,ordering:t.ordering};if(typeof window.getDataTablesLanguageUrl=="function"){var l=n("html").attr("lang")||"en",s=window.getDataTablesLanguageUrl(l);s&&(r.language={url:s})}t.autofill&&(r.autoFill=!0),t.buttons&&(r.dom="Bfrtip",r.buttons=["copyHtml5","excelHtml5","csvHtml5","pdfHtml5"]),t.colreorder&&(r.colReorder=!0),t.fixedcolumns&&(r.fixedColumns=!0),t.fixedheader&&(r.fixedHeader=!0),t.keytable&&(r.keys=!0),t.responsive&&(r.responsive=!0),t.rowgroup&&(r.rowGroup={dataSrc:"group"}),t.rowreorder&&(r.rowReorder=!0),t.scroller&&(r.scroller=!0,r.scrollX=!0,t.scroller_y&&(r.scrollY=200),r.paging=!0,r.deferRender=!0),t.select&&(r.select=!0),i.DataTable(r)}}}(),e.enabled_wow){var N=new WOW({boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,scrollContainer:null});N.init()}};_(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/dce-acf-repeater-v2.default",p)})})(jQuery);
!function(t){var o=function(o,s){var i,e,n,r,a=!1,c=!1,f=!1,p={},l={to:"top",offset:0,effectsOffset:0,parent:!1,classes:{sticky:"sticky",stickyActive:"sticky-active",stickyEffects:"sticky-effects",spacer:"sticky-spacer"},isRTL:!1,handleScrollbarWidth:!1},d=function(t,o,s){var i={},e=t[0].style;s.forEach((function(t){i[t]=void 0!==e[t]?e[t]:""})),t.data("css-backup-"+o,i)},m=function(t,o){return t.data("css-backup-"+o)};const u=()=>{if(r=b(i,"width"),n=i.offset().left,e.isRTL){const t=e.handleScrollbarWidth?window.innerWidth:document.body.offsetWidth;n=Math.max(t-r-n,0)}};var h=function(){p.$spacer=i.clone().addClass(e.classes.spacer).css({visibility:"hidden",transition:"none",animation:"none"}),i.after(p.$spacer)},y=function(){p.$spacer.remove()},k=function(){d(i,"unsticky",["position","width","margin-top","margin-bottom","top","bottom","inset-inline-start"]);const t={position:"fixed",width:r,marginTop:0,marginBottom:0};t[e.to]=e.offset,t["top"===e.to?"bottom":"top"]="",n&&(t["inset-inline-start"]=n+"px"),i.css(t).addClass(e.classes.stickyActive)},v=function(){i.css(m(i,"unsticky")).removeClass(e.classes.stickyActive)},b=function(t,o,s){var i=getComputedStyle(t[0]),e=parseFloat(i[o]),n="height"===o?["top","bottom"]:["left","right"],r=[];return"border-box"!==i.boxSizing&&r.push("border","padding"),s&&r.push("margin"),r.forEach((function(t){n.forEach((function(o){e+=parseFloat(i[t+"-"+o])}))})),e},w=function(t){var o=p.$window.scrollTop(),s=b(t,"height"),i=innerHeight,e=t.offset().top-o,n=e-i;return{top:{fromTop:e,fromBottom:n},bottom:{fromTop:e+s,fromBottom:n+s}}},g=function(){v(),y(),a=!1,i.trigger("sticky:unstick")},$=function(){var t=w(i),o="top"===e.to;if(c){(o?t.top.fromTop>e.offset:t.bottom.fromBottom<-e.offset)&&(p.$parent.css(m(p.$parent,"childNotFollowing")),i.css(m(i,"notFollowing")),c=!1)}else{var s=w(p.$parent),a=getComputedStyle(p.$parent[0]),f=parseFloat(a[o?"borderBottomWidth":"borderTopWidth"]),l=o?s.bottom.fromTop-f:s.top.fromBottom+f;(o?l<=t.bottom.fromTop:l>=t.top.fromBottom)&&function(){d(p.$parent,"childNotFollowing",["position"]),p.$parent.css("position","relative"),d(i,"notFollowing",["position","inset-inline-start","top","bottom"]);const t={position:"absolute"};if(n=p.$spacer.position().left,e.isRTL){const t=i.parent().outerWidth(),o=p.$spacer.position().left;r=p.$spacer.outerWidth(),n=Math.max(t-r-o,0)}t["inset-inline-start"]=n+"px",t[e.to]="",t["top"===e.to?"bottom":"top"]=0,i.css(t),c=!0}()}},T=function(){var t,o=e.offset;if(a){var s=w(p.$spacer);t="top"===e.to?s.top.fromTop-o:-s.bottom.fromBottom-o,e.parent&&$(),t>0&&g()}else{var n=w(i);(t="top"===e.to?n.top.fromTop-o:-n.bottom.fromBottom-o)<=0&&(u(),h(),k(),a=!0,i.trigger("sticky:stick"),e.parent&&$())}!function(t){f&&-t<e.effectsOffset?(i.removeClass(e.classes.stickyEffects),f=!1):!f&&-t>=e.effectsOffset&&(i.addClass(e.classes.stickyEffects),f=!0)}(t)},B=function(){T()},C=function(){a&&(v(),y(),u(),h(),k(),e.parent&&(c=!1,$()))};this.destroy=function(){a&&g(),p.$window.off("scroll",B).off("resize",C),i.removeClass(e.classes.sticky)},e=jQuery.extend(!0,l,s),i=t(o).addClass(e.classes.sticky),p.$window=t(window),e.parent&&(p.$parent=i.parent(),"parent"!==e.parent&&(p.$parent=p.$parent.closest(e.parent))),p.$window.on({scroll:B,resize:C}),T()};t.fn.sticky=function(s){var i="string"==typeof s;return this.each((function(){var e=t(this);if(i){var n=e.data("sticky");if(!n)throw Error("Trying to perform the `"+s+"` method prior to initialization");if(!n[s])throw ReferenceError("Method `"+s+"` not found in sticky instance");n[s].apply(n,Array.prototype.slice.call(arguments,1)),"destroy"===s&&e.removeData("sticky")}else e.data("sticky",new o(this,s))})),this},window.Sticky=o}(jQuery);
function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var n,a=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,n)),a}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach(function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function haObserveTarget(e,n){new IntersectionObserver(function(e,t){e.forEach(function(e){e.isIntersecting&&n(e)})},2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).observe(e)}(h=>{var c=h(window);function u(a,i,o){var r;return function(){var e=this,t=arguments,n=o&&!r;clearTimeout(r),r=setTimeout(function(){r=null,o||a.apply(e,t)},i),n&&a.apply(e,t)}}function g(e,t){var e=e.find(".hajs-filter"),n=e.data("default-filter");e.length&&(e.on("click.onFilterNav","button",function(e){e.stopPropagation();e=h(this);e.addClass("ha-filter__item--active").siblings().removeClass("ha-filter__item--active"),t(e.data("filter"))}),e.find('[data-filter="'+n+'"]').click())}function p(e){var t,n,a;e.$element.on("click",e.selector,function(e){e.preventDefault()}),h.fn.magnificPopup&&(e.isEnabled?(t=h(window).width(),n=elementorFrontendConfig.breakpoints.md,a=elementorFrontendConfig.breakpoints.lg,e.$element.find(e.selector).magnificPopup({key:e.key,type:"image",image:{titleSrc:function(e){return e.el.attr("title")?e.el.attr("title"):e.el.find("img").attr("alt")}},gallery:{enabled:!0,preload:[1,2]},zoom:{enabled:!0,duration:300,easing:"ease-in-out",opener:function(e){return e.is("img")?e:e.find("img")}},disableOn:function(){return!(e.disableOnMobile&&t<n||e.disableOnTablet&&n<=t&&t<a)}})):h.magnificPopup.close())}function f(e){var t=e.find(".hajs-image-comparison"),n=t.getHappySettings();n[{on_hover:"move_slider_on_hover",on_swipe:"move_with_handle_only",on_click:"click_to_move"}[n.move_handle||"on_swipe"]]=!0,delete n.move_handle,t.imagesLoaded().done(function(){t.twentytwenty(n);var e=setTimeout(function(){c.trigger("resize.twentytwenty"),clearTimeout(e)},400)})}h.fn.getHappySettings=function(){return this.data("happy-settings")},c.on("elementor/frontend/init",function(){function e(e){e.hasClass("elementor-element-edit-mode")&&e.addClass("ha-has-bg-overlay")}var t=elementorModules.frontend.handlers.Base,n=t.extend({bindEvents:function(){this.removeArrows(),this.run()},removeArrows:function(){var e=this;this.elements.$container.on("init",function(){e.elements.$container.siblings().hide()})},getDefaultSettings:function(){return{autoplay:!0,arrows:!1,checkVisible:!1,container:".hajs-slick",dots:!1,infinite:!0,rows:0,slidesToShow:1,prevArrow:h("<div />").append(this.findElement(".slick-prev").clone().show()).html(),nextArrow:h("<div />").append(this.findElement(".slick-next").clone().show()).html()}},getDefaultElements:function(){return{$container:this.findElement(this.getSettings("container"))}},onElementChange:u(function(){this.elements.$container.slick("unslick"),this.run()},200),getSlickSettings:function(){var e=1==h('html[dir="rtl"]').length||h("body").hasClass("rtl");"yes"==this.getElementSettings("vertical")&&(e=!1);var t={fade:this.$element.hasClass("ha-slider")?"fade"===this.getElementSettings("slides_transition"):"fade"===this.getElementSettings("slides_transition")&&1===parseInt(this.getElementSettings("slides_to_show")),infinite:!!this.getElementSettings("loop"),autoplay:!!this.getElementSettings("autoplay"),autoplaySpeed:this.getElementSettings("autoplay_speed"),speed:this.getElementSettings("animation_speed"),centerMode:!!this.getElementSettings("center"),vertical:!!this.getElementSettings("vertical"),rtl:e};switch(this.getElementSettings("navigation")){case"arrow":t.arrows=!0;break;case"dots":t.dots=!0;break;case"both":t.arrows=!0,t.dots=!0}e=!!this.getElementSettings("slides_to_scroll");return t.slidesToShow=parseInt(this.getElementSettings("slides_to_show"))||1,t.slidesToScroll=e&&parseInt(this.getElementSettings("slides_to_show"))||1,t.responsive=[{breakpoint:elementorFrontend.config.breakpoints.lg,settings:{slidesToShow:parseInt(this.getElementSettings("slides_to_show_tablet"))||t.slidesToShow,slidesToScroll:e?parseInt(this.getElementSettings("slides_to_show_tablet"))||t.slidesToShow:1}},{breakpoint:elementorFrontend.config.breakpoints.md,settings:{slidesToShow:parseInt(this.getElementSettings("slides_to_show_mobile"))||parseInt(this.getElementSettings("slides_to_show_tablet"))||t.slidesToShow,slidesToScroll:e?parseInt(this.getElementSettings("slides_to_show_mobile"))||parseInt(this.getElementSettings("slides_to_show_tablet"))||t.slidesToShow:1}}],h.extend({},this.getSettings(),t)},run:function(){this.elements.$container.slick(this.getSlickSettings())}}),a=t.extend({onInit:function(){t.prototype.onInit.apply(this,arguments),this.run(),this.runFilter(),c.on("resize",u(this.run.bind(this),100))},getLayoutMode:function(){var e=this.getElementSettings("layout");return"even"===e?"masonry":e},getDefaultSettings:function(){return{itemSelector:".ha-image-grid__item",percentPosition:!0,layoutMode:this.getLayoutMode()}},getDefaultElements:function(){return{$container:this.findElement(".hajs-isotope")}},getLightBoxSettings:function(){return{key:"imagegrid",$element:this.$element,selector:".ha-js-lightbox",isEnabled:!!this.getElementSettings("enable_popup"),disableOnTablet:!!this.getElementSettings("disable_lightbox_on_tablet"),disableOnMobile:!!this.getElementSettings("disable_lightbox_on_mobile")}},runFilter:function(){var t=this,n=this.getLightBoxSettings();g(this.$element,function(e){t.elements.$container.isotope({filter:e}),"*"!==e&&(n.selector=e),p(n)})},onElementChange:function(e){-1!==["layout","image_height","columns","image_margin","enable_popup"].indexOf(e)&&this.run()},run:function(){var e=this;e.elements.$container.isotope(e.getDefaultSettings()).imagesLoaded().progress(function(){e.elements.$container.isotope("layout")}),p(e.getLightBoxSettings())}}),i=t.extend({onInit:function(){t.prototype.onInit.apply(this,arguments),this.run(),this.runFilter(),c.on("resize",u(this.run.bind(this),100))},getDefaultSettings:function(){var e={rowHeight:+this.getElementSettings("row_height.size")||150,lastRow:this.getElementSettings("last_row"),margins:+this.getElementSettings("margins.size"),captions:!!this.getElementSettings("show_caption")},t={};return"yes"==this.getElementSettings("max_row_height")&&(t={maxRowHeight:+this.getElementSettings("row_height.size")||150}),h.extend(e,t)},getDefaultElements:function(){return{$container:this.findElement(".hajs-justified-grid")}},getLightBoxSettings:function(){return{key:"justifiedgallery",$element:this.$element,selector:".ha-js-lightbox",isEnabled:!!this.getElementSettings("enable_popup"),disableOnTablet:!!this.getElementSettings("disable_lightbox_on_tablet"),disableOnMobile:!!this.getElementSettings("disable_lightbox_on_mobile")}},runFilter:function(){var t=this,n=this.getLightBoxSettings(),a={lastRow:this.getElementSettings("last_row")};g(t.$element,function(e){"*"!==e&&(a.lastRow="nojustify",n.selector=e),a.filter=e,t.elements.$container.justifiedGallery(a),p(n)})},onElementChange:function(e){-1!==["row_height","max_row_height","last_row","margins","show_caption","enable_popup"].indexOf(e)&&this.run()},run:function(){this.elements.$container.justifiedGallery(this.getDefaultSettings()),p(this.getLightBoxSettings())}}),o=t.extend({onInit:function(){t.prototype.onInit.apply(this,arguments),this.wrapper=this.$element.find(".ha-news-ticker-wrapper"),this.run()},onElementChange:function(e){"item_space"!==e&&"title_typography_font_size"!==e||this.run()},run:function(){var e,t,n,a,i,o,r,s;0!=this.wrapper.length&&(a=this.wrapper.innerHeight(),s=this.wrapper.innerWidth(),t=(e=this.wrapper.find(".ha-news-ticker-container")).find(".ha-news-ticker-item"),a="scroll"+(n=this.wrapper.data("scroll-direction"))+parseInt(a)+parseInt(s),i=this.wrapper.data("duration"),o="normal",r=10,s={transform:"translateX(0"+s+"px)"},"right"===n&&(o="reverse"),t.each(function(){r+=h(this).outerWidth(!0)}),e.css({width:r,display:"flex"}),h.keyframe.define([{name:a,"0%":s,"100%":{transform:"translateX(-101%)"}}]),e.playKeyframe({name:a,duration:i.toString()+"ms",timingFunction:"linear",delay:"0s",iterationCount:"infinite",direction:o,fillMode:"none",complete:function(){}}))}}),r=t.extend({onInit:function(){t.prototype.onInit.apply(this,arguments),this.wrapper=this.$element.find(".ha-post-tab"),this.run()},run:function(){var r=this.wrapper.find(".ha-post-tab-filter").find("li"),e=this.wrapper.data("event"),s=this.wrapper.data("query-args");r.on(e,u(function(e){e.preventDefault();var e=h(this),n=e.data("term"),t=e.closest(".ha-post-tab").find(".ha-post-tab-content"),a=t.find(".ha-post-tab-loading"),i=t.find(".ha-post-tab-item-wrapper"),o=!1;0===a.length&&(r.removeClass("active"),i.removeClass("active"),e.addClass("active"),i.each(function(){var e=h(this),t=e.data("term");n===t&&(e.addClass("active"),o=!0)}),!1===o)&&h.ajax({url:HappyLocalize.ajax_url,type:"POST",data:{action:"ha_post_tab_action",security:HappyLocalize.nonce,post_tab_query:s,term_id:n},beforeSend:function(){t.append('<span class="ha-post-tab-loading"><i class="eicon-spinner eicon-animation-spin"></i></span>')},success:function(e){t.find(".ha-post-tab-loading").remove(),t.append(e)},error:function(e){}})},200))}}),a=(elementorFrontend.hooks.addAction("frontend/element_ready/ha-slider.default",function(e){elementorFrontend.elementsHandler.addHandler(n,{$element:e})}),elementorFrontend.hooks.addAction("frontend/element_ready/ha-carousel.default",function(e){elementorFrontend.elementsHandler.addHandler(n,{$element:e})}),elementorFrontend.hooks.addAction("frontend/element_ready/ha-horizontal-timeline.default",function(e){elementorFrontend.elementsHandler.addHandler(n,{$element:e,autoplay:!1,container:".ha-horizontal-timeline-wrapper",navigation:"arrow",arrows:!0});e=e.find(".ha-horizontal-timeline-image");void 0!==e.data("mfp-src")&&e.magnificPopup({type:"image",gallery:{enabled:!0}})}),h("body").on("click.onWrapperLink","[data-ha-element-link]",function(){var e,t,n=h(this),a=n.data("ha-element-link"),n=n.data("id"),i=document.createElement("a");i.id="happy-addons-wrapper-link-"+n,i.href=a.url,i.target=a.is_external?"_blank":"_self",i.rel=a.nofollow?"nofollow noreferer":"",i.style.display="none",document.body.appendChild(i),(e=document.getElementById(i.id)).click(),t=setTimeout(function(){document.body.removeChild(e),clearTimeout(t)})}),h.each({"ha-image-compare.default":f,"ha-number.default":function(t){haObserveTarget(t[0],function(){var e=t.find(".ha-number-text");e.numerator(e.data("animation"))})},"ha-skills.default":function(e){haObserveTarget(e[0],function(){e.find(".ha-skill-level").each(function(){var e=h(this),t=e.find(".ha-skill-level-text"),n=e.data("level");e.animate({width:n+"%"},500),t.numerator({toValue:n+"%",duration:1300,onStep:function(){t.append("%")}})})})},"ha-fun-factor.default":function(t){haObserveTarget(t[0],function(){var e=t.find(".ha-fun-factor__content-number");e.numerator(e.data("animation"))})},"ha-bar-chart.default":function(a){haObserveTarget(a[0],function(){var e=a.find(".ha-bar-chart-container"),t=a.find("#ha-bar-chart"),n=e.data("settings");e.length&&new Chart(t,n)})},"ha-twitter-feed.default":function(o){var e=o.find(".ha-twitter-load-more"),r=o.find(".ha-tweet-items");e.on("click",function(e){e.preventDefault();var t=h(this),e=t.data("settings"),n=o.data("id"),a=t.data("total"),i=o.find(".ha-tweet-item").length;h.ajax({url:HappyLocalize.ajax_url,type:"POST",data:{action:"ha_twitter_feed_action",security:HappyLocalize.nonce,query_settings:e,widget_id:n,loaded_item:i},success:function(e){i<a?h(e).appendTo(r):(t.text("All Loaded").addClass("loaded"),setTimeout(function(){t.css({display:"none"})},800))},error:function(e){}})})},"ha-threesixty-rotation.default":function(a){var e,i=a.find(".ha-threesixty-rotation-inner"),t=i.data("selector"),n=i.data("autoplay"),o=a.find(".ha-threesixty-rotation-magnify"),r=a.find(".ha-threesixty-rotation-360img"),s=o.data("zoom"),l=a.find(".ha-threesixty-rotation-play"),d=circlr(t,{play:!0});"on"===n?((e=a.find(".ha-threesixty-rotation-autoplay")).on("click",function(e){e.preventDefault(),d.play(),r.remove()}),setTimeout(function(){e.trigger("click"),e.remove()},1e3)):l.on("click",function(e){e.preventDefault();e=h(this).find("i");e.hasClass("hm-play-button")?(e.removeClass("hm-play-button"),e.addClass("hm-stop"),d.play()):(e.removeClass("hm-stop"),e.addClass("hm-play-button"),d.stop()),r.remove()}),o.on("click",function(e){a.find("img").each(function(){-1!==h(this).attr("style").indexOf("block")&&(HappySimplaMagnify(h(this)[0],s),o.css("display","none"),r.remove())})}),h(document).on("click",function(e){var e=h(e.target),t=a.find(".ha-img-magnifier-glass"),n=o.find("i");t.length&&e[0]!==n[0]&&(t.remove(),o.removeAttr("style")),e[0]===i[0]&&r.remove()}),i.on("mouseup mousedown touchstart touchend",function(e){r.remove()})},"ha-data-table.default":function(e){var n=e.find(".ha-table__head-column-cell"),r=e.find(".ha-table__body-row");r.each(function(o,e){h(e).find(".ha-table__body-row-cell").each(function(e,t){var t=h(t),n=parseInt(t.attr("rowspan"),10);if(1<n)for(var a=o+1;a<o+n&&a<r.length;a++){var i=h(r).eq(a).children().eq(e);h('<td class="ha-table__body-row-cell test">nullval</td>').insertBefore(i)}})}),r.each(function(e,t){h(t).find(".ha-table__body-row-cell").each(function(e,t){t=h(t);-1===t.html().indexOf("nullval")?(e=n.eq(e).html(),t.prepend('<div class="ha-table__head-column-cell">'+e+"</div>")):t.remove()})})},section:e,column:e,"ha-event-calendar.default":function(b){var e=b.find(".ha-ec"),S=b.find(".ha-ec-popup-wrapper"),t=b.find(".ha-ec-popup-close"),n=e.data("initialview"),a=e.data("firstday"),i=e.data("locale"),x=e.data("show-popup"),k=e.data("allday-text"),C=e.data("time-format"),o=window["HaECjson"+b.data("id")];void 0!==o&&(new FullCalendar.Calendar(e[0],{stickyHeaderDates:!1,locale:i,headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay,listMonth"},initialView:n,firstDay:a,eventTimeFormat:{hour:"numeric",minute:"2-digit",meridiem:"short"},events:o,height:"auto",eventClick:function(e){if("yes"==x){var t=function(e){return new Date(e)},n=function(e){var t,n,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"g:i a";return t=(e=e).getHours(),n=e.getMinutes(),(e=new Date).setHours(t),e.setMinutes(n),t={},a.includes("H")?(t.hour="2-digit",t.hour12=!1):(t.hour="numeric",t.hour12=!0,(a.includes("a")||a.includes("A"))&&(t.hour="numeric")),t.minute="2-digit",n=new Intl.DateTimeFormat("en-US",t).format(e),n=a.includes("a")?n.toLowerCase():n},a=(e.jsEvent.preventDefault(),e.view.calendar.currentData.currentDate.toString(),e.event.allDay),i=e.event.title,o=e.event.startStr,r=e.event.endStr,s=e.event.extendedProps.guest,l=e.event.extendedProps.location,d=e.event.extendedProps.description,c=e.event.url,h=e.event.extendedProps.image,u=S.find(".ha-ec-event-title"),g=S.find(".ha-ec-event-time-wrap"),p=S.find(".ha-ec-event-guest-wrap"),f=S.find(".ha-ec-event-location-wrap"),m=S.find(".ha-ec-popup-desc"),y=S.find(".ha-ec-popup-readmore-link"),v=S.find(".ha-ec-popup-image");v.css("display","none"),u.css("display","none"),g.css("display","none"),p.css("display","none"),f.css("display","none"),m.css("display","none"),y.css("display","none"),S.addClass("ha-ec-popup-ready"),h&&(v.removeAttr("style"),v.find("img").attr("src",h),v.find("img").attr("alt",i)),i&&(u.removeAttr("style"),u.text(i)),s&&(p.removeAttr("style"),p.find("span.ha-ec-event-guest").text(s)),l&&(f.removeAttr("style"),f.find("span.ha-ec-event-location").text(l)),d&&(m.removeAttr("style"),m.html(d)),!0!==a?(g.removeAttr("style"),o=Date.parse(t(o)),r=Date.parse(t(r)),h=n(t(o),C),v="Invalid Data",o<r&&(v=n(t(r),C)),g.find("span.ha-ec-event-time").text(h+" - "+v)):(g.removeAttr("style"),g.find("span.ha-ec-event-time").text(k)),c&&(y.removeAttr("style"),y.attr("href",c),"on"===e.event.extendedProps.external&&y.attr("target","_blank"),"on"===e.event.extendedProps.nofollow)&&y.attr("rel","nofollow")}else{var _,w;if(e.event.url&&e.event.extendedProps.external)return e.jsEvent.preventDefault(),u=b.data("id"),(i=document.createElement("a")).id="happy-even-calender-link-"+u,i.href=e.event.url,i.target=e.event.extendedProps.external?"_blank":"_self",i.rel=e.event.extendedProps.nofollow?"nofollow noreferer":"",i.style.display="none",document.body.appendChild(i),(_=document.getElementById(i.id)).click(),w=setTimeout(function(){document.body.removeChild(_),clearTimeout(w)}),!1}},dateClick:function(e){itemDate=e.date.toUTCString()}}).render(),b.find(".ha-ec-popup-wrapper").on("click",function(e){e.stopPropagation(),e.target!==e.currentTarget&&e.target!=t[0]&&e.target!=t.find(".eicon-editor-close")[0]||S.addClass("ha-ec-popup-removing").removeClass("ha-ec-popup-ready")}))},"ha-mailchimp.default":function(e){var n=e.find(".ha-mailchimp-form"),a=e.find(".ha-mc-response-message"),i=n.data("success-message");n.on("submit",function(e){e.preventDefault();e={action:"ha_mailchimp_ajax",security:HappyLocalize.nonce,subscriber_info:n.serialize(),list_id:n.data("list-id"),post_id:n.parent().data("post-id"),widget_id:n.parent().data("widget-id")};h.ajax({type:"post",url:HappyLocalize.ajax_url,data:e,success:function(e){n.trigger("reset"),e.status?(a.removeClass("error"),a.addClass("success"),a.text(i)):(a.addClass("error"),a.removeClass("success"),a.text(e.msg));var t=setTimeout(function(){a.removeClass("error"),a.removeClass("success"),clearTimeout(t)},5e3)},error:function(e){}})})},"ha-image-accordion.default":function(e){var n;e.hasClass("ha-image-accordion-click")&&(n=e.find(".ha-ia-item")).each(function(e,t){h(this).on("click",function(e){h(this).hasClass("active")||(n.removeClass("active"),h(this).addClass("active"))})})},"ha-content-switcher.default":function(e){var n,a,t,i,o,r,s,l=e.find(".ha-content-switcher-wrapper");"button"==l.data("design-type")?(n=l.find(".ha-cs-button"),a=l.find(".ha-cs-content-section"),n.each(function(e,t){h(this).on("click",function(e){e.preventDefault(),h(this).hasClass("active")||(n.removeClass("active"),h(this).addClass("active"),a.removeClass("active"),e=h(this).data("content-id"),l.find("#"+e).addClass("active"))})})):(e=l.find(".ha-cs-switch.ha-input-label"),t=l.find("input.ha-cs-toggle-switch"),i=l.find(".ha-cs-switch.primary"),o=l.find(".ha-cs-switch.secondary"),r=l.find(".ha-cs-content-section.primary"),s=l.find(".ha-cs-content-section.secondary"),e.on("click",function(e){(t.is(":checked")?(i.removeClass("active"),r.removeClass("active"),o.addClass("active"),s):(o.removeClass("active"),s.removeClass("active"),i.addClass("active"),r)).addClass("active")}))},"ha-member.default":function(e){var t,n=e.find(".ha-btn"),a=e.find(".ha-member-lightbox");0<a.length&&(t=a.find(".ha-member-lightbox-close"),n.on("click",function(){a.addClass("ha-member-lightbox-show")}),a.on("click",function(e){!a.hasClass("ha-member-lightbox-show")||e.target!=a[0]&&e.target!=t[0]&&e.target!=t.find("i.eicon-editor-close")[0]||a.removeClass("ha-member-lightbox-show")}))},"ha-creative-button.default":function(e){var n=e.find(".ha-creative-btn-wrap"),t=n.data("magnetic"),a=n.find("a.ha-creative-btn"),t=("yes"==t&&(n.on("mousemove",function(e){var t=e.pageX-(n.offset().left+n.outerWidth()/2),e=e.pageY-(n.offset().top+n.outerHeight()/2);a.css("transform","translate("+.3*t+"px, "+.5*e+"px)")}),n.on("mouseout",function(e){a.css("transform","translate(0px, 0px)")})),e.find(".ha-eft--expandable")),i=t.find(".text");0<t.length&&0<i.length&&(i[0].addEventListener("transitionend",function(){i[0].style.width&&(i[0].style.width="auto")}),t[0].addEventListener("mouseenter",function(e){e.currentTarget.classList.add("hover"),i[0].style.width="auto";e=i[0].offsetWidth;i[0].style.width="0",window.getComputedStyle(i[0]).transform,i[0].style.width="".concat(e,"px")}),t[0].addEventListener("mouseleave",function(e){e.currentTarget.classList.remove("hover"),i[0].style.width="".concat(i[0].offsetWidth,"px"),window.getComputedStyle(i[0]).transform,i[0].style.width=""}))},"ha-pdf-view.default":function(e){var t=e.data("id"),e=e.find(".viewer-"+t).data("pdf-settings"),t={width:e.width,height:e.height,page:e.page_number};PDFObject.embed(e.pdf_url,"#"+e.unique_id,t)},"ha-comparison-table.default":function(e){var t=e.find(".ha-comparison-table-wrapper"),n=e.find(".ha-comparison-table__head"),a=n.data("sticky-header"),i=(e.height(),t.innerHeight()),o=t.offset().top;"yes"===a&&c.scroll(function(){var e=h(this).scrollTop();o<=e?n.addClass("table-sticky"):i<e&&n.removeClass("table-sticky")})}},function(e,t){elementorFrontend.hooks.addAction("frontend/element_ready/"+e,t)}),{"ha-image-grid.default":a,"ha-justified-gallery.default":i,"ha-news-ticker.default":o,"ha-post-tab.default":r}),s=(h.each(a,function(e,t){elementorFrontend.hooks.addAction("frontend/element_ready/"+e,function(e){elementorFrontend.elementsHandler.addHandler(t,{$element:e})})}),elementorFrontend.hooks.addAction("frontend/element_ready/ha-navigation-menu.default",function(e){var a=e.find(".ha-nav-menu");function t(){jQuery(window).width()<768?(a.removeClass("ha-navigation-menu-wrapper"),a.addClass("ha-navigation-burger-menu"),a.find(".ha-submenu-indicator-wrap").on("click",function(e){e.preventDefault();e=h(this).parent("li.menu-item-has-children");e&&e.children("ul.sub-menu").slideToggle()})):(a.addClass("ha-navigation-menu-wrapper"),a.removeClass("ha-navigation-burger-menu"),a.find("ul.menu").removeAttr("style"),a.find("ul.sub-menu").removeAttr("style"))}jQuery(window).width()<1025&&767<jQuery(window).width()&&a.find(".ha-submenu-indicator-wrap").on("click",function(e){e.preventDefault();e=h(this).parent("li.menu-item-has-children");e&&e.children("ul.sub-menu").slideToggle()}),a.find(".ha-menu-toggler").on("click",function(e){var t=h(this).data("humberger"),n=a.find("ul.menu");"open"==t?(h(".ha-menu-open-icon").addClass("hide-icon"),h(".ha-menu-close-icon").removeClass("hide-icon"),h(".ha-menu-close-icon").addClass("show-icon"),n.slideDown()):(h(".ha-menu-close-icon").addClass("hide-icon"),h(".ha-menu-open-icon").removeClass("hide-icon"),h(".ha-menu-open-icon").addClass("show-icon"),n.slideUp())}),t(),c.on("resize",u(t,100))}),elementorFrontend.hooks.addAction("frontend/element_ready/ha-age-gate.default",function(e,t){var n,a,i,o,r,s;elementorFrontend.isEditMode()?(localStorage.removeItem("ha-age-gate-expire-time"),e.find(".ha-age-gate-wrapper").length&&"no"==e.find(".ha-age-gate-wrapper").data("editor_mood")&&e.find(".ha-age-gate-wrapper").hide()):elementorFrontend.isEditMode()||(a=(n=e.find(".ha-age-gate-wrapper")).data("age_gate_cookies_time"),i=localStorage.getItem("ha-age-gate-expire-time"),n.closest("body").css("overflow","hidden"),o=new Date,(r=new Date).setDate(o.getDate()+a),t("body,html,document").scrollTop(e.offset().top),s=setTimeout(function(){t("body,html,document").scrollTop(t("body").offset().top),clearTimeout(s)},1e3),""!=i&&null!=i&&new Date(o)<=new Date(i)?(t(".ha-age-gate-wrapper").hide(),n.closest("body").css("overflow","")):(""!=i&&null!=i&&new Date(o)>new Date(i)&&localStorage.removeItem("ha-age-gate-expire-time"),t(".ha-age-gate-wrapper").show()),e.find(".ha-age-gate-wrapper.ha-age-gate-confirm-age").length&&t(".ha-age-gate-confirm-age-btn").on("click",function(){localStorage.setItem("ha-age-gate-expire-time",r),t(this).closest(".ha-age-gate-wrapper").hide(),t(this).closest("body").css("overflow","")}),e.find(".ha-age-gate-wrapper.ha-age-gate-confirm-dob").length&&t(".ha-age-gate-confirm-dob-btn").on("click",function(){var e=new Date(Date.parse(t(this).closest(".ha-age-gate-form-body").find(".ha-age-gate-date-input").val())).getFullYear();o.getFullYear()-e<t(this).closest(".ha-age-gate-wrapper").data("userbirth")?t(this).closest(".ha-age-gate-boxes").find(".ha-age-gate-warning-msg").show():(localStorage.setItem("ha-age-gate-expire-time",r),t(this).closest(".ha-age-gate-wrapper").hide(),t(this).closest("body").css("overflow",""))}),e.find(".ha-age-gate-wrapper.ha-age-gate-confirm-by-boolean").length&&(t(".ha-age-gate-wrapper .ha-age-gate-confirm-yes-btn").on("click",function(){localStorage.setItem("ha-age-gate-expire-time",r),t(this).closest(".ha-age-gate-wrapper").hide(),t(this).closest("body").css("overflow","")}),t(".ha-age-gate-wrapper .ha-age-gate-confirm-no-btn").on("click",function(){t(this).closest(".ha-age-gate-boxes").find(".ha-age-gate-warning-msg").show()})))}),t.extend({onInit:function(){t.prototype.onInit.apply(this,arguments),this.run()},onElementChange:u(function(e){-1!==["width","title_typography_typography","title_typography_font_size","title_typography_line_height","title_typography_font_weight","sub_title_typography_typography","sub_title_typography_font_size","sub_title_typography_line_height","sub_title_typography_font_weight"].indexOf(e)&&this.run()},300),run:function(){var a,e,t,n,i,o,r=this,s=JSON.parse(r.$element.find(".ha-lhi-image-area").attr("data-settings")),l=r.$element.find(".ha-lhi-image"),d=r.$element.find(".ha-lhi-title h2"),c=r.$element.find(".ha-lhi-title p"),h=r.$element.find("canvas"),u=s.hover_style,g=s.plugin_url+"liquid-hover-image/"+s.hover_effect;"custom"==s.hover_effect&&(g=s.custom_effect||""),h&&h.remove(),new hoverEffect({parent:l[0],intensity:s.intensity,image1:s.first_image,image2:s.second_image,displacementImage:g,imagesRatio:l.height()/l.width(),angle1:(s.angle-45)*(Math.PI/180)*-1,angle2:(s.angle-45)*(Math.PI/180)*-1,speedIn:s.speed,speedOut:s.speed});"style-1"==u&&(d.length||c.length)&&(a=s.style_1_direction,d.length&&(d[0].innerHTML=d[0].textContent.replace(/\S/g,"<span class='letter'>$&</span>")),c.length&&c.addClass("letter"),e=[0,0],t=[0,0],n=[0,0],i=[0,0],"left"==a?(e=[80,0],t=[0,-80]):"right"==a?(e=[0,80],t=[80,200]):"up"==a?(n=[80,0],i=[0,-80]):"down"==a&&(n=[-80,0],i=[0,80]),r.$element.hover(function(){anime.timeline({loop:!1}).add({targets:".elementor-element-"+r.getID()+" .ha-lhi-title .letter",translateX:e,translateY:n,translateZ:0,opacity:[0,1],easing:"easeOutExpo",duration:800,delay:function(e,t){return 40*t}})},function(){anime.timeline({loop:!1}).add({targets:".elementor-element-"+r.getID()+" .ha-lhi-title .letter",translateX:t,translateY:i,opacity:[1,0],duration:850,delay:function(e,t,n){return t=t,n=n,"right"==a?40*(n-t):40*t}})})),"style-2"==u&&(d.length||c.length)&&(d.length&&(o=d.find(".normal").outerHeight(),d.height(o)),c.length&&(o=c.find(".normal").outerHeight(),c.height(o)),r.$element.hover(function(){d.addClass("play"),c.addClass("play")},function(){d.removeClass("play"),c.removeClass("play")})),"style-5"==u&&(d.length||c.length)&&d.length&&(o=d.find(".normal").outerHeight(),d.attr("style","--ha-lhi-style-5-height:"+o+"px"))}})),l=(elementorFrontend.hooks.addAction("frontend/element_ready/ha-liquid-hover-image.default",function(e){elementorFrontend.elementsHandler.addHandler(s,{$element:e})}),t.extend({onInit:function(){t.prototype.onInit.apply(this,arguments),this.run()},onElementChange:u(function(e){-1!==["text_scroll_type"].indexOf(e)&&this.run()},300),getReadySettings:function(){var e={},t=this.getElementSettings("text_scroll_type");return t&&(e.scroll_type=t),h.extend({},this.getSettings(),e)},run:function(){var e=this.getReadySettings(),t=this.$element,n=t.find(".ha-split-lines")[0],a=[],i=e.scroll_type;"undefined"==typeof gsap||"undefined"==typeof ScrollTrigger||(gsap.registerPlugin(ScrollTrigger),n.length<=0)||("horizontal_line_mask"===i||"vertical_line_mask"===i?(h(n).each(function(e){var t=h(this);a[e]=new SplitType(t,{types:"lines, words"})}),h(n).find(".line").each(function(e){h(this).append("<div class='ha-line-mask'></div>")})):"horizontal_line_highlight"===i?h(n).each(function(e){var t=h(this);a[e]=new SplitType(t,{types:"words, chars"})}):new SplitType(n,{types:"lines, words"}),"horizontal_line_mask"===i||"vertical_line_mask"===i?t.find(".line").each(function(e,t){var n,a=h(t).find(".ha-line-mask");a.length<=0||(h(t).addClass("mask-active"),n="horizontal_line_mask"===i?{width:"0%"}:{height:"0%"},gsap.timeline({scrollTrigger:_objectSpread({trigger:t},{start:"horizontal_line_mask"===i?"bottom 50%":"bottom center",end:"bottom center",scrub:3})}).to(a,_objectSpread(_objectSpread({},n),{},{duration:1})))}):"horizontal_line_highlight"===i?(e=t.find(".word .char"),n=t.find(".ha-split-lines"),0<=e.length&&0<=n.length&&gsap.to(e,{scrollTrigger:{trigger:n,start:"top 40%",end:"bottom center",scrub:1},opacity:1,duration:2,stagger:1})):t.find(".line").each(function(){var e=this;gsap.to(this,{scrollTrigger:{trigger:this,start:"top 50%",end:"bottom 50%",onEnter:function(){h(e).addClass("highlight")},onLeaveBack:function(){h(e).removeClass("highlight")}}})}))}})),d=(elementorFrontend.hooks.addAction("frontend/element_ready/ha-text-scroll.default",function(e){elementorFrontend.elementsHandler.addHandler(l,{$element:e})}),t.extend({onInit:function(){t.prototype.onInit.apply(this,arguments),this.run()},bindEvents:function(){ScrollTrigger.config({limitCallbacks:!0,ignoreMobileResize:!0})},run:function(){gsap.registerPlugin(ScrollTrigger);var e,t,n,a,i,o,r,s,l,d,c=this.$element;c.find("title").remove(),c.hasClass("ha-svg-animated-yes")&&(e=c.data("id"),n=(t=this.getElementSettings()).scroll_action,o=null,a=parseFloat(t.repeat_delay)||.5,i=new TimelineMax({repeat:0,yoyo:!1,repeatDelay:.5}),"automatic"===n?(o="custom"!==t.animate_trigger?t.animate_trigger:t.animate_offset.size+"%",d=t.anim_rev?"pause play reverse":"none",i.repeat(t.loop?-1:0).yoyo(t.yoyo).repeatDelay(t.loop?a:0),ScrollTrigger.create({trigger:".elementor-element-"+e,toggleActions:"play "+d,start:"top "+o,animation:i})):(i.repeat("hover"===n&&t.loop?-1:0).yoyo("hover"===n&&t.yoyo).repeatDelay("hover"===n&&t.loop?a:0),"viewport"===n&&(o=t.animate_offset.size/100)),r=c.hasClass("ha-svg-animation-rev-yes")?"to":"from",d=c.find("path, circle, rect, square, ellipse, polyline, polygon, line"),s=0,l=("from"==r?t.animate_start_point:t.animate_end_point).size,d.each(function(e,t){t=h(t);t.attr("fill","transparent"),c.hasClass("ha-svg-sync-together-yes")&&(e=0),s=e,"from"==r?i.from(t,1,{PaSvgDrawer:(l||0)+"% 0"},e):i.to(t,1,{PaSvgDrawer:(l||0)+"% 0"},e)}),"yes"===t.svg_fill&&(0==s&&(s=1),i.to(d,1,{fill:t.svg_color,stroke:t.svg_stroke},s)),"viewport"===n?(d=new ScrollMagic.Controller,new ScrollMagic.Scene({triggerElement:".elementor-element-"+e,triggerHook:o,duration:t.draw_speed?1e3*t.draw_speed.size:"150%"}).setTween(i).addTo(d)):(t.frames&&(i.duration(t.frames),i.repeatDelay(a)),"hover"===n&&(i.pause(),c.find("svg").hover(function(){i.play()},function(){i.pause()}))))}}));elementorFrontend.hooks.addAction("frontend/element_ready/ha-svg-draw.default",function(e){elementorFrontend.elementsHandler.addHandler(d,{$element:e})})})})(jQuery);