test-isc
Version:
An Ionic component similar to Ionic Select, that allows to search items, including async search, group, add, edit, delete items, and much more.
1 lines • 97 kB
JavaScript
var t="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,e="undefined"==typeof window?{document:t,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window;class i{constructor(t){const e=this;for(let i=0;i<t.length;i+=1)e[i]=t[i];return e.length=t.length,this}}function s(s,n){const r=[];let o=0;if(s&&!n&&s instanceof i)return s;if(s)if("string"==typeof s){let e,i;const a=s.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){let e="div";for(0===a.indexOf("<li")&&(e="ul"),0===a.indexOf("<tr")&&(e="tbody"),0!==a.indexOf("<td")&&0!==a.indexOf("<th")||(e="tr"),0===a.indexOf("<tbody")&&(e="table"),0===a.indexOf("<option")&&(e="select"),i=t.createElement(e),i.innerHTML=a,o=0;o<i.childNodes.length;o+=1)r.push(i.childNodes[o])}else for(e=n||"#"!==s[0]||s.match(/[ .<>:~]/)?(n||t).querySelectorAll(s.trim()):[t.getElementById(s.trim().split("#")[1])],o=0;o<e.length;o+=1)e[o]&&r.push(e[o])}else if(s.nodeType||s===e||s===t)r.push(s);else if(s.length>0&&s[0].nodeType)for(o=0;o<s.length;o+=1)r.push(s[o]);return new i(r)}function n(t){const e=[];for(let i=0;i<t.length;i+=1)-1===e.indexOf(t[i])&&e.push(t[i]);return e}s.fn=i.prototype,s.Class=i,s.Dom7=i;const r={addClass:function(t){if(void 0===t)return this;const e=t.split(" ");for(let i=0;i<e.length;i+=1)for(let t=0;t<this.length;t+=1)void 0!==this[t]&&void 0!==this[t].classList&&this[t].classList.add(e[i]);return this},removeClass:function(t){const e=t.split(" ");for(let i=0;i<e.length;i+=1)for(let t=0;t<this.length;t+=1)void 0!==this[t]&&void 0!==this[t].classList&&this[t].classList.remove(e[i]);return this},hasClass:function(t){return!!this[0]&&this[0].classList.contains(t)},toggleClass:function(t){const e=t.split(" ");for(let i=0;i<e.length;i+=1)for(let t=0;t<this.length;t+=1)void 0!==this[t]&&void 0!==this[t].classList&&this[t].classList.toggle(e[i]);return this},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(t,e);else for(const e in t)this[i][e]=t[e],this[i].setAttribute(e,t[e]);return this},removeAttr:function(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},data:function(t,e){let i;if(void 0!==e){for(let s=0;s<this.length;s+=1)i=this[s],i.dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[t]=e;return this}if(i=this[0],i){if(i.dom7ElementDataStorage&&t in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[t];return i.getAttribute("data-"+t)||void 0}},transform:function(t){for(let e=0;e<this.length;e+=1){const i=this[e].style;i.webkitTransform=t,i.transform=t}return this},transition:function(t){"string"!=typeof t&&(t+="ms");for(let e=0;e<this.length;e+=1){const i=this[e].style;i.webkitTransitionDuration=t,i.transitionDuration=t}return this},on:function(...t){let[e,i,n,r]=t;function o(t){const e=t.target;if(!e)return;const r=t.target.dom7EventData||[];if(r.indexOf(t)<0&&r.unshift(t),s(e).is(i))n.apply(e,r);else{const t=s(e).parents();for(let e=0;e<t.length;e+=1)s(t[e]).is(i)&&n.apply(t[e],r)}}function a(t){const e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),n.apply(this,e)}"function"==typeof t[1]&&([e,n,r]=t,i=void 0),r||(r=!1);const l=e.split(" ");let h;for(let s=0;s<this.length;s+=1){const t=this[s];if(i)for(h=0;h<l.length;h+=1){const e=l[h];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:n,proxyListener:o}),t.addEventListener(e,o,r)}else for(h=0;h<l.length;h+=1){const e=l[h];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:n,proxyListener:a}),t.addEventListener(e,a,r)}}return this},off:function(...t){let[e,i,s,n]=t;"function"==typeof t[1]&&([e,s,n]=t,i=void 0),n||(n=!1);const r=e.split(" ");for(let o=0;o<r.length;o+=1){const t=r[o];for(let e=0;e<this.length;e+=1){const r=this[e];let o;if(!i&&r.dom7Listeners?o=r.dom7Listeners[t]:i&&r.dom7LiveListeners&&(o=r.dom7LiveListeners[t]),o&&o.length)for(let e=o.length-1;e>=0;e-=1){const i=o[e];s&&i.listener===s||s&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===s?(r.removeEventListener(t,i.proxyListener,n),o.splice(e,1)):s||(r.removeEventListener(t,i.proxyListener,n),o.splice(e,1))}}}return this},trigger:function(...i){const s=i[0].split(" "),n=i[1];for(let o=0;o<s.length;o+=1){const a=s[o];for(let s=0;s<this.length;s+=1){const o=this[s];let l;try{l=new e.CustomEvent(a,{detail:n,bubbles:!0,cancelable:!0})}catch(r){l=t.createEvent("Event"),l.initEvent(a,!0,!0),l.detail=n}o.dom7EventData=i.filter((t,e)=>e>0),o.dispatchEvent(l),o.dom7EventData=[],delete o.dom7EventData}}return this},transitionEnd:function(t){const e=["webkitTransitionEnd","transitionend"],i=this;let s;function n(r){if(r.target===this)for(t.call(this,r),s=0;s<e.length;s+=1)i.off(e[s],n)}if(t)for(s=0;s<e.length;s+=1)i.on(e[s],n);return this},outerWidth:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){const i=this[0],s=i.getBoundingClientRect(),n=t.body;return{top:s.top+(i===e?e.scrollY:i.scrollTop)-(i.clientTop||n.clientTop||0),left:s.left+(i===e?e.scrollX:i.scrollLeft)-(i.clientLeft||n.clientLeft||0)}}return null},css:function(t,i){let s;if(1===arguments.length){if("string"!=typeof t){for(s=0;s<this.length;s+=1)for(let e in t)this[s].style[e]=t[e];return this}if(this[0])return e.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(s=0;s<this.length;s+=1)this[s].style[t]=i;return this}return this},each:function(t){if(!t)return this;for(let e=0;e<this.length;e+=1)if(!1===t.call(this[e],e,this[e]))return this;return this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:void 0;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(n){const r=this[0];let o,a;if(!r||void 0===n)return!1;if("string"==typeof n){if(r.matches)return r.matches(n);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(n);if(r.msMatchesSelector)return r.msMatchesSelector(n);for(o=s(n),a=0;a<o.length;a+=1)if(o[a]===r)return!0;return!1}if(n===t)return r===t;if(n===e)return r===e;if(n.nodeType||n instanceof i){for(o=n.nodeType?[n]:n,a=0;a<o.length;a+=1)if(o[a]===r)return!0;return!1}return!1},index:function(){let t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;const e=this.length;let s;return t>e-1?new i([]):t<0?(s=e+t,new i(s<0?[]:[this[s]])):new i([this[t]])},append:function(...e){let s;for(let n=0;n<e.length;n+=1){s=e[n];for(let e=0;e<this.length;e+=1)if("string"==typeof s){const i=t.createElement("div");for(i.innerHTML=s;i.firstChild;)this[e].appendChild(i.firstChild)}else if(s instanceof i)for(let t=0;t<s.length;t+=1)this[e].appendChild(s[t]);else this[e].appendChild(s)}return this},prepend:function(e){let s,n;for(s=0;s<this.length;s+=1)if("string"==typeof e){const i=t.createElement("div");for(i.innerHTML=e,n=i.childNodes.length-1;n>=0;n-=1)this[s].insertBefore(i.childNodes[n],this[s].childNodes[0])}else if(e instanceof i)for(n=0;n<e.length;n+=1)this[s].insertBefore(e[n],this[s].childNodes[0]);else this[s].insertBefore(e,this[s].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&s(this[0].nextElementSibling).is(t)?new i([this[0].nextElementSibling]):new i([]):new i(this[0].nextElementSibling?[this[0].nextElementSibling]:[]):new i([])},nextAll:function(t){const e=[];let n=this[0];if(!n)return new i([]);for(;n.nextElementSibling;){const i=n.nextElementSibling;t?s(i).is(t)&&e.push(i):e.push(i),n=i}return new i(e)},prev:function(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&s(e.previousElementSibling).is(t)?new i([e.previousElementSibling]):new i([]):new i(e.previousElementSibling?[e.previousElementSibling]:[])}return new i([])},prevAll:function(t){const e=[];let n=this[0];if(!n)return new i([]);for(;n.previousElementSibling;){const i=n.previousElementSibling;t?s(i).is(t)&&e.push(i):e.push(i),n=i}return new i(e)},parent:function(t){const e=[];for(let i=0;i<this.length;i+=1)null!==this[i].parentNode&&(t?s(this[i].parentNode).is(t)&&e.push(this[i].parentNode):e.push(this[i].parentNode));return s(n(e))},parents:function(t){const e=[];for(let i=0;i<this.length;i+=1){let n=this[i].parentNode;for(;n;)t?s(n).is(t)&&e.push(n):e.push(n),n=n.parentNode}return s(n(e))},closest:function(t){let e=this;return void 0===t?new i([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){const e=[];for(let i=0;i<this.length;i+=1){const s=this[i].querySelectorAll(t);for(let t=0;t<s.length;t+=1)e.push(s[t])}return new i(e)},children:function(t){const e=[];for(let i=0;i<this.length;i+=1){const n=this[i].childNodes;for(let i=0;i<n.length;i+=1)t?1===n[i].nodeType&&s(n[i]).is(t)&&e.push(n[i]):1===n[i].nodeType&&e.push(n[i])}return new i(n(e))},filter:function(t){const e=[],s=this;for(let i=0;i<s.length;i+=1)t.call(s[i],i,s[i])&&e.push(s[i]);return new i(e)},remove:function(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this},add:function(...t){const e=this;let i,n;for(i=0;i<t.length;i+=1){const r=s(t[i]);for(n=0;n<r.length;n+=1)e[e.length]=r[n],e.length+=1}return e},styles:function(){return this[0]?e.getComputedStyle(this[0],null):{}}};Object.keys(r).forEach(t=>{s.fn[t]=s.fn[t]||r[t]});const o={deleteProps(t){const e=t;Object.keys(e).forEach(t=>{try{e[t]=null}catch(i){}try{delete e[t]}catch(i){}})},nextTick:(t,e=0)=>setTimeout(t,e),now:()=>Date.now(),getTranslate(t,i="x"){let s,n,r;const o=e.getComputedStyle(t,null);return e.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(t=>t.replace(",",".")).join(", ")),r=new e.WebKitCSSMatrix("none"===n?"":n)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=r.toString().split(",")),"x"===i&&(n=e.WebKitCSSMatrix?r.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===i&&(n=e.WebKitCSSMatrix?r.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),n||0},parseUrlQuery(t){const i={};let s,n,r,o,a=t||e.location.href;if("string"==typeof a&&a.length)for(a=a.indexOf("?")>-1?a.replace(/\S*\?/,""):"",n=a.split("&").filter(t=>""!==t),o=n.length,s=0;s<o;s+=1)r=n[s].replace(/#\S+/g,"").split("="),i[decodeURIComponent(r[0])]=void 0===r[1]?void 0:decodeURIComponent(r[1])||"";return i},isObject:t=>"object"==typeof t&&null!==t&&t.constructor&&t.constructor===Object,extend(...t){const e=Object(t[0]);for(let i=1;i<t.length;i+=1){const s=t[i];if(null!=s){const t=Object.keys(Object(s));for(let i=0,n=t.length;i<n;i+=1){const n=t[i],r=Object.getOwnPropertyDescriptor(s,n);void 0!==r&&r.enumerable&&(o.isObject(e[n])&&o.isObject(s[n])?o.extend(e[n],s[n]):!o.isObject(e[n])&&o.isObject(s[n])?(e[n]={},o.extend(e[n],s[n])):e[n]=s[n])}}}return e}},a={touch:e.Modernizr&&!0===e.Modernizr.touch||!!(e.navigator.maxTouchPoints>0||"ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),pointerEvents:!!e.PointerEvent&&"maxTouchPoints"in e.navigator&&e.navigator.maxTouchPoints>0,observer:"MutationObserver"in e||"WebkitMutationObserver"in e,passiveListener:function(){let t=!1;try{const i=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,i)}catch(i){}return t}(),gestures:"ongesturestart"in e};class l{constructor(t={}){const e=this;e.params=t,e.eventsListeners={},e.params&&e.params.on&&Object.keys(e.params.on).forEach(t=>{e.on(t,e.params.on[t])})}on(t,e,i){const s=this;if("function"!=typeof e)return s;const n=i?"unshift":"push";return t.split(" ").forEach(t=>{s.eventsListeners[t]||(s.eventsListeners[t]=[]),s.eventsListeners[t][n](e)}),s}once(t,e,i){const s=this;if("function"!=typeof e)return s;function n(...i){s.off(t,n),n.f7proxy&&delete n.f7proxy,e.apply(s,i)}return n.f7proxy=e,s.on(t,n,i)}off(t,e){const i=this;return i.eventsListeners?(t.split(" ").forEach(t=>{void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].length&&i.eventsListeners[t].forEach((s,n)=>{(s===e||s.f7proxy&&s.f7proxy===e)&&i.eventsListeners[t].splice(n,1)})}),i):i}emit(...t){const e=this;if(!e.eventsListeners)return e;let i,s,n;return"string"==typeof t[0]||Array.isArray(t[0])?(i=t[0],s=t.slice(1,t.length),n=e):(i=t[0].events,s=t[0].data,n=t[0].context||e),(Array.isArray(i)?i:i.split(" ")).forEach(t=>{if(e.eventsListeners&&e.eventsListeners[t]){const i=[];e.eventsListeners[t].forEach(t=>{i.push(t)}),i.forEach(t=>{t.apply(n,s)})}}),e}useModulesParams(t){const e=this;e.modules&&Object.keys(e.modules).forEach(i=>{const s=e.modules[i];s.params&&o.extend(t,s.params)})}useModules(t={}){const e=this;e.modules&&Object.keys(e.modules).forEach(i=>{const s=e.modules[i],n=t[i]||{};s.instance&&Object.keys(s.instance).forEach(t=>{const i=s.instance[t];e[t]="function"==typeof i?i.bind(e):i}),s.on&&e.on&&Object.keys(s.on).forEach(t=>{e.on(t,s.on[t])}),s.create&&s.create.bind(e)(n)})}static set components(t){this.use&&this.use(t)}static installModule(t,...e){const i=this;i.prototype.modules||(i.prototype.modules={});const s=t.name||`${Object.keys(i.prototype.modules).length}_${o.now()}`;return i.prototype.modules[s]=t,t.proto&&Object.keys(t.proto).forEach(e=>{i.prototype[e]=t.proto[e]}),t.static&&Object.keys(t.static).forEach(e=>{i[e]=t.static[e]}),t.install&&t.install.apply(i,e),i}static use(t,...e){const i=this;return Array.isArray(t)?(t.forEach(t=>i.installModule(t)),i):i.installModule(t,...e)}}var h={updateSize:function(){let t,e;const i=this.$el;t=void 0!==this.params.width?this.params.width:i[0].clientWidth,e=void 0!==this.params.height?this.params.height:i[0].clientHeight,0===t&&this.isHorizontal()||0===e&&this.isVertical()||(t=t-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),e=e-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),o.extend(this,{width:t,height:e,size:this.isHorizontal()?t:e}))},updateSlides:function(){const t=this,i=t.params,{$wrapperEl:s,size:n,rtlTranslate:r,wrongRTL:a}=t,l=t.virtual&&i.virtual.enabled,h=l?t.virtual.slides.length:t.slides.length,c=s.children("."+t.params.slideClass),d=l?t.virtual.slides.length:c.length;let u=[];const f=[],p=[];function v(t){return!i.cssMode||t!==c.length-1}let g=i.slidesOffsetBefore;"function"==typeof g&&(g=i.slidesOffsetBefore.call(t));let m=i.slidesOffsetAfter;"function"==typeof m&&(m=i.slidesOffsetAfter.call(t));const w=t.snapGrid.length,b=t.snapGrid.length;let x,M,S=i.spaceBetween,$=-g,y=0,T=0;if(void 0===n)return;"string"==typeof S&&S.indexOf("%")>=0&&(S=parseFloat(S.replace("%",""))/100*n),t.virtualSize=-S,c.css(r?{marginLeft:"",marginTop:""}:{marginRight:"",marginBottom:""}),i.slidesPerColumn>1&&(x=Math.floor(d/i.slidesPerColumn)===d/t.params.slidesPerColumn?d:Math.ceil(d/i.slidesPerColumn)*i.slidesPerColumn,"auto"!==i.slidesPerView&&"row"===i.slidesPerColumnFill&&(x=Math.max(x,i.slidesPerView*i.slidesPerColumn)));const E=i.slidesPerColumn,C=x/E,k=Math.floor(d/i.slidesPerColumn);for(let o=0;o<d;o+=1){M=0;const s=c.eq(o);if(i.slidesPerColumn>1){let e,n,r;if("row"===i.slidesPerColumnFill&&i.slidesPerGroup>1){const t=Math.floor(o/(i.slidesPerGroup*i.slidesPerColumn)),a=o-i.slidesPerColumn*i.slidesPerGroup*t,l=0===t?i.slidesPerGroup:Math.min(Math.ceil((d-t*E*i.slidesPerGroup)/E),i.slidesPerGroup);r=Math.floor(a/l),n=a-r*l+t*i.slidesPerGroup,e=n+r*x/E,s.css({"-webkit-box-ordinal-group":e,"-moz-box-ordinal-group":e,"-ms-flex-order":e,"-webkit-order":e,order:e})}else"column"===i.slidesPerColumnFill?(n=Math.floor(o/E),r=o-n*E,(n>k||n===k&&r===E-1)&&(r+=1,r>=E&&(r=0,n+=1))):(r=Math.floor(o/C),n=o-r*C);s.css("margin-"+(t.isHorizontal()?"top":"left"),0!==r&&i.spaceBetween&&i.spaceBetween+"px")}if("none"!==s.css("display")){if("auto"===i.slidesPerView){const n=e.getComputedStyle(s[0],null),r=s[0].style.transform,o=s[0].style.webkitTransform;if(r&&(s[0].style.transform="none"),o&&(s[0].style.webkitTransform="none"),i.roundLengths)M=t.isHorizontal()?s.outerWidth(!0):s.outerHeight(!0);else if(t.isHorizontal()){const t=parseFloat(n.getPropertyValue("width")),e=parseFloat(n.getPropertyValue("padding-left")),i=parseFloat(n.getPropertyValue("padding-right")),s=parseFloat(n.getPropertyValue("margin-left")),r=parseFloat(n.getPropertyValue("margin-right")),o=n.getPropertyValue("box-sizing");M=o&&"border-box"===o?t+s+r:t+e+i+s+r}else{const t=parseFloat(n.getPropertyValue("height")),e=parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("padding-bottom")),s=parseFloat(n.getPropertyValue("margin-top")),r=parseFloat(n.getPropertyValue("margin-bottom")),o=n.getPropertyValue("box-sizing");M=o&&"border-box"===o?t+s+r:t+e+i+s+r}r&&(s[0].style.transform=r),o&&(s[0].style.webkitTransform=o),i.roundLengths&&(M=Math.floor(M))}else M=(n-(i.slidesPerView-1)*S)/i.slidesPerView,i.roundLengths&&(M=Math.floor(M)),c[o]&&(t.isHorizontal()?c[o].style.width=M+"px":c[o].style.height=M+"px");c[o]&&(c[o].swiperSlideSize=M),p.push(M),i.centeredSlides?($=$+M/2+y/2+S,0===y&&0!==o&&($=$-n/2-S),0===o&&($=$-n/2-S),Math.abs($)<.001&&($=0),i.roundLengths&&($=Math.floor($)),T%i.slidesPerGroup==0&&u.push($),f.push($)):(i.roundLengths&&($=Math.floor($)),(T-Math.min(t.params.slidesPerGroupSkip,T))%t.params.slidesPerGroup==0&&u.push($),f.push($),$=$+M+S),t.virtualSize+=M+S,y=M,T+=1}}let z;if(t.virtualSize=Math.max(t.virtualSize,n)+m,r&&a&&("slide"===i.effect||"coverflow"===i.effect)&&s.css({width:t.virtualSize+i.spaceBetween+"px"}),i.setWrapperSize&&(t.isHorizontal()?s.css({width:t.virtualSize+i.spaceBetween+"px"}):s.css({height:t.virtualSize+i.spaceBetween+"px"})),i.slidesPerColumn>1&&(t.virtualSize=(M+i.spaceBetween)*x,t.virtualSize=Math.ceil(t.virtualSize/i.slidesPerColumn)-i.spaceBetween,t.isHorizontal()?s.css({width:t.virtualSize+i.spaceBetween+"px"}):s.css({height:t.virtualSize+i.spaceBetween+"px"}),i.centeredSlides)){z=[];for(let e=0;e<u.length;e+=1){let s=u[e];i.roundLengths&&(s=Math.floor(s)),u[e]<t.virtualSize+u[0]&&z.push(s)}u=z}if(!i.centeredSlides){z=[];for(let e=0;e<u.length;e+=1){let s=u[e];i.roundLengths&&(s=Math.floor(s)),u[e]<=t.virtualSize-n&&z.push(s)}u=z,Math.floor(t.virtualSize-n)-Math.floor(u[u.length-1])>1&&u.push(t.virtualSize-n)}if(0===u.length&&(u=[0]),0!==i.spaceBetween&&(t.isHorizontal()?r?c.filter(v).css({marginLeft:S+"px"}):c.filter(v).css({marginRight:S+"px"}):c.filter(v).css({marginBottom:S+"px"})),i.centeredSlides&&i.centeredSlidesBounds){let t=0;p.forEach(e=>{t+=e+(i.spaceBetween?i.spaceBetween:0)}),t-=i.spaceBetween;const e=t-n;u=u.map(t=>t<0?-g:t>e?e+m:t)}if(i.centerInsufficientSlides){let t=0;if(p.forEach(e=>{t+=e+(i.spaceBetween?i.spaceBetween:0)}),t-=i.spaceBetween,t<n){const e=(n-t)/2;u.forEach((t,i)=>{u[i]=t-e}),f.forEach((t,i)=>{f[i]=t+e})}}o.extend(t,{slides:c,snapGrid:u,slidesGrid:f,slidesSizesGrid:p}),d!==h&&t.emit("slidesLengthChange"),u.length!==w&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==b&&t.emit("slidesGridLengthChange"),(i.watchSlidesProgress||i.watchSlidesVisibility)&&t.updateSlidesOffset()},updateAutoHeight:function(t){const e=this,i=[];let s,n=0;if("number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed),"auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)e.visibleSlides.each((t,e)=>{i.push(e)});else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){const t=e.activeIndex+s;if(t>e.slides.length)break;i.push(e.slides.eq(t)[0])}else i.push(e.slides.eq(e.activeIndex)[0]);for(s=0;s<i.length;s+=1)if(void 0!==i[s]){const t=i[s].offsetHeight;n=t>n?t:n}n&&e.$wrapperEl.css("height",n+"px")},updateSlidesOffset:function(){const t=this,e=t.slides;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=t.isHorizontal()?e[i].offsetLeft:e[i].offsetTop},updateSlidesProgress:function(t=this&&this.translate||0){const e=this,i=e.params,{slides:n,rtlTranslate:r}=e;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&e.updateSlidesOffset();let o=-t;r&&(o=t),n.removeClass(i.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let s=0;s<n.length;s+=1){const t=n[s],a=(o+(i.centeredSlides?e.minTranslate():0)-t.swiperSlideOffset)/(t.swiperSlideSize+i.spaceBetween);if(i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight){const r=-(o-t.swiperSlideOffset),a=r+e.slidesSizesGrid[s];(r>=0&&r<e.size-1||a>1&&a<=e.size||r<=0&&a>=e.size)&&(e.visibleSlides.push(t),e.visibleSlidesIndexes.push(s),n.eq(s).addClass(i.slideVisibleClass))}t.progress=r?-a:a}e.visibleSlides=s(e.visibleSlides)},updateProgress:function(t){const e=this;if(void 0===t){const i=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*i||0}const i=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:r,isEnd:a}=e;const l=r,h=a;0===s?(n=0,r=!0,a=!0):(n=(t-e.minTranslate())/s,r=n<=0,a=n>=1),o.extend(e,{progress:n,isBeginning:r,isEnd:a}),(i.watchSlidesProgress||i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),r&&!l&&e.emit("reachBeginning toEdge"),a&&!h&&e.emit("reachEnd toEdge"),(l&&!r||h&&!a)&&e.emit("fromEdge"),e.emit("progress",n)},updateSlidesClasses:function(){const{slides:t,params:e,$wrapperEl:i,activeIndex:s,realIndex:n}=this,r=this.virtual&&e.virtual.enabled;let o;t.removeClass(`${e.slideActiveClass} ${e.slideNextClass} ${e.slidePrevClass} ${e.slideDuplicateActiveClass} ${e.slideDuplicateNextClass} ${e.slideDuplicatePrevClass}`),o=r?this.$wrapperEl.find(`.${e.slideClass}[data-swiper-slide-index="${s}"]`):t.eq(s),o.addClass(e.slideActiveClass),e.loop&&(o.hasClass(e.slideDuplicateClass)?i.children(`.${e.slideClass}:not(.${e.slideDuplicateClass})[data-swiper-slide-index="${n}"]`).addClass(e.slideDuplicateActiveClass):i.children(`.${e.slideClass}.${e.slideDuplicateClass}[data-swiper-slide-index="${n}"]`).addClass(e.slideDuplicateActiveClass));let a=o.nextAll("."+e.slideClass).eq(0).addClass(e.slideNextClass);e.loop&&0===a.length&&(a=t.eq(0),a.addClass(e.slideNextClass));let l=o.prevAll("."+e.slideClass).eq(0).addClass(e.slidePrevClass);e.loop&&0===l.length&&(l=t.eq(-1),l.addClass(e.slidePrevClass)),e.loop&&(a.hasClass(e.slideDuplicateClass)?i.children(`.${e.slideClass}:not(.${e.slideDuplicateClass})[data-swiper-slide-index="${a.attr("data-swiper-slide-index")}"]`).addClass(e.slideDuplicateNextClass):i.children(`.${e.slideClass}.${e.slideDuplicateClass}[data-swiper-slide-index="${a.attr("data-swiper-slide-index")}"]`).addClass(e.slideDuplicateNextClass),l.hasClass(e.slideDuplicateClass)?i.children(`.${e.slideClass}:not(.${e.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(e.slideDuplicatePrevClass):i.children(`.${e.slideClass}.${e.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(e.slideDuplicatePrevClass))},updateActiveIndex:function(t){const e=this.rtlTranslate?this.translate:-this.translate,{slidesGrid:i,snapGrid:s,params:n,activeIndex:r,realIndex:a,snapIndex:l}=this;let h,c=t;if(void 0===c){for(let t=0;t<i.length;t+=1)void 0!==i[t+1]?e>=i[t]&&e<i[t+1]-(i[t+1]-i[t])/2?c=t:e>=i[t]&&e<i[t+1]&&(c=t+1):e>=i[t]&&(c=t);n.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(s.indexOf(e)>=0)h=s.indexOf(e);else{const t=Math.min(n.slidesPerGroupSkip,c);h=t+Math.floor((c-t)/n.slidesPerGroup)}if(h>=s.length&&(h=s.length-1),c===r)return void(h!==l&&(this.snapIndex=h,this.emit("snapIndexChange")));const d=parseInt(this.slides.eq(c).attr("data-swiper-slide-index")||c,10);o.extend(this,{snapIndex:h,realIndex:d,previousIndex:r,activeIndex:c}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),a!==d&&this.emit("realIndexChange"),(this.initialized||this.params.runCallbacksOnInit)&&this.emit("slideChange")},updateClickedSlide:function(t){const e=this,i=e.params,n=s(t.target).closest("."+i.slideClass)[0];let r=!1;if(n)for(let s=0;s<e.slides.length;s+=1)e.slides[s]===n&&(r=!0);if(!n||!r)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=n,e.clickedIndex=e.virtual&&e.params.virtual.enabled?parseInt(s(n).attr("data-swiper-slide-index"),10):s(n).index(),i.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}},c={getTranslate:function(t=(this.isHorizontal()?"x":"y")){const{params:e,rtlTranslate:i,translate:s,$wrapperEl:n}=this;if(e.virtualTranslate)return i?-s:s;if(e.cssMode)return s;let r=o.getTranslate(n[0],t);return i&&(r=-r),r||0},setTranslate:function(t,e){const{rtlTranslate:i,params:s,$wrapperEl:n,wrapperEl:r,progress:o}=this;let a,l=0,h=0;this.isHorizontal()?l=i?-t:t:h=t,s.roundLengths&&(l=Math.floor(l),h=Math.floor(h)),s.cssMode?r[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-l:-h:s.virtualTranslate||n.transform(`translate3d(${l}px, ${h}px, 0px)`),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?l:h;const c=this.maxTranslate()-this.minTranslate();a=0===c?0:(t-this.minTranslate())/c,a!==o&&this.updateProgress(t),this.emit("setTranslate",this.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t=0,e=this.params.speed,i=!0,s=!0,n){const r=this,{params:o,wrapperEl:a}=r;if(r.animating&&o.preventInteractionOnTransition)return!1;const l=r.minTranslate(),h=r.maxTranslate();let c;if(c=s&&t>l?l:s&&t<h?h:t,r.updateProgress(c),o.cssMode){const t=r.isHorizontal();return 0===e?a[t?"scrollLeft":"scrollTop"]=-c:a.scrollTo?a.scrollTo({[t?"left":"top"]:-c,behavior:"smooth"}):a[t?"scrollLeft":"scrollTop"]=-c,!0}return 0===e?(r.setTransition(0),r.setTranslate(c),i&&(r.emit("beforeTransitionStart",e,n),r.emit("transitionEnd"))):(r.setTransition(e),r.setTranslate(c),i&&(r.emit("beforeTransitionStart",e,n),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(t){r&&!r.destroyed&&t.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,i&&r.emit("transitionEnd"))}),r.$wrapperEl[0].addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd))),!0}},d={slideTo:function(t=0,e=this.params.speed,i=!0,s){const n=this;let r=t;r<0&&(r=0);const{params:o,snapGrid:a,slidesGrid:l,previousIndex:h,activeIndex:c,rtlTranslate:d,wrapperEl:u}=n;if(n.animating&&o.preventInteractionOnTransition)return!1;const f=Math.min(n.params.slidesPerGroupSkip,r);let p=f+Math.floor((r-f)/n.params.slidesPerGroup);p>=a.length&&(p=a.length-1),(c||o.initialSlide||0)===(h||0)&&i&&n.emit("beforeSlideChangeStart");const v=-a[p];if(n.updateProgress(v),o.normalizeSlideIndex)for(let m=0;m<l.length;m+=1)-Math.floor(100*v)>=Math.floor(100*l[m])&&(r=m);if(n.initialized&&r!==c){if(!n.allowSlideNext&&v<n.translate&&v<n.minTranslate())return!1;if(!n.allowSlidePrev&&v>n.translate&&v>n.maxTranslate()&&(c||0)!==r)return!1}let g;if(g=r>c?"next":r<c?"prev":"reset",d&&-v===n.translate||!d&&v===n.translate)return n.updateActiveIndex(r),o.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),"slide"!==o.effect&&n.setTranslate(v),"reset"!==g&&(n.transitionStart(i,g),n.transitionEnd(i,g)),!1;if(o.cssMode){const t=n.isHorizontal();let i=-v;return d&&(i=u.scrollWidth-u.offsetWidth-i),0===e?u[t?"scrollLeft":"scrollTop"]=i:u.scrollTo?u.scrollTo({[t?"left":"top"]:i,behavior:"smooth"}):u[t?"scrollLeft":"scrollTop"]=i,!0}return 0===e?(n.setTransition(0),n.setTranslate(v),n.updateActiveIndex(r),n.updateSlidesClasses(),n.emit("beforeTransitionStart",e,s),n.transitionStart(i,g),n.transitionEnd(i,g)):(n.setTransition(e),n.setTranslate(v),n.updateActiveIndex(r),n.updateSlidesClasses(),n.emit("beforeTransitionStart",e,s),n.transitionStart(i,g),n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(t){n&&!n.destroyed&&t.target===this&&(n.$wrapperEl[0].removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.$wrapperEl[0].removeEventListener("webkitTransitionEnd",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,g))}),n.$wrapperEl[0].addEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.$wrapperEl[0].addEventListener("webkitTransitionEnd",n.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(t=0,e=this.params.speed,i=!0,s){let n=t;return this.params.loop&&(n+=this.loopedSlides),this.slideTo(n,e,i,s)},slideNext:function(t=this.params.speed,e=!0,i){const s=this,{params:n,animating:r}=s,o=s.activeIndex<n.slidesPerGroupSkip?1:n.slidesPerGroup;if(n.loop){if(r)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}return s.slideTo(s.activeIndex+o,t,e,i)},slidePrev:function(t=this.params.speed,e=!0,i){const s=this,{params:n,animating:r,snapGrid:o,slidesGrid:a,rtlTranslate:l}=s;if(n.loop){if(r)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}function h(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const c=h(l?s.translate:-s.translate),d=o.map(t=>h(t));a.map(t=>h(t)),d.indexOf(c);let u,f=o[d.indexOf(c)-1];return void 0===f&&n.cssMode&&o.forEach(t=>{!f&&c>=t&&(f=t)}),void 0!==f&&(u=a.indexOf(f),u<0&&(u=s.activeIndex-1)),s.slideTo(u,t,e,i)},slideReset:function(t=this.params.speed,e=!0,i){return this.slideTo(this.activeIndex,t,e,i)},slideToClosest:function(t=this.params.speed,e=!0,i,s=.5){const n=this;let r=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){const t=n.snapGrid[a];l-t>(n.snapGrid[a+1]-t)*s&&(r+=n.params.slidesPerGroup)}else{const t=n.snapGrid[a-1];l-t<=(n.snapGrid[a]-t)*s&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,t,e,i)},slideToClickedSlide:function(){const t=this,{params:e,$wrapperEl:i}=t,n="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let r,a=t.clickedIndex;if(e.loop){if(t.animating)return;r=parseInt(s(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?a<t.loopedSlides-n/2||a>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),a=i.children(`.${e.slideClass}[data-swiper-slide-index="${r}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),o.nextTick(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-n?(t.loopFix(),a=i.children(`.${e.slideClass}[data-swiper-slide-index="${r}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),o.nextTick(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}},u={loopCreate:function(){const e=this,{params:i,$wrapperEl:n}=e;n.children(`.${i.slideClass}.${i.slideDuplicateClass}`).remove();let r=n.children("."+i.slideClass);if(i.loopFillGroupWithBlank){const e=i.slidesPerGroup-r.length%i.slidesPerGroup;if(e!==i.slidesPerGroup){for(let r=0;r<e;r+=1){const e=s(t.createElement("div")).addClass(`${i.slideClass} ${i.slideBlankClass}`);n.append(e)}r=n.children("."+i.slideClass)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=r.length),e.loopedSlides=Math.ceil(parseFloat(i.loopedSlides||i.slidesPerView,10)),e.loopedSlides+=i.loopAdditionalSlides,e.loopedSlides>r.length&&(e.loopedSlides=r.length);const o=[],a=[];r.each((t,i)=>{const n=s(i);t<e.loopedSlides&&a.push(i),t<r.length&&t>=r.length-e.loopedSlides&&o.push(i),n.attr("data-swiper-slide-index",t)});for(let t=0;t<a.length;t+=1)n.append(s(a[t].cloneNode(!0)).addClass(i.slideDuplicateClass));for(let t=o.length-1;t>=0;t-=1)n.prepend(s(o[t].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){const t=this;t.emit("beforeLoopFix");const{activeIndex:e,slides:i,loopedSlides:s,allowSlidePrev:n,allowSlideNext:r,snapGrid:o,rtlTranslate:a}=t;let l;t.allowSlidePrev=!0,t.allowSlideNext=!0;const h=-o[e]-t.getTranslate();e<s?(l=i.length-3*s+e,l+=s,t.slideTo(l,0,!1,!0)&&0!==h&&t.setTranslate((a?-t.translate:t.translate)-h)):e>=i.length-s&&(l=-i.length+e+s,l+=s,t.slideTo(l,0,!1,!0)&&0!==h&&t.setTranslate((a?-t.translate:t.translate)-h)),t.allowSlidePrev=n,t.allowSlideNext=r,t.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:t,params:e,slides:i}=this;t.children(`.${e.slideClass}.${e.slideDuplicateClass},.${e.slideClass}.${e.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}},f={setGrabCursor:function(t){if(a.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)return;const e=this.el;e.style.cursor="move",e.style.cursor=t?"-webkit-grabbing":"-webkit-grab",e.style.cursor=t?"-moz-grabbin":"-moz-grab",e.style.cursor=t?"grabbing":"grab"},unsetGrabCursor:function(){a.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}},p={appendSlide:function(t){const{$wrapperEl:e,params:i}=this;if(i.loop&&this.loopDestroy(),"object"==typeof t&&"length"in t)for(let s=0;s<t.length;s+=1)t[s]&&e.append(t[s]);else e.append(t);i.loop&&this.loopCreate(),i.observer&&a.observer||this.update()},prependSlide:function(t){const{params:e,$wrapperEl:i,activeIndex:s}=this;e.loop&&this.loopDestroy();let n=s+1;if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&i.prepend(t[e]);n=s+t.length}else i.prepend(t);e.loop&&this.loopCreate(),e.observer&&a.observer||this.update(),this.slideTo(n,0,!1)},addSlide:function(t,e){const i=this,{$wrapperEl:s,params:n,activeIndex:r}=i;let o=r;n.loop&&(o-=i.loopedSlides,i.loopDestroy(),i.slides=s.children("."+n.slideClass));const l=i.slides.length;if(t<=0)return void i.prependSlide(e);if(t>=l)return void i.appendSlide(e);let h=o>t?o+1:o;const c=[];for(let a=l-1;a>=t;a-=1){const t=i.slides.eq(a);t.remove(),c.unshift(t)}if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&s.append(e[t]);h=o>t?o+e.length:o}else s.append(e);for(let a=0;a<c.length;a+=1)s.append(c[a]);n.loop&&i.loopCreate(),n.observer&&a.observer||i.update(),i.slideTo(n.loop?h+i.loopedSlides:h,0,!1)},removeSlide:function(t){const e=this,{params:i,$wrapperEl:s,activeIndex:n}=e;let r=n;i.loop&&(r-=e.loopedSlides,e.loopDestroy(),e.slides=s.children("."+i.slideClass));let o,l=r;if("object"==typeof t&&"length"in t){for(let i=0;i<t.length;i+=1)o=t[i],e.slides[o]&&e.slides.eq(o).remove(),o<l&&(l-=1);l=Math.max(l,0)}else o=t,e.slides[o]&&e.slides.eq(o).remove(),o<l&&(l-=1),l=Math.max(l,0);i.loop&&e.loopCreate(),i.observer&&a.observer||e.update(),e.slideTo(i.loop?l+e.loopedSlides:l,0,!1)},removeAllSlides:function(){const t=this,e=[];for(let i=0;i<t.slides.length;i+=1)e.push(i);t.removeSlide(e)}};const v=function(){const t=e.navigator.platform,i=e.navigator.userAgent,s={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!e.cordova&&!e.phonegap),phonegap:!(!e.cordova&&!e.phonegap),electron:!1},n=e.screen.width,r=e.screen.height,o=i.match(/(Android);?[\s\/]+([\d.]+)?/);let l=i.match(/(iPad).*OS\s([\d_]+)/);const h=i.match(/(iPod)(.*OS\s([\d_]+))?/),c=!l&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d=i.indexOf("MSIE ")>=0||i.indexOf("Trident/")>=0,u=i.indexOf("Edge/")>=0,f=i.indexOf("Gecko/")>=0&&i.indexOf("Firefox/")>=0,p="Win32"===t,v=i.toLowerCase().indexOf("electron")>=0;let g="MacIntel"===t;return!l&&g&&a.touch&&(1024===n&&1366===r||834===n&&1194===r||834===n&&1112===r||768===n&&1024===r)&&(l=i.match(/(Version)\/([\d.]+)/),g=!1),s.ie=d,s.edge=u,s.firefox=f,o&&!p&&(s.os="android",s.osVersion=o[2],s.android=!0,s.androidChrome=i.toLowerCase().indexOf("chrome")>=0),(l||c||h)&&(s.os="ios",s.ios=!0),c&&!h&&(s.osVersion=c[2].replace(/_/g,"."),s.iphone=!0),l&&(s.osVersion=l[2].replace(/_/g,"."),s.ipad=!0),h&&(s.osVersion=h[3]?h[3].replace(/_/g,"."):null,s.ipod=!0),s.ios&&s.osVersion&&i.indexOf("Version/")>=0&&"10"===s.osVersion.split(".")[0]&&(s.osVersion=i.toLowerCase().split("version/")[1].split(" ")[0]),s.webView=!(!(c||l||h)||!i.match(/.*AppleWebKit(?!.*Safari)/i)&&!e.navigator.standalone)||e.matchMedia&&e.matchMedia("(display-mode: standalone)").matches,s.webview=s.webView,s.standalone=s.webView,s.desktop=!(s.ios||s.android)||v,s.desktop&&(s.electron=v,s.macos=g,s.windows=p,s.macos&&(s.os="macos"),s.windows&&(s.os="windows")),s.pixelRatio=e.devicePixelRatio||1,s}();function g(i){const n=this,r=n.touchEventsData,{params:a,touches:l}=n;if(n.animating&&a.preventInteractionOnTransition)return;let h=i;h.originalEvent&&(h=h.originalEvent);const c=s(h.target);if("wrapper"===a.touchEventsTarget&&!c.closest(n.wrapperEl).length)return;if(r.isTouchEvent="touchstart"===h.type,!r.isTouchEvent&&"which"in h&&3===h.which)return;if(!r.isTouchEvent&&"button"in h&&h.button>0)return;if(r.isTouched&&r.isMoved)return;if(a.noSwiping&&c.closest(a.noSwipingSelector?a.noSwipingSelector:"."+a.noSwipingClass)[0])return void(n.allowClick=!0);if(a.swipeHandler&&!c.closest(a.swipeHandler)[0])return;l.currentX="touchstart"===h.type?h.targetTouches[0].pageX:h.pageX,l.currentY="touchstart"===h.type?h.targetTouches[0].pageY:h.pageY;const d=l.currentX,u=l.currentY,f=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(!a.edgeSwipeDetection&&!a.iOSEdgeSwipeDetection||!(d<=f||d>=e.screen.width-f)){if(o.extend(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=d,l.startY=u,r.touchStartTime=o.now(),n.allowClick=!0,n.updateSize(),n.swipeDirection=void 0,a.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==h.type){let e=!0;c.is(r.formElements)&&(e=!1),t.activeElement&&s(t.activeElement).is(r.formElements)&&t.activeElement!==c[0]&&t.activeElement.blur();const i=e&&n.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||i)&&h.preventDefault()}n.emit("touchStart",h)}}function m(e){const i=this,n=i.touchEventsData,{params:r,touches:a,rtlTranslate:l}=i;let h=e;if(h.originalEvent&&(h=h.originalEvent),!n.isTouched)return void(n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",h));if(n.isTouchEvent&&"mousemove"===h.type)return;const c="touchmove"===h.type&&h.targetTouches&&(h.targetTouches[0]||h.changedTouches[0]),d="touchmove"===h.type?c.pageX:h.pageX,u="touchmove"===h.type?c.pageY:h.pageY;if(h.preventedByNestedSwiper)return a.startX=d,void(a.startY=u);if(!i.allowTouchMove)return i.allowClick=!1,void(n.isTouched&&(o.extend(a,{startX:d,startY:u,currentX:d,currentY:u}),n.touchStartTime=o.now()));if(n.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(i.isVertical()){if(u<a.startY&&i.translate<=i.maxTranslate()||u>a.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(d<a.startX&&i.translate<=i.maxTranslate()||d>a.startX&&i.translate>=i.minTranslate())return;if(n.isTouchEvent&&t.activeElement&&h.target===t.activeElement&&s(h.target).is(n.formElements))return n.isMoved=!0,void(i.allowClick=!1);if(n.allowTouchCallbacks&&i.emit("touchMove",h),h.targetTouches&&h.targetTouches.length>1)return;a.currentX=d,a.currentY=u;const f=a.currentX-a.startX,p=a.currentY-a.startY;if(i.params.threshold&&Math.sqrt(f**2+p**2)<i.params.threshold)return;if(void 0===n.isScrolling){let t;i.isHorizontal()&&a.currentY===a.startY||i.isVertical()&&a.currentX===a.startX?n.isScrolling=!1:f*f+p*p>=25&&(t=180*Math.atan2(Math.abs(p),Math.abs(f))/Math.PI,n.isScrolling=i.isHorizontal()?t>r.touchAngle:90-t>r.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",h),void 0===n.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(n.startMoving=!0)),n.isScrolling)return void(n.isTouched=!1);if(!n.startMoving)return;i.allowClick=!1,r.cssMode||h.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&h.stopPropagation(),n.isMoved||(r.loop&&i.loopFix(),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!r.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",h)),i.emit("sliderMove",h),n.isMoved=!0;let v=i.isHorizontal()?f:p;a.diff=v,v*=r.touchRatio,l&&(v=-v),i.swipeDirection=v>0?"prev":"next",n.currentTranslate=v+n.startTranslate;let g=!0,m=r.resistanceRatio;if(r.touchReleaseOnEdges&&(m=0),v>0&&n.currentTranslate>i.minTranslate()?(g=!1,r.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+v)**m)):v<0&&n.currentTranslate<i.maxTranslate()&&(g=!1,r.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-v)**m)),g&&(h.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),r.threshold>0){if(!(Math.abs(v)>r.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,n.currentTranslate=n.startTranslate,void(a.diff=i.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}r.followFinger&&!r.cssMode&&((r.freeMode||r.watchSlidesProgress||r.watchSlidesVisibility)&&(i.updateActiveIndex(),i.updateSlidesClasses()),r.freeMode&&(0===n.velocities.length&&n.velocities.push({position:a[i.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:a[i.isHorizontal()?"currentX":"currentY"],time:o.now()})),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function w(t){const e=this,i=e.touchEventsData,{params:s,touches:n,rtlTranslate:r,$wrapperEl:a,slidesGrid:l,snapGrid:h}=e;let c=t;if(c.originalEvent&&(c=c.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",c),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const d=o.now(),u=d-i.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(c),e.emit("tap click",c),u<300&&d-i.lastClickTime<300&&e.emit("doubleTap doubleClick",c)),i.lastClickTime=o.now(),o.nextTick(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||0===n.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let f;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,f=s.followFinger?r?e.translate:-e.translate:-i.currentTranslate,s.cssMode)return;if(s.freeMode){if(f<-e.minTranslate())return void e.slideTo(e.activeIndex);if(f>-e.maxTranslate())return void e.slideTo(e.slides.length<h.length?h.length-1:e.slides.length-1);if(s.freeModeMomentum){if(i.velocities.length>1){const t=i.velocities.pop(),n=i.velocities.pop(),r=t.time-n.time;e.velocity=(t.position-n.position)/r,e.velocity/=2,Math.abs(e.velocity)<s.freeModeMinimumVelocity&&(e.velocity=0),(r>150||o.now()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=s.freeModeMomentumVelocityRatio,i.velocities.length=0;let t=1e3*s.freeModeMomentumRatio,n=e.translate+e.velocity*t;r&&(n=-n);let l,c=!1;const d=20*Math.abs(e.velocity)*s.freeModeMomentumBounceRatio;let u;if(n<e.maxTranslate())s.freeModeMomentumBounce?(n+e.maxTranslate()<-d&&(n=e.maxTranslate()-d),l=e.maxTranslate(),c=!0,i.allowMomentumBounce=!0):n=e.maxTranslate(),s.loop&&s.centeredSlides&&(u=!0);else if(n>e.minTranslate())s.freeModeMomentumBounce?(n-e.minTranslate()>d&&(n=e.minTranslate()+d),l=e.minTranslate(),c=!0,i.allowMomentumBounce=!0):n=e.minTranslate(),s.loop&&s.centeredSlides&&(u=!0);else if(s.freeModeSticky){let t;for(let e=0;e<h.length;e+=1)if(h[e]>-n){t=e;break}n=Math.abs(h[t]-n)<Math.abs(h[t-1]-n)||"next"===e.swipeDirection?h[t]:h[t-1],n=-n}if(u&&e.once("transitionEnd",()=>{e.loopFix()}),0!==e.velocity){if(t=r?Math.abs((-n-e.translate)/e.velocity):Math.abs((n-e.translate)/e.velocity),s.freeModeSticky){const i=Math.abs((r?-n:n)-e.translate),o=e.slidesSizesGrid[e.activeIndex];t=i<o?s.speed:i<2*o?1.5*s.speed:2.5*s.speed}}else if(s.freeModeSticky)return void e.slideToClosest();s.freeModeMomentumBounce&&c?(e.updateProgress(l),e.setTransition(t),e.setTranslate(n),e.transitionStart(!0,e.swipeDirection),e.animating=!0,a.transitionEnd(()=>{e&&!e.destroyed&&i.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(s.speed),e.setTranslate(l),a.transitionEnd(()=>{e&&!e.destroyed&&e.transitionEnd()}))})):e.velocity?(e.updateProgress(n),e.setTransition(t),e.setTranslate(n),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,a.transitionEnd(()=>{e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(n),e.updateActiveIndex(),e.updateSlidesClasses()}else if(s.freeModeSticky)return void e.slideToClosest();return void((!s.freeModeMomentum||u>=s.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses()))}let p=0,v=e.slidesSizesGrid[0];for(let o=0;o<l.length;o+=o<s.slidesPerGroupSkip?1:s.slidesPerGroup){const t=o<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==l[o+t]?f>=l[o]&&f<l[o+t]&&(p=o,v=l[o+t]-l[o]):f>=l[o]&&(p=o,v=l[l.length-1]-l[l.length-2])}const g=(f-l[p])/v,m=p<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(u>s.longSwipesMs){if(!s.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&e.slideTo(g>=s.longSwipesRatio?p+m:p),"prev"===e.swipeDirection&&e.slideTo(g>1-s.longSwipesRatio?p+m:p)}else{if(!s.shortSwipes)return void e.slideTo(e.activeIndex);!e.navigation||c.target!==e.navigation.nextEl&&c.target!==e.navigation.prevEl?("next"===e.swipeDirection&&e.slideTo(p+m),"prev"===e.swipeDirection&&e.slideTo(p)):e.slideTo(c.target===e.navigation.nextEl?p+m:p)}}function b(){const{params:t,el:e}=this;if(e&&0===e.offsetWidth)return;t.breakpoints&&this.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:s,snapGrid:n}=this;this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),this.updateSlidesClasses(),this.slideTo(("auto"===t.slidesPerView||t.slidesPerView>1)&&this.isEnd&&!this.params.centeredSlides?this.slides.length-1:this.activeIndex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=s,this.allowSlideNext=i,this.params.watchOverflow&&n!==this.snapGrid&&this.checkOverflow()}function x(t){this.allowClick||(this.params.preventClicks&&t.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}function M(){const{wrapperEl:t,rtlTranslate:e}=this;let i;this.previousTranslate=this.translate,this.translate=this.isHorizontal()?e?t.scrollWidth-t.offsetWidth-t.scrollLeft:-t.scrollLeft:-t.scrollTop,-0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();const s=this.maxTranslate()-this.minTranslate();i=0===s?0:(this.translate-this.minTranslate())/s,i!==this.progress&&this.updateProgress(e?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}let S=!1;function $(){}var y={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,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,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slid