bloom-player 2.17.0-alpha.2 → 2.17.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,7 +15,7 @@ object-assign
|
|
|
15
15
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
16
16
|
* @license MIT
|
|
17
17
|
*/var _0=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},V0=my,G0=_0,no=Object.prototype.toString;function vy(e){return no.call(e)==="[object Array]"}function U0(e){return no.call(e)==="[object ArrayBuffer]"}function Y0(e){return typeof FormData<"u"&&e instanceof FormData}function X0(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Z0(e){return typeof e=="string"}function J0(e){return typeof e=="number"}function Q0(e){return typeof e>"u"}function yy(e){return e!==null&&typeof e=="object"}function tx(e){return no.call(e)==="[object Date]"}function ex(e){return no.call(e)==="[object File]"}function nx(e){return no.call(e)==="[object Blob]"}function by(e){return no.call(e)==="[object Function]"}function ax(e){return yy(e)&&by(e.pipe)}function ix(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function rx(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function ox(){return typeof navigator<"u"&&navigator.product==="ReactNative"?!1:typeof window<"u"&&typeof document<"u"}function ph(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),vy(e))for(var n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function wy(){var e={};function t(i,r){typeof e[r]=="object"&&typeof i=="object"?e[r]=wy(e[r],i):e[r]=i}for(var n=0,a=arguments.length;n<a;n++)ph(arguments[n],t);return e}function sx(e,t,n){return ph(t,function(i,r){n&&typeof i=="function"?e[r]=V0(i,n):e[r]=i}),e}var oa={isArray:vy,isArrayBuffer:U0,isBuffer:G0,isFormData:Y0,isArrayBufferView:X0,isString:Z0,isNumber:J0,isObject:yy,isUndefined:Q0,isDate:tx,isFile:ex,isBlob:nx,isFunction:by,isStream:ax,isURLSearchParams:ix,isStandardBrowserEnv:ox,forEach:ph,merge:wy,extend:sx,trim:rx},lx=oa,ux=function(t,n){lx.forEach(t,function(i,r){r!==n&&r.toUpperCase()===n.toUpperCase()&&(t[n]=i,delete t[r])})},Ec,Eg;function cx(){return Eg||(Eg=1,Ec=function(t,n,a,i,r){return t.config=n,a&&(t.code=a),t.request=i,t.response=r,t}),Ec}var Pc,Pg;function ky(){if(Pg)return Pc;Pg=1;var e=cx();return Pc=function(n,a,i,r,s){var u=new Error(n);return e(u,a,i,r,s)},Pc}var Mc,Mg;function dx(){if(Mg)return Mc;Mg=1;var e=ky();return Mc=function(n,a,i){var r=i.config.validateStatus;!i.status||!r||r(i.status)?n(i):a(e("Request failed with status code "+i.status,i.config,null,i.request,i))},Mc}var Ac,Ag;function fx(){if(Ag)return Ac;Ag=1;var e=oa;function t(n){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return Ac=function(a,i,r){if(!i)return a;var s;if(r)s=r(i);else if(e.isURLSearchParams(i))s=i.toString();else{var u=[];e.forEach(i,function(h,m){h===null||typeof h>"u"||(e.isArray(h)?m=m+"[]":h=[h],e.forEach(h,function(w){e.isDate(w)?w=w.toISOString():e.isObject(w)&&(w=JSON.stringify(w)),u.push(t(m)+"="+t(w))}))}),s=u.join("&")}return s&&(a+=(a.indexOf("?")===-1?"?":"&")+s),a},Ac}var Nc,Ng;function hx(){if(Ng)return Nc;Ng=1;var e=oa,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Nc=function(a){var i={},r,s,u;return a&&e.forEach(a.split(`
|
|
18
|
-
`),function(h){if(u=h.indexOf(":"),r=e.trim(h.substr(0,u)).toLowerCase(),s=e.trim(h.substr(u+1)),r){if(i[r]&&t.indexOf(r)>=0)return;r==="set-cookie"?i[r]=(i[r]?i[r]:[]).concat([s]):i[r]=i[r]?i[r]+", "+s:s}}),i},Nc}var Lc,Lg;function px(){if(Lg)return Lc;Lg=1;var e=oa;return Lc=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a"),i;function r(s){var u=s;return n&&(a.setAttribute("href",u),u=a.href),a.setAttribute("href",u),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return i=r(window.location.href),function(u){var c=e.isString(u)?r(u):u;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}(),Lc}var zc,zg;function gx(){if(zg)return zc;zg=1;var e=oa;return zc=e.isStandardBrowserEnv()?function(){return{write:function(a,i,r,s,u,c){var h=[];h.push(a+"="+encodeURIComponent(i)),e.isNumber(r)&&h.push("expires="+new Date(r).toGMTString()),e.isString(s)&&h.push("path="+s),e.isString(u)&&h.push("domain="+u),c===!0&&h.push("secure"),document.cookie=h.join("; ")},read:function(a){var i=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(a){this.write(a,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),zc}var Bc,Bg;function Dg(){if(Bg)return Bc;Bg=1;var e=oa,t=dx(),n=fx(),a=hx(),i=px(),r=ky();return Bc=function(u){return new Promise(function(h,m){var x=u.data,w=u.headers;e.isFormData(x)&&delete w["Content-Type"];var P=new XMLHttpRequest;if(u.auth){var E=u.auth.username||"",z=u.auth.password||"";w.Authorization="Basic "+btoa(E+":"+z)}if(P.open(u.method.toUpperCase(),n(u.url,u.params,u.paramsSerializer),!0),P.timeout=u.timeout,P.onreadystatechange=function(){if(!(!P||P.readyState!==4)&&!(P.status===0&&!(P.responseURL&&P.responseURL.indexOf("file:")===0))){var N="getAllResponseHeaders"in P?a(P.getAllResponseHeaders()):null,L=!u.responseType||u.responseType==="text"?P.responseText:P.response,j={data:L,status:P.status,statusText:P.statusText,headers:N,config:u,request:P};t(h,m,j),P=null}},P.onerror=function(){m(r("Network Error",u,null,P)),P=null},P.ontimeout=function(){m(r("timeout of "+u.timeout+"ms exceeded",u,"ECONNABORTED",P)),P=null},e.isStandardBrowserEnv()){var A=gx(),k=(u.withCredentials||i(u.url))&&u.xsrfCookieName?A.read(u.xsrfCookieName):void 0;k&&(w[u.xsrfHeaderName]=k)}if("setRequestHeader"in P&&e.forEach(w,function(N,L){typeof x>"u"&&L.toLowerCase()==="content-type"?delete w[L]:P.setRequestHeader(L,N)}),u.withCredentials&&(P.withCredentials=!0),u.responseType)try{P.responseType=u.responseType}catch(S){if(u.responseType!=="json")throw S}typeof u.onDownloadProgress=="function"&&P.addEventListener("progress",u.onDownloadProgress),typeof u.onUploadProgress=="function"&&P.upload&&P.upload.addEventListener("progress",u.onUploadProgress),u.cancelToken&&u.cancelToken.promise.then(function(N){P&&(P.abort(),m(N),P=null)}),x===void 0&&(x=null),P.send(x)})},Bc}var Rn=oa,mx=ux,vx={"Content-Type":"application/x-www-form-urlencoded"};function Ig(e,t){!Rn.isUndefined(e)&&Rn.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function yx(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u")&&(e=Dg()),e}var ku={adapter:yx(),transformRequest:[function(t,n){return mx(n,"Content-Type"),Rn.isFormData(t)||Rn.isArrayBuffer(t)||Rn.isBuffer(t)||Rn.isStream(t)||Rn.isFile(t)||Rn.isBlob(t)?t:Rn.isArrayBufferView(t)?t.buffer:Rn.isURLSearchParams(t)?(Ig(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Rn.isObject(t)?(Ig(n,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if(typeof t=="string")try{t=JSON.parse(t)}catch{}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};ku.headers={common:{Accept:"application/json, text/plain, */*"}};Rn.forEach(["delete","get","head"],function(t){ku.headers[t]={}});Rn.forEach(["post","put","patch"],function(t){ku.headers[t]=Rn.merge(vx)});var gh=ku,bx=oa;function xu(){this.handlers=[]}xu.prototype.use=function(t,n){return this.handlers.push({fulfilled:t,rejected:n}),this.handlers.length-1};xu.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};xu.prototype.forEach=function(t){bx.forEach(this.handlers,function(a){a!==null&&t(a)})};var wx=xu,kx=oa,xx=function(t,n,a){return kx.forEach(a,function(r){t=r(t,n)}),t},Dc,jg;function xy(){return jg||(jg=1,Dc=function(t){return!!(t&&t.__CANCEL__)}),Dc}var Sx=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},Cx=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},Rg=oa,Ic=xx,Tx=xy(),Ex=gh,Px=Sx,Mx=Cx;function jc(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Ax=function(t){jc(t),t.baseURL&&!Px(t.url)&&(t.url=Mx(t.baseURL,t.url)),t.headers=t.headers||{},t.data=Ic(t.data,t.headers,t.transformRequest),t.headers=Rg.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),Rg.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||Ex.adapter;return n(t).then(function(i){return jc(t),i.data=Ic(i.data,i.headers,t.transformResponse),i},function(i){return Tx(i)||(jc(t),i&&i.response&&(i.response.data=Ic(i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Nx=gh,Gr=oa,Og=wx,Lx=Ax;function Su(e){this.defaults=e,this.interceptors={request:new Og,response:new Og}}Su.prototype.request=function(t){typeof t=="string"&&(t=Gr.merge({url:arguments[0]},arguments[1])),t=Gr.merge(Nx,{method:"get"},this.defaults,t),t.method=t.method.toLowerCase();var n=[Lx,void 0],a=Promise.resolve(t);for(this.interceptors.request.forEach(function(r){n.unshift(r.fulfilled,r.rejected)}),this.interceptors.response.forEach(function(r){n.push(r.fulfilled,r.rejected)});n.length;)a=a.then(n.shift(),n.shift());return a};Gr.forEach(["delete","get","head","options"],function(t){Su.prototype[t]=function(n,a){return this.request(Gr.merge(a||{},{method:t,url:n}))}});Gr.forEach(["post","put","patch"],function(t){Su.prototype[t]=function(n,a,i){return this.request(Gr.merge(i||{},{method:t,url:n,data:a}))}});var zx=Su,Rc,Kg;function Sy(){if(Kg)return Rc;Kg=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Rc=e,Rc}var Oc,$g;function Bx(){if($g)return Oc;$g=1;var e=Sy();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(s){a=s});var i=this;n(function(s){i.reason||(i.reason=new e(s),a(i.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.source=function(){var a,i=new t(function(s){a=s});return{token:i,cancel:a}},Oc=t,Oc}var Kc,qg;function Dx(){return qg||(qg=1,Kc=function(t){return function(a){return t.apply(null,a)}}),Kc}var Ud=oa,Ix=my,ml=zx,Cy=gh;function Ty(e){var t=new ml(e),n=Ix(ml.prototype.request,t);return Ud.extend(n,ml.prototype,t),Ud.extend(n,t),n}var ai=Ty(Cy);ai.Axios=ml;ai.create=function(t){return Ty(Ud.merge(Cy,t))};ai.Cancel=Sy();ai.CancelToken=Bx();ai.isCancel=xy();ai.all=function(t){return Promise.all(t)};ai.spread=Dx();hh.exports=ai;hh.exports.default=ai;var jx=hh.exports,Rx=jx;const Ja=Bs(Rx);var Ey={},mh={};function Hg(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function vh(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){typeof e[n]>"u"?e[n]=t[n]:Hg(t[n])&&Hg(e[n])&&Object.keys(t[n]).length>0&&vh(e[n],t[n])})}var ma=typeof document<"u"?document:{},Py={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[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};vh(ma,Py);var va=typeof window<"u"?window:{},Ox={document:Py,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}};vh(va,Ox);class fe{constructor(t){const n=this;for(let a=0;a<t.length;a+=1)n[a]=t[a];return n.length=t.length,this}}function wt(e,t){const n=[];let a=0;if(e&&!t&&e instanceof fe)return e;if(e){if(typeof e=="string"){let i,r;const s=e.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){let u="div";for(s.indexOf("<li")===0&&(u="ul"),s.indexOf("<tr")===0&&(u="tbody"),(s.indexOf("<td")===0||s.indexOf("<th")===0)&&(u="tr"),s.indexOf("<tbody")===0&&(u="table"),s.indexOf("<option")===0&&(u="select"),r=ma.createElement(u),r.innerHTML=s,a=0;a<r.childNodes.length;a+=1)n.push(r.childNodes[a])}else for(!t&&e[0]==="#"&&!e.match(/[ .<>:~]/)?i=[ma.getElementById(e.trim().split("#")[1])]:i=(t||ma).querySelectorAll(e.trim()),a=0;a<i.length;a+=1)i[a]&&n.push(i[a])}else if(e.nodeType||e===va||e===ma)n.push(e);else if(e.length>0&&e[0].nodeType)for(a=0;a<e.length;a+=1)n.push(e[a])}return new fe(n)}wt.fn=fe.prototype;wt.Class=fe;wt.Dom7=fe;function yh(e){const t=[];for(let n=0;n<e.length;n+=1)t.indexOf(e[n])===-1&&t.push(e[n]);return t}function Kx(e){if(typeof e>"u")return this;const t=e.split(" ");for(let n=0;n<t.length;n+=1)for(let a=0;a<this.length;a+=1)typeof this[a]<"u"&&typeof this[a].classList<"u"&&this[a].classList.add(t[n]);return this}function $x(e){const t=e.split(" ");for(let n=0;n<t.length;n+=1)for(let a=0;a<this.length;a+=1)typeof this[a]<"u"&&typeof this[a].classList<"u"&&this[a].classList.remove(t[n]);return this}function qx(e){return this[0]?this[0].classList.contains(e):!1}function Hx(e){const t=e.split(" ");for(let n=0;n<t.length;n+=1)for(let a=0;a<this.length;a+=1)typeof this[a]<"u"&&typeof this[a].classList<"u"&&this[a].classList.toggle(t[n]);return this}function Fx(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(let n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(e,t);else for(const a in e)this[n][a]=e[a],this[n].setAttribute(a,e[a]);return this}function Wx(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function _x(e,t){let n;if(typeof t>"u"){if(n=this[0],n){if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];const a=n.getAttribute(`data-${e}`);return a||void 0}return}for(let a=0;a<this.length;a+=1)n=this[a],n.dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}function Vx(e){for(let t=0;t<this.length;t+=1){const n=this[t].style;n.webkitTransform=e,n.transform=e}return this}function Gx(e){typeof e!="string"&&(e=`${e}ms`);for(let t=0;t<this.length;t+=1){const n=this[t].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this}function Ux(...e){let[t,n,a,i]=e;typeof e[1]=="function"&&([t,a,i]=e,n=void 0),i||(i=!1);function r(h){const m=h.target;if(!m)return;const x=h.target.dom7EventData||[];if(x.indexOf(h)<0&&x.unshift(h),wt(m).is(n))a.apply(m,x);else{const w=wt(m).parents();for(let P=0;P<w.length;P+=1)wt(w[P]).is(n)&&a.apply(w[P],x)}}function s(h){const m=h&&h.target?h.target.dom7EventData||[]:[];m.indexOf(h)<0&&m.unshift(h),a.apply(this,m)}const u=t.split(" ");let c;for(let h=0;h<this.length;h+=1){const m=this[h];if(n)for(c=0;c<u.length;c+=1){const x=u[c];m.dom7LiveListeners||(m.dom7LiveListeners={}),m.dom7LiveListeners[x]||(m.dom7LiveListeners[x]=[]),m.dom7LiveListeners[x].push({listener:a,proxyListener:r}),m.addEventListener(x,r,i)}else for(c=0;c<u.length;c+=1){const x=u[c];m.dom7Listeners||(m.dom7Listeners={}),m.dom7Listeners[x]||(m.dom7Listeners[x]=[]),m.dom7Listeners[x].push({listener:a,proxyListener:s}),m.addEventListener(x,s,i)}}return this}function Yx(...e){let[t,n,a,i]=e;typeof e[1]=="function"&&([t,a,i]=e,n=void 0),i||(i=!1);const r=t.split(" ");for(let s=0;s<r.length;s+=1){const u=r[s];for(let c=0;c<this.length;c+=1){const h=this[c];let m;if(!n&&h.dom7Listeners?m=h.dom7Listeners[u]:n&&h.dom7LiveListeners&&(m=h.dom7LiveListeners[u]),m&&m.length)for(let x=m.length-1;x>=0;x-=1){const w=m[x];a&&w.listener===a||a&&w.listener&&w.listener.dom7proxy&&w.listener.dom7proxy===a?(h.removeEventListener(u,w.proxyListener,i),m.splice(x,1)):a||(h.removeEventListener(u,w.proxyListener,i),m.splice(x,1))}}}return this}function Xx(...e){const t=e[0].split(" "),n=e[1];for(let a=0;a<t.length;a+=1){const i=t[a];for(let r=0;r<this.length;r+=1){const s=this[r];let u;try{u=new va.CustomEvent(i,{detail:n,bubbles:!0,cancelable:!0})}catch{u=ma.createEvent("Event"),u.initEvent(i,!0,!0),u.detail=n}s.dom7EventData=e.filter((c,h)=>h>0),s.dispatchEvent(u),s.dom7EventData=[],delete s.dom7EventData}}return this}function Zx(e){const t=["webkitTransitionEnd","transitionend"],n=this;let a;function i(r){if(r.target===this)for(e.call(this,r),a=0;a<t.length;a+=1)n.off(t[a],i)}if(e)for(a=0;a<t.length;a+=1)n.on(t[a],i);return this}function Jx(e){if(this.length>0){if(e){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function Qx(e){if(this.length>0){if(e){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function tS(){if(this.length>0){const e=this[0],t=e.getBoundingClientRect(),n=ma.body,a=e.clientTop||n.clientTop||0,i=e.clientLeft||n.clientLeft||0,r=e===va?va.scrollY:e.scrollTop,s=e===va?va.scrollX:e.scrollLeft;return{top:t.top+r-a,left:t.left+s-i}}return null}function eS(){return this[0]?va.getComputedStyle(this[0],null):{}}function nS(e,t){let n;if(arguments.length===1)if(typeof e=="string"){if(this[0])return va.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(n=0;n<this.length;n+=1)for(let a in e)this[n].style[a]=e[a];return this}if(arguments.length===2&&typeof e=="string"){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function aS(e){if(!e)return this;for(let t=0;t<this.length;t+=1)if(e.call(this[t],t,this[t])===!1)return this;return this}function iS(e){if(typeof e>"u")return this[0]?this[0].innerHTML:void 0;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function rS(e){if(typeof e>"u")return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this}function oS(e){const t=this[0];let n,a;if(!t||typeof e>"u")return!1;if(typeof e=="string"){if(t.matches)return t.matches(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);for(n=wt(e),a=0;a<n.length;a+=1)if(n[a]===t)return!0;return!1}else{if(e===ma)return t===ma;if(e===va)return t===va}if(e.nodeType||e instanceof fe){for(n=e.nodeType?[e]:e,a=0;a<n.length;a+=1)if(n[a]===t)return!0;return!1}return!1}function sS(){let e=this[0],t;if(e){for(t=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(t+=1);return t}}function lS(e){if(typeof e>"u")return this;const t=this.length;let n;return e>t-1?new fe([]):e<0?(n=t+e,n<0?new fe([]):new fe([this[n]])):new fe([this[e]])}function uS(...e){let t;for(let n=0;n<e.length;n+=1){t=e[n];for(let a=0;a<this.length;a+=1)if(typeof t=="string"){const i=ma.createElement("div");for(i.innerHTML=t;i.firstChild;)this[a].appendChild(i.firstChild)}else if(t instanceof fe)for(let i=0;i<t.length;i+=1)this[a].appendChild(t[i]);else this[a].appendChild(t)}return this}function cS(e){let t,n;for(t=0;t<this.length;t+=1)if(typeof e=="string"){const a=ma.createElement("div");for(a.innerHTML=e,n=a.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(a.childNodes[n],this[t].childNodes[0])}else if(e instanceof fe)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function dS(e){return this.length>0?e?this[0].nextElementSibling&&wt(this[0].nextElementSibling).is(e)?new fe([this[0].nextElementSibling]):new fe([]):this[0].nextElementSibling?new fe([this[0].nextElementSibling]):new fe([]):new fe([])}function fS(e){const t=[];let n=this[0];if(!n)return new fe([]);for(;n.nextElementSibling;){const a=n.nextElementSibling;e?wt(a).is(e)&&t.push(a):t.push(a),n=a}return new fe(t)}function hS(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&wt(t.previousElementSibling).is(e)?new fe([t.previousElementSibling]):new fe([]):t.previousElementSibling?new fe([t.previousElementSibling]):new fe([])}return new fe([])}function pS(e){const t=[];let n=this[0];if(!n)return new fe([]);for(;n.previousElementSibling;){const a=n.previousElementSibling;e?wt(a).is(e)&&t.push(a):t.push(a),n=a}return new fe(t)}function gS(e){const t=[];for(let n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?wt(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return wt(yh(t))}function mS(e){const t=[];for(let n=0;n<this.length;n+=1){let a=this[n].parentNode;for(;a;)e?wt(a).is(e)&&t.push(a):t.push(a),a=a.parentNode}return wt(yh(t))}function vS(e){let t=this;return typeof e>"u"?new fe([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function yS(e){const t=[];for(let n=0;n<this.length;n+=1){const a=this[n].querySelectorAll(e);for(let i=0;i<a.length;i+=1)t.push(a[i])}return new fe(t)}function bS(e){const t=[];for(let n=0;n<this.length;n+=1){const a=this[n].childNodes;for(let i=0;i<a.length;i+=1)e?a[i].nodeType===1&&wt(a[i]).is(e)&&t.push(a[i]):a[i].nodeType===1&&t.push(a[i])}return new fe(yh(t))}function wS(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function kS(...e){const t=this;let n,a;for(n=0;n<e.length;n+=1){const i=wt(e[n]);for(a=0;a<i.length;a+=1)t[t.length]=i[a],t.length+=1}return t}var te=typeof document>"u"?{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,Mt=typeof window>"u"?{document:te,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;const Fg={addClass:Kx,removeClass:$x,hasClass:qx,toggleClass:Hx,attr:Fx,removeAttr:Wx,data:_x,transform:Vx,transition:Gx,on:Ux,off:Yx,trigger:Xx,transitionEnd:Zx,outerWidth:Jx,outerHeight:Qx,offset:tS,css:nS,each:aS,html:iS,text:rS,is:oS,index:sS,eq:lS,append:uS,prepend:cS,next:dS,nextAll:fS,prev:hS,prevAll:pS,parent:gS,parents:mS,closest:vS,find:yS,children:bS,remove:wS,add:kS,styles:eS};Object.keys(Fg).forEach(e=>{wt.fn[e]=wt.fn[e]||Fg[e]});const yt={deleteProps(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})},nextTick(e,t=0){return setTimeout(e,t)},now(){return Date.now()},getTranslate(e,t="x"){let n,a,i;const r=Mt.getComputedStyle(e,null);return Mt.WebKitCSSMatrix?(a=r.transform||r.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(s=>s.replace(",",".")).join(", ")),i=new Mt.WebKitCSSMatrix(a==="none"?"":a)):(i=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=i.toString().split(",")),t==="x"&&(Mt.WebKitCSSMatrix?a=i.m41:n.length===16?a=parseFloat(n[12]):a=parseFloat(n[4])),t==="y"&&(Mt.WebKitCSSMatrix?a=i.m42:n.length===16?a=parseFloat(n[13]):a=parseFloat(n[5])),a||0},parseUrlQuery(e){const t={};let n=e||Mt.location.href,a,i,r,s;if(typeof n=="string"&&n.length)for(n=n.indexOf("?")>-1?n.replace(/\S*\?/,""):"",i=n.split("&").filter(u=>u!==""),s=i.length,a=0;a<s;a+=1)r=i[a].replace(/#\S+/g,"").split("="),t[decodeURIComponent(r[0])]=typeof r[1]>"u"?void 0:decodeURIComponent(r[1])||"";return t},isObject(e){return typeof e=="object"&&e!==null&&e.constructor&&e.constructor===Object},extend(...e){const t=Object(e[0]);for(let n=1;n<e.length;n+=1){const a=e[n];if(a!=null){const i=Object.keys(Object(a));for(let r=0,s=i.length;r<s;r+=1){const u=i[r],c=Object.getOwnPropertyDescriptor(a,u);c!==void 0&&c.enumerable&&(yt.isObject(t[u])&&yt.isObject(a[u])?yt.extend(t[u],a[u]):!yt.isObject(t[u])&&yt.isObject(a[u])?(t[u]={},yt.extend(t[u],a[u])):t[u]=a[u])}}}return t}},qt=function(){const t=te.createElement("div");return{touch:Mt.Modernizr&&Mt.Modernizr.touch===!0||function(){return!!(Mt.navigator.maxTouchPoints>0||"ontouchstart"in Mt||Mt.DocumentTouch&&te instanceof Mt.DocumentTouch)}(),pointerEvents:!!(Mt.navigator.pointerEnabled||Mt.PointerEvent||"maxTouchPoints"in Mt.navigator&&Mt.navigator.maxTouchPoints>0),prefixedPointerEvents:!!Mt.navigator.msPointerEnabled,transition:function(){const a=t.style;return"transition"in a||"webkitTransition"in a||"MozTransition"in a}(),transforms3d:Mt.Modernizr&&Mt.Modernizr.csstransforms3d===!0||function(){const a=t.style;return"webkitPerspective"in a||"MozPerspective"in a||"OPerspective"in a||"MsPerspective"in a||"perspective"in a}(),flexbox:function(){const a=t.style,i="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" ");for(let r=0;r<i.length;r+=1)if(i[r]in a)return!0;return!1}(),observer:function(){return"MutationObserver"in Mt||"WebkitMutationObserver"in Mt}(),passiveListener:function(){let a=!1;try{const i=Object.defineProperty({},"passive",{get(){a=!0}});Mt.addEventListener("testPassiveListener",null,i)}catch{}return a}(),gestures:function(){return"ongesturestart"in Mt}()}}(),Ia=function(){function t(){const n=Mt.navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}return{isIE:!!Mt.navigator.userAgent.match(/Trident/g)||!!Mt.navigator.userAgent.match(/MSIE/g),isEdge:!!Mt.navigator.userAgent.match(/Edge/g),isSafari:t(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(Mt.navigator.userAgent)}}();class Wg{constructor(t={}){const n=this;n.params=t,n.eventsListeners={},n.params&&n.params.on&&Object.keys(n.params.on).forEach(a=>{n.on(a,n.params.on[a])})}on(t,n,a){const i=this;if(typeof n!="function")return i;const r=a?"unshift":"push";return t.split(" ").forEach(s=>{i.eventsListeners[s]||(i.eventsListeners[s]=[]),i.eventsListeners[s][r](n)}),i}once(t,n,a){const i=this;if(typeof n!="function")return i;function r(...s){n.apply(i,s),i.off(t,r),r.f7proxy&&delete r.f7proxy}return r.f7proxy=n,i.on(t,r,a)}off(t,n){const a=this;return a.eventsListeners&&t.split(" ").forEach(i=>{typeof n>"u"?a.eventsListeners[i]=[]:a.eventsListeners[i]&&a.eventsListeners[i].length&&a.eventsListeners[i].forEach((r,s)=>{(r===n||r.f7proxy&&r.f7proxy===n)&&a.eventsListeners[i].splice(s,1)})}),a}emit(...t){const n=this;if(!n.eventsListeners)return n;let a,i,r;return typeof t[0]=="string"||Array.isArray(t[0])?(a=t[0],i=t.slice(1,t.length),r=n):(a=t[0].events,i=t[0].data,r=t[0].context||n),(Array.isArray(a)?a:a.split(" ")).forEach(u=>{if(n.eventsListeners&&n.eventsListeners[u]){const c=[];n.eventsListeners[u].forEach(h=>{c.push(h)}),c.forEach(h=>{h.apply(r,i)})}}),n}useModulesParams(t){const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const i=n.modules[a];i.params&&yt.extend(t,i.params)})}useModules(t={}){const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const i=n.modules[a],r=t[a]||{};i.instance&&Object.keys(i.instance).forEach(s=>{const u=i.instance[s];typeof u=="function"?n[s]=u.bind(n):n[s]=u}),i.on&&n.on&&Object.keys(i.on).forEach(s=>{n.on(s,i.on[s])}),i.create&&i.create.bind(n)(r)})}static set components(t){const n=this;n.use&&n.use(t)}static installModule(t,...n){const a=this;a.prototype.modules||(a.prototype.modules={});const i=t.name||`${Object.keys(a.prototype.modules).length}_${yt.now()}`;return a.prototype.modules[i]=t,t.proto&&Object.keys(t.proto).forEach(r=>{a.prototype[r]=t.proto[r]}),t.static&&Object.keys(t.static).forEach(r=>{a[r]=t.static[r]}),t.install&&t.install.apply(a,n),a}static use(t,...n){const a=this;return Array.isArray(t)?(t.forEach(i=>a.installModule(i)),a):a.installModule(t,...n)}}function xS(){const e=this;let t,n;const a=e.$el;typeof e.params.width<"u"?t=e.params.width:t=a[0].clientWidth,typeof e.params.height<"u"?n=e.params.height:n=a[0].clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(a.css("padding-left"),10)-parseInt(a.css("padding-right"),10),n=n-parseInt(a.css("padding-top"),10)-parseInt(a.css("padding-bottom"),10),yt.extend(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function SS(){const e=this,t=e.params,{$wrapperEl:n,size:a,rtlTranslate:i,wrongRTL:r}=e,s=e.virtual&&t.virtual.enabled,u=s?e.virtual.slides.length:e.slides.length,c=n.children(`.${e.params.slideClass}`),h=s?e.virtual.slides.length:c.length;let m=[];const x=[],w=[];let P=t.slidesOffsetBefore;typeof P=="function"&&(P=t.slidesOffsetBefore.call(e));let E=t.slidesOffsetAfter;typeof E=="function"&&(E=t.slidesOffsetAfter.call(e));const z=e.snapGrid.length,A=e.snapGrid.length;let k=t.spaceBetween,S=-P,N=0,L=0;if(typeof a>"u")return;typeof k=="string"&&k.indexOf("%")>=0&&(k=parseFloat(k.replace("%",""))/100*a),e.virtualSize=-k,i?c.css({marginLeft:"",marginTop:""}):c.css({marginRight:"",marginBottom:""});let j;t.slidesPerColumn>1&&(Math.floor(h/t.slidesPerColumn)===h/e.params.slidesPerColumn?j=h:j=Math.ceil(h/t.slidesPerColumn)*t.slidesPerColumn,t.slidesPerView!=="auto"&&t.slidesPerColumnFill==="row"&&(j=Math.max(j,t.slidesPerView*t.slidesPerColumn)));let f;const G=t.slidesPerColumn,V=j/G,F=Math.floor(h/t.slidesPerColumn);for(let ft=0;ft<h;ft+=1){f=0;const ot=c.eq(ft);if(t.slidesPerColumn>1){let Z,$,o;if(t.slidesPerColumnFill==="column"||t.slidesPerColumnFill==="row"&&t.slidesPerGroup>1){if(t.slidesPerColumnFill==="column")$=Math.floor(ft/G),o=ft-$*G,($>F||$===F&&o===G-1)&&(o+=1,o>=G&&(o=0,$+=1));else{const tt=Math.floor(ft/t.slidesPerGroup);o=Math.floor(ft/t.slidesPerView)-tt*t.slidesPerColumn,$=ft-o*t.slidesPerView-tt*t.slidesPerView}Z=$+o*j/G,ot.css({"-webkit-box-ordinal-group":Z,"-moz-box-ordinal-group":Z,"-ms-flex-order":Z,"-webkit-order":Z,order:Z})}else o=Math.floor(ft/V),$=ft-o*V;ot.css(`margin-${e.isHorizontal()?"top":"left"}`,o!==0&&t.spaceBetween&&`${t.spaceBetween}px`).attr("data-swiper-column",$).attr("data-swiper-row",o)}if(ot.css("display")!=="none"){if(t.slidesPerView==="auto"){const Z=Mt.getComputedStyle(ot[0],null),$=ot[0].style.transform,o=ot[0].style.webkitTransform;if($&&(ot[0].style.transform="none"),o&&(ot[0].style.webkitTransform="none"),t.roundLengths)f=e.isHorizontal()?ot.outerWidth(!0):ot.outerHeight(!0);else if(e.isHorizontal()){const tt=parseFloat(Z.getPropertyValue("width")),v=parseFloat(Z.getPropertyValue("padding-left")),Q=parseFloat(Z.getPropertyValue("padding-right")),st=parseFloat(Z.getPropertyValue("margin-left")),ut=parseFloat(Z.getPropertyValue("margin-right")),I=Z.getPropertyValue("box-sizing");I&&I==="border-box"&&!Ia.isIE?f=tt+st+ut:f=tt+v+Q+st+ut}else{const tt=parseFloat(Z.getPropertyValue("height")),v=parseFloat(Z.getPropertyValue("padding-top")),Q=parseFloat(Z.getPropertyValue("padding-bottom")),st=parseFloat(Z.getPropertyValue("margin-top")),ut=parseFloat(Z.getPropertyValue("margin-bottom")),I=Z.getPropertyValue("box-sizing");I&&I==="border-box"&&!Ia.isIE?f=tt+st+ut:f=tt+v+Q+st+ut}$&&(ot[0].style.transform=$),o&&(ot[0].style.webkitTransform=o),t.roundLengths&&(f=Math.floor(f))}else f=(a-(t.slidesPerView-1)*k)/t.slidesPerView,t.roundLengths&&(f=Math.floor(f)),c[ft]&&(e.isHorizontal()?c[ft].style.width=`${f}px`:c[ft].style.height=`${f}px`);c[ft]&&(c[ft].swiperSlideSize=f),w.push(f),t.centeredSlides?(S=S+f/2+N/2+k,N===0&&ft!==0&&(S=S-a/2-k),ft===0&&(S=S-a/2-k),Math.abs(S)<1/1e3&&(S=0),t.roundLengths&&(S=Math.floor(S)),L%t.slidesPerGroup===0&&m.push(S),x.push(S)):(t.roundLengths&&(S=Math.floor(S)),L%t.slidesPerGroup===0&&m.push(S),x.push(S),S=S+f+k),e.virtualSize+=f+k,N=f,L+=1}}e.virtualSize=Math.max(e.virtualSize,a)+E;let pt;if(i&&r&&(t.effect==="slide"||t.effect==="coverflow")&&n.css({width:`${e.virtualSize+t.spaceBetween}px`}),(!qt.flexbox||t.setWrapperSize)&&(e.isHorizontal()?n.css({width:`${e.virtualSize+t.spaceBetween}px`}):n.css({height:`${e.virtualSize+t.spaceBetween}px`})),t.slidesPerColumn>1&&(e.virtualSize=(f+t.spaceBetween)*j,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?n.css({width:`${e.virtualSize+t.spaceBetween}px`}):n.css({height:`${e.virtualSize+t.spaceBetween}px`}),t.centeredSlides)){pt=[];for(let ft=0;ft<m.length;ft+=1){let ot=m[ft];t.roundLengths&&(ot=Math.floor(ot)),m[ft]<e.virtualSize+m[0]&&pt.push(ot)}m=pt}if(!t.centeredSlides){pt=[];for(let ft=0;ft<m.length;ft+=1){let ot=m[ft];t.roundLengths&&(ot=Math.floor(ot)),m[ft]<=e.virtualSize-a&&pt.push(ot)}m=pt,Math.floor(e.virtualSize-a)-Math.floor(m[m.length-1])>1&&m.push(e.virtualSize-a)}if(m.length===0&&(m=[0]),t.spaceBetween!==0&&(e.isHorizontal()?i?c.css({marginLeft:`${k}px`}):c.css({marginRight:`${k}px`}):c.css({marginBottom:`${k}px`})),t.centerInsufficientSlides){let ft=0;if(w.forEach(ot=>{ft+=ot+(t.spaceBetween?t.spaceBetween:0)}),ft-=t.spaceBetween,ft<a){const ot=(a-ft)/2;m.forEach((Z,$)=>{m[$]=Z-ot}),x.forEach((Z,$)=>{x[$]=Z+ot})}}yt.extend(e,{slides:c,snapGrid:m,slidesGrid:x,slidesSizesGrid:w}),h!==u&&e.emit("slidesLengthChange"),m.length!==z&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),x.length!==A&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}function CS(e){const t=this,n=[];let a=0,i;if(typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed),t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const r=t.activeIndex+i;if(r>t.slides.length)break;n.push(t.slides.eq(r)[0])}else n.push(t.slides.eq(t.activeIndex)[0]);for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){const r=n[i].offsetHeight;a=r>a?r:a}a&&t.$wrapperEl.css("height",`${a}px`)}function TS(){const e=this,t=e.slides;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop}function ES(e=this&&this.translate||0){const t=this,n=t.params,{slides:a,rtlTranslate:i}=t;if(a.length===0)return;typeof a[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let r=-e;i&&(r=e),a.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let s=0;s<a.length;s+=1){const u=a[s],c=(r+(n.centeredSlides?t.minTranslate():0)-u.swiperSlideOffset)/(u.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){const h=-(r-u.swiperSlideOffset),m=h+t.slidesSizesGrid[s];(h>=0&&h<t.size-1||m>1&&m<=t.size||h<=0&&m>=t.size)&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(s),a.eq(s).addClass(n.slideVisibleClass))}u.progress=i?-c:c}t.visibleSlides=wt(t.visibleSlides)}function PS(e=this&&this.translate||0){const t=this,n=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:r,isEnd:s}=t;const u=r,c=s;a===0?(i=0,r=!0,s=!0):(i=(e-t.minTranslate())/a,r=i<=0,s=i>=1),yt.extend(t,{progress:i,isBeginning:r,isEnd:s}),(n.watchSlidesProgress||n.watchSlidesVisibility)&&t.updateSlidesProgress(e),r&&!u&&t.emit("reachBeginning toEdge"),s&&!c&&t.emit("reachEnd toEdge"),(u&&!r||c&&!s)&&t.emit("fromEdge"),t.emit("progress",i)}function MS(){const e=this,{slides:t,params:n,$wrapperEl:a,activeIndex:i,realIndex:r}=e,s=e.virtual&&n.virtual.enabled;t.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`);let u;s?u=e.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${i}"]`):u=t.eq(i),u.addClass(n.slideActiveClass),n.loop&&(u.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(n.slideDuplicateActiveClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(n.slideDuplicateActiveClass));let c=u.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);n.loop&&c.length===0&&(c=t.eq(0),c.addClass(n.slideNextClass));let h=u.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&h.length===0&&(h=t.eq(-1),h.addClass(n.slidePrevClass)),n.loop&&(c.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),h.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass))}function AS(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:a,snapGrid:i,params:r,activeIndex:s,realIndex:u,snapIndex:c}=t;let h=e,m;if(typeof h>"u"){for(let w=0;w<a.length;w+=1)typeof a[w+1]<"u"?n>=a[w]&&n<a[w+1]-(a[w+1]-a[w])/2?h=w:n>=a[w]&&n<a[w+1]&&(h=w+1):n>=a[w]&&(h=w);r.normalizeSlideIndex&&(h<0||typeof h>"u")&&(h=0)}if(i.indexOf(n)>=0?m=i.indexOf(n):m=Math.floor(h/r.slidesPerGroup),m>=i.length&&(m=i.length-1),h===s){m!==c&&(t.snapIndex=m,t.emit("snapIndexChange"));return}const x=parseInt(t.slides.eq(h).attr("data-swiper-slide-index")||h,10);yt.extend(t,{snapIndex:m,realIndex:x,previousIndex:s,activeIndex:h}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),u!==x&&t.emit("realIndexChange"),(t.initialized||t.runCallbacksOnInit)&&t.emit("slideChange")}function NS(e){const t=this,n=t.params,a=wt(e.target).closest(`.${n.slideClass}`)[0];let i=!1;if(a)for(let r=0;r<t.slides.length;r+=1)t.slides[r]===a&&(i=!0);if(a&&i)t.clickedSlide=a,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(wt(a).attr("data-swiper-slide-index"),10):t.clickedIndex=wt(a).index();else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}var LS={updateSize:xS,updateSlides:SS,updateAutoHeight:CS,updateSlidesOffset:TS,updateSlidesProgress:ES,updateProgress:PS,updateSlidesClasses:MS,updateActiveIndex:AS,updateClickedSlide:NS};function zS(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:a,translate:i,$wrapperEl:r}=t;if(n.virtualTranslate)return a?-i:i;let s=yt.getTranslate(r[0],e);return a&&(s=-s),s||0}function BS(e,t){const n=this,{rtlTranslate:a,params:i,$wrapperEl:r,progress:s}=n;let u=0,c=0;const h=0;n.isHorizontal()?u=a?-e:e:c=e,i.roundLengths&&(u=Math.floor(u),c=Math.floor(c)),i.virtualTranslate||(qt.transforms3d?r.transform(`translate3d(${u}px, ${c}px, ${h}px)`):r.transform(`translate(${u}px, ${c}px)`)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?u:c;let m;const x=n.maxTranslate()-n.minTranslate();x===0?m=0:m=(e-n.minTranslate())/x,m!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function DS(){return-this.snapGrid[0]}function IS(){return-this.snapGrid[this.snapGrid.length-1]}var jS={getTranslate:zS,setTranslate:BS,minTranslate:DS,maxTranslate:IS};function RS(e,t){const n=this;n.$wrapperEl.transition(e),n.emit("setTransition",e,t)}function OS(e=!0,t){const n=this,{activeIndex:a,params:i,previousIndex:r}=n;i.autoHeight&&n.updateAutoHeight();let s=t;if(s||(a>r?s="next":a<r?s="prev":s="reset"),n.emit("transitionStart"),e&&a!==r){if(s==="reset"){n.emit("slideResetTransitionStart");return}n.emit("slideChangeTransitionStart"),s==="next"?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}function KS(e=!0,t){const n=this,{activeIndex:a,previousIndex:i}=n;n.animating=!1,n.setTransition(0);let r=t;if(r||(a>i?r="next":a<i?r="prev":r="reset"),n.emit("transitionEnd"),e&&a!==i){if(r==="reset"){n.emit("slideResetTransitionEnd");return}n.emit("slideChangeTransitionEnd"),r==="next"?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}var $S={setTransition:RS,transitionStart:OS,transitionEnd:KS};function qS(e=0,t=this.params.speed,n=!0,a){const i=this;let r=e;r<0&&(r=0);const{params:s,snapGrid:u,slidesGrid:c,previousIndex:h,activeIndex:m,rtlTranslate:x}=i;if(i.animating&&s.preventInteractionOnTransition)return!1;let w=Math.floor(r/s.slidesPerGroup);w>=u.length&&(w=u.length-1),(m||s.initialSlide||0)===(h||0)&&n&&i.emit("beforeSlideChangeStart");const P=-u[w];if(i.updateProgress(P),s.normalizeSlideIndex)for(let z=0;z<c.length;z+=1)-Math.floor(P*100)>=Math.floor(c[z]*100)&&(r=z);if(i.initialized&&r!==m&&(!i.allowSlideNext&&P<i.translate&&P<i.minTranslate()||!i.allowSlidePrev&&P>i.translate&&P>i.maxTranslate()&&(m||0)!==r))return!1;let E;return r>m?E="next":r<m?E="prev":E="reset",x&&-P===i.translate||!x&&P===i.translate?(i.updateActiveIndex(r),s.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),s.effect!=="slide"&&i.setTranslate(P),E!=="reset"&&(i.transitionStart(n,E),i.transitionEnd(n,E)),!1):(t===0||!qt.transition?(i.setTransition(0),i.setTranslate(P),i.updateActiveIndex(r),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,a),i.transitionStart(n,E),i.transitionEnd(n,E)):(i.setTransition(t),i.setTranslate(P),i.updateActiveIndex(r),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,a),i.transitionStart(n,E),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(A){!i||i.destroyed||A.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,E))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))),!0)}function HS(e=0,t=this.params.speed,n=!0,a){const i=this;let r=e;return i.params.loop&&(r+=i.loopedSlides),i.slideTo(r,t,n,a)}function FS(e=this.params.speed,t=!0,n){const a=this,{params:i,animating:r}=a;return i.loop?r?!1:(a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft,a.slideTo(a.activeIndex+i.slidesPerGroup,e,t,n)):a.slideTo(a.activeIndex+i.slidesPerGroup,e,t,n)}function WS(e=this.params.speed,t=!0,n){const a=this,{params:i,animating:r,snapGrid:s,slidesGrid:u,rtlTranslate:c}=a;if(i.loop){if(r)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}const h=c?a.translate:-a.translate;function m(z){return z<0?-Math.floor(Math.abs(z)):Math.floor(z)}const x=m(h),w=s.map(z=>m(z));u.map(z=>m(z)),s[w.indexOf(x)];const P=s[w.indexOf(x)-1];let E;return typeof P<"u"&&(E=u.indexOf(P),E<0&&(E=a.activeIndex-1)),a.slideTo(E,e,t,n)}function _S(e=this.params.speed,t=!0,n){const a=this;return a.slideTo(a.activeIndex,e,t,n)}function VS(e=this.params.speed,t=!0,n){const a=this;let i=a.activeIndex;const r=Math.floor(i/a.params.slidesPerGroup);if(r<a.snapGrid.length-1){const s=a.rtlTranslate?a.translate:-a.translate,u=a.snapGrid[r],c=a.snapGrid[r+1];s-u>(c-u)/2&&(i=a.params.slidesPerGroup)}return a.slideTo(i,e,t,n)}function GS(){const e=this,{params:t,$wrapperEl:n}=e,a=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,r;if(t.loop){if(e.animating)return;r=parseInt(wt(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?i<e.loopedSlides-a/2||i>e.slides.length-e.loopedSlides+a/2?(e.loopFix(),i=n.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),yt.nextTick(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-a?(e.loopFix(),i=n.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),yt.nextTick(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var US={slideTo:qS,slideToLoop:HS,slideNext:FS,slidePrev:WS,slideReset:_S,slideToClosest:VS,slideToClickedSlide:GS};function YS(){const e=this,{params:t,$wrapperEl:n}=e;n.children(`.${t.slideClass}.${t.slideDuplicateClass}`).remove();let a=n.children(`.${t.slideClass}`);if(t.loopFillGroupWithBlank){const s=t.slidesPerGroup-a.length%t.slidesPerGroup;if(s!==t.slidesPerGroup){for(let u=0;u<s;u+=1){const c=wt(te.createElement("div")).addClass(`${t.slideClass} ${t.slideBlankClass}`);n.append(c)}a=n.children(`.${t.slideClass}`)}}t.slidesPerView==="auto"&&!t.loopedSlides&&(t.loopedSlides=a.length),e.loopedSlides=parseInt(t.loopedSlides||t.slidesPerView,10),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>a.length&&(e.loopedSlides=a.length);const i=[],r=[];a.each((s,u)=>{const c=wt(u);s<e.loopedSlides&&r.push(u),s<a.length&&s>=a.length-e.loopedSlides&&i.push(u),c.attr("data-swiper-slide-index",s)});for(let s=0;s<r.length;s+=1)n.append(wt(r[s].cloneNode(!0)).addClass(t.slideDuplicateClass));for(let s=i.length-1;s>=0;s-=1)n.prepend(wt(i[s].cloneNode(!0)).addClass(t.slideDuplicateClass))}function XS(){const e=this,{params:t,activeIndex:n,slides:a,loopedSlides:i,allowSlidePrev:r,allowSlideNext:s,snapGrid:u,rtlTranslate:c}=e;let h;e.allowSlidePrev=!0,e.allowSlideNext=!0;const x=-u[n]-e.getTranslate();n<i?(h=a.length-i*3+n,h+=i,e.slideTo(h,0,!1,!0)&&x!==0&&e.setTranslate((c?-e.translate:e.translate)-x)):(t.slidesPerView==="auto"&&n>=i*2||n>=a.length-i)&&(h=-a.length+n+i,h+=i,e.slideTo(h,0,!1,!0)&&x!==0&&e.setTranslate((c?-e.translate:e.translate)-x)),e.allowSlidePrev=r,e.allowSlideNext=s}function ZS(){const e=this,{$wrapperEl:t,params:n,slides:a}=e;t.children(`.${n.slideClass}.${n.slideDuplicateClass},.${n.slideClass}.${n.slideBlankClass}`).remove(),a.removeAttr("data-swiper-slide-index")}var JS={loopCreate:YS,loopFix:XS,loopDestroy:ZS};function QS(e){const t=this;if(qt.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)return;const n=t.el;n.style.cursor="move",n.style.cursor=e?"-webkit-grabbing":"-webkit-grab",n.style.cursor=e?"-moz-grabbin":"-moz-grab",n.style.cursor=e?"grabbing":"grab"}function t1(){const e=this;qt.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}var e1={setGrabCursor:QS,unsetGrabCursor:t1};function n1(e){const t=this,{$wrapperEl:n,params:a}=t;if(a.loop&&t.loopDestroy(),typeof e=="object"&&"length"in e)for(let i=0;i<e.length;i+=1)e[i]&&n.append(e[i]);else n.append(e);a.loop&&t.loopCreate(),a.observer&&qt.observer||t.update()}function a1(e){const t=this,{params:n,$wrapperEl:a,activeIndex:i}=t;n.loop&&t.loopDestroy();let r=i+1;if(typeof e=="object"&&"length"in e){for(let s=0;s<e.length;s+=1)e[s]&&a.prepend(e[s]);r=i+e.length}else a.prepend(e);n.loop&&t.loopCreate(),n.observer&&qt.observer||t.update(),t.slideTo(r,0,!1)}function i1(e,t){const n=this,{$wrapperEl:a,params:i,activeIndex:r}=n;let s=r;i.loop&&(s-=n.loopedSlides,n.loopDestroy(),n.slides=a.children(`.${i.slideClass}`));const u=n.slides.length;if(e<=0){n.prependSlide(t);return}if(e>=u){n.appendSlide(t);return}let c=s>e?s+1:s;const h=[];for(let m=u-1;m>=e;m-=1){const x=n.slides.eq(m);x.remove(),h.unshift(x)}if(typeof t=="object"&&"length"in t){for(let m=0;m<t.length;m+=1)t[m]&&a.append(t[m]);c=s>e?s+t.length:s}else a.append(t);for(let m=0;m<h.length;m+=1)a.append(h[m]);i.loop&&n.loopCreate(),i.observer&&qt.observer||n.update(),i.loop?n.slideTo(c+n.loopedSlides,0,!1):n.slideTo(c,0,!1)}function r1(e){const t=this,{params:n,$wrapperEl:a,activeIndex:i}=t;let r=i;n.loop&&(r-=t.loopedSlides,t.loopDestroy(),t.slides=a.children(`.${n.slideClass}`));let s=r,u;if(typeof e=="object"&&"length"in e){for(let c=0;c<e.length;c+=1)u=e[c],t.slides[u]&&t.slides.eq(u).remove(),u<s&&(s-=1);s=Math.max(s,0)}else u=e,t.slides[u]&&t.slides.eq(u).remove(),u<s&&(s-=1),s=Math.max(s,0);n.loop&&t.loopCreate(),n.observer&&qt.observer||t.update(),n.loop?t.slideTo(s+t.loopedSlides,0,!1):t.slideTo(s,0,!1)}function o1(){const e=this,t=[];for(let n=0;n<e.slides.length;n+=1)t.push(n);e.removeSlide(t)}var s1={appendSlide:n1,prependSlide:a1,addSlide:i1,removeSlide:r1,removeAllSlides:o1};const wn=function(){const t=Mt.navigator.userAgent,n={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:Mt.cordova||Mt.phonegap,phonegap:Mt.cordova||Mt.phonegap},a=t.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),i=t.match(/(Android);?[\s\/]+([\d.]+)?/),r=t.match(/(iPad).*OS\s([\d_]+)/),s=t.match(/(iPod)(.*OS\s([\d_]+))?/),u=!r&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(a&&(n.os="windows",n.osVersion=a[2],n.windows=!0),i&&!a&&(n.os="android",n.osVersion=i[2],n.android=!0,n.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(r||u||s)&&(n.os="ios",n.ios=!0),u&&!s&&(n.osVersion=u[2].replace(/_/g,"."),n.iphone=!0),r&&(n.osVersion=r[2].replace(/_/g,"."),n.ipad=!0),s&&(n.osVersion=s[3]?s[3].replace(/_/g,"."):null,n.iphone=!0),n.ios&&n.osVersion&&t.indexOf("Version/")>=0&&n.osVersion.split(".")[0]==="10"&&(n.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),n.desktop=!(n.os||n.android||n.webView),n.webView=(u||r||s)&&t.match(/.*AppleWebKit(?!.*Safari)/i),n.os&&n.os==="ios"){const c=n.osVersion.split("."),h=te.querySelector('meta[name="viewport"]');n.minimalUi=!n.webView&&(s||u)&&(c[0]*1===7?c[1]*1>=1:c[0]*1>7)&&h&&h.getAttribute("content").indexOf("minimal-ui")>=0}return n.pixelRatio=Mt.devicePixelRatio||1,n}();function l1(e){const t=this,n=t.touchEventsData,{params:a,touches:i}=t;if(t.animating&&a.preventInteractionOnTransition)return;let r=e;if(r.originalEvent&&(r=r.originalEvent),n.isTouchEvent=r.type==="touchstart",!n.isTouchEvent&&"which"in r&&r.which===3||!n.isTouchEvent&&"button"in r&&r.button>0||n.isTouched&&n.isMoved)return;if(a.noSwiping&&wt(r.target).closest(a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`)[0]){t.allowClick=!0;return}if(a.swipeHandler&&!wt(r).closest(a.swipeHandler)[0])return;i.currentX=r.type==="touchstart"?r.targetTouches[0].pageX:r.pageX,i.currentY=r.type==="touchstart"?r.targetTouches[0].pageY:r.pageY;const s=i.currentX,u=i.currentY,c=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,h=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(!(c&&(s<=h||s>=Mt.screen.width-h))){if(yt.extend(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=s,i.startY=u,n.touchStartTime=yt.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(n.allowThresholdMove=!1),r.type!=="touchstart"){let m=!0;wt(r.target).is(n.formElements)&&(m=!1),te.activeElement&&wt(te.activeElement).is(n.formElements)&&te.activeElement!==r.target&&te.activeElement.blur();const x=m&&t.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||x)&&r.preventDefault()}t.emit("touchStart",r)}}function u1(e){const t=this,n=t.touchEventsData,{params:a,touches:i,rtlTranslate:r}=t;let s=e;if(s.originalEvent&&(s=s.originalEvent),!n.isTouched){n.startMoving&&n.isScrolling&&t.emit("touchMoveOpposite",s);return}if(n.isTouchEvent&&s.type==="mousemove")return;const u=s.type==="touchmove"?s.targetTouches[0].pageX:s.pageX,c=s.type==="touchmove"?s.targetTouches[0].pageY:s.pageY;if(s.preventedByNestedSwiper){i.startX=u,i.startY=c;return}if(!t.allowTouchMove){t.allowClick=!1,n.isTouched&&(yt.extend(i,{startX:u,startY:c,currentX:u,currentY:c}),n.touchStartTime=yt.now());return}if(n.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop){if(t.isVertical()){if(c<i.startY&&t.translate<=t.maxTranslate()||c>i.startY&&t.translate>=t.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(u<i.startX&&t.translate<=t.maxTranslate()||u>i.startX&&t.translate>=t.minTranslate())return}if(n.isTouchEvent&&te.activeElement&&s.target===te.activeElement&&wt(s.target).is(n.formElements)){n.isMoved=!0,t.allowClick=!1;return}if(n.allowTouchCallbacks&&t.emit("touchMove",s),s.targetTouches&&s.targetTouches.length>1)return;i.currentX=u,i.currentY=c;const h=i.currentX-i.startX,m=i.currentY-i.startY;if(t.params.threshold&&Math.sqrt(h**2+m**2)<t.params.threshold)return;if(typeof n.isScrolling>"u"){let E;t.isHorizontal()&&i.currentY===i.startY||t.isVertical()&&i.currentX===i.startX?n.isScrolling=!1:h*h+m*m>=25&&(E=Math.atan2(Math.abs(m),Math.abs(h))*180/Math.PI,n.isScrolling=t.isHorizontal()?E>a.touchAngle:90-E>a.touchAngle)}if(n.isScrolling&&t.emit("touchMoveOpposite",s),typeof n.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(n.startMoving=!0),n.isScrolling){n.isTouched=!1;return}if(!n.startMoving)return;t.allowClick=!1,s.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&s.stopPropagation(),n.isMoved||(a.loop&&t.loopFix(),n.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,a.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",s)),t.emit("sliderMove",s),n.isMoved=!0;let x=t.isHorizontal()?h:m;i.diff=x,x*=a.touchRatio,r&&(x=-x),t.swipeDirection=x>0?"prev":"next",n.currentTranslate=x+n.startTranslate;let w=!0,P=a.resistanceRatio;if(a.touchReleaseOnEdges&&(P=0),x>0&&n.currentTranslate>t.minTranslate()?(w=!1,a.resistance&&(n.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+n.startTranslate+x)**P)):x<0&&n.currentTranslate<t.maxTranslate()&&(w=!1,a.resistance&&(n.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-n.startTranslate-x)**P)),w&&(s.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!t.allowSlidePrev&&t.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),a.threshold>0)if(Math.abs(x)>a.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,n.currentTranslate=n.startTranslate,i.diff=t.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{n.currentTranslate=n.startTranslate;return}a.followFinger&&((a.freeMode||a.watchSlidesProgress||a.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),a.freeMode&&(n.velocities.length===0&&n.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:yt.now()})),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate))}function c1(e){const t=this,n=t.touchEventsData,{params:a,touches:i,rtlTranslate:r,$wrapperEl:s,slidesGrid:u,snapGrid:c}=t;let h=e;if(h.originalEvent&&(h=h.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",h),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const m=yt.now(),x=m-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(h),t.emit("tap",h),x<300&&m-n.lastClickTime>300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),n.clickTimeout=yt.nextTick(()=>{!t||t.destroyed||t.emit("click",h)},300)),x<300&&m-n.lastClickTime<300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),t.emit("doubleTap",h))),n.lastClickTime=yt.now(),yt.nextTick(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||i.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let w;if(a.followFinger?w=r?t.translate:-t.translate:w=-n.currentTranslate,a.freeMode){if(w<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(w>-t.maxTranslate()){t.slides.length<c.length?t.slideTo(c.length-1):t.slideTo(t.slides.length-1);return}if(a.freeModeMomentum){if(n.velocities.length>1){const G=n.velocities.pop(),V=n.velocities.pop(),F=G.position-V.position,pt=G.time-V.time;t.velocity=F/pt,t.velocity/=2,Math.abs(t.velocity)<a.freeModeMinimumVelocity&&(t.velocity=0),(pt>150||yt.now()-G.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=a.freeModeMomentumVelocityRatio,n.velocities.length=0;let A=1e3*a.freeModeMomentumRatio;const k=t.velocity*A;let S=t.translate+k;r&&(S=-S);let N=!1,L;const j=Math.abs(t.velocity)*20*a.freeModeMomentumBounceRatio;let f;if(S<t.maxTranslate())a.freeModeMomentumBounce?(S+t.maxTranslate()<-j&&(S=t.maxTranslate()-j),L=t.maxTranslate(),N=!0,n.allowMomentumBounce=!0):S=t.maxTranslate(),a.loop&&a.centeredSlides&&(f=!0);else if(S>t.minTranslate())a.freeModeMomentumBounce?(S-t.minTranslate()>j&&(S=t.minTranslate()+j),L=t.minTranslate(),N=!0,n.allowMomentumBounce=!0):S=t.minTranslate(),a.loop&&a.centeredSlides&&(f=!0);else if(a.freeModeSticky){let G;for(let V=0;V<c.length;V+=1)if(c[V]>-S){G=V;break}Math.abs(c[G]-S)<Math.abs(c[G-1]-S)||t.swipeDirection==="next"?S=c[G]:S=c[G-1],S=-S}if(f&&t.once("transitionEnd",()=>{t.loopFix()}),t.velocity!==0)r?A=Math.abs((-S-t.translate)/t.velocity):A=Math.abs((S-t.translate)/t.velocity);else if(a.freeModeSticky){t.slideToClosest();return}a.freeModeMomentumBounce&&N?(t.updateProgress(L),t.setTransition(A),t.setTranslate(S),t.transitionStart(!0,t.swipeDirection),t.animating=!0,s.transitionEnd(()=>{!t||t.destroyed||!n.allowMomentumBounce||(t.emit("momentumBounce"),t.setTransition(a.speed),t.setTranslate(L),s.transitionEnd(()=>{!t||t.destroyed||t.transitionEnd()}))})):t.velocity?(t.updateProgress(S),t.setTransition(A),t.setTranslate(S),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,s.transitionEnd(()=>{!t||t.destroyed||t.transitionEnd()}))):t.updateProgress(S),t.updateActiveIndex(),t.updateSlidesClasses()}else if(a.freeModeSticky){t.slideToClosest();return}(!a.freeModeMomentum||x>=a.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses());return}let P=0,E=t.slidesSizesGrid[0];for(let A=0;A<u.length;A+=a.slidesPerGroup)typeof u[A+a.slidesPerGroup]<"u"?w>=u[A]&&w<u[A+a.slidesPerGroup]&&(P=A,E=u[A+a.slidesPerGroup]-u[A]):w>=u[A]&&(P=A,E=u[u.length-1]-u[u.length-2]);const z=(w-u[P])/E;if(x>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(z>=a.longSwipesRatio?t.slideTo(P+a.slidesPerGroup):t.slideTo(P)),t.swipeDirection==="prev"&&(z>1-a.longSwipesRatio?t.slideTo(P+a.slidesPerGroup):t.slideTo(P))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&t.slideTo(P+a.slidesPerGroup),t.swipeDirection==="prev"&&t.slideTo(P)}}function My(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:i,snapGrid:r}=e;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){const s=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!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 d1(e){const t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function f1(){const e=this,{params:t,touchEvents:n,el:a,wrapperEl:i}=e;e.onTouchStart=l1.bind(e),e.onTouchMove=u1.bind(e),e.onTouchEnd=c1.bind(e),e.onClick=d1.bind(e);const r=t.touchEventsTarget==="container"?a:i,s=!!t.nested;{if(!qt.touch&&(qt.pointerEvents||qt.prefixedPointerEvents))r.addEventListener(n.start,e.onTouchStart,!1),te.addEventListener(n.move,e.onTouchMove,s),te.addEventListener(n.end,e.onTouchEnd,!1);else{if(qt.touch){const u=n.start==="touchstart"&&qt.passiveListener&&t.passiveListeners?{passive:!0,capture:!1}:!1;r.addEventListener(n.start,e.onTouchStart,u),r.addEventListener(n.move,e.onTouchMove,qt.passiveListener?{passive:!1,capture:s}:s),r.addEventListener(n.end,e.onTouchEnd,u)}(t.simulateTouch&&!wn.ios&&!wn.android||t.simulateTouch&&!qt.touch&&wn.ios)&&(r.addEventListener("mousedown",e.onTouchStart,!1),te.addEventListener("mousemove",e.onTouchMove,s),te.addEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&r.addEventListener("click",e.onClick,!0)}e.on(wn.ios||wn.android?"resize orientationchange observerUpdate":"resize observerUpdate",My,!0)}function h1(){const e=this,{params:t,touchEvents:n,el:a,wrapperEl:i}=e,r=t.touchEventsTarget==="container"?a:i,s=!!t.nested;{if(!qt.touch&&(qt.pointerEvents||qt.prefixedPointerEvents))r.removeEventListener(n.start,e.onTouchStart,!1),te.removeEventListener(n.move,e.onTouchMove,s),te.removeEventListener(n.end,e.onTouchEnd,!1);else{if(qt.touch){const u=n.start==="onTouchStart"&&qt.passiveListener&&t.passiveListeners?{passive:!0,capture:!1}:!1;r.removeEventListener(n.start,e.onTouchStart,u),r.removeEventListener(n.move,e.onTouchMove,s),r.removeEventListener(n.end,e.onTouchEnd,u)}(t.simulateTouch&&!wn.ios&&!wn.android||t.simulateTouch&&!qt.touch&&wn.ios)&&(r.removeEventListener("mousedown",e.onTouchStart,!1),te.removeEventListener("mousemove",e.onTouchMove,s),te.removeEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&r.removeEventListener("click",e.onClick,!0)}e.off(wn.ios||wn.android?"resize orientationchange observerUpdate":"resize observerUpdate",My)}var p1={attachEvents:f1,detachEvents:h1};function g1(){const e=this,{activeIndex:t,initialized:n,loopedSlides:a=0,params:i}=e,r=i.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const s=e.getBreakpoint(r);if(s&&e.currentBreakpoint!==s){const u=s in r?r[s]:void 0;u&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(x=>{const w=u[x];typeof w>"u"||(x==="slidesPerView"&&(w==="AUTO"||w==="auto")?u[x]="auto":x==="slidesPerView"?u[x]=parseFloat(w):u[x]=parseInt(w,10))});const c=u||e.originalParams,h=c.direction&&c.direction!==i.direction,m=i.loop&&(c.slidesPerView!==i.slidesPerView||h);h&&n&&e.changeDirection(),yt.extend(e.params,c),yt.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=s,m&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-a+e.loopedSlides,0,!1)),e.emit("breakpoint",c)}}function m1(e){const t=this;if(!e)return;let n=!1;const a=[];Object.keys(e).forEach(i=>{a.push(i)}),a.sort((i,r)=>parseInt(i,10)-parseInt(r,10));for(let i=0;i<a.length;i+=1){const r=a[i];t.params.breakpointsInverse?r<=Mt.innerWidth&&(n=r):r>=Mt.innerWidth&&!n&&(n=r)}return n||"max"}var v1={setBreakpoint:g1,getBreakpoint:m1};function y1(){const e=this,{classNames:t,params:n,rtl:a,$el:i}=e,r=[];r.push("initialized"),r.push(n.direction),n.freeMode&&r.push("free-mode"),qt.flexbox||r.push("no-flexbox"),n.autoHeight&&r.push("autoheight"),a&&r.push("rtl"),n.slidesPerColumn>1&&r.push("multirow"),wn.android&&r.push("android"),wn.ios&&r.push("ios"),(Ia.isIE||Ia.isEdge)&&(qt.pointerEvents||qt.prefixedPointerEvents)&&r.push(`wp8-${n.direction}`),r.forEach(s=>{t.push(n.containerModifierClass+s)}),i.addClass(t.join(" "))}function b1(){const e=this,{$el:t,classNames:n}=e;t.removeClass(n.join(" "))}var w1={addClasses:y1,removeClasses:b1};function k1(e,t,n,a,i,r){let s;function u(){r&&r()}(!e.complete||!i)&&t?(s=new Mt.Image,s.onload=u,s.onerror=u,a&&(s.sizes=a),n&&(s.srcset=n),t&&(s.src=t)):u()}function x1(){const e=this;e.imagesToLoad=e.$el.find("img");function t(){typeof e>"u"||e===null||!e||e.destroyed||(e.imagesLoaded!==void 0&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}for(let n=0;n<e.imagesToLoad.length;n+=1){const a=e.imagesToLoad[n];e.loadImage(a,a.currentSrc||a.getAttribute("src"),a.srcset||a.getAttribute("srcset"),a.sizes||a.getAttribute("sizes"),!0,t)}}var S1={loadImage:k1,preloadImages:x1};function C1(){const e=this,t=e.isLocked;e.isLocked=e.snapGrid.length===1,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}var T1={checkOverflow:C1},_g={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,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,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!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:!0,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",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};const $c={update:LS,translate:jS,transition:$S,slide:US,loop:JS,grabCursor:e1,manipulation:s1,events:p1,breakpoints:v1,checkOverflow:T1,classes:w1,images:S1},qc={};class An extends Wg{constructor(...t){let n,a;t.length===1&&t[0].constructor&&t[0].constructor===Object?a=t[0]:[n,a]=t,a||(a={}),a=yt.extend({},a),n&&!a.el&&(a.el=n),super(a),Object.keys($c).forEach(c=>{Object.keys($c[c]).forEach(h=>{An.prototype[h]||(An.prototype[h]=$c[c][h])})});const i=this;typeof i.modules>"u"&&(i.modules={}),Object.keys(i.modules).forEach(c=>{const h=i.modules[c];if(h.params){const m=Object.keys(h.params)[0],x=h.params[m];if(typeof x!="object"||x===null||!(m in a&&"enabled"in x))return;a[m]===!0&&(a[m]={enabled:!0}),typeof a[m]=="object"&&!("enabled"in a[m])&&(a[m].enabled=!0),a[m]||(a[m]={enabled:!1})}});const r=yt.extend({},_g);i.useModulesParams(r),i.params=yt.extend({},r,qc,a),i.originalParams=yt.extend({},i.params),i.passedParams=yt.extend({},a),i.$=wt;const s=wt(i.params.el);if(n=s[0],!n)return;if(s.length>1){const c=[];return s.each((h,m)=>{const x=yt.extend({},a,{el:m});c.push(new An(x))}),c}n.swiper=i,s.data("swiper",i);const u=s.children(`.${i.params.wrapperClass}`);return yt.extend(i,{$el:s,el:n,$wrapperEl:u,wrapperEl:u[0],classNames:[],slides:wt(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},rtl:n.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl"),wrongRTL:u.css("display")==="-webkit-box",activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEvents:function(){const h=["touchstart","touchmove","touchend"];let m=["mousedown","mousemove","mouseup"];return qt.pointerEvents?m=["pointerdown","pointermove","pointerup"]:qt.prefixedPointerEvents&&(m=["MSPointerDown","MSPointerMove","MSPointerUp"]),i.touchEventsTouch={start:h[0],move:h[1],end:h[2]},i.touchEventsDesktop={start:m[0],move:m[1],end:m[2]},qt.touch||!i.params.simulateTouch?i.touchEventsTouch:i.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,formElements:"input, select, option, textarea, button, video",lastClickTime:yt.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.useModules(),i.params.init&&i.init(),i}slidesPerViewDynamic(){const t=this,{params:n,slides:a,slidesGrid:i,size:r,activeIndex:s}=t;let u=1;if(n.centeredSlides){let c=a[s].swiperSlideSize,h;for(let m=s+1;m<a.length;m+=1)a[m]&&!h&&(c+=a[m].swiperSlideSize,u+=1,c>r&&(h=!0));for(let m=s-1;m>=0;m-=1)a[m]&&!h&&(c+=a[m].swiperSlideSize,u+=1,c>r&&(h=!0))}else for(let c=s+1;c<a.length;c+=1)i[c]-i[s]<r&&(u+=1);return u}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:a}=t;a.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const s=t.rtlTranslate?t.translate*-1:t.translate,u=Math.min(Math.max(s,t.maxTranslate()),t.minTranslate());t.setTranslate(u),t.updateActiveIndex(),t.updateSlidesClasses()}let r;t.params.freeMode?(i(),t.params.autoHeight&&t.updateAutoHeight()):((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?r=t.slideTo(t.slides.length-1,0,!1,!0):r=t.slideTo(t.activeIndex,0,!1,!0),r||i()),a.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const a=this,i=a.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(a.$el.removeClass(`${a.params.containerModifierClass}${i} wp8-${i}`).addClass(`${a.params.containerModifierClass}${t}`),(Ia.isIE||Ia.isEdge)&&(qt.pointerEvents||qt.prefixedPointerEvents)&&a.$el.addClass(`${a.params.containerModifierClass}wp8-${t}`),a.params.direction=t,a.slides.each((r,s)=>{t==="vertical"?s.style.width="":s.style.height=""}),a.emit("changeDirection"),n&&a.update()),a}init(){const t=this;t.initialized||(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.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit),t.attachEvents(),t.initialized=!0,t.emit("init"))}destroy(t=!0,n=!0){const a=this,{params:i,$el:r,$wrapperEl:s,slides:u}=a;return typeof a.params>"u"||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),i.loop&&a.loopDestroy(),n&&(a.removeClasses(),r.removeAttr("style"),s.removeAttr("style"),u&&u.length&&u.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),a.emit("destroy"),Object.keys(a.eventsListeners).forEach(c=>{a.off(c)}),t!==!1&&(a.$el[0].swiper=null,a.$el.data("swiper",null),yt.deleteProps(a)),a.destroyed=!0),null}static extendDefaults(t){yt.extend(qc,t)}static get extendedDefaults(){return qc}static get defaults(){return _g}static get Class(){return Wg}static get $(){return wt}}var E1={name:"device",proto:{device:wn},static:{device:wn}},P1={name:"support",proto:{support:qt},static:{support:qt}},M1={name:"browser",proto:{browser:Ia},static:{browser:Ia}},A1={name:"resize",create(){const e=this;yt.extend(e,{resize:{resizeHandler(){!e||e.destroyed||!e.initialized||(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler(){!e||e.destroyed||!e.initialized||e.emit("orientationchange")}}})},on:{init(){const e=this;Mt.addEventListener("resize",e.resize.resizeHandler),Mt.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy(){const e=this;Mt.removeEventListener("resize",e.resize.resizeHandler),Mt.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}};const vl={func:Mt.MutationObserver||Mt.WebkitMutationObserver,attach(e,t={}){const n=this,a=vl.func,i=new a(r=>{if(r.length===1){n.emit("observerUpdate",r[0]);return}const s=function(){n.emit("observerUpdate",r[0])};Mt.requestAnimationFrame?Mt.requestAnimationFrame(s):Mt.setTimeout(s,0)});i.observe(e,{attributes:typeof t.attributes>"u"?!0:t.attributes,childList:typeof t.childList>"u"?!0:t.childList,characterData:typeof t.characterData>"u"?!0:t.characterData}),n.observer.observers.push(i)},init(){const e=this;if(!(!qt.observer||!e.params.observer)){if(e.params.observeParents){const t=e.$el.parents();for(let n=0;n<t.length;n+=1)e.observer.attach(t[n])}e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy(){const e=this;e.observer.observers.forEach(t=>{t.disconnect()}),e.observer.observers=[]}};var N1={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create(){const e=this;yt.extend(e,{observer:{init:vl.init.bind(e),attach:vl.attach.bind(e),destroy:vl.destroy.bind(e),observers:[]}})},on:{init(){this.observer.init()},destroy(){this.observer.destroy()}}};const br={update(e){const t=this,{slidesPerView:n,slidesPerGroup:a,centeredSlides:i}=t.params,{addSlidesBefore:r,addSlidesAfter:s}=t.params.virtual,{from:u,to:c,slides:h,slidesGrid:m,renderSlide:x,offset:w}=t.virtual;t.updateActiveIndex();const P=t.activeIndex||0;let E;t.rtlTranslate?E="right":E=t.isHorizontal()?"left":"top";let z,A;i?(z=Math.floor(n/2)+a+r,A=Math.floor(n/2)+a+s):(z=n+(a-1)+r,A=a+s);const k=Math.max((P||0)-A,0),S=Math.min((P||0)+z,h.length-1),N=(t.slidesGrid[k]||0)-(t.slidesGrid[0]||0);yt.extend(t.virtual,{from:k,to:S,offset:N,slidesGrid:t.slidesGrid});function L(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(u===k&&c===S&&!e){t.slidesGrid!==m&&N!==w&&t.slides.css(E,`${N}px`),t.updateProgress();return}if(t.params.virtual.renderExternal){t.params.virtual.renderExternal.call(t,{offset:N,from:k,to:S,slides:function(){const V=[];for(let F=k;F<=S;F+=1)V.push(h[F]);return V}()}),L();return}const j=[],f=[];if(e)t.$wrapperEl.find(`.${t.params.slideClass}`).remove();else for(let G=u;G<=c;G+=1)(G<k||G>S)&&t.$wrapperEl.find(`.${t.params.slideClass}[data-swiper-slide-index="${G}"]`).remove();for(let G=0;G<h.length;G+=1)G>=k&&G<=S&&(typeof c>"u"||e?f.push(G):(G>c&&f.push(G),G<u&&j.push(G)));f.forEach(G=>{t.$wrapperEl.append(x(h[G],G))}),j.sort((G,V)=>V-G).forEach(G=>{t.$wrapperEl.prepend(x(h[G],G))}),t.$wrapperEl.children(".swiper-slide").css(E,`${N}px`),L()},renderSlide(e,t){const n=this,a=n.params.virtual;if(a.cache&&n.virtual.cache[t])return n.virtual.cache[t];const i=a.renderSlide?wt(a.renderSlide.call(n,e,t)):wt(`<div class="${n.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&&(n.virtual.cache[t]=i),i},appendSlide(e){const t=this;if(typeof e=="object"&&"length"in e)for(let n=0;n<e.length;n+=1)e[n]&&t.virtual.slides.push(e[n]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide(e){const t=this,n=t.activeIndex;let a=n+1,i=1;if(Array.isArray(e)){for(let r=0;r<e.length;r+=1)e[r]&&t.virtual.slides.unshift(e[r]);a=n+e.length,i=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){const r=t.virtual.cache,s={};Object.keys(r).forEach(u=>{s[parseInt(u,10)+i]=r[u]}),t.virtual.cache=s}t.virtual.update(!0),t.slideTo(a,0)},removeSlide(e){const t=this;if(typeof e>"u"||e===null)return;let n=t.activeIndex;if(Array.isArray(e))for(let a=e.length-1;a>=0;a-=1)t.virtual.slides.splice(e[a],1),t.params.virtual.cache&&delete t.virtual.cache[e[a]],e[a]<n&&(n-=1),n=Math.max(n,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<n&&(n-=1),n=Math.max(n,0);t.virtual.update(!0),t.slideTo(n,0)},removeAllSlides(){const e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}};var L1={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create(){const e=this;yt.extend(e,{virtual:{update:br.update.bind(e),appendSlide:br.appendSlide.bind(e),prependSlide:br.prependSlide.bind(e),removeSlide:br.removeSlide.bind(e),removeAllSlides:br.removeAllSlides.bind(e),renderSlide:br.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit(){const e=this;if(!e.params.virtual.enabled)return;e.classNames.push(`${e.params.containerModifierClass}virtual`);const t={watchSlidesProgress:!0};yt.extend(e.params,t),yt.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()},setTranslate(){const e=this;e.params.virtual.enabled&&e.virtual.update()}}};const Hc={handle(e){const t=this,{rtlTranslate:n}=t;let a=e;a.originalEvent&&(a=a.originalEvent);const i=a.keyCode||a.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&i===39||t.isVertical()&&i===40||i===34)||!t.allowSlidePrev&&(t.isHorizontal()&&i===37||t.isVertical()&&i===38||i===33))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey)&&!(te.activeElement&&te.activeElement.nodeName&&(te.activeElement.nodeName.toLowerCase()==="input"||te.activeElement.nodeName.toLowerCase()==="textarea"))){if(t.params.keyboard.onlyInViewport&&(i===33||i===34||i===37||i===39||i===38||i===40)){let r=!1;if(t.$el.parents(`.${t.params.slideClass}`).length>0&&t.$el.parents(`.${t.params.slideActiveClass}`).length===0)return;const s=Mt.innerWidth,u=Mt.innerHeight,c=t.$el.offset();n&&(c.left-=t.$el[0].scrollLeft);const h=[[c.left,c.top],[c.left+t.width,c.top],[c.left,c.top+t.height],[c.left+t.width,c.top+t.height]];for(let m=0;m<h.length;m+=1){const x=h[m];x[0]>=0&&x[0]<=s&&x[1]>=0&&x[1]<=u&&(r=!0)}if(!r)return}t.isHorizontal()?((i===33||i===34||i===37||i===39)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((i===34||i===39)&&!n||(i===33||i===37)&&n)&&t.slideNext(),((i===33||i===37)&&!n||(i===34||i===39)&&n)&&t.slidePrev()):((i===33||i===34||i===38||i===40)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(i===34||i===40)&&t.slideNext(),(i===33||i===38)&&t.slidePrev()),t.emit("keyPress",i)}},enable(){const e=this;e.keyboard.enabled||(wt(te).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable(){const e=this;e.keyboard.enabled&&(wt(te).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}};var z1={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create(){const e=this;yt.extend(e,{keyboard:{enabled:!1,enable:Hc.enable.bind(e),disable:Hc.disable.bind(e),handle:Hc.handle.bind(e)}})},on:{init(){const e=this;e.params.keyboard.enabled&&e.keyboard.enable()},destroy(){const e=this;e.keyboard.enabled&&e.keyboard.disable()}}};function B1(){const e="onwheel";let t=e in te;if(!t){const n=te.createElement("div");n.setAttribute(e,"return;"),t=typeof n[e]=="function"}return!t&&te.implementation&&te.implementation.hasFeature&&te.implementation.hasFeature("","")!==!0&&(t=te.implementation.hasFeature("Events.wheel","3.0")),t}const Ea={lastScrollTime:yt.now(),event:function(){return Mt.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":B1()?"wheel":"mousewheel"}(),normalize(e){let i=0,r=0,s=0,u=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(i=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(i=r,r=0),s=i*10,u=r*10,"deltaY"in e&&(u=e.deltaY),"deltaX"in e&&(s=e.deltaX),(s||u)&&e.deltaMode&&(e.deltaMode===1?(s*=40,u*=40):(s*=800,u*=800)),s&&!i&&(i=s<1?-1:1),u&&!r&&(r=u<1?-1:1),{spinX:i,spinY:r,pixelX:s,pixelY:u}},handleMouseEnter(){const e=this;e.mouseEntered=!0},handleMouseLeave(){const e=this;e.mouseEntered=!1},handle(e){let t=e;const n=this,a=n.params.mousewheel;if(!n.mouseEntered&&!a.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);let i=0;const r=n.rtlTranslate?-1:1,s=Ea.normalize(t);if(a.forceToAxis)if(n.isHorizontal())if(Math.abs(s.pixelX)>Math.abs(s.pixelY))i=s.pixelX*r;else return!0;else if(Math.abs(s.pixelY)>Math.abs(s.pixelX))i=s.pixelY;else return!0;else i=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*r:-s.pixelY;if(i===0)return!0;if(a.invert&&(i=-i),n.params.freeMode){n.params.loop&&n.loopFix();let u=n.getTranslate()+i*a.sensitivity;const c=n.isBeginning,h=n.isEnd;if(u>=n.minTranslate()&&(u=n.minTranslate()),u<=n.maxTranslate()&&(u=n.maxTranslate()),n.setTransition(0),n.setTranslate(u),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!c&&n.isBeginning||!h&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky&&(clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=yt.nextTick(()=>{n.slideToClosest()},300)),n.emit("scroll",t),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),u===n.minTranslate()||u===n.maxTranslate())return!0}else{if(yt.now()-n.mousewheel.lastScrollTime>60){if(i<0){if((!n.isEnd||n.params.loop)&&!n.animating)n.slideNext(),n.emit("scroll",t);else if(a.releaseOnEdges)return!0}else if((!n.isBeginning||n.params.loop)&&!n.animating)n.slidePrev(),n.emit("scroll",t);else if(a.releaseOnEdges)return!0}n.mousewheel.lastScrollTime=new Mt.Date().getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable(){const e=this;if(!Ea.event||e.mousewheel.enabled)return!1;let t=e.$el;return e.params.mousewheel.eventsTarged!=="container"&&(t=wt(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(Ea.event,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable(){const e=this;if(!Ea.event||!e.mousewheel.enabled)return!1;let t=e.$el;return e.params.mousewheel.eventsTarged!=="container"&&(t=wt(e.params.mousewheel.eventsTarged)),t.off(Ea.event,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}};var D1={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create(){const e=this;yt.extend(e,{mousewheel:{enabled:!1,enable:Ea.enable.bind(e),disable:Ea.disable.bind(e),handle:Ea.handle.bind(e),handleMouseEnter:Ea.handleMouseEnter.bind(e),handleMouseLeave:Ea.handleMouseLeave.bind(e),lastScrollTime:yt.now()}})},on:{init(){const e=this;e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy(){const e=this;e.mousewheel.enabled&&e.mousewheel.disable()}}};const wo={update(){const e=this,t=e.params.navigation;if(e.params.loop)return;const{$nextEl:n,$prevEl:a}=e.navigation;a&&a.length>0&&(e.isBeginning?a.addClass(t.disabledClass):a.removeClass(t.disabledClass),a[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),n&&n.length>0&&(e.isEnd?n.addClass(t.disabledClass):n.removeClass(t.disabledClass),n[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))},onPrevClick(e){const t=this;e.preventDefault(),!(t.isBeginning&&!t.params.loop)&&t.slidePrev()},onNextClick(e){const t=this;e.preventDefault(),!(t.isEnd&&!t.params.loop)&&t.slideNext()},init(){const e=this,t=e.params.navigation;if(!(t.nextEl||t.prevEl))return;let n,a;t.nextEl&&(n=wt(t.nextEl),e.params.uniqueNavElements&&typeof t.nextEl=="string"&&n.length>1&&e.$el.find(t.nextEl).length===1&&(n=e.$el.find(t.nextEl))),t.prevEl&&(a=wt(t.prevEl),e.params.uniqueNavElements&&typeof t.prevEl=="string"&&a.length>1&&e.$el.find(t.prevEl).length===1&&(a=e.$el.find(t.prevEl))),n&&n.length>0&&n.on("click",e.navigation.onNextClick),a&&a.length>0&&a.on("click",e.navigation.onPrevClick),yt.extend(e.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:a,prevEl:a&&a[0]})},destroy(){const e=this,{$nextEl:t,$prevEl:n}=e.navigation;t&&t.length&&(t.off("click",e.navigation.onNextClick),t.removeClass(e.params.navigation.disabledClass)),n&&n.length&&(n.off("click",e.navigation.onPrevClick),n.removeClass(e.params.navigation.disabledClass))}};var I1={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create(){const e=this;yt.extend(e,{navigation:{init:wo.init.bind(e),update:wo.update.bind(e),destroy:wo.destroy.bind(e),onNextClick:wo.onNextClick.bind(e),onPrevClick:wo.onPrevClick.bind(e)}})},on:{init(){const e=this;e.navigation.init(),e.navigation.update()},toEdge(){this.navigation.update()},fromEdge(){this.navigation.update()},destroy(){this.navigation.destroy()},click(e){const t=this,{$nextEl:n,$prevEl:a}=t.navigation;if(t.params.navigation.hideOnClick&&!wt(e.target).is(a)&&!wt(e.target).is(n)){let i;n?i=n.hasClass(t.params.navigation.hiddenClass):a&&(i=a.hasClass(t.params.navigation.hiddenClass)),i===!0?t.emit("navigationShow",t):t.emit("navigationHide",t),n&&n.toggleClass(t.params.navigation.hiddenClass),a&&a.toggleClass(t.params.navigation.hiddenClass)}}}};const Xs={update(){const e=this,t=e.rtl,n=e.params.pagination;if(!n.el||!e.pagination.el||!e.pagination.$el||e.pagination.$el.length===0)return;const a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el;let r;const s=e.params.loop?Math.ceil((a-e.loopedSlides*2)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(r=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),r>a-1-e.loopedSlides*2&&(r-=a-e.loopedSlides*2),r>s-1&&(r-=s),r<0&&e.params.paginationType!=="bullets"&&(r=s+r)):typeof e.snapIndex<"u"?r=e.snapIndex:r=e.activeIndex||0,n.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const u=e.pagination.bullets;let c,h,m;if(n.dynamicBullets&&(e.pagination.bulletSize=u.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),i.css(e.isHorizontal()?"width":"height",`${e.pagination.bulletSize*(n.dynamicMainBullets+4)}px`),n.dynamicMainBullets>1&&e.previousIndex!==void 0&&(e.pagination.dynamicBulletIndex+=r-e.previousIndex,e.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),c=r-e.pagination.dynamicBulletIndex,h=c+(Math.min(u.length,n.dynamicMainBullets)-1),m=(h+c)/2),u.removeClass(`${n.bulletActiveClass} ${n.bulletActiveClass}-next ${n.bulletActiveClass}-next-next ${n.bulletActiveClass}-prev ${n.bulletActiveClass}-prev-prev ${n.bulletActiveClass}-main`),i.length>1)u.each((x,w)=>{const P=wt(w),E=P.index();E===r&&P.addClass(n.bulletActiveClass),n.dynamicBullets&&(E>=c&&E<=h&&P.addClass(`${n.bulletActiveClass}-main`),E===c&&P.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),E===h&&P.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`))});else if(u.eq(r).addClass(n.bulletActiveClass),n.dynamicBullets){const w=u.eq(c),P=u.eq(h);for(let E=c;E<=h;E+=1)u.eq(E).addClass(`${n.bulletActiveClass}-main`);w.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),P.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`)}if(n.dynamicBullets){const x=Math.min(u.length,n.dynamicMainBullets+4),w=(e.pagination.bulletSize*x-e.pagination.bulletSize)/2-m*e.pagination.bulletSize,P=t?"right":"left";u.css(e.isHorizontal()?P:"top",`${w}px`)}}if(n.type==="fraction"&&(i.find(`.${n.currentClass}`).text(n.formatFractionCurrent(r+1)),i.find(`.${n.totalClass}`).text(n.formatFractionTotal(s))),n.type==="progressbar"){let u;n.progressbarOpposite?u=e.isHorizontal()?"vertical":"horizontal":u=e.isHorizontal()?"horizontal":"vertical";const c=(r+1)/s;let h=1,m=1;u==="horizontal"?h=c:m=c,i.find(`.${n.progressbarFillClass}`).transform(`translate3d(0,0,0) scaleX(${h}) scaleY(${m})`).transition(e.params.speed)}n.type==="custom"&&n.renderCustom?(i.html(n.renderCustom(e,r+1,s)),e.emit("paginationRender",e,i[0])):e.emit("paginationUpdate",e,i[0]),i[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](n.lockClass)},render(){const e=this,t=e.params.pagination;if(!t.el||!e.pagination.el||!e.pagination.$el||e.pagination.$el.length===0)return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,a=e.pagination.$el;let i="";if(t.type==="bullets"){const r=e.params.loop?Math.ceil((n-e.loopedSlides*2)/e.params.slidesPerGroup):e.snapGrid.length;for(let s=0;s<r;s+=1)t.renderBullet?i+=t.renderBullet.call(e,s,t.bulletClass):i+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`;a.html(i),e.pagination.bullets=a.find(`.${t.bulletClass}`)}t.type==="fraction"&&(t.renderFraction?i=t.renderFraction.call(e,t.currentClass,t.totalClass):i=`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`,a.html(i)),t.type==="progressbar"&&(t.renderProgressbar?i=t.renderProgressbar.call(e,t.progressbarFillClass):i=`<span class="${t.progressbarFillClass}"></span>`,a.html(i)),t.type!=="custom"&&e.emit("paginationRender",e.pagination.$el[0])},init(){const e=this,t=e.params.pagination;if(!t.el)return;let n=wt(t.el);n.length!==0&&(e.params.uniqueNavElements&&typeof t.el=="string"&&n.length>1&&e.$el.find(t.el).length===1&&(n=e.$el.find(t.el)),t.type==="bullets"&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),t.type==="bullets"&&t.dynamicBullets&&(n.addClass(`${t.modifierClass}${t.type}-dynamic`),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),t.type==="progressbar"&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click",`.${t.bulletClass}`,function(i){i.preventDefault();let r=wt(this).index()*e.params.slidesPerGroup;e.params.loop&&(r+=e.loopedSlides),e.slideTo(r)}),yt.extend(e.pagination,{$el:n,el:n[0]}))},destroy(){const e=this,t=e.params.pagination;if(!t.el||!e.pagination.el||!e.pagination.$el||e.pagination.$el.length===0)return;const n=e.pagination.$el;n.removeClass(t.hiddenClass),n.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&n.off("click",`.${t.bulletClass}`)}};var j1={name:"pagination",params:{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:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create(){const e=this;yt.extend(e,{pagination:{init:Xs.init.bind(e),render:Xs.render.bind(e),update:Xs.update.bind(e),destroy:Xs.destroy.bind(e),dynamicBulletIndex:0}})},on:{init(){const e=this;e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange(){const e=this;(e.params.loop||typeof e.snapIndex>"u")&&e.pagination.update()},snapIndexChange(){const e=this;e.params.loop||e.pagination.update()},slidesLengthChange(){const e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange(){const e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy(){this.pagination.destroy()},click(e){const t=this;t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!wt(e.target).hasClass(t.params.pagination.bulletClass)&&(t.pagination.$el.hasClass(t.params.pagination.hiddenClass)===!0?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass))}}};const Zn={setTranslate(){const e=this;if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:n,progress:a}=e,{dragSize:i,trackSize:r,$dragEl:s,$el:u}=t,c=e.params.scrollbar;let h=i,m=(r-i)*a;n?(m=-m,m>0?(h=i-m,m=0):-m+i>r&&(h=r+m)):m<0?(h=i+m,m=0):m+i>r&&(h=r-m),e.isHorizontal()?(qt.transforms3d?s.transform(`translate3d(${m}px, 0, 0)`):s.transform(`translateX(${m}px)`),s[0].style.width=`${h}px`):(qt.transforms3d?s.transform(`translate3d(0px, ${m}px, 0)`):s.transform(`translateY(${m}px)`),s[0].style.height=`${h}px`),c.hide&&(clearTimeout(e.scrollbar.timeout),u[0].style.opacity=1,e.scrollbar.timeout=setTimeout(()=>{u[0].style.opacity=0,u.transition(400)},1e3))},setTransition(e){const t=this;!t.params.scrollbar.el||!t.scrollbar.el||t.scrollbar.$dragEl.transition(e)},updateSize(){const e=this;if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e,{$dragEl:n,$el:a}=t;n[0].style.width="",n[0].style.height="";const i=e.isHorizontal()?a[0].offsetWidth:a[0].offsetHeight,r=e.size/e.virtualSize,s=r*(i/e.size);let u;e.params.scrollbar.dragSize==="auto"?u=i*r:u=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?n[0].style.width=`${u}px`:n[0].style.height=`${u}px`,r>=1?a[0].style.display="none":a[0].style.display="",e.params.scrollbar.hide&&(a[0].style.opacity=0),yt.extend(t,{trackSize:i,divider:r,moveDivider:s,dragSize:u}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)},getPointerPosition(e){return this.isHorizontal()?e.type==="touchstart"||e.type==="touchmove"?e.targetTouches[0].pageX:e.pageX||e.clientX:e.type==="touchstart"||e.type==="touchmove"?e.targetTouches[0].pageY:e.pageY||e.clientY},setDragPosition(e){const t=this,{scrollbar:n,rtlTranslate:a}=t,{$el:i,dragSize:r,trackSize:s,dragStartPos:u}=n;let c;c=(n.getPointerPosition(e)-i.offset()[t.isHorizontal()?"left":"top"]-(u!==null?u:r/2))/(s-r),c=Math.max(Math.min(c,1),0),a&&(c=1-c);const h=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*c;t.updateProgress(h),t.setTranslate(h),t.updateActiveIndex(),t.updateSlidesClasses()},onDragStart(e){const t=this,n=t.params.scrollbar,{scrollbar:a,$wrapperEl:i}=t,{$el:r,$dragEl:s}=a;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===s[0]||e.target===s?a.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.transition(100),s.transition(100),a.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),r.transition(0),n.hide&&r.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove(e){const t=this,{scrollbar:n,$wrapperEl:a}=t,{$el:i,$dragEl:r}=n;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,n.setDragPosition(e),a.transition(0),i.transition(0),r.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd(e){const t=this,n=t.params.scrollbar,{scrollbar:a}=t,{$el:i}=a;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,n.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=yt.nextTick(()=>{i.css("opacity",0),i.transition(400)},1e3)),t.emit("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())},enableDraggable(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,touchEventsTouch:n,touchEventsDesktop:a,params:i}=e,s=t.$el[0],u=qt.passiveListener&&i.passiveListeners?{passive:!1,capture:!1}:!1,c=qt.passiveListener&&i.passiveListeners?{passive:!0,capture:!1}:!1;qt.touch?(s.addEventListener(n.start,e.scrollbar.onDragStart,u),s.addEventListener(n.move,e.scrollbar.onDragMove,u),s.addEventListener(n.end,e.scrollbar.onDragEnd,c)):(s.addEventListener(a.start,e.scrollbar.onDragStart,u),te.addEventListener(a.move,e.scrollbar.onDragMove,u),te.addEventListener(a.end,e.scrollbar.onDragEnd,c))},disableDraggable(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,touchEventsTouch:n,touchEventsDesktop:a,params:i}=e,s=t.$el[0],u=qt.passiveListener&&i.passiveListeners?{passive:!1,capture:!1}:!1,c=qt.passiveListener&&i.passiveListeners?{passive:!0,capture:!1}:!1;qt.touch?(s.removeEventListener(n.start,e.scrollbar.onDragStart,u),s.removeEventListener(n.move,e.scrollbar.onDragMove,u),s.removeEventListener(n.end,e.scrollbar.onDragEnd,c)):(s.removeEventListener(a.start,e.scrollbar.onDragStart,u),te.removeEventListener(a.move,e.scrollbar.onDragMove,u),te.removeEventListener(a.end,e.scrollbar.onDragEnd,c))},init(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,$el:n}=e,a=e.params.scrollbar;let i=wt(a.el);e.params.uniqueNavElements&&typeof a.el=="string"&&i.length>1&&n.find(a.el).length===1&&(i=n.find(a.el));let r=i.find(`.${e.params.scrollbar.dragClass}`);r.length===0&&(r=wt(`<div class="${e.params.scrollbar.dragClass}"></div>`),i.append(r)),yt.extend(t,{$el:i,el:i[0],$dragEl:r,dragEl:r[0]}),a.draggable&&t.enableDraggable()},destroy(){this.scrollbar.disableDraggable()}};var R1={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create(){const e=this;yt.extend(e,{scrollbar:{init:Zn.init.bind(e),destroy:Zn.destroy.bind(e),updateSize:Zn.updateSize.bind(e),setTranslate:Zn.setTranslate.bind(e),setTransition:Zn.setTransition.bind(e),enableDraggable:Zn.enableDraggable.bind(e),disableDraggable:Zn.disableDraggable.bind(e),setDragPosition:Zn.setDragPosition.bind(e),getPointerPosition:Zn.getPointerPosition.bind(e),onDragStart:Zn.onDragStart.bind(e),onDragMove:Zn.onDragMove.bind(e),onDragEnd:Zn.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init(){const e=this;e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update(){this.scrollbar.updateSize()},resize(){this.scrollbar.updateSize()},observerUpdate(){this.scrollbar.updateSize()},setTranslate(){this.scrollbar.setTranslate()},setTransition(e){this.scrollbar.setTransition(e)},destroy(){this.scrollbar.destroy()}}};const Fc={setTransform(e,t){const n=this,{rtl:a}=n,i=wt(e),r=a?-1:1,s=i.attr("data-swiper-parallax")||"0";let u=i.attr("data-swiper-parallax-x"),c=i.attr("data-swiper-parallax-y");const h=i.attr("data-swiper-parallax-scale"),m=i.attr("data-swiper-parallax-opacity");if(u||c?(u=u||"0",c=c||"0"):n.isHorizontal()?(u=s,c="0"):(c=s,u="0"),u.indexOf("%")>=0?u=`${parseInt(u,10)*t*r}%`:u=`${u*t*r}px`,c.indexOf("%")>=0?c=`${parseInt(c,10)*t}%`:c=`${c*t}px`,typeof m<"u"&&m!==null){const x=m-(m-1)*(1-Math.abs(t));i[0].style.opacity=x}if(typeof h>"u"||h===null)i.transform(`translate3d(${u}, ${c}, 0px)`);else{const x=h-(h-1)*(1-Math.abs(t));i.transform(`translate3d(${u}, ${c}, 0px) scale(${x})`)}},setTranslate(){const e=this,{$el:t,slides:n,progress:a,snapGrid:i}=e;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((r,s)=>{e.parallax.setTransform(s,a)}),n.each((r,s)=>{let u=s.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(u+=Math.ceil(r/2)-a*(i.length-1)),u=Math.min(Math.max(u,-1),1),wt(s).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((c,h)=>{e.parallax.setTransform(h,u)})})},setTransition(e=this.params.speed){const t=this,{$el:n}=t;n.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((a,i)=>{const r=wt(i);let s=parseInt(r.attr("data-swiper-parallax-duration"),10)||e;e===0&&(s=0),r.transition(s)})}};var O1={name:"parallax",params:{parallax:{enabled:!1}},create(){const e=this;yt.extend(e,{parallax:{setTransform:Fc.setTransform.bind(e),setTranslate:Fc.setTranslate.bind(e),setTransition:Fc.setTransition.bind(e)}})},on:{beforeInit(){const e=this;e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init(){const e=this;e.params.parallax.enabled&&e.parallax.setTranslate()},setTranslate(){const e=this;e.params.parallax.enabled&&e.parallax.setTranslate()},setTransition(e){const t=this;t.params.parallax.enabled&&t.parallax.setTransition(e)}}};const Yd={getDistanceBetweenTouches(e){if(e.targetTouches.length<2)return 1;const t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,a=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY;return Math.sqrt((a-t)**2+(i-n)**2)},onGestureStart(e){const t=this,n=t.params.zoom,a=t.zoom,{gesture:i}=a;if(a.fakeGestureTouched=!1,a.fakeGestureMoved=!1,!qt.gestures){if(e.type!=="touchstart"||e.type==="touchstart"&&e.targetTouches.length<2)return;a.fakeGestureTouched=!0,i.scaleStart=Yd.getDistanceBetweenTouches(e)}if((!i.$slideEl||!i.$slideEl.length)&&(i.$slideEl=wt(e.target).closest(".swiper-slide"),i.$slideEl.length===0&&(i.$slideEl=t.slides.eq(t.activeIndex)),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent(`.${n.containerClass}`),i.maxRatio=i.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,i.$imageWrapEl.length===0)){i.$imageEl=void 0;return}i.$imageEl.transition(0),t.zoom.isScaling=!0},onGestureChange(e){const t=this,n=t.params.zoom,a=t.zoom,{gesture:i}=a;if(!qt.gestures){if(e.type!=="touchmove"||e.type==="touchmove"&&e.targetTouches.length<2)return;a.fakeGestureMoved=!0,i.scaleMove=Yd.getDistanceBetweenTouches(e)}!i.$imageEl||i.$imageEl.length===0||(qt.gestures?a.scale=e.scale*a.currentScale:a.scale=i.scaleMove/i.scaleStart*a.currentScale,a.scale>i.maxRatio&&(a.scale=i.maxRatio-1+(a.scale-i.maxRatio+1)**.5),a.scale<n.minRatio&&(a.scale=n.minRatio+1-(n.minRatio-a.scale+1)**.5),i.$imageEl.transform(`translate3d(0,0,0) scale(${a.scale})`))},onGestureEnd(e){const t=this,n=t.params.zoom,a=t.zoom,{gesture:i}=a;if(!qt.gestures){if(!a.fakeGestureTouched||!a.fakeGestureMoved||e.type!=="touchend"||e.type==="touchend"&&e.changedTouches.length<2&&!wn.android)return;a.fakeGestureTouched=!1,a.fakeGestureMoved=!1}!i.$imageEl||i.$imageEl.length===0||(a.scale=Math.max(Math.min(a.scale,i.maxRatio),n.minRatio),i.$imageEl.transition(t.params.speed).transform(`translate3d(0,0,0) scale(${a.scale})`),a.currentScale=a.scale,a.isScaling=!1,a.scale===1&&(i.$slideEl=void 0))},onTouchStart(e){const n=this.zoom,{gesture:a,image:i}=n;!a.$imageEl||a.$imageEl.length===0||i.isTouched||(wn.android&&e.preventDefault(),i.isTouched=!0,i.touchesStart.x=e.type==="touchstart"?e.targetTouches[0].pageX:e.pageX,i.touchesStart.y=e.type==="touchstart"?e.targetTouches[0].pageY:e.pageY)},onTouchMove(e){const t=this,n=t.zoom,{gesture:a,image:i,velocity:r}=n;if(!a.$imageEl||a.$imageEl.length===0||(t.allowClick=!1,!i.isTouched||!a.$slideEl))return;i.isMoved||(i.width=a.$imageEl[0].offsetWidth,i.height=a.$imageEl[0].offsetHeight,i.startX=yt.getTranslate(a.$imageWrapEl[0],"x")||0,i.startY=yt.getTranslate(a.$imageWrapEl[0],"y")||0,a.slideWidth=a.$slideEl[0].offsetWidth,a.slideHeight=a.$slideEl[0].offsetHeight,a.$imageWrapEl.transition(0),t.rtl&&(i.startX=-i.startX,i.startY=-i.startY));const s=i.width*n.scale,u=i.height*n.scale;if(!(s<a.slideWidth&&u<a.slideHeight)){if(i.minX=Math.min(a.slideWidth/2-s/2,0),i.maxX=-i.minX,i.minY=Math.min(a.slideHeight/2-u/2,0),i.maxY=-i.minY,i.touchesCurrent.x=e.type==="touchmove"?e.targetTouches[0].pageX:e.pageX,i.touchesCurrent.y=e.type==="touchmove"?e.targetTouches[0].pageY:e.pageY,!i.isMoved&&!n.isScaling){if(t.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x)){i.isTouched=!1;return}if(!t.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y)){i.isTouched=!1;return}}e.preventDefault(),e.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-(i.minX-i.currentX+1)**.8),i.currentX>i.maxX&&(i.currentX=i.maxX-1+(i.currentX-i.maxX+1)**.8),i.currentY<i.minY&&(i.currentY=i.minY+1-(i.minY-i.currentY+1)**.8),i.currentY>i.maxY&&(i.currentY=i.maxY-1+(i.currentY-i.maxY+1)**.8),r.prevPositionX||(r.prevPositionX=i.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=i.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(i.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(i.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(i.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0),Math.abs(i.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0),r.prevPositionX=i.touchesCurrent.x,r.prevPositionY=i.touchesCurrent.y,r.prevTime=Date.now(),a.$imageWrapEl.transform(`translate3d(${i.currentX}px, ${i.currentY}px,0)`)}},onTouchEnd(){const t=this.zoom,{gesture:n,image:a,velocity:i}=t;if(!n.$imageEl||n.$imageEl.length===0)return;if(!a.isTouched||!a.isMoved){a.isTouched=!1,a.isMoved=!1;return}a.isTouched=!1,a.isMoved=!1;let r=300,s=300;const u=i.x*r,c=a.currentX+u,h=i.y*s,m=a.currentY+h;i.x!==0&&(r=Math.abs((c-a.currentX)/i.x)),i.y!==0&&(s=Math.abs((m-a.currentY)/i.y));const x=Math.max(r,s);a.currentX=c,a.currentY=m;const w=a.width*t.scale,P=a.height*t.scale;a.minX=Math.min(n.slideWidth/2-w/2,0),a.maxX=-a.minX,a.minY=Math.min(n.slideHeight/2-P/2,0),a.maxY=-a.minY,a.currentX=Math.max(Math.min(a.currentX,a.maxX),a.minX),a.currentY=Math.max(Math.min(a.currentY,a.maxY),a.minY),n.$imageWrapEl.transition(x).transform(`translate3d(${a.currentX}px, ${a.currentY}px,0)`)},onTransitionEnd(){const e=this,t=e.zoom,{gesture:n}=t;n.$slideEl&&e.previousIndex!==e.activeIndex&&(n.$imageEl.transform("translate3d(0,0,0) scale(1)"),n.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},toggle(e){const n=this.zoom;n.scale&&n.scale!==1?n.out():n.in(e)},in(e){const t=this,n=t.zoom,a=t.params.zoom,{gesture:i,image:r}=n;if(i.$slideEl||(i.$slideEl=t.clickedSlide?wt(t.clickedSlide):t.slides.eq(t.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent(`.${a.containerClass}`)),!i.$imageEl||i.$imageEl.length===0)return;i.$slideEl.addClass(`${a.zoomedSlideClass}`);let s,u,c,h,m,x,w,P,E,z,A,k,S,N,L,j,f,G;typeof r.touchesStart.x>"u"&&e?(s=e.type==="touchend"?e.changedTouches[0].pageX:e.pageX,u=e.type==="touchend"?e.changedTouches[0].pageY:e.pageY):(s=r.touchesStart.x,u=r.touchesStart.y),n.scale=i.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,n.currentScale=i.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,e?(f=i.$slideEl[0].offsetWidth,G=i.$slideEl[0].offsetHeight,c=i.$slideEl.offset().left,h=i.$slideEl.offset().top,m=c+f/2-s,x=h+G/2-u,E=i.$imageEl[0].offsetWidth,z=i.$imageEl[0].offsetHeight,A=E*n.scale,k=z*n.scale,S=Math.min(f/2-A/2,0),N=Math.min(G/2-k/2,0),L=-S,j=-N,w=m*n.scale,P=x*n.scale,w<S&&(w=S),w>L&&(w=L),P<N&&(P=N),P>j&&(P=j)):(w=0,P=0),i.$imageWrapEl.transition(300).transform(`translate3d(${w}px, ${P}px,0)`),i.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${n.scale})`)},out(){const e=this,t=e.zoom,n=e.params.zoom,{gesture:a}=t;a.$slideEl||(a.$slideEl=e.clickedSlide?wt(e.clickedSlide):e.slides.eq(e.activeIndex),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent(`.${n.containerClass}`)),!(!a.$imageEl||a.$imageEl.length===0)&&(t.scale=1,t.currentScale=1,a.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),a.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),a.$slideEl.removeClass(`${n.zoomedSlideClass}`),a.$slideEl=void 0)},enable(){const e=this,t=e.zoom;if(t.enabled)return;t.enabled=!0;const n=e.touchEvents.start==="touchstart"&&qt.passiveListener&&e.params.passiveListeners?{passive:!0,capture:!1}:!1;qt.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,n)):e.touchEvents.start==="touchstart"&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),e.$wrapperEl.on(e.touchEvents.move,`.${e.params.zoom.containerClass}`,t.onTouchMove)},disable(){const e=this,t=e.zoom;if(!t.enabled)return;e.zoom.enabled=!1;const n=e.touchEvents.start==="touchstart"&&qt.passiveListener&&e.params.passiveListeners?{passive:!0,capture:!1}:!1;qt.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,n)):e.touchEvents.start==="touchstart"&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),e.$wrapperEl.off(e.touchEvents.move,`.${e.params.zoom.containerClass}`,t.onTouchMove)}};var K1={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create(){const e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{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:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(a=>{t[a]=Yd[a].bind(e)}),yt.extend(e,{zoom:t});let n=1;Object.defineProperty(e.zoom,"scale",{get(){return n},set(a){if(n!==a){const i=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,r=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",a,i,r)}n=a}})},on:{init(){const e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy(){this.zoom.disable()},touchStart(e){const t=this;t.zoom.enabled&&t.zoom.onTouchStart(e)},touchEnd(e){const t=this;t.zoom.enabled&&t.zoom.onTouchEnd(e)},doubleTap(e){const t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd(){const e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()}}};const Vg={loadInSlide(e,t=!0){const n=this,a=n.params.lazy;if(typeof e>"u"||n.slides.length===0)return;const r=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children(`.${n.params.slideClass}[data-swiper-slide-index="${e}"]`):n.slides.eq(e);let s=r.find(`.${a.elementClass}:not(.${a.loadedClass}):not(.${a.loadingClass})`);r.hasClass(a.elementClass)&&!r.hasClass(a.loadedClass)&&!r.hasClass(a.loadingClass)&&(s=s.add(r[0])),s.length!==0&&s.each((u,c)=>{const h=wt(c);h.addClass(a.loadingClass);const m=h.attr("data-background"),x=h.attr("data-src"),w=h.attr("data-srcset"),P=h.attr("data-sizes");n.loadImage(h[0],x||m,w,P,!1,()=>{if(!(typeof n>"u"||n===null||!n||n&&!n.params||n.destroyed)){if(m?(h.css("background-image",`url("${m}")`),h.removeAttr("data-background")):(w&&(h.attr("srcset",w),h.removeAttr("data-srcset")),P&&(h.attr("sizes",P),h.removeAttr("data-sizes")),x&&(h.attr("src",x),h.removeAttr("data-src"))),h.addClass(a.loadedClass).removeClass(a.loadingClass),r.find(`.${a.preloaderClass}`).remove(),n.params.loop&&t){const E=r.attr("data-swiper-slide-index");if(r.hasClass(n.params.slideDuplicateClass)){const z=n.$wrapperEl.children(`[data-swiper-slide-index="${E}"]:not(.${n.params.slideDuplicateClass})`);n.lazy.loadInSlide(z.index(),!1)}else{const z=n.$wrapperEl.children(`.${n.params.slideDuplicateClass}[data-swiper-slide-index="${E}"]`);n.lazy.loadInSlide(z.index(),!1)}}n.emit("lazyImageReady",r[0],h[0])}}),n.emit("lazyImageLoad",r[0],h[0])})},load(){const e=this,{$wrapperEl:t,params:n,slides:a,activeIndex:i}=e,r=e.virtual&&n.virtual.enabled,s=n.lazy;let u=n.slidesPerView;u==="auto"&&(u=0);function c(m){if(r){if(t.children(`.${n.slideClass}[data-swiper-slide-index="${m}"]`).length)return!0}else if(a[m])return!0;return!1}function h(m){return r?wt(m).attr("data-swiper-slide-index"):wt(m).index()}if(e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children(`.${n.slideVisibleClass}`).each((m,x)=>{const w=r?wt(x).attr("data-swiper-slide-index"):wt(x).index();e.lazy.loadInSlide(w)});else if(u>1)for(let m=i;m<i+u;m+=1)c(m)&&e.lazy.loadInSlide(m);else e.lazy.loadInSlide(i);if(s.loadPrevNext)if(u>1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){const m=s.loadPrevNextAmount,x=u,w=Math.min(i+x+Math.max(m,x),a.length),P=Math.max(i-Math.max(x,m),0);for(let E=i+u;E<w;E+=1)c(E)&&e.lazy.loadInSlide(E);for(let E=P;E<i;E+=1)c(E)&&e.lazy.loadInSlide(E)}else{const m=t.children(`.${n.slideNextClass}`);m.length>0&&e.lazy.loadInSlide(h(m));const x=t.children(`.${n.slidePrevClass}`);x.length>0&&e.lazy.loadInSlide(h(x))}}};var $1={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create(){const e=this;yt.extend(e,{lazy:{initialImageLoaded:!1,load:Vg.load.bind(e),loadInSlide:Vg.loadInSlide.bind(e)}})},on:{beforeInit(){const e=this;e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init(){const e=this;e.params.lazy.enabled&&!e.params.loop&&e.params.initialSlide===0&&e.lazy.load()},scroll(){const e=this;e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize(){const e=this;e.params.lazy.enabled&&e.lazy.load()},scrollbarDragMove(){const e=this;e.params.lazy.enabled&&e.lazy.load()},transitionStart(){const e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd(){const e=this;e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()}}};const Vo={LinearSpline:function(t,n){const a=function(){let u,c,h;return(m,x)=>{for(c=-1,u=m.length;u-c>1;)h=u+c>>1,m[h]<=x?c=h:u=h;return u}}();this.x=t,this.y=n,this.lastIndex=t.length-1;let i,r;return this.interpolate=function(u){return u?(r=a(this.x,u),i=r-1,(u-this.x[i])*(this.y[r]-this.y[i])/(this.x[r]-this.x[i])+this.y[i]):0},this},getInterpolateFunction(e){const t=this;t.controller.spline||(t.controller.spline=t.params.loop?new Vo.LinearSpline(t.slidesGrid,e.slidesGrid):new Vo.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate(e,t){const n=this,a=n.controller.control;let i,r;function s(u){const c=n.rtlTranslate?-n.translate:n.translate;n.params.controller.by==="slide"&&(n.controller.getInterpolateFunction(u),r=-n.controller.spline.interpolate(-c)),(!r||n.params.controller.by==="container")&&(i=(u.maxTranslate()-u.minTranslate())/(n.maxTranslate()-n.minTranslate()),r=(c-n.minTranslate())*i+u.minTranslate()),n.params.controller.inverse&&(r=u.maxTranslate()-r),u.updateProgress(r),u.setTranslate(r,n),u.updateActiveIndex(),u.updateSlidesClasses()}if(Array.isArray(a))for(let u=0;u<a.length;u+=1)a[u]!==t&&a[u]instanceof An&&s(a[u]);else a instanceof An&&t!==a&&s(a)},setTransition(e,t){const n=this,a=n.controller.control;let i;function r(s){s.setTransition(e,n),e!==0&&(s.transitionStart(),s.params.autoHeight&&yt.nextTick(()=>{s.updateAutoHeight()}),s.$wrapperEl.transitionEnd(()=>{a&&(s.params.loop&&n.params.controller.by==="slide"&&s.loopFix(),s.transitionEnd())}))}if(Array.isArray(a))for(i=0;i<a.length;i+=1)a[i]!==t&&a[i]instanceof An&&r(a[i]);else a instanceof An&&t!==a&&r(a)}};var q1={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create(){const e=this;yt.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:Vo.getInterpolateFunction.bind(e),setTranslate:Vo.setTranslate.bind(e),setTransition:Vo.setTransition.bind(e)}})},on:{update(){const e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize(){const e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate(){const e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate(e,t){const n=this;n.controller.control&&n.controller.setTranslate(e,t)},setTransition(e,t){const n=this;n.controller.control&&n.controller.setTransition(e,t)}}};const Gg={makeElFocusable(e){return e.attr("tabIndex","0"),e},addElRole(e,t){return e.attr("role",t),e},addElLabel(e,t){return e.attr("aria-label",t),e},disableEl(e){return e.attr("aria-disabled",!0),e},enableEl(e){return e.attr("aria-disabled",!1),e},onEnterKey(e){const t=this,n=t.params.a11y;if(e.keyCode!==13)return;const a=wt(e.target);t.navigation&&t.navigation.$nextEl&&a.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(n.lastSlideMessage):t.a11y.notify(n.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&a.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(n.firstSlideMessage):t.a11y.notify(n.prevSlideMessage)),t.pagination&&a.is(`.${t.params.pagination.bulletClass}`)&&a[0].click()},notify(e){const n=this.a11y.liveRegion;n.length!==0&&(n.html(""),n.html(e))},updateNavigation(){const e=this;if(e.params.loop)return;const{$nextEl:t,$prevEl:n}=e.navigation;n&&n.length>0&&(e.isBeginning?e.a11y.disableEl(n):e.a11y.enableEl(n)),t&&t.length>0&&(e.isEnd?e.a11y.disableEl(t):e.a11y.enableEl(t))},updatePagination(){const e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((n,a)=>{const i=wt(a);e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,t.paginationBulletMessage.replace(/{{index}}/,i.index()+1))})},init(){const e=this;e.$el.append(e.a11y.liveRegion);const t=e.params.a11y;let n,a;e.navigation&&e.navigation.$nextEl&&(n=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(a=e.navigation.$prevEl),n&&(e.a11y.makeElFocusable(n),e.a11y.addElRole(n,"button"),e.a11y.addElLabel(n,t.nextSlideMessage),n.on("keydown",e.a11y.onEnterKey)),a&&(e.a11y.makeElFocusable(a),e.a11y.addElRole(a,"button"),e.a11y.addElLabel(a,t.prevSlideMessage),a.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown",`.${e.params.pagination.bulletClass}`,e.a11y.onEnterKey)},destroy(){const e=this;e.a11y.liveRegion&&e.a11y.liveRegion.length>0&&e.a11y.liveRegion.remove();let t,n;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(n=e.navigation.$prevEl),t&&t.off("keydown",e.a11y.onEnterKey),n&&n.off("keydown",e.a11y.onEnterKey),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.off("keydown",`.${e.params.pagination.bulletClass}`,e.a11y.onEnterKey)}};var H1={name:"a11y",params:{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}}"}},create(){const e=this;yt.extend(e,{a11y:{liveRegion:wt(`<span class="${e.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}}),Object.keys(Gg).forEach(t=>{e.a11y[t]=Gg[t].bind(e)})},on:{init(){const e=this;e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge(){const e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},fromEdge(){const e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},paginationUpdate(){const e=this;e.params.a11y.enabled&&e.a11y.updatePagination()},destroy(){const e=this;e.params.a11y.enabled&&e.a11y.destroy()}}};const Va={init(){const e=this;if(!e.params.history)return;if(!Mt.history||!Mt.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}const t=e.history;t.initialized=!0,t.paths=Va.getPathValues(),!(!t.paths.key&&!t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||Mt.addEventListener("popstate",e.history.setHistoryPopState))},destroy(){const e=this;e.params.history.replaceState||Mt.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState(){const e=this;e.history.paths=Va.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues(){const e=Mt.location.pathname.slice(1).split("/").filter(i=>i!==""),t=e.length,n=e[t-2],a=e[t-1];return{key:n,value:a}},setHistory(e,t){const n=this;if(!n.history.initialized||!n.params.history.enabled)return;const a=n.slides.eq(t);let i=Va.slugify(a.attr("data-history"));Mt.location.pathname.includes(e)||(i=`${e}/${i}`);const r=Mt.history.state;r&&r.value===i||(n.params.history.replaceState?Mt.history.replaceState({value:i},null,i):Mt.history.pushState({value:i},null,i))},slugify(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide(e,t,n){const a=this;if(t)for(let i=0,r=a.slides.length;i<r;i+=1){const s=a.slides.eq(i);if(Va.slugify(s.attr("data-history"))===t&&!s.hasClass(a.params.slideDuplicateClass)){const c=s.index();a.slideTo(c,e,n)}}else a.slideTo(0,e,n)}};var F1={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){const e=this;yt.extend(e,{history:{init:Va.init.bind(e),setHistory:Va.setHistory.bind(e),setHistoryPopState:Va.setHistoryPopState.bind(e),scrollToSlide:Va.scrollToSlide.bind(e),destroy:Va.destroy.bind(e)}})},on:{init(){const e=this;e.params.history.enabled&&e.history.init()},destroy(){const e=this;e.params.history.enabled&&e.history.destroy()},transitionEnd(){const e=this;e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)}}};const Zs={onHashCange(){const e=this,t=te.location.hash.replace("#",""),n=e.slides.eq(e.activeIndex).attr("data-hash");if(t!==n){const a=e.$wrapperEl.children(`.${e.params.slideClass}[data-hash="${t}"]`).index();if(typeof a>"u")return;e.slideTo(a)}},setHash(){const e=this;if(!(!e.hashNavigation.initialized||!e.params.hashNavigation.enabled))if(e.params.hashNavigation.replaceState&&Mt.history&&Mt.history.replaceState)Mt.history.replaceState(null,null,`#${e.slides.eq(e.activeIndex).attr("data-hash")}`||"");else{const t=e.slides.eq(e.activeIndex),n=t.attr("data-hash")||t.attr("data-history");te.location.hash=n||""}},init(){const e=this;if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;e.hashNavigation.initialized=!0;const t=te.location.hash.replace("#","");if(t)for(let a=0,i=e.slides.length;a<i;a+=1){const r=e.slides.eq(a);if((r.attr("data-hash")||r.attr("data-history"))===t&&!r.hasClass(e.params.slideDuplicateClass)){const u=r.index();e.slideTo(u,0,e.params.runCallbacksOnInit,!0)}}e.params.hashNavigation.watchState&&wt(Mt).on("hashchange",e.hashNavigation.onHashCange)},destroy(){const e=this;e.params.hashNavigation.watchState&&wt(Mt).off("hashchange",e.hashNavigation.onHashCange)}};var W1={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create(){const e=this;yt.extend(e,{hashNavigation:{initialized:!1,init:Zs.init.bind(e),destroy:Zs.destroy.bind(e),setHash:Zs.setHash.bind(e),onHashCange:Zs.onHashCange.bind(e)}})},on:{init(){const e=this;e.params.hashNavigation.enabled&&e.hashNavigation.init()},destroy(){const e=this;e.params.hashNavigation.enabled&&e.hashNavigation.destroy()},transitionEnd(){const e=this;e.hashNavigation.initialized&&e.hashNavigation.setHash()}}};const Js={run(){const e=this,t=e.slides.eq(e.activeIndex);let n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=yt.nextTick(()=>{e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))},n)},start(){const e=this;return typeof e.autoplay.timeout<"u"||e.autoplay.running?!1:(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0)},stop(){const e=this;return!e.autoplay.running||typeof e.autoplay.timeout>"u"?!1:(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0)},pause(e){const t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,e===0||!t.params.autoplay.waitForTransition?(t.autoplay.paused=!1,t.autoplay.run()):(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd))))}};var _1={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create(){const e=this;yt.extend(e,{autoplay:{running:!1,paused:!1,run:Js.run.bind(e),start:Js.start.bind(e),stop:Js.stop.bind(e),pause:Js.pause.bind(e),onTransitionEnd(t){!e||e.destroyed||!e.$wrapperEl||t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init(){const e=this;e.params.autoplay.enabled&&e.autoplay.start()},beforeTransitionStart(e,t){const n=this;n.autoplay.running&&(t||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(e):n.autoplay.stop())},sliderFirstMove(){const e=this;e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},destroy(){const e=this;e.autoplay.running&&e.autoplay.stop()}}};const Ug={setTranslate(){const e=this,{slides:t}=e;for(let n=0;n<t.length;n+=1){const a=e.slides.eq(n);let r=-a[0].swiperSlideOffset;e.params.virtualTranslate||(r-=e.translate);let s=0;e.isHorizontal()||(s=r,r=0);const u=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(a[0].progress),0):1+Math.min(Math.max(a[0].progress,-1),0);a.css({opacity:u}).transform(`translate3d(${r}px, ${s}px, 0px)`)}},setTransition(e){const t=this,{slides:n,$wrapperEl:a}=t;if(n.transition(e),t.params.virtualTranslate&&e!==0){let i=!1;n.transitionEnd(()=>{if(i||!t||t.destroyed)return;i=!0,t.animating=!1;const r=["webkitTransitionEnd","transitionend"];for(let s=0;s<r.length;s+=1)a.trigger(r[s])})}}};var V1={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){const e=this;yt.extend(e,{fadeEffect:{setTranslate:Ug.setTranslate.bind(e),setTransition:Ug.setTransition.bind(e)}})},on:{beforeInit(){const e=this;if(e.params.effect!=="fade")return;e.classNames.push(`${e.params.containerModifierClass}fade`);const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};yt.extend(e.params,t),yt.extend(e.originalParams,t)},setTranslate(){const e=this;e.params.effect==="fade"&&e.fadeEffect.setTranslate()},setTransition(e){const t=this;t.params.effect==="fade"&&t.fadeEffect.setTransition(e)}}};const Yg={setTranslate(){const e=this,{$el:t,$wrapperEl:n,slides:a,width:i,height:r,rtlTranslate:s,size:u}=e,c=e.params.cubeEffect,h=e.isHorizontal(),m=e.virtual&&e.params.virtual.enabled;let x=0,w;c.shadow&&(h?(w=n.find(".swiper-cube-shadow"),w.length===0&&(w=wt('<div class="swiper-cube-shadow"></div>'),n.append(w)),w.css({height:`${i}px`})):(w=t.find(".swiper-cube-shadow"),w.length===0&&(w=wt('<div class="swiper-cube-shadow"></div>'),t.append(w))));for(let E=0;E<a.length;E+=1){const z=a.eq(E);let A=E;m&&(A=parseInt(z.attr("data-swiper-slide-index"),10));let k=A*90,S=Math.floor(k/360);s&&(k=-k,S=Math.floor(-k/360));const N=Math.max(Math.min(z[0].progress,1),-1);let L=0,j=0,f=0;A%4===0?(L=-S*4*u,f=0):(A-1)%4===0?(L=0,f=-S*4*u):(A-2)%4===0?(L=u+S*4*u,f=u):(A-3)%4===0&&(L=-u,f=3*u+u*4*S),s&&(L=-L),h||(j=L,L=0);const G=`rotateX(${h?0:-k}deg) rotateY(${h?k:0}deg) translate3d(${L}px, ${j}px, ${f}px)`;if(N<=1&&N>-1&&(x=A*90+N*90,s&&(x=-A*90-N*90)),z.transform(G),c.slideShadows){let V=h?z.find(".swiper-slide-shadow-left"):z.find(".swiper-slide-shadow-top"),F=h?z.find(".swiper-slide-shadow-right"):z.find(".swiper-slide-shadow-bottom");V.length===0&&(V=wt(`<div class="swiper-slide-shadow-${h?"left":"top"}"></div>`),z.append(V)),F.length===0&&(F=wt(`<div class="swiper-slide-shadow-${h?"right":"bottom"}"></div>`),z.append(F)),V.length&&(V[0].style.opacity=Math.max(-N,0)),F.length&&(F[0].style.opacity=Math.max(N,0))}}if(n.css({"-webkit-transform-origin":`50% 50% -${u/2}px`,"-moz-transform-origin":`50% 50% -${u/2}px`,"-ms-transform-origin":`50% 50% -${u/2}px`,"transform-origin":`50% 50% -${u/2}px`}),c.shadow)if(h)w.transform(`translate3d(0px, ${i/2+c.shadowOffset}px, ${-i/2}px) rotateX(90deg) rotateZ(0deg) scale(${c.shadowScale})`);else{const E=Math.abs(x)-Math.floor(Math.abs(x)/90)*90,z=1.5-(Math.sin(E*2*Math.PI/360)/2+Math.cos(E*2*Math.PI/360)/2),A=c.shadowScale,k=c.shadowScale/z,S=c.shadowOffset;w.transform(`scale3d(${A}, 1, ${k}) translate3d(0px, ${r/2+S}px, ${-r/2/k}px) rotateX(-90deg)`)}const P=Ia.isSafari||Ia.isUiWebView?-u/2:0;n.transform(`translate3d(0px,0,${P}px) rotateX(${e.isHorizontal()?0:x}deg) rotateY(${e.isHorizontal()?-x:0}deg)`)},setTransition(e){const t=this,{$el:n,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()&&n.find(".swiper-cube-shadow").transition(e)}};var G1={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create(){const e=this;yt.extend(e,{cubeEffect:{setTranslate:Yg.setTranslate.bind(e),setTransition:Yg.setTransition.bind(e)}})},on:{beforeInit(){const e=this;if(e.params.effect!=="cube")return;e.classNames.push(`${e.params.containerModifierClass}cube`),e.classNames.push(`${e.params.containerModifierClass}3d`);const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};yt.extend(e.params,t),yt.extend(e.originalParams,t)},setTranslate(){const e=this;e.params.effect==="cube"&&e.cubeEffect.setTranslate()},setTransition(e){const t=this;t.params.effect==="cube"&&t.cubeEffect.setTransition(e)}}};const Xg={setTranslate(){const e=this,{slides:t,rtlTranslate:n}=e;for(let a=0;a<t.length;a+=1){const i=t.eq(a);let r=i[0].progress;e.params.flipEffect.limitRotation&&(r=Math.max(Math.min(i[0].progress,1),-1));const s=i[0].swiperSlideOffset;let c=-180*r,h=0,m=-s,x=0;if(e.isHorizontal()?n&&(c=-c):(x=m,m=0,h=-c,c=0),i[0].style.zIndex=-Math.abs(Math.round(r))+t.length,e.params.flipEffect.slideShadows){let w=e.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),P=e.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");w.length===0&&(w=wt(`<div class="swiper-slide-shadow-${e.isHorizontal()?"left":"top"}"></div>`),i.append(w)),P.length===0&&(P=wt(`<div class="swiper-slide-shadow-${e.isHorizontal()?"right":"bottom"}"></div>`),i.append(P)),w.length&&(w[0].style.opacity=Math.max(-r,0)),P.length&&(P[0].style.opacity=Math.max(r,0))}i.transform(`translate3d(${m}px, ${x}px, 0px) rotateX(${h}deg) rotateY(${c}deg)`)}},setTransition(e){const t=this,{slides:n,activeIndex:a,$wrapperEl:i}=t;if(n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&e!==0){let r=!1;n.eq(a).transitionEnd(function(){if(r||!t||t.destroyed)return;r=!0,t.animating=!1;const u=["webkitTransitionEnd","transitionend"];for(let c=0;c<u.length;c+=1)i.trigger(u[c])})}}};var U1={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create(){const e=this;yt.extend(e,{flipEffect:{setTranslate:Xg.setTranslate.bind(e),setTransition:Xg.setTransition.bind(e)}})},on:{beforeInit(){const e=this;if(e.params.effect!=="flip")return;e.classNames.push(`${e.params.containerModifierClass}flip`),e.classNames.push(`${e.params.containerModifierClass}3d`);const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};yt.extend(e.params,t),yt.extend(e.originalParams,t)},setTranslate(){const e=this;e.params.effect==="flip"&&e.flipEffect.setTranslate()},setTransition(e){const t=this;t.params.effect==="flip"&&t.flipEffect.setTransition(e)}}};const Zg={setTranslate(){const e=this,{width:t,height:n,slides:a,$wrapperEl:i,slidesSizesGrid:r}=e,s=e.params.coverflowEffect,u=e.isHorizontal(),c=e.translate,h=u?-c+t/2:-c+n/2,m=u?s.rotate:-s.rotate,x=s.depth;for(let w=0,P=a.length;w<P;w+=1){const E=a.eq(w),z=r[w],A=E[0].swiperSlideOffset,k=(h-A-z/2)/z*s.modifier;let S=u?m*k:0,N=u?0:m*k,L=-x*Math.abs(k),j=u?0:s.stretch*k,f=u?s.stretch*k:0;Math.abs(f)<.001&&(f=0),Math.abs(j)<.001&&(j=0),Math.abs(L)<.001&&(L=0),Math.abs(S)<.001&&(S=0),Math.abs(N)<.001&&(N=0);const G=`translate3d(${f}px,${j}px,${L}px) rotateX(${N}deg) rotateY(${S}deg)`;if(E.transform(G),E[0].style.zIndex=-Math.abs(Math.round(k))+1,s.slideShadows){let V=u?E.find(".swiper-slide-shadow-left"):E.find(".swiper-slide-shadow-top"),F=u?E.find(".swiper-slide-shadow-right"):E.find(".swiper-slide-shadow-bottom");V.length===0&&(V=wt(`<div class="swiper-slide-shadow-${u?"left":"top"}"></div>`),E.append(V)),F.length===0&&(F=wt(`<div class="swiper-slide-shadow-${u?"right":"bottom"}"></div>`),E.append(F)),V.length&&(V[0].style.opacity=k>0?k:0),F.length&&(F[0].style.opacity=-k>0?-k:0)}}if(qt.pointerEvents||qt.prefixedPointerEvents){const w=i[0].style;w.perspectiveOrigin=`${h}px 50%`}},setTransition(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}};var Y1={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create(){const e=this;yt.extend(e,{coverflowEffect:{setTranslate:Zg.setTranslate.bind(e),setTransition:Zg.setTransition.bind(e)}})},on:{beforeInit(){const e=this;e.params.effect==="coverflow"&&(e.classNames.push(`${e.params.containerModifierClass}coverflow`),e.classNames.push(`${e.params.containerModifierClass}3d`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate(){const e=this;e.params.effect==="coverflow"&&e.coverflowEffect.setTranslate()},setTransition(e){const t=this;t.params.effect==="coverflow"&&t.coverflowEffect.setTransition(e)}}};const Wc={init(){const e=this,{thumbs:t}=e.params,n=e.constructor;t.swiper instanceof n?(e.thumbs.swiper=t.swiper,yt.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),yt.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):yt.isObject(t.swiper)&&(e.thumbs.swiper=new n(yt.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick(){const e=this,t=e.thumbs.swiper;if(!t)return;const n=t.clickedIndex,a=t.clickedSlide;if(a&&wt(a).hasClass(e.params.thumbs.slideThumbActiveClass)||typeof n>"u"||n===null)return;let i;if(t.params.loop?i=parseInt(wt(t.clickedSlide).attr("data-swiper-slide-index"),10):i=n,e.params.loop){let r=e.activeIndex;e.slides.eq(r).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,r=e.activeIndex);const s=e.slides.eq(r).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(),u=e.slides.eq(r).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index();typeof s>"u"?i=u:typeof u>"u"?i=s:u-r<r-s?i=u:i=s}e.slideTo(i)},update(e){const t=this,n=t.thumbs.swiper;if(!n)return;const a=n.params.slidesPerView==="auto"?n.slidesPerViewDynamic():n.params.slidesPerView;if(t.realIndex!==n.realIndex){let s=n.activeIndex,u;if(n.params.loop){n.slides.eq(s).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,s=n.activeIndex);const c=n.slides.eq(s).prevAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(),h=n.slides.eq(s).nextAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index();typeof c>"u"?u=h:typeof h>"u"?u=c:h-s===s-c?u=s:h-s<s-c?u=h:u=c}else u=t.realIndex;n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(u)<0&&(n.params.centeredSlides?u>s?u=u-Math.floor(a/2)+1:u=u+Math.floor(a/2)-1:u>s&&(u=u-a+1),n.slideTo(u,e?0:void 0))}let i=1;const r=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(i=t.params.slidesPerView),n.slides.removeClass(r),n.params.loop||n.params.virtual)for(let s=0;s<i;s+=1)n.$wrapperEl.children(`[data-swiper-slide-index="${t.realIndex+s}"]`).addClass(r);else for(let s=0;s<i;s+=1)n.slides.eq(t.realIndex+s).addClass(r)}};var X1={name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create(){const e=this;yt.extend(e,{thumbs:{swiper:null,init:Wc.init.bind(e),update:Wc.update.bind(e),onThumbClick:Wc.onThumbClick.bind(e)}})},on:{beforeInit(){const e=this,{thumbs:t}=e.params;!t||!t.swiper||(e.thumbs.init(),e.thumbs.update(!0))},slideChange(){const e=this;e.thumbs.swiper&&e.thumbs.update()},update(){const e=this;e.thumbs.swiper&&e.thumbs.update()},resize(){const e=this;e.thumbs.swiper&&e.thumbs.update()},observerUpdate(){const e=this;e.thumbs.swiper&&e.thumbs.update()},setTransition(e){const n=this.thumbs.swiper;n&&n.setTransition(e)},beforeDestroy(){const e=this,t=e.thumbs.swiper;t&&e.thumbs.swiperCreated&&t&&t.destroy()}}};const Z1=[E1,P1,M1,A1,N1,L1,z1,D1,I1,j1,R1,O1,K1,$1,q1,H1,F1,W1,_1,V1,G1,U1,Y1,X1];typeof An.use>"u"&&(An.use=An.Class.use,An.installModule=An.Class.installModule);An.use(Z1);const J1=Object.freeze(Object.defineProperty({__proto__:null,default:An},Symbol.toStringTag,{value:"Module"})),Q1=gy(J1);var ao={};Object.defineProperty(ao,"__esModule",{value:!0});var yl=Ln();ao.classNames=function(e){return typeof e=="string"?e.split(".").join(" ").trim():e instanceof HTMLElement?e.className:""};ao.validateChildren=function(e){var t=!0;return Array.isArray(e)?yl.Children.forEach(e,function(n){yl.isValidElement(n)||(t=!1)}):t=yl.isValidElement(e),t};ao.isReactElement=function(e){return yl.isValidElement(e)&&(typeof e.type=="string"||typeof e.type=="function"||typeof e.type=="object")};ao.isModuleAvailable=function(e,t){for(var n=!1,a=0;a<e.length;a++)if(e[a].name===t){n=!0;break}return n};var Xd=ei&&ei.__assign||function(){return Xd=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Xd.apply(this,arguments)},tC=ei&&ei.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},Ay=ei&&ei.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mh,"__esModule",{value:!0});var En=tC(Ln()),eC=Ay(Q1),nC=Ay(fh),Zi=ao,bh=function(e){var t=e.activeSlideKey,n=e.ContainerEl,a=e.children,i=e.containerClass,r=e.getSwiper,s=e.navigation,u=e.noSwiping,c=e.pagination,h=e.parallax,m=e.parallaxEl,x=e.WrapperEl,w=e.wrapperClass,P=e.rebuildOnUpdate,E=e.renderScrollbar,z=e.renderPagination,A=e.renderPrevButton,k=e.renderNextButton,S=e.renderParallax,N=e.rtl,L=e.scrollbar,j=e.shouldSwiperUpdate,f=e.slideClass,G=e.loop,V=En.createRef(),F=En.useRef(null);if(!a||!n||!x)return null;if(!Zi.validateChildren(a))return console.warn("Children should be react element or an array of react element!!"),null;var pt=function(){if(!t)return null;var v=0,Q=G?1:0;return En.Children.forEach(a,function(st){En.isValidElement(st)&&(st.key===t&&(v=Q),Q+=1)}),v},ft=function(v){typeof r=="function"&&r(v)},ot=function(){F.current!==null&&(F.current.destroy(!0,!0),F.current=null,ft(F.current))},Z=function(){V.current&&F.current===null&&(F.current=new eC.default(V.current,nC.default({},e)),ft(F.current))},$=function(){ot(),Z()},o=function(){F.current!==null&&(F.current.update(),ft(F.current))},tt=function(v){if(!Zi.isReactElement(v))return null;var Q=[f,v.props.className];return u&&Q.push("swiper-no-swiping"),En.cloneElement(v,Xd({},v.props,{className:Q.join(" ").trim()}))};return En.useEffect(function(){Z();var v=pt();return F.current!==null&&v!==null&&F.current.slideTo(v),function(){return ot()}},[]),En.useEffect(function(){if(F.current!==null){if(P)$();else if(j){o();var v=F.current.slides.length;if(v<=F.current.activeIndex){var Q=Math.max(v-1,0);F.current.slideTo(Q)}}var st=pt();st!==null&&F.current.slideTo(st)}}),En.default.createElement(n,{className:i,dir:N&&"rtl",ref:V},h&&m&&S&&S(e),En.default.createElement(x,{className:w},En.Children.map(a,tt)),c&&c.el&&z&&z(e),L&&L.el&&E&&E(e),s&&s.nextEl&&k&&k(e),s&&s.prevEl&&A&&A(e))};bh.defaultProps={containerClass:"swiper-container",wrapperClass:"swiper-wrapper",slideClass:"swiper-slide",ContainerEl:"div",WrapperEl:"div",renderScrollbar:function(e){var t=e.scrollbar;return t?En.default.createElement("div",{className:Zi.classNames(t.el)}):null},renderPagination:function(e){var t=e.pagination;return t?En.default.createElement("div",{className:Zi.classNames(t.el)}):null},renderPrevButton:function(e){var t=e.navigation;return t?En.default.createElement("div",{className:Zi.classNames(t.prevEl)}):null},renderNextButton:function(e){var t=e.navigation;return t?En.default.createElement("div",{className:Zi.classNames(t.nextEl)}):null},renderParallax:function(e){var t=e.parallaxEl;return t?En.default.createElement("div",{className:Zi.classNames(t.el),"data-swiper-parallax":t.value}):null}};bh.displayName="ReactIdSwiper";mh.default=bh;var aC=ei&&ei.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ey,"__esModule",{value:!0});var iC=aC(mh),rC=Ey.default=iC.default;(function(){function e(N,L){var j=N.search(P);if(j===-1)return{b:L+" "+N,a:""};if(N[j]===",")return{b:L+" "+N.substr(0,j),a:N.substr(j+1)};var f=!0,G=!1;j=N.search(/\S/);var V=0;t:for(;j<N.length;++j){var F=N[j];switch(F){case"[":F=w.exec(N.substr(j)),j+=(F?F[0].length:1)-1;continue;case"(":++V;continue;case":":if(f)if(E.test(N.substr(j))){if(V)return null}else continue;else continue;N=N.substring(0,j)+L+N.substr(j+6),j+=L.length,G=!0,--j;continue;case")":V&&--V;continue}if(!V)switch(F){case",":break t;case" ":case">":case"~":case"+":f&&(f=!1)}}return{b:(G?"":L+" ")+N.substr(0,j),a:N.substr(j+1)}}function t(N,L,j,f){if(N instanceof CSSMediaRule)for(j=N.cssRules.length,f=0;f<j;++f)t(N.cssRules[f],L,N,f);else if(N instanceof CSSStyleRule){t:{for(var G=N.selectorText,V=[];G;){if(G=e(G,L),G===null){L=":not(*)";break t}V.push(G.b),G=G.a}L=V.join(", ")}m?N.selectorText=L:(N=N.style.cssText,j.deleteRule(f),j.insertRule(L+" {"+N+"}",f))}}function n(N,L){var j=N.parentStyleSheet,f;for(f=0;f<j.rules.length&&j.rules[f]!==N;++f);return j.removeRule(f),j.insertRule(L,f),j.rules[f]}function a(N){var L=null;try{L=N.cssRules}catch(j){if(j instanceof DOMException)return j;throw j}return L?null:{code:DOMException.SECURITY_ERR}}function i(N,L,j){j?N.setAttribute(L,""):N.removeAttribute(L)}function r(N,L,j){j?N.classList.add(L):N.classList.remove(L)}function s(N){var L=N.scoped&&document.body.contains(N)?N.parentNode:null,j=x.get(N);if(j){if(L)N.sheet&&z(N.sheet,j.prefix);else{x.delete(N);var f=N.textContent;N.textContent="",N.textContent=f}return j.parent!==L&&(j.parent&&A(j.parent,j.attrName,!1),L&&A(L,j.attrName,!0),j.parent=L),!1}L&&(j=""+h.prefix+ ++k,f=A===i?"["+j+"]":"."+j,x.set(N,{attrName:j,prefix:f,parent:N.parentNode}),z(N.sheet,f),A(L,j,!0))}function u(){var N=window.scopedCSS;if(typeof N=="object"){for(var L in h)L in N&&(h[L]=N[L]);h.applyToClass&&(A=r)}for(S.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["scoped"]}),N=document.body.getElementsByTagName("style"),L=0;L<N.length;++L)s(N[L])}var c=document.createElement("style");if(!("scoped"in c)){var h={applyToClass:!1,prefix:"__scoped_"};c.textContent=".x{color:red;}",document.head.appendChild(c),c.sheet.cssRules[0].selectorText=".change";var m=c.sheet.cssRules[0].selectorText===".change";document.head.removeChild(c),Object.defineProperty(HTMLStyleElement.prototype,"scoped",{enumerable:!0,get:function(){return this.hasAttribute("scoped")},set:function(N){N?this.setAttribute("scoped",this.getAttribute("scoped")||""):this.removeAttribute("scoped")}});var x=new Map,w=/^\[.*?(?:(["'])(?:.|\\\1)*\1.*)*\]/,P=/([([,]|:scope\b)/,E=/^:scope\b/,z=function(){function N(V,F){if(L.get(V)!==F){var pt=a(V);if(pt)switch(pt.code){case DOMException.SECURITY_ERR:var ft=new XMLHttpRequest;ft.responseType="blob",ft.open("GET",V.href);var ot=n(V.ownerRule,"@import url('data:text/css;base64,')");ft.onload=function(){var o=URL.createObjectURL(ft.response),tt=n(ot,"@import '"+o+"'");j.set(tt,F),G(),URL.revokeObjectURL(o)},ft.send();return;case DOMException.INVALID_ACCESS_ERR:f.set(V,F),G();return;default:throw pt}L.set(V,F),pt=V.cssRules.length;for(var Z=0;Z<pt;++Z){var $=V.cssRules[Z];$ instanceof CSSImportRule?$.styleSheet?N($.styleSheet,F):(j.set($,F),G()):t($,F,V,Z)}return!0}}var L=new WeakMap,j=new Map,f=new Map,G=function(){function V(){var pt=!1;F=0,j.forEach(function(ft,ot){if(ot.styleSheet)N(ot.styleSheet,ft);else{t:{for(ft=ot.parentStyleSheet;ft;){if(ft.ownerNode){ft=ft.ownerNode;break t}ft=ft.parentStyleSheet}ft=null}if(ft){pt=!0;return}}j.delete(ot)}),f.forEach(function(ft,ot){a(ot)?pt=!0:(N(ot,ft),f.delete(ot))}),pt&&(F=window.requestAnimationFrame(V))}var F=0;return function(){F=F||window.requestAnimationFrame(V)}}();return N}(),A=i,k=0,S=new MutationObserver(function(N){function L(f){for(var G=f?f.length:0;G;){var V=f[--G];if(V instanceof HTMLElement)if(V instanceof HTMLStyleElement)j.add(V);else{V=V.getElementsByTagName("style");for(var F=V.length;F;)j.add(V[--F])}}}var j=new Set;N.forEach(function(f){f.target instanceof HTMLStyleElement?j.add(f.target):(L(f.addedNodes),L(f.removedNodes))}),j.forEach(s)});document.readyState==="loading"?window.addEventListener("DOMContentLoaded",u):u()}})();class Ur{constructor(){this.handlers=[]}subscribe(t){this.handlers.indexOf(t)===-1&&this.handlers.push(t)}unsubscribe(t){this.handlers=this.handlers.filter(n=>n!==t)}raise(t){this.handlers.slice(0).forEach(n=>n(t))}}class oC{static getActualUrlFromCSSPropertyValue(t){const n=t.match(/.*url\((['"])(.*?)\1\).*/i);return n?n[2]:""}}const Ca=class Ca{constructor(){this.animationDuration=3e3,this.animatableCanvas=null,window.addEventListener("orientationchange",()=>window.setTimeout(()=>this.adjustAnimationWrapper(this.currentPage),200))}static pageHasAnimation(t){return!!Ca.getAnimatableCanvas(t)}static getAnimationCanvas(t){if(t.firstElementChild&&t.firstElementChild.classList.contains("bloom-animationBackground")){const n=t.firstElementChild;if(n.firstElementChild&&n.firstElementChild.classList.contains(Ca.wrapperClassName)){const a=n.firstElementChild;if(a.firstElementChild&&a.firstElementChild.hasAttribute("data-initialrect"))return a.firstElementChild}}return null}static getAnimatableCanvas(t){const n=[].slice.call(t.getElementsByClassName("bloom-canvas")).find(a=>!a.closest(".bloom-animationBackground")&&!!a.dataset.initialrect);return n||[].slice.call(t.getElementsByClassName("bloom-imageContainer")).find(a=>!!a.dataset.initialrect)}HandlePageBeforeVisible(t){this.shouldAnimate(t)||this.removeAnimationWrappers(t)}HandlePageVisible(t){this.shouldAnimate(t)&&(this.currentPage=t,this.animatableCanvas=Ca.getAnimatableCanvas(t),this.currentPage===this.lastDurationPage&&this.setupAnimation(t,!1))}HandlePageDurationAvailable(t,n){this.shouldAnimate(t)&&(this.animationDuration=n,this.lastDurationPage=t,this.currentPage===this.lastDurationPage&&this.setupAnimation(t,!1))}resumeAnimation(){!this.PlayAnimations||!this.animationEngine||this.animationEngine.resume()}PauseAnimation(){!this.PlayAnimations||!this.animationEngine||this.animationEngine.pause()}PauseOnFirstFrame(){!this.PlayAnimations||!this.animationEngine||(this.animationEngine.showInitialState(),this.animationEngine.pause())}setupAnimation(t,n){if(!this.PlayAnimations||!this.animatableCanvas)return;let a=t.firstElementChild,i=null;if(!a||!a.classList.contains("bloom-animationBackground")){a=document.createElement("div");for(let u=0;u<this.animatableCanvas.classList.length;u++)a.classList.add(this.animatableCanvas.classList[u]);a.classList.add("bloom-animationBackground");const r=this.animatableCanvas.cloneNode(!0),s=()=>{const u=this.animatableCanvas.style.backgroundImage;u?r.style.backgroundImage=u:requestAnimationFrame(s)};r.hasAttribute("data-imgsizebasedon")||requestAnimationFrame(s),i=document.createElement("div"),i.classList.add(Ca.wrapperClassName),i.appendChild(r),i.style.visibility="hidden",a.appendChild(i),t.insertBefore(a,t.firstChild),this.applyCanvasAspectRatioToAnimationWrapper(t,i,r)}else i=a.firstElementChild,i.hasAttribute("data-aspectRatio")?(this.placeAnimationWrapper(i),this.createAndPlayAnimation(t)):this.applyCanvasAspectRatioToAnimationWrapper(t,i,i.firstElementChild)}createAndPlayAnimation(t){const n=Ca.getAnimationCanvas(t);if(this.animationEngine&&this.animationEngine.endAnimation(),n){const a=n.getAttribute("data-initialrect"),i=n.getAttribute("data-finalrect");this.animationEngine=new sC(a,i,this.animationDuration,n),this.animationEngine.startAnimation()}}applyCanvasAspectRatioToAnimationWrapper(t,n,a){if(t.hasAttribute("data-aspectRatio"))this.placeAnimationWrapper(n),this.createAndPlayAnimation(t);else if(a.hasAttribute("data-imgsizebasedon")){const i=a.getAttribute("data-imgsizebasedon").split(",").map(parseFloat);n.setAttribute("data-aspectRatio",(i[0]/i[1]).toString()),this.placeAnimationWrapper(n),this.createAndPlayAnimation(t)}else{const i=()=>{if(a.style.backgroundImage){const r=new Image;r.addEventListener("load",()=>{n.setAttribute("data-aspectRatio",(r.naturalWidth/r.naturalHeight).toString()),this.placeAnimationWrapper(n),this.createAndPlayAnimation(t)}),r.src=oC.getActualUrlFromCSSPropertyValue(a.style.backgroundImage)}else requestAnimationFrame(i)};requestAnimationFrame(i)}}placeAnimationWrapper(t){const n=parseFloat(t.getAttribute("data-aspectRatio")),a=t.parentElement,i=a.clientWidth,r=a.clientHeight,s=i/r;if(n<s){const u=r*n;t.style.height="100%",t.style.width=`${u}px`,t.style.left=`${(i-u)/2}px`}else{const u=i/n;t.style.width="100%",t.style.height=`${u}px`,t.style.top=`${(r-u)/2}px`}t.style.overflow="hidden",t.style.visibility="visible",this.placeCanvasByScale(t,t.firstElementChild)}placeCanvasByScale(t,n){if(n.hasAttribute("data-imgsizebasedon")){const a=n.getAttribute("data-imgsizebasedon").split(",").map(parseFloat),i=[t.clientWidth,t.clientHeight];n.style.width=`${a[0]}px`,n.style.height=`${a[1]}px`,n.style.scale=`${i[0]/a[0]}`,n.style.top=`${(i[1]-a[1])/2}px`,n.style.left=`${(i[0]-a[0])/2}px`}}adjustAnimationWrapper(t){if(!t)return;if(!this.shouldAnimate(t)){this.removeAnimationWrappers(t);return}const n=this.getAnimationWrapper(t);n&&this.placeAnimationWrapper(n)}getAnimationWrapper(t){if(!t)return null;const n=Ca.getAnimationCanvas(t);if(!n||n.children.length!==1)return null;const a=n.firstElementChild;return a.classList.contains(Ca.wrapperClassName)?a:null}removeAnimationWrappers(t){t.firstElementChild&&t.firstElementChild.classList.contains("bloom-animationBackground")&&t.removeChild(t.firstElementChild)}shouldAnimate(t){return this.PlayAnimations&&t.getAttribute("class").indexOf("Landscape")>=0}};Ca.wrapperClassName="bloom-ui-animationWrapper";let jl=Ca;class sC{constructor(t,n,a,i){this.duration=a*1e3,this.totalElapsedTime=0,this.lastFrameTime=Date.now(),this.paused=!0,this.canvasToAnimate=i;const r=t.split(" ").map(parseFloat),s=n.split(" ").map(parseFloat);r.length!=4||s.length!=4||Math.min(...s)<0||Math.min(...r)<0||r[0]+r[2]>1||r[1]+r[3]>1||s[0]+s[2]>1||s[1]+s[3]>1?(this.initialScale=1,this.finalScale=1,this.initialLeft=0,this.finalLeft=0,this.initialTop=0,this.finalTop=0):(r[0],s[0],r[1],s[1],this.initialScale=1/Math.min(r[2],r[3]),this.initialScale==1&&(this.initialScale=1.0001),this.finalScale=1/Math.min(s[2],s[3]),this.finalScale==1&&(this.finalScale=1.0001),this.initialLeft=this.initialScale*100*(.5-(.5*r[2]+r[0])),this.initialTop=this.initialScale*100*(.5-(.5*r[3]+r[1])),this.finalLeft=this.finalScale*100*(.5-(.5*s[2]+s[0])),this.finalTop=this.finalScale*100*(.5-(.5*s[3]+s[1])))}getScaleAndPosition(){let t=this.totalElapsedTime/this.duration;t=Math.min(1,Math.max(0,t));const n=this.easingFunction(t),a=this.initialScale+(this.finalScale-this.initialScale)*n,i=this.initialLeft+(this.finalLeft-this.initialLeft)*n,r=this.initialTop+(this.finalTop-this.initialTop)*n;return{scale:a,left:i,top:r}}easingFunction(t){return-1*(Math.cos(t*Math.PI)-1)/2}advanceAnimation(){if(this.paused)return;const t=Date.now();if(this.totalElapsedTime+=t-this.lastFrameTime,this.totalElapsedTime>=this.duration)return;const{scale:n,left:a,top:i}=this.getScaleAndPosition();this.canvasToAnimate.style.transform=`translate(${a}%, ${i}%) scale(${n})`,this.lastFrameTime=t,requestAnimationFrame(()=>this.advanceAnimation())}pause(){this.paused=!0}resume(){this.paused=!1,this.lastFrameTime=Date.now(),this.advanceAnimation()}startAnimation(){this.paused=!1,this.totalElapsedTime=0,this.lastFrameTime=Date.now(),this.advanceAnimation()}endAnimation(){this.totalElapsedTime=this.duration+1}showInitialState(){this.canvasToAnimate.style.transform=`translate(${this.initialLeft}%, ${this.initialTop}%) scale(${this.initialScale})`}}var Ge=(e=>(e[e.NewPage=0]="NewPage",e[e.NewPageMediaPaused=1]="NewPageMediaPaused",e[e.VideoPlaying=2]="VideoPlaying",e[e.VideoPaused=3]="VideoPaused",e[e.AudioPlaying=4]="AudioPlaying",e[e.AudioPaused=5]="AudioPaused",e[e.MediaFinished=6]="MediaFinished",e))(Ge||{});let yn=0;function Mn(e){yn=e}let Zd;function lC(e){Zd=e}let bl;function uC(e){bl=e}let Ny=()=>{};function cC(e){Ny=e??(()=>{})}let Jd="";function dC(e){Jd=e}function fC(e){const t=e.lastIndexOf("/");return e.substring(0,t)}function wh(){return Jd||fC(window.location.href)}function hC(e){const t=e.map((n,a)=>({tabindex:pC(n),index:a,item:n}));return t.sort((n,a)=>!n.tabindex||!a.tabindex||n.tabindex===a.tabindex?n.index-a.index:parseInt(n.tabindex,10)-parseInt(a.tabindex,10)),t.map(n=>n.item)}function pC(e){let t=e;for(;t&&!t.classList.contains("bloom-translationGroup");)t=t.parentElement;return t&&t.getAttribute("tabindex")||"999"}const gC="bloom-highlightSegment",Ly="ui-enableHighlight",kh="ui-disableHighlight",_c="ui-suppressHighlight";let Rl=3;function mC(e){Rl=e}const Ol="audio-sentence",zy="bloom-imageDescription";let Ai=null,jo=0;function By(e){e!==Ai&&(jo&&clearTimeout(jo),jo=setTimeout(()=>{jo=0},3e3),Ai=e)}function Dy(){return Ai}let xh,Kl,Go="",Pa=[],bi=[];const ta=new Ur,Ya=new Ur,Pr=new Ur,Ma=new Ur;let ds=0,Iy=!0;function vC(e){Iy=e}let $l=null;function jy(e,t){if(!e&&!Ai)return;const n=e??Ai;Cu(Ph(n,t),n)}function Cu(e,t){By(t),Kl=e;const n=Ni();n&&(e.length==0&&n.pause(),n.currentTime=0),++ds,yC(e),Pa=hC(e).reverse();const a=Pa.length;if(a===0){Ya&&(Ya==null||Ya.raise(t)),Mn(4),ta&&(xh=window.setTimeout(()=>{Mn(6),ta==null||ta.raise(t)},Rl*1e3));return}const i=Pa[a-1];Wy(i,!0),Mn(4),$y()}const Ry=/[ \u00a0\u200b]{3,}/,Qs=new RegExp(Ry,"g");function yC(e){e.forEach(t=>{Eh("span[id]:not(.bloom-linebreak)",t,!0).forEach(a=>{Oy(a),!!a.innerText.match(Ry)&&Ky(a,a)})})}function Oy(e){e.classList.remove(kh),e.classList.remove(Ly),Array.from(e.children).forEach(t=>{Oy(t)})}function Ky(e,t){if(!(e.nodeType===Node.ELEMENT_NODE&&e.classList.contains(kh)))if(e.nodeType===Node.TEXT_NODE){bC(e,t);return}else Array.from(e.childNodes).forEach(a=>{Ky(a,t)})}function bC(e,t){if(e.nodeType!==Node.TEXT_NODE)throw new Error("Invalid argument to fixMultiSpaceInTextNode: node must be a TextNode");if(!e.nodeValue)return;Qs.lastIndex=0;const n=[];let a;for(;(a=Qs.exec(e.nodeValue))!=null;)a.forEach(s=>{n.push({text:s,startIndex:Qs.lastIndex-s.length,endIndex:Qs.lastIndex})});const i=[];if(n.length===0)i.push(Vc(e.nodeValue));else{let s=0;for(let u=0;u<n.length;++u){const c=n[u],h=e.nodeValue.slice(s,c.startIndex);if(s=c.endIndex,h&&i.push(Vc(h)),i.push(document.createTextNode(c.text)),u===n.length-1){const m=e.nodeValue.slice(c.endIndex);m&&i.push(Vc(m))}}}const r=e;if(r.parentNode&&i&&i.length>0){for(let s=0;s<i.length;++s){const u=i[s];r.parentNode.insertBefore(u,r)}r.parentNode.removeChild(r),t.classList.add(kh)}}function Vc(e){const t=document.createElement("span");return t.classList.add(Ly),t.appendChild(document.createTextNode(e)),t}function $y(){if(yn===4){const e=Ni();if(e){const t=Dy().querySelector(`#${Go}`);if(!t||!zC()){Tu();return}bi=[];const n=t.getAttribute("data-audioRecordingEndTimes");if(n){const r=t.querySelectorAll(`span.${gC}`),s=n.split(" "),u=Math.min(s.length,r.length);for(let c=u-1;c>=0;--c){const h=Number(s[c]);isNaN(h)||bi.push([r.item(c),h])}}const a=t;a&&Ma&&(Ma==null||Ma.raise(qy(a))),Qd=!1;const i=e.play();++ds,$l=new Date().getTime(),Sh(ds),Hy(i)}}}function qy(e){return e.closest("."+zy)!==null}function Hy(e,t){e&&e.catch&&e.catch(n=>{console.log("could not play sound: "+n+" "+"unknown"),n&&n.toString().includes("The play() request was interrupted by a call to pause().")&&console.log("See comment in narration.ts for possibly useful information regarding this error."),n.name==="NotAllowedError"&&Pr&&(Pr==null||Pr.raise())})}function Sh(e,t=0){const n=bi.length;if(n<=0)return;const a=bi[n-1],i=a[0],r=a[1];_y({newElement:i,shouldScrollToElement:!0,disableHighlightIfNoAudio:!1});let u=document.getElementById("bloom-audio-player").currentTime;u<=0&&(u=t);const c=Math.max(r-u,.1);setTimeout(()=>{Fy(e)},c*1e3)}function Fy(e){if(e!==ds||yn===5)return;const t=bi.length;if(t<=0)return;const n=document.getElementById("bloom-audio-player");if(n.ended||n.error)return;const a=n.currentTime,r=bi[t-1][1];if(a&&a<r){const s=r-a;setTimeout(()=>{Fy(e)},s*1e3);return}bi.pop(),Sh(e,r)}function Ch(e=document.body){const t=Array.from(e.ownerDocument.getElementsByClassName("ui-audioCurrent"));for(let a=0;a<t.length;a++)t[a].classList.remove("ui-audioCurrent");const n=e.ownerDocument.getElementsByClassName("ui-audioCurrentImg")[0];n&&n.classList.remove("ui-audioCurrentImg")}function Wy(e,t,n){xC(e),_y({newElement:e,shouldScrollToElement:!0,disableHighlightIfNoAudio:t,oldElement:n})}function _y({newElement:e,shouldScrollToElement:t,disableHighlightIfNoAudio:n,oldElement:a}){if(t)try{wC(e)}catch(u){console.error(u)}if(a===e)return;Ch(a||e);const i=Ni(),r=i.error!==null;!r&&n&&(i.currentTime>0||(e.classList.add(_c),i.addEventListener("playing",()=>{e.classList.remove(_c)}),i.addEventListener("error",()=>{e.classList.remove("ui-audioCurrent"),e.classList.remove(_c)}))),r||e.classList.add("ui-audioCurrent");const s=e.closest(".bloom-translationGroup");if(s&&s.classList.contains(zy)){const u=s.closest(".bloom-imageContainer");u&&u.classList.add("ui-audioCurrentImg")}}function wC(e){var n,a;if(bl!=null&&bl()||jo){const i=kC(e);i&&(i.scrollTop=0);return}let t=e;if(window.getComputedStyle(e.parentElement).position!=="static"){const i=e;t=document.createElement("div"),t.style.position="absolute",t.style.top=i.offsetTop+"px";const r=i.getBoundingClientRect(),s=i.parentElement,u=s==null?void 0:s.getBoundingClientRect(),c=u.width/s.offsetWidth,h=(r.left-u.left)/c;t.style.left=h+i.offsetWidth/2+"px",t.style.height=i.offsetHeight+"px",t.style.width="0",(n=e.parentElement)==null||n.insertBefore(t,e)}t.scrollIntoView({behavior:"smooth",block:"nearest"}),t!==e&&((a=t.parentElement)==null||a.removeChild(t))}function kC(e){return e.classList.contains("bloom-editable")?e:e.closest(".bloom-editable")}function xC(e){const t=SC(e),n=t?t.id:e.id;TC(n)}function SC(e){const t=CC(e);return!t||t.length===0?null:t[0]}function CC(e){const t=[];if(e)if(e.classList.contains(Ol))t.push(e);else{const n=e.getElementsByClassName(Ol);for(let a=0;a<n.length;++a){const i=n.item(a);i&&t.push(i)}}return t}function TC(e){(!Go||Go!==e)&&(Go=e,EC())}function EC(){const e=Ni();if(!e)return;e.currentTime>0&&!e.paused&&!e.ended&&Th();const t=PC(Go);Ny(t),e.setAttribute("src",t+"?nocache="+new Date().getTime()+"&optional=true")}function PC(e){return wh()+"/audio/"+e+".mp3"}function Ni(){return LC("bloom-audio-player",t=>{t.addEventListener("ended",MC),t.addEventListener("error",BC)})}function MC(){Tu()}function AC(){yn===4&&Tu(!1)}function Tu(e=!0){if(Ma&&(Ma==null||Ma.raise(!1)),Th(),Pa&&Pa.length>0){const t=Pa.pop(),n=Pa.length;if(n>0&&e){const a=Pa[n-1];Wy(a,!0),$y()}else NC(),Ch(t),Ni().pause()}}function NC(){Pa=[],bi=[],Ch(),ta==null||ta.raise(Ai),Ya==null||Ya.raise()}function Th(){if(!$l||!Zd)return;const t=(new Date().getTime()-$l)/1e3;Zd(t)}function LC(e,t){let n=document.querySelector("#"+e);return n&&!n.play&&(n.remove(),n=null),n||(n=document.createElement("audio"),n.setAttribute("id",e),document.body.appendChild(n),t(n)),n}function zC(e){return!0}let Qd=!1;function BC(){if(Qd){console.log("Already got error playing, not handling again");return}Qd=!0,console.log("Error playing, handling"),setTimeout(()=>{Tu()},100)}function Eh(e,t,n=!1){const a=[].slice.call((t||document).querySelectorAll(e));return n&&t&&t.matches(e)&&a.push(t),Iy?a:a.filter(i=>!qy(i))}function DC(e,t){var n=Eh(".bloom-editable",e).filter(a=>window.getComputedStyle(a).display!=="none");return t&&(n=n.filter(a=>!t.contains(a))),n}function IC(e,t){return DC(e||Ai,t)}function Ph(e,t){return[].concat.apply([],IC(e,t).map(n=>Eh(".audio-sentence",n,!0)))}function jC(e){return!!Ph(e).length}function RC(){if(yn!==4){if(Mn(4),Kl.length&&Ni())if(Pa.length){Hy(Ni().play()),$l=new Date().getTime(),Sh(ds);return}else{jy(null);return}ta==null||ta.raise(Ai)}}function OC(){yn!==5&&(KC(),Mn(5))}function KC(){const e=Ni();clearTimeout(xh),Kl&&Kl.length&&e&&(e.currentTime>0&&!e.paused&&!e.ended&&Th(),e.pause())}function Jg(e){let t=0;return Ph(e).forEach(n=>{const a=n.getAttribute("data-duration");a&&(t+=parseFloat(a))}),t<Rl&&(t=Rl),t}function $C(){clearTimeout(xh)}function wl(e,t){if(e.length===0){t();return}const n=e[0];n.networkState===HTMLMediaElement.NETWORK_NO_SOURCE&&n.readyState===HTMLMediaElement.HAVE_NOTHING?(ql(n),wl(e.slice(1),t)):(Vy(n),Mn(2),n.play().then(()=>{n.addEventListener("ended",()=>{wl(e.slice(1),t)},{once:!0})}).catch(i=>{console.error("Video play failed",i),ql(n),wl(e.slice(1),t)}))}const qC="Sorry, this video cannot be played in this browser.";function ql(e){const t=e.parentElement;if(t&&t.getElementsByClassName("video-error-message").length===0){const a=t.ownerDocument.createElement("div");a.className="video-error-message normal-style",a.textContent=qC,a.style.display="block",a.style.color="black",a.style.backgroundColor="rgba(255, 255, 255, 0.5)",a.style.position="absolute",a.style.left="10%",a.style.top="10%",a.style.width="80%",a.style.fontSize="x-large",t.appendChild(a)}}function Vy(e){const t=e.parentElement;if(t){const n=t.getElementsByClassName("video-error-message");for(;n.length>1;)t.removeChild(n[0])}}const HC=e=>{const t=document.createElement("div");return t.innerHTML=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
18
|
+
`),function(h){if(u=h.indexOf(":"),r=e.trim(h.substr(0,u)).toLowerCase(),s=e.trim(h.substr(u+1)),r){if(i[r]&&t.indexOf(r)>=0)return;r==="set-cookie"?i[r]=(i[r]?i[r]:[]).concat([s]):i[r]=i[r]?i[r]+", "+s:s}}),i},Nc}var Lc,Lg;function px(){if(Lg)return Lc;Lg=1;var e=oa;return Lc=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a"),i;function r(s){var u=s;return n&&(a.setAttribute("href",u),u=a.href),a.setAttribute("href",u),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return i=r(window.location.href),function(u){var c=e.isString(u)?r(u):u;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}(),Lc}var zc,zg;function gx(){if(zg)return zc;zg=1;var e=oa;return zc=e.isStandardBrowserEnv()?function(){return{write:function(a,i,r,s,u,c){var h=[];h.push(a+"="+encodeURIComponent(i)),e.isNumber(r)&&h.push("expires="+new Date(r).toGMTString()),e.isString(s)&&h.push("path="+s),e.isString(u)&&h.push("domain="+u),c===!0&&h.push("secure"),document.cookie=h.join("; ")},read:function(a){var i=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(a){this.write(a,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),zc}var Bc,Bg;function Dg(){if(Bg)return Bc;Bg=1;var e=oa,t=dx(),n=fx(),a=hx(),i=px(),r=ky();return Bc=function(u){return new Promise(function(h,m){var x=u.data,w=u.headers;e.isFormData(x)&&delete w["Content-Type"];var P=new XMLHttpRequest;if(u.auth){var E=u.auth.username||"",z=u.auth.password||"";w.Authorization="Basic "+btoa(E+":"+z)}if(P.open(u.method.toUpperCase(),n(u.url,u.params,u.paramsSerializer),!0),P.timeout=u.timeout,P.onreadystatechange=function(){if(!(!P||P.readyState!==4)&&!(P.status===0&&!(P.responseURL&&P.responseURL.indexOf("file:")===0))){var N="getAllResponseHeaders"in P?a(P.getAllResponseHeaders()):null,L=!u.responseType||u.responseType==="text"?P.responseText:P.response,j={data:L,status:P.status,statusText:P.statusText,headers:N,config:u,request:P};t(h,m,j),P=null}},P.onerror=function(){m(r("Network Error",u,null,P)),P=null},P.ontimeout=function(){m(r("timeout of "+u.timeout+"ms exceeded",u,"ECONNABORTED",P)),P=null},e.isStandardBrowserEnv()){var A=gx(),k=(u.withCredentials||i(u.url))&&u.xsrfCookieName?A.read(u.xsrfCookieName):void 0;k&&(w[u.xsrfHeaderName]=k)}if("setRequestHeader"in P&&e.forEach(w,function(N,L){typeof x>"u"&&L.toLowerCase()==="content-type"?delete w[L]:P.setRequestHeader(L,N)}),u.withCredentials&&(P.withCredentials=!0),u.responseType)try{P.responseType=u.responseType}catch(S){if(u.responseType!=="json")throw S}typeof u.onDownloadProgress=="function"&&P.addEventListener("progress",u.onDownloadProgress),typeof u.onUploadProgress=="function"&&P.upload&&P.upload.addEventListener("progress",u.onUploadProgress),u.cancelToken&&u.cancelToken.promise.then(function(N){P&&(P.abort(),m(N),P=null)}),x===void 0&&(x=null),P.send(x)})},Bc}var Rn=oa,mx=ux,vx={"Content-Type":"application/x-www-form-urlencoded"};function Ig(e,t){!Rn.isUndefined(e)&&Rn.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function yx(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u")&&(e=Dg()),e}var ku={adapter:yx(),transformRequest:[function(t,n){return mx(n,"Content-Type"),Rn.isFormData(t)||Rn.isArrayBuffer(t)||Rn.isBuffer(t)||Rn.isStream(t)||Rn.isFile(t)||Rn.isBlob(t)?t:Rn.isArrayBufferView(t)?t.buffer:Rn.isURLSearchParams(t)?(Ig(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Rn.isObject(t)?(Ig(n,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if(typeof t=="string")try{t=JSON.parse(t)}catch{}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};ku.headers={common:{Accept:"application/json, text/plain, */*"}};Rn.forEach(["delete","get","head"],function(t){ku.headers[t]={}});Rn.forEach(["post","put","patch"],function(t){ku.headers[t]=Rn.merge(vx)});var gh=ku,bx=oa;function xu(){this.handlers=[]}xu.prototype.use=function(t,n){return this.handlers.push({fulfilled:t,rejected:n}),this.handlers.length-1};xu.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};xu.prototype.forEach=function(t){bx.forEach(this.handlers,function(a){a!==null&&t(a)})};var wx=xu,kx=oa,xx=function(t,n,a){return kx.forEach(a,function(r){t=r(t,n)}),t},Dc,jg;function xy(){return jg||(jg=1,Dc=function(t){return!!(t&&t.__CANCEL__)}),Dc}var Sx=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},Cx=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},Rg=oa,Ic=xx,Tx=xy(),Ex=gh,Px=Sx,Mx=Cx;function jc(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Ax=function(t){jc(t),t.baseURL&&!Px(t.url)&&(t.url=Mx(t.baseURL,t.url)),t.headers=t.headers||{},t.data=Ic(t.data,t.headers,t.transformRequest),t.headers=Rg.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),Rg.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||Ex.adapter;return n(t).then(function(i){return jc(t),i.data=Ic(i.data,i.headers,t.transformResponse),i},function(i){return Tx(i)||(jc(t),i&&i.response&&(i.response.data=Ic(i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Nx=gh,Gr=oa,Og=wx,Lx=Ax;function Su(e){this.defaults=e,this.interceptors={request:new Og,response:new Og}}Su.prototype.request=function(t){typeof t=="string"&&(t=Gr.merge({url:arguments[0]},arguments[1])),t=Gr.merge(Nx,{method:"get"},this.defaults,t),t.method=t.method.toLowerCase();var n=[Lx,void 0],a=Promise.resolve(t);for(this.interceptors.request.forEach(function(r){n.unshift(r.fulfilled,r.rejected)}),this.interceptors.response.forEach(function(r){n.push(r.fulfilled,r.rejected)});n.length;)a=a.then(n.shift(),n.shift());return a};Gr.forEach(["delete","get","head","options"],function(t){Su.prototype[t]=function(n,a){return this.request(Gr.merge(a||{},{method:t,url:n}))}});Gr.forEach(["post","put","patch"],function(t){Su.prototype[t]=function(n,a,i){return this.request(Gr.merge(i||{},{method:t,url:n,data:a}))}});var zx=Su,Rc,Kg;function Sy(){if(Kg)return Rc;Kg=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Rc=e,Rc}var Oc,$g;function Bx(){if($g)return Oc;$g=1;var e=Sy();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(s){a=s});var i=this;n(function(s){i.reason||(i.reason=new e(s),a(i.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.source=function(){var a,i=new t(function(s){a=s});return{token:i,cancel:a}},Oc=t,Oc}var Kc,qg;function Dx(){return qg||(qg=1,Kc=function(t){return function(a){return t.apply(null,a)}}),Kc}var Ud=oa,Ix=my,ml=zx,Cy=gh;function Ty(e){var t=new ml(e),n=Ix(ml.prototype.request,t);return Ud.extend(n,ml.prototype,t),Ud.extend(n,t),n}var ai=Ty(Cy);ai.Axios=ml;ai.create=function(t){return Ty(Ud.merge(Cy,t))};ai.Cancel=Sy();ai.CancelToken=Bx();ai.isCancel=xy();ai.all=function(t){return Promise.all(t)};ai.spread=Dx();hh.exports=ai;hh.exports.default=ai;var jx=hh.exports,Rx=jx;const Ja=Bs(Rx);var Ey={},mh={};function Hg(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function vh(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){typeof e[n]>"u"?e[n]=t[n]:Hg(t[n])&&Hg(e[n])&&Object.keys(t[n]).length>0&&vh(e[n],t[n])})}var ma=typeof document<"u"?document:{},Py={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[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};vh(ma,Py);var va=typeof window<"u"?window:{},Ox={document:Py,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}};vh(va,Ox);class fe{constructor(t){const n=this;for(let a=0;a<t.length;a+=1)n[a]=t[a];return n.length=t.length,this}}function wt(e,t){const n=[];let a=0;if(e&&!t&&e instanceof fe)return e;if(e){if(typeof e=="string"){let i,r;const s=e.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){let u="div";for(s.indexOf("<li")===0&&(u="ul"),s.indexOf("<tr")===0&&(u="tbody"),(s.indexOf("<td")===0||s.indexOf("<th")===0)&&(u="tr"),s.indexOf("<tbody")===0&&(u="table"),s.indexOf("<option")===0&&(u="select"),r=ma.createElement(u),r.innerHTML=s,a=0;a<r.childNodes.length;a+=1)n.push(r.childNodes[a])}else for(!t&&e[0]==="#"&&!e.match(/[ .<>:~]/)?i=[ma.getElementById(e.trim().split("#")[1])]:i=(t||ma).querySelectorAll(e.trim()),a=0;a<i.length;a+=1)i[a]&&n.push(i[a])}else if(e.nodeType||e===va||e===ma)n.push(e);else if(e.length>0&&e[0].nodeType)for(a=0;a<e.length;a+=1)n.push(e[a])}return new fe(n)}wt.fn=fe.prototype;wt.Class=fe;wt.Dom7=fe;function yh(e){const t=[];for(let n=0;n<e.length;n+=1)t.indexOf(e[n])===-1&&t.push(e[n]);return t}function Kx(e){if(typeof e>"u")return this;const t=e.split(" ");for(let n=0;n<t.length;n+=1)for(let a=0;a<this.length;a+=1)typeof this[a]<"u"&&typeof this[a].classList<"u"&&this[a].classList.add(t[n]);return this}function $x(e){const t=e.split(" ");for(let n=0;n<t.length;n+=1)for(let a=0;a<this.length;a+=1)typeof this[a]<"u"&&typeof this[a].classList<"u"&&this[a].classList.remove(t[n]);return this}function qx(e){return this[0]?this[0].classList.contains(e):!1}function Hx(e){const t=e.split(" ");for(let n=0;n<t.length;n+=1)for(let a=0;a<this.length;a+=1)typeof this[a]<"u"&&typeof this[a].classList<"u"&&this[a].classList.toggle(t[n]);return this}function Fx(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(let n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(e,t);else for(const a in e)this[n][a]=e[a],this[n].setAttribute(a,e[a]);return this}function Wx(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function _x(e,t){let n;if(typeof t>"u"){if(n=this[0],n){if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];const a=n.getAttribute(`data-${e}`);return a||void 0}return}for(let a=0;a<this.length;a+=1)n=this[a],n.dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}function Vx(e){for(let t=0;t<this.length;t+=1){const n=this[t].style;n.webkitTransform=e,n.transform=e}return this}function Gx(e){typeof e!="string"&&(e=`${e}ms`);for(let t=0;t<this.length;t+=1){const n=this[t].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this}function Ux(...e){let[t,n,a,i]=e;typeof e[1]=="function"&&([t,a,i]=e,n=void 0),i||(i=!1);function r(h){const m=h.target;if(!m)return;const x=h.target.dom7EventData||[];if(x.indexOf(h)<0&&x.unshift(h),wt(m).is(n))a.apply(m,x);else{const w=wt(m).parents();for(let P=0;P<w.length;P+=1)wt(w[P]).is(n)&&a.apply(w[P],x)}}function s(h){const m=h&&h.target?h.target.dom7EventData||[]:[];m.indexOf(h)<0&&m.unshift(h),a.apply(this,m)}const u=t.split(" ");let c;for(let h=0;h<this.length;h+=1){const m=this[h];if(n)for(c=0;c<u.length;c+=1){const x=u[c];m.dom7LiveListeners||(m.dom7LiveListeners={}),m.dom7LiveListeners[x]||(m.dom7LiveListeners[x]=[]),m.dom7LiveListeners[x].push({listener:a,proxyListener:r}),m.addEventListener(x,r,i)}else for(c=0;c<u.length;c+=1){const x=u[c];m.dom7Listeners||(m.dom7Listeners={}),m.dom7Listeners[x]||(m.dom7Listeners[x]=[]),m.dom7Listeners[x].push({listener:a,proxyListener:s}),m.addEventListener(x,s,i)}}return this}function Yx(...e){let[t,n,a,i]=e;typeof e[1]=="function"&&([t,a,i]=e,n=void 0),i||(i=!1);const r=t.split(" ");for(let s=0;s<r.length;s+=1){const u=r[s];for(let c=0;c<this.length;c+=1){const h=this[c];let m;if(!n&&h.dom7Listeners?m=h.dom7Listeners[u]:n&&h.dom7LiveListeners&&(m=h.dom7LiveListeners[u]),m&&m.length)for(let x=m.length-1;x>=0;x-=1){const w=m[x];a&&w.listener===a||a&&w.listener&&w.listener.dom7proxy&&w.listener.dom7proxy===a?(h.removeEventListener(u,w.proxyListener,i),m.splice(x,1)):a||(h.removeEventListener(u,w.proxyListener,i),m.splice(x,1))}}}return this}function Xx(...e){const t=e[0].split(" "),n=e[1];for(let a=0;a<t.length;a+=1){const i=t[a];for(let r=0;r<this.length;r+=1){const s=this[r];let u;try{u=new va.CustomEvent(i,{detail:n,bubbles:!0,cancelable:!0})}catch{u=ma.createEvent("Event"),u.initEvent(i,!0,!0),u.detail=n}s.dom7EventData=e.filter((c,h)=>h>0),s.dispatchEvent(u),s.dom7EventData=[],delete s.dom7EventData}}return this}function Zx(e){const t=["webkitTransitionEnd","transitionend"],n=this;let a;function i(r){if(r.target===this)for(e.call(this,r),a=0;a<t.length;a+=1)n.off(t[a],i)}if(e)for(a=0;a<t.length;a+=1)n.on(t[a],i);return this}function Jx(e){if(this.length>0){if(e){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function Qx(e){if(this.length>0){if(e){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function tS(){if(this.length>0){const e=this[0],t=e.getBoundingClientRect(),n=ma.body,a=e.clientTop||n.clientTop||0,i=e.clientLeft||n.clientLeft||0,r=e===va?va.scrollY:e.scrollTop,s=e===va?va.scrollX:e.scrollLeft;return{top:t.top+r-a,left:t.left+s-i}}return null}function eS(){return this[0]?va.getComputedStyle(this[0],null):{}}function nS(e,t){let n;if(arguments.length===1)if(typeof e=="string"){if(this[0])return va.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(n=0;n<this.length;n+=1)for(let a in e)this[n].style[a]=e[a];return this}if(arguments.length===2&&typeof e=="string"){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function aS(e){if(!e)return this;for(let t=0;t<this.length;t+=1)if(e.call(this[t],t,this[t])===!1)return this;return this}function iS(e){if(typeof e>"u")return this[0]?this[0].innerHTML:void 0;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function rS(e){if(typeof e>"u")return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this}function oS(e){const t=this[0];let n,a;if(!t||typeof e>"u")return!1;if(typeof e=="string"){if(t.matches)return t.matches(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);for(n=wt(e),a=0;a<n.length;a+=1)if(n[a]===t)return!0;return!1}else{if(e===ma)return t===ma;if(e===va)return t===va}if(e.nodeType||e instanceof fe){for(n=e.nodeType?[e]:e,a=0;a<n.length;a+=1)if(n[a]===t)return!0;return!1}return!1}function sS(){let e=this[0],t;if(e){for(t=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(t+=1);return t}}function lS(e){if(typeof e>"u")return this;const t=this.length;let n;return e>t-1?new fe([]):e<0?(n=t+e,n<0?new fe([]):new fe([this[n]])):new fe([this[e]])}function uS(...e){let t;for(let n=0;n<e.length;n+=1){t=e[n];for(let a=0;a<this.length;a+=1)if(typeof t=="string"){const i=ma.createElement("div");for(i.innerHTML=t;i.firstChild;)this[a].appendChild(i.firstChild)}else if(t instanceof fe)for(let i=0;i<t.length;i+=1)this[a].appendChild(t[i]);else this[a].appendChild(t)}return this}function cS(e){let t,n;for(t=0;t<this.length;t+=1)if(typeof e=="string"){const a=ma.createElement("div");for(a.innerHTML=e,n=a.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(a.childNodes[n],this[t].childNodes[0])}else if(e instanceof fe)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function dS(e){return this.length>0?e?this[0].nextElementSibling&&wt(this[0].nextElementSibling).is(e)?new fe([this[0].nextElementSibling]):new fe([]):this[0].nextElementSibling?new fe([this[0].nextElementSibling]):new fe([]):new fe([])}function fS(e){const t=[];let n=this[0];if(!n)return new fe([]);for(;n.nextElementSibling;){const a=n.nextElementSibling;e?wt(a).is(e)&&t.push(a):t.push(a),n=a}return new fe(t)}function hS(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&wt(t.previousElementSibling).is(e)?new fe([t.previousElementSibling]):new fe([]):t.previousElementSibling?new fe([t.previousElementSibling]):new fe([])}return new fe([])}function pS(e){const t=[];let n=this[0];if(!n)return new fe([]);for(;n.previousElementSibling;){const a=n.previousElementSibling;e?wt(a).is(e)&&t.push(a):t.push(a),n=a}return new fe(t)}function gS(e){const t=[];for(let n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?wt(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return wt(yh(t))}function mS(e){const t=[];for(let n=0;n<this.length;n+=1){let a=this[n].parentNode;for(;a;)e?wt(a).is(e)&&t.push(a):t.push(a),a=a.parentNode}return wt(yh(t))}function vS(e){let t=this;return typeof e>"u"?new fe([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function yS(e){const t=[];for(let n=0;n<this.length;n+=1){const a=this[n].querySelectorAll(e);for(let i=0;i<a.length;i+=1)t.push(a[i])}return new fe(t)}function bS(e){const t=[];for(let n=0;n<this.length;n+=1){const a=this[n].childNodes;for(let i=0;i<a.length;i+=1)e?a[i].nodeType===1&&wt(a[i]).is(e)&&t.push(a[i]):a[i].nodeType===1&&t.push(a[i])}return new fe(yh(t))}function wS(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function kS(...e){const t=this;let n,a;for(n=0;n<e.length;n+=1){const i=wt(e[n]);for(a=0;a<i.length;a+=1)t[t.length]=i[a],t.length+=1}return t}var te=typeof document>"u"?{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,Mt=typeof window>"u"?{document:te,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;const Fg={addClass:Kx,removeClass:$x,hasClass:qx,toggleClass:Hx,attr:Fx,removeAttr:Wx,data:_x,transform:Vx,transition:Gx,on:Ux,off:Yx,trigger:Xx,transitionEnd:Zx,outerWidth:Jx,outerHeight:Qx,offset:tS,css:nS,each:aS,html:iS,text:rS,is:oS,index:sS,eq:lS,append:uS,prepend:cS,next:dS,nextAll:fS,prev:hS,prevAll:pS,parent:gS,parents:mS,closest:vS,find:yS,children:bS,remove:wS,add:kS,styles:eS};Object.keys(Fg).forEach(e=>{wt.fn[e]=wt.fn[e]||Fg[e]});const yt={deleteProps(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})},nextTick(e,t=0){return setTimeout(e,t)},now(){return Date.now()},getTranslate(e,t="x"){let n,a,i;const r=Mt.getComputedStyle(e,null);return Mt.WebKitCSSMatrix?(a=r.transform||r.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(s=>s.replace(",",".")).join(", ")),i=new Mt.WebKitCSSMatrix(a==="none"?"":a)):(i=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=i.toString().split(",")),t==="x"&&(Mt.WebKitCSSMatrix?a=i.m41:n.length===16?a=parseFloat(n[12]):a=parseFloat(n[4])),t==="y"&&(Mt.WebKitCSSMatrix?a=i.m42:n.length===16?a=parseFloat(n[13]):a=parseFloat(n[5])),a||0},parseUrlQuery(e){const t={};let n=e||Mt.location.href,a,i,r,s;if(typeof n=="string"&&n.length)for(n=n.indexOf("?")>-1?n.replace(/\S*\?/,""):"",i=n.split("&").filter(u=>u!==""),s=i.length,a=0;a<s;a+=1)r=i[a].replace(/#\S+/g,"").split("="),t[decodeURIComponent(r[0])]=typeof r[1]>"u"?void 0:decodeURIComponent(r[1])||"";return t},isObject(e){return typeof e=="object"&&e!==null&&e.constructor&&e.constructor===Object},extend(...e){const t=Object(e[0]);for(let n=1;n<e.length;n+=1){const a=e[n];if(a!=null){const i=Object.keys(Object(a));for(let r=0,s=i.length;r<s;r+=1){const u=i[r],c=Object.getOwnPropertyDescriptor(a,u);c!==void 0&&c.enumerable&&(yt.isObject(t[u])&&yt.isObject(a[u])?yt.extend(t[u],a[u]):!yt.isObject(t[u])&&yt.isObject(a[u])?(t[u]={},yt.extend(t[u],a[u])):t[u]=a[u])}}}return t}},qt=function(){const t=te.createElement("div");return{touch:Mt.Modernizr&&Mt.Modernizr.touch===!0||function(){return!!(Mt.navigator.maxTouchPoints>0||"ontouchstart"in Mt||Mt.DocumentTouch&&te instanceof Mt.DocumentTouch)}(),pointerEvents:!!(Mt.navigator.pointerEnabled||Mt.PointerEvent||"maxTouchPoints"in Mt.navigator&&Mt.navigator.maxTouchPoints>0),prefixedPointerEvents:!!Mt.navigator.msPointerEnabled,transition:function(){const a=t.style;return"transition"in a||"webkitTransition"in a||"MozTransition"in a}(),transforms3d:Mt.Modernizr&&Mt.Modernizr.csstransforms3d===!0||function(){const a=t.style;return"webkitPerspective"in a||"MozPerspective"in a||"OPerspective"in a||"MsPerspective"in a||"perspective"in a}(),flexbox:function(){const a=t.style,i="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" ");for(let r=0;r<i.length;r+=1)if(i[r]in a)return!0;return!1}(),observer:function(){return"MutationObserver"in Mt||"WebkitMutationObserver"in Mt}(),passiveListener:function(){let a=!1;try{const i=Object.defineProperty({},"passive",{get(){a=!0}});Mt.addEventListener("testPassiveListener",null,i)}catch{}return a}(),gestures:function(){return"ongesturestart"in Mt}()}}(),Ia=function(){function t(){const n=Mt.navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}return{isIE:!!Mt.navigator.userAgent.match(/Trident/g)||!!Mt.navigator.userAgent.match(/MSIE/g),isEdge:!!Mt.navigator.userAgent.match(/Edge/g),isSafari:t(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(Mt.navigator.userAgent)}}();class Wg{constructor(t={}){const n=this;n.params=t,n.eventsListeners={},n.params&&n.params.on&&Object.keys(n.params.on).forEach(a=>{n.on(a,n.params.on[a])})}on(t,n,a){const i=this;if(typeof n!="function")return i;const r=a?"unshift":"push";return t.split(" ").forEach(s=>{i.eventsListeners[s]||(i.eventsListeners[s]=[]),i.eventsListeners[s][r](n)}),i}once(t,n,a){const i=this;if(typeof n!="function")return i;function r(...s){n.apply(i,s),i.off(t,r),r.f7proxy&&delete r.f7proxy}return r.f7proxy=n,i.on(t,r,a)}off(t,n){const a=this;return a.eventsListeners&&t.split(" ").forEach(i=>{typeof n>"u"?a.eventsListeners[i]=[]:a.eventsListeners[i]&&a.eventsListeners[i].length&&a.eventsListeners[i].forEach((r,s)=>{(r===n||r.f7proxy&&r.f7proxy===n)&&a.eventsListeners[i].splice(s,1)})}),a}emit(...t){const n=this;if(!n.eventsListeners)return n;let a,i,r;return typeof t[0]=="string"||Array.isArray(t[0])?(a=t[0],i=t.slice(1,t.length),r=n):(a=t[0].events,i=t[0].data,r=t[0].context||n),(Array.isArray(a)?a:a.split(" ")).forEach(u=>{if(n.eventsListeners&&n.eventsListeners[u]){const c=[];n.eventsListeners[u].forEach(h=>{c.push(h)}),c.forEach(h=>{h.apply(r,i)})}}),n}useModulesParams(t){const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const i=n.modules[a];i.params&&yt.extend(t,i.params)})}useModules(t={}){const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const i=n.modules[a],r=t[a]||{};i.instance&&Object.keys(i.instance).forEach(s=>{const u=i.instance[s];typeof u=="function"?n[s]=u.bind(n):n[s]=u}),i.on&&n.on&&Object.keys(i.on).forEach(s=>{n.on(s,i.on[s])}),i.create&&i.create.bind(n)(r)})}static set components(t){const n=this;n.use&&n.use(t)}static installModule(t,...n){const a=this;a.prototype.modules||(a.prototype.modules={});const i=t.name||`${Object.keys(a.prototype.modules).length}_${yt.now()}`;return a.prototype.modules[i]=t,t.proto&&Object.keys(t.proto).forEach(r=>{a.prototype[r]=t.proto[r]}),t.static&&Object.keys(t.static).forEach(r=>{a[r]=t.static[r]}),t.install&&t.install.apply(a,n),a}static use(t,...n){const a=this;return Array.isArray(t)?(t.forEach(i=>a.installModule(i)),a):a.installModule(t,...n)}}function xS(){const e=this;let t,n;const a=e.$el;typeof e.params.width<"u"?t=e.params.width:t=a[0].clientWidth,typeof e.params.height<"u"?n=e.params.height:n=a[0].clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(a.css("padding-left"),10)-parseInt(a.css("padding-right"),10),n=n-parseInt(a.css("padding-top"),10)-parseInt(a.css("padding-bottom"),10),yt.extend(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function SS(){const e=this,t=e.params,{$wrapperEl:n,size:a,rtlTranslate:i,wrongRTL:r}=e,s=e.virtual&&t.virtual.enabled,u=s?e.virtual.slides.length:e.slides.length,c=n.children(`.${e.params.slideClass}`),h=s?e.virtual.slides.length:c.length;let m=[];const x=[],w=[];let P=t.slidesOffsetBefore;typeof P=="function"&&(P=t.slidesOffsetBefore.call(e));let E=t.slidesOffsetAfter;typeof E=="function"&&(E=t.slidesOffsetAfter.call(e));const z=e.snapGrid.length,A=e.snapGrid.length;let k=t.spaceBetween,S=-P,N=0,L=0;if(typeof a>"u")return;typeof k=="string"&&k.indexOf("%")>=0&&(k=parseFloat(k.replace("%",""))/100*a),e.virtualSize=-k,i?c.css({marginLeft:"",marginTop:""}):c.css({marginRight:"",marginBottom:""});let j;t.slidesPerColumn>1&&(Math.floor(h/t.slidesPerColumn)===h/e.params.slidesPerColumn?j=h:j=Math.ceil(h/t.slidesPerColumn)*t.slidesPerColumn,t.slidesPerView!=="auto"&&t.slidesPerColumnFill==="row"&&(j=Math.max(j,t.slidesPerView*t.slidesPerColumn)));let f;const G=t.slidesPerColumn,V=j/G,F=Math.floor(h/t.slidesPerColumn);for(let ft=0;ft<h;ft+=1){f=0;const ot=c.eq(ft);if(t.slidesPerColumn>1){let Z,$,o;if(t.slidesPerColumnFill==="column"||t.slidesPerColumnFill==="row"&&t.slidesPerGroup>1){if(t.slidesPerColumnFill==="column")$=Math.floor(ft/G),o=ft-$*G,($>F||$===F&&o===G-1)&&(o+=1,o>=G&&(o=0,$+=1));else{const tt=Math.floor(ft/t.slidesPerGroup);o=Math.floor(ft/t.slidesPerView)-tt*t.slidesPerColumn,$=ft-o*t.slidesPerView-tt*t.slidesPerView}Z=$+o*j/G,ot.css({"-webkit-box-ordinal-group":Z,"-moz-box-ordinal-group":Z,"-ms-flex-order":Z,"-webkit-order":Z,order:Z})}else o=Math.floor(ft/V),$=ft-o*V;ot.css(`margin-${e.isHorizontal()?"top":"left"}`,o!==0&&t.spaceBetween&&`${t.spaceBetween}px`).attr("data-swiper-column",$).attr("data-swiper-row",o)}if(ot.css("display")!=="none"){if(t.slidesPerView==="auto"){const Z=Mt.getComputedStyle(ot[0],null),$=ot[0].style.transform,o=ot[0].style.webkitTransform;if($&&(ot[0].style.transform="none"),o&&(ot[0].style.webkitTransform="none"),t.roundLengths)f=e.isHorizontal()?ot.outerWidth(!0):ot.outerHeight(!0);else if(e.isHorizontal()){const tt=parseFloat(Z.getPropertyValue("width")),v=parseFloat(Z.getPropertyValue("padding-left")),Q=parseFloat(Z.getPropertyValue("padding-right")),st=parseFloat(Z.getPropertyValue("margin-left")),ut=parseFloat(Z.getPropertyValue("margin-right")),I=Z.getPropertyValue("box-sizing");I&&I==="border-box"&&!Ia.isIE?f=tt+st+ut:f=tt+v+Q+st+ut}else{const tt=parseFloat(Z.getPropertyValue("height")),v=parseFloat(Z.getPropertyValue("padding-top")),Q=parseFloat(Z.getPropertyValue("padding-bottom")),st=parseFloat(Z.getPropertyValue("margin-top")),ut=parseFloat(Z.getPropertyValue("margin-bottom")),I=Z.getPropertyValue("box-sizing");I&&I==="border-box"&&!Ia.isIE?f=tt+st+ut:f=tt+v+Q+st+ut}$&&(ot[0].style.transform=$),o&&(ot[0].style.webkitTransform=o),t.roundLengths&&(f=Math.floor(f))}else f=(a-(t.slidesPerView-1)*k)/t.slidesPerView,t.roundLengths&&(f=Math.floor(f)),c[ft]&&(e.isHorizontal()?c[ft].style.width=`${f}px`:c[ft].style.height=`${f}px`);c[ft]&&(c[ft].swiperSlideSize=f),w.push(f),t.centeredSlides?(S=S+f/2+N/2+k,N===0&&ft!==0&&(S=S-a/2-k),ft===0&&(S=S-a/2-k),Math.abs(S)<1/1e3&&(S=0),t.roundLengths&&(S=Math.floor(S)),L%t.slidesPerGroup===0&&m.push(S),x.push(S)):(t.roundLengths&&(S=Math.floor(S)),L%t.slidesPerGroup===0&&m.push(S),x.push(S),S=S+f+k),e.virtualSize+=f+k,N=f,L+=1}}e.virtualSize=Math.max(e.virtualSize,a)+E;let pt;if(i&&r&&(t.effect==="slide"||t.effect==="coverflow")&&n.css({width:`${e.virtualSize+t.spaceBetween}px`}),(!qt.flexbox||t.setWrapperSize)&&(e.isHorizontal()?n.css({width:`${e.virtualSize+t.spaceBetween}px`}):n.css({height:`${e.virtualSize+t.spaceBetween}px`})),t.slidesPerColumn>1&&(e.virtualSize=(f+t.spaceBetween)*j,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?n.css({width:`${e.virtualSize+t.spaceBetween}px`}):n.css({height:`${e.virtualSize+t.spaceBetween}px`}),t.centeredSlides)){pt=[];for(let ft=0;ft<m.length;ft+=1){let ot=m[ft];t.roundLengths&&(ot=Math.floor(ot)),m[ft]<e.virtualSize+m[0]&&pt.push(ot)}m=pt}if(!t.centeredSlides){pt=[];for(let ft=0;ft<m.length;ft+=1){let ot=m[ft];t.roundLengths&&(ot=Math.floor(ot)),m[ft]<=e.virtualSize-a&&pt.push(ot)}m=pt,Math.floor(e.virtualSize-a)-Math.floor(m[m.length-1])>1&&m.push(e.virtualSize-a)}if(m.length===0&&(m=[0]),t.spaceBetween!==0&&(e.isHorizontal()?i?c.css({marginLeft:`${k}px`}):c.css({marginRight:`${k}px`}):c.css({marginBottom:`${k}px`})),t.centerInsufficientSlides){let ft=0;if(w.forEach(ot=>{ft+=ot+(t.spaceBetween?t.spaceBetween:0)}),ft-=t.spaceBetween,ft<a){const ot=(a-ft)/2;m.forEach((Z,$)=>{m[$]=Z-ot}),x.forEach((Z,$)=>{x[$]=Z+ot})}}yt.extend(e,{slides:c,snapGrid:m,slidesGrid:x,slidesSizesGrid:w}),h!==u&&e.emit("slidesLengthChange"),m.length!==z&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),x.length!==A&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}function CS(e){const t=this,n=[];let a=0,i;if(typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed),t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const r=t.activeIndex+i;if(r>t.slides.length)break;n.push(t.slides.eq(r)[0])}else n.push(t.slides.eq(t.activeIndex)[0]);for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){const r=n[i].offsetHeight;a=r>a?r:a}a&&t.$wrapperEl.css("height",`${a}px`)}function TS(){const e=this,t=e.slides;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop}function ES(e=this&&this.translate||0){const t=this,n=t.params,{slides:a,rtlTranslate:i}=t;if(a.length===0)return;typeof a[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let r=-e;i&&(r=e),a.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let s=0;s<a.length;s+=1){const u=a[s],c=(r+(n.centeredSlides?t.minTranslate():0)-u.swiperSlideOffset)/(u.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){const h=-(r-u.swiperSlideOffset),m=h+t.slidesSizesGrid[s];(h>=0&&h<t.size-1||m>1&&m<=t.size||h<=0&&m>=t.size)&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(s),a.eq(s).addClass(n.slideVisibleClass))}u.progress=i?-c:c}t.visibleSlides=wt(t.visibleSlides)}function PS(e=this&&this.translate||0){const t=this,n=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:r,isEnd:s}=t;const u=r,c=s;a===0?(i=0,r=!0,s=!0):(i=(e-t.minTranslate())/a,r=i<=0,s=i>=1),yt.extend(t,{progress:i,isBeginning:r,isEnd:s}),(n.watchSlidesProgress||n.watchSlidesVisibility)&&t.updateSlidesProgress(e),r&&!u&&t.emit("reachBeginning toEdge"),s&&!c&&t.emit("reachEnd toEdge"),(u&&!r||c&&!s)&&t.emit("fromEdge"),t.emit("progress",i)}function MS(){const e=this,{slides:t,params:n,$wrapperEl:a,activeIndex:i,realIndex:r}=e,s=e.virtual&&n.virtual.enabled;t.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`);let u;s?u=e.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${i}"]`):u=t.eq(i),u.addClass(n.slideActiveClass),n.loop&&(u.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(n.slideDuplicateActiveClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(n.slideDuplicateActiveClass));let c=u.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);n.loop&&c.length===0&&(c=t.eq(0),c.addClass(n.slideNextClass));let h=u.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&h.length===0&&(h=t.eq(-1),h.addClass(n.slidePrevClass)),n.loop&&(c.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),h.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass))}function AS(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:a,snapGrid:i,params:r,activeIndex:s,realIndex:u,snapIndex:c}=t;let h=e,m;if(typeof h>"u"){for(let w=0;w<a.length;w+=1)typeof a[w+1]<"u"?n>=a[w]&&n<a[w+1]-(a[w+1]-a[w])/2?h=w:n>=a[w]&&n<a[w+1]&&(h=w+1):n>=a[w]&&(h=w);r.normalizeSlideIndex&&(h<0||typeof h>"u")&&(h=0)}if(i.indexOf(n)>=0?m=i.indexOf(n):m=Math.floor(h/r.slidesPerGroup),m>=i.length&&(m=i.length-1),h===s){m!==c&&(t.snapIndex=m,t.emit("snapIndexChange"));return}const x=parseInt(t.slides.eq(h).attr("data-swiper-slide-index")||h,10);yt.extend(t,{snapIndex:m,realIndex:x,previousIndex:s,activeIndex:h}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),u!==x&&t.emit("realIndexChange"),(t.initialized||t.runCallbacksOnInit)&&t.emit("slideChange")}function NS(e){const t=this,n=t.params,a=wt(e.target).closest(`.${n.slideClass}`)[0];let i=!1;if(a)for(let r=0;r<t.slides.length;r+=1)t.slides[r]===a&&(i=!0);if(a&&i)t.clickedSlide=a,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(wt(a).attr("data-swiper-slide-index"),10):t.clickedIndex=wt(a).index();else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}var LS={updateSize:xS,updateSlides:SS,updateAutoHeight:CS,updateSlidesOffset:TS,updateSlidesProgress:ES,updateProgress:PS,updateSlidesClasses:MS,updateActiveIndex:AS,updateClickedSlide:NS};function zS(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:a,translate:i,$wrapperEl:r}=t;if(n.virtualTranslate)return a?-i:i;let s=yt.getTranslate(r[0],e);return a&&(s=-s),s||0}function BS(e,t){const n=this,{rtlTranslate:a,params:i,$wrapperEl:r,progress:s}=n;let u=0,c=0;const h=0;n.isHorizontal()?u=a?-e:e:c=e,i.roundLengths&&(u=Math.floor(u),c=Math.floor(c)),i.virtualTranslate||(qt.transforms3d?r.transform(`translate3d(${u}px, ${c}px, ${h}px)`):r.transform(`translate(${u}px, ${c}px)`)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?u:c;let m;const x=n.maxTranslate()-n.minTranslate();x===0?m=0:m=(e-n.minTranslate())/x,m!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function DS(){return-this.snapGrid[0]}function IS(){return-this.snapGrid[this.snapGrid.length-1]}var jS={getTranslate:zS,setTranslate:BS,minTranslate:DS,maxTranslate:IS};function RS(e,t){const n=this;n.$wrapperEl.transition(e),n.emit("setTransition",e,t)}function OS(e=!0,t){const n=this,{activeIndex:a,params:i,previousIndex:r}=n;i.autoHeight&&n.updateAutoHeight();let s=t;if(s||(a>r?s="next":a<r?s="prev":s="reset"),n.emit("transitionStart"),e&&a!==r){if(s==="reset"){n.emit("slideResetTransitionStart");return}n.emit("slideChangeTransitionStart"),s==="next"?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}function KS(e=!0,t){const n=this,{activeIndex:a,previousIndex:i}=n;n.animating=!1,n.setTransition(0);let r=t;if(r||(a>i?r="next":a<i?r="prev":r="reset"),n.emit("transitionEnd"),e&&a!==i){if(r==="reset"){n.emit("slideResetTransitionEnd");return}n.emit("slideChangeTransitionEnd"),r==="next"?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}var $S={setTransition:RS,transitionStart:OS,transitionEnd:KS};function qS(e=0,t=this.params.speed,n=!0,a){const i=this;let r=e;r<0&&(r=0);const{params:s,snapGrid:u,slidesGrid:c,previousIndex:h,activeIndex:m,rtlTranslate:x}=i;if(i.animating&&s.preventInteractionOnTransition)return!1;let w=Math.floor(r/s.slidesPerGroup);w>=u.length&&(w=u.length-1),(m||s.initialSlide||0)===(h||0)&&n&&i.emit("beforeSlideChangeStart");const P=-u[w];if(i.updateProgress(P),s.normalizeSlideIndex)for(let z=0;z<c.length;z+=1)-Math.floor(P*100)>=Math.floor(c[z]*100)&&(r=z);if(i.initialized&&r!==m&&(!i.allowSlideNext&&P<i.translate&&P<i.minTranslate()||!i.allowSlidePrev&&P>i.translate&&P>i.maxTranslate()&&(m||0)!==r))return!1;let E;return r>m?E="next":r<m?E="prev":E="reset",x&&-P===i.translate||!x&&P===i.translate?(i.updateActiveIndex(r),s.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),s.effect!=="slide"&&i.setTranslate(P),E!=="reset"&&(i.transitionStart(n,E),i.transitionEnd(n,E)),!1):(t===0||!qt.transition?(i.setTransition(0),i.setTranslate(P),i.updateActiveIndex(r),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,a),i.transitionStart(n,E),i.transitionEnd(n,E)):(i.setTransition(t),i.setTranslate(P),i.updateActiveIndex(r),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,a),i.transitionStart(n,E),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(A){!i||i.destroyed||A.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,E))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))),!0)}function HS(e=0,t=this.params.speed,n=!0,a){const i=this;let r=e;return i.params.loop&&(r+=i.loopedSlides),i.slideTo(r,t,n,a)}function FS(e=this.params.speed,t=!0,n){const a=this,{params:i,animating:r}=a;return i.loop?r?!1:(a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft,a.slideTo(a.activeIndex+i.slidesPerGroup,e,t,n)):a.slideTo(a.activeIndex+i.slidesPerGroup,e,t,n)}function WS(e=this.params.speed,t=!0,n){const a=this,{params:i,animating:r,snapGrid:s,slidesGrid:u,rtlTranslate:c}=a;if(i.loop){if(r)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}const h=c?a.translate:-a.translate;function m(z){return z<0?-Math.floor(Math.abs(z)):Math.floor(z)}const x=m(h),w=s.map(z=>m(z));u.map(z=>m(z)),s[w.indexOf(x)];const P=s[w.indexOf(x)-1];let E;return typeof P<"u"&&(E=u.indexOf(P),E<0&&(E=a.activeIndex-1)),a.slideTo(E,e,t,n)}function _S(e=this.params.speed,t=!0,n){const a=this;return a.slideTo(a.activeIndex,e,t,n)}function VS(e=this.params.speed,t=!0,n){const a=this;let i=a.activeIndex;const r=Math.floor(i/a.params.slidesPerGroup);if(r<a.snapGrid.length-1){const s=a.rtlTranslate?a.translate:-a.translate,u=a.snapGrid[r],c=a.snapGrid[r+1];s-u>(c-u)/2&&(i=a.params.slidesPerGroup)}return a.slideTo(i,e,t,n)}function GS(){const e=this,{params:t,$wrapperEl:n}=e,a=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,r;if(t.loop){if(e.animating)return;r=parseInt(wt(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?i<e.loopedSlides-a/2||i>e.slides.length-e.loopedSlides+a/2?(e.loopFix(),i=n.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),yt.nextTick(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-a?(e.loopFix(),i=n.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),yt.nextTick(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var US={slideTo:qS,slideToLoop:HS,slideNext:FS,slidePrev:WS,slideReset:_S,slideToClosest:VS,slideToClickedSlide:GS};function YS(){const e=this,{params:t,$wrapperEl:n}=e;n.children(`.${t.slideClass}.${t.slideDuplicateClass}`).remove();let a=n.children(`.${t.slideClass}`);if(t.loopFillGroupWithBlank){const s=t.slidesPerGroup-a.length%t.slidesPerGroup;if(s!==t.slidesPerGroup){for(let u=0;u<s;u+=1){const c=wt(te.createElement("div")).addClass(`${t.slideClass} ${t.slideBlankClass}`);n.append(c)}a=n.children(`.${t.slideClass}`)}}t.slidesPerView==="auto"&&!t.loopedSlides&&(t.loopedSlides=a.length),e.loopedSlides=parseInt(t.loopedSlides||t.slidesPerView,10),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>a.length&&(e.loopedSlides=a.length);const i=[],r=[];a.each((s,u)=>{const c=wt(u);s<e.loopedSlides&&r.push(u),s<a.length&&s>=a.length-e.loopedSlides&&i.push(u),c.attr("data-swiper-slide-index",s)});for(let s=0;s<r.length;s+=1)n.append(wt(r[s].cloneNode(!0)).addClass(t.slideDuplicateClass));for(let s=i.length-1;s>=0;s-=1)n.prepend(wt(i[s].cloneNode(!0)).addClass(t.slideDuplicateClass))}function XS(){const e=this,{params:t,activeIndex:n,slides:a,loopedSlides:i,allowSlidePrev:r,allowSlideNext:s,snapGrid:u,rtlTranslate:c}=e;let h;e.allowSlidePrev=!0,e.allowSlideNext=!0;const x=-u[n]-e.getTranslate();n<i?(h=a.length-i*3+n,h+=i,e.slideTo(h,0,!1,!0)&&x!==0&&e.setTranslate((c?-e.translate:e.translate)-x)):(t.slidesPerView==="auto"&&n>=i*2||n>=a.length-i)&&(h=-a.length+n+i,h+=i,e.slideTo(h,0,!1,!0)&&x!==0&&e.setTranslate((c?-e.translate:e.translate)-x)),e.allowSlidePrev=r,e.allowSlideNext=s}function ZS(){const e=this,{$wrapperEl:t,params:n,slides:a}=e;t.children(`.${n.slideClass}.${n.slideDuplicateClass},.${n.slideClass}.${n.slideBlankClass}`).remove(),a.removeAttr("data-swiper-slide-index")}var JS={loopCreate:YS,loopFix:XS,loopDestroy:ZS};function QS(e){const t=this;if(qt.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)return;const n=t.el;n.style.cursor="move",n.style.cursor=e?"-webkit-grabbing":"-webkit-grab",n.style.cursor=e?"-moz-grabbin":"-moz-grab",n.style.cursor=e?"grabbing":"grab"}function t1(){const e=this;qt.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}var e1={setGrabCursor:QS,unsetGrabCursor:t1};function n1(e){const t=this,{$wrapperEl:n,params:a}=t;if(a.loop&&t.loopDestroy(),typeof e=="object"&&"length"in e)for(let i=0;i<e.length;i+=1)e[i]&&n.append(e[i]);else n.append(e);a.loop&&t.loopCreate(),a.observer&&qt.observer||t.update()}function a1(e){const t=this,{params:n,$wrapperEl:a,activeIndex:i}=t;n.loop&&t.loopDestroy();let r=i+1;if(typeof e=="object"&&"length"in e){for(let s=0;s<e.length;s+=1)e[s]&&a.prepend(e[s]);r=i+e.length}else a.prepend(e);n.loop&&t.loopCreate(),n.observer&&qt.observer||t.update(),t.slideTo(r,0,!1)}function i1(e,t){const n=this,{$wrapperEl:a,params:i,activeIndex:r}=n;let s=r;i.loop&&(s-=n.loopedSlides,n.loopDestroy(),n.slides=a.children(`.${i.slideClass}`));const u=n.slides.length;if(e<=0){n.prependSlide(t);return}if(e>=u){n.appendSlide(t);return}let c=s>e?s+1:s;const h=[];for(let m=u-1;m>=e;m-=1){const x=n.slides.eq(m);x.remove(),h.unshift(x)}if(typeof t=="object"&&"length"in t){for(let m=0;m<t.length;m+=1)t[m]&&a.append(t[m]);c=s>e?s+t.length:s}else a.append(t);for(let m=0;m<h.length;m+=1)a.append(h[m]);i.loop&&n.loopCreate(),i.observer&&qt.observer||n.update(),i.loop?n.slideTo(c+n.loopedSlides,0,!1):n.slideTo(c,0,!1)}function r1(e){const t=this,{params:n,$wrapperEl:a,activeIndex:i}=t;let r=i;n.loop&&(r-=t.loopedSlides,t.loopDestroy(),t.slides=a.children(`.${n.slideClass}`));let s=r,u;if(typeof e=="object"&&"length"in e){for(let c=0;c<e.length;c+=1)u=e[c],t.slides[u]&&t.slides.eq(u).remove(),u<s&&(s-=1);s=Math.max(s,0)}else u=e,t.slides[u]&&t.slides.eq(u).remove(),u<s&&(s-=1),s=Math.max(s,0);n.loop&&t.loopCreate(),n.observer&&qt.observer||t.update(),n.loop?t.slideTo(s+t.loopedSlides,0,!1):t.slideTo(s,0,!1)}function o1(){const e=this,t=[];for(let n=0;n<e.slides.length;n+=1)t.push(n);e.removeSlide(t)}var s1={appendSlide:n1,prependSlide:a1,addSlide:i1,removeSlide:r1,removeAllSlides:o1};const wn=function(){const t=Mt.navigator.userAgent,n={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:Mt.cordova||Mt.phonegap,phonegap:Mt.cordova||Mt.phonegap},a=t.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),i=t.match(/(Android);?[\s\/]+([\d.]+)?/),r=t.match(/(iPad).*OS\s([\d_]+)/),s=t.match(/(iPod)(.*OS\s([\d_]+))?/),u=!r&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(a&&(n.os="windows",n.osVersion=a[2],n.windows=!0),i&&!a&&(n.os="android",n.osVersion=i[2],n.android=!0,n.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(r||u||s)&&(n.os="ios",n.ios=!0),u&&!s&&(n.osVersion=u[2].replace(/_/g,"."),n.iphone=!0),r&&(n.osVersion=r[2].replace(/_/g,"."),n.ipad=!0),s&&(n.osVersion=s[3]?s[3].replace(/_/g,"."):null,n.iphone=!0),n.ios&&n.osVersion&&t.indexOf("Version/")>=0&&n.osVersion.split(".")[0]==="10"&&(n.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),n.desktop=!(n.os||n.android||n.webView),n.webView=(u||r||s)&&t.match(/.*AppleWebKit(?!.*Safari)/i),n.os&&n.os==="ios"){const c=n.osVersion.split("."),h=te.querySelector('meta[name="viewport"]');n.minimalUi=!n.webView&&(s||u)&&(c[0]*1===7?c[1]*1>=1:c[0]*1>7)&&h&&h.getAttribute("content").indexOf("minimal-ui")>=0}return n.pixelRatio=Mt.devicePixelRatio||1,n}();function l1(e){const t=this,n=t.touchEventsData,{params:a,touches:i}=t;if(t.animating&&a.preventInteractionOnTransition)return;let r=e;if(r.originalEvent&&(r=r.originalEvent),n.isTouchEvent=r.type==="touchstart",!n.isTouchEvent&&"which"in r&&r.which===3||!n.isTouchEvent&&"button"in r&&r.button>0||n.isTouched&&n.isMoved)return;if(a.noSwiping&&wt(r.target).closest(a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`)[0]){t.allowClick=!0;return}if(a.swipeHandler&&!wt(r).closest(a.swipeHandler)[0])return;i.currentX=r.type==="touchstart"?r.targetTouches[0].pageX:r.pageX,i.currentY=r.type==="touchstart"?r.targetTouches[0].pageY:r.pageY;const s=i.currentX,u=i.currentY,c=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,h=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(!(c&&(s<=h||s>=Mt.screen.width-h))){if(yt.extend(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=s,i.startY=u,n.touchStartTime=yt.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(n.allowThresholdMove=!1),r.type!=="touchstart"){let m=!0;wt(r.target).is(n.formElements)&&(m=!1),te.activeElement&&wt(te.activeElement).is(n.formElements)&&te.activeElement!==r.target&&te.activeElement.blur();const x=m&&t.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||x)&&r.preventDefault()}t.emit("touchStart",r)}}function u1(e){const t=this,n=t.touchEventsData,{params:a,touches:i,rtlTranslate:r}=t;let s=e;if(s.originalEvent&&(s=s.originalEvent),!n.isTouched){n.startMoving&&n.isScrolling&&t.emit("touchMoveOpposite",s);return}if(n.isTouchEvent&&s.type==="mousemove")return;const u=s.type==="touchmove"?s.targetTouches[0].pageX:s.pageX,c=s.type==="touchmove"?s.targetTouches[0].pageY:s.pageY;if(s.preventedByNestedSwiper){i.startX=u,i.startY=c;return}if(!t.allowTouchMove){t.allowClick=!1,n.isTouched&&(yt.extend(i,{startX:u,startY:c,currentX:u,currentY:c}),n.touchStartTime=yt.now());return}if(n.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop){if(t.isVertical()){if(c<i.startY&&t.translate<=t.maxTranslate()||c>i.startY&&t.translate>=t.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(u<i.startX&&t.translate<=t.maxTranslate()||u>i.startX&&t.translate>=t.minTranslate())return}if(n.isTouchEvent&&te.activeElement&&s.target===te.activeElement&&wt(s.target).is(n.formElements)){n.isMoved=!0,t.allowClick=!1;return}if(n.allowTouchCallbacks&&t.emit("touchMove",s),s.targetTouches&&s.targetTouches.length>1)return;i.currentX=u,i.currentY=c;const h=i.currentX-i.startX,m=i.currentY-i.startY;if(t.params.threshold&&Math.sqrt(h**2+m**2)<t.params.threshold)return;if(typeof n.isScrolling>"u"){let E;t.isHorizontal()&&i.currentY===i.startY||t.isVertical()&&i.currentX===i.startX?n.isScrolling=!1:h*h+m*m>=25&&(E=Math.atan2(Math.abs(m),Math.abs(h))*180/Math.PI,n.isScrolling=t.isHorizontal()?E>a.touchAngle:90-E>a.touchAngle)}if(n.isScrolling&&t.emit("touchMoveOpposite",s),typeof n.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(n.startMoving=!0),n.isScrolling){n.isTouched=!1;return}if(!n.startMoving)return;t.allowClick=!1,s.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&s.stopPropagation(),n.isMoved||(a.loop&&t.loopFix(),n.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,a.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",s)),t.emit("sliderMove",s),n.isMoved=!0;let x=t.isHorizontal()?h:m;i.diff=x,x*=a.touchRatio,r&&(x=-x),t.swipeDirection=x>0?"prev":"next",n.currentTranslate=x+n.startTranslate;let w=!0,P=a.resistanceRatio;if(a.touchReleaseOnEdges&&(P=0),x>0&&n.currentTranslate>t.minTranslate()?(w=!1,a.resistance&&(n.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+n.startTranslate+x)**P)):x<0&&n.currentTranslate<t.maxTranslate()&&(w=!1,a.resistance&&(n.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-n.startTranslate-x)**P)),w&&(s.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!t.allowSlidePrev&&t.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),a.threshold>0)if(Math.abs(x)>a.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,n.currentTranslate=n.startTranslate,i.diff=t.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{n.currentTranslate=n.startTranslate;return}a.followFinger&&((a.freeMode||a.watchSlidesProgress||a.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),a.freeMode&&(n.velocities.length===0&&n.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:yt.now()})),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate))}function c1(e){const t=this,n=t.touchEventsData,{params:a,touches:i,rtlTranslate:r,$wrapperEl:s,slidesGrid:u,snapGrid:c}=t;let h=e;if(h.originalEvent&&(h=h.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",h),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const m=yt.now(),x=m-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(h),t.emit("tap",h),x<300&&m-n.lastClickTime>300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),n.clickTimeout=yt.nextTick(()=>{!t||t.destroyed||t.emit("click",h)},300)),x<300&&m-n.lastClickTime<300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),t.emit("doubleTap",h))),n.lastClickTime=yt.now(),yt.nextTick(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||i.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let w;if(a.followFinger?w=r?t.translate:-t.translate:w=-n.currentTranslate,a.freeMode){if(w<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(w>-t.maxTranslate()){t.slides.length<c.length?t.slideTo(c.length-1):t.slideTo(t.slides.length-1);return}if(a.freeModeMomentum){if(n.velocities.length>1){const G=n.velocities.pop(),V=n.velocities.pop(),F=G.position-V.position,pt=G.time-V.time;t.velocity=F/pt,t.velocity/=2,Math.abs(t.velocity)<a.freeModeMinimumVelocity&&(t.velocity=0),(pt>150||yt.now()-G.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=a.freeModeMomentumVelocityRatio,n.velocities.length=0;let A=1e3*a.freeModeMomentumRatio;const k=t.velocity*A;let S=t.translate+k;r&&(S=-S);let N=!1,L;const j=Math.abs(t.velocity)*20*a.freeModeMomentumBounceRatio;let f;if(S<t.maxTranslate())a.freeModeMomentumBounce?(S+t.maxTranslate()<-j&&(S=t.maxTranslate()-j),L=t.maxTranslate(),N=!0,n.allowMomentumBounce=!0):S=t.maxTranslate(),a.loop&&a.centeredSlides&&(f=!0);else if(S>t.minTranslate())a.freeModeMomentumBounce?(S-t.minTranslate()>j&&(S=t.minTranslate()+j),L=t.minTranslate(),N=!0,n.allowMomentumBounce=!0):S=t.minTranslate(),a.loop&&a.centeredSlides&&(f=!0);else if(a.freeModeSticky){let G;for(let V=0;V<c.length;V+=1)if(c[V]>-S){G=V;break}Math.abs(c[G]-S)<Math.abs(c[G-1]-S)||t.swipeDirection==="next"?S=c[G]:S=c[G-1],S=-S}if(f&&t.once("transitionEnd",()=>{t.loopFix()}),t.velocity!==0)r?A=Math.abs((-S-t.translate)/t.velocity):A=Math.abs((S-t.translate)/t.velocity);else if(a.freeModeSticky){t.slideToClosest();return}a.freeModeMomentumBounce&&N?(t.updateProgress(L),t.setTransition(A),t.setTranslate(S),t.transitionStart(!0,t.swipeDirection),t.animating=!0,s.transitionEnd(()=>{!t||t.destroyed||!n.allowMomentumBounce||(t.emit("momentumBounce"),t.setTransition(a.speed),t.setTranslate(L),s.transitionEnd(()=>{!t||t.destroyed||t.transitionEnd()}))})):t.velocity?(t.updateProgress(S),t.setTransition(A),t.setTranslate(S),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,s.transitionEnd(()=>{!t||t.destroyed||t.transitionEnd()}))):t.updateProgress(S),t.updateActiveIndex(),t.updateSlidesClasses()}else if(a.freeModeSticky){t.slideToClosest();return}(!a.freeModeMomentum||x>=a.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses());return}let P=0,E=t.slidesSizesGrid[0];for(let A=0;A<u.length;A+=a.slidesPerGroup)typeof u[A+a.slidesPerGroup]<"u"?w>=u[A]&&w<u[A+a.slidesPerGroup]&&(P=A,E=u[A+a.slidesPerGroup]-u[A]):w>=u[A]&&(P=A,E=u[u.length-1]-u[u.length-2]);const z=(w-u[P])/E;if(x>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(z>=a.longSwipesRatio?t.slideTo(P+a.slidesPerGroup):t.slideTo(P)),t.swipeDirection==="prev"&&(z>1-a.longSwipesRatio?t.slideTo(P+a.slidesPerGroup):t.slideTo(P))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&t.slideTo(P+a.slidesPerGroup),t.swipeDirection==="prev"&&t.slideTo(P)}}function My(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:i,snapGrid:r}=e;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){const s=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!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 d1(e){const t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function f1(){const e=this,{params:t,touchEvents:n,el:a,wrapperEl:i}=e;e.onTouchStart=l1.bind(e),e.onTouchMove=u1.bind(e),e.onTouchEnd=c1.bind(e),e.onClick=d1.bind(e);const r=t.touchEventsTarget==="container"?a:i,s=!!t.nested;{if(!qt.touch&&(qt.pointerEvents||qt.prefixedPointerEvents))r.addEventListener(n.start,e.onTouchStart,!1),te.addEventListener(n.move,e.onTouchMove,s),te.addEventListener(n.end,e.onTouchEnd,!1);else{if(qt.touch){const u=n.start==="touchstart"&&qt.passiveListener&&t.passiveListeners?{passive:!0,capture:!1}:!1;r.addEventListener(n.start,e.onTouchStart,u),r.addEventListener(n.move,e.onTouchMove,qt.passiveListener?{passive:!1,capture:s}:s),r.addEventListener(n.end,e.onTouchEnd,u)}(t.simulateTouch&&!wn.ios&&!wn.android||t.simulateTouch&&!qt.touch&&wn.ios)&&(r.addEventListener("mousedown",e.onTouchStart,!1),te.addEventListener("mousemove",e.onTouchMove,s),te.addEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&r.addEventListener("click",e.onClick,!0)}e.on(wn.ios||wn.android?"resize orientationchange observerUpdate":"resize observerUpdate",My,!0)}function h1(){const e=this,{params:t,touchEvents:n,el:a,wrapperEl:i}=e,r=t.touchEventsTarget==="container"?a:i,s=!!t.nested;{if(!qt.touch&&(qt.pointerEvents||qt.prefixedPointerEvents))r.removeEventListener(n.start,e.onTouchStart,!1),te.removeEventListener(n.move,e.onTouchMove,s),te.removeEventListener(n.end,e.onTouchEnd,!1);else{if(qt.touch){const u=n.start==="onTouchStart"&&qt.passiveListener&&t.passiveListeners?{passive:!0,capture:!1}:!1;r.removeEventListener(n.start,e.onTouchStart,u),r.removeEventListener(n.move,e.onTouchMove,s),r.removeEventListener(n.end,e.onTouchEnd,u)}(t.simulateTouch&&!wn.ios&&!wn.android||t.simulateTouch&&!qt.touch&&wn.ios)&&(r.removeEventListener("mousedown",e.onTouchStart,!1),te.removeEventListener("mousemove",e.onTouchMove,s),te.removeEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&r.removeEventListener("click",e.onClick,!0)}e.off(wn.ios||wn.android?"resize orientationchange observerUpdate":"resize observerUpdate",My)}var p1={attachEvents:f1,detachEvents:h1};function g1(){const e=this,{activeIndex:t,initialized:n,loopedSlides:a=0,params:i}=e,r=i.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const s=e.getBreakpoint(r);if(s&&e.currentBreakpoint!==s){const u=s in r?r[s]:void 0;u&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(x=>{const w=u[x];typeof w>"u"||(x==="slidesPerView"&&(w==="AUTO"||w==="auto")?u[x]="auto":x==="slidesPerView"?u[x]=parseFloat(w):u[x]=parseInt(w,10))});const c=u||e.originalParams,h=c.direction&&c.direction!==i.direction,m=i.loop&&(c.slidesPerView!==i.slidesPerView||h);h&&n&&e.changeDirection(),yt.extend(e.params,c),yt.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=s,m&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-a+e.loopedSlides,0,!1)),e.emit("breakpoint",c)}}function m1(e){const t=this;if(!e)return;let n=!1;const a=[];Object.keys(e).forEach(i=>{a.push(i)}),a.sort((i,r)=>parseInt(i,10)-parseInt(r,10));for(let i=0;i<a.length;i+=1){const r=a[i];t.params.breakpointsInverse?r<=Mt.innerWidth&&(n=r):r>=Mt.innerWidth&&!n&&(n=r)}return n||"max"}var v1={setBreakpoint:g1,getBreakpoint:m1};function y1(){const e=this,{classNames:t,params:n,rtl:a,$el:i}=e,r=[];r.push("initialized"),r.push(n.direction),n.freeMode&&r.push("free-mode"),qt.flexbox||r.push("no-flexbox"),n.autoHeight&&r.push("autoheight"),a&&r.push("rtl"),n.slidesPerColumn>1&&r.push("multirow"),wn.android&&r.push("android"),wn.ios&&r.push("ios"),(Ia.isIE||Ia.isEdge)&&(qt.pointerEvents||qt.prefixedPointerEvents)&&r.push(`wp8-${n.direction}`),r.forEach(s=>{t.push(n.containerModifierClass+s)}),i.addClass(t.join(" "))}function b1(){const e=this,{$el:t,classNames:n}=e;t.removeClass(n.join(" "))}var w1={addClasses:y1,removeClasses:b1};function k1(e,t,n,a,i,r){let s;function u(){r&&r()}(!e.complete||!i)&&t?(s=new Mt.Image,s.onload=u,s.onerror=u,a&&(s.sizes=a),n&&(s.srcset=n),t&&(s.src=t)):u()}function x1(){const e=this;e.imagesToLoad=e.$el.find("img");function t(){typeof e>"u"||e===null||!e||e.destroyed||(e.imagesLoaded!==void 0&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}for(let n=0;n<e.imagesToLoad.length;n+=1){const a=e.imagesToLoad[n];e.loadImage(a,a.currentSrc||a.getAttribute("src"),a.srcset||a.getAttribute("srcset"),a.sizes||a.getAttribute("sizes"),!0,t)}}var S1={loadImage:k1,preloadImages:x1};function C1(){const e=this,t=e.isLocked;e.isLocked=e.snapGrid.length===1,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}var T1={checkOverflow:C1},_g={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,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,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!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:!0,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",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};const $c={update:LS,translate:jS,transition:$S,slide:US,loop:JS,grabCursor:e1,manipulation:s1,events:p1,breakpoints:v1,checkOverflow:T1,classes:w1,images:S1},qc={};class An extends Wg{constructor(...t){let n,a;t.length===1&&t[0].constructor&&t[0].constructor===Object?a=t[0]:[n,a]=t,a||(a={}),a=yt.extend({},a),n&&!a.el&&(a.el=n),super(a),Object.keys($c).forEach(c=>{Object.keys($c[c]).forEach(h=>{An.prototype[h]||(An.prototype[h]=$c[c][h])})});const i=this;typeof i.modules>"u"&&(i.modules={}),Object.keys(i.modules).forEach(c=>{const h=i.modules[c];if(h.params){const m=Object.keys(h.params)[0],x=h.params[m];if(typeof x!="object"||x===null||!(m in a&&"enabled"in x))return;a[m]===!0&&(a[m]={enabled:!0}),typeof a[m]=="object"&&!("enabled"in a[m])&&(a[m].enabled=!0),a[m]||(a[m]={enabled:!1})}});const r=yt.extend({},_g);i.useModulesParams(r),i.params=yt.extend({},r,qc,a),i.originalParams=yt.extend({},i.params),i.passedParams=yt.extend({},a),i.$=wt;const s=wt(i.params.el);if(n=s[0],!n)return;if(s.length>1){const c=[];return s.each((h,m)=>{const x=yt.extend({},a,{el:m});c.push(new An(x))}),c}n.swiper=i,s.data("swiper",i);const u=s.children(`.${i.params.wrapperClass}`);return yt.extend(i,{$el:s,el:n,$wrapperEl:u,wrapperEl:u[0],classNames:[],slides:wt(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},rtl:n.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl"),wrongRTL:u.css("display")==="-webkit-box",activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEvents:function(){const h=["touchstart","touchmove","touchend"];let m=["mousedown","mousemove","mouseup"];return qt.pointerEvents?m=["pointerdown","pointermove","pointerup"]:qt.prefixedPointerEvents&&(m=["MSPointerDown","MSPointerMove","MSPointerUp"]),i.touchEventsTouch={start:h[0],move:h[1],end:h[2]},i.touchEventsDesktop={start:m[0],move:m[1],end:m[2]},qt.touch||!i.params.simulateTouch?i.touchEventsTouch:i.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,formElements:"input, select, option, textarea, button, video",lastClickTime:yt.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.useModules(),i.params.init&&i.init(),i}slidesPerViewDynamic(){const t=this,{params:n,slides:a,slidesGrid:i,size:r,activeIndex:s}=t;let u=1;if(n.centeredSlides){let c=a[s].swiperSlideSize,h;for(let m=s+1;m<a.length;m+=1)a[m]&&!h&&(c+=a[m].swiperSlideSize,u+=1,c>r&&(h=!0));for(let m=s-1;m>=0;m-=1)a[m]&&!h&&(c+=a[m].swiperSlideSize,u+=1,c>r&&(h=!0))}else for(let c=s+1;c<a.length;c+=1)i[c]-i[s]<r&&(u+=1);return u}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:a}=t;a.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const s=t.rtlTranslate?t.translate*-1:t.translate,u=Math.min(Math.max(s,t.maxTranslate()),t.minTranslate());t.setTranslate(u),t.updateActiveIndex(),t.updateSlidesClasses()}let r;t.params.freeMode?(i(),t.params.autoHeight&&t.updateAutoHeight()):((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?r=t.slideTo(t.slides.length-1,0,!1,!0):r=t.slideTo(t.activeIndex,0,!1,!0),r||i()),a.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const a=this,i=a.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(a.$el.removeClass(`${a.params.containerModifierClass}${i} wp8-${i}`).addClass(`${a.params.containerModifierClass}${t}`),(Ia.isIE||Ia.isEdge)&&(qt.pointerEvents||qt.prefixedPointerEvents)&&a.$el.addClass(`${a.params.containerModifierClass}wp8-${t}`),a.params.direction=t,a.slides.each((r,s)=>{t==="vertical"?s.style.width="":s.style.height=""}),a.emit("changeDirection"),n&&a.update()),a}init(){const t=this;t.initialized||(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.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit),t.attachEvents(),t.initialized=!0,t.emit("init"))}destroy(t=!0,n=!0){const a=this,{params:i,$el:r,$wrapperEl:s,slides:u}=a;return typeof a.params>"u"||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),i.loop&&a.loopDestroy(),n&&(a.removeClasses(),r.removeAttr("style"),s.removeAttr("style"),u&&u.length&&u.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),a.emit("destroy"),Object.keys(a.eventsListeners).forEach(c=>{a.off(c)}),t!==!1&&(a.$el[0].swiper=null,a.$el.data("swiper",null),yt.deleteProps(a)),a.destroyed=!0),null}static extendDefaults(t){yt.extend(qc,t)}static get extendedDefaults(){return qc}static get defaults(){return _g}static get Class(){return Wg}static get $(){return wt}}var E1={name:"device",proto:{device:wn},static:{device:wn}},P1={name:"support",proto:{support:qt},static:{support:qt}},M1={name:"browser",proto:{browser:Ia},static:{browser:Ia}},A1={name:"resize",create(){const e=this;yt.extend(e,{resize:{resizeHandler(){!e||e.destroyed||!e.initialized||(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler(){!e||e.destroyed||!e.initialized||e.emit("orientationchange")}}})},on:{init(){const e=this;Mt.addEventListener("resize",e.resize.resizeHandler),Mt.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy(){const e=this;Mt.removeEventListener("resize",e.resize.resizeHandler),Mt.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}};const vl={func:Mt.MutationObserver||Mt.WebkitMutationObserver,attach(e,t={}){const n=this,a=vl.func,i=new a(r=>{if(r.length===1){n.emit("observerUpdate",r[0]);return}const s=function(){n.emit("observerUpdate",r[0])};Mt.requestAnimationFrame?Mt.requestAnimationFrame(s):Mt.setTimeout(s,0)});i.observe(e,{attributes:typeof t.attributes>"u"?!0:t.attributes,childList:typeof t.childList>"u"?!0:t.childList,characterData:typeof t.characterData>"u"?!0:t.characterData}),n.observer.observers.push(i)},init(){const e=this;if(!(!qt.observer||!e.params.observer)){if(e.params.observeParents){const t=e.$el.parents();for(let n=0;n<t.length;n+=1)e.observer.attach(t[n])}e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy(){const e=this;e.observer.observers.forEach(t=>{t.disconnect()}),e.observer.observers=[]}};var N1={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create(){const e=this;yt.extend(e,{observer:{init:vl.init.bind(e),attach:vl.attach.bind(e),destroy:vl.destroy.bind(e),observers:[]}})},on:{init(){this.observer.init()},destroy(){this.observer.destroy()}}};const br={update(e){const t=this,{slidesPerView:n,slidesPerGroup:a,centeredSlides:i}=t.params,{addSlidesBefore:r,addSlidesAfter:s}=t.params.virtual,{from:u,to:c,slides:h,slidesGrid:m,renderSlide:x,offset:w}=t.virtual;t.updateActiveIndex();const P=t.activeIndex||0;let E;t.rtlTranslate?E="right":E=t.isHorizontal()?"left":"top";let z,A;i?(z=Math.floor(n/2)+a+r,A=Math.floor(n/2)+a+s):(z=n+(a-1)+r,A=a+s);const k=Math.max((P||0)-A,0),S=Math.min((P||0)+z,h.length-1),N=(t.slidesGrid[k]||0)-(t.slidesGrid[0]||0);yt.extend(t.virtual,{from:k,to:S,offset:N,slidesGrid:t.slidesGrid});function L(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(u===k&&c===S&&!e){t.slidesGrid!==m&&N!==w&&t.slides.css(E,`${N}px`),t.updateProgress();return}if(t.params.virtual.renderExternal){t.params.virtual.renderExternal.call(t,{offset:N,from:k,to:S,slides:function(){const V=[];for(let F=k;F<=S;F+=1)V.push(h[F]);return V}()}),L();return}const j=[],f=[];if(e)t.$wrapperEl.find(`.${t.params.slideClass}`).remove();else for(let G=u;G<=c;G+=1)(G<k||G>S)&&t.$wrapperEl.find(`.${t.params.slideClass}[data-swiper-slide-index="${G}"]`).remove();for(let G=0;G<h.length;G+=1)G>=k&&G<=S&&(typeof c>"u"||e?f.push(G):(G>c&&f.push(G),G<u&&j.push(G)));f.forEach(G=>{t.$wrapperEl.append(x(h[G],G))}),j.sort((G,V)=>V-G).forEach(G=>{t.$wrapperEl.prepend(x(h[G],G))}),t.$wrapperEl.children(".swiper-slide").css(E,`${N}px`),L()},renderSlide(e,t){const n=this,a=n.params.virtual;if(a.cache&&n.virtual.cache[t])return n.virtual.cache[t];const i=a.renderSlide?wt(a.renderSlide.call(n,e,t)):wt(`<div class="${n.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&&(n.virtual.cache[t]=i),i},appendSlide(e){const t=this;if(typeof e=="object"&&"length"in e)for(let n=0;n<e.length;n+=1)e[n]&&t.virtual.slides.push(e[n]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide(e){const t=this,n=t.activeIndex;let a=n+1,i=1;if(Array.isArray(e)){for(let r=0;r<e.length;r+=1)e[r]&&t.virtual.slides.unshift(e[r]);a=n+e.length,i=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){const r=t.virtual.cache,s={};Object.keys(r).forEach(u=>{s[parseInt(u,10)+i]=r[u]}),t.virtual.cache=s}t.virtual.update(!0),t.slideTo(a,0)},removeSlide(e){const t=this;if(typeof e>"u"||e===null)return;let n=t.activeIndex;if(Array.isArray(e))for(let a=e.length-1;a>=0;a-=1)t.virtual.slides.splice(e[a],1),t.params.virtual.cache&&delete t.virtual.cache[e[a]],e[a]<n&&(n-=1),n=Math.max(n,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<n&&(n-=1),n=Math.max(n,0);t.virtual.update(!0),t.slideTo(n,0)},removeAllSlides(){const e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}};var L1={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create(){const e=this;yt.extend(e,{virtual:{update:br.update.bind(e),appendSlide:br.appendSlide.bind(e),prependSlide:br.prependSlide.bind(e),removeSlide:br.removeSlide.bind(e),removeAllSlides:br.removeAllSlides.bind(e),renderSlide:br.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit(){const e=this;if(!e.params.virtual.enabled)return;e.classNames.push(`${e.params.containerModifierClass}virtual`);const t={watchSlidesProgress:!0};yt.extend(e.params,t),yt.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()},setTranslate(){const e=this;e.params.virtual.enabled&&e.virtual.update()}}};const Hc={handle(e){const t=this,{rtlTranslate:n}=t;let a=e;a.originalEvent&&(a=a.originalEvent);const i=a.keyCode||a.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&i===39||t.isVertical()&&i===40||i===34)||!t.allowSlidePrev&&(t.isHorizontal()&&i===37||t.isVertical()&&i===38||i===33))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey)&&!(te.activeElement&&te.activeElement.nodeName&&(te.activeElement.nodeName.toLowerCase()==="input"||te.activeElement.nodeName.toLowerCase()==="textarea"))){if(t.params.keyboard.onlyInViewport&&(i===33||i===34||i===37||i===39||i===38||i===40)){let r=!1;if(t.$el.parents(`.${t.params.slideClass}`).length>0&&t.$el.parents(`.${t.params.slideActiveClass}`).length===0)return;const s=Mt.innerWidth,u=Mt.innerHeight,c=t.$el.offset();n&&(c.left-=t.$el[0].scrollLeft);const h=[[c.left,c.top],[c.left+t.width,c.top],[c.left,c.top+t.height],[c.left+t.width,c.top+t.height]];for(let m=0;m<h.length;m+=1){const x=h[m];x[0]>=0&&x[0]<=s&&x[1]>=0&&x[1]<=u&&(r=!0)}if(!r)return}t.isHorizontal()?((i===33||i===34||i===37||i===39)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((i===34||i===39)&&!n||(i===33||i===37)&&n)&&t.slideNext(),((i===33||i===37)&&!n||(i===34||i===39)&&n)&&t.slidePrev()):((i===33||i===34||i===38||i===40)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(i===34||i===40)&&t.slideNext(),(i===33||i===38)&&t.slidePrev()),t.emit("keyPress",i)}},enable(){const e=this;e.keyboard.enabled||(wt(te).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable(){const e=this;e.keyboard.enabled&&(wt(te).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}};var z1={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create(){const e=this;yt.extend(e,{keyboard:{enabled:!1,enable:Hc.enable.bind(e),disable:Hc.disable.bind(e),handle:Hc.handle.bind(e)}})},on:{init(){const e=this;e.params.keyboard.enabled&&e.keyboard.enable()},destroy(){const e=this;e.keyboard.enabled&&e.keyboard.disable()}}};function B1(){const e="onwheel";let t=e in te;if(!t){const n=te.createElement("div");n.setAttribute(e,"return;"),t=typeof n[e]=="function"}return!t&&te.implementation&&te.implementation.hasFeature&&te.implementation.hasFeature("","")!==!0&&(t=te.implementation.hasFeature("Events.wheel","3.0")),t}const Ea={lastScrollTime:yt.now(),event:function(){return Mt.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":B1()?"wheel":"mousewheel"}(),normalize(e){let i=0,r=0,s=0,u=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(i=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(i=r,r=0),s=i*10,u=r*10,"deltaY"in e&&(u=e.deltaY),"deltaX"in e&&(s=e.deltaX),(s||u)&&e.deltaMode&&(e.deltaMode===1?(s*=40,u*=40):(s*=800,u*=800)),s&&!i&&(i=s<1?-1:1),u&&!r&&(r=u<1?-1:1),{spinX:i,spinY:r,pixelX:s,pixelY:u}},handleMouseEnter(){const e=this;e.mouseEntered=!0},handleMouseLeave(){const e=this;e.mouseEntered=!1},handle(e){let t=e;const n=this,a=n.params.mousewheel;if(!n.mouseEntered&&!a.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);let i=0;const r=n.rtlTranslate?-1:1,s=Ea.normalize(t);if(a.forceToAxis)if(n.isHorizontal())if(Math.abs(s.pixelX)>Math.abs(s.pixelY))i=s.pixelX*r;else return!0;else if(Math.abs(s.pixelY)>Math.abs(s.pixelX))i=s.pixelY;else return!0;else i=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*r:-s.pixelY;if(i===0)return!0;if(a.invert&&(i=-i),n.params.freeMode){n.params.loop&&n.loopFix();let u=n.getTranslate()+i*a.sensitivity;const c=n.isBeginning,h=n.isEnd;if(u>=n.minTranslate()&&(u=n.minTranslate()),u<=n.maxTranslate()&&(u=n.maxTranslate()),n.setTransition(0),n.setTranslate(u),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!c&&n.isBeginning||!h&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky&&(clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=yt.nextTick(()=>{n.slideToClosest()},300)),n.emit("scroll",t),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),u===n.minTranslate()||u===n.maxTranslate())return!0}else{if(yt.now()-n.mousewheel.lastScrollTime>60){if(i<0){if((!n.isEnd||n.params.loop)&&!n.animating)n.slideNext(),n.emit("scroll",t);else if(a.releaseOnEdges)return!0}else if((!n.isBeginning||n.params.loop)&&!n.animating)n.slidePrev(),n.emit("scroll",t);else if(a.releaseOnEdges)return!0}n.mousewheel.lastScrollTime=new Mt.Date().getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable(){const e=this;if(!Ea.event||e.mousewheel.enabled)return!1;let t=e.$el;return e.params.mousewheel.eventsTarged!=="container"&&(t=wt(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(Ea.event,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable(){const e=this;if(!Ea.event||!e.mousewheel.enabled)return!1;let t=e.$el;return e.params.mousewheel.eventsTarged!=="container"&&(t=wt(e.params.mousewheel.eventsTarged)),t.off(Ea.event,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}};var D1={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create(){const e=this;yt.extend(e,{mousewheel:{enabled:!1,enable:Ea.enable.bind(e),disable:Ea.disable.bind(e),handle:Ea.handle.bind(e),handleMouseEnter:Ea.handleMouseEnter.bind(e),handleMouseLeave:Ea.handleMouseLeave.bind(e),lastScrollTime:yt.now()}})},on:{init(){const e=this;e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy(){const e=this;e.mousewheel.enabled&&e.mousewheel.disable()}}};const wo={update(){const e=this,t=e.params.navigation;if(e.params.loop)return;const{$nextEl:n,$prevEl:a}=e.navigation;a&&a.length>0&&(e.isBeginning?a.addClass(t.disabledClass):a.removeClass(t.disabledClass),a[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),n&&n.length>0&&(e.isEnd?n.addClass(t.disabledClass):n.removeClass(t.disabledClass),n[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))},onPrevClick(e){const t=this;e.preventDefault(),!(t.isBeginning&&!t.params.loop)&&t.slidePrev()},onNextClick(e){const t=this;e.preventDefault(),!(t.isEnd&&!t.params.loop)&&t.slideNext()},init(){const e=this,t=e.params.navigation;if(!(t.nextEl||t.prevEl))return;let n,a;t.nextEl&&(n=wt(t.nextEl),e.params.uniqueNavElements&&typeof t.nextEl=="string"&&n.length>1&&e.$el.find(t.nextEl).length===1&&(n=e.$el.find(t.nextEl))),t.prevEl&&(a=wt(t.prevEl),e.params.uniqueNavElements&&typeof t.prevEl=="string"&&a.length>1&&e.$el.find(t.prevEl).length===1&&(a=e.$el.find(t.prevEl))),n&&n.length>0&&n.on("click",e.navigation.onNextClick),a&&a.length>0&&a.on("click",e.navigation.onPrevClick),yt.extend(e.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:a,prevEl:a&&a[0]})},destroy(){const e=this,{$nextEl:t,$prevEl:n}=e.navigation;t&&t.length&&(t.off("click",e.navigation.onNextClick),t.removeClass(e.params.navigation.disabledClass)),n&&n.length&&(n.off("click",e.navigation.onPrevClick),n.removeClass(e.params.navigation.disabledClass))}};var I1={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create(){const e=this;yt.extend(e,{navigation:{init:wo.init.bind(e),update:wo.update.bind(e),destroy:wo.destroy.bind(e),onNextClick:wo.onNextClick.bind(e),onPrevClick:wo.onPrevClick.bind(e)}})},on:{init(){const e=this;e.navigation.init(),e.navigation.update()},toEdge(){this.navigation.update()},fromEdge(){this.navigation.update()},destroy(){this.navigation.destroy()},click(e){const t=this,{$nextEl:n,$prevEl:a}=t.navigation;if(t.params.navigation.hideOnClick&&!wt(e.target).is(a)&&!wt(e.target).is(n)){let i;n?i=n.hasClass(t.params.navigation.hiddenClass):a&&(i=a.hasClass(t.params.navigation.hiddenClass)),i===!0?t.emit("navigationShow",t):t.emit("navigationHide",t),n&&n.toggleClass(t.params.navigation.hiddenClass),a&&a.toggleClass(t.params.navigation.hiddenClass)}}}};const Xs={update(){const e=this,t=e.rtl,n=e.params.pagination;if(!n.el||!e.pagination.el||!e.pagination.$el||e.pagination.$el.length===0)return;const a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el;let r;const s=e.params.loop?Math.ceil((a-e.loopedSlides*2)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(r=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),r>a-1-e.loopedSlides*2&&(r-=a-e.loopedSlides*2),r>s-1&&(r-=s),r<0&&e.params.paginationType!=="bullets"&&(r=s+r)):typeof e.snapIndex<"u"?r=e.snapIndex:r=e.activeIndex||0,n.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const u=e.pagination.bullets;let c,h,m;if(n.dynamicBullets&&(e.pagination.bulletSize=u.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),i.css(e.isHorizontal()?"width":"height",`${e.pagination.bulletSize*(n.dynamicMainBullets+4)}px`),n.dynamicMainBullets>1&&e.previousIndex!==void 0&&(e.pagination.dynamicBulletIndex+=r-e.previousIndex,e.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),c=r-e.pagination.dynamicBulletIndex,h=c+(Math.min(u.length,n.dynamicMainBullets)-1),m=(h+c)/2),u.removeClass(`${n.bulletActiveClass} ${n.bulletActiveClass}-next ${n.bulletActiveClass}-next-next ${n.bulletActiveClass}-prev ${n.bulletActiveClass}-prev-prev ${n.bulletActiveClass}-main`),i.length>1)u.each((x,w)=>{const P=wt(w),E=P.index();E===r&&P.addClass(n.bulletActiveClass),n.dynamicBullets&&(E>=c&&E<=h&&P.addClass(`${n.bulletActiveClass}-main`),E===c&&P.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),E===h&&P.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`))});else if(u.eq(r).addClass(n.bulletActiveClass),n.dynamicBullets){const w=u.eq(c),P=u.eq(h);for(let E=c;E<=h;E+=1)u.eq(E).addClass(`${n.bulletActiveClass}-main`);w.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),P.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`)}if(n.dynamicBullets){const x=Math.min(u.length,n.dynamicMainBullets+4),w=(e.pagination.bulletSize*x-e.pagination.bulletSize)/2-m*e.pagination.bulletSize,P=t?"right":"left";u.css(e.isHorizontal()?P:"top",`${w}px`)}}if(n.type==="fraction"&&(i.find(`.${n.currentClass}`).text(n.formatFractionCurrent(r+1)),i.find(`.${n.totalClass}`).text(n.formatFractionTotal(s))),n.type==="progressbar"){let u;n.progressbarOpposite?u=e.isHorizontal()?"vertical":"horizontal":u=e.isHorizontal()?"horizontal":"vertical";const c=(r+1)/s;let h=1,m=1;u==="horizontal"?h=c:m=c,i.find(`.${n.progressbarFillClass}`).transform(`translate3d(0,0,0) scaleX(${h}) scaleY(${m})`).transition(e.params.speed)}n.type==="custom"&&n.renderCustom?(i.html(n.renderCustom(e,r+1,s)),e.emit("paginationRender",e,i[0])):e.emit("paginationUpdate",e,i[0]),i[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](n.lockClass)},render(){const e=this,t=e.params.pagination;if(!t.el||!e.pagination.el||!e.pagination.$el||e.pagination.$el.length===0)return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,a=e.pagination.$el;let i="";if(t.type==="bullets"){const r=e.params.loop?Math.ceil((n-e.loopedSlides*2)/e.params.slidesPerGroup):e.snapGrid.length;for(let s=0;s<r;s+=1)t.renderBullet?i+=t.renderBullet.call(e,s,t.bulletClass):i+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`;a.html(i),e.pagination.bullets=a.find(`.${t.bulletClass}`)}t.type==="fraction"&&(t.renderFraction?i=t.renderFraction.call(e,t.currentClass,t.totalClass):i=`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`,a.html(i)),t.type==="progressbar"&&(t.renderProgressbar?i=t.renderProgressbar.call(e,t.progressbarFillClass):i=`<span class="${t.progressbarFillClass}"></span>`,a.html(i)),t.type!=="custom"&&e.emit("paginationRender",e.pagination.$el[0])},init(){const e=this,t=e.params.pagination;if(!t.el)return;let n=wt(t.el);n.length!==0&&(e.params.uniqueNavElements&&typeof t.el=="string"&&n.length>1&&e.$el.find(t.el).length===1&&(n=e.$el.find(t.el)),t.type==="bullets"&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),t.type==="bullets"&&t.dynamicBullets&&(n.addClass(`${t.modifierClass}${t.type}-dynamic`),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),t.type==="progressbar"&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click",`.${t.bulletClass}`,function(i){i.preventDefault();let r=wt(this).index()*e.params.slidesPerGroup;e.params.loop&&(r+=e.loopedSlides),e.slideTo(r)}),yt.extend(e.pagination,{$el:n,el:n[0]}))},destroy(){const e=this,t=e.params.pagination;if(!t.el||!e.pagination.el||!e.pagination.$el||e.pagination.$el.length===0)return;const n=e.pagination.$el;n.removeClass(t.hiddenClass),n.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&n.off("click",`.${t.bulletClass}`)}};var j1={name:"pagination",params:{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:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create(){const e=this;yt.extend(e,{pagination:{init:Xs.init.bind(e),render:Xs.render.bind(e),update:Xs.update.bind(e),destroy:Xs.destroy.bind(e),dynamicBulletIndex:0}})},on:{init(){const e=this;e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange(){const e=this;(e.params.loop||typeof e.snapIndex>"u")&&e.pagination.update()},snapIndexChange(){const e=this;e.params.loop||e.pagination.update()},slidesLengthChange(){const e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange(){const e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy(){this.pagination.destroy()},click(e){const t=this;t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!wt(e.target).hasClass(t.params.pagination.bulletClass)&&(t.pagination.$el.hasClass(t.params.pagination.hiddenClass)===!0?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass))}}};const Zn={setTranslate(){const e=this;if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:n,progress:a}=e,{dragSize:i,trackSize:r,$dragEl:s,$el:u}=t,c=e.params.scrollbar;let h=i,m=(r-i)*a;n?(m=-m,m>0?(h=i-m,m=0):-m+i>r&&(h=r+m)):m<0?(h=i+m,m=0):m+i>r&&(h=r-m),e.isHorizontal()?(qt.transforms3d?s.transform(`translate3d(${m}px, 0, 0)`):s.transform(`translateX(${m}px)`),s[0].style.width=`${h}px`):(qt.transforms3d?s.transform(`translate3d(0px, ${m}px, 0)`):s.transform(`translateY(${m}px)`),s[0].style.height=`${h}px`),c.hide&&(clearTimeout(e.scrollbar.timeout),u[0].style.opacity=1,e.scrollbar.timeout=setTimeout(()=>{u[0].style.opacity=0,u.transition(400)},1e3))},setTransition(e){const t=this;!t.params.scrollbar.el||!t.scrollbar.el||t.scrollbar.$dragEl.transition(e)},updateSize(){const e=this;if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e,{$dragEl:n,$el:a}=t;n[0].style.width="",n[0].style.height="";const i=e.isHorizontal()?a[0].offsetWidth:a[0].offsetHeight,r=e.size/e.virtualSize,s=r*(i/e.size);let u;e.params.scrollbar.dragSize==="auto"?u=i*r:u=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?n[0].style.width=`${u}px`:n[0].style.height=`${u}px`,r>=1?a[0].style.display="none":a[0].style.display="",e.params.scrollbar.hide&&(a[0].style.opacity=0),yt.extend(t,{trackSize:i,divider:r,moveDivider:s,dragSize:u}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)},getPointerPosition(e){return this.isHorizontal()?e.type==="touchstart"||e.type==="touchmove"?e.targetTouches[0].pageX:e.pageX||e.clientX:e.type==="touchstart"||e.type==="touchmove"?e.targetTouches[0].pageY:e.pageY||e.clientY},setDragPosition(e){const t=this,{scrollbar:n,rtlTranslate:a}=t,{$el:i,dragSize:r,trackSize:s,dragStartPos:u}=n;let c;c=(n.getPointerPosition(e)-i.offset()[t.isHorizontal()?"left":"top"]-(u!==null?u:r/2))/(s-r),c=Math.max(Math.min(c,1),0),a&&(c=1-c);const h=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*c;t.updateProgress(h),t.setTranslate(h),t.updateActiveIndex(),t.updateSlidesClasses()},onDragStart(e){const t=this,n=t.params.scrollbar,{scrollbar:a,$wrapperEl:i}=t,{$el:r,$dragEl:s}=a;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===s[0]||e.target===s?a.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.transition(100),s.transition(100),a.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),r.transition(0),n.hide&&r.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove(e){const t=this,{scrollbar:n,$wrapperEl:a}=t,{$el:i,$dragEl:r}=n;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,n.setDragPosition(e),a.transition(0),i.transition(0),r.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd(e){const t=this,n=t.params.scrollbar,{scrollbar:a}=t,{$el:i}=a;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,n.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=yt.nextTick(()=>{i.css("opacity",0),i.transition(400)},1e3)),t.emit("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())},enableDraggable(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,touchEventsTouch:n,touchEventsDesktop:a,params:i}=e,s=t.$el[0],u=qt.passiveListener&&i.passiveListeners?{passive:!1,capture:!1}:!1,c=qt.passiveListener&&i.passiveListeners?{passive:!0,capture:!1}:!1;qt.touch?(s.addEventListener(n.start,e.scrollbar.onDragStart,u),s.addEventListener(n.move,e.scrollbar.onDragMove,u),s.addEventListener(n.end,e.scrollbar.onDragEnd,c)):(s.addEventListener(a.start,e.scrollbar.onDragStart,u),te.addEventListener(a.move,e.scrollbar.onDragMove,u),te.addEventListener(a.end,e.scrollbar.onDragEnd,c))},disableDraggable(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,touchEventsTouch:n,touchEventsDesktop:a,params:i}=e,s=t.$el[0],u=qt.passiveListener&&i.passiveListeners?{passive:!1,capture:!1}:!1,c=qt.passiveListener&&i.passiveListeners?{passive:!0,capture:!1}:!1;qt.touch?(s.removeEventListener(n.start,e.scrollbar.onDragStart,u),s.removeEventListener(n.move,e.scrollbar.onDragMove,u),s.removeEventListener(n.end,e.scrollbar.onDragEnd,c)):(s.removeEventListener(a.start,e.scrollbar.onDragStart,u),te.removeEventListener(a.move,e.scrollbar.onDragMove,u),te.removeEventListener(a.end,e.scrollbar.onDragEnd,c))},init(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,$el:n}=e,a=e.params.scrollbar;let i=wt(a.el);e.params.uniqueNavElements&&typeof a.el=="string"&&i.length>1&&n.find(a.el).length===1&&(i=n.find(a.el));let r=i.find(`.${e.params.scrollbar.dragClass}`);r.length===0&&(r=wt(`<div class="${e.params.scrollbar.dragClass}"></div>`),i.append(r)),yt.extend(t,{$el:i,el:i[0],$dragEl:r,dragEl:r[0]}),a.draggable&&t.enableDraggable()},destroy(){this.scrollbar.disableDraggable()}};var R1={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create(){const e=this;yt.extend(e,{scrollbar:{init:Zn.init.bind(e),destroy:Zn.destroy.bind(e),updateSize:Zn.updateSize.bind(e),setTranslate:Zn.setTranslate.bind(e),setTransition:Zn.setTransition.bind(e),enableDraggable:Zn.enableDraggable.bind(e),disableDraggable:Zn.disableDraggable.bind(e),setDragPosition:Zn.setDragPosition.bind(e),getPointerPosition:Zn.getPointerPosition.bind(e),onDragStart:Zn.onDragStart.bind(e),onDragMove:Zn.onDragMove.bind(e),onDragEnd:Zn.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init(){const e=this;e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update(){this.scrollbar.updateSize()},resize(){this.scrollbar.updateSize()},observerUpdate(){this.scrollbar.updateSize()},setTranslate(){this.scrollbar.setTranslate()},setTransition(e){this.scrollbar.setTransition(e)},destroy(){this.scrollbar.destroy()}}};const Fc={setTransform(e,t){const n=this,{rtl:a}=n,i=wt(e),r=a?-1:1,s=i.attr("data-swiper-parallax")||"0";let u=i.attr("data-swiper-parallax-x"),c=i.attr("data-swiper-parallax-y");const h=i.attr("data-swiper-parallax-scale"),m=i.attr("data-swiper-parallax-opacity");if(u||c?(u=u||"0",c=c||"0"):n.isHorizontal()?(u=s,c="0"):(c=s,u="0"),u.indexOf("%")>=0?u=`${parseInt(u,10)*t*r}%`:u=`${u*t*r}px`,c.indexOf("%")>=0?c=`${parseInt(c,10)*t}%`:c=`${c*t}px`,typeof m<"u"&&m!==null){const x=m-(m-1)*(1-Math.abs(t));i[0].style.opacity=x}if(typeof h>"u"||h===null)i.transform(`translate3d(${u}, ${c}, 0px)`);else{const x=h-(h-1)*(1-Math.abs(t));i.transform(`translate3d(${u}, ${c}, 0px) scale(${x})`)}},setTranslate(){const e=this,{$el:t,slides:n,progress:a,snapGrid:i}=e;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((r,s)=>{e.parallax.setTransform(s,a)}),n.each((r,s)=>{let u=s.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(u+=Math.ceil(r/2)-a*(i.length-1)),u=Math.min(Math.max(u,-1),1),wt(s).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((c,h)=>{e.parallax.setTransform(h,u)})})},setTransition(e=this.params.speed){const t=this,{$el:n}=t;n.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((a,i)=>{const r=wt(i);let s=parseInt(r.attr("data-swiper-parallax-duration"),10)||e;e===0&&(s=0),r.transition(s)})}};var O1={name:"parallax",params:{parallax:{enabled:!1}},create(){const e=this;yt.extend(e,{parallax:{setTransform:Fc.setTransform.bind(e),setTranslate:Fc.setTranslate.bind(e),setTransition:Fc.setTransition.bind(e)}})},on:{beforeInit(){const e=this;e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init(){const e=this;e.params.parallax.enabled&&e.parallax.setTranslate()},setTranslate(){const e=this;e.params.parallax.enabled&&e.parallax.setTranslate()},setTransition(e){const t=this;t.params.parallax.enabled&&t.parallax.setTransition(e)}}};const Yd={getDistanceBetweenTouches(e){if(e.targetTouches.length<2)return 1;const t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,a=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY;return Math.sqrt((a-t)**2+(i-n)**2)},onGestureStart(e){const t=this,n=t.params.zoom,a=t.zoom,{gesture:i}=a;if(a.fakeGestureTouched=!1,a.fakeGestureMoved=!1,!qt.gestures){if(e.type!=="touchstart"||e.type==="touchstart"&&e.targetTouches.length<2)return;a.fakeGestureTouched=!0,i.scaleStart=Yd.getDistanceBetweenTouches(e)}if((!i.$slideEl||!i.$slideEl.length)&&(i.$slideEl=wt(e.target).closest(".swiper-slide"),i.$slideEl.length===0&&(i.$slideEl=t.slides.eq(t.activeIndex)),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent(`.${n.containerClass}`),i.maxRatio=i.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,i.$imageWrapEl.length===0)){i.$imageEl=void 0;return}i.$imageEl.transition(0),t.zoom.isScaling=!0},onGestureChange(e){const t=this,n=t.params.zoom,a=t.zoom,{gesture:i}=a;if(!qt.gestures){if(e.type!=="touchmove"||e.type==="touchmove"&&e.targetTouches.length<2)return;a.fakeGestureMoved=!0,i.scaleMove=Yd.getDistanceBetweenTouches(e)}!i.$imageEl||i.$imageEl.length===0||(qt.gestures?a.scale=e.scale*a.currentScale:a.scale=i.scaleMove/i.scaleStart*a.currentScale,a.scale>i.maxRatio&&(a.scale=i.maxRatio-1+(a.scale-i.maxRatio+1)**.5),a.scale<n.minRatio&&(a.scale=n.minRatio+1-(n.minRatio-a.scale+1)**.5),i.$imageEl.transform(`translate3d(0,0,0) scale(${a.scale})`))},onGestureEnd(e){const t=this,n=t.params.zoom,a=t.zoom,{gesture:i}=a;if(!qt.gestures){if(!a.fakeGestureTouched||!a.fakeGestureMoved||e.type!=="touchend"||e.type==="touchend"&&e.changedTouches.length<2&&!wn.android)return;a.fakeGestureTouched=!1,a.fakeGestureMoved=!1}!i.$imageEl||i.$imageEl.length===0||(a.scale=Math.max(Math.min(a.scale,i.maxRatio),n.minRatio),i.$imageEl.transition(t.params.speed).transform(`translate3d(0,0,0) scale(${a.scale})`),a.currentScale=a.scale,a.isScaling=!1,a.scale===1&&(i.$slideEl=void 0))},onTouchStart(e){const n=this.zoom,{gesture:a,image:i}=n;!a.$imageEl||a.$imageEl.length===0||i.isTouched||(wn.android&&e.preventDefault(),i.isTouched=!0,i.touchesStart.x=e.type==="touchstart"?e.targetTouches[0].pageX:e.pageX,i.touchesStart.y=e.type==="touchstart"?e.targetTouches[0].pageY:e.pageY)},onTouchMove(e){const t=this,n=t.zoom,{gesture:a,image:i,velocity:r}=n;if(!a.$imageEl||a.$imageEl.length===0||(t.allowClick=!1,!i.isTouched||!a.$slideEl))return;i.isMoved||(i.width=a.$imageEl[0].offsetWidth,i.height=a.$imageEl[0].offsetHeight,i.startX=yt.getTranslate(a.$imageWrapEl[0],"x")||0,i.startY=yt.getTranslate(a.$imageWrapEl[0],"y")||0,a.slideWidth=a.$slideEl[0].offsetWidth,a.slideHeight=a.$slideEl[0].offsetHeight,a.$imageWrapEl.transition(0),t.rtl&&(i.startX=-i.startX,i.startY=-i.startY));const s=i.width*n.scale,u=i.height*n.scale;if(!(s<a.slideWidth&&u<a.slideHeight)){if(i.minX=Math.min(a.slideWidth/2-s/2,0),i.maxX=-i.minX,i.minY=Math.min(a.slideHeight/2-u/2,0),i.maxY=-i.minY,i.touchesCurrent.x=e.type==="touchmove"?e.targetTouches[0].pageX:e.pageX,i.touchesCurrent.y=e.type==="touchmove"?e.targetTouches[0].pageY:e.pageY,!i.isMoved&&!n.isScaling){if(t.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x)){i.isTouched=!1;return}if(!t.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y)){i.isTouched=!1;return}}e.preventDefault(),e.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-(i.minX-i.currentX+1)**.8),i.currentX>i.maxX&&(i.currentX=i.maxX-1+(i.currentX-i.maxX+1)**.8),i.currentY<i.minY&&(i.currentY=i.minY+1-(i.minY-i.currentY+1)**.8),i.currentY>i.maxY&&(i.currentY=i.maxY-1+(i.currentY-i.maxY+1)**.8),r.prevPositionX||(r.prevPositionX=i.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=i.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(i.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(i.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(i.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0),Math.abs(i.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0),r.prevPositionX=i.touchesCurrent.x,r.prevPositionY=i.touchesCurrent.y,r.prevTime=Date.now(),a.$imageWrapEl.transform(`translate3d(${i.currentX}px, ${i.currentY}px,0)`)}},onTouchEnd(){const t=this.zoom,{gesture:n,image:a,velocity:i}=t;if(!n.$imageEl||n.$imageEl.length===0)return;if(!a.isTouched||!a.isMoved){a.isTouched=!1,a.isMoved=!1;return}a.isTouched=!1,a.isMoved=!1;let r=300,s=300;const u=i.x*r,c=a.currentX+u,h=i.y*s,m=a.currentY+h;i.x!==0&&(r=Math.abs((c-a.currentX)/i.x)),i.y!==0&&(s=Math.abs((m-a.currentY)/i.y));const x=Math.max(r,s);a.currentX=c,a.currentY=m;const w=a.width*t.scale,P=a.height*t.scale;a.minX=Math.min(n.slideWidth/2-w/2,0),a.maxX=-a.minX,a.minY=Math.min(n.slideHeight/2-P/2,0),a.maxY=-a.minY,a.currentX=Math.max(Math.min(a.currentX,a.maxX),a.minX),a.currentY=Math.max(Math.min(a.currentY,a.maxY),a.minY),n.$imageWrapEl.transition(x).transform(`translate3d(${a.currentX}px, ${a.currentY}px,0)`)},onTransitionEnd(){const e=this,t=e.zoom,{gesture:n}=t;n.$slideEl&&e.previousIndex!==e.activeIndex&&(n.$imageEl.transform("translate3d(0,0,0) scale(1)"),n.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},toggle(e){const n=this.zoom;n.scale&&n.scale!==1?n.out():n.in(e)},in(e){const t=this,n=t.zoom,a=t.params.zoom,{gesture:i,image:r}=n;if(i.$slideEl||(i.$slideEl=t.clickedSlide?wt(t.clickedSlide):t.slides.eq(t.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent(`.${a.containerClass}`)),!i.$imageEl||i.$imageEl.length===0)return;i.$slideEl.addClass(`${a.zoomedSlideClass}`);let s,u,c,h,m,x,w,P,E,z,A,k,S,N,L,j,f,G;typeof r.touchesStart.x>"u"&&e?(s=e.type==="touchend"?e.changedTouches[0].pageX:e.pageX,u=e.type==="touchend"?e.changedTouches[0].pageY:e.pageY):(s=r.touchesStart.x,u=r.touchesStart.y),n.scale=i.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,n.currentScale=i.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,e?(f=i.$slideEl[0].offsetWidth,G=i.$slideEl[0].offsetHeight,c=i.$slideEl.offset().left,h=i.$slideEl.offset().top,m=c+f/2-s,x=h+G/2-u,E=i.$imageEl[0].offsetWidth,z=i.$imageEl[0].offsetHeight,A=E*n.scale,k=z*n.scale,S=Math.min(f/2-A/2,0),N=Math.min(G/2-k/2,0),L=-S,j=-N,w=m*n.scale,P=x*n.scale,w<S&&(w=S),w>L&&(w=L),P<N&&(P=N),P>j&&(P=j)):(w=0,P=0),i.$imageWrapEl.transition(300).transform(`translate3d(${w}px, ${P}px,0)`),i.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${n.scale})`)},out(){const e=this,t=e.zoom,n=e.params.zoom,{gesture:a}=t;a.$slideEl||(a.$slideEl=e.clickedSlide?wt(e.clickedSlide):e.slides.eq(e.activeIndex),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent(`.${n.containerClass}`)),!(!a.$imageEl||a.$imageEl.length===0)&&(t.scale=1,t.currentScale=1,a.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),a.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),a.$slideEl.removeClass(`${n.zoomedSlideClass}`),a.$slideEl=void 0)},enable(){const e=this,t=e.zoom;if(t.enabled)return;t.enabled=!0;const n=e.touchEvents.start==="touchstart"&&qt.passiveListener&&e.params.passiveListeners?{passive:!0,capture:!1}:!1;qt.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,n)):e.touchEvents.start==="touchstart"&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),e.$wrapperEl.on(e.touchEvents.move,`.${e.params.zoom.containerClass}`,t.onTouchMove)},disable(){const e=this,t=e.zoom;if(!t.enabled)return;e.zoom.enabled=!1;const n=e.touchEvents.start==="touchstart"&&qt.passiveListener&&e.params.passiveListeners?{passive:!0,capture:!1}:!1;qt.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,n)):e.touchEvents.start==="touchstart"&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),e.$wrapperEl.off(e.touchEvents.move,`.${e.params.zoom.containerClass}`,t.onTouchMove)}};var K1={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create(){const e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{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:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(a=>{t[a]=Yd[a].bind(e)}),yt.extend(e,{zoom:t});let n=1;Object.defineProperty(e.zoom,"scale",{get(){return n},set(a){if(n!==a){const i=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,r=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",a,i,r)}n=a}})},on:{init(){const e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy(){this.zoom.disable()},touchStart(e){const t=this;t.zoom.enabled&&t.zoom.onTouchStart(e)},touchEnd(e){const t=this;t.zoom.enabled&&t.zoom.onTouchEnd(e)},doubleTap(e){const t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd(){const e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()}}};const Vg={loadInSlide(e,t=!0){const n=this,a=n.params.lazy;if(typeof e>"u"||n.slides.length===0)return;const r=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children(`.${n.params.slideClass}[data-swiper-slide-index="${e}"]`):n.slides.eq(e);let s=r.find(`.${a.elementClass}:not(.${a.loadedClass}):not(.${a.loadingClass})`);r.hasClass(a.elementClass)&&!r.hasClass(a.loadedClass)&&!r.hasClass(a.loadingClass)&&(s=s.add(r[0])),s.length!==0&&s.each((u,c)=>{const h=wt(c);h.addClass(a.loadingClass);const m=h.attr("data-background"),x=h.attr("data-src"),w=h.attr("data-srcset"),P=h.attr("data-sizes");n.loadImage(h[0],x||m,w,P,!1,()=>{if(!(typeof n>"u"||n===null||!n||n&&!n.params||n.destroyed)){if(m?(h.css("background-image",`url("${m}")`),h.removeAttr("data-background")):(w&&(h.attr("srcset",w),h.removeAttr("data-srcset")),P&&(h.attr("sizes",P),h.removeAttr("data-sizes")),x&&(h.attr("src",x),h.removeAttr("data-src"))),h.addClass(a.loadedClass).removeClass(a.loadingClass),r.find(`.${a.preloaderClass}`).remove(),n.params.loop&&t){const E=r.attr("data-swiper-slide-index");if(r.hasClass(n.params.slideDuplicateClass)){const z=n.$wrapperEl.children(`[data-swiper-slide-index="${E}"]:not(.${n.params.slideDuplicateClass})`);n.lazy.loadInSlide(z.index(),!1)}else{const z=n.$wrapperEl.children(`.${n.params.slideDuplicateClass}[data-swiper-slide-index="${E}"]`);n.lazy.loadInSlide(z.index(),!1)}}n.emit("lazyImageReady",r[0],h[0])}}),n.emit("lazyImageLoad",r[0],h[0])})},load(){const e=this,{$wrapperEl:t,params:n,slides:a,activeIndex:i}=e,r=e.virtual&&n.virtual.enabled,s=n.lazy;let u=n.slidesPerView;u==="auto"&&(u=0);function c(m){if(r){if(t.children(`.${n.slideClass}[data-swiper-slide-index="${m}"]`).length)return!0}else if(a[m])return!0;return!1}function h(m){return r?wt(m).attr("data-swiper-slide-index"):wt(m).index()}if(e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children(`.${n.slideVisibleClass}`).each((m,x)=>{const w=r?wt(x).attr("data-swiper-slide-index"):wt(x).index();e.lazy.loadInSlide(w)});else if(u>1)for(let m=i;m<i+u;m+=1)c(m)&&e.lazy.loadInSlide(m);else e.lazy.loadInSlide(i);if(s.loadPrevNext)if(u>1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){const m=s.loadPrevNextAmount,x=u,w=Math.min(i+x+Math.max(m,x),a.length),P=Math.max(i-Math.max(x,m),0);for(let E=i+u;E<w;E+=1)c(E)&&e.lazy.loadInSlide(E);for(let E=P;E<i;E+=1)c(E)&&e.lazy.loadInSlide(E)}else{const m=t.children(`.${n.slideNextClass}`);m.length>0&&e.lazy.loadInSlide(h(m));const x=t.children(`.${n.slidePrevClass}`);x.length>0&&e.lazy.loadInSlide(h(x))}}};var $1={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create(){const e=this;yt.extend(e,{lazy:{initialImageLoaded:!1,load:Vg.load.bind(e),loadInSlide:Vg.loadInSlide.bind(e)}})},on:{beforeInit(){const e=this;e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init(){const e=this;e.params.lazy.enabled&&!e.params.loop&&e.params.initialSlide===0&&e.lazy.load()},scroll(){const e=this;e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize(){const e=this;e.params.lazy.enabled&&e.lazy.load()},scrollbarDragMove(){const e=this;e.params.lazy.enabled&&e.lazy.load()},transitionStart(){const e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd(){const e=this;e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()}}};const Vo={LinearSpline:function(t,n){const a=function(){let u,c,h;return(m,x)=>{for(c=-1,u=m.length;u-c>1;)h=u+c>>1,m[h]<=x?c=h:u=h;return u}}();this.x=t,this.y=n,this.lastIndex=t.length-1;let i,r;return this.interpolate=function(u){return u?(r=a(this.x,u),i=r-1,(u-this.x[i])*(this.y[r]-this.y[i])/(this.x[r]-this.x[i])+this.y[i]):0},this},getInterpolateFunction(e){const t=this;t.controller.spline||(t.controller.spline=t.params.loop?new Vo.LinearSpline(t.slidesGrid,e.slidesGrid):new Vo.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate(e,t){const n=this,a=n.controller.control;let i,r;function s(u){const c=n.rtlTranslate?-n.translate:n.translate;n.params.controller.by==="slide"&&(n.controller.getInterpolateFunction(u),r=-n.controller.spline.interpolate(-c)),(!r||n.params.controller.by==="container")&&(i=(u.maxTranslate()-u.minTranslate())/(n.maxTranslate()-n.minTranslate()),r=(c-n.minTranslate())*i+u.minTranslate()),n.params.controller.inverse&&(r=u.maxTranslate()-r),u.updateProgress(r),u.setTranslate(r,n),u.updateActiveIndex(),u.updateSlidesClasses()}if(Array.isArray(a))for(let u=0;u<a.length;u+=1)a[u]!==t&&a[u]instanceof An&&s(a[u]);else a instanceof An&&t!==a&&s(a)},setTransition(e,t){const n=this,a=n.controller.control;let i;function r(s){s.setTransition(e,n),e!==0&&(s.transitionStart(),s.params.autoHeight&&yt.nextTick(()=>{s.updateAutoHeight()}),s.$wrapperEl.transitionEnd(()=>{a&&(s.params.loop&&n.params.controller.by==="slide"&&s.loopFix(),s.transitionEnd())}))}if(Array.isArray(a))for(i=0;i<a.length;i+=1)a[i]!==t&&a[i]instanceof An&&r(a[i]);else a instanceof An&&t!==a&&r(a)}};var q1={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create(){const e=this;yt.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:Vo.getInterpolateFunction.bind(e),setTranslate:Vo.setTranslate.bind(e),setTransition:Vo.setTransition.bind(e)}})},on:{update(){const e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize(){const e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate(){const e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate(e,t){const n=this;n.controller.control&&n.controller.setTranslate(e,t)},setTransition(e,t){const n=this;n.controller.control&&n.controller.setTransition(e,t)}}};const Gg={makeElFocusable(e){return e.attr("tabIndex","0"),e},addElRole(e,t){return e.attr("role",t),e},addElLabel(e,t){return e.attr("aria-label",t),e},disableEl(e){return e.attr("aria-disabled",!0),e},enableEl(e){return e.attr("aria-disabled",!1),e},onEnterKey(e){const t=this,n=t.params.a11y;if(e.keyCode!==13)return;const a=wt(e.target);t.navigation&&t.navigation.$nextEl&&a.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(n.lastSlideMessage):t.a11y.notify(n.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&a.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(n.firstSlideMessage):t.a11y.notify(n.prevSlideMessage)),t.pagination&&a.is(`.${t.params.pagination.bulletClass}`)&&a[0].click()},notify(e){const n=this.a11y.liveRegion;n.length!==0&&(n.html(""),n.html(e))},updateNavigation(){const e=this;if(e.params.loop)return;const{$nextEl:t,$prevEl:n}=e.navigation;n&&n.length>0&&(e.isBeginning?e.a11y.disableEl(n):e.a11y.enableEl(n)),t&&t.length>0&&(e.isEnd?e.a11y.disableEl(t):e.a11y.enableEl(t))},updatePagination(){const e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((n,a)=>{const i=wt(a);e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,t.paginationBulletMessage.replace(/{{index}}/,i.index()+1))})},init(){const e=this;e.$el.append(e.a11y.liveRegion);const t=e.params.a11y;let n,a;e.navigation&&e.navigation.$nextEl&&(n=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(a=e.navigation.$prevEl),n&&(e.a11y.makeElFocusable(n),e.a11y.addElRole(n,"button"),e.a11y.addElLabel(n,t.nextSlideMessage),n.on("keydown",e.a11y.onEnterKey)),a&&(e.a11y.makeElFocusable(a),e.a11y.addElRole(a,"button"),e.a11y.addElLabel(a,t.prevSlideMessage),a.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown",`.${e.params.pagination.bulletClass}`,e.a11y.onEnterKey)},destroy(){const e=this;e.a11y.liveRegion&&e.a11y.liveRegion.length>0&&e.a11y.liveRegion.remove();let t,n;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(n=e.navigation.$prevEl),t&&t.off("keydown",e.a11y.onEnterKey),n&&n.off("keydown",e.a11y.onEnterKey),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.off("keydown",`.${e.params.pagination.bulletClass}`,e.a11y.onEnterKey)}};var H1={name:"a11y",params:{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}}"}},create(){const e=this;yt.extend(e,{a11y:{liveRegion:wt(`<span class="${e.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}}),Object.keys(Gg).forEach(t=>{e.a11y[t]=Gg[t].bind(e)})},on:{init(){const e=this;e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge(){const e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},fromEdge(){const e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},paginationUpdate(){const e=this;e.params.a11y.enabled&&e.a11y.updatePagination()},destroy(){const e=this;e.params.a11y.enabled&&e.a11y.destroy()}}};const Va={init(){const e=this;if(!e.params.history)return;if(!Mt.history||!Mt.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}const t=e.history;t.initialized=!0,t.paths=Va.getPathValues(),!(!t.paths.key&&!t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||Mt.addEventListener("popstate",e.history.setHistoryPopState))},destroy(){const e=this;e.params.history.replaceState||Mt.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState(){const e=this;e.history.paths=Va.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues(){const e=Mt.location.pathname.slice(1).split("/").filter(i=>i!==""),t=e.length,n=e[t-2],a=e[t-1];return{key:n,value:a}},setHistory(e,t){const n=this;if(!n.history.initialized||!n.params.history.enabled)return;const a=n.slides.eq(t);let i=Va.slugify(a.attr("data-history"));Mt.location.pathname.includes(e)||(i=`${e}/${i}`);const r=Mt.history.state;r&&r.value===i||(n.params.history.replaceState?Mt.history.replaceState({value:i},null,i):Mt.history.pushState({value:i},null,i))},slugify(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide(e,t,n){const a=this;if(t)for(let i=0,r=a.slides.length;i<r;i+=1){const s=a.slides.eq(i);if(Va.slugify(s.attr("data-history"))===t&&!s.hasClass(a.params.slideDuplicateClass)){const c=s.index();a.slideTo(c,e,n)}}else a.slideTo(0,e,n)}};var F1={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){const e=this;yt.extend(e,{history:{init:Va.init.bind(e),setHistory:Va.setHistory.bind(e),setHistoryPopState:Va.setHistoryPopState.bind(e),scrollToSlide:Va.scrollToSlide.bind(e),destroy:Va.destroy.bind(e)}})},on:{init(){const e=this;e.params.history.enabled&&e.history.init()},destroy(){const e=this;e.params.history.enabled&&e.history.destroy()},transitionEnd(){const e=this;e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)}}};const Zs={onHashCange(){const e=this,t=te.location.hash.replace("#",""),n=e.slides.eq(e.activeIndex).attr("data-hash");if(t!==n){const a=e.$wrapperEl.children(`.${e.params.slideClass}[data-hash="${t}"]`).index();if(typeof a>"u")return;e.slideTo(a)}},setHash(){const e=this;if(!(!e.hashNavigation.initialized||!e.params.hashNavigation.enabled))if(e.params.hashNavigation.replaceState&&Mt.history&&Mt.history.replaceState)Mt.history.replaceState(null,null,`#${e.slides.eq(e.activeIndex).attr("data-hash")}`||"");else{const t=e.slides.eq(e.activeIndex),n=t.attr("data-hash")||t.attr("data-history");te.location.hash=n||""}},init(){const e=this;if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;e.hashNavigation.initialized=!0;const t=te.location.hash.replace("#","");if(t)for(let a=0,i=e.slides.length;a<i;a+=1){const r=e.slides.eq(a);if((r.attr("data-hash")||r.attr("data-history"))===t&&!r.hasClass(e.params.slideDuplicateClass)){const u=r.index();e.slideTo(u,0,e.params.runCallbacksOnInit,!0)}}e.params.hashNavigation.watchState&&wt(Mt).on("hashchange",e.hashNavigation.onHashCange)},destroy(){const e=this;e.params.hashNavigation.watchState&&wt(Mt).off("hashchange",e.hashNavigation.onHashCange)}};var W1={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create(){const e=this;yt.extend(e,{hashNavigation:{initialized:!1,init:Zs.init.bind(e),destroy:Zs.destroy.bind(e),setHash:Zs.setHash.bind(e),onHashCange:Zs.onHashCange.bind(e)}})},on:{init(){const e=this;e.params.hashNavigation.enabled&&e.hashNavigation.init()},destroy(){const e=this;e.params.hashNavigation.enabled&&e.hashNavigation.destroy()},transitionEnd(){const e=this;e.hashNavigation.initialized&&e.hashNavigation.setHash()}}};const Js={run(){const e=this,t=e.slides.eq(e.activeIndex);let n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=yt.nextTick(()=>{e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))},n)},start(){const e=this;return typeof e.autoplay.timeout<"u"||e.autoplay.running?!1:(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0)},stop(){const e=this;return!e.autoplay.running||typeof e.autoplay.timeout>"u"?!1:(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0)},pause(e){const t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,e===0||!t.params.autoplay.waitForTransition?(t.autoplay.paused=!1,t.autoplay.run()):(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd))))}};var _1={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create(){const e=this;yt.extend(e,{autoplay:{running:!1,paused:!1,run:Js.run.bind(e),start:Js.start.bind(e),stop:Js.stop.bind(e),pause:Js.pause.bind(e),onTransitionEnd(t){!e||e.destroyed||!e.$wrapperEl||t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init(){const e=this;e.params.autoplay.enabled&&e.autoplay.start()},beforeTransitionStart(e,t){const n=this;n.autoplay.running&&(t||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(e):n.autoplay.stop())},sliderFirstMove(){const e=this;e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},destroy(){const e=this;e.autoplay.running&&e.autoplay.stop()}}};const Ug={setTranslate(){const e=this,{slides:t}=e;for(let n=0;n<t.length;n+=1){const a=e.slides.eq(n);let r=-a[0].swiperSlideOffset;e.params.virtualTranslate||(r-=e.translate);let s=0;e.isHorizontal()||(s=r,r=0);const u=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(a[0].progress),0):1+Math.min(Math.max(a[0].progress,-1),0);a.css({opacity:u}).transform(`translate3d(${r}px, ${s}px, 0px)`)}},setTransition(e){const t=this,{slides:n,$wrapperEl:a}=t;if(n.transition(e),t.params.virtualTranslate&&e!==0){let i=!1;n.transitionEnd(()=>{if(i||!t||t.destroyed)return;i=!0,t.animating=!1;const r=["webkitTransitionEnd","transitionend"];for(let s=0;s<r.length;s+=1)a.trigger(r[s])})}}};var V1={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){const e=this;yt.extend(e,{fadeEffect:{setTranslate:Ug.setTranslate.bind(e),setTransition:Ug.setTransition.bind(e)}})},on:{beforeInit(){const e=this;if(e.params.effect!=="fade")return;e.classNames.push(`${e.params.containerModifierClass}fade`);const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};yt.extend(e.params,t),yt.extend(e.originalParams,t)},setTranslate(){const e=this;e.params.effect==="fade"&&e.fadeEffect.setTranslate()},setTransition(e){const t=this;t.params.effect==="fade"&&t.fadeEffect.setTransition(e)}}};const Yg={setTranslate(){const e=this,{$el:t,$wrapperEl:n,slides:a,width:i,height:r,rtlTranslate:s,size:u}=e,c=e.params.cubeEffect,h=e.isHorizontal(),m=e.virtual&&e.params.virtual.enabled;let x=0,w;c.shadow&&(h?(w=n.find(".swiper-cube-shadow"),w.length===0&&(w=wt('<div class="swiper-cube-shadow"></div>'),n.append(w)),w.css({height:`${i}px`})):(w=t.find(".swiper-cube-shadow"),w.length===0&&(w=wt('<div class="swiper-cube-shadow"></div>'),t.append(w))));for(let E=0;E<a.length;E+=1){const z=a.eq(E);let A=E;m&&(A=parseInt(z.attr("data-swiper-slide-index"),10));let k=A*90,S=Math.floor(k/360);s&&(k=-k,S=Math.floor(-k/360));const N=Math.max(Math.min(z[0].progress,1),-1);let L=0,j=0,f=0;A%4===0?(L=-S*4*u,f=0):(A-1)%4===0?(L=0,f=-S*4*u):(A-2)%4===0?(L=u+S*4*u,f=u):(A-3)%4===0&&(L=-u,f=3*u+u*4*S),s&&(L=-L),h||(j=L,L=0);const G=`rotateX(${h?0:-k}deg) rotateY(${h?k:0}deg) translate3d(${L}px, ${j}px, ${f}px)`;if(N<=1&&N>-1&&(x=A*90+N*90,s&&(x=-A*90-N*90)),z.transform(G),c.slideShadows){let V=h?z.find(".swiper-slide-shadow-left"):z.find(".swiper-slide-shadow-top"),F=h?z.find(".swiper-slide-shadow-right"):z.find(".swiper-slide-shadow-bottom");V.length===0&&(V=wt(`<div class="swiper-slide-shadow-${h?"left":"top"}"></div>`),z.append(V)),F.length===0&&(F=wt(`<div class="swiper-slide-shadow-${h?"right":"bottom"}"></div>`),z.append(F)),V.length&&(V[0].style.opacity=Math.max(-N,0)),F.length&&(F[0].style.opacity=Math.max(N,0))}}if(n.css({"-webkit-transform-origin":`50% 50% -${u/2}px`,"-moz-transform-origin":`50% 50% -${u/2}px`,"-ms-transform-origin":`50% 50% -${u/2}px`,"transform-origin":`50% 50% -${u/2}px`}),c.shadow)if(h)w.transform(`translate3d(0px, ${i/2+c.shadowOffset}px, ${-i/2}px) rotateX(90deg) rotateZ(0deg) scale(${c.shadowScale})`);else{const E=Math.abs(x)-Math.floor(Math.abs(x)/90)*90,z=1.5-(Math.sin(E*2*Math.PI/360)/2+Math.cos(E*2*Math.PI/360)/2),A=c.shadowScale,k=c.shadowScale/z,S=c.shadowOffset;w.transform(`scale3d(${A}, 1, ${k}) translate3d(0px, ${r/2+S}px, ${-r/2/k}px) rotateX(-90deg)`)}const P=Ia.isSafari||Ia.isUiWebView?-u/2:0;n.transform(`translate3d(0px,0,${P}px) rotateX(${e.isHorizontal()?0:x}deg) rotateY(${e.isHorizontal()?-x:0}deg)`)},setTransition(e){const t=this,{$el:n,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()&&n.find(".swiper-cube-shadow").transition(e)}};var G1={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create(){const e=this;yt.extend(e,{cubeEffect:{setTranslate:Yg.setTranslate.bind(e),setTransition:Yg.setTransition.bind(e)}})},on:{beforeInit(){const e=this;if(e.params.effect!=="cube")return;e.classNames.push(`${e.params.containerModifierClass}cube`),e.classNames.push(`${e.params.containerModifierClass}3d`);const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};yt.extend(e.params,t),yt.extend(e.originalParams,t)},setTranslate(){const e=this;e.params.effect==="cube"&&e.cubeEffect.setTranslate()},setTransition(e){const t=this;t.params.effect==="cube"&&t.cubeEffect.setTransition(e)}}};const Xg={setTranslate(){const e=this,{slides:t,rtlTranslate:n}=e;for(let a=0;a<t.length;a+=1){const i=t.eq(a);let r=i[0].progress;e.params.flipEffect.limitRotation&&(r=Math.max(Math.min(i[0].progress,1),-1));const s=i[0].swiperSlideOffset;let c=-180*r,h=0,m=-s,x=0;if(e.isHorizontal()?n&&(c=-c):(x=m,m=0,h=-c,c=0),i[0].style.zIndex=-Math.abs(Math.round(r))+t.length,e.params.flipEffect.slideShadows){let w=e.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),P=e.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");w.length===0&&(w=wt(`<div class="swiper-slide-shadow-${e.isHorizontal()?"left":"top"}"></div>`),i.append(w)),P.length===0&&(P=wt(`<div class="swiper-slide-shadow-${e.isHorizontal()?"right":"bottom"}"></div>`),i.append(P)),w.length&&(w[0].style.opacity=Math.max(-r,0)),P.length&&(P[0].style.opacity=Math.max(r,0))}i.transform(`translate3d(${m}px, ${x}px, 0px) rotateX(${h}deg) rotateY(${c}deg)`)}},setTransition(e){const t=this,{slides:n,activeIndex:a,$wrapperEl:i}=t;if(n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&e!==0){let r=!1;n.eq(a).transitionEnd(function(){if(r||!t||t.destroyed)return;r=!0,t.animating=!1;const u=["webkitTransitionEnd","transitionend"];for(let c=0;c<u.length;c+=1)i.trigger(u[c])})}}};var U1={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create(){const e=this;yt.extend(e,{flipEffect:{setTranslate:Xg.setTranslate.bind(e),setTransition:Xg.setTransition.bind(e)}})},on:{beforeInit(){const e=this;if(e.params.effect!=="flip")return;e.classNames.push(`${e.params.containerModifierClass}flip`),e.classNames.push(`${e.params.containerModifierClass}3d`);const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};yt.extend(e.params,t),yt.extend(e.originalParams,t)},setTranslate(){const e=this;e.params.effect==="flip"&&e.flipEffect.setTranslate()},setTransition(e){const t=this;t.params.effect==="flip"&&t.flipEffect.setTransition(e)}}};const Zg={setTranslate(){const e=this,{width:t,height:n,slides:a,$wrapperEl:i,slidesSizesGrid:r}=e,s=e.params.coverflowEffect,u=e.isHorizontal(),c=e.translate,h=u?-c+t/2:-c+n/2,m=u?s.rotate:-s.rotate,x=s.depth;for(let w=0,P=a.length;w<P;w+=1){const E=a.eq(w),z=r[w],A=E[0].swiperSlideOffset,k=(h-A-z/2)/z*s.modifier;let S=u?m*k:0,N=u?0:m*k,L=-x*Math.abs(k),j=u?0:s.stretch*k,f=u?s.stretch*k:0;Math.abs(f)<.001&&(f=0),Math.abs(j)<.001&&(j=0),Math.abs(L)<.001&&(L=0),Math.abs(S)<.001&&(S=0),Math.abs(N)<.001&&(N=0);const G=`translate3d(${f}px,${j}px,${L}px) rotateX(${N}deg) rotateY(${S}deg)`;if(E.transform(G),E[0].style.zIndex=-Math.abs(Math.round(k))+1,s.slideShadows){let V=u?E.find(".swiper-slide-shadow-left"):E.find(".swiper-slide-shadow-top"),F=u?E.find(".swiper-slide-shadow-right"):E.find(".swiper-slide-shadow-bottom");V.length===0&&(V=wt(`<div class="swiper-slide-shadow-${u?"left":"top"}"></div>`),E.append(V)),F.length===0&&(F=wt(`<div class="swiper-slide-shadow-${u?"right":"bottom"}"></div>`),E.append(F)),V.length&&(V[0].style.opacity=k>0?k:0),F.length&&(F[0].style.opacity=-k>0?-k:0)}}if(qt.pointerEvents||qt.prefixedPointerEvents){const w=i[0].style;w.perspectiveOrigin=`${h}px 50%`}},setTransition(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}};var Y1={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create(){const e=this;yt.extend(e,{coverflowEffect:{setTranslate:Zg.setTranslate.bind(e),setTransition:Zg.setTransition.bind(e)}})},on:{beforeInit(){const e=this;e.params.effect==="coverflow"&&(e.classNames.push(`${e.params.containerModifierClass}coverflow`),e.classNames.push(`${e.params.containerModifierClass}3d`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate(){const e=this;e.params.effect==="coverflow"&&e.coverflowEffect.setTranslate()},setTransition(e){const t=this;t.params.effect==="coverflow"&&t.coverflowEffect.setTransition(e)}}};const Wc={init(){const e=this,{thumbs:t}=e.params,n=e.constructor;t.swiper instanceof n?(e.thumbs.swiper=t.swiper,yt.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),yt.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):yt.isObject(t.swiper)&&(e.thumbs.swiper=new n(yt.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick(){const e=this,t=e.thumbs.swiper;if(!t)return;const n=t.clickedIndex,a=t.clickedSlide;if(a&&wt(a).hasClass(e.params.thumbs.slideThumbActiveClass)||typeof n>"u"||n===null)return;let i;if(t.params.loop?i=parseInt(wt(t.clickedSlide).attr("data-swiper-slide-index"),10):i=n,e.params.loop){let r=e.activeIndex;e.slides.eq(r).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,r=e.activeIndex);const s=e.slides.eq(r).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(),u=e.slides.eq(r).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index();typeof s>"u"?i=u:typeof u>"u"?i=s:u-r<r-s?i=u:i=s}e.slideTo(i)},update(e){const t=this,n=t.thumbs.swiper;if(!n)return;const a=n.params.slidesPerView==="auto"?n.slidesPerViewDynamic():n.params.slidesPerView;if(t.realIndex!==n.realIndex){let s=n.activeIndex,u;if(n.params.loop){n.slides.eq(s).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,s=n.activeIndex);const c=n.slides.eq(s).prevAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(),h=n.slides.eq(s).nextAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index();typeof c>"u"?u=h:typeof h>"u"?u=c:h-s===s-c?u=s:h-s<s-c?u=h:u=c}else u=t.realIndex;n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(u)<0&&(n.params.centeredSlides?u>s?u=u-Math.floor(a/2)+1:u=u+Math.floor(a/2)-1:u>s&&(u=u-a+1),n.slideTo(u,e?0:void 0))}let i=1;const r=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(i=t.params.slidesPerView),n.slides.removeClass(r),n.params.loop||n.params.virtual)for(let s=0;s<i;s+=1)n.$wrapperEl.children(`[data-swiper-slide-index="${t.realIndex+s}"]`).addClass(r);else for(let s=0;s<i;s+=1)n.slides.eq(t.realIndex+s).addClass(r)}};var X1={name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create(){const e=this;yt.extend(e,{thumbs:{swiper:null,init:Wc.init.bind(e),update:Wc.update.bind(e),onThumbClick:Wc.onThumbClick.bind(e)}})},on:{beforeInit(){const e=this,{thumbs:t}=e.params;!t||!t.swiper||(e.thumbs.init(),e.thumbs.update(!0))},slideChange(){const e=this;e.thumbs.swiper&&e.thumbs.update()},update(){const e=this;e.thumbs.swiper&&e.thumbs.update()},resize(){const e=this;e.thumbs.swiper&&e.thumbs.update()},observerUpdate(){const e=this;e.thumbs.swiper&&e.thumbs.update()},setTransition(e){const n=this.thumbs.swiper;n&&n.setTransition(e)},beforeDestroy(){const e=this,t=e.thumbs.swiper;t&&e.thumbs.swiperCreated&&t&&t.destroy()}}};const Z1=[E1,P1,M1,A1,N1,L1,z1,D1,I1,j1,R1,O1,K1,$1,q1,H1,F1,W1,_1,V1,G1,U1,Y1,X1];typeof An.use>"u"&&(An.use=An.Class.use,An.installModule=An.Class.installModule);An.use(Z1);const J1=Object.freeze(Object.defineProperty({__proto__:null,default:An},Symbol.toStringTag,{value:"Module"})),Q1=gy(J1);var ao={};Object.defineProperty(ao,"__esModule",{value:!0});var yl=Ln();ao.classNames=function(e){return typeof e=="string"?e.split(".").join(" ").trim():e instanceof HTMLElement?e.className:""};ao.validateChildren=function(e){var t=!0;return Array.isArray(e)?yl.Children.forEach(e,function(n){yl.isValidElement(n)||(t=!1)}):t=yl.isValidElement(e),t};ao.isReactElement=function(e){return yl.isValidElement(e)&&(typeof e.type=="string"||typeof e.type=="function"||typeof e.type=="object")};ao.isModuleAvailable=function(e,t){for(var n=!1,a=0;a<e.length;a++)if(e[a].name===t){n=!0;break}return n};var Xd=ei&&ei.__assign||function(){return Xd=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Xd.apply(this,arguments)},tC=ei&&ei.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},Ay=ei&&ei.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mh,"__esModule",{value:!0});var En=tC(Ln()),eC=Ay(Q1),nC=Ay(fh),Zi=ao,bh=function(e){var t=e.activeSlideKey,n=e.ContainerEl,a=e.children,i=e.containerClass,r=e.getSwiper,s=e.navigation,u=e.noSwiping,c=e.pagination,h=e.parallax,m=e.parallaxEl,x=e.WrapperEl,w=e.wrapperClass,P=e.rebuildOnUpdate,E=e.renderScrollbar,z=e.renderPagination,A=e.renderPrevButton,k=e.renderNextButton,S=e.renderParallax,N=e.rtl,L=e.scrollbar,j=e.shouldSwiperUpdate,f=e.slideClass,G=e.loop,V=En.createRef(),F=En.useRef(null);if(!a||!n||!x)return null;if(!Zi.validateChildren(a))return console.warn("Children should be react element or an array of react element!!"),null;var pt=function(){if(!t)return null;var v=0,Q=G?1:0;return En.Children.forEach(a,function(st){En.isValidElement(st)&&(st.key===t&&(v=Q),Q+=1)}),v},ft=function(v){typeof r=="function"&&r(v)},ot=function(){F.current!==null&&(F.current.destroy(!0,!0),F.current=null,ft(F.current))},Z=function(){V.current&&F.current===null&&(F.current=new eC.default(V.current,nC.default({},e)),ft(F.current))},$=function(){ot(),Z()},o=function(){F.current!==null&&(F.current.update(),ft(F.current))},tt=function(v){if(!Zi.isReactElement(v))return null;var Q=[f,v.props.className];return u&&Q.push("swiper-no-swiping"),En.cloneElement(v,Xd({},v.props,{className:Q.join(" ").trim()}))};return En.useEffect(function(){Z();var v=pt();return F.current!==null&&v!==null&&F.current.slideTo(v),function(){return ot()}},[]),En.useEffect(function(){if(F.current!==null){if(P)$();else if(j){o();var v=F.current.slides.length;if(v<=F.current.activeIndex){var Q=Math.max(v-1,0);F.current.slideTo(Q)}}var st=pt();st!==null&&F.current.slideTo(st)}}),En.default.createElement(n,{className:i,dir:N&&"rtl",ref:V},h&&m&&S&&S(e),En.default.createElement(x,{className:w},En.Children.map(a,tt)),c&&c.el&&z&&z(e),L&&L.el&&E&&E(e),s&&s.nextEl&&k&&k(e),s&&s.prevEl&&A&&A(e))};bh.defaultProps={containerClass:"swiper-container",wrapperClass:"swiper-wrapper",slideClass:"swiper-slide",ContainerEl:"div",WrapperEl:"div",renderScrollbar:function(e){var t=e.scrollbar;return t?En.default.createElement("div",{className:Zi.classNames(t.el)}):null},renderPagination:function(e){var t=e.pagination;return t?En.default.createElement("div",{className:Zi.classNames(t.el)}):null},renderPrevButton:function(e){var t=e.navigation;return t?En.default.createElement("div",{className:Zi.classNames(t.prevEl)}):null},renderNextButton:function(e){var t=e.navigation;return t?En.default.createElement("div",{className:Zi.classNames(t.nextEl)}):null},renderParallax:function(e){var t=e.parallaxEl;return t?En.default.createElement("div",{className:Zi.classNames(t.el),"data-swiper-parallax":t.value}):null}};bh.displayName="ReactIdSwiper";mh.default=bh;var aC=ei&&ei.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ey,"__esModule",{value:!0});var iC=aC(mh),rC=Ey.default=iC.default;(function(){function e(N,L){var j=N.search(P);if(j===-1)return{b:L+" "+N,a:""};if(N[j]===",")return{b:L+" "+N.substr(0,j),a:N.substr(j+1)};var f=!0,G=!1;j=N.search(/\S/);var V=0;t:for(;j<N.length;++j){var F=N[j];switch(F){case"[":F=w.exec(N.substr(j)),j+=(F?F[0].length:1)-1;continue;case"(":++V;continue;case":":if(f)if(E.test(N.substr(j))){if(V)return null}else continue;else continue;N=N.substring(0,j)+L+N.substr(j+6),j+=L.length,G=!0,--j;continue;case")":V&&--V;continue}if(!V)switch(F){case",":break t;case" ":case">":case"~":case"+":f&&(f=!1)}}return{b:(G?"":L+" ")+N.substr(0,j),a:N.substr(j+1)}}function t(N,L,j,f){if(N instanceof CSSMediaRule)for(j=N.cssRules.length,f=0;f<j;++f)t(N.cssRules[f],L,N,f);else if(N instanceof CSSStyleRule){t:{for(var G=N.selectorText,V=[];G;){if(G=e(G,L),G===null){L=":not(*)";break t}V.push(G.b),G=G.a}L=V.join(", ")}m?N.selectorText=L:(N=N.style.cssText,j.deleteRule(f),j.insertRule(L+" {"+N+"}",f))}}function n(N,L){var j=N.parentStyleSheet,f;for(f=0;f<j.rules.length&&j.rules[f]!==N;++f);return j.removeRule(f),j.insertRule(L,f),j.rules[f]}function a(N){var L=null;try{L=N.cssRules}catch(j){if(j instanceof DOMException)return j;throw j}return L?null:{code:DOMException.SECURITY_ERR}}function i(N,L,j){j?N.setAttribute(L,""):N.removeAttribute(L)}function r(N,L,j){j?N.classList.add(L):N.classList.remove(L)}function s(N){var L=N.scoped&&document.body.contains(N)?N.parentNode:null,j=x.get(N);if(j){if(L)N.sheet&&z(N.sheet,j.prefix);else{x.delete(N);var f=N.textContent;N.textContent="",N.textContent=f}return j.parent!==L&&(j.parent&&A(j.parent,j.attrName,!1),L&&A(L,j.attrName,!0),j.parent=L),!1}L&&(j=""+h.prefix+ ++k,f=A===i?"["+j+"]":"."+j,x.set(N,{attrName:j,prefix:f,parent:N.parentNode}),z(N.sheet,f),A(L,j,!0))}function u(){var N=window.scopedCSS;if(typeof N=="object"){for(var L in h)L in N&&(h[L]=N[L]);h.applyToClass&&(A=r)}for(S.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["scoped"]}),N=document.body.getElementsByTagName("style"),L=0;L<N.length;++L)s(N[L])}var c=document.createElement("style");if(!("scoped"in c)){var h={applyToClass:!1,prefix:"__scoped_"};c.textContent=".x{color:red;}",document.head.appendChild(c),c.sheet.cssRules[0].selectorText=".change";var m=c.sheet.cssRules[0].selectorText===".change";document.head.removeChild(c),Object.defineProperty(HTMLStyleElement.prototype,"scoped",{enumerable:!0,get:function(){return this.hasAttribute("scoped")},set:function(N){N?this.setAttribute("scoped",this.getAttribute("scoped")||""):this.removeAttribute("scoped")}});var x=new Map,w=/^\[.*?(?:(["'])(?:.|\\\1)*\1.*)*\]/,P=/([([,]|:scope\b)/,E=/^:scope\b/,z=function(){function N(V,F){if(L.get(V)!==F){var pt=a(V);if(pt)switch(pt.code){case DOMException.SECURITY_ERR:var ft=new XMLHttpRequest;ft.responseType="blob",ft.open("GET",V.href);var ot=n(V.ownerRule,"@import url('data:text/css;base64,')");ft.onload=function(){var o=URL.createObjectURL(ft.response),tt=n(ot,"@import '"+o+"'");j.set(tt,F),G(),URL.revokeObjectURL(o)},ft.send();return;case DOMException.INVALID_ACCESS_ERR:f.set(V,F),G();return;default:throw pt}L.set(V,F),pt=V.cssRules.length;for(var Z=0;Z<pt;++Z){var $=V.cssRules[Z];$ instanceof CSSImportRule?$.styleSheet?N($.styleSheet,F):(j.set($,F),G()):t($,F,V,Z)}return!0}}var L=new WeakMap,j=new Map,f=new Map,G=function(){function V(){var pt=!1;F=0,j.forEach(function(ft,ot){if(ot.styleSheet)N(ot.styleSheet,ft);else{t:{for(ft=ot.parentStyleSheet;ft;){if(ft.ownerNode){ft=ft.ownerNode;break t}ft=ft.parentStyleSheet}ft=null}if(ft){pt=!0;return}}j.delete(ot)}),f.forEach(function(ft,ot){a(ot)?pt=!0:(N(ot,ft),f.delete(ot))}),pt&&(F=window.requestAnimationFrame(V))}var F=0;return function(){F=F||window.requestAnimationFrame(V)}}();return N}(),A=i,k=0,S=new MutationObserver(function(N){function L(f){for(var G=f?f.length:0;G;){var V=f[--G];if(V instanceof HTMLElement)if(V instanceof HTMLStyleElement)j.add(V);else{V=V.getElementsByTagName("style");for(var F=V.length;F;)j.add(V[--F])}}}var j=new Set;N.forEach(function(f){f.target instanceof HTMLStyleElement?j.add(f.target):(L(f.addedNodes),L(f.removedNodes))}),j.forEach(s)});document.readyState==="loading"?window.addEventListener("DOMContentLoaded",u):u()}})();class Ur{constructor(){this.handlers=[]}subscribe(t){this.handlers.indexOf(t)===-1&&this.handlers.push(t)}unsubscribe(t){this.handlers=this.handlers.filter(n=>n!==t)}raise(t){this.handlers.slice(0).forEach(n=>n(t))}}class oC{static getActualUrlFromCSSPropertyValue(t){const n=t.match(/.*url\((['"])(.*?)\1\).*/i);return n?n[2]:""}}const Ca=class Ca{constructor(){this.animationDuration=3e3,this.animatableCanvas=null,window.addEventListener("orientationchange",()=>window.setTimeout(()=>this.adjustAnimationWrapper(this.currentPage),200))}static pageHasAnimation(t){return!!Ca.getAnimatableCanvas(t)}static getAnimationCanvas(t){if(t.firstElementChild&&t.firstElementChild.classList.contains("bloom-animationBackground")){const n=t.firstElementChild;if(n.firstElementChild&&n.firstElementChild.classList.contains(Ca.wrapperClassName)){const a=n.firstElementChild;if(a.firstElementChild&&a.firstElementChild.hasAttribute("data-initialrect"))return a.firstElementChild}}return null}static getAnimatableCanvas(t){const n=[].slice.call(t.getElementsByClassName("bloom-canvas")).find(a=>!a.closest(".bloom-animationBackground")&&!!a.dataset.initialrect);return n||[].slice.call(t.getElementsByClassName("bloom-imageContainer")).find(a=>!!a.dataset.initialrect)}HandlePageBeforeVisible(t){this.shouldAnimate(t)||this.removeAnimationWrappers(t)}HandlePageVisible(t,n){this.shouldAnimate(t)&&(this.currentPage=t,this.animatableCanvas=Ca.getAnimatableCanvas(t),this.currentPage===this.lastDurationPage&&this.setupAnimation(t,n))}HandlePageDurationAvailable(t,n,a){this.shouldAnimate(t)&&(this.animationDuration=n,this.lastDurationPage=t,this.currentPage===this.lastDurationPage&&this.setupAnimation(t,a))}resumeAnimation(){!this.PlayAnimations||!this.animationEngine||this.animationEngine.resume()}PauseAnimation(){!this.PlayAnimations||!this.animationEngine||this.animationEngine.pause()}setupAnimation(t,n){if(!this.PlayAnimations||!this.animatableCanvas)return;let a=t.firstElementChild,i=null;if(!a||!a.classList.contains("bloom-animationBackground")){a=document.createElement("div");for(let u=0;u<this.animatableCanvas.classList.length;u++)a.classList.add(this.animatableCanvas.classList[u]);a.classList.add("bloom-animationBackground");const r=this.animatableCanvas.cloneNode(!0),s=()=>{const u=this.animatableCanvas.style.backgroundImage;u?r.style.backgroundImage=u:requestAnimationFrame(s)};r.hasAttribute("data-imgsizebasedon")||requestAnimationFrame(s),i=document.createElement("div"),i.classList.add(Ca.wrapperClassName),i.appendChild(r),i.style.visibility="hidden",a.appendChild(i),t.insertBefore(a,t.firstChild),this.applyCanvasAspectRatioToAnimationWrapper(t,i,r,n)}else i=a.firstElementChild,i.hasAttribute("data-aspectRatio")?(this.placeAnimationWrapper(i),this.createAndPlayAnimation(t,n)):this.applyCanvasAspectRatioToAnimationWrapper(t,i,i.firstElementChild,n)}createAndPlayAnimation(t,n){const a=Ca.getAnimationCanvas(t);if(this.animationEngine&&this.animationEngine.endAnimation(),a){const i=a.getAttribute("data-initialrect"),r=a.getAttribute("data-finalrect");this.animationEngine=new sC(i,r,this.animationDuration,a),n?this.animationEngine.setCurrentAnimationFrame():this.animationEngine.startAnimation()}}applyCanvasAspectRatioToAnimationWrapper(t,n,a,i){if(t.hasAttribute("data-aspectRatio"))this.placeAnimationWrapper(n),this.createAndPlayAnimation(t,i);else if(a.hasAttribute("data-imgsizebasedon")){const r=a.getAttribute("data-imgsizebasedon").split(",").map(parseFloat);n.setAttribute("data-aspectRatio",(r[0]/r[1]).toString()),this.placeAnimationWrapper(n),this.createAndPlayAnimation(t,i)}else{const r=()=>{if(a.style.backgroundImage){const s=new Image;s.addEventListener("load",()=>{n.setAttribute("data-aspectRatio",(s.naturalWidth/s.naturalHeight).toString()),this.placeAnimationWrapper(n),this.createAndPlayAnimation(t,i)}),s.src=oC.getActualUrlFromCSSPropertyValue(a.style.backgroundImage)}else requestAnimationFrame(r)};requestAnimationFrame(r)}}placeAnimationWrapper(t){const n=parseFloat(t.getAttribute("data-aspectRatio")),a=t.parentElement,i=a.clientWidth,r=a.clientHeight,s=i/r;if(n<s){const u=r*n;t.style.height="100%",t.style.width=`${u}px`,t.style.left=`${(i-u)/2}px`}else{const u=i/n;t.style.width="100%",t.style.height=`${u}px`,t.style.top=`${(r-u)/2}px`}t.style.overflow="hidden",t.style.visibility="visible",this.placeCanvasByScale(t,t.firstElementChild)}placeCanvasByScale(t,n){if(n.hasAttribute("data-imgsizebasedon")){const a=n.getAttribute("data-imgsizebasedon").split(",").map(parseFloat),i=[t.clientWidth,t.clientHeight];n.style.width=`${a[0]}px`,n.style.height=`${a[1]}px`,n.style.scale=`${i[0]/a[0]}`,n.style.top=`${(i[1]-a[1])/2}px`,n.style.left=`${(i[0]-a[0])/2}px`}}adjustAnimationWrapper(t){if(!t)return;if(!this.shouldAnimate(t)){this.removeAnimationWrappers(t);return}const n=this.getAnimationWrapper(t);n&&this.placeAnimationWrapper(n)}getAnimationWrapper(t){if(!t)return null;const n=Ca.getAnimationCanvas(t);if(!n||n.children.length!==1)return null;const a=n.firstElementChild;return a.classList.contains(Ca.wrapperClassName)?a:null}removeAnimationWrappers(t){t.firstElementChild&&t.firstElementChild.classList.contains("bloom-animationBackground")&&t.removeChild(t.firstElementChild)}shouldAnimate(t){return this.PlayAnimations&&t.getAttribute("class").indexOf("Landscape")>=0}};Ca.wrapperClassName="bloom-ui-animationWrapper";let jl=Ca;class sC{constructor(t,n,a,i){this.duration=a*1e3,this.totalElapsedTime=0,this.lastFrameTime=Date.now(),this.paused=!0,this.canvasToAnimate=i;const r=t.split(" ").map(parseFloat),s=n.split(" ").map(parseFloat);r.length!=4||s.length!=4||Math.min(...s)<0||Math.min(...r)<0||r[0]+r[2]>1||r[1]+r[3]>1||s[0]+s[2]>1||s[1]+s[3]>1?(this.initialScale=1,this.finalScale=1,this.initialLeft=0,this.finalLeft=0,this.initialTop=0,this.finalTop=0):(r[0],s[0],r[1],s[1],this.initialScale=1/Math.min(r[2],r[3]),this.initialScale==1&&(this.initialScale=1.0001),this.finalScale=1/Math.min(s[2],s[3]),this.finalScale==1&&(this.finalScale=1.0001),this.initialLeft=this.initialScale*100*(.5-(.5*r[2]+r[0])),this.initialTop=this.initialScale*100*(.5-(.5*r[3]+r[1])),this.finalLeft=this.finalScale*100*(.5-(.5*s[2]+s[0])),this.finalTop=this.finalScale*100*(.5-(.5*s[3]+s[1])))}getScaleAndPosition(){let t=this.totalElapsedTime/this.duration;t=Math.min(1,Math.max(0,t));const n=this.easingFunction(t),a=this.initialScale+(this.finalScale-this.initialScale)*n,i=this.initialLeft+(this.finalLeft-this.initialLeft)*n,r=this.initialTop+(this.finalTop-this.initialTop)*n;return{scale:a,left:i,top:r}}easingFunction(t){return-1*(Math.cos(t*Math.PI)-1)/2}advanceAnimation(){if(this.paused)return;const t=Date.now();this.totalElapsedTime+=t-this.lastFrameTime,!(this.totalElapsedTime>=this.duration)&&(this.setCurrentAnimationFrame(),this.lastFrameTime=t,requestAnimationFrame(()=>this.advanceAnimation()))}setCurrentAnimationFrame(){const{scale:t,left:n,top:a}=this.getScaleAndPosition();this.canvasToAnimate.style.transform=`translate(${n}%, ${a}%) scale(${t})`}pause(){this.paused=!0}resume(){this.paused=!1,this.lastFrameTime=Date.now(),this.advanceAnimation()}startAnimation(){this.paused=!1,this.totalElapsedTime=0,this.lastFrameTime=Date.now(),this.advanceAnimation()}endAnimation(){this.totalElapsedTime=this.duration+1}}var Ge=(e=>(e[e.NewPage=0]="NewPage",e[e.NewPageMediaPaused=1]="NewPageMediaPaused",e[e.VideoPlaying=2]="VideoPlaying",e[e.VideoPaused=3]="VideoPaused",e[e.AudioPlaying=4]="AudioPlaying",e[e.AudioPaused=5]="AudioPaused",e[e.MediaFinished=6]="MediaFinished",e))(Ge||{});let yn=0;function Mn(e){yn=e}let Zd;function lC(e){Zd=e}let bl;function uC(e){bl=e}let Ny=()=>{};function cC(e){Ny=e??(()=>{})}let Jd="";function dC(e){Jd=e}function fC(e){const t=e.lastIndexOf("/");return e.substring(0,t)}function wh(){return Jd||fC(window.location.href)}function hC(e){const t=e.map((n,a)=>({tabindex:pC(n),index:a,item:n}));return t.sort((n,a)=>!n.tabindex||!a.tabindex||n.tabindex===a.tabindex?n.index-a.index:parseInt(n.tabindex,10)-parseInt(a.tabindex,10)),t.map(n=>n.item)}function pC(e){let t=e;for(;t&&!t.classList.contains("bloom-translationGroup");)t=t.parentElement;return t&&t.getAttribute("tabindex")||"999"}const gC="bloom-highlightSegment",Ly="ui-enableHighlight",kh="ui-disableHighlight",_c="ui-suppressHighlight";let Rl=3;function mC(e){Rl=e}const Ol="audio-sentence",zy="bloom-imageDescription";let Ai=null,jo=0;function By(e){e!==Ai&&(jo&&clearTimeout(jo),jo=setTimeout(()=>{jo=0},3e3),Ai=e)}function Dy(){return Ai}let xh,Kl,Go="",Pa=[],bi=[];const ta=new Ur,Ya=new Ur,Pr=new Ur,Ma=new Ur;let ds=0,Iy=!0;function vC(e){Iy=e}let $l=null;function jy(e,t){if(!e&&!Ai)return;const n=e??Ai;Cu(Ph(n,t),n)}function Cu(e,t){By(t),Kl=e;const n=Ni();n&&(e.length==0&&n.pause(),n.currentTime=0),++ds,yC(e),Pa=hC(e).reverse();const a=Pa.length;if(a===0){Ya&&(Ya==null||Ya.raise(t)),Mn(4),ta&&(xh=window.setTimeout(()=>{Mn(6),ta==null||ta.raise(t)},Rl*1e3));return}const i=Pa[a-1];Wy(i,!0),Mn(4),$y()}const Ry=/[ \u00a0\u200b]{3,}/,Qs=new RegExp(Ry,"g");function yC(e){e.forEach(t=>{Eh("span[id]:not(.bloom-linebreak)",t,!0).forEach(a=>{Oy(a),!!a.innerText.match(Ry)&&Ky(a,a)})})}function Oy(e){e.classList.remove(kh),e.classList.remove(Ly),Array.from(e.children).forEach(t=>{Oy(t)})}function Ky(e,t){if(!(e.nodeType===Node.ELEMENT_NODE&&e.classList.contains(kh)))if(e.nodeType===Node.TEXT_NODE){bC(e,t);return}else Array.from(e.childNodes).forEach(a=>{Ky(a,t)})}function bC(e,t){if(e.nodeType!==Node.TEXT_NODE)throw new Error("Invalid argument to fixMultiSpaceInTextNode: node must be a TextNode");if(!e.nodeValue)return;Qs.lastIndex=0;const n=[];let a;for(;(a=Qs.exec(e.nodeValue))!=null;)a.forEach(s=>{n.push({text:s,startIndex:Qs.lastIndex-s.length,endIndex:Qs.lastIndex})});const i=[];if(n.length===0)i.push(Vc(e.nodeValue));else{let s=0;for(let u=0;u<n.length;++u){const c=n[u],h=e.nodeValue.slice(s,c.startIndex);if(s=c.endIndex,h&&i.push(Vc(h)),i.push(document.createTextNode(c.text)),u===n.length-1){const m=e.nodeValue.slice(c.endIndex);m&&i.push(Vc(m))}}}const r=e;if(r.parentNode&&i&&i.length>0){for(let s=0;s<i.length;++s){const u=i[s];r.parentNode.insertBefore(u,r)}r.parentNode.removeChild(r),t.classList.add(kh)}}function Vc(e){const t=document.createElement("span");return t.classList.add(Ly),t.appendChild(document.createTextNode(e)),t}function $y(){if(yn===4){const e=Ni();if(e){const t=Dy().querySelector(`#${Go}`);if(!t||!zC()){Tu();return}bi=[];const n=t.getAttribute("data-audioRecordingEndTimes");if(n){const r=t.querySelectorAll(`span.${gC}`),s=n.split(" "),u=Math.min(s.length,r.length);for(let c=u-1;c>=0;--c){const h=Number(s[c]);isNaN(h)||bi.push([r.item(c),h])}}const a=t;a&&Ma&&(Ma==null||Ma.raise(qy(a))),Qd=!1;const i=e.play();++ds,$l=new Date().getTime(),Sh(ds),Hy(i)}}}function qy(e){return e.closest("."+zy)!==null}function Hy(e,t){e&&e.catch&&e.catch(n=>{console.log("could not play sound: "+n+" "+"unknown"),n&&n.toString().includes("The play() request was interrupted by a call to pause().")&&console.log("See comment in narration.ts for possibly useful information regarding this error."),n.name==="NotAllowedError"&&Pr&&(Pr==null||Pr.raise())})}function Sh(e,t=0){const n=bi.length;if(n<=0)return;const a=bi[n-1],i=a[0],r=a[1];_y({newElement:i,shouldScrollToElement:!0,disableHighlightIfNoAudio:!1});let u=document.getElementById("bloom-audio-player").currentTime;u<=0&&(u=t);const c=Math.max(r-u,.1);setTimeout(()=>{Fy(e)},c*1e3)}function Fy(e){if(e!==ds||yn===5)return;const t=bi.length;if(t<=0)return;const n=document.getElementById("bloom-audio-player");if(n.ended||n.error)return;const a=n.currentTime,r=bi[t-1][1];if(a&&a<r){const s=r-a;setTimeout(()=>{Fy(e)},s*1e3);return}bi.pop(),Sh(e,r)}function Ch(e=document.body){const t=Array.from(e.ownerDocument.getElementsByClassName("ui-audioCurrent"));for(let a=0;a<t.length;a++)t[a].classList.remove("ui-audioCurrent");const n=e.ownerDocument.getElementsByClassName("ui-audioCurrentImg")[0];n&&n.classList.remove("ui-audioCurrentImg")}function Wy(e,t,n){xC(e),_y({newElement:e,shouldScrollToElement:!0,disableHighlightIfNoAudio:t,oldElement:n})}function _y({newElement:e,shouldScrollToElement:t,disableHighlightIfNoAudio:n,oldElement:a}){if(t)try{wC(e)}catch(u){console.error(u)}if(a===e)return;Ch(a||e);const i=Ni(),r=i.error!==null;!r&&n&&(i.currentTime>0||(e.classList.add(_c),i.addEventListener("playing",()=>{e.classList.remove(_c)}),i.addEventListener("error",()=>{e.classList.remove("ui-audioCurrent"),e.classList.remove(_c)}))),r||e.classList.add("ui-audioCurrent");const s=e.closest(".bloom-translationGroup");if(s&&s.classList.contains(zy)){const u=s.closest(".bloom-imageContainer");u&&u.classList.add("ui-audioCurrentImg")}}function wC(e){var n,a;if(bl!=null&&bl()||jo){const i=kC(e);i&&(i.scrollTop=0);return}let t=e;if(window.getComputedStyle(e.parentElement).position!=="static"){const i=e;t=document.createElement("div"),t.style.position="absolute",t.style.top=i.offsetTop+"px";const r=i.getBoundingClientRect(),s=i.parentElement,u=s==null?void 0:s.getBoundingClientRect(),c=u.width/s.offsetWidth,h=(r.left-u.left)/c;t.style.left=h+i.offsetWidth/2+"px",t.style.height=i.offsetHeight+"px",t.style.width="0",(n=e.parentElement)==null||n.insertBefore(t,e)}t.scrollIntoView({behavior:"smooth",block:"nearest"}),t!==e&&((a=t.parentElement)==null||a.removeChild(t))}function kC(e){return e.classList.contains("bloom-editable")?e:e.closest(".bloom-editable")}function xC(e){const t=SC(e),n=t?t.id:e.id;TC(n)}function SC(e){const t=CC(e);return!t||t.length===0?null:t[0]}function CC(e){const t=[];if(e)if(e.classList.contains(Ol))t.push(e);else{const n=e.getElementsByClassName(Ol);for(let a=0;a<n.length;++a){const i=n.item(a);i&&t.push(i)}}return t}function TC(e){(!Go||Go!==e)&&(Go=e,EC())}function EC(){const e=Ni();if(!e)return;e.currentTime>0&&!e.paused&&!e.ended&&Th();const t=PC(Go);Ny(t),e.setAttribute("src",t+"?nocache="+new Date().getTime()+"&optional=true")}function PC(e){return wh()+"/audio/"+e+".mp3"}function Ni(){return LC("bloom-audio-player",t=>{t.addEventListener("ended",MC),t.addEventListener("error",BC)})}function MC(){Tu()}function AC(){yn===4&&Tu(!1)}function Tu(e=!0){if(Ma&&(Ma==null||Ma.raise(!1)),Th(),Pa&&Pa.length>0){const t=Pa.pop(),n=Pa.length;if(n>0&&e){const a=Pa[n-1];Wy(a,!0),$y()}else NC(),Ch(t),Ni().pause()}}function NC(){Pa=[],bi=[],Ch(),ta==null||ta.raise(Ai),Ya==null||Ya.raise()}function Th(){if(!$l||!Zd)return;const t=(new Date().getTime()-$l)/1e3;Zd(t)}function LC(e,t){let n=document.querySelector("#"+e);return n&&!n.play&&(n.remove(),n=null),n||(n=document.createElement("audio"),n.setAttribute("id",e),document.body.appendChild(n),t(n)),n}function zC(e){return!0}let Qd=!1;function BC(){if(Qd){console.log("Already got error playing, not handling again");return}Qd=!0,console.log("Error playing, handling"),setTimeout(()=>{Tu()},100)}function Eh(e,t,n=!1){const a=[].slice.call((t||document).querySelectorAll(e));return n&&t&&t.matches(e)&&a.push(t),Iy?a:a.filter(i=>!qy(i))}function DC(e,t){var n=Eh(".bloom-editable",e).filter(a=>window.getComputedStyle(a).display!=="none");return t&&(n=n.filter(a=>!t.contains(a))),n}function IC(e,t){return DC(e||Ai,t)}function Ph(e,t){return[].concat.apply([],IC(e,t).map(n=>Eh(".audio-sentence",n,!0)))}function jC(e){return!!Ph(e).length}function RC(){if(yn!==4){if(Mn(4),Kl.length&&Ni())if(Pa.length){Hy(Ni().play()),$l=new Date().getTime(),Sh(ds);return}else{jy(null);return}ta==null||ta.raise(Ai)}}function OC(){yn!==5&&(KC(),Mn(5))}function KC(){const e=Ni();clearTimeout(xh),Kl&&Kl.length&&e&&(e.currentTime>0&&!e.paused&&!e.ended&&Th(),e.pause())}function Jg(e){let t=0;return Ph(e).forEach(n=>{const a=n.getAttribute("data-duration");a&&(t+=parseFloat(a))}),t<Rl&&(t=Rl),t}function $C(){clearTimeout(xh)}function wl(e,t){if(e.length===0){t();return}const n=e[0];n.networkState===HTMLMediaElement.NETWORK_NO_SOURCE&&n.readyState===HTMLMediaElement.HAVE_NOTHING?(ql(n),wl(e.slice(1),t)):(Vy(n),Mn(2),n.play().then(()=>{n.addEventListener("ended",()=>{wl(e.slice(1),t)},{once:!0})}).catch(i=>{console.error("Video play failed",i),ql(n),wl(e.slice(1),t)}))}const qC="Sorry, this video cannot be played in this browser.";function ql(e){const t=e.parentElement;if(t&&t.getElementsByClassName("video-error-message").length===0){const a=t.ownerDocument.createElement("div");a.className="video-error-message normal-style",a.textContent=qC,a.style.display="block",a.style.color="black",a.style.backgroundColor="rgba(255, 255, 255, 0.5)",a.style.position="absolute",a.style.left="10%",a.style.top="10%",a.style.width="80%",a.style.fontSize="x-large",t.appendChild(a)}}function Vy(e){const t=e.parentElement;if(t){const n=t.getElementsByClassName("video-error-message");for(;n.length>1;)t.removeChild(n[0])}}const HC=e=>{const t=document.createElement("div");return t.innerHTML=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
19
19
|
<path d="M8 5v14l11-7z" fill="${e}"/>
|
|
20
20
|
</svg>`,t.firstChild},FC=e=>{const t=document.createElement("div");return t.innerHTML=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
21
21
|
<path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z" fill="${e}"/>
|
|
@@ -8044,7 +8044,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
8044
8044
|
display:none !important;
|
|
8045
8045
|
}
|
|
8046
8046
|
`.replace(`
|
|
8047
|
-
`,"").replace("\r","")}const oc=[];function zB(){return oc.length>0}function BB(e){const t=oc.pop();if(t)return{bookUrl:e===t.bookId?void 0:ch(t.bookId),pageId:t.pageId}}function DB(e,t,n){const a=e.target.closest("[href], [data-href]");if(!a)return;e.preventDefault(),e.stopPropagation();const i=(a.getAttribute("href")||a.getAttribute("data-href"))??void 0;if(!i)return;if(i.startsWith("http://")||i.startsWith("https://")){window.open(i,"_blank","noreferrer");return}let r,s;if(i==="back"){const c=oc.pop();return c?{bookUrl:t===c.bookId?void 0:ch(c.bookId),pageId:c.pageId}:void 0}else if(i.startsWith("/book/")){const c=IB(i);r=c.bookId,s=c.pageId,c.bookId===t&&(r=void 0)}else i.startsWith("#")&&(s=i.substring(1));const u=n();if(r)return oy(t,u),{bookUrl:ch(r),pageId:s};if(s)return oy(t,u),{pageId:s}}function oy(e,t,n){oc.push({bookId:e,pageId:t})}function ch(e){return`/book/${e}/index.htm`}function IB(e){try{const t=new URL(e,window.location.origin);if(!t.pathname.startsWith("/book/"))throw new Error("Invalid book URL format");const n=t.pathname.replace("/book/",""),a=t.hash.replace("#","");return{bookId:n,pageId:a}}catch(t){return console.error("Error parsing book URL:",t),{bookId:void 0,pageId:void 0}}}const jB="bloom-player",RB="A library for displaying Bloom books in iframes or WebViews",OB="SIL Global",KB="MIT",$B="2.17.0-alpha.2",qB=!1,HB={type:"git",url:"https://github.com/BloomBooks/bloom-player.git"},FB="module",WB="lib/shared.es.js",_B="lib/index.d.ts",VB={".":{types:"./lib/index.d.ts",import:"./lib/shared.es.js",default:"./lib/shared.es.js"}},GB={"// COMMENTS: make the action a space rather than empty string so `yarn run` can list the scripts":" ","//":" ","// 'yarn dev' will build, watch, start a server, and open the player in a brower":" ","// You can edit index-for-developing.html to point to different books":" ","// Or just use 'yarn storybook' and skip this dev approach entirely":" ",dev:"vite","build:standalone":"vite build","build:sharedlib":"vite build --mode lib",test:"vitest","// blame.ignoreRevsFile - This allows blame to see through commits that are only there to format code.":" ",prepare:"husky install && git config blame.ignoreRevsFile .git-blame-ignore-revs",storybook:"storybook dev -p 6006","// run this when working with stories that use an iframe and bloomplayer.htm instead of the raw react components":" ",watchForStorybook:"yarn vite build --watch --mode development","strings:download":"crowdin download --config src/l10n/crowdin.yml && yarn strings:compile","strings:upload":"crowdin upload --config src/l10n/crowdin.yml","strings:compile":"yarn tsx ./src/l10n/compileL10Strings.ts","strings:sync":"yarn strings:upload && yarn strings:download"},UB={"@material-ui/core":"^4.12.3","@material-ui/icons":"^4.11.2",axios:"^0.18.0","compare-versions":"^6.1.1","dynamic-import-polyfill":"^0.1.1","jquery.nicescroll":"^3.7.6",react:"^17.0.2","react-dom":"^17.0.2","react-id-swiper":"2.3.2","style-scoped":"^0.2.1",swiper:"^4.5.0"},YB={"@crowdin/cli":"^4.2.0","@storybook/addon-essentials":"8.4.6","@storybook/addon-interactions":"^8.4.6","@storybook/addon-links":"8.4.6","@storybook/blocks":"8.4.6","@storybook/react":"8.4.6","@storybook/react-vite":"8.4.6","@storybook/test":"8.4.6","@types/jquery":"^3.5.5","@types/jquery.nicescroll":"^3.7.1","@types/node":"^22.7.6","@types/react":"^17.0.2","@types/react-dom":"^17.0.2",editorconfig:"^2.0.0",eslint:"^9.12.0","eslint-plugin-storybook":"^0.11.1",husky:"8.0.3",jsdom:"^25.0.1",less:"^4.2.0",prettier:"^3.3.3","semantic-release":"24.1.2",storybook:"8.4.6",tsx:"^4.19.1",typescript:"*",vite:"^5.4.9","vite-plugin-dts":"^4.5.3","vite-plugin-html":"^3.2.2","vite-plugin-static-copy":"^2.0.0",vitest:"^2.1.3"},XB=["dist/*.js","dist/bloomplayer.htm","dist/*.mp3","lib/*.js","lib/*.d.ts","lib/*.js.map","src/shared/event.ts","src/shared/narration.ts","src/shared/dragActivityRuntime.ts","src/shared/scrolling.ts","src/shared/index.ts","dist/*.css","dist/*.tsv"],ZB={node:"20.15.1",yarn:"1.22.19"},JB={name:jB,description:RB,author:OB,license:KB,version:$B,private:!1,"// sideeffects might need to be ['*.css'] to avoid 'shaking' our CSS, if we ever get tree shaking working":"",sideEffects:qB,repository:HB,type:FB,module:WB,types:_B,exports:VB,scripts:GB,dependencies:UB,devDependencies:YB,"// The four src/ files are directly exported so BloomDesktop can consume them as shared code.":"",files:XB,volta:ZB},gi="#d65649",QB="#2e2e2e",tD="#febf00",Uk=gs({palette:{primary:{main:QB,contrastText:gi},secondary:{main:gi}}});function Yk(){var e=JB.version;return e}const eD=()=>{const[e,t]=B.useState(!1),n=Yk(),a=new Date("2025-11-17T16:59:04.550Z").toLocaleDateString();return B.useEffect(()=>{const i=s=>{s.key==="Control"&&t(!0)},r=s=>{s.key==="Control"&&t(!1)};return window.addEventListener("keydown",i),window.addEventListener("keyup",r),()=>{window.removeEventListener("keydown",i),window.removeEventListener("keyup",r)}},[]),e?kt.createElement("div",{className:"version-control",style:{color:gi,fontFamily:"sans-serif",padding:"5px",zIndex:1e3}},"Bloom Player v",n," (built ",a,")"):null},nD=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,sy=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(nD);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},ly=e=>e==="*"||e==="x"||e==="X",uy=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},aD=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],iD=(e,t)=>{if(ly(e)||ly(t))return 0;const[n,a]=aD(uy(e),uy(t));return n>a?1:n<a?-1:0},cy=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const a=iD(e[n]||"0",t[n]||"0");if(a!==0)return a}return 0},dy=(e,t)=>{const n=sy(e),a=sy(t),i=n.pop(),r=a.pop(),s=cy(n,a);return s!==0?s:i&&r?cy(i.split("."),r.split(".")):i||r?i?-1:1:0};class Se extends B.Component{constructor(t,n){super(t,n),this.activityManager=new tz,this.initialPages=["loading..."],this.initialStyleRules="",this.originalPageClass="Device16x9Portrait",this.bookInfo=new uh,this.bookInteraction=new MB,this.mustUseOriginalPageSize=!1,this.indicesOfPagesWhereWeShouldPreserveDOMState={},this.startingUpSwiper=!0,this.state={pages:this.initialPages,pageIdToIndexMap:{},styleRules:this.initialStyleRules,importedBodyAttributes:{},currentSwiperIndex:0,isLoading:!0,loadFailed:!1,loadErrorHtml:"",ignorePhonyClick:!1,isFinishUpForNewBookComplete:!1,inPauseForced:!1,bookUrl:""},this.isPagesLocalized=!1,this.currentPageHidesNavigationButtons=!1,this.handleDocumentLevelKeyDown=i=>{i.key==="Home"&&(this.goToFirstPage(),i.preventDefault()),i.key==="End"&&(this.goToLastPage(),i.preventDefault())},this.distributionSource="",this.finishUpCalled=!1,this.hasImageDescriptions=!1,this.handlePageVideoComplete=i=>{i.page===Se.currentPage&&this.playAudioAndAnimation(i.page)},this.handlePlayFailed=()=>{this.setState({inPauseForced:!0}),this.props.setForcedPausedCallback&&this.props.setForcedPausedCallback(!0)},this.handlePlayCompleted=()=>{Mn(Ge.MediaFinished),this.props.imageDescriptionCallback(!1)},this.handleToggleImageDescription=i=>{this.props.imageDescriptionCallback(i)},this.handlePageNarrationComplete=i=>{if(i&&(Mn(Ge.MediaFinished),this.shouldAutoPlay())){const r=this.props.autoplayCount??0,s=this.state.startPageIndex??0,u=this.swiperInstance.slides.length-1;let c=this.props.autoplayCount?Math.min(s+r-1,u):u;this.swiperInstance.activeIndex>=c?(this.music.pause(),this.props.shouldReportSoundLog&&GC(),_C(),BT({})):this.swiperInstance.slideNext()}},this.skipAutoPlay=!1,this.sentBloomNotification=!1;const a=t.url.startsWith("http")?new URL(t.url):new URL(t.url,window.location.origin);a.hash?(this.state.startPageId=a.hash.substring(1),a.hash=""):this.state.startPageIndex=t.startPageIndex,this.state.bookUrl=a.href,Se.currentPagePlayer=this,this.legacyQuestionHandler=new nz(t.locationOfDistFolder)}componentDidMount(){He.setUp(),window.addEventListener("focus",()=>this.handleWindowFocus()),window.addEventListener("blur",()=>this.handleWindowBlur()),document.addEventListener("keydown",t=>this.handleDocumentLevelKeyDown(t)),document.addEventListener("pointerdown",t=>{(t.target.closest("[href], [data-href]")||t.target.closest(".bloom-videoContainer")&&!t.target.closest("[data-draggable-id]"))&&(t.stopPropagation(),t.preventDefault())},{capture:!0}),document.addEventListener("dragstart",t=>{this.activityManager.getActivityAbsorbsDragging()||t.preventDefault()},{capture:!0}),this.componentDidUpdate(this.props,this.state)}CanGoBack(){return zB()}HandleBackButtonClickedIfHavePlayerHistory(){const t=BB(this.bookInfo.bookInstanceId);return t?(this.navigate(t.bookUrl,t.pageId),!0):!1}navigate(t,n){if(t){const a=new URL(t,this.state.bookUrl);this.setState({bookUrl:a.href,startPageId:n,startPageIndex:void 0})}else if(n!==void 0){const a=this.state.pageIdToIndexMap[n];this.swiperInstance.slideTo(a)}}handleWindowFocus(){const t=localStorage.getItem(Hl),n=localStorage.getItem(tm);t&&n==this.sourceUrl&&(this.bookInteraction.beginReadTime=Date.now()-parseInt(t,10))}handleWindowBlur(){const t=Date.now()-this.bookInteraction.beginReadTime;localStorage.setItem(Hl,t.toString()),localStorage.setItem(tm,this.sourceUrl)}getRequiredVersionMessage(t){var c;const n=(c=t.querySelector('meta[name="FeatureRequirement"]'))==null?void 0:c.getAttribute("content");if(!n)return"";const a=/BloomPlayerMinVersion":"(.*?)".*?"FeatureId":"(.*?)"/g;let i,r=null,s=null;for(;(i=a.exec(n))!==null;){const h=i[1];(!r||dy(h,r)>0)&&(r=h,s=i[2])}if(!r||!s)return"";const u=Yk();if(dy(u,r)>=0)return"";if(window.location.hostname.toLowerCase().indexOf("bloomlibrary.org")>=0)return He.getTranslation("Version.Problem.Web",this.props.preferredUiLanguages,"This book uses the feature {feature}. Unfortunately, {hostname} is not ready to display this book yet. Please check back again later or write to issues@bloomlibrary.org if you think this is unexpected.").replace("{feature}",s).replace("{hostname}",window.location.hostname);{let h=ga("host","");switch(h){case"bloomreader":h="Bloom Reader";break;case"bloompubviewer":h="BloomPUB Viewer";break;case"readerapp":h="";break}return h?He.getTranslation("Version.Problem.Host",this.props.preferredUiLanguages,"This book uses the feature {feature} and requires a newer version of {host} to read it. Please upgrade to the latest version.").replace("{feature}",s).replace("{host}",h):He.getTranslation("Version.Problem.NoHost",this.props.preferredUiLanguages,"This book uses the feature {feature} and requires a newer version of the program you are using to read it. Please upgrade to the latest version.").replace("{feature}",s)}}componentDidUpdate(t,n){var a;try{if(!this.props.url||this.state.loadFailed)return;this.initializeMedia();const i=this.preprocessUrl();if(i&&i!=="/working"&&i!==this.sourceUrl){this.finishUpCalled=!1,this.setState({isLoading:!0,loadFailed:!1}),this.metaDataObject=void 0,this.htmlElement=void 0,this.sourceUrl=i;const r=this.sourceUrl.lastIndexOf("/"),s=this.sourceUrl.lastIndexOf("%2f");let u;r>s?u=this.sourceUrl.substring(r+1,this.sourceUrl.length):u=this.sourceUrl.substring(s+3,this.sourceUrl.length);const c=u.endsWith(".htm"),h=c?this.sourceUrl:this.sourceUrl+"/"+u+".htm";this.urlPrefix=c?this.sourceUrl.substring(0,Math.max(r,s)):this.sourceUrl,this.music.urlPrefix=this.urlPrefix,dC(this.music.urlPrefix);const m=Ja.get(this.fullUrl(".distribution")).then(P=>P,P=>({data:""})),x=Ja.get(h),w=Ja.get(this.fullUrl("meta.json"));Promise.all([x,w,m]).then(P=>{const[E,z,A]=P;this.metaDataObject=z==null?void 0:z.data,this.distributionSource=A.data;const S=new DOMParser().parseFromString(E==null?void 0:E.data,"text/html"),N=S.documentElement,L=this.getRequiredVersionMessage(S);this.setState({requiredVersion:L});const j=N.getElementsByTagName("body")[0];this.mustUseOriginalPageSize=this.computeMustUseOriginalPageSize(j),this.bookInfo.setSomeBookInfoFromBody(j),this.localizeOnce(),this.props.shouldReportSoundLog&&(this.videoList=this.getVideoList(S)),this.animation.PlayAnimations=this.bookInfo.playAnimations,this.collectBodyAttributes(j),this.makeNonEditable(j),this.htmlElement=N;const f=N.getElementsByClassName("bloom-page")[0];this.originalPageClass="Device16x9Portrait",f&&(this.originalPageClass=Se.getPageSizeClass(f)),this.legacyQuestionHandler.generateQuizPagesFromLegacyJSON(this.urlPrefix,j,this.originalPageClass,()=>{this.finishUp()})}).catch(P=>this.HandleLoadingError(P))}else if(t.landscape!==this.props.landscape||t.useOriginalPageSize!==this.props.useOriginalPageSize||t.autoplay!==this.props.autoplay){const r=document.getElementsByClassName("bloom-page");for(let s=0;s<r.length;s++){const u=r[s];this.setPageSizeClass(u)}}!this.state.isLoading&&(n.isLoading||t.activeLanguageCode!==this.props.activeLanguageCode)&&(this.updateDivVisibilityByLangCode(n.isLoading),this.updateOverlayPositionsByLangCode(),this.finishUpCalled&&this.finishUp(!1)),this.state.currentSwiperIndex!=n.currentSwiperIndex&&((a=this.rootDiv)==null||a.querySelectorAll(_p).forEach(r=>{const s=zs(r).getNiceScroll();s&&s.length>0&&s.remove()})),!this.state.isLoading&&(n.isLoading||t.shouldReadImageDescriptions!==this.props.shouldReadImageDescriptions)&&this.finishUpCalled&&(this.setIndex(this.state.currentSwiperIndex),this.showingPage(this.state.currentSwiperIndex)),this.state.isFinishUpForNewBookComplete&&t.landscape!==this.props.landscape&&(this.setIndex(this.state.currentSwiperIndex),this.showingPage(this.state.currentSwiperIndex)),t.paused!==this.props.paused&&this.handlePausePlay(),this.swiperInstance&&this.swiperInstance.lazy.load()}catch(i){this.setState({isLoading:!1,loadFailed:!0,loadErrorHtml:i.message})}}collectBodyAttributes(t){for(var n={},a=0;a<t.attributes.length;a++)n[t.attributes.item(a).nodeName]=t.attributes.item(a).nodeValue;this.setState({importedBodyAttributes:n})}HandleLoadingError(t){let a=`<p>There was a problem displaying this book: ${t.message}<p>`;(t.config&&t.config.url&&t.config.url.startsWith("file://")||t.message.indexOf("404")>=0)&&(a="<p>This book (or some part of it) was not found.<p>",t.config&&t.config.url&&(a+=`<p class='errorDetails'>${rD(t.config.url)}</p>`)),this.setState({isLoading:!1,loadFailed:!0,loadErrorHtml:a})}async finishUp(t=!0){if(this.finishUpCalled=!0,!this.htmlElement)return;Uo.setAllVideoPostersTo1x1TransparentPNG(this.htmlElement);const n=this.htmlElement.getElementsByClassName("bloom-page"),a=[];t&&(this.bookInfo.totalNumberedPages=0,this.bookInfo.questionCount=0,this.activityManager.collectActivityContextForBook(n),this.bookInteraction.clearPagesShown(),this.music.processAllMusicForBook(n));const i=this.bookInfo.getPreferredTranslationLanguages(),r=i[0]===this.props.activeLanguageCode||!this.props.activeLanguageCode,s={},u=h=>h.classList.contains("bloom-interactive-page")||h.classList.contains("simple-comprehension-quiz")||h.getAttribute("data-activity")=="iframe"||h.getElementsByClassName("questions").length>0;s.length=0,s.cover=0;for(let h=0;h<n.length;h++){const m=n[h],x=m.getAttribute("id");x&&(s[x]=h);const w=this.setPageSizeClass(m);m.setAttribute("data-index",h.toString(10)),h===0&&this.props.reportBookProperties&&this.props.reportBookProperties({landscape:w,canRotate:this.bookInfo.canRotate,preferredLanguages:i,pageNumbers:Array.from(n).map(E=>E.getAttribute("data-page-number")??""),isRtl:this.metaDataObject.isRtl,internalUrl:this.state.bookUrl}),t&&(this.fixRelativeUrls(m),m.classList.contains("numberedPage")&&(this.indexOflastNumberedPage=h,this.bookInfo.totalNumberedPages++),(m.getAttribute("data-analyticscategories")||m.getAttribute("data-analyticsCategories"))==="comprehension"&&this.bookInfo.questionCount++),this.showOrHideL1OnlyText(m,r);const P=u(m);P&&this.activityManager.initializePageHtml(this.urlPrefix,m,a.length),(!this.props.skipActivities||!P)&&a.push(m.outerHTML)}if(t){const h=this.htmlElement.getElementsByTagName("head")[0];this.bookInfo.setSomeBookInfoFromHead(h);const m=this.htmlElement.getElementsByTagName("body")[0];if(this.metaDataObject&&(this.bookInfo.setSomeBookInfoFromMetadata(this.metaDataObject,m),this.reportBookOpened(m)),this.props.controlsCallback){const x=hs.createLangDataArrayFromDomAndMetadata(m,this.metaDataObject);this.hasImageDescriptions=oD(m),this.props.controlsCallback(x,this.hasImageDescriptions,w=>{var P;(P=this.swiperInstance)==null||P.slideTo(w)})}}if(t){var c;try{c=await AB(this.htmlElement,this.urlPrefix,this.bookInfo,()=>this.legacyQuestionHandler.getPromiseForAnyQuizCss())}catch(h){this.HandleLoadingError(h),c=""}if(this.startingUpSwiper=!0,this.state.startPageId){if(s[this.state.startPageId]===void 0)throw new Error(`Page ID ${this.state.startPageId} not found in the current pageIdToIndexMap`);this.setState({startPageIndex:s[this.state.startPageId]})}this.setState({pages:a,pageIdToIndexMap:s,styleRules:c,isLoading:!1,currentSwiperIndex:this.state.startPageIndex??0})}else this.setState({pages:a,isLoading:!1});this.props.pageStylesAreNowInstalled(),t?window.setTimeout(()=>{this.setState({isFinishUpForNewBookComplete:!0});const h=this.startingUpSwiper;this.startingUpSwiper=!1;var m=this.state.startPageIndex??0;this.setIndex(m),this.showingPage(m),h&&this.addScrollbarsToPageWhenReady(this.swiperInstance.activeIndex);const x=document.getElementsByClassName("swiper-button-next")[0],w=document.getElementsByClassName("swiper-button-prev")[0];w==null||w.setAttribute("tabindex","4"),x==null||x.setAttribute("tabindex","5"),this.shouldFocusNextButtonForNewBook()&&(x==null||x.focus())},500):Se.currentPage&&window.setTimeout(()=>{this.setIndex(Se.currentPageIndex),this.showingPage(Se.currentPageIndex)},200)}shouldFocusNextButtonForNewBook(){return window.self===window.top||document.referrer.startsWith("http://localhost:")?!0:document.referrer.includes("bloomlibrary.org/player/")}showOrHideL1OnlyText(t,n){t.querySelectorAll(".coverBottomBookTopic, .coverBottomLangName").forEach(a=>{n||a.classList.contains("bloom-content1")?a.classList.remove("do-not-display"):a.classList.add("do-not-display")})}localizeOnce(){!this.isPagesLocalized&&this.state.pages!==this.initialPages&&this.state.styleRules!==this.initialStyleRules&&(He.localizePages(document.body,this.bookInfo.getPreferredTranslationLanguages()),this.isPagesLocalized=!0)}initializeMedia(){this.video||(this.video=new Uo,this.video.PageVideoComplete=new Ur,this.video.PageVideoComplete.subscribe(this.handlePageVideoComplete)),this.animation||(this.animation=new jl),ta.subscribe(this.handlePageNarrationComplete),Pr.subscribe(this.handlePlayFailed),Ya.subscribe(this.handlePlayCompleted),lC(this.storeAudioAnalytics.bind(this)),Ma.subscribe(this.handleToggleImageDescription.bind(this)),uC(()=>{var t;return(t=this.swiperInstance)==null?void 0:t.animating}),cC(t=>Gy(t,1)),this.music||(this.music=new UC,this.music.PlayFailed=new Ur,this.music.PlayFailed.subscribe(()=>{this.setState({inPauseForced:!0}),this.props.setForcedPausedCallback&&this.props.setForcedPausedCallback(!0)}))}preprocessUrl(){let t=this.state.bookUrl;if(t===void 0||t.trim()==="")throw new Error("The url parameter was empty. It should point to the url of a book.");return t.endsWith("/")&&(t=t.substring(0,t.length-1)),t.endsWith("%2f")&&(t=t.substring(0,t.length-3)),t}handlePausePlay(){this.props.paused?this.pauseAllMultimedia():Se.currentPage!==Dy()||yn===Ge.MediaFinished?this.resetForNewPageAndPlay(Se.currentPage):yn===Ge.VideoPaused?this.video.play():(RC(),this.animation.resumeAnimation(),this.music.play())}getAllBloomCanvasElementsOnPage(){var a,i;const t=(a=this.htmlElement)==null?void 0:a.ownerDocument.getElementsByClassName("bloom-canvas");if(t&&t.length>0)return Array.from(t);const n=(i=this.htmlElement)==null?void 0:i.ownerDocument.getElementsByClassName("bloom-imageContainer");return n?Array.from(n).filter(r=>r.parentElement.closest(".bloom-imageContainer")===null):[]}computeMustUseOriginalPageSize(t){return this.props.useOriginalPageSize||t.querySelector(".bloom-canvas-element")?!0:!!t.querySelector(".bloom-textOverPicture")}updateOverlayPositionsByLangCode(){if(!(!this.props.activeLanguageCode||!this.htmlElement))try{const t=this.props.activeLanguageCode;this.getAllBloomCanvasElementsOnPage().forEach(n=>{Array.from(n.querySelectorAll(Ls)).forEach(i=>{const r=Array.from(i.getElementsByClassName("bloom-editable")).find(s=>s.getAttribute("lang")===t);if(r){const s=r.getAttribute("data-bubble-alternate");if(s){const u=JSON.parse(s.replace(/`/g,'"'));i.setAttribute("style",u.style)}}});const a=Array.from(n.getElementsByClassName("comical-alternate")).find(i=>i.getAttribute("data-lang")===t);if(a){const i=n.getElementsByClassName("comical-generated")[0];i&&(i.classList.remove("comical-generated"),i.classList.add("comical-alternate"),i.style.display="none"),a.classList.remove("comical-alternate"),a.classList.add("comical-generated"),a.style.removeProperty("display")}})}catch(t){console.error(t)}}updateDivVisibilityByLangCode(t){if(!this.props.activeLanguageCode||!this.htmlElement)return;const a=this.bookInfo.getPreferredTranslationLanguages()[0]===this.props.activeLanguageCode||!this.props.activeLanguageCode,i=this.props.activeLanguageCode,r=this.htmlElement.ownerDocument.evaluate(".//div[contains(@class, 'bloom-translationGroup')]",this.htmlElement,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),s="bloom-visibility-code-on";for(let u=0;u<r.snapshotLength;u++){const c=r.snapshotItem(u),h=c.getAttribute("data-default-languages"),m=h?h.split(/,| /):[],x=m==null||m.length===0||!m[0]||m.includes("V")||m.includes("L1")||Se.areStringsEqualInvariantCultureIgnoreCase(m[0],"auto"),w=c.childNodes;for(let P=0;P<w.length;P++){const E=w.item(P);!E||!E.classList||!E.classList.contains("bloom-editable")||(t&&E.setAttribute("data-original-class",E.getAttribute("class")||""),a?E.setAttribute("class",E.getAttribute("data-original-class")||""):x&&(E.getAttribute("lang")===i?(E.classList.add(s),Array.from(E.classList).forEach(A=>{A.startsWith("bloom-content")&&E.classList.remove(A)}),E.classList.add("bloom-content1"),E.classList.add("bloom-contentFirst")):E.classList.remove(s)))}}}static areStringsEqualInvariantCultureIgnoreCase(t,n){return t.localeCompare(n,"en-US",{sensitivity:"accent"})===0}static isDivInL2(t){return t.classList.contains("bloom-contentNational1")}static isDivInL3(t){return t.classList.contains("bloom-contentNational2")}componentWillUnmount(){this.pauseAllMultimedia(),document.removeEventListener("keydown",t=>this.handleDocumentLevelKeyDown(t)),this.unsubscribeAllEvents()}unsubscribeAllEvents(){this.video.PageVideoComplete.unsubscribe(this.handlePageVideoComplete),ta.unsubscribe(this.handlePageNarrationComplete),Pr.unsubscribe(this.handlePlayFailed),Ya.unsubscribe(this.handlePlayCompleted),Ma.unsubscribe(this.handleToggleImageDescription)}pauseAllMultimedia(){yn===Ge.VideoPlaying?this.video.pause():yn===Ge.AudioPlaying&&(OC(),this.animation.PauseAnimation()),this.music.pause()}reportBookOpened(t){const n=this.bookInfo.getAmbientAnalyticsProps();this.distributionSource&&(n.distributionSource=this.distributionSource),LT(n),Xy("BookOrShelf opened",{})}sendUpdateOfBookProgressReportToExternalContext(){const t=this.bookInteraction.getProgressReportPropertiesForAnalytics();DT("Pages Read",t)}makeNonEditable(t){const n=t.ownerDocument.evaluate(".//*[@contenteditable]",t,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let a=0;a<n.snapshotLength;a++)n.snapshotItem(a).removeAttribute("contenteditable")}setPageSizeClass(t){return Se.setPageSizeClass(t,this.bookInfo.canRotate,this.props.landscape,this.mustUseOriginalPageSize,this.originalPageClass)}static getPageSizeClass(t){const a=(t.getAttribute("class")||"").match(/\b\S*?(Portrait|Landscape)\b/);return a&&a.length?a[0]:""}static setPageSizeClass(t,n,a,i,r){let s=!1;const u=this.getPageSizeClass(t);if(u){s=n?a:u.endsWith("Landscape");let c="";i?c=s?r.replace("Portrait","Landscape"):r.replace("Landscape","Portrait"):c=s?"Device16x9Landscape":"Device16x9Portrait",u!==c&&(t.classList.remove(u),t.classList.add(c))}return s}goToFirstPage(){this.swiperInstance.slideTo(0)}goToLastPage(){this.swiperInstance.slideTo(99999)}fixRelativeUrls(t){const n=t.ownerDocument.evaluate(".//*[@src]",t,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let r=0;r<n.snapshotLength;r++){const s=n.snapshotItem(r);if(!s)continue;const u=s.getAttribute("src"),c=this.fullUrl(u);s.setAttribute("src",c)}const a=t.ownerDocument.evaluate(".//*[@style]",t,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),i=new RegExp(/background-image:url\(['"](.*)['"]\)/);for(let r=0;r<a.snapshotLength;r++){const s=a.snapshotItem(r);if(!s)continue;const u=s.getAttribute("style")||"",c=i.exec(u);if(!c)continue;const h=this.fullUrl(c[1]),m=u.replace(i,"");s.setAttribute("style",m),s.setAttribute("data-background",h),s.classList.add("swiper-lazy")}}fullUrl(t){return this.urlPrefix+"/"+t}getRootDiv(){return this.rootDiv}slideNext(){this.swiperInstance&&this.swiperInstance.slideNext()}slidePrevious(){this.swiperInstance&&this.swiperInstance.slidePrev()}getPlayerOptionsForPage(t){if(!t)return;let n=t.getAttribute("data-player-options");if(n)try{return n=n.replace(/'/g,'"'),JSON.parse(n)}catch(a){console.log("getPlayerOptionsForPage failed to parse json: "+n+" with error "+a.message);return}}render(){var i;const t=this.activityManager.getActivityAbsorbsDragging();if(this.state.isLoading)return B.createElement(Cz,{className:"loadingSpinner",color:"secondary"});if(this.state.loadFailed)return B.createElement(B.Fragment,null,B.createElement(fk,{className:"loadFailedIcon",color:"secondary"}),B.createElement("div",{className:"loadErrorMessage",dangerouslySetInnerHTML:{__html:this.state.loadErrorHtml}}));if(this.state.requiredVersion)return B.createElement("div",{className:"requiredVersionMessage"},this.state.requiredVersion);vC(this.props.shouldReadImageDescriptions&&this.hasImageDescriptions);const n={getSwiper:r=>{var s,u;this.swiperInstance=r,(s=this.metaDataObject)!=null&&s.isRtl&&this.swiperInstance&&((u=this.swiperInstance.el)==null||u.setAttribute("dir","rtl"),this.swiperInstance.rtl=!0,this.swiperInstance.rtlTranslate=!0)},simulateTouch:!0,touchStartPreventDefault:!1,on:{slideChange:()=>{this.state.inPauseForced&&this.props.setForcedPausedCallback&&this.props.setForcedPausedCallback(!1),this.setState({inPauseForced:!1}),this.startingUpSwiper||this.showingPage(this.swiperInstance.activeIndex)},slideChangeTransitionStart:()=>{this.startingUpSwiper||this.setIndex(this.swiperInstance.activeIndex)},slideChangeTransitionEnd:()=>{this.addScrollbarsToPageWhenReady(this.swiperInstance.activeIndex)}},keyboard:{enabled:!0,onlyInViewport:!1},preloadImages:!1,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0,loadPrevNextAmount:2},shouldSwiperUpdate:!0};this.startingUpSwiper&&(n.activeSlideKey=(i=this.state.startPageIndex)==null?void 0:i.toString());let a="bloomPlayer";return this.currentPageHidesNavigationButtons?a+=" hideNextPrevButtons extraScalingForChrome85Bug":(this.props.outsideButtonPageClass&&(a+=" "+this.props.outsideButtonPageClass),t&&(a+=" showNavigationButtonsEvenOnTouchDevices")),B.createElement("div",{"aria-label":"Player Content",className:a+(this.props.extraClassNames?" "+this.props.extraClassNames:""),ref:r=>this.rootDiv=r},B.createElement(rC,{key:this.shouldAutoPlay()?"fade":"slide",...n,effect:this.shouldAutoPlay()?"fade":"slide"},this.state.pages.map((r,s)=>{const c=Math.abs(s-this.state.currentSwiperIndex)<2||this.indicesOfPagesWhereWeShouldPreserveDOMState[s];return B.createElement("div",{key:s,className:"page-preview-slide",onClick:h=>this.handlePageClick(h)},c?B.createElement(B.Fragment,null,B.createElement("style",{scoped:!0},this.state.styleRules),B.createElement("div",{...this.state.importedBodyAttributes,className:`bloomPlayer-page ${this.bookInfo.hasAppearanceSystem?"appearance-system":""} ${this.state.importedBodyAttributes.class??""}`,dangerouslySetInnerHTML:{__html:r}})):"")})),B.createElement("div",{className:"swiper-button-prev "+(this.metaDataObject.isRtl?"swiper-button-right":"swiper-button-left")+(this.props.hideSwiperButtons||this.state.currentSwiperIndex===0?" swiper-button-disabled":""),onClick:()=>this.slidePrevious(),onTouchStart:r=>{this.setState({ignorePhonyClick:!0})}},B.createElement(Ta,{className:"nav-button",disableRipple:!0},this.metaDataObject.isRtl?B.createElement(ih,{titleAccess:He.getTranslation("Button.Prev",this.props.preferredUiLanguages,"Previous Page")}):B.createElement(ah,{titleAccess:He.getTranslation("Button.Prev",this.props.preferredUiLanguages,"Previous Page")}))),B.createElement("div",{className:"swiper-button-next "+(this.metaDataObject.isRtl?"swiper-button-left":"swiper-button-right")+(this.props.hideSwiperButtons||this.state.currentSwiperIndex>=this.state.pages.length-1?" swiper-button-disabled":""),onClick:()=>this.slideNext(),onTouchStart:r=>{this.setState({ignorePhonyClick:!0})}},B.createElement(Ta,{className:"nav-button",disableRipple:!0},this.metaDataObject.isRtl?B.createElement(ah,{titleAccess:He.getTranslation("Button.Next",this.props.preferredUiLanguages,"Next Page")}):B.createElement(ih,{titleAccess:He.getTranslation("Button.Next",this.props.preferredUiLanguages,"Next Page")}))))}shouldAutoPlay(){var t=this.bookInfo.autoAdvance&&this.props.landscape;return this.props.autoplay==="yes"?t=!0:this.props.autoplay==="no"&&(t=!1),t&&!this.skipAutoPlay}setIndex(t){if(this.state.isLoading||this.startingUpSwiper)return;this.setState({currentSwiperIndex:t});const n=this.getPageAtSwiperIndex(t);n&&(this.setPageSizeClass(n),this.animation.HandlePageBeforeVisible(n),this.video.hidingPage(),this.video.HandlePageBeforeVisible(n),$C(),this.music.hidingPage(),yn===Ge.AudioPaused||yn===Ge.VideoPaused?Mn(Ge.NewPageMediaPaused):(this.skipAutoPlay=!0,AC(),this.skipAutoPlay=!1,Mn(Ge.NewPage)))}getPageAtSwiperIndex(t){if(this.swiperInstance==null)return null;const n=this.swiperInstance.slides[t];return n?n.getElementsByClassName("bloom-page")[0]:null}getPageIdFromIndex(t){const n=this.getPageAtSwiperIndex(t);if(!n)throw new Error("No bloomPage at index "+t);return n.getAttribute("id")}static getCurrentPage(){return Se.currentPage}isXmatterPage(){const t=Se.currentPage;if(!t)return!0;const n=t.getAttribute("class");return!n||n.indexOf("bloom-page")<0||n.indexOf("bloom-backMatter")>=0||n.indexOf("bloom-frontMatter")>=0?!0:t.hasAttribute("data-xmatter-page")}showingPage(t){if(this.state.isLoading||this.startingUpSwiper)return;this.props.pageChanged&&this.props.pageChanged(t);const n=this.getPageAtSwiperIndex(t);if(!n){window.setTimeout(()=>this.showingPage(t),50);return}const a=this.getPlayerOptionsForPage(n);this.currentPageHidesNavigationButtons=!!(a&&a.hideNavigation),this.props.hidingNavigationButtonsCallback&&this.props.hidingNavigationButtonsCallback(this.currentPageHidesNavigationButtons),this.activityManager.showingPage(t,n)&&(this.indicesOfPagesWhereWeShouldPreserveDOMState[t]=!0),window.setTimeout(()=>{Se.currentPage=n,Se.currentPageIndex=t,Se.currentPageHasVideo=Uo.pageHasVideo(n),this.setPageSizeClass(n),this.resetForNewPageAndPlay(n),this.props.paused&&this.animation.shouldAnimate(n)&&(this.animation.HandlePageBeforeVisible(n),this.animation.HandlePageVisible(n),this.animation.HandlePageDurationAvailable(n,Jg(n)),this.animation.PauseOnFirstFrame()),this.isXmatterPage()||(this.bookInteraction.pageShown(t),t===this.indexOflastNumberedPage&&(this.bookInteraction.lastNumberedPageWasRead=!0)),this.props.reportPageProperties&&this.props.reportPageProperties({hasAudio:jC(n),hasMusic:this.music.pageHasMusic(n),hasVideo:Se.currentPageHasVideo}),this.bookInteraction.reportedAudioOnCurrentPage=!1,this.bookInteraction.reportedVideoOnCurrentPage=!1,this.sendUpdateOfBookProgressReportToExternalContext(),this.swiperInstance.params.noSwiping=this.activityManager.getActivityAbsorbsDragging(),this.swiperInstance.params.touchRatio=this.activityManager.getActivityAbsorbsDragging()?0:1,this.activityManager.getActivityAbsorbsTyping()?this.swiperInstance.keyboard.disable():this.swiperInstance.keyboard.enable(),Array.from(n.querySelectorAll("[data-sound]")).forEach(r=>{r.addEventListener("click",Hp)})},0)}addScrollbarsToPageWhenReady(t){if(this.state.isLoading||this.startingUpSwiper)return;const n=this.getPageAtSwiperIndex(t);if(!n){window.setTimeout(()=>this.addScrollbarsToPageWhenReady(t),50);return}RL(n,Se.handlePointerMoveEvent)}static handlePointerMoveEvent(t){var n;t.pointerType==="mouse"&&((n=t.target)!=null&&n.closest(".nicescroll-cursors"))&&t.stopPropagation()}storeAudioAnalytics(t){t<.001||Number.isNaN(t)||(this.bookInteraction.totalAudioDuration+=t,!this.isXmatterPage()&&(this.bookInteraction.reportedAudioOnCurrentPage||(this.bookInteraction.reportedAudioOnCurrentPage=!0,this.bookInteraction.audioPageShown(Se.currentPageIndex)),this.sendUpdateOfBookProgressReportToExternalContext()))}static storeVideoAnalytics(t){if(t<.001)return;const n=Se.currentPagePlayer;n.bookInteraction.totalVideoDuration+=t,!n.bookInteraction.reportedVideoOnCurrentPage&&!n.isXmatterPage()&&(n.bookInteraction.reportedVideoOnCurrentPage=!0,n.bookInteraction.videoPageShown(Se.currentPageIndex)),n.sendUpdateOfBookProgressReportToExternalContext()}resetForNewPageAndPlay(t){if(this.props.paused){this.video.HandlePageVisible(t,()=>this.props.paused);return}By(t),Se.currentPageHasVideo?(Mn(Ge.VideoPlaying),this.video.HandlePageVisible(t,()=>this.props.paused),this.music.pause()):this.playAudioAndAnimation(t)}playAudioAndAnimation(t){if(this.activityManager.getActivityManagesSound()){this.activityManager.doInitialSoundAndAnimation();return}if(Mn(Ge.AudioPlaying),!t)return;const n=Jg(t);this.animation.HandlePageDurationAvailable(t,n);const a=()=>{jl.pageHasAnimation(t)&&this.animation.HandlePageBeforeVisible(t),this.animation.HandlePageVisible(t),jy(t,this.animation.animatableCanvas),this.music.HandlePageVisible(t)};if(!this.sentBloomNotification&&(this.sentBloomNotification=!0,this.props.shouldReportSoundLog)){Uy("/publish/av/startRecording",this.videoList).then(a);return}a()}getVideoList(t){let n="";for(const r of Array.from(t.getElementsByTagName("video"))){var a=r,i=a.getElementsByTagName("source")[0].getAttribute("src");n&&(n+="|"),n+=i}return n}handlePageClick(t){if(!this.state.ignorePhonyClick&&(!this.activityManager.getActivityAbsorbsClicking()||t.target.closest("[data-href]")&&t.target.closest(".bloom-canvas"))&&!t.target.closest(".bloom-videoContainer")){const n=DB(t.nativeEvent,this.bookInfo.bookInstanceId,()=>this.getPageIdFromIndex(this.state.currentSwiperIndex));n?(this.navigate(n.bookUrl,n.pageId),t.stopPropagation(),t.preventDefault()):this.props.onContentClick&&this.props.onContentClick(t)}this.setState({ignorePhonyClick:!1})}}function rD(e){return e.replace("%23","#").replace(/[\u00A0-\u9999<>\&]/gim,t=>"&#"+t.charCodeAt(0)+";")}function oD(e){return e.ownerDocument.evaluate("//div[contains(@class, 'bloom-imageDescription')]/div[contains(@class, 'bloom-editable') and contains(@class, 'bloom-visibility-code-on')]//*[contains(@class, 'audio-sentence') or contains(@class, 'bloom-highlightSegment')]",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0?!0:e.ownerDocument.evaluate("//div[contains(@class, 'bloom-imageDescription')]/div[contains(@class, 'bloom-editable') and contains(@class, 'bloom-visibility-code-on') and @data-audiorecordingmode='TextBox']/p[text()]",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0}var Vp={},sD=ba,lD=wa;Object.defineProperty(Vp,"__esModule",{value:!0});var Xk=Vp.default=void 0,uD=lD(Ln()),cD=sD(ka()),dD=(0,cD.default)(uD.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");Xk=Vp.default=dD;var Gp={},fD=ba,hD=wa;Object.defineProperty(Gp,"__esModule",{value:!0});var Zk=Gp.default=void 0,pD=hD(Ln()),gD=fD(ka()),mD=(0,gD.default)(pD.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");Zk=Gp.default=mD;var Up={},vD=ba,yD=wa;Object.defineProperty(Up,"__esModule",{value:!0});var Yp=Up.default=void 0,bD=yD(Ln()),wD=vD(ka()),kD=(0,wD.default)(bD.createElement("path",{d:"M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"PlayCircleOutline");Yp=Up.default=kD;var Xp={},xD=ba,SD=wa;Object.defineProperty(Xp,"__esModule",{value:!0});var Jk=Xp.default=void 0,CD=SD(Ln()),TD=xD(ka()),ED=(0,TD.default)(CD.createElement("path",{d:"M9 16h2V8H9v8zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm1-4h2V8h-2v8z"}),"PauseCircleOutline");Jk=Xp.default=ED;var Zp={},PD=ba,MD=wa;Object.defineProperty(Zp,"__esModule",{value:!0});var Qk=Zp.default=void 0,AD=MD(Ln()),ND=PD(ka()),LD=(0,ND.default)(AD.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language");Qk=Zp.default=LD;var Jp={},zD=ba,BD=wa;Object.defineProperty(Jp,"__esModule",{value:!0});var t0=Jp.default=void 0,DD=BD(Ln()),ID=zD(ka()),jD=(0,ID.default)(DD.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}),"Fullscreen");t0=Jp.default=jD;var Qp={},RD=ba,OD=wa;Object.defineProperty(Qp,"__esModule",{value:!0});var e0=Qp.default=void 0,KD=OD(Ln()),$D=RD(ka()),qD=(0,$D.default)(KD.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}),"FullscreenExit");e0=Qp.default=qD;function HD(e){return kt.createElement(nh,{...e,width:"21",height:"20",viewBox:"0 0 21 20"},kt.createElement("path",{d:"M20.6181 9.909C20.6181 9.909 17.3581 3.70568 10.2454 3.70568C10.1127 3.70568 9.9821 3.70851 9.8522 3.71275L9.23133 0.590958L8.27889 0.807585L8.87136 3.78574C2.72807 4.50344 0 9.86355 0 9.86355C0 9.86355 0.566707 11.0581 1.77366 12.4165L1.27674 9.91983C1.26639 9.90052 1.26089 9.89016 1.26089 9.89016C1.26089 9.89016 1.45882 9.53343 1.86833 9.01188L2.73952 13.3918C3.09729 13.7179 3.49205 14.0383 3.92423 14.3419L2.68074 8.09074C2.92754 7.84068 3.20826 7.58049 3.52199 7.32171L5.05787 15.0424C5.40441 15.2277 5.77033 15.3993 6.15474 15.5514L4.38901 6.67725C4.6772 6.48487 4.98565 6.29932 5.31568 6.12485L7.26481 15.9206C7.59924 16.0118 7.94578 16.0871 8.30509 16.146L7.56314 12.4167C7.89823 12.8518 8.32205 13.2046 8.80465 13.4464L9.36563 16.2656C9.59813 16.2802 9.83459 16.2891 10.0765 16.2891C10.1734 16.2891 10.2694 16.2873 10.3654 16.2844L9.86541 13.773C10.0112 13.7923 10.1591 13.8033 10.3099 13.8033C10.4957 13.8033 10.6783 13.7883 10.8559 13.7588L11.9801 19.4091L12.9321 19.1924L12.3108 16.0683C17.848 14.9378 20.6181 9.909 20.6181 9.909ZM6.88084 8.9881L6.22651 5.69889C6.53386 5.57339 6.8575 5.45942 7.19546 5.35982L7.6228 7.50844C7.28066 7.93015 7.02351 8.43381 6.88084 8.9881ZM8.46692 6.74577L8.14503 5.12836C8.45547 5.06785 8.77691 5.01958 9.11002 4.9859L9.3773 6.32923C9.05322 6.42294 8.74741 6.56375 8.46692 6.74577ZM10.3467 6.19713L10.0944 4.93033C10.1472 4.92963 10.1998 4.92845 10.2533 4.92845C10.4858 4.92845 10.713 4.93599 10.9365 4.94941C13.2188 5.33628 14.964 7.44981 14.964 9.99965C14.964 12.1188 13.7579 13.9352 12.0406 14.7106L11.7914 13.4565C13.0153 12.8558 13.8654 11.5342 13.8654 9.99942C13.8652 7.91226 12.2936 6.21856 10.3467 6.19713ZM14.5336 14.0984C15.4349 13.0056 15.9823 11.5718 15.9823 9.99942C15.9823 8.35399 15.3821 6.8595 14.405 5.74928C17.7771 7.16772 19.3574 9.92642 19.3574 9.92642C19.3574 9.92642 17.7491 12.6074 14.5336 14.0984Z"}))}var tg={},FD=ba,WD=wa;Object.defineProperty(tg,"__esModule",{value:!0});var n0=tg.default=void 0,_D=WD(Ln()),VD=FD(ka()),GD=(0,VD.default)(_D.createElement("path",{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"}),"VolumeUp");n0=tg.default=GD;const UD=e=>{const[t,n]=B.useState((e.languages.filter(s=>s.IsSelected)[0]||e.languages[0]).Code),a=s=>{const u=s.target.value;n(u),e.onClose(u)},i=()=>{e.onClose("")},r=()=>{const s=e.languages.map(u=>kt.createElement("div",{className:"chooserItem",key:u.Code},kt.createElement(nB,{value:u.Code,control:kt.createElement(gB,null),label:u.Name,checked:u.Code===t}),kt.createElement("span",{className:"spacer"}),kt.createElement(n0,{className:"icon",visibility:u.HasAudio?"inherit":"hidden"})));return kt.createElement("div",{className:"radioGroupDiv"},s)};return kt.createElement(Hz,{className:"languageMenu",onClose:i,"aria-labelledby":"language-menu-title",open:!0,scroll:"paper"},kt.createElement(Uz,{id:"language-menu-title"},"Languages in this book:"),kt.createElement(Qz,{component:"fieldset"},kt.createElement(mB,{className:"radioGroup","aria-label":"languages",name:"languages",value:t,onChange:a},r())),kt.createElement(_z,null,kt.createElement(yz,{onClick:i,color:"secondary"},"Close")))};var _o=(e=>(e[e.showArrow=0]="showArrow",e[e.showEllipsis=1]="showEllipsis",e[e.showNothing=2]="showNothing",e))(_o||{});const YD=e=>{const[t,n]=B.useState(!1),a="button"+(e.bookLanguages.length<2?" disabled":""),i=E=>{n(!1),E!==""&&(e.onLanguageChanged(E),s({lang:E}))},r=()=>{try{document.fullscreenElement!=null||document.webkitFullscreenElement!=null?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullScreen&&document.webkitExitFullScreen():document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen()}catch(E){console.error("RequestFullScreen failed: ",E)}},s=E=>{if(!e.videoPreviewMode)return;const z={lang:e.activeLanguageCode,imageDescriptions:e.readImageDescriptions,...E};Uy("publish/av/videoSettings",encodeURIComponent(JSON.stringify(z)))},u=He.getTranslation("Audio.Pause",e.preferredLanguages,"Pause"),c=e.paused?kt.createElement(Yp,{titleAccess:e.playLabel}):kt.createElement(Jk,{titleAccess:u}),h=He.getTranslation("Button.ReadImageDescriptions",e.preferredLanguages,"Read Image Descriptions"),m=He.getTranslation("Button.IgnoreImageDescriptions",e.preferredLanguages,"Ignore Image Descriptions"),x=gs({palette:{primary:{main:tD},secondary:{main:Uk.palette.secondary.main}}}),w=kt.createElement(Vl,{theme:x},kt.createElement(HD,{"aria-label":e.readImageDescriptions?"Read image descriptions":"Ignore image descriptions",titleAccess:e.readImageDescriptions?m:h,opacity:e.readImageDescriptions?1:.38,color:e.nowReadingImageDescription?"primary":"secondary"})),P=e.extraButtons?e.extraButtons.map(E=>kt.createElement(Ta,{key:E.id,color:"secondary",title:E.description,onClick:()=>ja({messageType:E.id})},kt.createElement("img",{style:{maxHeight:"24px",maxWidth:"24px"},src:E.iconUrl}))):void 0;return kt.createElement(lz,{color:"primary",className:`control-bar ${e.visible?", visible":""}`,id:"control-bar",elevation:0,position:"relative"},kt.createElement(PB,null,!e.videoPreviewMode&&kt.createElement(Ta,{color:"secondary",onClick:()=>{e.backClicked&&e.backClicked()},"data-testid":"history-back-button",disabled:e.getBackButtonState()===2},e.getBackButtonState()===0?kt.createElement(Xk,{"aria-label":"Go Back",titleAccess:He.getTranslation("Button.Back",e.preferredLanguages,"Back")}):e.getBackButtonState()===1&&kt.createElement(Zk,{"aria-label":"More Menu",titleAccess:He.getTranslation("Button.More",e.preferredLanguages,"More")})),kt.createElement("div",{className:"filler"}),e.bookHasImageDescriptions&&kt.createElement(Ta,{onClick:()=>{e.onReadImageDescriptionToggled(),s({imageDescriptions:!e.readImageDescriptions})}},w),e.bookLanguages.length>1&&kt.createElement(Ta,{className:a,"aria-label":"Choose Language",color:"secondary",onClick:()=>{n(!0)}},kt.createElement(Qk,{titleAccess:He.getTranslation("Button.ChooseLanguage",e.preferredLanguages,"Choose Language")})),t&&kt.createElement(UD,{languages:e.bookLanguages,onClose:i}),!e.videoPreviewMode&&kt.createElement(Ta,{color:"secondary","aria-label":"PlayPause",onClick:()=>{e.pausedChanged&&e.pausedChanged(!e.paused)}},e.showPlayPause?c:null),P,document.fullscreenEnabled&&e.canShowFullScreen&&!e.videoPreviewMode&&kt.createElement(Ta,{color:"secondary",onClick:()=>r()},document.fullscreenElement==null?kt.createElement(t0,{"aria-label":"Full Screen",titleAccess:He.getTranslation("Button.FullScreen",e.preferredLanguages,"Full Screen")}):kt.createElement(e0,{"aria-label":"Exit Full Screen",titleAccess:He.getTranslation("Button.ExitFullScreen",e.preferredLanguages,"Exit Full Screen")}))))};function _d(e,t){return Math.round(e/t)*t}function XD(e){if(!(!e||e==="cover")){if(/^\d+$/.test(e))return e;try{return e.replace(new RegExp("(?![0-9])\\p{Nd}","gu"),t=>{const n=t.charCodeAt(0);return(n&15)-6*(new RegExp("\\p{Nd}","u").test(String.fromCodePoint(n|15))?1:0)})}catch{return}}}let Vd=!1,dh=e=>{};function ZD(e){dh&&dh(e)}let fy=0,hy=0;function py(){const e=/iPad|iPhone|iPod/.test(navigator.platform);let t,n,a;e&&(t=document.getElementsByClassName("bloomPlayer")[0],n=t.parentElement,a=t.nextSibling,n.removeChild(t));const i=document.documentElement.clientWidth,r=document.documentElement.clientHeight;return e&&n.insertBefore(t,a),{width:i,height:r}}const JD=e=>{const[t,n]=B.useState(e.autoplay),a=e.centerVertically===void 0?!0:e.centerVertically;KT(ht=>{ht.pause?(Vd=!L,j(!0)):ht.resume&&Vd?j(!1):ht.play?(j(!1),ht.autoplay&&n(ht.autoplay)):ht.reset?(h(e.startPage??0),Ue.current&&Ue.current(e.startPage??0)):ht.controlAction&&rt(ht.controlAction)});const[i,r]=B.useState(!1),[s,u]=B.useState(e.initiallyShowAppBar),[c,h]=B.useState(e.startPage??0),[m,x]=B.useState([""]),[w,P]=B.useState(!1),[E,z]=B.useState(!1),[A,k]=B.useState(""),[S,N]=B.useState("Device16x9Portrait");B.useEffect(()=>{u(e.initiallyShowAppBar)},[e.initiallyShowAppBar]),B.useEffect(()=>{s?jT():RT()},[s]),B.useEffect(()=>{j(e.paused)},[e.paused]);const[L,j]=B.useState(e.paused),[f,G]=B.useState(!1),V=He.getBloomUiLanguage(),F=V==="en"?[V]:[V,"en"],[pt,ft]=B.useState(F);B.useEffect(()=>{L||(Vd=!1)},[L]);const[ot,Z]=B.useState(!1),[$,o]=B.useState(!1),[tt,v]=B.useState(!1),[Q,st]=B.useState(!1),[ut,I]=B.useState(!1),[lt,gt]=B.useState(0),[Tt,Ct]=B.useState(9/16),jt=[],[Ft,Yt]=B.useState(jt),[Wt,Te]=B.useState(""),Ue=B.useRef(),[hn,ke]=B.useState(!0),[ve,Ye]=B.useState(!1),[Et,xe]=B.useState(!1),[qn,We]=B.useState(0),C=()=>{We(ht=>ht+1)},[D,W]=B.useState("");B.useEffect(()=>{mt()},[ut,qn,ot,e.useOriginalPageSize]),B.useEffect(()=>()=>{const ht=document.getElementById("scale-style-sheet");ht&&ht.parentNode.removeChild(ht)},[]);const X=B.useRef(),rt=ht=>{switch(ht){case"navigate-to-next-page":X&&X.current&&X.current.slideNext();break;case"navigate-to-previous-page":X&&X.current&&X.current.slidePrevious();break;default:console.log("'handleControlMessage' received an unknown message.");return}},mt=()=>{const ht=document.getElementsByClassName("swiper-slide-active")[0];let zt=null;if(ht&&(zt=ht.getElementsByClassName("bloom-page")[0]),!zt||!ut){window.setTimeout(C,100);return}let qe=document.getElementById("scale-style-sheet");qe||(qe=document.createElement("style"),qe.setAttribute("type","text/css"),qe.setAttribute("id","scale-style-sheet"),document.head.appendChild(qe));let pe=lt,Jt=Tt;const ge=Se.getPageSizeClass(zt);(e.url!==A||ge!==S)&&(k(e.url),N(ge),window.onresize=()=>{const{width:ca,height:qa}=py();(qa!==hy||ca!==fy)&&C()},pe=Math.max(zt.offsetHeight,zt.offsetWidth),Jt=Math.min(zt.offsetHeight,zt.offsetWidth)/pe,Ct(Jt),gt(pe));const{width:St,height:Bt}=py();fy=St,hy=Bt;const ee=St>Bt;if(ee!==ot){Z(ee);return}let ye=0,ce=0;const Ze=window.getComputedStyle(document.body);Ze&&Ze.marginTop&&(ye=parseInt(Ze.marginTop,10)),Ze&&Ze.marginBottom&&(ce=parseInt(Ze.marginBottom,10));const ue=zt.getAttribute("class").indexOf("Landscape")>=0,ri=ue?pe*Jt:pe,nn=ue?pe:pe*Jt;let ua=ye+ce;if(s){const ca=document.getElementById("control-bar");ca&&(ua+=ca.offsetHeight);const qa=document.getElementById("pageNumberControl");qa&&(ua+=qa.offsetHeight)}const Ka=Bt-ua,oi=_t({pageWidth:nn,pageHeight:ri,desiredPageHeight:Ka}),mr=re(nn);let Je=Math.min(oi,mr);const Ne=ri*Je;let $a=Ne*Jt/Je;ue&&($a=Ne/Jt/Je);const $i=St/Je-$a;let Tn="",xa=Math.max((St-nn*Je)/2,0);e.roundMarginToNearestK&&(xa=_d(xa,e.roundMarginToNearestK));const uo=xa,co=Je,sc=30;if($i>100*2)Tn="largeOutsideButtons";else if($i>sc*2)Tn="smallOutsideButtons";else if(St>407&&navigator.userAgent.includes("Chrome")&&!e.hideSwiperButtons){const qa=new RegExp(" Chrome/([0-9]+).").exec(navigator.userAgent),vr=parseInt(qa[1]);vr&&vr<90&&(Je*=.9,xa=Math.max((St-nn*Je)/2,0),Tn="smallOutsideButtons extraScalingForChrome85Bug")}Tn!==D&&W(Tn);let fo="";if(a){const ca=(Bt-Ne-ua)/2;ca>0&&(fo=`translate(0, ${ca.toFixed(0)}px) `)}qe.innerText=`.bloomPlayer {
|
|
8047
|
+
`,"").replace("\r","")}const oc=[];function zB(){return oc.length>0}function BB(e){const t=oc.pop();if(t)return{bookUrl:e===t.bookId?void 0:ch(t.bookId),pageId:t.pageId}}function DB(e,t,n){const a=e.target.closest("[href], [data-href]");if(!a)return;e.preventDefault(),e.stopPropagation();const i=(a.getAttribute("href")||a.getAttribute("data-href"))??void 0;if(!i)return;if(i.startsWith("http://")||i.startsWith("https://")){window.open(i,"_blank","noreferrer");return}let r,s;if(i==="back"){const c=oc.pop();return c?{bookUrl:t===c.bookId?void 0:ch(c.bookId),pageId:c.pageId}:void 0}else if(i.startsWith("/book/")){const c=IB(i);r=c.bookId,s=c.pageId,c.bookId===t&&(r=void 0)}else i.startsWith("#")&&(s=i.substring(1));const u=n();if(r)return oy(t,u),{bookUrl:ch(r),pageId:s};if(s)return oy(t,u),{pageId:s}}function oy(e,t,n){oc.push({bookId:e,pageId:t})}function ch(e){return`/book/${e}/index.htm`}function IB(e){try{const t=new URL(e,window.location.origin);if(!t.pathname.startsWith("/book/"))throw new Error("Invalid book URL format");const n=t.pathname.replace("/book/",""),a=t.hash.replace("#","");return{bookId:n,pageId:a}}catch(t){return console.error("Error parsing book URL:",t),{bookId:void 0,pageId:void 0}}}const jB="bloom-player",RB="A library for displaying Bloom books in iframes or WebViews",OB="SIL Global",KB="MIT",$B="2.17.0-alpha.3",qB=!1,HB={type:"git",url:"https://github.com/BloomBooks/bloom-player.git"},FB="module",WB="lib/shared.es.js",_B="lib/index.d.ts",VB={".":{types:"./lib/index.d.ts",import:"./lib/shared.es.js",default:"./lib/shared.es.js"}},GB={"// COMMENTS: make the action a space rather than empty string so `yarn run` can list the scripts":" ","//":" ","// 'yarn dev' will build, watch, start a server, and open the player in a brower":" ","// You can edit index-for-developing.html to point to different books":" ","// Or just use 'yarn storybook' and skip this dev approach entirely":" ",dev:"vite","build:standalone":"vite build","build:sharedlib":"vite build --mode lib",test:"vitest","// blame.ignoreRevsFile - This allows blame to see through commits that are only there to format code.":" ",prepare:"husky install && git config blame.ignoreRevsFile .git-blame-ignore-revs",storybook:"storybook dev -p 6006","// run this when working with stories that use an iframe and bloomplayer.htm instead of the raw react components":" ",watchForStorybook:"yarn vite build --watch --mode development","strings:download":"crowdin download --config src/l10n/crowdin.yml && yarn strings:compile","strings:upload":"crowdin upload --config src/l10n/crowdin.yml","strings:compile":"yarn tsx ./src/l10n/compileL10Strings.ts","strings:sync":"yarn strings:upload && yarn strings:download"},UB={"@material-ui/core":"^4.12.3","@material-ui/icons":"^4.11.2",axios:"^0.18.0","compare-versions":"^6.1.1","dynamic-import-polyfill":"^0.1.1","jquery.nicescroll":"^3.7.6",react:"^17.0.2","react-dom":"^17.0.2","react-id-swiper":"2.3.2","style-scoped":"^0.2.1",swiper:"^4.5.0"},YB={"@crowdin/cli":"^4.2.0","@storybook/addon-essentials":"8.4.6","@storybook/addon-interactions":"^8.4.6","@storybook/addon-links":"8.4.6","@storybook/blocks":"8.4.6","@storybook/react":"8.4.6","@storybook/react-vite":"8.4.6","@storybook/test":"8.4.6","@types/jquery":"^3.5.5","@types/jquery.nicescroll":"^3.7.1","@types/node":"^22.7.6","@types/react":"^17.0.2","@types/react-dom":"^17.0.2",editorconfig:"^2.0.0",eslint:"^9.12.0","eslint-plugin-storybook":"^0.11.1",husky:"8.0.3",jsdom:"^25.0.1",less:"^4.2.0",prettier:"^3.3.3","semantic-release":"24.1.2",storybook:"8.4.6",tsx:"^4.19.1",typescript:"*",vite:"^5.4.9","vite-plugin-dts":"^4.5.3","vite-plugin-html":"^3.2.2","vite-plugin-static-copy":"^2.0.0",vitest:"^2.1.3"},XB=["dist/*.js","dist/bloomplayer.htm","dist/*.mp3","lib/*.js","lib/*.d.ts","lib/*.js.map","src/shared/event.ts","src/shared/narration.ts","src/shared/dragActivityRuntime.ts","src/shared/scrolling.ts","src/shared/index.ts","dist/*.css","dist/*.tsv"],ZB={node:"20.15.1",yarn:"1.22.19"},JB={name:jB,description:RB,author:OB,license:KB,version:$B,private:!1,"// sideeffects might need to be ['*.css'] to avoid 'shaking' our CSS, if we ever get tree shaking working":"",sideEffects:qB,repository:HB,type:FB,module:WB,types:_B,exports:VB,scripts:GB,dependencies:UB,devDependencies:YB,"// The four src/ files are directly exported so BloomDesktop can consume them as shared code.":"",files:XB,volta:ZB},gi="#d65649",QB="#2e2e2e",tD="#febf00",Uk=gs({palette:{primary:{main:QB,contrastText:gi},secondary:{main:gi}}});function Yk(){var e=JB.version;return e}const eD=()=>{const[e,t]=B.useState(!1),n=Yk(),a=new Date("2025-11-17T18:23:25.164Z").toLocaleDateString();return B.useEffect(()=>{const i=s=>{s.key==="Control"&&t(!0)},r=s=>{s.key==="Control"&&t(!1)};return window.addEventListener("keydown",i),window.addEventListener("keyup",r),()=>{window.removeEventListener("keydown",i),window.removeEventListener("keyup",r)}},[]),e?kt.createElement("div",{className:"version-control",style:{color:gi,fontFamily:"sans-serif",padding:"5px",zIndex:1e3}},"Bloom Player v",n," (built ",a,")"):null},nD=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,sy=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(nD);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},ly=e=>e==="*"||e==="x"||e==="X",uy=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},aD=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],iD=(e,t)=>{if(ly(e)||ly(t))return 0;const[n,a]=aD(uy(e),uy(t));return n>a?1:n<a?-1:0},cy=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const a=iD(e[n]||"0",t[n]||"0");if(a!==0)return a}return 0},dy=(e,t)=>{const n=sy(e),a=sy(t),i=n.pop(),r=a.pop(),s=cy(n,a);return s!==0?s:i&&r?cy(i.split("."),r.split(".")):i||r?i?-1:1:0};class Se extends B.Component{constructor(t,n){super(t,n),this.activityManager=new tz,this.initialPages=["loading..."],this.initialStyleRules="",this.originalPageClass="Device16x9Portrait",this.bookInfo=new uh,this.bookInteraction=new MB,this.mustUseOriginalPageSize=!1,this.indicesOfPagesWhereWeShouldPreserveDOMState={},this.startingUpSwiper=!0,this.state={pages:this.initialPages,pageIdToIndexMap:{},styleRules:this.initialStyleRules,importedBodyAttributes:{},currentSwiperIndex:0,isLoading:!0,loadFailed:!1,loadErrorHtml:"",ignorePhonyClick:!1,isFinishUpForNewBookComplete:!1,inPauseForced:!1,bookUrl:""},this.isPagesLocalized=!1,this.currentPageHidesNavigationButtons=!1,this.handleDocumentLevelKeyDown=i=>{i.key==="Home"&&(this.goToFirstPage(),i.preventDefault()),i.key==="End"&&(this.goToLastPage(),i.preventDefault())},this.distributionSource="",this.finishUpCalled=!1,this.hasImageDescriptions=!1,this.handlePageVideoComplete=i=>{i.page===Se.currentPage&&this.playAudioAndAnimation(i.page)},this.handlePlayFailed=()=>{this.setState({inPauseForced:!0}),this.props.setForcedPausedCallback&&this.props.setForcedPausedCallback(!0)},this.handlePlayCompleted=()=>{Mn(Ge.MediaFinished),this.props.imageDescriptionCallback(!1)},this.handleToggleImageDescription=i=>{this.props.imageDescriptionCallback(i)},this.handlePageNarrationComplete=i=>{if(i&&(Mn(Ge.MediaFinished),this.shouldAutoPlay())){const r=this.props.autoplayCount??0,s=this.state.startPageIndex??0,u=this.swiperInstance.slides.length-1;let c=this.props.autoplayCount?Math.min(s+r-1,u):u;this.swiperInstance.activeIndex>=c?(this.music.pause(),this.props.shouldReportSoundLog&&GC(),_C(),BT({})):this.swiperInstance.slideNext()}},this.skipAutoPlay=!1,this.sentBloomNotification=!1;const a=t.url.startsWith("http")?new URL(t.url):new URL(t.url,window.location.origin);a.hash?(this.state.startPageId=a.hash.substring(1),a.hash=""):this.state.startPageIndex=t.startPageIndex,this.state.bookUrl=a.href,Se.currentPagePlayer=this,this.legacyQuestionHandler=new nz(t.locationOfDistFolder)}componentDidMount(){He.setUp(),window.addEventListener("focus",()=>this.handleWindowFocus()),window.addEventListener("blur",()=>this.handleWindowBlur()),document.addEventListener("keydown",t=>this.handleDocumentLevelKeyDown(t)),document.addEventListener("pointerdown",t=>{(t.target.closest("[href], [data-href]")||t.target.closest(".bloom-videoContainer")&&!t.target.closest("[data-draggable-id]"))&&(t.stopPropagation(),t.preventDefault())},{capture:!0}),document.addEventListener("dragstart",t=>{this.activityManager.getActivityAbsorbsDragging()||t.preventDefault()},{capture:!0}),this.componentDidUpdate(this.props,this.state)}CanGoBack(){return zB()}HandleBackButtonClickedIfHavePlayerHistory(){const t=BB(this.bookInfo.bookInstanceId);return t?(this.navigate(t.bookUrl,t.pageId),!0):!1}navigate(t,n){if(t){const a=new URL(t,this.state.bookUrl);this.setState({bookUrl:a.href,startPageId:n,startPageIndex:void 0})}else if(n!==void 0){const a=this.state.pageIdToIndexMap[n];this.swiperInstance.slideTo(a)}}handleWindowFocus(){const t=localStorage.getItem(Hl),n=localStorage.getItem(tm);t&&n==this.sourceUrl&&(this.bookInteraction.beginReadTime=Date.now()-parseInt(t,10))}handleWindowBlur(){const t=Date.now()-this.bookInteraction.beginReadTime;localStorage.setItem(Hl,t.toString()),localStorage.setItem(tm,this.sourceUrl)}getRequiredVersionMessage(t){var c;const n=(c=t.querySelector('meta[name="FeatureRequirement"]'))==null?void 0:c.getAttribute("content");if(!n)return"";const a=/BloomPlayerMinVersion":"(.*?)".*?"FeatureId":"(.*?)"/g;let i,r=null,s=null;for(;(i=a.exec(n))!==null;){const h=i[1];(!r||dy(h,r)>0)&&(r=h,s=i[2])}if(!r||!s)return"";const u=Yk();if(dy(u,r)>=0)return"";if(window.location.hostname.toLowerCase().indexOf("bloomlibrary.org")>=0)return He.getTranslation("Version.Problem.Web",this.props.preferredUiLanguages,"This book uses the feature {feature}. Unfortunately, {hostname} is not ready to display this book yet. Please check back again later or write to issues@bloomlibrary.org if you think this is unexpected.").replace("{feature}",s).replace("{hostname}",window.location.hostname);{let h=ga("host","");switch(h){case"bloomreader":h="Bloom Reader";break;case"bloompubviewer":h="BloomPUB Viewer";break;case"readerapp":h="";break}return h?He.getTranslation("Version.Problem.Host",this.props.preferredUiLanguages,"This book uses the feature {feature} and requires a newer version of {host} to read it. Please upgrade to the latest version.").replace("{feature}",s).replace("{host}",h):He.getTranslation("Version.Problem.NoHost",this.props.preferredUiLanguages,"This book uses the feature {feature} and requires a newer version of the program you are using to read it. Please upgrade to the latest version.").replace("{feature}",s)}}componentDidUpdate(t,n){var a;try{if(!this.props.url||this.state.loadFailed)return;this.initializeMedia();const i=this.preprocessUrl();if(i&&i!=="/working"&&i!==this.sourceUrl){this.finishUpCalled=!1,this.setState({isLoading:!0,loadFailed:!1}),this.metaDataObject=void 0,this.htmlElement=void 0,this.sourceUrl=i;const r=this.sourceUrl.lastIndexOf("/"),s=this.sourceUrl.lastIndexOf("%2f");let u;r>s?u=this.sourceUrl.substring(r+1,this.sourceUrl.length):u=this.sourceUrl.substring(s+3,this.sourceUrl.length);const c=u.endsWith(".htm"),h=c?this.sourceUrl:this.sourceUrl+"/"+u+".htm";this.urlPrefix=c?this.sourceUrl.substring(0,Math.max(r,s)):this.sourceUrl,this.music.urlPrefix=this.urlPrefix,dC(this.music.urlPrefix);const m=Ja.get(this.fullUrl(".distribution")).then(P=>P,P=>({data:""})),x=Ja.get(h),w=Ja.get(this.fullUrl("meta.json"));Promise.all([x,w,m]).then(P=>{const[E,z,A]=P;this.metaDataObject=z==null?void 0:z.data,this.distributionSource=A.data;const S=new DOMParser().parseFromString(E==null?void 0:E.data,"text/html"),N=S.documentElement,L=this.getRequiredVersionMessage(S);this.setState({requiredVersion:L});const j=N.getElementsByTagName("body")[0];this.mustUseOriginalPageSize=this.computeMustUseOriginalPageSize(j),this.bookInfo.setSomeBookInfoFromBody(j),this.localizeOnce(),this.props.shouldReportSoundLog&&(this.videoList=this.getVideoList(S)),this.animation.PlayAnimations=this.bookInfo.playAnimations,this.collectBodyAttributes(j),this.makeNonEditable(j),this.htmlElement=N;const f=N.getElementsByClassName("bloom-page")[0];this.originalPageClass="Device16x9Portrait",f&&(this.originalPageClass=Se.getPageSizeClass(f)),this.legacyQuestionHandler.generateQuizPagesFromLegacyJSON(this.urlPrefix,j,this.originalPageClass,()=>{this.finishUp()})}).catch(P=>this.HandleLoadingError(P))}else if(t.landscape!==this.props.landscape||t.useOriginalPageSize!==this.props.useOriginalPageSize||t.autoplay!==this.props.autoplay){const r=document.getElementsByClassName("bloom-page");for(let s=0;s<r.length;s++){const u=r[s];this.setPageSizeClass(u)}}!this.state.isLoading&&(n.isLoading||t.activeLanguageCode!==this.props.activeLanguageCode)&&(this.updateDivVisibilityByLangCode(n.isLoading),this.updateOverlayPositionsByLangCode(),this.finishUpCalled&&this.finishUp(!1)),this.state.currentSwiperIndex!=n.currentSwiperIndex&&((a=this.rootDiv)==null||a.querySelectorAll(_p).forEach(r=>{const s=zs(r).getNiceScroll();s&&s.length>0&&s.remove()})),!this.state.isLoading&&(n.isLoading||t.shouldReadImageDescriptions!==this.props.shouldReadImageDescriptions)&&this.finishUpCalled&&(this.setIndex(this.state.currentSwiperIndex),this.showingPage(this.state.currentSwiperIndex)),this.state.isFinishUpForNewBookComplete&&t.landscape!==this.props.landscape&&(this.setIndex(this.state.currentSwiperIndex),this.showingPage(this.state.currentSwiperIndex)),t.paused!==this.props.paused&&this.handlePausePlay(),this.swiperInstance&&this.swiperInstance.lazy.load()}catch(i){this.setState({isLoading:!1,loadFailed:!0,loadErrorHtml:i.message})}}collectBodyAttributes(t){for(var n={},a=0;a<t.attributes.length;a++)n[t.attributes.item(a).nodeName]=t.attributes.item(a).nodeValue;this.setState({importedBodyAttributes:n})}HandleLoadingError(t){let a=`<p>There was a problem displaying this book: ${t.message}<p>`;(t.config&&t.config.url&&t.config.url.startsWith("file://")||t.message.indexOf("404")>=0)&&(a="<p>This book (or some part of it) was not found.<p>",t.config&&t.config.url&&(a+=`<p class='errorDetails'>${rD(t.config.url)}</p>`)),this.setState({isLoading:!1,loadFailed:!0,loadErrorHtml:a})}async finishUp(t=!0){if(this.finishUpCalled=!0,!this.htmlElement)return;Uo.setAllVideoPostersTo1x1TransparentPNG(this.htmlElement);const n=this.htmlElement.getElementsByClassName("bloom-page"),a=[];t&&(this.bookInfo.totalNumberedPages=0,this.bookInfo.questionCount=0,this.activityManager.collectActivityContextForBook(n),this.bookInteraction.clearPagesShown(),this.music.processAllMusicForBook(n));const i=this.bookInfo.getPreferredTranslationLanguages(),r=i[0]===this.props.activeLanguageCode||!this.props.activeLanguageCode,s={},u=h=>h.classList.contains("bloom-interactive-page")||h.classList.contains("simple-comprehension-quiz")||h.getAttribute("data-activity")=="iframe"||h.getElementsByClassName("questions").length>0;s.length=0,s.cover=0;for(let h=0;h<n.length;h++){const m=n[h],x=m.getAttribute("id");x&&(s[x]=h);const w=this.setPageSizeClass(m);m.setAttribute("data-index",h.toString(10)),h===0&&this.props.reportBookProperties&&this.props.reportBookProperties({landscape:w,canRotate:this.bookInfo.canRotate,preferredLanguages:i,pageNumbers:Array.from(n).map(E=>E.getAttribute("data-page-number")??""),isRtl:this.metaDataObject.isRtl,internalUrl:this.state.bookUrl}),t&&(this.fixRelativeUrls(m),m.classList.contains("numberedPage")&&(this.indexOflastNumberedPage=h,this.bookInfo.totalNumberedPages++),(m.getAttribute("data-analyticscategories")||m.getAttribute("data-analyticsCategories"))==="comprehension"&&this.bookInfo.questionCount++),this.showOrHideL1OnlyText(m,r);const P=u(m);P&&this.activityManager.initializePageHtml(this.urlPrefix,m,a.length),(!this.props.skipActivities||!P)&&a.push(m.outerHTML)}if(t){const h=this.htmlElement.getElementsByTagName("head")[0];this.bookInfo.setSomeBookInfoFromHead(h);const m=this.htmlElement.getElementsByTagName("body")[0];if(this.metaDataObject&&(this.bookInfo.setSomeBookInfoFromMetadata(this.metaDataObject,m),this.reportBookOpened(m)),this.props.controlsCallback){const x=hs.createLangDataArrayFromDomAndMetadata(m,this.metaDataObject);this.hasImageDescriptions=oD(m),this.props.controlsCallback(x,this.hasImageDescriptions,w=>{var P;(P=this.swiperInstance)==null||P.slideTo(w)})}}if(t){var c;try{c=await AB(this.htmlElement,this.urlPrefix,this.bookInfo,()=>this.legacyQuestionHandler.getPromiseForAnyQuizCss())}catch(h){this.HandleLoadingError(h),c=""}if(this.startingUpSwiper=!0,this.state.startPageId){if(s[this.state.startPageId]===void 0)throw new Error(`Page ID ${this.state.startPageId} not found in the current pageIdToIndexMap`);this.setState({startPageIndex:s[this.state.startPageId]})}this.setState({pages:a,pageIdToIndexMap:s,styleRules:c,isLoading:!1,currentSwiperIndex:this.state.startPageIndex??0})}else this.setState({pages:a,isLoading:!1});this.props.pageStylesAreNowInstalled(),t?window.setTimeout(()=>{this.setState({isFinishUpForNewBookComplete:!0});const h=this.startingUpSwiper;this.startingUpSwiper=!1;var m=this.state.startPageIndex??0;this.setIndex(m),this.showingPage(m),h&&this.addScrollbarsToPageWhenReady(this.swiperInstance.activeIndex);const x=document.getElementsByClassName("swiper-button-next")[0],w=document.getElementsByClassName("swiper-button-prev")[0];w==null||w.setAttribute("tabindex","4"),x==null||x.setAttribute("tabindex","5"),this.shouldFocusNextButtonForNewBook()&&(x==null||x.focus())},500):Se.currentPage&&window.setTimeout(()=>{this.setIndex(Se.currentPageIndex),this.showingPage(Se.currentPageIndex)},200)}shouldFocusNextButtonForNewBook(){return window.self===window.top||document.referrer.startsWith("http://localhost:")?!0:document.referrer.includes("bloomlibrary.org/player/")}showOrHideL1OnlyText(t,n){t.querySelectorAll(".coverBottomBookTopic, .coverBottomLangName").forEach(a=>{n||a.classList.contains("bloom-content1")?a.classList.remove("do-not-display"):a.classList.add("do-not-display")})}localizeOnce(){!this.isPagesLocalized&&this.state.pages!==this.initialPages&&this.state.styleRules!==this.initialStyleRules&&(He.localizePages(document.body,this.bookInfo.getPreferredTranslationLanguages()),this.isPagesLocalized=!0)}initializeMedia(){this.video||(this.video=new Uo,this.video.PageVideoComplete=new Ur,this.video.PageVideoComplete.subscribe(this.handlePageVideoComplete)),this.animation||(this.animation=new jl),ta.subscribe(this.handlePageNarrationComplete),Pr.subscribe(this.handlePlayFailed),Ya.subscribe(this.handlePlayCompleted),lC(this.storeAudioAnalytics.bind(this)),Ma.subscribe(this.handleToggleImageDescription.bind(this)),uC(()=>{var t;return(t=this.swiperInstance)==null?void 0:t.animating}),cC(t=>Gy(t,1)),this.music||(this.music=new UC,this.music.PlayFailed=new Ur,this.music.PlayFailed.subscribe(()=>{this.setState({inPauseForced:!0}),this.props.setForcedPausedCallback&&this.props.setForcedPausedCallback(!0)}))}preprocessUrl(){let t=this.state.bookUrl;if(t===void 0||t.trim()==="")throw new Error("The url parameter was empty. It should point to the url of a book.");return t.endsWith("/")&&(t=t.substring(0,t.length-1)),t.endsWith("%2f")&&(t=t.substring(0,t.length-3)),t}handlePausePlay(){this.props.paused?this.pauseAllMultimedia():Se.currentPage!==Dy()||yn===Ge.MediaFinished?this.resetForNewPageAndPlay(Se.currentPage):yn===Ge.VideoPaused?this.video.play():(RC(),this.animation.resumeAnimation(),this.music.play())}getAllBloomCanvasElementsOnPage(){var a,i;const t=(a=this.htmlElement)==null?void 0:a.ownerDocument.getElementsByClassName("bloom-canvas");if(t&&t.length>0)return Array.from(t);const n=(i=this.htmlElement)==null?void 0:i.ownerDocument.getElementsByClassName("bloom-imageContainer");return n?Array.from(n).filter(r=>r.parentElement.closest(".bloom-imageContainer")===null):[]}computeMustUseOriginalPageSize(t){return this.props.useOriginalPageSize||t.querySelector(".bloom-canvas-element")?!0:!!t.querySelector(".bloom-textOverPicture")}updateOverlayPositionsByLangCode(){if(!(!this.props.activeLanguageCode||!this.htmlElement))try{const t=this.props.activeLanguageCode;this.getAllBloomCanvasElementsOnPage().forEach(n=>{Array.from(n.querySelectorAll(Ls)).forEach(i=>{const r=Array.from(i.getElementsByClassName("bloom-editable")).find(s=>s.getAttribute("lang")===t);if(r){const s=r.getAttribute("data-bubble-alternate");if(s){const u=JSON.parse(s.replace(/`/g,'"'));i.setAttribute("style",u.style)}}});const a=Array.from(n.getElementsByClassName("comical-alternate")).find(i=>i.getAttribute("data-lang")===t);if(a){const i=n.getElementsByClassName("comical-generated")[0];i&&(i.classList.remove("comical-generated"),i.classList.add("comical-alternate"),i.style.display="none"),a.classList.remove("comical-alternate"),a.classList.add("comical-generated"),a.style.removeProperty("display")}})}catch(t){console.error(t)}}updateDivVisibilityByLangCode(t){if(!this.props.activeLanguageCode||!this.htmlElement)return;const a=this.bookInfo.getPreferredTranslationLanguages()[0]===this.props.activeLanguageCode||!this.props.activeLanguageCode,i=this.props.activeLanguageCode,r=this.htmlElement.ownerDocument.evaluate(".//div[contains(@class, 'bloom-translationGroup')]",this.htmlElement,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),s="bloom-visibility-code-on";for(let u=0;u<r.snapshotLength;u++){const c=r.snapshotItem(u),h=c.getAttribute("data-default-languages"),m=h?h.split(/,| /):[],x=m==null||m.length===0||!m[0]||m.includes("V")||m.includes("L1")||Se.areStringsEqualInvariantCultureIgnoreCase(m[0],"auto"),w=c.childNodes;for(let P=0;P<w.length;P++){const E=w.item(P);!E||!E.classList||!E.classList.contains("bloom-editable")||(t&&E.setAttribute("data-original-class",E.getAttribute("class")||""),a?E.setAttribute("class",E.getAttribute("data-original-class")||""):x&&(E.getAttribute("lang")===i?(E.classList.add(s),Array.from(E.classList).forEach(A=>{A.startsWith("bloom-content")&&E.classList.remove(A)}),E.classList.add("bloom-content1"),E.classList.add("bloom-contentFirst")):E.classList.remove(s)))}}}static areStringsEqualInvariantCultureIgnoreCase(t,n){return t.localeCompare(n,"en-US",{sensitivity:"accent"})===0}static isDivInL2(t){return t.classList.contains("bloom-contentNational1")}static isDivInL3(t){return t.classList.contains("bloom-contentNational2")}componentWillUnmount(){this.pauseAllMultimedia(),document.removeEventListener("keydown",t=>this.handleDocumentLevelKeyDown(t)),this.unsubscribeAllEvents()}unsubscribeAllEvents(){this.video.PageVideoComplete.unsubscribe(this.handlePageVideoComplete),ta.unsubscribe(this.handlePageNarrationComplete),Pr.unsubscribe(this.handlePlayFailed),Ya.unsubscribe(this.handlePlayCompleted),Ma.unsubscribe(this.handleToggleImageDescription)}pauseAllMultimedia(){yn===Ge.VideoPlaying?this.video.pause():yn===Ge.AudioPlaying&&(OC(),this.animation.PauseAnimation()),this.music.pause()}reportBookOpened(t){const n=this.bookInfo.getAmbientAnalyticsProps();this.distributionSource&&(n.distributionSource=this.distributionSource),LT(n),Xy("BookOrShelf opened",{})}sendUpdateOfBookProgressReportToExternalContext(){const t=this.bookInteraction.getProgressReportPropertiesForAnalytics();DT("Pages Read",t)}makeNonEditable(t){const n=t.ownerDocument.evaluate(".//*[@contenteditable]",t,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let a=0;a<n.snapshotLength;a++)n.snapshotItem(a).removeAttribute("contenteditable")}setPageSizeClass(t){return Se.setPageSizeClass(t,this.bookInfo.canRotate,this.props.landscape,this.mustUseOriginalPageSize,this.originalPageClass)}static getPageSizeClass(t){const a=(t.getAttribute("class")||"").match(/\b\S*?(Portrait|Landscape)\b/);return a&&a.length?a[0]:""}static setPageSizeClass(t,n,a,i,r){let s=!1;const u=this.getPageSizeClass(t);if(u){s=n?a:u.endsWith("Landscape");let c="";i?c=s?r.replace("Portrait","Landscape"):r.replace("Landscape","Portrait"):c=s?"Device16x9Landscape":"Device16x9Portrait",u!==c&&(t.classList.remove(u),t.classList.add(c))}return s}goToFirstPage(){this.swiperInstance.slideTo(0)}goToLastPage(){this.swiperInstance.slideTo(99999)}fixRelativeUrls(t){const n=t.ownerDocument.evaluate(".//*[@src]",t,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let r=0;r<n.snapshotLength;r++){const s=n.snapshotItem(r);if(!s)continue;const u=s.getAttribute("src"),c=this.fullUrl(u);s.setAttribute("src",c)}const a=t.ownerDocument.evaluate(".//*[@style]",t,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),i=new RegExp(/background-image:url\(['"](.*)['"]\)/);for(let r=0;r<a.snapshotLength;r++){const s=a.snapshotItem(r);if(!s)continue;const u=s.getAttribute("style")||"",c=i.exec(u);if(!c)continue;const h=this.fullUrl(c[1]),m=u.replace(i,"");s.setAttribute("style",m),s.setAttribute("data-background",h),s.classList.add("swiper-lazy")}}fullUrl(t){return this.urlPrefix+"/"+t}getRootDiv(){return this.rootDiv}slideNext(){this.swiperInstance&&this.swiperInstance.slideNext()}slidePrevious(){this.swiperInstance&&this.swiperInstance.slidePrev()}getPlayerOptionsForPage(t){if(!t)return;let n=t.getAttribute("data-player-options");if(n)try{return n=n.replace(/'/g,'"'),JSON.parse(n)}catch(a){console.log("getPlayerOptionsForPage failed to parse json: "+n+" with error "+a.message);return}}render(){var i;const t=this.activityManager.getActivityAbsorbsDragging();if(this.state.isLoading)return B.createElement(Cz,{className:"loadingSpinner",color:"secondary"});if(this.state.loadFailed)return B.createElement(B.Fragment,null,B.createElement(fk,{className:"loadFailedIcon",color:"secondary"}),B.createElement("div",{className:"loadErrorMessage",dangerouslySetInnerHTML:{__html:this.state.loadErrorHtml}}));if(this.state.requiredVersion)return B.createElement("div",{className:"requiredVersionMessage"},this.state.requiredVersion);vC(this.props.shouldReadImageDescriptions&&this.hasImageDescriptions);const n={getSwiper:r=>{var s,u;this.swiperInstance=r,(s=this.metaDataObject)!=null&&s.isRtl&&this.swiperInstance&&((u=this.swiperInstance.el)==null||u.setAttribute("dir","rtl"),this.swiperInstance.rtl=!0,this.swiperInstance.rtlTranslate=!0)},simulateTouch:!0,touchStartPreventDefault:!1,on:{slideChange:()=>{this.state.inPauseForced&&this.props.setForcedPausedCallback&&this.props.setForcedPausedCallback(!1),this.setState({inPauseForced:!1}),this.startingUpSwiper||this.showingPage(this.swiperInstance.activeIndex)},slideChangeTransitionStart:()=>{this.startingUpSwiper||this.setIndex(this.swiperInstance.activeIndex)},slideChangeTransitionEnd:()=>{this.addScrollbarsToPageWhenReady(this.swiperInstance.activeIndex)}},keyboard:{enabled:!0,onlyInViewport:!1},preloadImages:!1,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0,loadPrevNextAmount:2},shouldSwiperUpdate:!0};this.startingUpSwiper&&(n.activeSlideKey=(i=this.state.startPageIndex)==null?void 0:i.toString());let a="bloomPlayer";return this.currentPageHidesNavigationButtons?a+=" hideNextPrevButtons extraScalingForChrome85Bug":(this.props.outsideButtonPageClass&&(a+=" "+this.props.outsideButtonPageClass),t&&(a+=" showNavigationButtonsEvenOnTouchDevices")),B.createElement("div",{"aria-label":"Player Content",className:a+(this.props.extraClassNames?" "+this.props.extraClassNames:""),ref:r=>this.rootDiv=r},B.createElement(rC,{key:this.shouldAutoPlay()?"fade":"slide",...n,effect:this.shouldAutoPlay()?"fade":"slide"},this.state.pages.map((r,s)=>{const c=Math.abs(s-this.state.currentSwiperIndex)<2||this.indicesOfPagesWhereWeShouldPreserveDOMState[s];return B.createElement("div",{key:s,className:"page-preview-slide",onClick:h=>this.handlePageClick(h)},c?B.createElement(B.Fragment,null,B.createElement("style",{scoped:!0},this.state.styleRules),B.createElement("div",{...this.state.importedBodyAttributes,className:`bloomPlayer-page ${this.bookInfo.hasAppearanceSystem?"appearance-system":""} ${this.state.importedBodyAttributes.class??""}`,dangerouslySetInnerHTML:{__html:r}})):"")})),B.createElement("div",{className:"swiper-button-prev "+(this.metaDataObject.isRtl?"swiper-button-right":"swiper-button-left")+(this.props.hideSwiperButtons||this.state.currentSwiperIndex===0?" swiper-button-disabled":""),onClick:()=>this.slidePrevious(),onTouchStart:r=>{this.setState({ignorePhonyClick:!0})}},B.createElement(Ta,{className:"nav-button",disableRipple:!0},this.metaDataObject.isRtl?B.createElement(ih,{titleAccess:He.getTranslation("Button.Prev",this.props.preferredUiLanguages,"Previous Page")}):B.createElement(ah,{titleAccess:He.getTranslation("Button.Prev",this.props.preferredUiLanguages,"Previous Page")}))),B.createElement("div",{className:"swiper-button-next "+(this.metaDataObject.isRtl?"swiper-button-left":"swiper-button-right")+(this.props.hideSwiperButtons||this.state.currentSwiperIndex>=this.state.pages.length-1?" swiper-button-disabled":""),onClick:()=>this.slideNext(),onTouchStart:r=>{this.setState({ignorePhonyClick:!0})}},B.createElement(Ta,{className:"nav-button",disableRipple:!0},this.metaDataObject.isRtl?B.createElement(ah,{titleAccess:He.getTranslation("Button.Next",this.props.preferredUiLanguages,"Next Page")}):B.createElement(ih,{titleAccess:He.getTranslation("Button.Next",this.props.preferredUiLanguages,"Next Page")}))))}shouldAutoPlay(){var t=this.bookInfo.autoAdvance&&this.props.landscape;return this.props.autoplay==="yes"?t=!0:this.props.autoplay==="no"&&(t=!1),t&&!this.skipAutoPlay}setIndex(t){if(this.state.isLoading||this.startingUpSwiper)return;this.setState({currentSwiperIndex:t});const n=this.getPageAtSwiperIndex(t);n&&(this.setPageSizeClass(n),this.animation.HandlePageBeforeVisible(n),this.video.hidingPage(),this.video.HandlePageBeforeVisible(n),$C(),this.music.hidingPage(),yn===Ge.AudioPaused||yn===Ge.VideoPaused?Mn(Ge.NewPageMediaPaused):(this.skipAutoPlay=!0,AC(),this.skipAutoPlay=!1,Mn(Ge.NewPage)))}getPageAtSwiperIndex(t){if(this.swiperInstance==null)return null;const n=this.swiperInstance.slides[t];return n?n.getElementsByClassName("bloom-page")[0]:null}getPageIdFromIndex(t){const n=this.getPageAtSwiperIndex(t);if(!n)throw new Error("No bloomPage at index "+t);return n.getAttribute("id")}static getCurrentPage(){return Se.currentPage}isXmatterPage(){const t=Se.currentPage;if(!t)return!0;const n=t.getAttribute("class");return!n||n.indexOf("bloom-page")<0||n.indexOf("bloom-backMatter")>=0||n.indexOf("bloom-frontMatter")>=0?!0:t.hasAttribute("data-xmatter-page")}showingPage(t){if(this.state.isLoading||this.startingUpSwiper)return;this.props.pageChanged&&this.props.pageChanged(t);const n=this.getPageAtSwiperIndex(t);if(!n){window.setTimeout(()=>this.showingPage(t),50);return}const a=this.getPlayerOptionsForPage(n);this.currentPageHidesNavigationButtons=!!(a&&a.hideNavigation),this.props.hidingNavigationButtonsCallback&&this.props.hidingNavigationButtonsCallback(this.currentPageHidesNavigationButtons),this.activityManager.showingPage(t,n)&&(this.indicesOfPagesWhereWeShouldPreserveDOMState[t]=!0),window.setTimeout(()=>{Se.currentPage=n,Se.currentPageIndex=t,Se.currentPageHasVideo=Uo.pageHasVideo(n),this.setPageSizeClass(n),this.resetForNewPageAndPlay(n),this.props.paused&&this.animation.shouldAnimate(n)&&(this.animation.HandlePageBeforeVisible(n),this.animation.HandlePageVisible(n,this.props.paused),this.animation.HandlePageDurationAvailable(n,Jg(n),this.props.paused)),this.isXmatterPage()||(this.bookInteraction.pageShown(t),t===this.indexOflastNumberedPage&&(this.bookInteraction.lastNumberedPageWasRead=!0)),this.props.reportPageProperties&&this.props.reportPageProperties({hasAudio:jC(n),hasMusic:this.music.pageHasMusic(n),hasVideo:Se.currentPageHasVideo}),this.bookInteraction.reportedAudioOnCurrentPage=!1,this.bookInteraction.reportedVideoOnCurrentPage=!1,this.sendUpdateOfBookProgressReportToExternalContext(),this.swiperInstance.params.noSwiping=this.activityManager.getActivityAbsorbsDragging(),this.swiperInstance.params.touchRatio=this.activityManager.getActivityAbsorbsDragging()?0:1,this.activityManager.getActivityAbsorbsTyping()?this.swiperInstance.keyboard.disable():this.swiperInstance.keyboard.enable(),Array.from(n.querySelectorAll("[data-sound]")).forEach(r=>{r.addEventListener("click",Hp)})},0)}addScrollbarsToPageWhenReady(t){if(this.state.isLoading||this.startingUpSwiper)return;const n=this.getPageAtSwiperIndex(t);if(!n){window.setTimeout(()=>this.addScrollbarsToPageWhenReady(t),50);return}RL(n,Se.handlePointerMoveEvent)}static handlePointerMoveEvent(t){var n;t.pointerType==="mouse"&&((n=t.target)!=null&&n.closest(".nicescroll-cursors"))&&t.stopPropagation()}storeAudioAnalytics(t){t<.001||Number.isNaN(t)||(this.bookInteraction.totalAudioDuration+=t,!this.isXmatterPage()&&(this.bookInteraction.reportedAudioOnCurrentPage||(this.bookInteraction.reportedAudioOnCurrentPage=!0,this.bookInteraction.audioPageShown(Se.currentPageIndex)),this.sendUpdateOfBookProgressReportToExternalContext()))}static storeVideoAnalytics(t){if(t<.001)return;const n=Se.currentPagePlayer;n.bookInteraction.totalVideoDuration+=t,!n.bookInteraction.reportedVideoOnCurrentPage&&!n.isXmatterPage()&&(n.bookInteraction.reportedVideoOnCurrentPage=!0,n.bookInteraction.videoPageShown(Se.currentPageIndex)),n.sendUpdateOfBookProgressReportToExternalContext()}resetForNewPageAndPlay(t){if(this.props.paused){this.video.HandlePageVisible(t,()=>this.props.paused);return}By(t),Se.currentPageHasVideo?(Mn(Ge.VideoPlaying),this.video.HandlePageVisible(t,()=>this.props.paused),this.music.pause()):this.playAudioAndAnimation(t)}playAudioAndAnimation(t){if(this.activityManager.getActivityManagesSound()){this.activityManager.doInitialSoundAndAnimation();return}if(Mn(Ge.AudioPlaying),!t)return;const n=Jg(t);this.animation.HandlePageDurationAvailable(t,n,this.props.paused);const a=()=>{jl.pageHasAnimation(t)&&this.animation.HandlePageBeforeVisible(t),this.animation.HandlePageVisible(t,this.props.paused),jy(t,this.animation.animatableCanvas),this.music.HandlePageVisible(t)};if(!this.sentBloomNotification&&(this.sentBloomNotification=!0,this.props.shouldReportSoundLog)){Uy("/publish/av/startRecording",this.videoList).then(a);return}a()}getVideoList(t){let n="";for(const r of Array.from(t.getElementsByTagName("video"))){var a=r,i=a.getElementsByTagName("source")[0].getAttribute("src");n&&(n+="|"),n+=i}return n}handlePageClick(t){if(!this.state.ignorePhonyClick&&(!this.activityManager.getActivityAbsorbsClicking()||t.target.closest("[data-href]")&&t.target.closest(".bloom-canvas"))&&!t.target.closest(".bloom-videoContainer")){const n=DB(t.nativeEvent,this.bookInfo.bookInstanceId,()=>this.getPageIdFromIndex(this.state.currentSwiperIndex));n?(this.navigate(n.bookUrl,n.pageId),t.stopPropagation(),t.preventDefault()):this.props.onContentClick&&this.props.onContentClick(t)}this.setState({ignorePhonyClick:!1})}}function rD(e){return e.replace("%23","#").replace(/[\u00A0-\u9999<>\&]/gim,t=>"&#"+t.charCodeAt(0)+";")}function oD(e){return e.ownerDocument.evaluate("//div[contains(@class, 'bloom-imageDescription')]/div[contains(@class, 'bloom-editable') and contains(@class, 'bloom-visibility-code-on')]//*[contains(@class, 'audio-sentence') or contains(@class, 'bloom-highlightSegment')]",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0?!0:e.ownerDocument.evaluate("//div[contains(@class, 'bloom-imageDescription')]/div[contains(@class, 'bloom-editable') and contains(@class, 'bloom-visibility-code-on') and @data-audiorecordingmode='TextBox']/p[text()]",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0}var Vp={},sD=ba,lD=wa;Object.defineProperty(Vp,"__esModule",{value:!0});var Xk=Vp.default=void 0,uD=lD(Ln()),cD=sD(ka()),dD=(0,cD.default)(uD.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");Xk=Vp.default=dD;var Gp={},fD=ba,hD=wa;Object.defineProperty(Gp,"__esModule",{value:!0});var Zk=Gp.default=void 0,pD=hD(Ln()),gD=fD(ka()),mD=(0,gD.default)(pD.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");Zk=Gp.default=mD;var Up={},vD=ba,yD=wa;Object.defineProperty(Up,"__esModule",{value:!0});var Yp=Up.default=void 0,bD=yD(Ln()),wD=vD(ka()),kD=(0,wD.default)(bD.createElement("path",{d:"M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"PlayCircleOutline");Yp=Up.default=kD;var Xp={},xD=ba,SD=wa;Object.defineProperty(Xp,"__esModule",{value:!0});var Jk=Xp.default=void 0,CD=SD(Ln()),TD=xD(ka()),ED=(0,TD.default)(CD.createElement("path",{d:"M9 16h2V8H9v8zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm1-4h2V8h-2v8z"}),"PauseCircleOutline");Jk=Xp.default=ED;var Zp={},PD=ba,MD=wa;Object.defineProperty(Zp,"__esModule",{value:!0});var Qk=Zp.default=void 0,AD=MD(Ln()),ND=PD(ka()),LD=(0,ND.default)(AD.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language");Qk=Zp.default=LD;var Jp={},zD=ba,BD=wa;Object.defineProperty(Jp,"__esModule",{value:!0});var t0=Jp.default=void 0,DD=BD(Ln()),ID=zD(ka()),jD=(0,ID.default)(DD.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}),"Fullscreen");t0=Jp.default=jD;var Qp={},RD=ba,OD=wa;Object.defineProperty(Qp,"__esModule",{value:!0});var e0=Qp.default=void 0,KD=OD(Ln()),$D=RD(ka()),qD=(0,$D.default)(KD.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}),"FullscreenExit");e0=Qp.default=qD;function HD(e){return kt.createElement(nh,{...e,width:"21",height:"20",viewBox:"0 0 21 20"},kt.createElement("path",{d:"M20.6181 9.909C20.6181 9.909 17.3581 3.70568 10.2454 3.70568C10.1127 3.70568 9.9821 3.70851 9.8522 3.71275L9.23133 0.590958L8.27889 0.807585L8.87136 3.78574C2.72807 4.50344 0 9.86355 0 9.86355C0 9.86355 0.566707 11.0581 1.77366 12.4165L1.27674 9.91983C1.26639 9.90052 1.26089 9.89016 1.26089 9.89016C1.26089 9.89016 1.45882 9.53343 1.86833 9.01188L2.73952 13.3918C3.09729 13.7179 3.49205 14.0383 3.92423 14.3419L2.68074 8.09074C2.92754 7.84068 3.20826 7.58049 3.52199 7.32171L5.05787 15.0424C5.40441 15.2277 5.77033 15.3993 6.15474 15.5514L4.38901 6.67725C4.6772 6.48487 4.98565 6.29932 5.31568 6.12485L7.26481 15.9206C7.59924 16.0118 7.94578 16.0871 8.30509 16.146L7.56314 12.4167C7.89823 12.8518 8.32205 13.2046 8.80465 13.4464L9.36563 16.2656C9.59813 16.2802 9.83459 16.2891 10.0765 16.2891C10.1734 16.2891 10.2694 16.2873 10.3654 16.2844L9.86541 13.773C10.0112 13.7923 10.1591 13.8033 10.3099 13.8033C10.4957 13.8033 10.6783 13.7883 10.8559 13.7588L11.9801 19.4091L12.9321 19.1924L12.3108 16.0683C17.848 14.9378 20.6181 9.909 20.6181 9.909ZM6.88084 8.9881L6.22651 5.69889C6.53386 5.57339 6.8575 5.45942 7.19546 5.35982L7.6228 7.50844C7.28066 7.93015 7.02351 8.43381 6.88084 8.9881ZM8.46692 6.74577L8.14503 5.12836C8.45547 5.06785 8.77691 5.01958 9.11002 4.9859L9.3773 6.32923C9.05322 6.42294 8.74741 6.56375 8.46692 6.74577ZM10.3467 6.19713L10.0944 4.93033C10.1472 4.92963 10.1998 4.92845 10.2533 4.92845C10.4858 4.92845 10.713 4.93599 10.9365 4.94941C13.2188 5.33628 14.964 7.44981 14.964 9.99965C14.964 12.1188 13.7579 13.9352 12.0406 14.7106L11.7914 13.4565C13.0153 12.8558 13.8654 11.5342 13.8654 9.99942C13.8652 7.91226 12.2936 6.21856 10.3467 6.19713ZM14.5336 14.0984C15.4349 13.0056 15.9823 11.5718 15.9823 9.99942C15.9823 8.35399 15.3821 6.8595 14.405 5.74928C17.7771 7.16772 19.3574 9.92642 19.3574 9.92642C19.3574 9.92642 17.7491 12.6074 14.5336 14.0984Z"}))}var tg={},FD=ba,WD=wa;Object.defineProperty(tg,"__esModule",{value:!0});var n0=tg.default=void 0,_D=WD(Ln()),VD=FD(ka()),GD=(0,VD.default)(_D.createElement("path",{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"}),"VolumeUp");n0=tg.default=GD;const UD=e=>{const[t,n]=B.useState((e.languages.filter(s=>s.IsSelected)[0]||e.languages[0]).Code),a=s=>{const u=s.target.value;n(u),e.onClose(u)},i=()=>{e.onClose("")},r=()=>{const s=e.languages.map(u=>kt.createElement("div",{className:"chooserItem",key:u.Code},kt.createElement(nB,{value:u.Code,control:kt.createElement(gB,null),label:u.Name,checked:u.Code===t}),kt.createElement("span",{className:"spacer"}),kt.createElement(n0,{className:"icon",visibility:u.HasAudio?"inherit":"hidden"})));return kt.createElement("div",{className:"radioGroupDiv"},s)};return kt.createElement(Hz,{className:"languageMenu",onClose:i,"aria-labelledby":"language-menu-title",open:!0,scroll:"paper"},kt.createElement(Uz,{id:"language-menu-title"},"Languages in this book:"),kt.createElement(Qz,{component:"fieldset"},kt.createElement(mB,{className:"radioGroup","aria-label":"languages",name:"languages",value:t,onChange:a},r())),kt.createElement(_z,null,kt.createElement(yz,{onClick:i,color:"secondary"},"Close")))};var _o=(e=>(e[e.showArrow=0]="showArrow",e[e.showEllipsis=1]="showEllipsis",e[e.showNothing=2]="showNothing",e))(_o||{});const YD=e=>{const[t,n]=B.useState(!1),a="button"+(e.bookLanguages.length<2?" disabled":""),i=E=>{n(!1),E!==""&&(e.onLanguageChanged(E),s({lang:E}))},r=()=>{try{document.fullscreenElement!=null||document.webkitFullscreenElement!=null?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullScreen&&document.webkitExitFullScreen():document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen()}catch(E){console.error("RequestFullScreen failed: ",E)}},s=E=>{if(!e.videoPreviewMode)return;const z={lang:e.activeLanguageCode,imageDescriptions:e.readImageDescriptions,...E};Uy("publish/av/videoSettings",encodeURIComponent(JSON.stringify(z)))},u=He.getTranslation("Audio.Pause",e.preferredLanguages,"Pause"),c=e.paused?kt.createElement(Yp,{titleAccess:e.playLabel}):kt.createElement(Jk,{titleAccess:u}),h=He.getTranslation("Button.ReadImageDescriptions",e.preferredLanguages,"Read Image Descriptions"),m=He.getTranslation("Button.IgnoreImageDescriptions",e.preferredLanguages,"Ignore Image Descriptions"),x=gs({palette:{primary:{main:tD},secondary:{main:Uk.palette.secondary.main}}}),w=kt.createElement(Vl,{theme:x},kt.createElement(HD,{"aria-label":e.readImageDescriptions?"Read image descriptions":"Ignore image descriptions",titleAccess:e.readImageDescriptions?m:h,opacity:e.readImageDescriptions?1:.38,color:e.nowReadingImageDescription?"primary":"secondary"})),P=e.extraButtons?e.extraButtons.map(E=>kt.createElement(Ta,{key:E.id,color:"secondary",title:E.description,onClick:()=>ja({messageType:E.id})},kt.createElement("img",{style:{maxHeight:"24px",maxWidth:"24px"},src:E.iconUrl}))):void 0;return kt.createElement(lz,{color:"primary",className:`control-bar ${e.visible?", visible":""}`,id:"control-bar",elevation:0,position:"relative"},kt.createElement(PB,null,!e.videoPreviewMode&&kt.createElement(Ta,{color:"secondary",onClick:()=>{e.backClicked&&e.backClicked()},"data-testid":"history-back-button",disabled:e.getBackButtonState()===2},e.getBackButtonState()===0?kt.createElement(Xk,{"aria-label":"Go Back",titleAccess:He.getTranslation("Button.Back",e.preferredLanguages,"Back")}):e.getBackButtonState()===1&&kt.createElement(Zk,{"aria-label":"More Menu",titleAccess:He.getTranslation("Button.More",e.preferredLanguages,"More")})),kt.createElement("div",{className:"filler"}),e.bookHasImageDescriptions&&kt.createElement(Ta,{onClick:()=>{e.onReadImageDescriptionToggled(),s({imageDescriptions:!e.readImageDescriptions})}},w),e.bookLanguages.length>1&&kt.createElement(Ta,{className:a,"aria-label":"Choose Language",color:"secondary",onClick:()=>{n(!0)}},kt.createElement(Qk,{titleAccess:He.getTranslation("Button.ChooseLanguage",e.preferredLanguages,"Choose Language")})),t&&kt.createElement(UD,{languages:e.bookLanguages,onClose:i}),!e.videoPreviewMode&&kt.createElement(Ta,{color:"secondary","aria-label":"PlayPause",onClick:()=>{e.pausedChanged&&e.pausedChanged(!e.paused)}},e.showPlayPause?c:null),P,document.fullscreenEnabled&&e.canShowFullScreen&&!e.videoPreviewMode&&kt.createElement(Ta,{color:"secondary",onClick:()=>r()},document.fullscreenElement==null?kt.createElement(t0,{"aria-label":"Full Screen",titleAccess:He.getTranslation("Button.FullScreen",e.preferredLanguages,"Full Screen")}):kt.createElement(e0,{"aria-label":"Exit Full Screen",titleAccess:He.getTranslation("Button.ExitFullScreen",e.preferredLanguages,"Exit Full Screen")}))))};function _d(e,t){return Math.round(e/t)*t}function XD(e){if(!(!e||e==="cover")){if(/^\d+$/.test(e))return e;try{return e.replace(new RegExp("(?![0-9])\\p{Nd}","gu"),t=>{const n=t.charCodeAt(0);return(n&15)-6*(new RegExp("\\p{Nd}","u").test(String.fromCodePoint(n|15))?1:0)})}catch{return}}}let Vd=!1,dh=e=>{};function ZD(e){dh&&dh(e)}let fy=0,hy=0;function py(){const e=/iPad|iPhone|iPod/.test(navigator.platform);let t,n,a;e&&(t=document.getElementsByClassName("bloomPlayer")[0],n=t.parentElement,a=t.nextSibling,n.removeChild(t));const i=document.documentElement.clientWidth,r=document.documentElement.clientHeight;return e&&n.insertBefore(t,a),{width:i,height:r}}const JD=e=>{const[t,n]=B.useState(e.autoplay),a=e.centerVertically===void 0?!0:e.centerVertically;KT(ht=>{ht.pause?(Vd=!L,j(!0)):ht.resume&&Vd?j(!1):ht.play?(j(!1),ht.autoplay&&n(ht.autoplay)):ht.reset?(h(e.startPage??0),Ue.current&&Ue.current(e.startPage??0)):ht.controlAction&&rt(ht.controlAction)});const[i,r]=B.useState(!1),[s,u]=B.useState(e.initiallyShowAppBar),[c,h]=B.useState(e.startPage??0),[m,x]=B.useState([""]),[w,P]=B.useState(!1),[E,z]=B.useState(!1),[A,k]=B.useState(""),[S,N]=B.useState("Device16x9Portrait");B.useEffect(()=>{u(e.initiallyShowAppBar)},[e.initiallyShowAppBar]),B.useEffect(()=>{s?jT():RT()},[s]),B.useEffect(()=>{j(e.paused)},[e.paused]);const[L,j]=B.useState(e.paused),[f,G]=B.useState(!1),V=He.getBloomUiLanguage(),F=V==="en"?[V]:[V,"en"],[pt,ft]=B.useState(F);B.useEffect(()=>{L||(Vd=!1)},[L]);const[ot,Z]=B.useState(!1),[$,o]=B.useState(!1),[tt,v]=B.useState(!1),[Q,st]=B.useState(!1),[ut,I]=B.useState(!1),[lt,gt]=B.useState(0),[Tt,Ct]=B.useState(9/16),jt=[],[Ft,Yt]=B.useState(jt),[Wt,Te]=B.useState(""),Ue=B.useRef(),[hn,ke]=B.useState(!0),[ve,Ye]=B.useState(!1),[Et,xe]=B.useState(!1),[qn,We]=B.useState(0),C=()=>{We(ht=>ht+1)},[D,W]=B.useState("");B.useEffect(()=>{mt()},[ut,qn,ot,e.useOriginalPageSize]),B.useEffect(()=>()=>{const ht=document.getElementById("scale-style-sheet");ht&&ht.parentNode.removeChild(ht)},[]);const X=B.useRef(),rt=ht=>{switch(ht){case"navigate-to-next-page":X&&X.current&&X.current.slideNext();break;case"navigate-to-previous-page":X&&X.current&&X.current.slidePrevious();break;default:console.log("'handleControlMessage' received an unknown message.");return}},mt=()=>{const ht=document.getElementsByClassName("swiper-slide-active")[0];let zt=null;if(ht&&(zt=ht.getElementsByClassName("bloom-page")[0]),!zt||!ut){window.setTimeout(C,100);return}let qe=document.getElementById("scale-style-sheet");qe||(qe=document.createElement("style"),qe.setAttribute("type","text/css"),qe.setAttribute("id","scale-style-sheet"),document.head.appendChild(qe));let pe=lt,Jt=Tt;const ge=Se.getPageSizeClass(zt);(e.url!==A||ge!==S)&&(k(e.url),N(ge),window.onresize=()=>{const{width:ca,height:qa}=py();(qa!==hy||ca!==fy)&&C()},pe=Math.max(zt.offsetHeight,zt.offsetWidth),Jt=Math.min(zt.offsetHeight,zt.offsetWidth)/pe,Ct(Jt),gt(pe));const{width:St,height:Bt}=py();fy=St,hy=Bt;const ee=St>Bt;if(ee!==ot){Z(ee);return}let ye=0,ce=0;const Ze=window.getComputedStyle(document.body);Ze&&Ze.marginTop&&(ye=parseInt(Ze.marginTop,10)),Ze&&Ze.marginBottom&&(ce=parseInt(Ze.marginBottom,10));const ue=zt.getAttribute("class").indexOf("Landscape")>=0,ri=ue?pe*Jt:pe,nn=ue?pe:pe*Jt;let ua=ye+ce;if(s){const ca=document.getElementById("control-bar");ca&&(ua+=ca.offsetHeight);const qa=document.getElementById("pageNumberControl");qa&&(ua+=qa.offsetHeight)}const Ka=Bt-ua,oi=_t({pageWidth:nn,pageHeight:ri,desiredPageHeight:Ka}),mr=re(nn);let Je=Math.min(oi,mr);const Ne=ri*Je;let $a=Ne*Jt/Je;ue&&($a=Ne/Jt/Je);const $i=St/Je-$a;let Tn="",xa=Math.max((St-nn*Je)/2,0);e.roundMarginToNearestK&&(xa=_d(xa,e.roundMarginToNearestK));const uo=xa,co=Je,sc=30;if($i>100*2)Tn="largeOutsideButtons";else if($i>sc*2)Tn="smallOutsideButtons";else if(St>407&&navigator.userAgent.includes("Chrome")&&!e.hideSwiperButtons){const qa=new RegExp(" Chrome/([0-9]+).").exec(navigator.userAgent),vr=parseInt(qa[1]);vr&&vr<90&&(Je*=.9,xa=Math.max((St-nn*Je)/2,0),Tn="smallOutsideButtons extraScalingForChrome85Bug")}Tn!==D&&W(Tn);let fo="";if(a){const ca=(Bt-Ne-ua)/2;ca>0&&(fo=`translate(0, ${ca.toFixed(0)}px) `)}qe.innerText=`.bloomPlayer {
|
|
8048
8048
|
width: ${$a}px;
|
|
8049
8049
|
transform-origin: left top 0;
|
|
8050
8050
|
transform: ${fo}scale(${Je});
|
|
@@ -8057,4 +8057,4 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
8057
8057
|
}
|
|
8058
8058
|
}
|
|
8059
8059
|
.bloomPlayer-page {height: ${Ne/Je}px; overflow: hidden;}`,$L(zt,Je),i||r(!0)},_t=ht=>{const{pageWidth:zt,pageHeight:qe,desiredPageHeight:pe}=ht,Jt=pe/qe;if(!e.roundPageWidthToNearestK)return Jt;const ge=zt*Jt;return _d(ge,e.roundPageWidthToNearestK)/zt},re=ht=>{let zt=document.body.offsetWidth;return e.roundPageWidthToNearestK&&(zt=_d(zt,e.roundPageWidthToNearestK)),zt/ht};B.useEffect(()=>{f&&!L&&G(!1);const ht=document.getElementById("root");ht&&(dh=zt=>{(zt.key===" "||zt.key==="ArrowRight"&&f)&&(zt.preventDefault(),zt.stopImmediatePropagation(),j(!L),G(!1))},ht.addEventListener("keydown",ZD,{capture:!0}))});const oe=ht=>{Wt!==ht&&(hs.selectNewLanguageCode(Ft,ht),Te(ht))},Ot=(ht,zt,qe)=>{Ue.current=qe;let pe;if(e.videoSettings){const Jt=JSON.parse(e.videoSettings);pe=Jt.lang,ke(Jt.imageDescriptions??!1)}e.initialLanguageCode&&(pe=e.initialLanguageCode),pe&&ht.map(Jt=>Jt.Code).includes(pe)?hs.selectNewLanguageCode(ht,pe):pe=ht.length>0?ht[0].Code:"",Te(pe),Yt(ht),Ye(zt),e.videoPreviewMode&&!s&&u(!0)},Ie=He.getTranslation("Audio.Play",pt,"Play"),_e=He.getTranslation("Audio.ReadAloud",pt,"Read Aloud"),Cn=$?_e:Ie,{allowToggleAppBar:pn,showBackButton:la,initiallyShowAppBar:Oa,locationOfDistFolder:Xe,hideFullScreenButton:Pt,...ln}=e,H=gs({palette:{primary:{main:"#000",contrastText:"#FFF"},secondary:{main:"#FFF"}}}),Lt=ht=>{xe(ht)},Xt=Re({root:{color:gi,height:2,padding:"15px 0"},active:{},valueLabel:{left:"calc(50% - 16px)",top:-31,"& *":{background:gi,color:"white"}},track:{height:4,opacity:.5},rail:{height:2,opacity:.5,backgroundColor:gi},mark:{backgroundColor:"transparent"},markActive:{backgroundColor:"transparent"},markLabel:{top:20,fontSize:"0.6rem",color:gi},markLabelActive:{top:20,fontSize:"0.6rem",color:gi}})(CB),Oe=gs({direction:"rtl"}),Ae=kt.createElement(Xt,{valueLabelDisplay:"on",min:1,max:m.length,step:1,disabled:E,defaultValue:c+1,onChangeCommitted:(ht,zt)=>{zt-1!=c&&(h(zt-1),Ue.current&&Ue.current(zt-1))},valueLabelFormat:(ht,zt)=>m[ht-1],marks:[{value:m.length,label:m.length.toString()}]});return kt.createElement("div",{className:"reactRoot"},f&&kt.createElement(kt.Fragment,null,kt.createElement("div",{className:"bigButtonOverlay"},kt.createElement(Vl,{theme:H},kt.createElement(Ta,{color:"secondary",onClick:()=>{G(!1),j(!1)}},kt.createElement(Yp,{titleAccess:Cn,preserveAspectRatio:"xMidYMid meet"})))),kt.createElement("div",{className:"behindBigButtonOverlay"})),kt.createElement(YD,{getBackButtonState:()=>{var ht;return(ht=X.current)!=null&&ht.CanGoBack()?_o.showArrow:la?window===window.top?_o.showArrow:_o.showEllipsis:_o.showNothing},visible:s,paused:L,pausedChanged:ht=>j(ht),playLabel:Cn,preferredLanguages:pt,backClicked:()=>{var ht;(ht=X.current)!=null&&ht.HandleBackButtonClickedIfHavePlayerHistory()||IT()},showPlayPause:$||tt||Q,bookLanguages:Ft,activeLanguageCode:Wt,onLanguageChanged:oe,canShowFullScreen:!e.hideFullScreenButton,extraButtons:e.extraButtons,bookHasImageDescriptions:ve,readImageDescriptions:hn,onReadImageDescriptionToggled:()=>ke(!hn),nowReadingImageDescription:Et,videoPreviewMode:e.videoPreviewMode}),kt.createElement(eD,null),kt.createElement(Se,{ref:X,url:e.url,landscape:ot,paused:L,preferredUiLanguages:pt,pageStylesAreNowInstalled:()=>{I(!0)},locationOfDistFolder:e.locationOfDistFolder,reportBookProperties:ht=>{const zt={landscape:ht.landscape,canRotate:ht.canRotate};zT(zt),ft([V].concat(ht.preferredLanguages)),x(ht.pageNumbers),P(ht.isRtl),ht.internalUrl!=Gd&&(Gd&&C(),Gd=ht.internalUrl)},controlsCallback:Ot,setForcedPausedCallback:ht=>{ht?(j(ht),G(!0)):G(!1)},reportPageProperties:ht=>{o(ht.hasAudio),v(ht.hasMusic),st(ht.hasVideo)},onContentClick:ht=>{e.allowToggleAppBar&&(u(!s),window.setTimeout(C,300+50))},activeLanguageCode:Wt,useOriginalPageSize:e.useOriginalPageSize,hideSwiperButtons:e.hideSwiperButtons,autoplay:t,skipActivities:e.skipActivities,outsideButtonPageClass:D,extraClassNames:i?"":"hidePlayer",shouldReadImageDescriptions:hn,imageDescriptionCallback:Lt,pageChanged:ht=>{ht!=c&&h(ht)},hidingNavigationButtonsCallback:ht=>{ht!=E&&z(ht)},shouldReportSoundLog:e.shouldReportSoundLog,startPageIndex:e.startPage,autoplayCount:e.autoplayCount}),s&&!e.videoPreviewMode&&kt.createElement("div",{id:"pageNumberControl",className:"MuiToolbar-gutters"},w?kt.createElement(Vl,{theme:Oe},Ae):Ae))};function QD(){const e=ga("extraButtons");if(!e)return[];const t=decodeURIComponent(e);try{return JSON.parse(t)}catch(n){return console.error("Failed to parse extra button info "+JSON.stringify(n)),OT("error decoding extraButtons param "+e+": "+n),[]}}function tI(){mC(parseFloat(ga("defaultDuration","3.0")));const e=ga("autoplay","motion"),t=ga("start-page"),n=XD(t),a=n?parseInt(n):void 0,i=ga("autoplay-count"),r=t?parseInt(i):void 0,s=Vn("paused",!1);Ki.render(kt.createElement(Vl,{theme:Uk},kt.createElement(JD,{url:ga("url"),allowToggleAppBar:Vn("allowToggleAppBar",!1),showBackButton:Vn("showBackButton",!1),initiallyShowAppBar:Vn("initiallyShowAppBar",!0),centerVertically:Vn("centerVertically",!0),initialLanguageCode:ga("lang"),videoSettings:ga("videoSettings"),paused:s,locationOfDistFolder:"",useOriginalPageSize:Vn("useOriginalPageSize",!1),hideFullScreenButton:Vn("hideFullScreenButton",!1),autoplay:e,skipActivities:Vn("skipActivities",!1),videoPreviewMode:Vn("videoPreviewMode",!1),hideSwiperButtons:Vn("hideNavButtons",!1),extraButtons:QD(),shouldReportSoundLog:Vn("reportSoundLog",!1),startPage:a,autoplayCount:r,roundPageWidthToNearestK:Qg("roundPageWidthToNearestK"),roundMarginToNearestK:Qg("roundMarginToNearestK")})),document.getElementById("root"))}let Gd="";tI();
|
|
8060
|
-
//# sourceMappingURL=bloomPlayer.
|
|
8060
|
+
//# sourceMappingURL=bloomPlayer.D55h0y3c.js.map
|